diff --git a/backend/public/1-es2015.3fbf575d5d16101983c4.js b/backend/public/1-es2015.3fbf575d5d16101983c4.js deleted file mode 100644 index 608c993..0000000 --- a/backend/public/1-es2015.3fbf575d5d16101983c4.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"2Yyj":function(t,e,i){var n,s,a;!function(o){if("object"==typeof t.exports){var r=o(0,e);void 0!==r&&(t.exports=r)}else s=[i,e],void 0===(a="function"==typeof(n=o)?n.apply(e,s):n)||(t.exports=a)}((function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=void 0;e.default=["es",[["a.\xa0m.","p.\xa0m."],i,i],i,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],i,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],i,[["a. C.","d. C."],i,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",i,"{1}, {0}",i],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[i,"$"],BRL:[i,"R$"],CNY:[i,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[i,"\xa3"],HKD:[i,"$"],ILS:[i,"\u20aa"],INR:[i,"\u20b9"],JPY:[i,"\xa5"],KRW:[i,"\u20a9"],MXN:[i,"$"],NZD:[i,"$"],RON:[i,"L"],THB:["\u0e3f"],TWD:[i,"NT$"],USD:["US$","$"],XAF:[],XCD:[i,"$"],XOF:[]},"ltr",function(t){return 1===t?1:5}]}))},"4fRq":function(t,e){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);t.exports=function(){return i(n),n}}else{var s=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),s[e]=t>>>((3&e)<<3)&255;return s}}},EcEN:function(t,e,i){var n=i("xDdU"),s=i("xk4V"),a=s;a.v1=n,a.v4=s,t.exports=a},I2ZF:function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},Iab2:function(t,e,i){var n,s;void 0===(s="function"==typeof(n=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){a(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(t,a,o){var r=s.URL||s.webkitURL,l=document.createElement("a");l.download=a=a||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?n(l):i(l.href)?e(t,a,o):n(l,l.target="_blank")):(l.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(l.href)}),4e4),setTimeout((function(){n(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,a){if(s=s||t.name||"download","string"!=typeof t)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(["\ufeff",t],{type:t.type}):t}(t,a),s);else if(i(t))e(t,s,a);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){n(o)}))}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var o="application/octet-stream"===t.type,r=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&r)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},c.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?n.apply(e,[]):n)||(t.exports=s)},XypG:function(t,e){},ZAI4:function(t,e,i){"use strict";i.r(e),i.d(e,"isVisible",(function(){return GA})),i.d(e,"AppModule",(function(){return WA}));var n=i("jhN1"),s=i("fXoL");class a{}function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function r(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:3,steps:t,options:e}}function c(t,e=null){return{type:2,steps:t,options:e}}function d(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function u(t){return{type:5,steps:t}}function m(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function p(t=null){return{type:9,options:t}}function g(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function f(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function y(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function v(t){switch(t.length){case 0:return new b;case 1:return t[0];default:return new _(t)}}function w(t,e,i,n,s={},a={}){const o=[],r=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,d=n&&c||{};Object.keys(t).forEach(i=>{let n=i,r=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),r){case"!":r=s[i];break;case"*":r=a[i];break;default:r=e.normalizeStyleValue(i,n,r,o)}d[n]=r}),n||r.push(d),c=d,l=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return r}function k(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&x(i,"start",t)));break;case"done":t.onDone(()=>n(i&&x(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&x(i,"destroy",t)))}}function x(t,e,i){const n=i.totalTime,s=C(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),a=t._data;return null!=a&&(s._data=a),s}function C(t,e,i,n,s="",a=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:a,disabled:!!o}}function S(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function D(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let E=(t,e)=>!1,A=(t,e)=>!1,O=(t,e,i)=>[];const I=y();(I||"undefined"!=typeof Element)&&(E=(t,e)=>t.contains(e),A=(()=>{if(I||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):A}})(),O=(t,e,i)=>{let n=[];if(i)n.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&n.push(i)}return n});let P=null,R=!1;function T(t){P||(P=("undefined"!=typeof document?document.body:null)||{},R=!!P.style&&"WebkitAppearance"in P.style);let e=!0;return P.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in P.style,!e&&R)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in P.style),e}const M=A,F=E,L=O;function z(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let N=(()=>{class t{validateStyleProperty(t){return T(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return L(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,a=[],o){return new b(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.NOOP=new N,t})();function V(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:j(parseFloat(e[1]),e[2])}function j(t,e){switch(e){case"s":return 1e3*t;default:return t}}function U(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,a="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=j(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=j(parseFloat(o),i[4]));const r=i[5];r&&(a=r)}else n=t;if(!i){let i=!1,a=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(a,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:a}}(t,e,i)}function $(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function H(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else $(t,i);return i}function q(t,e,i){return i?e+":"+i+";":""}function G(t){let e="";for(let i=0;i{const s=et(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),y()&&G(t))}function Y(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=et(e);t.style[i]=""}),y()&&G(t))}function Q(t){return Array.isArray(t)?1==t.length?t[0]:c(t):t}const K=new RegExp("{{\\s*(.+?)\\s*}}","g");function X(t){let e=[];if("string"==typeof t){let i;for(;i=K.exec(t);)e.push(i[1]);K.lastIndex=0}return e}function Z(t,e,i){const n=t.toString(),s=n.replace(K,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function J(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const tt=/-+([a-z0-9])/g;function et(t){return t.replace(tt,(...t)=>t[1].toUpperCase())}function it(t,e){return 0===t||0===e}function nt(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let a=e[0],o=[];if(n.forEach(t=>{a.hasOwnProperty(t)||o.push(t),a[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],a=n[2],o=n[3];e.push(ct(s,o)),"<"!=a[0]||"*"==s&&"*"==o||e.push(ct(o,s))}(t,i,e)):i.push(t),i}const rt=new Set(["true","1"]),lt=new Set(["false","0"]);function ct(t,e){const i=rt.has(t)||lt.has(t),n=rt.has(e)||lt.has(e);return(s,a)=>{let o="*"==t||t==s,r="*"==e||e==a;return!o&&i&&"boolean"==typeof s&&(o=s?rt.has(t):lt.has(t)),!r&&n&&"boolean"==typeof a&&(r=a?rt.has(e):lt.has(e)),o&&r}}const dt=new RegExp("s*:selfs*,?","g");function ht(t,e,i){return new ut(t).build(e,i)}class ut{constructor(t){this._driver=t}build(t,e){const i=new mt(e);return this._resetContextStyleTimingState(i),st(this,Q(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,a.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:a,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,a=n||{};if(i.styles.forEach(t=>{if(pt(t)){const e=t;Object.keys(e).forEach(t=>{X(e[t]).forEach(t=>{a.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=J(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=st(this,Q(t.animation),e);return{type:1,matchers:ot(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:gt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>st(this,t,e)),options:gt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=st(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:gt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ft(U(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ft(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||U(n,e),ft(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:d({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,a=!1;if(!s){a=!0;const t={};i.easing&&(t.easing=i.easing),s=d(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=a,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(pt(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const a=e.collectedStyles[e.currentQuerySelector],o=a[i];let r=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),r=!1),s=o.startTime),r&&(a[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=X(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let a=!1,o=!1,r=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(pt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(pt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),o=o||c<0||c>1,a=a||c0&&n{const a=d>0?n==h?1:d*n:s[n],o=a*p;e.currentTime=u+m.delay+o,m.duration=o,this._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:st(this,Q(t.animation),e),options:gt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:gt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,a]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(dt,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,S(e.collectedStyles,e.currentQuerySelector,{});const o=st(this,Q(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:o,originalSelector:t.selector,options:gt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:U(t.timings,e.errors,!0);return{type:12,animation:st(this,Q(t.animation),e),timings:i,options:null}}}class mt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function pt(t){return!Array.isArray(t)&&"object"==typeof t}function gt(t){var e;return t?(t=$(t)).params&&(t.params=(e=t.params)?$(e):null):t={},t}function ft(t,e,i){return{duration:t,delay:e,easing:i}}function bt(t,e,i,n,s,a,o=null,r=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:a,totalTime:s+a,easing:o,subTimeline:r}}class _t{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const yt=new RegExp(":enter","g"),vt=new RegExp(":leave","g");function wt(t,e,i,n,s,a={},o={},r,l,c=[]){return(new kt).buildKeyframes(t,e,i,n,s,a,o,r,l,c)}class kt{buildKeyframes(t,e,i,n,s,a,o,r,l,c=[]){l=l||new _t;const d=new Ct(t,e,l,n,s,c,[]);d.options=r,d.currentTimeline.setStyles([a],null,d.errors,r),st(this,i,d);const h=d.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,d.errors,r)}return h.length?h.map(t=>t.buildKeyframes()):[bt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,n,n.options);s!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?V(i.duration):null,a=null!=i.delay?V(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,a);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),st(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=xt);const t=V(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>st(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?V(t.options.delay):0;t.steps.forEach(a=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),st(this,a,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return U(e.params?Z(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(t=>{a.forwardTime((t.offset||0)*s),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?V(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=xt);let a=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let r=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(r=o.currentTimeline),st(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),r&&(e.currentTimeline.mergeTimelineCollectedStyles(r),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,a=Math.abs(s.duration),o=a*(e.currentQueryTotal-1);let r=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":r=o-r;break;case"full":r=i.currentStaggerTime}const l=e.currentTimeline;r&&l.delayNextStep(r);const c=l.currentTime;st(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const xt={};class Ct{constructor(t,e,i,n,s,a,o,r){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=r||new St(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=V(i.duration)),null!=i.delay&&(n.delay=V(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Z(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Ct(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=xt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Dt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,a){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(yt,"."+this._enterClassName)).replace(vt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||a.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class St{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new St(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},a=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):H(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(t=>{const e=Z(a[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,a)=>{const o=H(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=a/this.duration),n.push(o)});const s=t.size?J(t.values()):[],a=e.size?J(e.values()):[];if(i){const t=n[0],e=$(t);t.offset=0,e.offset=1,n=[t,e]}return bt(this.element,n,s,a,this.duration,this.startTime,this.easing,!1)}}class Dt extends St{constructor(t,e,i,n,s,a,o=!1){super(t,e,a.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],a=i+e,o=e/a,r=H(t[0],!1);r.offset=0,s.push(r);const l=H(t[0],!1);l.offset=Et(o),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=H(t[n],!1);o.offset=Et((e+o.offset*i)/a),s.push(o)}i=a,e=0,n="",t=s}return bt(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Et(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class At{}class Ot extends At{normalizePropertyName(t,e){return et(t)}normalizeStyleValue(t,e,i,n){let s="";const a=i.toString().trim();if(It[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return a+s}}const It=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Pt(t,e,i,n,s,a,o,r,l,c,d,h,u){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:a,toState:n,toStyles:o,timelines:r,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:u}}const Rt={};class Tt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],a=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):a}build(t,e,i,n,s,a,o,r,l,c){const d=[],h=this.ast.options&&this.ast.options.params||Rt,u=this.buildStyles(i,o&&o.params||Rt,d),m=r&&r.params||Rt,p=this.buildStyles(n,m,d),g=new Set,f=new Map,b=new Map,_="void"===n,y={params:Object.assign(Object.assign({},h),m)},v=c?[]:wt(t,e,this.ast.animation,s,a,u,p,y,l,d);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),d.length)return Pt(e,this._triggerName,i,n,_,u,p,[],[],f,b,w,d);v.forEach(t=>{const i=t.element,n=S(f,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=S(b,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const k=J(g.values());return Pt(e,this._triggerName,i,n,_,u,p,v,k,f,b,w)}}class Mt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=$(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let a=s[t];a.length>1&&(a=Z(a,n,e)),i[t]=a})}}),i}}class Ft{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})}),Lt(this.states,"true","1"),Lt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Lt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const zt=new _t;class Nt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=ht(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=w(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let a;const o=new Map;if(s?(a=wt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,zt,n),a.forEach(t=>{const e=S(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),a=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const r=v(a.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=r,r.onDestroy(()=>this.destroy(t)),this.players.push(r),r}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=C(e,"","","");return k(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Bt=[],Vt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ut{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=$(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const $t=new Ut("void");class Ht{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Xt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const a=S(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};a.push(o);const r=S(this._engine.statesByElement,t,{});return r.hasOwnProperty(e)||(Xt(t,"ng-trigger"),Xt(t,"ng-trigger-"+e),r[e]=$t),()=>{this._engine.afterFlush(()=>{const t=a.indexOf(o);t>=0&&a.splice(t,1),this._triggers[e]||delete r[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),a=new Gt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Xt(t,"ng-trigger"),Xt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let r=o[e];const l=new Ut(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&r&&l.absorbOptions(r.options),o[e]=l,r||(r=$t),"void"!==l.value&&r.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{Y(t,i),W(t,n)})}return}const c=S(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let d=s.matchTransition(r.value,l.value,t,l.params),h=!1;if(!d){if(!n)return;d=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:r,toState:l,player:a,isFallbackTransition:h}),h||(Xt(t,"ng-animate-queued"),a.onStart(()=>{Zt(t,"ng-animate-queued")})),a.onDone(()=>{let e=this.players.indexOf(a);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(a);t>=0&&i.splice(t,1)}}),this.players.push(a),c.push(a),a}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const a=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&a.push(i)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&v(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,a=this._engine.statesByElement.get(t)[n]||$t,o=new Ut("void"),r=new Gt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:a,toState:o,player:r,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Vt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Xt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,a=this._elementListeners.get(s);a&&a.forEach(e=>{if(e.name==i.triggerName){const n=C(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,k(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class qt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Ht(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Xt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zt(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Wt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Wt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return v(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Vt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?v(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new _t,n=[],s=new Map,a=[],o=new Map,r=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+p++;m.set(e,i),t.forEach(t=>Xt(t,i))});const g=[],f=new Set,b=new Set;for(let v=0;vf.add(t)):b.add(t))}const _=new Map,y=Kt(h,Array.from(f));y.forEach((t,e)=>{const i="ng-leave"+p++;_.set(e,i),t.forEach(t=>Xt(t,i))}),t.push(()=>{u.forEach((t,e)=>{const i=m.get(e);t.forEach(t=>Zt(t,i))}),y.forEach((t,e)=>{const i=_.get(e);t.forEach(t=>Zt(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],k=[];for(let v=this._namespaceList.length-1;v>=0;v--)this._namespaceList[v].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!d||!this.driver.containsElement(d,s),h=_.get(s),u=m.get(s),p=this._buildInstruction(t,i,u,h,c);if(!p.errors||!p.errors.length)return c||t.isFallbackTransition?(e.onStart(()=>Y(s,p.fromStyles)),e.onDestroy(()=>W(s,p.toStyles)),void n.push(e)):(p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,p.timelines),a.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>S(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=r.get(e);t||r.set(e,t=new Set),i.forEach(e=>t.add(e))}}),void p.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=l.get(e);n||l.set(e,n=new Set),i.forEach(t=>n.add(t))}));k.push(p)});if(k.length){const t=[];k.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,C=new Map;a.forEach(t=>{const e=t.element;i.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{S(x,e,[]).push(t),t.destroy()})});const D=g.filter(t=>te(t,r,l)),E=new Map;Qt(E,this.driver,b,l,"*").forEach(t=>{te(t,r,l)&&D.push(t)});const A=new Map;u.forEach((t,e)=>{Qt(A,this.driver,new Set(t),r,"!")}),D.forEach(t=>{const e=E.get(t),i=A.get(t);E.set(t,Object.assign(Object.assign({},e),i))});const O=[],I=[],P={};a.forEach(t=>{const{element:e,player:a,instruction:o}=t;if(i.has(e)){if(c.has(e))return a.onDestroy(()=>W(e,o.toStyles)),a.disabled=!0,a.overrideTotalTime(o.totalTime),void n.push(a);let t=P;if(C.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=C.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>C.set(e,t))}const i=this._buildAnimation(a.namespaceId,o,x,s,A,E);if(a.setRealPlayer(i),t===P)O.push(a);else{const e=this.playersByElement.get(t);e&&e.length&&(a.parentPlayer=v(e)),n.push(a)}}else Y(e,o.fromStyles),a.onDestroy(()=>W(e,o.toStyles)),I.push(a),c.has(e)&&n.push(a)}),I.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=v(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let v=0;v!t.destroyed);n.length?Jt(this,t,n):this.processLeaveNode(t)}return g.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let a=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(a=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&a.push(e)})}}return(i||n)&&(a=a.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),a}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,r=t!==n,l=S(i,t,[]);this._getPreviousPlayers(t,r,s,a,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Y(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const o=e.triggerName,r=e.element,l=[],c=new Set,d=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const u=h.__ng_removed;if(u&&u.removedBeforeQueried)return new b(e.duration,e.delay);const m=h!==r,p=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),f=a.get(h),y=w(0,this._normalizer,0,e.keyframes,g,f),v=this._buildPlayer(e,y,p);if(e.subTimeline&&n&&d.add(h),m){const e=new Gt(t,o,h);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{S(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Xt(t,"ng-animating"));const u=v(h);return u.onDestroy(()=>{c.forEach(t=>Zt(t,"ng-animating")),W(r,e.toStyles)}),d.forEach(t=>{S(n,t,[]).push(u)}),u}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new b(t.duration,t.delay)}}class Gt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new b,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>k(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){S(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Wt(t){return t&&1===t.nodeType}function Yt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Qt(t,e,i,n,s){const a=[];i.forEach(t=>a.push(Yt(t)));const o=[];n.forEach((i,n)=>{const a={};i.forEach(t=>{const i=a[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=jt,o.push(n))}),t.set(n,a)});let r=0;return i.forEach(t=>Yt(t,a[r++])),o}function Kt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let a=s.get(e);if(a)return a;const o=e.parentNode;return a=i.has(o)?o:n.has(o)?1:t(o),s.set(e,a),a}(t);1!==e&&i.get(e).push(t)}),i}function Xt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Zt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Jt(t,e,i){v(i).onDone(()=>t.processLeaveNode(e))}function te(t,e,i){const n=i.get(t);if(!n)return!1;let s=e.get(t);return s?n.forEach(t=>s.add(t)):e.set(t,n),i.delete(t),!0}class ee{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new qt(t,e,i),this._timelineEngine=new Nt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const a=t+"-"+n;let o=this._triggerCache[a];if(!o){const t=[],e=ht(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Ft(t,e)}(n,e),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=D(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=D(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ie(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=se(e[0]),e.length>1&&(n=se(e[e.length-1]))):e&&(i=se(e)),i||n?new ne(t,i,n):null}let ne=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Y(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function se(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ue(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ue(t,"").split(","),n=ce(i,e);n>=0&&(i.splice(n,1),he(t,"",i.join(",")))}(this._element,this._name))}}function re(t,e,i){he(t,"PlayState",i,le(t,e))}function le(t,e){const i=ue(t,"");return i.indexOf(",")>0?ce(i.split(","),e):ce([i],e)}function ce(t,e){for(let i=0;i=0)return i;return-1}function de(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function he(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ue(t,e){return t.style["animation"+e]}class me{constructor(t,e,i,n,s,a,o,r){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:at(this.element,i))})}this.currentSnapshot=t}}class pe extends b{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=z(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ge{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return T(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return L(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>z(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const a=document.createElement("style");return a.innerHTML=n,a}animate(t,e,i,n,s,a=[],o){o&&this._notifyFaultyScrubber();const r=a.filter(t=>t instanceof me),l={};it(i,n)&&r.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=nt(t,e,l));if(0==i)return new pe(t,c);const d=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(t,d,e);document.querySelector("head").appendChild(h);const u=ie(t,e),m=new me(t,e,d,i,n,s,c,u);return m.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),m}_notifyFaultyScrubber(){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)}}class fe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,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}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:at(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class be{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_e().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return T(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return L(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,a=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,a);const r={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(r.easing=s);const l={},c=a.filter(t=>t instanceof fe);it(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const d=ie(t,e=nt(t,e=e.map(t=>H(t,!1)),l));return new fe(t,e,r,d)}}function _e(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ye=i("ofXK");let ve=(()=>{class t extends a{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.Y.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?c(t):t;return xe(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(s.M),s.Mc(ye.e))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class we extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ke(this._id,t,e||{},this._renderer)}}class ke{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return xe(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function xe(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let Ce=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Se("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const a=e=>{Array.isArray(e)?e.forEach(a):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(a),new De(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(s.M),s.Mc(ee),s.Mc(s.F))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class Se{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class De extends Se{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),a="";return"@"!=s.charAt(0)&&([s,a]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,a,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Ee=(()=>{class t extends ee{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ye.e),s.Mc(B),s.Mc(At))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Ae=new s.v("AnimationModuleType"),Oe=[{provide:B,useFactory:function(){return"function"==typeof _e()?new be:new ge}},{provide:Ae,useValue:"BrowserAnimations"},{provide:a,useClass:ve},{provide:At,useFactory:function(){return new Ot}},{provide:ee,useClass:Ee},{provide:s.M,useFactory:function(t,e,i){return new Ce(t,e,i)},deps:[n.d,ee,s.F]}];let Ie=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:Oe,imports:[n.a]}),t})();var Pe=i("XNiG"),Re=i("quSY"),Te=i("z+Ro"),Me=i("yCtX"),Fe=i("jZKg");function Le(...t){let e=t[t.length-1];return Object(Te.a)(e)?(t.pop(),Object(Fe.a)(t,e)):Object(Me.a)(t)}function ze(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Ne=i("7o/Q"),Be=i("KqfI"),Ve=i("n6bG");function je(t,e,i){return function(n){return n.lift(new Ue(t,e,i))}}class Ue{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new $e(t,this.nextOrObserver,this.error,this.complete))}}class $e extends Ne.a{constructor(t,e,i,n){super(t),this._tapNext=Be.a,this._tapError=Be.a,this._tapComplete=Be.a,this._tapError=i||Be.a,this._tapComplete=n||Be.a,Object(Ve.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Be.a,this._tapError=e.error||Be.a,this._tapComplete=e.complete||Be.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class He extends Re.a{constructor(t,e){super()}schedule(t,e=0){return this}}class qe extends He{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Ge=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class We extends Ge{constructor(t,e=Ge.now){super(t,()=>We.delegate&&We.delegate!==this?We.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return We.delegate&&We.delegate!==this?We.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Ye=new We(qe);function Qe(t,e=Ye){return i=>i.lift(new Ke(t,e))}class Ke{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Xe(t,this.dueTime,this.scheduler))}}class Xe extends Ne.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ze,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Ze(t){t.debouncedNext()}function Je(t,e){return function(i){return i.lift(new ti(t,e))}}class ti{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new ei(t,this.predicate,this.thisArg))}}class ei extends Ne.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}var ii=i("lJxs");const ni=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();var si=i("HDdC");const ai=new si.a(t=>t.complete());function oi(t){return t?function(t){return new si.a(e=>t.schedule(()=>e.complete()))}(t):ai}function ri(t){return e=>0===t?oi():e.lift(new li(t))}class li{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new ci(t,this.total))}}class ci extends Ne.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function di(t){return null!=t&&"false"!==`${t}`}function hi(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function ui(t){return Array.isArray(t)?t:[t]}function mi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function pi(t){return t instanceof s.q?t.nativeElement:t}let gi;try{gi="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(YA){gi=!1}let fi,bi=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(ye.I)(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&&!gi)&&"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)(s.Mc(s.I,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(s.I,8))},token:t,providedIn:"root"}),t})(),_i=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const yi=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vi(){if(fi)return fi;if("object"!=typeof document||!document)return fi=new Set(yi),fi;let t=document.createElement("input");return fi=new Set(yi.filter(e=>(t.setAttribute("type",e),t.type===e))),fi}let wi,ki,xi;function Ci(t){return function(){if(null==wi&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>wi=!0}))}finally{wi=wi||!1}return wi}()?t:!!t.capture}function Si(){if("object"!=typeof document||!document)return 0;if(null==ki){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),ki=0,0===t.scrollLeft&&(t.scrollLeft=1,ki=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return ki}function Di(t){if(function(){if(null==xi){const t="undefined"!=typeof document?document.head:null;xi=!(!t||!t.createShadowRoot&&!t.attachShadow)}return xi}()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}let Ei=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.uc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ai=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=pi(t);return new si.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new Pe.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Ei))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Ei))},token:t,providedIn:"root"}),t})(),Oi=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.s,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=hi(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Qe(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ai),s.yc(s.q),s.yc(s.F))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Ii=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ei]}),t})();function Pi(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ri=0;const Ti=new Map;let Mi=null,Fi=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Ti.set(e,{messageElement:e,referenceCount:0})):Ti.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Ti.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Mi&&0===Mi.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Ti.get(e);!function(t,e,i){const n=Pi(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=Ti.get(e);i.referenceCount--,function(t,e,i){const n=Pi(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=Pi(t,"aria-describedby"),n=Ti.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})();class Li{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Pe.a,this._typeaheadSubscription=Re.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Pe.a,this.change=new Pe.a,t instanceof s.K&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"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(je(t=>this._pressedLetters.push(t)),Qe(t),Je(()=>this._pressedLetters.length>0),Object(ii.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){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;default:return void((i||ze(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.K?this._items.toArray():this._items}}class zi extends Li{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Ni extends Li{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Bi=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(YA){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===ji(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=ji(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===n)return!1;if("audio"===n){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===n){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==n||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let 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")||Vi(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(bi))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(bi))},token:t,providedIn:"root"}),t})();function Vi(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function ji(t){if(!Vi(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Ui{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const 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}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(t)}}let $i=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Ui(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Bi),s.Mc(s.F),s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Bi),Object(s.Mc)(s.F),Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Hi=new s.v("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),qi=new s.v("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Gi=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Le(null);const i=pi(t);if(this._elementInfo.has(i)){let t=this._elementInfo.get(i);return t.checkChildren=e,t.subject.asObservable()}let n={unlisten:()=>{},checkChildren:e,subject:new Pe.a};this._elementInfo.set(i,n),this._incrementMonitoredElementCount();let s=t=>this._onFocus(t,i),a=t=>this._onBlur(t,i);return this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",s,!0),i.addEventListener("blur",a,!0)}),n.unlisten=()=>{i.removeEventListener("focus",s,!0),i.removeEventListener("blur",a,!0)},n.subject.asObservable()}stopMonitoring(t){const e=pi(t),i=this._elementInfo.get(e);i&&(i.unlisten(),i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,i){const n=pi(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(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))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==t.target)return;let n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Yi),t.addEventListener("mousedown",this._documentMousedownListener,Yi),t.addEventListener("touchstart",this._documentTouchstartListener,Yi),e.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Yi),t.removeEventListener("mousedown",this._documentMousedownListener,Yi),t.removeEventListener("touchstart",this._documentTouchstartListener,Yi),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(s.F),s.Mc(bi),s.Mc(ye.e,8),s.Mc(Wi,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(s.F),Object(s.Mc)(bi),Object(s.Mc)(ye.e,8),Object(s.Mc)(Wi,8))},token:t,providedIn:"root"}),t})(),Ki=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.s,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Qi))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();function Xi(t){return 0===t.buttons}let Zi=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const 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");const 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"))}}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(bi),s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(bi),Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})(),Ji=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)(s.Mc(Zi))},imports:[[_i,Ii]]}),t})();const tn=new s.v("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.db)(ye.e)}});let en=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.s,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(tn,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(tn,8))},token:t,providedIn:"root"}),t})(),nn=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new s.s}get dir(){return this._dir}set dir(t){const e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[s.jc([{provide:en,useExisting:t}])]}),t})(),sn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const an=new s.W("9.2.0");var on=i("bHdf");function rn(){return Object(on.a)(1)}function ln(...t){return rn()(Le(...t))}function cn(...t){const e=t[t.length-1];return Object(Te.a)(e)?(t.pop(),i=>ln(t,i,e)):e=>ln(t,e)}const dn=["*",[["mat-option"],["ng-container"]]],hn=["*","mat-option, ng-container"];function un(t,e){if(1&t&&s.zc(0,"mat-pseudo-checkbox",3),2&t){const t=s.Uc();s.ad("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const mn=["*"],pn=new s.W("9.2.0"),gn=new s.v("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let fn=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(s.eb)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);const n=getComputedStyle(i);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&pn.full!==an.full&&console.warn("The Angular Material version ("+pn.full+") does not match the Angular CDK version ("+an.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)(s.Mc(Zi),s.Mc(gn,8),s.Mc(ye.e,8))},imports:[[sn],sn]}),t})();function bn(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}}}function _n(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function yn(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}}}function vn(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function wn(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new Pe.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}const kn=new s.v("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(s.db)(s.z)}});class xn{constructor(){this._localeChanges=new Pe.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const Cn=new s.v("mat-date-formats");let Sn;try{Sn="undefined"!=typeof Intl}catch(YA){Sn=!1}const Dn={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"]},En=In(31,t=>String(t+1)),An={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},On=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function In(t,e){const i=Array(t);for(let n=0;n{class t extends xn{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(Sn){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return In(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Dn[t]}getDateNames(){if(Sn){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return In(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return En}getDayOfWeekNames(t){if(Sn){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return In(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return An[t]}getYearName(t){if(Sn){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Sn){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"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(On.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(kn,8),s.Mc(bi))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Rn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:xn,useClass:Pn}],imports:[[_i]]}),t})();const Tn={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Mn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:Cn,useValue:Tn}],imports:[[Rn]]}),t})(),Fn=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.uc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ln=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function zn(t,e,i="mat"){t.changes.pipe(cn(t)).subscribe(({length:t})=>{Nn(e,`${i}-2-line`,!1),Nn(e,`${i}-3-line`,!1),Nn(e,`${i}-multi-line`,!1),2===t||3===t?Nn(e,`${i}-${t}-line`,!0):t>3&&Nn(e,`${i}-multi-line`,!0)})}function Nn(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Bn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[fn],fn]}),t})();class Vn{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jn={enterDuration:450,exitDuration:400},Un=Ci({passive:!0});class $n{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=Xi(t),i=this._lastTouchStartEvent&&Date.now(){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))},n.isBrowser&&(this._containerElement=pi(i),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},jn),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const a=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,r=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${o-a}px`,c.style.top=`${r-a}px`,c.style.height=`${2*a}px`,c.style.width=`${2*a}px`,null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const d=new Vn(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const t=d===this._mostRecentTransientRipple;d.state=1,i.persistent||t&&this._isPointerDown||d.fadeOut()},l),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},jn),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=pi(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,i)=>{e.addEventListener(i,t,Un)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,Un)})}}const Hn=new s.v("mat-ripple-global-options");let qn=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new $n(this,e,t,i),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(bi),s.yc(Hn,8),s.yc(Ae,8))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("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})(),Gn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[fn,_i],fn]}),t})(),Wn=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.oc("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})(),Yn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();class Qn{}const Kn=bn(Qn);let Xn=0,Zn=(()=>{class t extends Kn{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${Xn++}`}}return t.\u0275fac=function(e){return Jn(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(s.lc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),s.oc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[s.hc],ngContentSelectors:hn,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(s.Zc(dn),s.Dc(0,"label",0),s.vd(1),s.Yc(2),s.Cc(),s.Yc(3,1)),2&t&&(s.ad("id",e._labelId),s.kc(1),s.xd("",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})();const Jn=s.Fc(Zn);let ts=0;class es{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const is=new s.v("MAT_OPTION_PARENT_COMPONENT");let ns=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${ts++}`,this.onSelectionChange=new s.s,this._stateChanges=new Pe.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=di(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||ze(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new es(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(is,8),s.yc(Zn,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(s.Gc("id",e.id),s.lc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.oc("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:mn,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&&(s.Zc(),s.td(0,un,1,2,"mat-pseudo-checkbox",0),s.Dc(1,"span",1),s.Yc(2),s.Cc(),s.zc(3,"div",2)),2&t&&(s.ad("ngIf",e.multiple),s.kc(3),s.ad("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ye.t,qn,Wn],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 ss(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),a=0;for(let e=0;ei+n?Math.max(0,s-n+e):i}let os=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Gn,ye.c,Yn]]}),t})();const rs=new s.v("mat-label-global-options"),ls=["mat-button",""],cs=["*"],ds=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class hs{constructor(t){this._elementRef=t}}const us=_n(bn(yn(hs)));let ms=(()=>{class t extends us{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of ds)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Qi),s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var i;1&t&&s.zd(qn,!0),2&t&&s.gd(i=s.Rc())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(s.lc("disabled",e.disabled||null),s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.hc],attrs:ls,ngContentSelectors:cs,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.Zc(),s.Dc(0,"span",0),s.Yc(1),s.Cc(),s.zc(2,"div",1),s.zc(3,"div",2)),2&t&&(s.kc(2),s.oc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.ad("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[qn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .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[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-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[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[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[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"],encapsulation:2,changeDetection:0}),t})(),ps=(()=>{class t extends ms{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Qi),s.yc(s.q),s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&s.Qc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(s.lc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[s.hc],attrs:ls,ngContentSelectors:cs,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.Zc(),s.Dc(0,"span",0),s.Yc(1),s.Cc(),s.zc(2,"div",1),s.zc(3,"div",2)),2&t&&(s.kc(2),s.oc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.ad("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[qn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .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[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-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[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[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[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"],encapsulation:2,changeDetection:0}),t})(),gs=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Gn,fn],fn]}),t})();class fs{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Pe.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let bs=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.uc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();var _s=i("DH7j"),ys=i("XoHu"),vs=i("Cfvw");function ws(...t){if(1===t.length){const e=t[0];if(Object(_s.a)(e))return ks(e,null);if(Object(ys.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return ks(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return ks(t=1===t.length&&Object(_s.a)(t[0])?t[0]:t,null).pipe(Object(ii.a)(t=>e(...t)))}return ks(t,null)}function ks(t,e){return new si.a(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let a=0,o=0;for(let r=0;r{c||(c=!0,o++),s[r]=t},error:t=>i.error(t),complete:()=>{a++,a!==n&&c||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}const xs=new s.v("NgValueAccessor"),Cs={provide:xs,useExisting:Object(s.cb)(()=>Ss),multi:!0};let Ss=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.Qc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[s.jc([Cs])]}),t})();const Ds={provide:xs,useExisting:Object(s.cb)(()=>As),multi:!0},Es=new s.v("CompositionEventMode");let As=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(ye.N)()?Object(ye.N)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.L),s.yc(s.q),s.yc(Es,8))},t.\u0275dir=s.tc({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&s.Qc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[s.jc([Ds])]}),t})(),Os=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t}),t})(),Is=(()=>{class t extends Os{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Ps(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const Ps=s.Fc(Is);function Rs(){throw new Error("unimplemented")}class Ts extends Os{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Rs()}get asyncValidator(){return Rs()}}class Ms{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let Fs=(()=>{class t extends Ms{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ts,2))},t.\u0275dir=s.tc({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.oc("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:[s.hc]}),t})(),Ls=(()=>{class t extends Ms{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Is,2))},t.\u0275dir=s.tc({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.oc("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:[s.hc]}),t})();function zs(t){return null==t||0===t.length}const Ns=new s.v("NgValidators"),Bs=new s.v("NgAsyncValidators"),Vs=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class js{static min(t){return e=>{if(zs(e.value)||zs(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(zs(e.value)||zs(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return zs(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return zs(t.value)||Vs.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(zs(e.value))return null;const i=e.value?e.value.length:0;return i{const i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}static pattern(t){if(!t)return js.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(zs(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Us);return 0==e.length?null:function(t){return Hs(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Us);return 0==e.length?null:function(t){return ws(function(t,e){return e.map(e=>e(t))}(t,e).map($s)).pipe(Object(ii.a)(Hs))}}}function Us(t){return null!=t}function $s(t){const e=Object(s.Nb)(t)?Object(vs.a)(t):t;if(!Object(s.Mb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Hs(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function qs(t){return t.validate?e=>t.validate(e):t}function Gs(t){return t.validate?e=>t.validate(e):t}const Ws={provide:xs,useExisting:Object(s.cb)(()=>Ys),multi:!0};let Ys=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.Qc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.jc([Ws])]}),t})();const Qs={provide:xs,useExisting:Object(s.cb)(()=>Xs),multi:!0};let Ks=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Xs=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Ts),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){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 ')}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.L),s.yc(s.q),s.yc(Ks),s.yc(s.w))},t.\u0275dir=s.tc({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&s.Qc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s.jc([Qs])]}),t})();const Zs={provide:xs,useExisting:Object(s.cb)(()=>Js),multi:!0};let Js=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&s.Qc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.jc([Zs])]}),t})();const ta='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',ea='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ia='\n
\n
\n \n
\n
';class na{static controlParentException(){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 ${ta}`)}static ngModelGroupException(){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 ${ea}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ia}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${ta}`)}static groupParentException(){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 ${ea}`)}static arrayParentException(){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 \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 });')}static disabledAttrWarning(){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 ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${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 Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const sa={provide:xs,useExisting:Object(s.cb)(()=>oa),multi:!0};function aa(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let oa=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=s.Ob}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=aa(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.Qc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[s.jc([sa])]}),t})(),ra=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(aa(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.L),s.yc(oa,9))},t.\u0275dir=s.tc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const la={provide:xs,useExisting:Object(s.cb)(()=>da),multi:!0};function ca(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let da=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=s.Ob}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(ca(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ca(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.L),s.yc(da,9))},t.\u0275dir=s.tc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function ua(t,e){return[...e.path,t]}function ma(t,e){t||ba(e,"Cannot find control with"),e.valueAccessor||ba(e,"No value accessor for form control with"),t.validator=js.compose([t.validator,e.validator]),t.asyncValidator=js.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&pa(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&pa(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function pa(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ga(t,e){null==t&&ba(e,"Cannot find control with"),t.validator=js.compose([t.validator,e.validator]),t.asyncValidator=js.composeAsync([t.asyncValidator,e.asyncValidator])}function fa(t){return ba(t,"There is no FormControl instance attached to form control element with")}function ba(t,e){let i;throw i=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${i}`)}function _a(t){return null!=t?js.compose(t.map(qs)):null}function ya(t){return null!=t?js.composeAsync(t.map(Gs)):null}function va(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(s.Ob)(e,i.currentValue)}const wa=[Ss,Js,Ys,oa,da,Xs];function ka(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function xa(t,e){if(!e)return null;Array.isArray(e)||ba(t,"Value accessor was not provided as an array for form control with");let i=void 0,n=void 0,s=void 0;return e.forEach(e=>{var a;e.constructor===As?i=e:(a=e,wa.some(t=>a.constructor===t)?(n&&ba(t,"More than one built-in value accessor matches form control with"),n=e):(s&&ba(t,"More than one custom value accessor matches form control with"),s=e))}),s||n||i||(ba(t,"No valid value accessor for form control with"),null)}function Ca(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function Sa(t,e,i,n){Object(s.eb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(na.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Da(t){const e=Aa(t)?t.validators:t;return Array.isArray(e)?_a(e):e||null}function Ea(t,e){const i=Aa(e)?e.asyncValidators:t;return Array.isArray(i)?ya(i):i||null}function Aa(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Oa{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Da(t)}setAsyncValidators(t){this.asyncValidator=Ea(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(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(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(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(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){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)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=$s(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof Pa?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Ra&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.s,this.statusChanges=new s.s}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Aa(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Ia extends Oa{constructor(t=null,e,i){super(Da(e),Ea(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){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}}class Pa extends Oa{constructor(t,e,i){super(Da(e),Ea(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Ia?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((i,n)=>{e=e||this.contains(n)&&t(i)}),e}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Ra extends Oa{constructor(t,e,i){super(Da(e),Ea(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Ia?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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 ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Ta={provide:Is,useExisting:Object(s.cb)(()=>Fa)},Ma=(()=>Promise.resolve(null))();let Fa=(()=>{class t extends Is{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.s,this.form=new Pa({},_a(t),ya(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ma.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),ma(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ma.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Ca(this._directives,t)})}addFormGroup(t){Ma.then(()=>{const e=this._findContainer(t.path),i=new Pa({});ga(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ma.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ma.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,ka(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ns,10),s.yc(Bs,10))},t.\u0275dir=s.tc({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.Qc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.jc([Ta]),s.hc]}),t})(),La=(()=>{class t extends Is{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ua(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return _a(this._validators)}get asyncValidator(){return ya(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return za(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const za=s.Fc(La);class Na{static modelParentException(){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 ${ta}\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 \n
\n \n \n
\n `)}static formGroupNameException(){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 ${ea}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ia}`)}static missingNameException(){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: ')}static modelGroupParentException(){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 ${ea}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ia}`)}}const Ba={provide:Is,useExisting:Object(s.cb)(()=>Va)};let Va=(()=>{class t extends La{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof Fa||Na.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Is,5),s.yc(Ns,10),s.yc(Bs,10))},t.\u0275dir=s.tc({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[s.jc([Ba]),s.hc]}),t})();const ja={provide:Ts,useExisting:Object(s.cb)(()=>$a)},Ua=(()=>Promise.resolve(null))();let $a=(()=>{class t extends Ts{constructor(t,e,i,n){super(),this.control=new Ia,this._registered=!1,this.update=new s.s,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=xa(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),va(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ua(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return _a(this._rawValidators)}get asyncValidator(){return ya(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ma(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Va)&&this._parent instanceof La?Na.formGroupNameException():this._parent instanceof Va||this._parent instanceof Fa||Na.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Na.missingNameException()}_updateValue(t){Ua.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Ua.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Is,9),s.yc(Ns,10),s.yc(Bs,10),s.yc(xs,10))},t.\u0275dir=s.tc({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:[s.jc([ja]),s.hc,s.ic]}),t})(),Ha=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const qa=new s.v("NgModelWithFormControlWarning"),Ga={provide:Ts,useExisting:Object(s.cb)(()=>Wa)};let Wa=(()=>{class t extends Ts{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.s,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=xa(this,i)}set isDisabled(t){na.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(ma(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),va(e,this.viewModel)&&(Sa("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return _a(this._rawValidators)}get asyncValidator(){return ya(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ns,10),s.yc(Bs,10),s.yc(xs,10),s.yc(qa,8))},t.\u0275dir=s.tc({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s.jc([Ga]),s.hc,s.ic]}),t._ngModelWarningSentOnce=!1,t})();const Ya={provide:Is,useExisting:Object(s.cb)(()=>Qa)};let Qa=(()=>{class t extends Is{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new s.s}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return ma(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Ca(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ga(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);ga(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,ka(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>fa(e)),e.valueAccessor.registerOnTouched(()=>fa(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&ma(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=_a(this._validators);this.form.validator=js.compose([this.form.validator,t]);const e=ya(this._asyncValidators);this.form.asyncValidator=js.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||na.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ns,10),s.yc(Bs,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.Qc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.jc([Ya]),s.hc,s.ic]}),t})();const Ka={provide:Is,useExisting:Object(s.cb)(()=>Xa)};let Xa=(()=>{class t extends La{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){to(this._parent)&&na.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Is,13),s.yc(Ns,10),s.yc(Bs,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s.jc([Ka]),s.hc]}),t})();const Za={provide:Is,useExisting:Object(s.cb)(()=>Ja)};let Ja=(()=>{class t extends Is{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ua(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return _a(this._validators)}get asyncValidator(){return ya(this._asyncValidators)}_checkParentType(){to(this._parent)&&na.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Is,13),s.yc(Ns,10),s.yc(Bs,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s.jc([Za]),s.hc]}),t})();function to(t){return!(t instanceof Xa||t instanceof Qa||t instanceof Ja)}const eo={provide:Ts,useExisting:Object(s.cb)(()=>io)};let io=(()=>{class t extends Ts{constructor(t,e,i,n,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new s.s,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=xa(this,n)}set isDisabled(t){na.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),va(e,this.viewModel)&&(Sa("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ua(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return _a(this._rawValidators)}get asyncValidator(){return ya(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Xa)&&this._parent instanceof La?na.ngModelGroupException():this._parent instanceof Xa||this._parent instanceof Qa||this._parent instanceof Ja||na.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Is,13),s.yc(Ns,10),s.yc(Bs,10),s.yc(xs,10),s.yc(qa,8))},t.\u0275dir=s.tc({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s.jc([eo]),s.hc,s.ic]}),t._ngModelWarningSentOnce=!1,t})();const no={provide:Ns,useExisting:Object(s.cb)(()=>ao),multi:!0},so={provide:Ns,useExisting:Object(s.cb)(()=>oo),multi:!0};let ao=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?js.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({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&&s.lc("required",e.required?"":null)},inputs:{required:"required"},features:[s.jc([no])]}),t})(),oo=(()=>{class t extends ao{validate(t){return this.required?js.requiredTrue(t):null}}return t.\u0275fac=function(e){return ro(e||t)},t.\u0275dir=s.tc({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&&s.lc("required",e.required?"":null)},features:[s.jc([so]),s.hc]}),t})();const ro=s.Fc(oo),lo={provide:Ns,useExisting:Object(s.cb)(()=>co),multi:!0};let co=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?js.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[s.jc([lo])]}),t})();const ho={provide:Ns,useExisting:Object(s.cb)(()=>uo),multi:!0};let uo=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=js.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[s.jc([ho]),s.ic]}),t})();const mo={provide:Ns,useExisting:Object(s.cb)(()=>po),multi:!0};let po=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=js.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s.jc([mo]),s.ic]}),t})();const go={provide:Ns,useExisting:Object(s.cb)(()=>fo),multi:!0};let fo=(()=>{class t{ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=js.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[s.jc([go]),s.ic]}),t})(),bo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),_o=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,s=null,a=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Pa(i,{asyncValidators:s,updateOn:a,validators:n})}control(t,e,i){return new Ia(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Ra(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Ia||t instanceof Pa||t instanceof Ra?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),yo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ks],imports:[bo]}),t})(),vo=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:qa,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[_o,Ks],imports:[bo]}),t})();const wo=["button"],ko=["*"],xo=new s.v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),Co={provide:xs,useExisting:Object(s.cb)(()=>Ao),multi:!0};class So{}let Do=0;class Eo{constructor(t,e){this.source=t,this.value=e}}let Ao=(()=>{class t{constructor(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${Do++}`,this.valueChange=new s.s,this.change=new s.s,this.appearance=e&&e.appearance?e.appearance:"standard"}get name(){return this._name}set name(t){this._name=t,this._buttonToggles&&this._buttonToggles.forEach(t=>{t.name=this._name,t._markForCheck()})}get vertical(){return this._vertical}set vertical(t){this._vertical=di(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(t=>t.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=di(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new fs(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(){const t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,i=new Eo(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(t,e,i=!1,n=!1){this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):n=!0,n?Promise.resolve(()=>this._updateModelValue(i)):this._updateModelValue(i)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(e=>null!=t.value&&e===t.value):t.value===this._rawValue)}_setSelectionByValue(t){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(t=>this._selectValue(t))}else this._clearSelection(),this._selectValue(t)}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const e=this._buttonToggles.find(e=>null!=e.value&&e.value===t);e&&(e.checked=!0,this._selectionModel.select(e))}_updateModelValue(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(xo,8))},t.\u0275dir=s.tc({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Po,!0),2&t&&s.gd(n=s.Rc())&&(e._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(s.lc("aria-disabled",e.disabled),s.oc("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:[s.jc([Co,{provide:So,useExisting:t}])]}),t})();class Oo{}const Io=yn(Oo);let Po=(()=>{class t extends Io{constructor(t,e,i,n,a,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._focusMonitor=n,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new s.s;const r=Number(a);this.tabIndex=r||0===r?r:null,this.buttonToggleGroup=t,this.appearance=o&&o.appearance?o.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const e=di(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=di(t)}ngOnInit(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||`mat-button-toggle-${Do++}`,this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const 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 Eo(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ao,8),s.yc(s.j),s.yc(s.q),s.yc(Qi),s.Nc("tabindex"),s.yc(xo,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&s.zd(wo,!0),2&t&&s.gd(i=s.Rc())&&(e._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&s.Qc("focus",(function(){return e.focus()})),2&t&&(s.lc("tabindex",-1)("id",e.id)("name",null),s.oc("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:[s.hc],ngContentSelectors:ko,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&&(s.Zc(),s.Dc(0,"button",0,1),s.Qc("click",(function(){return e._onButtonClick()})),s.Dc(2,"div",2),s.Yc(3),s.Cc(),s.Cc(),s.zc(4,"div",3),s.zc(5,"div",4)),2&t){const t=s.hd(1);s.ad("id",e.buttonId)("disabled",e.disabled||null),s.lc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.kc(5),s.ad("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[qn],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{line-height:48px;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 48px}.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})(),Ro=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[fn,Gn],fn]}),t})();const To=["*",[["mat-card-footer"]]],Mo=["*","mat-card-footer"],Fo=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Lo=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],zo=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],No=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let Bo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),Vo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),jo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),Uo=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),$o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t})(),Ho=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),qo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t})(),Go=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t})(),Wo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t})(),Yo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t})(),Qo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),Ko=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:Mo,decls:2,vars:0,template:function(t,e){1&t&&(s.Zc(To),s.Yc(0),s.Yc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),Xo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:Lo,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.Zc(Fo),s.Yc(0),s.Dc(1,"div",0),s.Yc(2,1),s.Cc(),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),Zo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:No,decls:4,vars:0,template:function(t,e){1&t&&(s.Zc(zo),s.Dc(0,"div"),s.Yc(1),s.Cc(),s.Yc(2,1),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),Jo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[fn],fn]}),t})();const tr=["input"],er=function(){return{enterDuration:150}},ir=["*"],nr=new s.v("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),sr=new s.v("mat-checkbox-click-action");let ar=0;const or={provide:xs,useExisting:Object(s.cb)(()=>dr),multi:!0};class rr{}class lr{constructor(t){this._elementRef=t}}const cr=vn(_n(yn(bn(lr))));let dr=(()=>{class t extends cr{constructor(t,e,i,n,a,o,r,l){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=o,this._animationMode=r,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++ar}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.s,this.indeterminateChange=new s.s,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(a)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=di(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=di(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=di(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new rr;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){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(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(Qi),s.yc(s.F),s.Nc("tabindex"),s.yc(sr,8),s.yc(Ae,8),s.yc(nr,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(s.zd(tr,!0),s.zd(qn,!0)),2&t&&(s.gd(i=s.Rc())&&(e._inputElement=i.first),s.gd(i=s.Rc())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Gc("id",e.id),s.lc("tabindex",null),s.oc("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",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s.jc([or]),s.hc],ngContentSelectors:ir,decls:17,vars:19,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&&(s.Zc(),s.Dc(0,"label",0,1),s.Dc(2,"div",2),s.Dc(3,"input",3,4),s.Qc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Cc(),s.Dc(5,"div",5),s.zc(6,"div",6),s.Cc(),s.zc(7,"div",7),s.Dc(8,"div",8),s.Tc(),s.Dc(9,"svg",9),s.zc(10,"path",10),s.Cc(),s.Sc(),s.zc(11,"div",11),s.Cc(),s.Cc(),s.Dc(12,"span",12,13),s.Qc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Dc(14,"span",14),s.vd(15,"\xa0"),s.Cc(),s.Yc(16),s.Cc(),s.Cc()),2&t){const t=s.hd(1),i=s.hd(13);s.lc("for",e.inputId),s.kc(2),s.oc("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.kc(1),s.ad("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.lc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),s.kc(2),s.ad("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.cd(18,er))}},directives:[qn,Oi],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}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .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})();const hr={provide:Ns,useExisting:Object(s.cb)(()=>ur),multi:!0};let ur=(()=>{class t extends oo{}return t.\u0275fac=function(e){return mr(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.jc([hr]),s.hc]}),t})();const mr=s.Fc(ur);let pr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),gr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Gn,fn,Ii,pr],fn,pr]}),t})();function fr(t){return new si.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(vs.a)(i):oi()).subscribe(e)})}var br=i("VRyK");function _r(t,e,i,n){return Object(Ve.a)(i)&&(n=i,i=void 0),n?_r(t,e,i).pipe(Object(ii.a)(t=>Object(_s.a)(t)?n(...t):n(t))):new si.a(n=>{!function t(e,i,n,s,a){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,a),o=()=>t.removeEventListener(i,n,a)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,n),o=()=>t.off(i,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,n),o=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,r=e.length;o1?Array.prototype.slice.call(arguments):t)}),n,i)})}class yr extends qe{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class vr extends We{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),Cr={};function Sr(t){return t in Cr&&(delete Cr[t],!0)}const Dr={setImmediate(t){const e=kr++;return Cr[e]=!0,xr.then(()=>Sr(e)&&t()),e},clearImmediate(t){Sr(t)}};class Er extends qe{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Dr.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Dr.clearImmediate(e),t.scheduled=void 0)}}class Ar extends We{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new Pr(t,e))}class Pr{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Rr(t,this.compare,this.keySelector))}}class Rr extends Ne.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var Tr=i("l7GE"),Mr=i("ZUHj");class Fr{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Lr(t,this.durationSelector))}}class Lr extends Tr.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(Mr.a)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function zr(t){return!Object(_s.a)(t)&&t-parseFloat(t)+1>=0}function Nr(t=0,e,i){let n=-1;return zr(e)?n=Number(e)<1?1:Number(e):Object(Te.a)(e)&&(i=e),Object(Te.a)(i)||(i=Ye),new si.a(e=>{const s=zr(t)?t:+t-i.now();return i.schedule(Br,s,{index:0,period:n,subscriber:e})})}function Br(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Vr(t,e=Ye){return i=()=>Nr(t,e),function(t){return t.lift(new Fr(i))};var i}function jr(t){return e=>e.lift(new Ur(t))}class Ur{constructor(t){this.notifier=t}call(t,e){const i=new $r(t),n=Object(Mr.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class $r extends Tr.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var Hr=i("51Dv");function qr(t,e){return"function"==typeof e?i=>i.pipe(qr((i,n)=>Object(vs.a)(t(i,n)).pipe(Object(ii.a)((t,s)=>e(i,t,n,s))))):e=>e.lift(new Gr(t))}class Gr{constructor(t){this.project=t}call(t,e){return e.subscribe(new Wr(t,this.project))}}class Wr extends Tr.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new Hr.a(this,e,i),a=this.destination;a.add(s),this.innerSubscription=Object(Mr.a)(this,t,void 0,void 0,s),this.innerSubscription!==s&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}class Yr extends qe{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class Qr extends We{}const Kr=new Qr(Yr);function Xr(t,e){return new si.a(e?i=>e.schedule(Zr,0,{error:t,subscriber:i}):e=>e.error(t))}function Zr({error:t,subscriber:e}){e.error(t)}let Jr=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(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()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Le(this.value);case"E":return Xr(this.error);case"C":return oi()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class tl extends Ne.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(tl.dispatch,this.delay,new el(t,this.destination)))}_next(t){this.scheduleMessage(Jr.createNext(t))}_error(t){this.scheduleMessage(Jr.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Jr.createComplete()),this.unsubscribe()}}class el{constructor(t,e){this.notification=t,this.destination=e}}var il=i("9ppp"),nl=i("Ylt2");class sl extends Pe.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new al(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let a;if(this.closed)throw new il.a;if(this.isStopped||this.hasError?a=Re.a.EMPTY:(this.observers.push(t),a=new nl.a(this,t)),n&&t.add(t=new tl(t,n)),e)for(let o=0;oe&&(a=Math.max(a,s-e)),a>0&&n.splice(0,a),n}}class al{constructor(t,e){this.time=t,this.value=e}}let ol=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new Pe.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new si.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Vr(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Le()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Je(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>_r(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(s.F),s.Mc(bi),s.Mc(ye.e,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(s.F),Object(s.Mc)(bi),Object(s.Mc)(ye.e,8))},token:t,providedIn:"root"}),t})(),rl=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new Pe.a,this._elementScrolled=new si.a(t=>this.ngZone.runOutsideAngular(()=>_r(this.elementRef.nativeElement,"scroll").pipe(jr(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Si()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Si()?t.left=t.right:1==Si()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const 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))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Si()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Si()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(ol),s.yc(s.F),s.yc(en,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),ll=(()=>{class t{constructor(t,e,i){this._platform=t,this._document=i,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?Object(br.a)(_r(e,"resize"),_r(e,"orientationchange")):Le(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Vr(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(bi),s.Mc(s.F),s.Mc(ye.e,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(bi),Object(s.Mc)(s.F),Object(s.Mc)(ye.e,8))},token:t,providedIn:"root"}),t})(),cl=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[sn,_i],sn]}),t})();function dl(){throw Error("Host already has a portal attached")}class hl{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&dl(),this._attachedHost=t,t.attach(this)}detach(){let 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())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class ul extends hl{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class ml extends hl{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class pl extends hl{constructor(t){super(),this.element=t instanceof s.q?t.nativeElement:t}}class gl{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&dl(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof ul?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ml?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof pl?(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.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class fl extends gl{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let bl=(()=>{class t extends ml{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U),s.yc(s.X))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[s.hc]}),t})(),_l=(()=>{class t extends gl{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.s,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.n),s.yc(s.X),s.yc(ye.e))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.hc]}),t})(),yl=(()=>{class t extends _l{}return t.\u0275fac=function(e){return vl(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[s.jc([{provide:_l,useExisting:t}]),s.hc]}),t})();const vl=s.Fc(yl);let wl=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();class kl{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}class xl{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=mi(-this._previousScrollPosition.left),t.style.top=mi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function Cl(){return Error("Scroll strategy has already been attached.")}class Sl{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw Cl();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Dl{enable(){}disable(){}attach(){}}function El(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Al(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class Ol{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw Cl();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();El(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Il=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Dl,this.close=t=>new Sl(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new xl(this._viewportRuler,this._document),this.reposition=t=>new Ol(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ol),s.Mc(ll),s.Mc(s.F),s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(ol),Object(s.Mc)(ll),Object(s.Mc)(s.F),Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})();class Pl{constructor(t){if(this.scrollStrategy=new Dl,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Rl{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Tl{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function Ml(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function Fl(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let Ll=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})();const zl=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Nl=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||zl){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEventsObservable=new si.a(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new Pe.a,this._keydownEventSubscriptions=0,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=mi(this._config.width),t.height=mi(this._config.height),t.minWidth=mi(this._config.minWidth),t.minHeight=mi(this._config.minHeight),t.maxWidth=mi(this._config.maxWidth),t.maxHeight=mi(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;ui(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(jr(Object(br.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Vl=/([A-Za-z%]+)$/;class jl{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Pe.a,this._resizeSubscription=Re.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let a of this._preferredPositions){let o=this._getOriginPoint(t,a),r=this._getOverlayPoint(o,e,a),l=this._getOverlayFit(r,e,i,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,o);this._canFitWithFlexibleDimensions(l,r,i)?n.push({position:a,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,a)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ul(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)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:a}=t,o=this._getOffset(n,"x"),r=this._getOffset(n,"y");o&&(s+=o),r&&(a+=r);let l=0-a,c=a+e.height-i.height,d=this._subtractOverflows(e.width,0-s,s+e.width-i.width),h=this._subtractOverflows(e.height,l,c),u=d*h;return{visibleArea:u,isCompletelyWithinViewport:e.width*e.height===u,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:d==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,a=$l(this._overlayRef.getConfig().minHeight),o=$l(this._overlayRef.getConfig().minWidth),r=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=a&&a<=n)&&r}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.right,0),a=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-i.top-t.y,0),r=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?r||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,r=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;r=2*e,l=t.x-e,r>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:a,left:l,bottom:o,right:c,width:r,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=mi(i.height),n.top=mi(i.top),n.bottom=mi(i.bottom),n.width=mi(i.width),n.left=mi(i.left),n.right=mi(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=mi(t)),s&&(n.maxWidth=mi(s))}this._lastBoundingBoxSize=i,Ul(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Ul(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ul(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Ul(i,this._getExactOverlayY(e,t,n)),Ul(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",r=this._getOffset(e,"x"),l=this._getOffset(e,"y");r&&(o+=`translateX(${r}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),a.maxHeight&&(n?i.maxHeight=mi(a.maxHeight):s&&(i.maxHeight="")),a.maxWidth&&(n?i.maxWidth=mi(a.maxWidth):s&&(i.maxWidth="")),Ul(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=a,"bottom"===t.overlayY?n.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:n.top=mi(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=`${this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)}px`:s.left=mi(a.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Al(t,i),isOriginOutsideView:El(t,i),isOverlayClipped:Al(e,i),isOverlayOutsideView:El(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{Fl("originX",t.originX),Ml("originY",t.originY),Fl("overlayX",t.overlayX),Ml("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&ui(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.q)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ul(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function $l(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Vl);return i&&"px"!==i?null:parseFloat(e)}return t||null}class Hl{constructor(t,e,i,n,s,a,o){this._preferredPositions=[],this._positionStrategy=new jl(i,n,s,a,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new Rl(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class ql{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:a,maxHeight:o}=i,r=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=r?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,r?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=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Gl=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new ql}connectedTo(t,e,i){return new Hl(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new jl(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ll),s.Mc(ye.e),s.Mc(bi),s.Mc(Nl))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(ll),Object(s.Mc)(ye.e),Object(s.Mc)(bi),Object(s.Mc)(Nl))},token:t,providedIn:"root"}),t})(),Wl=0,Yl=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=a,this._ngZone=o,this._document=r,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Pl(t);return s.direction=s.direction||this._directionality.value,new Bl(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${Wl++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new fl(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Il),s.Mc(Nl),s.Mc(s.n),s.Mc(Gl),s.Mc(Ll),s.Mc(s.w),s.Mc(s.F),s.Mc(ye.e),s.Mc(en),s.Mc(ye.n,8))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Ql=[{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"}],Kl=new s.v("cdk-connected-overlay-scroll-strategy");let Xl=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Zl=(()=>{class t{constructor(t,e,i,n,a){this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Re.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new s.s,this.positionChange=new s.s,this.attach=new s.s,this.detach=new s.s,this.overlayKeydown=new s.s,this._templatePortal=new ml(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=di(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=di(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=di(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=di(t)}get push(){return this._push}set push(t){this._push=di(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Ql),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||ze(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Pl({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}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Yl),s.yc(s.U),s.yc(s.X),s.yc(Kl),s.yc(en,8))},t.\u0275dir=s.tc({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"},exportAs:["cdkConnectedOverlay"],features:[s.ic]}),t})();const Jl={provide:Kl,deps:[Yl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tc=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Yl,Jl],imports:[[sn,wl,cl],cl]}),t})();const ec=["underline"],ic=["connectionContainer"],nc=["inputContainer"],sc=["label"];function ac(t,e){1&t&&(s.Bc(0),s.Dc(1,"div",14),s.zc(2,"div",15),s.zc(3,"div",16),s.zc(4,"div",17),s.Cc(),s.Dc(5,"div",18),s.zc(6,"div",15),s.zc(7,"div",16),s.zc(8,"div",17),s.Cc(),s.Ac())}function oc(t,e){1&t&&(s.Dc(0,"div",19),s.Yc(1,1),s.Cc())}function rc(t,e){if(1&t&&(s.Bc(0),s.Yc(1,2),s.Dc(2,"span"),s.vd(3),s.Cc(),s.Ac()),2&t){const t=s.Uc(2);s.kc(3),s.wd(t._control.placeholder)}}function lc(t,e){1&t&&s.Yc(0,3,["*ngSwitchCase","true"])}function cc(t,e){1&t&&(s.Dc(0,"span",23),s.vd(1," *"),s.Cc())}function dc(t,e){if(1&t){const t=s.Ec();s.Dc(0,"label",20,21),s.Qc("cdkObserveContent",(function(){return s.ld(t),s.Uc().updateOutlineGap()})),s.td(2,rc,4,1,"ng-container",12),s.td(3,lc,1,0,void 0,12),s.td(4,cc,2,0,"span",22),s.Cc()}if(2&t){const t=s.Uc();s.oc("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.ad("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.lc("for",t._control.id)("aria-owns",t._control.id),s.kc(2),s.ad("ngSwitchCase",!1),s.kc(1),s.ad("ngSwitchCase",!0),s.kc(1),s.ad("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function hc(t,e){1&t&&(s.Dc(0,"div",24),s.Yc(1,4),s.Cc())}function uc(t,e){if(1&t&&(s.Dc(0,"div",25,26),s.zc(2,"span",27),s.Cc()),2&t){const t=s.Uc();s.kc(2),s.oc("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function mc(t,e){if(1&t&&(s.Dc(0,"div"),s.Yc(1,5),s.Cc()),2&t){const t=s.Uc();s.ad("@transitionMessages",t._subscriptAnimationState)}}function pc(t,e){if(1&t&&(s.Dc(0,"div",31),s.vd(1),s.Cc()),2&t){const t=s.Uc(2);s.ad("id",t._hintLabelId),s.kc(1),s.wd(t.hintLabel)}}function gc(t,e){if(1&t&&(s.Dc(0,"div",28),s.td(1,pc,2,2,"div",29),s.Yc(2,6),s.zc(3,"div",30),s.Yc(4,7),s.Cc()),2&t){const t=s.Uc();s.ad("@transitionMessages",t._subscriptAnimationState),s.kc(1),s.ad("ngIf",t.hintLabel)}}const fc=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bc=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let _c=0,yc=(()=>{class t{constructor(){this.id=`mat-error-${_c++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("id",e.id)},inputs:{id:"id"}}),t})();const vc={transitionMessages:o("transitionMessages",[h("enter",d({opacity:1,transform:"translateY(0%)"})),m("void => enter",[d({opacity:0,transform:"translateY(-100%)"}),r("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let wc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t}),t})();function kc(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let xc=0,Cc=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${xc++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.lc("id",e.id)("align",null),s.oc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),Sc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-label"]]}),t})(),Dc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-placeholder"]]}),t})(),Ec=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","matPrefix",""]]}),t})(),Ac=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","matSuffix",""]]}),t})(),Oc=0;class Ic{constructor(t){this._elementRef=t}}const Pc=_n(Ic,"primary"),Rc=new s.v("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Tc=new s.v("MatFormField");let Mc=(()=>{class t extends Pc{constructor(t,e,i,n,s,a,o,r){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=a,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Pe.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Oc++}`,this._labelId=`mat-form-field-label-${Oc++}`,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==r,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=di(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(cn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(jr(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(jr(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(br.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(cn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(cn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(jr(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,_r(this._label.nativeElement,"transitionend").pipe(ri(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(i=>{if("start"===i.align){if(t||this.hintLabel)throw kc("start");t=i}else if("end"===i.align){if(e)throw kc("end");e=i}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),a=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const a=this._getStartEnd(s),o=this._getStartEnd(t.children[0].getBoundingClientRect());let r=0;for(const e of t.children)r+=e.offsetWidth;e=Math.abs(o-a)-5,i=r>0?.75*r+10:0}for(let o=0;o{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,Ii]]}),t})();function Lc(t,e=Ye){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new zc(n,e))}class zc{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Nc(t,this.delay,this.scheduler))}}class Nc extends Ne.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Nc.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Bc(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Jr.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Jr.createComplete()),this.unsubscribe()}}class Bc{constructor(t,e){this.time=t,this.notification=e}}const Vc=["panel"];function jc(t,e){if(1&t&&(s.Dc(0,"div",0,1),s.Yc(2),s.Cc()),2&t){const t=s.Uc();s.ad("id",t.id)("ngClass",t._classList)}}const Uc=["*"];let $c=0;class Hc{constructor(t,e){this.source=t,this.option=e}}class qc{}const Gc=yn(qc),Wc=new s.v("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let Yc=(()=>{class t extends Gc{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Re.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.s,this.opened=new s.s,this.closed=new s.s,this.optionActivated=new s.s,this._classList={},this.id=`mat-autocomplete-${$c++}`,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=di(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new zi(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new Hc(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(s.q),s.yc(Wc))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,ns,!0),s.qc(i,Zn,!0)),2&t&&(s.gd(n=s.Rc())&&(e.options=n),s.gd(n=s.Rc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.rd(s.U,!0),s.zd(Vc,!0)),2&t&&(s.gd(i=s.Rc())&&(e.template=i.first),s.gd(i=s.Rc())&&(e.panel=i.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:[s.jc([{provide:is,useExisting:t}]),s.hc],ngContentSelectors:Uc,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.Zc(),s.td(0,jc,3,2,"ng-template"))},directives:[ye.q],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})(),Qc=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t})();const Kc=new s.v("mat-autocomplete-scroll-strategy"),Xc={provide:Kc,deps:[Yl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Zc={provide:xs,useExisting:Object(s.cb)(()=>Jc),multi:!0};let Jc=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=r,this._document=l,this._viewportRuler=c,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Re.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Pe.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=fr(()=>this.autocomplete&&this.autocomplete.options?Object(br.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(ri(1),qr(()=>this.optionSelections))),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=di(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&(this._zone.runOutsideAngular(()=>{t.addEventListener("blur",this._windowBlurHandler)}),this._isInsideShadowRoot=!!Di(this._element.nativeElement))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){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())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(br.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Je(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Je(()=>this._overlayAttached)):Le()).pipe(Object(ii.a)(t=>t instanceof es?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(br.a)(_r(this._document,"click"),_r(this._document,"touchend")).pipe(Je(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const 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){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=ss(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=as(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(ri(1)),e=this.autocomplete.options.changes.pipe(je(()=>this._positionStrategy.reapplyLastPosition()),Lc(0));return Object(br.a)(t,e).pipe(qr(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),ri(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(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()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){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.");let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new ml(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(27===t.keyCode||38===t.keyCode&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})}))),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Pl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},i={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};let n;n="above"===this.position?[i]:"below"===this.position?[e]:[e,i],t.withPositions(n)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Yl),s.yc(s.X),s.yc(s.F),s.yc(s.j),s.yc(Kc),s.yc(en,8),s.yc(Tc,9),s.yc(ye.e,8),s.yc(ll))},t.\u0275dir=s.tc({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.Qc("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&&s.lc("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:[s.jc([Zc]),s.ic]}),t})(),td=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Xc],imports:[[os,tc,fn,ye.c],os,fn]}),t})();function ed(t,e){}class id{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const nd={dialogContainer:o("dialogContainer",[h("void, exit",d({opacity:0,transform:"scale(0.7)"})),h("enter",d({transform:"none"})),m("* => enter",r("150ms cubic-bezier(0, 0, 0.2, 1)",d({transform:"none",opacity:1}))),m("* => void, * => exit",r("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",d({opacity:0})))])};function sd(){throw Error("Attempting to attach dialog content after content is already attached")}let ad=(()=>{class t extends gl{constructor(t,e,i,n,a){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=a,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new s.s,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&sd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&sd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&sd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc($i),s.yc(s.j),s.yc(ye.e,8),s.yc(id))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&s.rd(_l,!0),2&t&&s.gd(i=s.Rc())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.pc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(s.lc("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),s.yd("@dialogContainer",e._state))},features:[s.hc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.td(0,ed,0,0,"ng-template",0)},directives:[_l],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:[nd.dialogContainer]}}),t})(),od=0;class rd{constructor(t,e,i=`mat-dialog-${od++}`){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Pe.a,this._afterClosed=new Pe.a,this._beforeClosed=new Pe.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Je(t=>"done"===t.phaseName&&"enter"===t.toState),ri(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Je(t=>"done"===t.phaseName&&"exit"===t.toState),ri(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Je(t=>27===t.keyCode&&!this.disableClose&&!ze(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Je(t=>"start"===t.phaseName),ri(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let 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}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const ld=new s.v("MatDialogData"),cd=new s.v("mat-dialog-default-options"),dd=new s.v("mat-dialog-scroll-strategy"),hd={provide:dd,deps:[Yl],useFactory:function(t){return()=>t.scrollStrategies.block()}};let ud=(()=>{class t{constructor(t,e,i,n,s,a,o){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=a,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.a,this._afterOpenedAtThisLevel=new Pe.a,this._ariaHiddenElements=new Map,this.afterAllClosed=fr(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(cn(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new id)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Pl({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}_attachDialogContainer(t,e){const i=s.w.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:id,useValue:e}]}),n=new ul(ad,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new rd(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe(()=>{a.disableClose||a.close()}),t instanceof s.U)e.attachTemplatePortal(new ml(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),s=e.attachComponentPortal(new ul(t,n.viewContainerRef,i));a.componentInstance=s.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,a=[{provide:ad,useValue:i},{provide:ld,useValue:t.data},{provide:rd,useValue:e}];return!t.direction||n&&n.get(en,null)||a.push({provide:en,useValue:{value:t.direction,change:Le()}}),s.w.create({parent:n||this._injector,providers:a})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Yl),s.Mc(s.w),s.Mc(ye.n,8),s.Mc(cd,8),s.Mc(dd),s.Mc(t,12),s.Mc(Nl))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),md=0,pd=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=_d(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(rd,8),s.yc(s.q),s.yc(ud))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&s.lc("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:[s.ic]}),t})(),gd=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id=`mat-dialog-title-${md++}`}ngOnInit(){this._dialogRef||(this._dialogRef=_d(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(rd,8),s.yc(s.q),s.yc(ud))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Gc("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),fd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),bd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function _d(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let yd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[ud,hd],imports:[[tc,wl,fn],fn]}),t})(),vd=0,wd=(()=>{class t{constructor(){this._stateChanges=new Pe.a,this._openCloseAllActions=new Pe.a,this.id=`cdk-accordion-${vd++}`,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=di(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s.ic]}),t})(),kd=0,xd=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Re.a.EMPTY,this.closed=new s.s,this.opened=new s.s,this.destroyed=new s.s,this.expandedChange=new s.s,this.id=`cdk-accordion-child-${kd++}`,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=di(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())}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(wd,12),s.yc(s.j),s.yc(bs))},t.\u0275dir=s.tc({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s.jc([{provide:wd,useValue:void 0}])]}),t})(),Cd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const Sd=["body"];function Dd(t,e){}const Ed=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ad=["mat-expansion-panel-header","*","mat-action-row"],Od=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Id=function(t,e){return{value:t,params:e}};function Pd(t,e){if(1&t&&s.zc(0,"span",2),2&t){const t=s.Uc();s.ad("@indicatorRotate",t._getExpandedState())}}const Rd=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Td=["mat-panel-title","mat-panel-description","*"],Md=new s.v("MAT_ACCORDION"),Fd={indicatorRotate:o("indicatorRotate",[h("collapsed, void",d({transform:"rotate(0deg)"})),h("expanded",d({transform:"rotate(180deg)"})),m("expanded <=> collapsed, void => collapsed",r("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[h("collapsed, void",d({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),h("expanded",d({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),m("expanded <=> collapsed, void => collapsed",l([g("@indicatorRotate",p(),{optional:!0}),r("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[h("collapsed, void",d({height:"0px",visibility:"hidden"})),h("expanded",d({height:"*",visibility:"visible"})),m("expanded <=> collapsed, void => collapsed",r("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let Ld=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U))},t.\u0275dir=s.tc({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),zd=0;const Nd=new s.v("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Bd=(()=>{class t extends xd{constructor(t,e,i,n,a,o,r){super(t,e,i),this._viewContainerRef=n,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new s.s,this.afterCollapse=new s.s,this._inputChanges=new Pe.a,this._headerId=`mat-expansion-panel-header-${zd++}`,this._bodyAnimationDone=new Pe.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Ir((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),r&&(this.hideToggle=r.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=di(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(cn(null),Je(()=>this.expanded&&!this._portal),ri(1)).subscribe(()=>{this._portal=new ml(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Md,12),s.yc(s.j),s.yc(bs),s.yc(s.X),s.yc(ye.e),s.yc(Ae,8),s.yc(Nd,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ld,!0),2&t&&s.gd(n=s.Rc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&s.zd(Sd,!0),2&t&&s.gd(i=s.Rc())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.oc("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:[s.jc([{provide:Md,useValue:void 0}]),s.hc,s.ic],ngContentSelectors:Ad,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&&(s.Zc(Ed),s.Yc(0),s.Dc(1,"div",0,1),s.Qc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),s.Dc(3,"div",2),s.Yc(4,1),s.td(5,Dd,0,0,"ng-template",3),s.Cc(),s.Yc(6,2),s.Cc()),2&t&&(s.kc(1),s.ad("@bodyExpansion",e._getExpandedState())("id",e.id),s.lc("aria-labelledby",e._headerId),s.kc(4),s.ad("cdkPortalOutlet",e._portal))},directives:[_l],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)}.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:[Fd.bodyExpansion]},changeDetection:0}),t})(),Vd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t})(),jd=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=Re.a.EMPTY,this._animationsDisabled=!0;const a=t.accordion?t.accordion._stateChanges.pipe(Je(t=>!(!t.hideToggle&&!t.togglePosition))):ai;this._parentChangeSubscription=Object(br.a)(t.opened,t.closed,a,t._inputChanges.pipe(Je(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Je(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),i.monitor(e).subscribe(e=>{e&&t.accordion&&t.accordion._handleHeaderFocus(this)}),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}_animationStarted(){this._animationsDisabled=!1}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_keydown(t){switch(t.keyCode){case 32:case 13:ze(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Bd,1),s.yc(s.q),s.yc(Qi),s.yc(s.j),s.yc(Nd,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(s.pc("@expansionHeight.start",(function(){return e._animationStarted()})),s.Qc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(s.lc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.yd("@.disabled",e._animationsDisabled)("@expansionHeight",s.ed(16,Id,e._getExpandedState(),s.ed(13,Od,e.collapsedHeight,e.expandedHeight))),s.oc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Td,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.Zc(Rd),s.Dc(0,"span",0),s.Yc(1),s.Yc(2,1),s.Yc(3,2),s.Cc(),s.td(4,Pd,1,1,"span",1)),2&t&&(s.kc(4),s.ad("ngIf",e._showToggle()))},directives:[ye.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.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:[Fd.indicatorRotate,Fd.expansionHeaderHeight]},changeDetection:0}),t})(),Ud=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),$d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Hd=(()=>{class t extends wd{constructor(){super(...arguments),this._ownHeaders=new s.K,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=di(t)}ngAfterContentInit(){this._headers.changes.pipe(cn(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Ni(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;36===e?ze(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?ze(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return qd(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,jd,!0),2&t&&s.gd(n=s.Rc())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s.jc([{provide:Md,useExisting:t}]),s.hc]}),t})();const qd=s.Fc(Hd);let Gd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,Cd,wl]]}),t})();const Wd=["*"],Yd=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],Qd=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Kd=new s.v("MAT_GRID_LIST");let Xd=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(hi(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(hi(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Kd,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&s.lc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Wd,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(s.Zc(),s.Dc(0,"figure",0),s.Yc(1),s.Cc())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Zd=(()=>{class t{constructor(t){this._element=t}ngAfterContentInit(){zn(this._lines,this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ln,!0),2&t&&s.gd(n=s.Rc())&&(e._lines=n)},ngContentSelectors:Qd,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(s.Zc(Yd),s.Yc(0),s.Dc(1,"div",0),s.Yc(2,1),s.Cc(),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),Jd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),t})(),th=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),t})(),eh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),t})();class ih{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new nh(this.rowIndex,e)}_findMatchingGap(t){if(t>this.tracker.length)throw Error(`mat-grid-list: tile with colspan ${t} is wider than `+`grid with cols="${this.tracker.length}".`);let e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)))}while(i-e{t._setStyle("top",null),t._setStyle("height",null)})}}class rh extends ah{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",ch(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",ch(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");if(2!==e.length)throw Error(`mat-grid-list: invalid ratio given for row-height: "${t}"`);this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class lh extends ah{setRowStyles(t,e){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",ch(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function ch(t){return`calc(${t})`}function dh(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let hh=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(hi(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${null==t?"":t}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${null==t?"":t}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new lh:t&&t.indexOf(":")>-1?new rh(t):new oh(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new ih);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,i),e.forEach((e,i)=>{const n=t.positions[i];this._tileStyler.setStyle(e,n.row,n.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(en,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Xd,!0),2&t&&s.gd(n=s.Rc())&&(e._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[s.jc([{provide:Kd,useExisting:t}])],ngContentSelectors:Wd,decls:2,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Dc(0,"div"),s.Yc(1),s.Cc())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),uh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Bn,fn],Bn,fn]}),t})();function mh(t){return function(e){const i=new ph(t),n=e.lift(i);return i.caught=n}}class ph{constructor(t){this.selector=t}call(t,e){return e.subscribe(new gh(t,this.selector,this.caught))}}class gh extends Tr.a{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new Hr.a(this,void 0,void 0);this.add(n);const s=Object(Mr.a)(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function fh(t){return e=>e.lift(new bh(t))}class bh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new _h(t,this.callback))}}class _h extends Ne.a{constructor(t,e){super(t),this.add(new Re.a(e))}}var yh=i("w1tV"),vh=i("5+tZ");function wh(t,e){return Object(vh.a)(t,e,1)}class kh{}class xh{}class Ch{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ch?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Ch;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ch?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Sh{encodeKey(t){return Dh(t)}encodeValue(t){return Dh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Dh(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,"/")}class Eh{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Sh,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,a]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(a),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Eh({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Ah(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Oh(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Ih(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Ph{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Ch),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),r)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new Ph(e,i,s,{params:l,headers:r,reportProgress:o,responseType:n,withCredentials:a})}}const Rh=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class Th{constructor(t,e=200,i="OK"){this.headers=t.headers||new Ch,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Mh extends Th{constructor(t={}){super(t),this.type=Rh.ResponseHeader}clone(t={}){return new Mh({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})}}class Fh extends Th{constructor(t={}){super(t),this.type=Rh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Fh({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})}}class Lh extends Th{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function zh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Nh=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof Ph)n=t;else{let s=void 0;s=i.headers instanceof Ch?i.headers:new Ch(i.headers);let a=void 0;i.params&&(a=i.params instanceof Eh?i.params:new Eh({fromObject:i.params})),n=new Ph(t,e,void 0!==i.body?i.body:null,{headers:s,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Le(n).pipe(wh(t=>this.handler.handle(t)));if(t instanceof Ph||"events"===i.observe)return s;const a=s.pipe(Je(t=>t instanceof Fh));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(Object(ii.a)(t=>t.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Eh).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,zh(i,e))}post(t,e,i={}){return this.request("POST",t,zh(i,e))}put(t,e,i={}){return this.request("PUT",t,zh(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(kh))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class Bh{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Vh=new s.v("HTTP_INTERCEPTORS");let jh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Uh=/^\)\]\}',?\n/;class $h{}let Hh=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),qh=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new si.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",a=new Ch(i.getAllResponseHeaders()),o=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 Mh({headers:a,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:r}=a(),l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Uh,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=t,c&&(c=!1,l={error:d,text:l})}}c?(e.next(new Fh({body:l,headers:n,status:s,statusText:o,url:r||void 0})),e.complete()):e.error(new Lh({error:l,headers:n,status:s,statusText:o,url:r||void 0}))},r=t=>{const{url:n}=a(),s=new Lh({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let l=!1;const c=n=>{l||(e.next(a()),l=!0);let s={type:Rh.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},d=t=>{let i={type:Rh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",r),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",d)),i.send(n),e.next({type:Rh.Sent}),()=>{i.removeEventListener("error",r),i.removeEventListener("load",o),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",d)),i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Mc($h))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Gh=new s.v("XSRF_COOKIE_NAME"),Wh=new s.v("XSRF_HEADER_NAME");class Yh{}let Qh=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(ye.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ye.e),s.Mc(s.I),s.Mc(Gh))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Kh=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Yh),s.Mc(Wh))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Xh=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Vh,[]);this.chain=t.reduceRight((t,e)=>new Bh(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(xh),s.Mc(s.w))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Zh=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Kh,useClass:jh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Gh,useValue:e.cookieName}:[],e.headerName?{provide:Wh,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Kh,{provide:Vh,useExisting:Kh,multi:!0},{provide:Yh,useClass:Qh},{provide:Gh,useValue:"XSRF-TOKEN"},{provide:Wh,useValue:"X-XSRF-TOKEN"}]}),t})(),Jh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Nh,{provide:kh,useClass:Xh},qh,{provide:xh,useExisting:qh},Hh,{provide:$h,useExisting:Hh}],imports:[[Zh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const tu=["*"];function eu(t){return Error(`Unable to find icon with the name "${t}"`)}function iu(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function nu(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class su{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let au=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new su(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const a=this._sanitizer.sanitize(s.P.HTML,i);if(!a)throw nu(i);const o=this._createSvgElementForSingleIcon(a,n);return this._addSvgIconConfig(t,e,new su(o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new su(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.P.HTML,e);if(!n)throw nu(e);const a=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new su(a,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.P.RESOURCE_URL,t);if(!e)throw iu(t);const i=this._cachedIconsByUrl.get(e);return i?Le(ou(i)):this._loadSvgIconFromConfig(new su(t)).pipe(je(t=>this._cachedIconsByUrl.set(e,t)),Object(ii.a)(t=>ou(t)))}getNamedSvgIcon(t,e=""){const i=ru(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Xr(eu(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Le(ou(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(je(e=>t.svgElement=e),Object(ii.a)(t=>ou(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Le(i):ws(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(mh(e=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(s.P.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i),Le(null)})))).pipe(Object(ii.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw eu(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgElement){const e=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(Object(ii.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Le(t.svgElement):this._fetchUrl(t.url).pipe(Object(ii.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const a=this._svgElementFromString("");return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(e)),Object(yh.a)());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(ru(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Nh,8),s.Mc(n.b),s.Mc(ye.e,8),s.Mc(s.r,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Nh,8),Object(s.Mc)(n.b),Object(s.Mc)(ye.e,8),Object(s.Mc)(s.r,8))},token:t,providedIn:"root"}),t})();function ou(t){return t.cloneNode(!0)}function ru(t,e){return t+":"+e}class lu{constructor(t){this._elementRef=t}}const cu=_n(lu),du=new s.v("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(s.db)(ye.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),hu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],uu=hu.map(t=>`[${t}]`).join(", "),mu=/^url\(['"]?#(.*?)['"]?\)$/;let pu=(()=>{class t extends cu{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=di(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(e,t).pipe(ri(1)).subscribe(t=>this._setSvgElement(t),i=>{const n=`Error retrieving icon ${t}:${e}! ${i.message}`;this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(uu),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],a=s.getAttribute(t),o=a?a.match(mu):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(au),s.Nc("aria-hidden"),s.yc(du,8),s.yc(s.r,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&s.oc("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[s.hc,s.ic],ngContentSelectors:tu,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),gu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[fn],fn]}),t})();const fu=Ci({passive:!0});let bu=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return ai;const e=pi(t),i=this._monitoredElements.get(e);if(i)return i.subject.asObservable();const n=new Pe.a,s="cdk-text-field-autofilled",a=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",a,fu),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",a,fu)}}),n.asObservable()}stopMonitoring(t){const e=pi(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(bi),s.Mc(s.F))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(bi),Object(s.Mc)(s.F))},token:t,providedIn:"root"}),t})(),_u=(()=>{class t{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new s.s}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bu))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),yu=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new Pe.a,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(t){this._minRows=hi(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=hi(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=di(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{_r(this._getWindow(),"resize").pipe(Vr(16),jr(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let 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()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=e.placeholder;e.classList.add("cdk-textarea-autosize-measuring"),e.placeholder="",e.style.height=`${e.scrollHeight-4}px`,e.classList.remove("cdk-textarea-autosize-measuring"),e.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bi),s.yc(s.F),s.yc(ye.e,8))},t.\u0275dir=s.tc({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.Qc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),vu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[_i]]}),t})(),wu=(()=>{class t extends yu{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return ku(e||t)},t.\u0275dir=s.tc({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:[s.hc]}),t})();const ku=s.Fc(wu),xu=new s.v("MAT_INPUT_VALUE_ACCESSOR"),Cu=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Su=0;class Du{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Eu=wn(Du);let Au=(()=>{class t extends Eu{constructor(t,e,i,n,s,a,o,r,l){super(a,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=r,this._uid=`mat-input-${Su++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new Pe.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>vi().has(t));const c=this._elementRef.nativeElement;this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===c.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=di(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=di(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&vi().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=di(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(Cu.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const 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}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bi),s.yc(Ts,10),s.yc(Fa,8),s.yc(Qa,8),s.yc(Fn),s.yc(xu,10),s.yc(bu),s.yc(s.F))},t.\u0275dir=s.tc({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&&s.Qc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(s.Gc("disabled",e.disabled)("required",e.required),s.lc("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),s.oc("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:[s.jc([{provide:wc,useExisting:t}]),s.hc,s.ic]}),t})(),Ou=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Fn],imports:[[vu,Fc],vu,Fc]}),t})(),Iu=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=di(t)}get inset(){return this._inset}set inset(t){this._inset=di(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.lc("aria-orientation",e.vertical?"vertical":"horizontal"),s.oc("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})(),Pu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[fn],fn]}),t})();const Ru=["*"],Tu=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Mu=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Fu=["text"];function Lu(t,e){if(1&t&&s.zc(0,"mat-pseudo-checkbox",5),2&t){const t=s.Uc();s.ad("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const zu=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Nu=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class Bu{}const Vu=bn(yn(Bu));class ju{}const Uu=yn(ju);let $u=(()=>{class t extends Vu{constructor(){super(...arguments),this._stateChanges=new Pe.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return Hu(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.hc,s.ic],ngContentSelectors:Ru,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const Hu=s.Fc($u);let qu=(()=>{class t extends Vu{constructor(t){super(),this._elementRef=t,this._stateChanges=new Pe.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s.hc,s.ic],ngContentSelectors:Ru,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),Gu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),Yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),Qu=(()=>{class t extends Uu{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new Pe.a,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(jr(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=di(t)}ngAfterContentInit(){zn(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc($u,8),s.yc(qu,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Gu,!0),s.qc(i,Wu,!0),s.qc(i,Ln,!0)),2&t&&(s.gd(n=s.Rc())&&(e._avatar=n.first),s.gd(n=s.Rc())&&(e._icon=n.first),s.gd(n=s.Rc())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.oc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.hc],ngContentSelectors:Mu,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.Zc(Tu),s.Dc(0,"div",0),s.zc(1,"div",1),s.Yc(2),s.Dc(3,"div",2),s.Yc(4,1),s.Cc(),s.Yc(5,2),s.Cc()),2&t&&(s.kc(1),s.ad("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[qn],encapsulation:2,changeDetection:0}),t})();class Ku{}const Xu=yn(Ku);class Zu{}const Ju=yn(Zu),tm={provide:xs,useExisting:Object(s.cb)(()=>nm),multi:!0};class em{constructor(t,e){this.source=t,this.option=e}}let im=(()=>{class t extends Ju{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=di(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=di(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){zn(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(Object(s.cb)(()=>nm)))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Gu,!0),s.qc(i,Wu,!0),s.qc(i,Ln,!0)),2&t&&(s.gd(n=s.Rc())&&(e._avatar=n.first),s.gd(n=s.Rc())&&(e._icon=n.first),s.gd(n=s.Rc())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&s.zd(Fu,!0),2&t&&s.gd(i=s.Rc())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.Qc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(s.lc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),s.oc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[s.hc],ngContentSelectors:Nu,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(s.Zc(zu),s.Dc(0,"div",0),s.zc(1,"div",1),s.td(2,Lu,1,2,"mat-pseudo-checkbox",2),s.Dc(3,"div",3,4),s.Yc(5),s.Cc(),s.Yc(6,1),s.Cc()),2&t&&(s.oc("mat-list-item-content-reverse","after"==e.checkboxPosition),s.kc(1),s.ad("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),s.kc(1),s.ad("ngIf",e.selectionList.multiple))},directives:[qn,ye.t,Wn],encapsulation:2,changeDetection:0}),t})(),nm=(()=>{class t extends Xu{constructor(t,e,i){super(),this._element=t,this._changeDetector=i,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new s.s,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new fs(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new Pe.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=di(t);if(e!==this._multiple){if(Object(s.eb)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new fs(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Ni(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(jr(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(cn(null),jr(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(jr(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=ze(t);switch(e){case 32:case 13:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:s||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&ze(t,"ctrlKey")&&!i.isTyping()?(this.options.find(t=>!t.selected)?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new em(this,t))}_onFocus(){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}_setAllOptionsSelected(t){let e=!1;this.options.forEach(i=>{i._setSelected(t)&&(e=!0)}),e&&this._reportValueChange()}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.Nc("tabindex"),s.yc(s.j))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,im,!0),2&t&&s.gd(n=s.Rc())&&(e.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&s.Qc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onTouched()}))("keydown",(function(t){return e._keydown(t)})),2&t&&s.lc("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[s.jc([tm]),s.hc,s.ic],ngContentSelectors:Ru,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),sm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Bn,Gn,fn,Yn,ye.c],Bn,fn,Yn,Pu]}),t})();const am=["mat-menu-item",""],om=["*"];function rm(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",0),s.Qc("keydown",(function(e){return s.ld(t),s.Uc()._handleKeydown(e)}))("click",(function(){return s.ld(t),s.Uc().closed.emit("click")}))("@transformMenu.start",(function(e){return s.ld(t),s.Uc()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return s.ld(t),s.Uc()._onAnimationDone(e)})),s.Dc(1,"div",1),s.Yc(2),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.ad("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.lc("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const lm={transformMenu:o("transformMenu",[h("void",d({opacity:0,transform:"scale(0.8)"})),m("void => enter",l([g(".mat-menu-content, .mat-mdc-menu-content",r("100ms linear",d({opacity:1}))),r("120ms cubic-bezier(0, 0, 0.2, 1)",d({transform:"scale(1)"}))])),m("* => void",r("100ms 25ms linear",d({opacity:0})))]),fadeInItems:o("fadeInItems",[h("showing",d({opacity:1})),m("void => *",[d({opacity:0}),r("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let cm=(()=>{class t{constructor(t,e,i,n,s,a,o){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=a,this._changeDetectorRef=o,this._attached=new Pe.a}attach(t={}){this._portal||(this._portal=new ml(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new fl(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const 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()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U),s.yc(s.n),s.yc(s.g),s.yc(s.w),s.yc(s.X),s.yc(ye.e),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["ng-template","matMenuContent",""]]}),t})();const dm=new s.v("MAT_MENU_PANEL");class hm{}const um=yn(bn(hm));let mm=(()=>{class t extends um{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new Pe.a,this._focused=new Pe.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.monitor(this._elementRef,!1),n&&n.addItem&&n.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let i="";if(t.childNodes){const n=t.childNodes.length;for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.K,this._tabSubscription=Re.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pe.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.s,this.close=this.closed,this.panelId=`mat-menu-panel-${gm++}`}get xPosition(){return this._xPosition}set xPosition(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=di(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=di(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ni(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),qr(t=>Object(br.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),qr(t=>Object(br.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:ze(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:ze(t)||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(cn(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(pm))},t.\u0275dir=s.tc({type:t,contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,cm,!0),s.qc(i,mm,!0),s.qc(i,mm,!1)),2&t&&(s.gd(n=s.Rc())&&(e.lazyContent=n.first),s.gd(n=s.Rc())&&(e._allItems=n),s.gd(n=s.Rc())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&s.zd(s.U,!0),2&t&&s.gd(i=s.Rc())&&(e.templateRef=i.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})(),bm=(()=>{class t extends fm{}return t.\u0275fac=function(e){return _m(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const _m=s.Fc(bm);let ym=(()=>{class t extends bm{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(pm))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[s.jc([{provide:dm,useExisting:bm},{provide:bm,useExisting:t}]),s.hc],ngContentSelectors:om,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&&(s.Zc(),s.td(0,rm,3,6,"ng-template"))},directives:[ye.q],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:[lm.transformMenu,lm.fadeInItems]},changeDetection:0}),t})();const vm=new s.v("mat-menu-scroll-strategy"),wm={provide:vm,deps:[Yl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},km=Ci({passive:!0});let xm=(()=>{class t{constructor(t,e,i,n,a,o,r,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=o,this._dir=r,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Re.a.EMPTY,this._hoverSubscription=Re.a.EMPTY,this._menuCloseSubscription=Re.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new s.s,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.s,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,km),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=n}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,km),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof bm&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof bm?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Je(t=>"void"===t.toState),ri(1),jr(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){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")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Pl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,o]=[n,s],[r,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=r="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(a="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:a,overlayX:r,overlayY:n,offsetY:c},{originX:i,originY:a,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:r,overlayY:s,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:Le(),n=this._parentMenu?this._parentMenu._hovered().pipe(Je(t=>t!==this._menuItemInstance),Je(()=>this._menuOpen)):Le();return Object(br.a)(t,i,n,e)}_handleMousedown(t){Xi(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Je(t=>t===this._menuItemInstance&&!t.disabled),Lc(0,Or)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof bm&&this.menu._isAnimating?this.menu._animationDone.pipe(ri(1),Lc(0,Or),jr(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new ml(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Yl),s.yc(s.q),s.yc(s.X),s.yc(vm),s.yc(bm,8),s.yc(mm,10),s.yc(en,8),s.yc(Qi))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.Qc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&s.lc("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})(),Cm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[wm],imports:[fn]}),t})(),Sm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[wm],imports:[[ye.c,fn,Gn,tc,Cm],Cm]}),t})();const Dm={};function Em(...t){let e=null,i=null;return Object(Te.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(_s.a)(t[0])&&(t=t[0]),Object(Me.a)(t,i).lift(new Am(e))}class Am{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Om(t,this.resultSelector))}}class Om extends Tr.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Dm),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;ithis.total&&this.destination.next(t)}}const Rm=new Set;let Tm,Mm=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Fm}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Rm.has(t))try{Tm||(Tm=document.createElement("style"),Tm.setAttribute("type","text/css"),document.head.appendChild(Tm)),Tm.sheet&&(Tm.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Rm.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(bi))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(bi))},token:t,providedIn:"root"}),t})();function Fm(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Lm=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new Pe.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return zm(ui(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Em(zm(ui(t)).map(t=>this._registerQuery(t).observable));return e=ln(e.pipe(ri(1)),e.pipe(t=>t.lift(new Im(1)),Qe(0))),e.pipe(Object(ii.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new si.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(cn(e),Object(ii.a)(e=>({query:t,matches:e.matches})),jr(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Mm),s.Mc(s.F))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Mm),Object(s.Mc)(s.F))},token:t,providedIn:"root"}),t})();function zm(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Nm={tooltipState:o("state",[h("initial, void, hidden",d({opacity:0,transform:"scale(0)"})),h("visible",d({transform:"scale(1)"})),m("* => visible",r("200ms cubic-bezier(0, 0, 0.2, 1)",u([d({opacity:0,transform:"scale(0)",offset:0}),d({opacity:.5,transform:"scale(0.99)",offset:.5}),d({opacity:1,transform:"scale(1)",offset:1})]))),m("* => hidden",r("100ms cubic-bezier(0, 0, 0.2, 1)",d({opacity:0})))])},Bm=Ci({passive:!0});function Vm(t){return Error(`Tooltip position "${t}" is invalid.`)}const jm=new s.v("mat-tooltip-scroll-strategy"),Um={provide:jm,deps:[Yl],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},$m=new s.v("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Hm=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c,d,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=a,this._ariaDescriber=o,this._focusMonitor=r,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Pe.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!ze(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),r.monitor(e).pipe(jr(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&s.run(()=>this.show()):s.run(()=>this.hide(0))}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?`${t}`.trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,i)=>{t.removeEventListener(i,e,Bm)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new ul(qm,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(jr(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(jr(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(jr(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Vm(e);i={originX:"end",originY:"center"}}const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Vm(e);i={overlayX:"start",overlayY:"center"}}const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1),jr(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(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}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,Bm)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Yl),s.yc(s.q),s.yc(ol),s.yc(s.X),s.yc(s.F),s.yc(bi),s.yc(Fi),s.yc(Qi),s.yc(jm),s.yc(en,8),s.yc($m,8),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","matTooltip",""]],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})(),qm=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Pe.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(Lm))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e._handleBodyInteraction()}),!1,s.id),2&t&&s.sd("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.Dc(0,"div",0),s.Qc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),s.Vc(1,"async"),s.vd(2),s.Cc()),2&t){var i;const t=null==(i=s.Wc(1,5,e._isHandset))?null:i.matches;s.oc("mat-tooltip-handset",t),s.ad("ngClass",e.tooltipClass)("@state",e._visibility),s.kc(2),s.wd(e.message)}},directives:[ye.q],pipes:[ye.b],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:[Nm.tooltipState]},changeDetection:0}),t})(),Gm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Um],imports:[[Ji,ye.c,tc,fn],fn]}),t})();const Wm=["primaryValueBar"];class Ym{constructor(t){this._elementRef=t}}const Qm=_n(Ym,"primary"),Km=new s.v("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(s.db)(ye.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let Xm=0,Zm=(()=>{class t extends Qm{constructor(t,e,i,n){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new s.s,this._animationEndSubscription=Re.a.EMPTY,this.mode="determinate",this.progressbarId=`mat-progress-bar-${Xm++}`;const a=n?n.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${a}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=Jm(hi(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=Jm(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=_r(t,"transitionend").pipe(Je(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(Ae,8),s.yc(Km,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&s.zd(Wm,!0),2&t&&s.gd(i=s.Rc())&&(e._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(s.lc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),s.oc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[s.hc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(s.Tc(),s.Dc(0,"svg",0),s.Dc(1,"defs"),s.Dc(2,"pattern",1),s.zc(3,"circle",2),s.Cc(),s.Cc(),s.zc(4,"rect",3),s.Cc(),s.Sc(),s.zc(5,"div",4),s.zc(6,"div",5,6),s.zc(8,"div",7)),2&t&&(s.kc(2),s.ad("id",e.progressbarId),s.kc(2),s.lc("fill",e._rectangleFillValue),s.kc(1),s.ad("ngStyle",e._bufferTransform()),s.kc(1),s.ad("ngStyle",e._primaryTransform()))},directives:[ye.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function Jm(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let tp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,fn],fn]}),t})();function ep(t,e){if(1&t&&(s.Tc(),s.zc(0,"circle",3)),2&t){const t=s.Uc();s.sd("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.lc("r",t._circleRadius)}}function ip(t,e){if(1&t&&(s.Tc(),s.zc(0,"circle",3)),2&t){const t=s.Uc();s.sd("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.lc("r",t._circleRadius)}}function np(t,e){if(1&t&&(s.Tc(),s.zc(0,"circle",3)),2&t){const t=s.Uc();s.sd("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.lc("r",t._circleRadius)}}function sp(t,e){if(1&t&&(s.Tc(),s.zc(0,"circle",3)),2&t){const t=s.Uc();s.sd("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.lc("r",t._circleRadius)}}class ap{constructor(t){this._elementRef=t}}const op=_n(ap,"primary"),rp=new s.v("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let lp=(()=>{class t extends op{constructor(e,i,n,s,a){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!a&&!a._forceAnimations,a&&(a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=hi(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=hi(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,hi(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Di(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}get _strokeCircumference(){return 2*Math.PI*this._circleRadius}get _strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}get _circleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,`${.95*this._strokeCircumference}`).replace(/END_VALUE/g,`${.2*this._strokeCircumference}`).replace(/DIAMETER/g,`${this.diameter}`)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bi),s.yc(ye.e,8),s.yc(Ae,8),s.yc(rp))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.lc("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),s.sd("width",e.diameter,"px")("height",e.diameter,"px"),s.oc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.hc],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&&(s.Tc(),s.Dc(0,"svg",0),s.td(1,ep,1,9,"circle",1),s.td(2,ip,1,7,"circle",2),s.Cc()),2&t&&(s.sd("width",e.diameter,"px")("height",e.diameter,"px"),s.ad("ngSwitch","indeterminate"===e.mode),s.lc("viewBox",e._viewBox),s.kc(1),s.ad("ngSwitchCase",!0),s.kc(1),s.ad("ngSwitchCase",!1))},directives:[ye.x,ye.y],styles:[".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}.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"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),cp=(()=>{class t extends lp{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bi),s.yc(ye.e,8),s.yc(Ae,8),s.yc(rp))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.sd("width",e.diameter,"px")("height",e.diameter,"px"),s.oc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.hc],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&&(s.Tc(),s.Dc(0,"svg",0),s.td(1,np,1,9,"circle",1),s.td(2,sp,1,7,"circle",2),s.Cc()),2&t&&(s.sd("width",e.diameter,"px")("height",e.diameter,"px"),s.ad("ngSwitch","indeterminate"===e.mode),s.lc("viewBox",e._viewBox),s.kc(1),s.ad("ngSwitchCase",!0),s.kc(1),s.ad("ngSwitchCase",!1))},directives:[ye.x,ye.y],styles:[".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}.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"],encapsulation:2,changeDetection:0}),t})(),dp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[fn,ye.c],fn]}),t})();const hp=["input"],up=function(){return{enterDuration:150}},mp=["*"],pp=new s.v("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let gp=0;const fp={provide:xs,useExisting:Object(s.cb)(()=>_p),multi:!0};class bp{constructor(t,e){this.source=t,this.value=e}}let _p=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name=`mat-radio-group-${gp++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.s}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=di(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new bp(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,wp,!0),2&t&&s.gd(n=s.Rc())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[s.jc([fp])]}),t})();class yp{constructor(t){this._elementRef=t}}const vp=yn(vn(yp));let wp=(()=>{class t extends vp{constructor(t,e,i,n,a,o,r){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=a,this._animationMode=o,this._providerOverride=r,this._uniqueId=`mat-radio-${++gp}`,this.id=this._uniqueId,this.change=new s.s,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=a.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=di(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(di(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=di(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new bp(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.yc(_p,8),s.yc(s.q),s.yc(s.j),s.yc(Qi),s.yc(bs),s.yc(Ae,8),s.yc(pp,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&s.zd(hp,!0),2&t&&s.gd(i=s.Rc())&&(e._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&s.Qc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(s.lc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.oc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[s.hc],ngContentSelectors:mp,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(s.Zc(),s.Dc(0,"label",0,1),s.Dc(2,"div",2),s.zc(3,"div",3),s.zc(4,"div",4),s.Dc(5,"input",5,6),s.Qc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),s.Cc(),s.Dc(7,"div",7),s.zc(8,"div",8),s.Cc(),s.Cc(),s.Dc(9,"div",9),s.Dc(10,"span",10),s.vd(11,"\xa0"),s.Cc(),s.Yc(12),s.Cc(),s.Cc()),2&t){const t=s.hd(1);s.lc("for",e.inputId),s.kc(5),s.ad("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),s.lc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),s.kc(2),s.ad("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.cd(18,up)),s.kc(2),s.oc("mat-radio-label-before","before"==e.labelPosition)}},directives:[qn],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),kp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Gn,fn],fn]}),t})();const xp=["trigger"],Cp=["panel"];function Sp(t,e){if(1&t&&(s.Dc(0,"span",8),s.vd(1),s.Cc()),2&t){const t=s.Uc();s.kc(1),s.wd(t.placeholder||"\xa0")}}function Dp(t,e){if(1&t&&(s.Dc(0,"span"),s.vd(1),s.Cc()),2&t){const t=s.Uc(2);s.kc(1),s.wd(t.triggerValue||"\xa0")}}function Ep(t,e){1&t&&s.Yc(0,0,["*ngSwitchCase","true"])}function Ap(t,e){if(1&t&&(s.Dc(0,"span",9),s.td(1,Dp,2,1,"span",10),s.td(2,Ep,1,0,void 0,11),s.Cc()),2&t){const t=s.Uc();s.ad("ngSwitch",!!t.customTrigger),s.kc(2),s.ad("ngSwitchCase",!0)}}function Op(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",12),s.Dc(1,"div",13,14),s.Qc("@transformPanel.done",(function(e){return s.ld(t),s.Uc()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return s.ld(t),s.Uc()._handleKeydown(e)})),s.Yc(3,1),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.ad("@transformPanelWrap",void 0),s.kc(1),s.nc("mat-select-panel ",t._getPanelTheme(),""),s.sd("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.ad("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing")}}const Ip=[[["mat-select-trigger"]],"*"],Pp=["mat-select-trigger","*"],Rp={transformPanelWrap:o("transformPanelWrap",[m("* => void",g("@transformPanel",[p()],{optional:!0}))]),transformPanel:o("transformPanel",[h("void",d({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h("showing",d({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h("showing-multiple",d({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),m("void => *",r("120ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void",r("100ms 25ms linear",d({opacity:0})))])};let Tp=0;const Mp=new s.v("mat-select-scroll-strategy"),Fp=new s.v("MAT_SELECT_CONFIG"),Lp={provide:Mp,deps:[Yl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class zp{constructor(t,e){this.source=t,this.value=e}}class Np{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Bp=yn(vn(bn(wn(Np))));let Vp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-select-trigger"]]}),t})(),jp=(()=>{class t extends Bp{constructor(t,e,i,n,a,o,r,l,c,d,h,u,m,p){super(a,n,r,l,d),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=o,this._parentFormField=c,this.ngControl=d,this._liveAnnouncer=m,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid=`mat-select-${Tp++}`,this._destroy=new Pe.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new Pe.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=fr(()=>{const t=this.options;return t?t.changes.pipe(cn(t),qr(()=>Object(br.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(ri(1),qr(()=>this.optionSelectionChanges))}),this.openedChange=new s.s,this._openedStream=this.openedChange.pipe(Je(t=>t),Object(ii.a)(()=>{})),this._closedStream=this.openedChange.pipe(Je(t=>!t),Object(ii.a)(()=>{})),this.selectionChange=new s.s,this.valueChange=new s.s,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,p&&(null!=p.disableOptionCentering&&(this.disableOptionCentering=p.disableOptionCentering),null!=p.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=p.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=di(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=di(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=di(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=hi(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new fs(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ir(),jr(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(jr(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(jr(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(cn(null),jr(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.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(ri(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!ze(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;36===e||35===e?(36===e?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const n=this.selected;n&&i!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||ze(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(ri(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return Object(s.eb)()&&console.warn(i),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new zi(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(jr(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(jr(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(br.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(jr(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(br.a)(...this.options.map(t=>t._stateChanges)).pipe(jr(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==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(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new zp(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=ss(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=as(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,i,n)=>void 0!==e?e:t===i?n:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=ss(s,this.options,this.optionGroups);const a=i/2;this._scrollTop=this._calculateOverlayScroll(s,a,n),this._offsetY=this._calculateOverlayOffsetY(s,a,n),this._checkOverlayWithinViewport(n)}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const a=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);a>0?s+=a+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,a=Math.floor(256/n);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-a))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):a>n?this._adjustPanelDown(a,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(s.yc(ll),s.yc(s.j),s.yc(s.F),s.yc(Fn),s.yc(s.q),s.yc(en,8),s.yc(Fa,8),s.yc(Qa,8),s.yc(Tc,8),s.yc(Ts,10),s.Nc("tabindex"),s.yc(Mp),s.yc(Gi),s.yc(Fp,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Vp,!0),s.qc(i,ns,!0),s.qc(i,Zn,!0)),2&t&&(s.gd(n=s.Rc())&&(e.customTrigger=n.first),s.gd(n=s.Rc())&&(e.options=n),s.gd(n=s.Rc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.zd(xp,!0),s.zd(Cp,!0),s.zd(Zl,!0)),2&t&&(s.gd(i=s.Rc())&&(e.trigger=i.first),s.gd(i=s.Rc())&&(e.panel=i.first),s.gd(i=s.Rc())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&s.Qc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(s.lc("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()),s.oc("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:[s.jc([{provide:wc,useExisting:t},{provide:is,useExisting:t}]),s.hc,s.ic],ngContentSelectors:Pp,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&&(s.Zc(Ip),s.Dc(0,"div",0,1),s.Qc("click",(function(){return e.toggle()})),s.Dc(3,"div",2),s.td(4,Sp,2,1,"span",3),s.td(5,Ap,3,2,"span",4),s.Cc(),s.Dc(6,"div",5),s.zc(7,"div",6),s.Cc(),s.Cc(),s.td(8,Op,4,10,"ng-template",7),s.Qc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=s.hd(1);s.kc(3),s.ad("ngSwitch",e.empty),s.kc(1),s.ad("ngSwitchCase",!0),s.kc(1),s.ad("ngSwitchCase",!1),s.kc(3),s.ad("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Xl,ye.x,ye.y,Zl,ye.z,ye.q],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:[Rp.transformPanelWrap,Rp.transformPanel]},changeDetection:0}),t})(),Up=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Lp],imports:[[ye.c,tc,os,fn],Fc,os,fn]}),t})();const $p=["*"];function Hp(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",2),s.Qc("click",(function(){return s.ld(t),s.Uc()._onBackdropClicked()})),s.Cc()}if(2&t){const t=s.Uc();s.oc("mat-drawer-shown",t._isShowingBackdrop())}}function qp(t,e){1&t&&(s.Dc(0,"mat-drawer-content"),s.Yc(1,2),s.Cc())}const Gp=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Wp=["mat-drawer","mat-drawer-content","*"];function Yp(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",2),s.Qc("click",(function(){return s.ld(t),s.Uc()._onBackdropClicked()})),s.Cc()}if(2&t){const t=s.Uc();s.oc("mat-drawer-shown",t._isShowingBackdrop())}}function Qp(t,e){1&t&&(s.Dc(0,"mat-sidenav-content",3),s.Yc(1,2),s.Cc())}const Kp=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Xp=["mat-sidenav","mat-sidenav-content","*"],Zp={transformDrawer:o("transform",[h("open, open-instant",d({transform:"none",visibility:"visible"})),h("void",d({"box-shadow":"none",visibility:"hidden"})),m("void => open-instant",r("0ms")),m("void <=> open, open-instant => void",r("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Jp(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const tg=new s.v("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),eg=new s.v("MAT_DRAWER_CONTAINER");let ig=(()=>{class t extends rl{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(Object(s.cb)(()=>sg)),s.yc(s.q),s.yc(ol),s.yc(s.F))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.sd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.hc],ngContentSelectors:$p,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},encapsulation:2,changeDetection:0}),t})(),ng=(()=>{class t{constructor(t,e,i,n,a,o,r){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=a,this._doc=o,this._container=r,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Pe.a,this._animationEnd=new Pe.a,this._animationState="void",this.openedChange=new s.s(!0),this._destroyed=new Pe.a,this.onPositionChanged=new s.s,this._modeChanged=new Pe.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{_r(this._elementRef.nativeElement,"keydown").pipe(Je(t=>27===t.keyCode&&!this.disableClose&&!ze(t)),jr(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Ir((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=di(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=di(t)}get opened(){return this._opened}set opened(t){this.toggle(di(t))}get _openedStream(){return this.openedChange.pipe(Je(t=>t),Object(ii.a)(()=>{}))}get openedStart(){return this._animationStarted.pipe(Je(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(ii.a)(()=>{}))}get _closedStream(){return this.openedChange.pipe(Je(t=>!t),Object(ii.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(Je(t=>t.fromState!==t.toState&&"void"===t.toState),Object(ii.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(ri(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc($i),s.yc(Qi),s.yc(bi),s.yc(s.F),s.yc(ye.e,8),s.yc(eg,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.pc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(s.lc("align",null),s.yd("@transform",e._animationState),s.oc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:$p,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.Zc(),s.Dc(0,"div",0),s.Yc(1),s.Cc())},encapsulation:2,data:{animation:[Zp.transformDrawer]},changeDetection:0}),t})(),sg=(()=>{class t{constructor(t,e,i,n,a,o=!1,r){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=r,this._drawers=new s.K,this.backdropClick=new s.s,this._destroyed=new Pe.a,this._doCheckSubject=new Pe.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Pe.a,t&&t.change.pipe(jr(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(jr(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=di(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:di(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(cn(this._allDrawers),jr(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(cn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Qe(10),jr(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const i=this._left._width;t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const i=this._right._width;e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Je(t=>t.fromState!==t.toState),jr(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(jr(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(jr(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(jr(Object(br.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&Jp("end"),this._end=t):(null!=this._start&&Jp("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.yc(en,8),s.yc(s.q),s.yc(s.F),s.yc(s.j),s.yc(ll),s.yc(tg),s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,ig,!0),s.qc(i,ng,!0)),2&t&&(s.gd(n=s.Rc())&&(e._content=n.first),s.gd(n=s.Rc())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&s.zd(ig,!0),2&t&&s.gd(i=s.Rc())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.jc([{provide:eg,useExisting:t}])],ngContentSelectors:Wp,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.Zc(Gp),s.td(0,Hp,1,2,"div",0),s.Yc(1),s.Yc(2,1),s.td(3,qp,2,0,"mat-drawer-content",1)),2&t&&(s.ad("ngIf",e.hasBackdrop),s.kc(3),s.ad("ngIf",!e._content))},directives:[ye.t,ig],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})(),ag=(()=>{class t extends ig{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(Object(s.cb)(()=>lg)),s.yc(s.q),s.yc(ol),s.yc(s.F))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.sd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.hc],ngContentSelectors:$p,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},encapsulation:2,changeDetection:0}),t})(),og=(()=>{class t extends ng{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=di(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=hi(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=hi(t)}}return t.\u0275fac=function(e){return rg(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.lc("align",null),s.sd("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.oc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.hc],ngContentSelectors:$p,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.Zc(),s.Dc(0,"div",0),s.Yc(1),s.Cc())},encapsulation:2,data:{animation:[Zp.transformDrawer]},changeDetection:0}),t})();const rg=s.Fc(og);let lg=(()=>{class t extends sg{}return t.\u0275fac=function(e){return cg(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,ag,!0),s.qc(i,og,!0)),2&t&&(s.gd(n=s.Rc())&&(e._content=n.first),s.gd(n=s.Rc())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.jc([{provide:eg,useExisting:t}]),s.hc],ngContentSelectors:Xp,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.Zc(Kp),s.td(0,Yp,1,2,"div",0),s.Yc(1),s.Yc(2,1),s.td(3,Qp,2,0,"mat-sidenav-content",1)),2&t&&(s.ad("ngIf",e.hasBackdrop),s.kc(3),s.ad("ngIf",!e._content))},directives:[ye.t,ag,rl],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})();const cg=s.Fc(lg);let dg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,fn,cl,_i],fn]}),t})();const hg=["thumbContainer"],ug=["toggleBar"],mg=["input"],pg=function(){return{enterDuration:150}},gg=["*"],fg=new s.v("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let bg=0;const _g={provide:xs,useExisting:Object(s.cb)(()=>kg),multi:!0};class yg{constructor(t,e){this.source=t,this.checked=e}}class vg{constructor(t){this._elementRef=t}}const wg=vn(_n(yn(bn(vg)),"accent"));let kg=(()=>{class t extends wg{constructor(t,e,i,n,a,o,r,l){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=o,this._animationMode=r,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId=`mat-slide-toggle-${++bg}`,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.s,this.toggleChange=new s.s,this.dragChange=new s.s,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=di(t)}get checked(){return this._checked}set checked(t){this._checked=di(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new yg(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Qi),s.yc(s.j),s.Nc("tabindex"),s.yc(s.F),s.yc(fg),s.yc(Ae,8),s.yc(en,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(s.zd(hg,!0),s.zd(ug,!0),s.zd(mg,!0)),2&t&&(s.gd(i=s.Rc())&&(e._thumbEl=i.first),s.gd(i=s.Rc())&&(e._thumbBarEl=i.first),s.gd(i=s.Rc())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Gc("id",e.id),s.lc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.oc("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",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[s.jc([_g]),s.hc],ngContentSelectors:gg,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&&(s.Zc(),s.Dc(0,"label",0,1),s.Dc(2,"div",2,3),s.Dc(4,"input",4,5),s.Qc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Cc(),s.Dc(6,"div",6,7),s.zc(8,"div",8),s.Dc(9,"div",9),s.zc(10,"div",10),s.Cc(),s.Cc(),s.Cc(),s.Dc(11,"span",11,12),s.Qc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Dc(13,"span",13),s.vd(14,"\xa0"),s.Cc(),s.Yc(15),s.Cc(),s.Cc()),2&t){const t=s.hd(1),i=s.hd(12);s.lc("for",e.inputId),s.kc(2),s.oc("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.kc(2),s.ad("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.lc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.kc(5),s.ad("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.cd(17,pg))}},directives:[qn,Oi],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})();const xg={provide:Ns,useExisting:Object(s.cb)(()=>Cg),multi:!0};let Cg=(()=>{class t extends oo{}return t.\u0275fac=function(e){return Sg(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[s.jc([xg]),s.hc]}),t})();const Sg=s.Fc(Cg);let Dg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),Eg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Dg,Gn,fn,Ii],Dg,fn]}),t})();function Ag(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",1),s.Dc(1,"button",2),s.Qc("click",(function(){return s.ld(t),s.Uc().action()})),s.vd(2),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(2),s.wd(t.data.action)}}function Og(t,e){}const Ig=Math.pow(2,31)-1;class Pg{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Pe.a,this._afterOpened=new Pe.a,this._onAction=new Pe.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Ig))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}const Rg=new s.v("MatSnackBarData");class Tg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Mg=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Pg),s.yc(Rg))},t.\u0275cmp=s.sc({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&&(s.Dc(0,"span"),s.vd(1),s.Cc(),s.td(2,Ag,3,1,"div",0)),2&t&&(s.kc(1),s.wd(e.data.message),s.kc(1),s.ad("ngIf",e.hasAction))},directives:[ye.t,ms],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})();const Fg={snackBarState:o("state",[h("void, hidden",d({transform:"scale(0.8)",opacity:0})),h("visible",d({transform:"scale(1)",opacity:1})),m("* => visible",r("150ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void, * => hidden",r("75ms cubic-bezier(0.4, 0.0, 1, 1)",d({opacity:0})))])};let Lg=(()=>{class t extends gl{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new Pe.a,this._onEnter=new Pe.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==n.politeness||n.announcementMessage?"off"===n.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>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")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.F),s.yc(s.q),s.yc(s.j),s.yc(Tg))},t.\u0275cmp=s.sc({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&s.rd(_l,!0),2&t&&s.gd(i=s.Rc())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&s.pc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(s.lc("role",e._role),s.yd("@state",e._animationState))},features:[s.hc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.td(0,Og,0,0,"ng-template",0)},directives:[_l],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:[Fg.snackBarState]}}),t})(),zg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[tc,wl,ye.c,gs,fn],fn]}),t})();const Ng=new s.v("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Tg}});let Bg=(()=>{class t{constructor(t,e,i,n,s,a){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage||(n.announcementMessage=t),this.openFromComponent(Mg,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=new kl(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Tg,e]])),n=new ul(Lg,e.viewContainerRef,i),s=t.attach(n);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new Tg),this._defaultConfig),e),n=this._createOverlay(i),a=this._attachSnackBarContainer(n,i),o=new Pg(a,n);if(t instanceof s.U){const e=new ml(t,null,{$implicit:i.data,snackBarRef:o});o.instance=a.attachTemplatePortal(e)}else{const e=this._createInjector(i,o),n=new ul(t,void 0,e),s=a.attachComponentPortal(n);o.instance=s.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(jr(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new Pl;e.direction=t.direction;let i=this._overlay.position().global();const n="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!n||"end"===t.horizontalPosition&&n,a=!s&&"center"!==t.horizontalPosition;return s?i.left("0"):a?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return new kl(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Pg,e],[Rg,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Yl),s.Mc(Gi),s.Mc(s.w),s.Mc(Lm),s.Mc(t,12),s.Mc(Ng))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Yl),Object(s.Mc)(Gi),Object(s.Mc)(s.t),Object(s.Mc)(Lm),Object(s.Mc)(t,12),Object(s.Mc)(Ng))},token:t,providedIn:zg}),t})();const Vg=["*",[["mat-toolbar-row"]]],jg=["*","mat-toolbar-row"];class Ug{constructor(t){this._elementRef=t}}const $g=_n(Ug);let Hg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),qg=(()=>{class t extends $g{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){Object(s.eb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(t=>!(t.classList&&t.classList.contains("mat-toolbar-row"))).filter(t=>t.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(t=>!(!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.")}()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bi),s.yc(ye.e))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Hg,!0),2&t&&s.gd(n=s.Rc())&&(e._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.oc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.hc],ngContentSelectors:jg,decls:2,vars:0,template:function(t,e){1&t&&(s.Zc(Vg),s.Yc(0),s.Yc(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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),t})(),Gg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[fn],fn]}),t})();function Wg(t,e){1&t&&s.Yc(0)}const Yg=["*"];function Qg(t,e){}const Kg=function(t){return{animationDuration:t}},Xg=function(t,e){return{value:t,params:e}},Zg=["tabBodyWrapper"],Jg=["tabHeader"];function tf(t,e){}function ef(t,e){if(1&t&&s.td(0,tf,0,0,"ng-template",9),2&t){const t=s.Uc().$implicit;s.ad("cdkPortalOutlet",t.templateLabel)}}function nf(t,e){if(1&t&&s.vd(0),2&t){const t=s.Uc().$implicit;s.wd(t.textLabel)}}function sf(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",6),s.Qc("click",(function(){s.ld(t);const i=e.$implicit,n=e.index,a=s.Uc(),o=s.hd(1);return a._handleClick(i,o,n)})),s.Dc(1,"div",7),s.td(2,ef,1,1,"ng-template",8),s.td(3,nf,1,1,"ng-template",8),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit,i=e.index,n=s.Uc();s.oc("mat-tab-label-active",n.selectedIndex==i),s.ad("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),s.lc("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),s.kc(2),s.ad("ngIf",t.templateLabel),s.kc(1),s.ad("ngIf",!t.templateLabel)}}function af(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-tab-body",10),s.Qc("_onCentered",(function(){return s.ld(t),s.Uc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return s.ld(t),s.Uc()._setTabBodyWrapperHeight(e)})),s.Cc()}if(2&t){const t=e.$implicit,i=e.index,n=s.Uc();s.oc("mat-tab-body-active",n.selectedIndex==i),s.ad("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),s.lc("aria-labelledby",n._getTabLabelId(i))}}const of=["tabListContainer"],rf=["tabList"],lf=["nextPaginator"],cf=["previousPaginator"],df=["mat-tab-nav-bar",""],hf=new s.v("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let uf=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(hf),s.yc(Ae,8))},t.\u0275dir=s.tc({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})(),mf=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U))},t.\u0275dir=s.tc({type:t,selectors:[["","matTabContent",""]]}),t})(),pf=(()=>{class t extends bl{}return t.\u0275fac=function(e){return gf(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.hc]}),t})();const gf=s.Fc(pf);class ff{}const bf=bn(ff),_f=new s.v("MAT_TAB_GROUP");let yf=(()=>{class t extends bf{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new Pe.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){t&&(this._templateLabel=t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ml(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.X),s.yc(_f,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,pf,!0),s.qd(i,mf,!0,s.U)),2&t&&(s.gd(n=s.Rc())&&(e.templateLabel=n.first),s.gd(n=s.Rc())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;1&t&&s.rd(s.U,!0),2&t&&s.gd(i=s.Rc())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.hc,s.ic],ngContentSelectors:Yg,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.td(0,Wg,1,0,"ng-template"))},encapsulation:2}),t})();const vf={translateTab:o("translateTab",[h("center, void, left-origin-center, right-origin-center",d({transform:"none"})),h("left",d({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),h("right",d({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),m("* => left, * => right, left => center, right => center",r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),m("void => left-origin-center",[d({transform:"translate3d(-100%, 0, 0)"}),r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),m("void => right-origin-center",[d({transform:"translate3d(100%, 0, 0)"}),r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let wf=(()=>{class t extends _l{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=Re.a.EMPTY,this._leavingSub=Re.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cn(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.n),s.yc(s.X),s.yc(Object(s.cb)(()=>xf)),s.yc(ye.e))},t.\u0275dir=s.tc({type:t,selectors:[["","matTabBodyHost",""]],features:[s.hc]}),t})(),kf=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=Re.a.EMPTY,this._translateTabComplete=new Pe.a,this._onCentering=new s.s,this._beforeCentering=new s.s,this._afterLeavingCenter=new s.s,this._onCentered=new s.s(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Ir((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(en,8),s.yc(s.j))},t.\u0275dir=s.tc({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),xf=(()=>{class t extends kf{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(en,8),s.yc(s.j))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&s.zd(yl,!0),2&t&&s.gd(i=s.Rc())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[s.hc],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.Dc(0,"div",0,1),s.Qc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),s.td(2,Qg,0,0,"ng-template",2),s.Cc()),2&t&&s.ad("@translateTab",s.ed(3,Xg,e._position,s.dd(1,Kg,e.animationDuration)))},directives:[wf],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:[vf.translateTab]}}),t})();const Cf=new s.v("MAT_TABS_CONFIG");let Sf=0;class Df{}class Ef{constructor(t){this._elementRef=t}}const Af=_n(yn(Ef),"primary");let Of=(()=>{class t extends Af{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new s.K,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=Re.a.EMPTY,this._tabLabelSubscription=Re.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.s,this.focusChange=new s.s,this.animationDone=new s.s,this.selectedTabChange=new s.s(!0),this._groupId=Sf++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=di(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=hi(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new Df;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(br.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(Cf,8),s.yc(Ae,8))},t.\u0275dir=s.tc({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.hc]}),t})(),If=(()=>{class t extends Of{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(Cf,8),s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,yf,!0),2&t&&s.gd(n=s.Rc())&&(e._allTabs=n)},viewQuery:function(t,e){var i;1&t&&(s.zd(Zg,!0),s.zd(Jg,!0)),2&t&&(s.gd(i=s.Rc())&&(e._tabBodyWrapper=i.first),s.gd(i=s.Rc())&&(e._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&s.oc("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.jc([{provide:_f,useExisting:t}]),s.hc],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(s.Dc(0,"mat-tab-header",0,1),s.Qc("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),s.td(2,sf,4,14,"div",2),s.Cc(),s.Dc(3,"div",3,4),s.td(5,af,1,8,"mat-tab-body",5),s.Cc()),2&t&&(s.ad("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),s.kc(2),s.ad("ngForOf",e._tabs),s.kc(1),s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.kc(2),s.ad("ngForOf",e._tabs))},directives:function(){return[zf,ye.s,Tf,qn,Ki,ye.t,_l,xf]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.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{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.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})();class Pf{}const Rf=bn(Pf);let Tf=(()=>{class t extends Rf{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(s.lc("aria-disabled",!!e.disabled),s.oc("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.hc]}),t})();const Mf=Ci({passive:!0});let Ff=(()=>{class t{constructor(t,e,i,n,a,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=a,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Pe.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Pe.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.s,this.indexFocused=new s.s,a.runOutsideAngular(()=>{_r(t.nativeElement,"mouseleave").pipe(jr(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=hi(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){_r(this._previousPaginator.nativeElement,"touchstart",Mf).pipe(jr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),_r(this._nextPaginator.nativeElement,"touchstart",Mf).pipe(jr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Le(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ni(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(br.a)(t,e,this._items.changes).pipe(jr(this._destroyed)).subscribe(()=>{i(),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(jr(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!ze(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.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t);break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let a,o;"ltr"==this._getLayoutDirection()?(a=n,o=a+s):(o=this._tabList.nativeElement.offsetWidth-n,a=o-s);const r=this.scrollDistance,l=this.scrollDistance+i;al&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const 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()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Nr(650,100).pipe(jr(Object(br.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(ll),s.yc(en,8),s.yc(s.F),s.yc(bi),s.yc(Ae,8))},t.\u0275dir=s.tc({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),Lf=(()=>{class t extends Ff{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(ll),s.yc(en,8),s.yc(s.F),s.yc(bi),s.yc(Ae,8))},t.\u0275dir=s.tc({type:t,inputs:{disableRipple:"disableRipple"},features:[s.hc]}),t})(),zf=(()=>{class t extends Lf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(ll),s.yc(en,8),s.yc(s.F),s.yc(bi),s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Tf,!1),2&t&&s.gd(n=s.Rc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(s.rd(uf,!0),s.rd(of,!0),s.rd(rf,!0),s.zd(lf,!0),s.zd(cf,!0)),2&t&&(s.gd(i=s.Rc())&&(e._inkBar=i.first),s.gd(i=s.Rc())&&(e._tabListContainer=i.first),s.gd(i=s.Rc())&&(e._tabList=i.first),s.gd(i=s.Rc())&&(e._nextPaginator=i.first),s.gd(i=s.Rc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&s.oc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.hc],ngContentSelectors:Yg,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&&(s.Zc(),s.Dc(0,"div",0,1),s.Qc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),s.zc(2,"div",2),s.Cc(),s.Dc(3,"div",3,4),s.Qc("keydown",(function(t){return e._handleKeydown(t)})),s.Dc(5,"div",5,6),s.Qc("cdkObserveContent",(function(){return e._onContentChanges()})),s.Dc(7,"div",7),s.Yc(8),s.Cc(),s.zc(9,"mat-ink-bar"),s.Cc(),s.Cc(),s.Dc(10,"div",8,9),s.Qc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),s.zc(12,"div",2),s.Cc()),2&t&&(s.oc("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.ad("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.kc(5),s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.kc(5),s.oc("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.ad("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[qn,Oi,uf],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-labels{justify-content:center}[mat-align-tabs=end] .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})(),Nf=(()=>{class t extends Ff{constructor(t,e,i,n,s,a,o){super(t,n,s,e,i,a,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(cn(null),jr(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(t){if(!this._items)return;const e=this._items.toArray();for(let i=0;i{class t extends Nf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(en,8),s.yc(s.F),s.yc(s.j),s.yc(ll),s.yc(bi,8),s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,$f,!0),2&t&&s.gd(n=s.Rc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(s.rd(uf,!0),s.rd(of,!0),s.rd(rf,!0),s.zd(lf,!0),s.zd(cf,!0)),2&t&&(s.gd(i=s.Rc())&&(e._inkBar=i.first),s.gd(i=s.Rc())&&(e._tabListContainer=i.first),s.gd(i=s.Rc())&&(e._tabList=i.first),s.gd(i=s.Rc())&&(e._nextPaginator=i.first),s.gd(i=s.Rc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&s.oc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.hc],attrs:df,ngContentSelectors:Yg,decls:13,vars:6,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-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["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&&(s.Zc(),s.Dc(0,"div",0,1),s.Qc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),s.zc(2,"div",2),s.Cc(),s.Dc(3,"div",3,4),s.Qc("keydown",(function(t){return e._handleKeydown(t)})),s.Dc(5,"div",5,6),s.Qc("cdkObserveContent",(function(){return e._onContentChanges()})),s.Dc(7,"div",7),s.Yc(8),s.Cc(),s.zc(9,"mat-ink-bar"),s.Cc(),s.Cc(),s.Dc(10,"div",8,9),s.Qc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),s.zc(12,"div",2),s.Cc()),2&t&&(s.oc("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.ad("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.kc(10),s.oc("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.ad("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[qn,Oi,uf],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-tab-links{display:flex}[mat-align-tabs=center] .mat-tab-links{justify-content:center}[mat-align-tabs=end] .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})();class Vf{}const jf=vn(yn(bn(Vf)));let Uf=(()=>{class t extends jf{constructor(t,e,i,n,s,a){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===a&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),s.monitor(e)}get active(){return this._isActive}set active(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Nf),s.yc(s.q),s.yc(Hn,8),s.Nc("tabindex"),s.yc(Qi),s.yc(Ae,8))},t.\u0275dir=s.tc({type:t,inputs:{active:"active"},features:[s.hc]}),t})(),$f=(()=>{class t extends Uf{constructor(t,e,i,n,s,a,o,r){super(t,e,s,a,o,r),this._tabLinkRipple=new $n(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Bf),s.yc(s.q),s.yc(s.F),s.yc(bi),s.yc(Hn,8),s.Nc("tabindex"),s.yc(Qi),s.yc(Ae,8))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(s.lc("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),s.oc("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.hc]}),t})(),Hf=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,fn,wl,Gn,Ii,Ji],fn]}),t})();function qf(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function Gf(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Wf(t,e){const i=e?"":"none";Gf(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function Yf(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function Qf(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}const Kf=Ci({passive:!0}),Xf=Ci({passive:!1});class Zf{constructor(t,e,i,n,s,a){this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=s,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Pe.a,this._pointerMoveSubscription=Re.a.EMPTY,this._pointerUpSubscription=Re.a.EMPTY,this._scrollSubscription=Re.a.EMPTY,this._resizeSubscription=Re.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Pe.a,this.started=new Pe.a,this.released=new Pe.a,this.ended=new Pe.a,this.entered=new Pe.a,this.exited=new Pe.a,this.dropped=new Pe.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{if(t.preventDefault(),!this._hasStartedDragging){const e=this._getPointerPositionOnPage(t);if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const e=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._updatePointerDirectionDelta(e),this._dropContainer)this._updateActiveDropContainer(e);else{const t=this._activeTransform;t.x=e.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=e.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:e,event:t,distance:this._getDragDistance(e),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=di(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>pi(t)),this._handles.forEach(t=>Wf(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=pi(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,Xf),e.addEventListener("touchstart",this._pointerDown,Kf),this._initialTransform=void 0,this._rootElement=e),this}withBoundaryElement(t){return this._boundaryElement=t?pi(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&ib(this._rootElement),ib(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&ib(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&ib(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){if(this.started.next({source:this}),nb(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){const t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(a,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(s,t)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(n),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var e}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=nb(e),s=!n&&0!==e.button,a=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor,a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(cn(null)).subscribe(()=>{this._scrollPosition=this._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());const r=this._previewTemplate;this._pickupPositionInElement=r&&r.template&&!r.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),a=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:s}),e.drop(this,i,this._initialContainer,a,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,e,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(t,e),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=Jf(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i){const e=t.viewContainer.createEmbeddedView(i,t.context);e.detectChanges(),n=sb(e,this._document),this._previewRef=e,t.matchSize?ab(n,this._rootElement):n.style.transform=Jf(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=tb(t),ab(n,t)}return Gf(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),Wf(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=Jf(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=Qf(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),a=Qf(e,"transition-duration"),o=Qf(e,"transition-delay");return Yf(a[s])+Yf(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=sb(this._placeholderRef,this._document)):i=tb(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,a=nb(e)?e.targetTouches[0]:e;return{x:s.left-i.left+(a.pageX-s.left-this._scrollPosition.left),y:s.top-i.top+(a.pageY-s.top-this._scrollPosition.top)}}_getPointerPositionOnPage(t){const e=nb(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}_getConstrainedPointerPosition(t){const e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,n=this._boundaryRect,s=this._previewRect,a=n.top+e,o=n.bottom-(s.height-e);i.x=eb(i.x,n.left+t,n.right-(s.width-t)),i.y=eb(i.y,a,o)}return i}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-s.x),o=Math.abs(i-s.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Wf(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Xf),t.removeEventListener("touchstart",this._pointerDown,Kf)}_applyRootElementTransform(t,e){const i=Jf(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,a=n.right-i.right,o=i.top-n.top,r=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>n.height?(o>0&&(e+=o),r>0&&(e-=r)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:nb(t)?e.touch:e?e.mouse:0}}function Jf(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function tb(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(let s=0;s!0,this.beforeStarted=new Pe.a,this.entered=new Pe.a,this.exited=new Pe.a,this.dropped=new Pe.a,this.sorted=new Pe.a,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Re.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pe.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=Ye){return(!zr(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Ye),new si.a(i=>(i.add(e.schedule(qf,t,{subscriber:i,counter:0,period:t})),i))}(0,wr).pipe(jr(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?pb(t,-2):2===this._verticalScrollDirection&&pb(t,2),1===this._horizontalScrollDirection?gb(t,-2):2===this._horizontalScrollDirection&&gb(t,2)})},this.element=pi(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=pi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const a=this._activeDraggables,o=a.indexOf(t),r=t.getPlaceholderElement();let l=a[s];if(l===t&&(l=a[s+1]),o>-1&&a.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(r,e),a.splice(s,0,t)}else pi(this.element).appendChild(r),a.push(t);r.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,a){this._reset(),null==a&&(a=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:a,container:this,previousContainer:i,isPointerOverContainer:n,distance:s})}withItems(t){return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&this._cacheItems(),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=pi(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getItemIndex(t){return this._isDragging?hb("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!db(this._clientRect,e,i))return;const s=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===a&&s.length>0)return;const o="horizontal"===this._orientation,r=hb(s,e=>e.drag===t),l=s[a],c=s[r].clientRect,d=l.clientRect,h=r>a?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?n.x:n.y;const u=this._getItemOffsetPx(c,d,h),m=this._getSiblingOffsetPx(r,s,h),p=s.slice();ob(s,r,a),this.sorted.next({previousIndex:r,currentIndex:a,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?u:m,a=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(a.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,cb(e.clientRect,0,s)):(a.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,cb(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.forEach((a,o)=>{o!==this._document&&a.clientRect&&!i&&db(a.clientRect,t,e)&&([n,s]=function(t,e,i,n){const s=fb(e,n),a=bb(e,i);let o=0,r=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(a){const e=t.scrollLeft;1===a?e>0&&(r=1):t.scrollWidth-e>t.clientWidth&&(r=2)}return[o,r]}(o,a.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:a,height:o}=this._viewportRuler.getViewportSize(),r={width:a,height:o,top:0,right:a,bottom:o,left:0};n=fb(r,e),s=bb(r,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach(t=>{const e=mb(t);t===this.element&&(this._clientRect=e),this._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:e})})}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:mb(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=pi(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>t.getRootElement().style.transform=""),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,a=e[t+-1*i];let o=s[n?"width":"height"]*i;if(a){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=a.clientRect[t]-s[e]:o+=s[t]-a.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation;return hb(this._itemPositions,({drag:a,clientRect:o},r,l)=>{if(a===t)return l.length<2;if(n){const t=s?n.x:n.y;if(a===this._previousSwap.drag&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e<=Math.floor(o.right):i>=Math.floor(o.top)&&i<=Math.floor(o.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_updateAfterScroll(t,e,i){const n=t===this._document?t.documentElement:t,s=this._parentPositions.get(t).scrollPosition,a=s.top-e,o=s.left-i;this._parentPositions.forEach((e,i)=>{e.clientRect&&t!==i&&n.contains(i)&&cb(e.clientRect,a,o)}),this._itemPositions.forEach(({clientRect:t})=>{cb(t,a,o)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}),s.top=e,s.left=i}_isOverContainer(t,e){return ub(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(n=>n._canReceive(t,e,i))}_canReceive(t,e,i){if(!ub(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=pi(this.element);return n===s||s.contains(n)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=t.target;if(this._parentPositions.get(e)){let t,i;if(e===this._document){const e=this._viewportRuler.getViewportScrollPosition();t=e.top,i=e.left}else t=e.scrollTop,i=e.scrollLeft;this._updateAfterScroll(e,t,i)}}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Di(pi(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function cb(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function db(t,e,i){const{top:n,right:s,bottom:a,left:o,width:r,height:l}=t,c=.05*r,d=.05*l;return i>n-d&&io-c&&e=n&&i<=s&&e>=a&&e<=o}function mb(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function pb(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function gb(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function fb(t,e){const{top:i,bottom:n,height:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}function bb(t,e){const{left:i,right:n,width:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}const _b=Ci({passive:!1,capture:!0});let yb=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Pe.a,this.pointerUp=new Pe.a,this.scroll=new Pe.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,_b)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,_b)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch"),i=t?"touchend":"mouseup";this._globalListeners.set(t?"touchmove":"mousemove",{handler:t=>this.pointerMove.next(t),options:_b}).set(i,{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_b}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(s.F),s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(s.F),Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})();const vb={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let wb=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=vb){return new Zf(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new lb(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ye.e),s.Mc(s.F),s.Mc(ll),s.Mc(yb))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(ye.e),Object(s.Mc)(s.F),Object(s.Mc)(ll),Object(s.Mc)(yb))},token:t,providedIn:"root"}),t})();const kb=new s.v("CDK_DRAG_PARENT");let xb=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new Pe.a,this._disabled=!1,this._parentDrag=e,Wf(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(kb,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),Cb=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U))},t.\u0275dir=s.tc({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),t})(),Sb=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=di(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U))},t.\u0275dir=s.tc({type:t,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),t})();const Db=new s.v("CDK_DRAG_CONFIG"),Eb=new s.v("CDK_DROP_LIST");let Ab=(()=>{class t{constructor(t,e,i,n,a,o,r,l,c){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=n,this._viewContainerRef=a,this._dir=r,this._changeDetectorRef=c,this._destroyed=new Pe.a,this.started=new s.s,this.released=new s.s,this.ended=new s.s,this.entered=new s.s,this.exited=new s.s,this.dropped=new s.s,this.moved=new si.a(t=>{const e=this._dragRef.moved.pipe(Object(ii.a)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,o&&this._assignDefaults(o),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=di(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.asObservable().pipe(ri(1),jr(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(cn(this._handles),je(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),qr(t=>Object(br.a)(...t.map(t=>t._stateChanges.pipe(cn(t))))),jr(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?Ob(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+`Currently attached to "${e.nodeName}".`);this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return Ob(this.element.nativeElement,t);const e=pi(t);if(Object(s.eb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:hi(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:a,draggingDisabled:o,rootElementSelector:r}=t;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),a&&(this.boundaryElement=a),r&&(this.rootElementSelector=r)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Eb,12),s.yc(ye.e),s.yc(s.F),s.yc(s.X),s.yc(Db,8),s.yc(en,8),s.yc(wb),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Sb,!0),s.qc(i,Cb,!0),s.qc(i,xb,!0)),2&t&&(s.gd(n=s.Rc())&&(e._previewTemplate=n.first),s.gd(n=s.Rc())&&(e._placeholderTemplate=n.first),s.gd(n=s.Rc())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&s.oc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s.jc([{provide:kb,useExisting:t}]),s.ic]}),t})();function Ob(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let Ib=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}ngOnDestroy(){this._items.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),t})(),Pb=0,Rb=(()=>{class t{constructor(e,i,n,a,o,r,l){this.element=e,this._changeDetectorRef=n,this._dir=a,this._group=o,this._scrollDispatcher=r,this._destroyed=new Pe.a,this.connectedTo=[],this.id=`cdk-drop-list-${Pb++}`,this.enterPredicate=()=>!0,this.dropped=new s.s,this.entered=new s.s,this.exited=new s.s,this.sorted=new s.s,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=di(t)}ngAfterContentInit(){if(this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t)}}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}start(){this._dropListRef.start()}drop(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}enter(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}exit(t){this._dropListRef.exit(t._dragRef)}getItemIndex(t){return this._dropListRef.getItemIndex(t._dragRef)}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(cn(this._dir.value),jr(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=ui(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=di(this.sortingDisabled),e.autoScrollDisabled=di(this.autoScrollDisabled),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:a}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=a||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(wb),s.yc(s.j),s.yc(en,8),s.yc(Ib,12),s.yc(ol),s.yc(Db,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Gc("id",e.id),s.oc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[s.jc([{provide:Ib,useValue:void 0},{provide:Eb,useExisting:t}])]}),t._dropLists=[],t})(),Tb=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[wb]}),t})();class Mb{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.opacity="0",n.position="absolute",n.left=n.top="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(YA){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let Fb=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new Mb(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})();const Lb=new s.v("CKD_COPY_TO_CLIPBOARD_CONFIG");let zb=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.s,this._deprecatedCopied=this.copied,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone?this._ngZone.runOutsideAngular(()=>setTimeout(n,1)):setTimeout(n,1)};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Fb),s.yc(s.F),s.yc(Lb,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),t})(),Nb=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();function Bb(t){return mh(t)(this)}si.a.prototype.map=function(t,e){return Object(ii.a)(t,e)(this)},si.a.prototype.catch=Bb,si.a.prototype._catch=Bb,si.a.throw=Xr,si.a.throwError=Xr;const Vb={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}};class jb extends Pe.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new il.a;return this._value}next(t){super.next(this._value=t)}}var Ub=i("EcEN");const $b=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Hb(t){return function(e){return 0===t?oi():e.lift(new qb(t))}}class qb{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new Gb(t,this.total))}}class Gb extends Ne.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Yb(t))}class Yb{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Qb(t,this.errorFactory))}}class Qb extends Ne.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Kb(){return new $b}function Xb(t=null){return e=>e.lift(new Zb(t))}class Zb{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Jb(t,this.defaultValue))}}class Jb extends Ne.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var t_=i("SpAZ");function e_(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Je((e,i)=>t(e,i,n)):t_.a,Hb(1),i?Xb(e):Wb(()=>new $b))}function i_(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Je((e,i)=>t(e,i,n)):t_.a,ri(1),i?Xb(e):Wb(()=>new $b))}class n_{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new s_(t,this.predicate,this.thisArg,this.source))}}class s_ extends Ne.a{constructor(t,e,i,n){super(t),this.predicate=e,this.thisArg=i,this.source=n,this.index=0,this.thisArg=i||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function a_(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new o_(t,e,i))}}class o_{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new r_(t,this.accumulator,this.seed,this.hasSeed))}}class r_ extends Ne.a{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var l_=i("mCNh");class c_{constructor(t,e){this.id=t,this.url=e}}class d_ extends c_{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class h_ extends c_{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class u_ extends c_{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class m_ extends c_{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class p_ extends c_{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class g_ extends c_{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class f_ extends c_{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class b_ extends c_{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class __ extends c_{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class y_{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class v_{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class w_{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class k_{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class x_{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class C_{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S_{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let D_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.zc(0,"router-outlet")},directives:function(){return[Pv]},encapsulation:2}),t})();class E_{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function A_(t){return new E_(t)}function O_(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function I_(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthe.indexOf(t)>-1):t===e}function N_(t){return Array.prototype.concat.apply([],t)}function B_(t){return t.length>0?t[t.length-1]:null}function V_(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function j_(t){return Object(s.Mb)(t)?t:Object(s.Nb)(t)?Object(vs.a)(Promise.resolve(t)):Le(t)}function U_(t,e,i){return i?function(t,e){return L_(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!G_(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>z_(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,s){if(i.segments.length>s.length)return!!G_(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!G_(i.segments,s))return!1;for(const e in n.children){if(!i.children[e])return!1;if(!t(i.children[e],n.children[e]))return!1}return!0}{const t=s.slice(0,i.segments.length),a=s.slice(i.segments.length);return!!G_(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,a)}}(e,i,i.segments)}(t.root,e.root)}class $_{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=A_(this.queryParams)),this._queryParamMap}toString(){return K_.serialize(this)}}class H_{constructor(t,e){this.segments=t,this.children=e,this.parent=null,V_(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return X_(this)}}class q_{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=A_(this.parameters)),this._parameterMap}toString(){return ny(this)}}function G_(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function W_(t,e){let i=[];return V_(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),V_(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class Y_{}class Q_{parse(t){const e=new ly(t);return new $_(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return X_(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return V_(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=W_(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${X_(e)}/(${i.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${J_(e)}=${J_(t)}`).join("&"):`${J_(e)}=${J_(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const K_=new Q_;function X_(t){return t.segments.map(t=>ny(t)).join("/")}function Z_(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function J_(t){return Z_(t).replace(/%3B/gi,";")}function ty(t){return Z_(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ey(t){return decodeURIComponent(t)}function iy(t){return ey(t.replace(/\+/g,"%20"))}function ny(t){return`${ty(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${ty(t)}=${ty(e[t])}`).join("")}`;var e}const sy=/^[^\/()?;=#]+/;function ay(t){const e=t.match(sy);return e?e[0]:""}const oy=/^[^=?&#]+/,ry=/^[^?&#]+/;class ly{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new H_([],{}):new H_([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new H_(t,e)),i}parseSegment(){const t=ay(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new q_(ey(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=ay(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=ay(this.remaining);t&&(i=t,this.capture(i))}t[ey(e)]=ey(i)}parseQueryParam(t){const e=function(t){const e=t.match(oy);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(ry);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=iy(e),s=iy(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=ay(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const a=this.parseChildren();e[s]=1===Object.keys(a).length?a.primary:new H_([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class cy{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=dy(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=dy(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=hy(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return hy(t,this._root).map(t=>t.value)}}function dy(t,e){if(t===e.value)return e;for(const i of e.children){const e=dy(t,i);if(e)return e}return null}function hy(t,e){if(t===e.value)return[e];for(const i of e.children){const n=hy(t,i);if(n.length)return n.unshift(e),n}return[]}class uy{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function my(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class py extends cy{constructor(t,e){super(t),this.snapshot=e,vy(this,t)}toString(){return this.snapshot.toString()}}function gy(t,e){const i=function(t,e){const i=new _y([],{},{},"",{},"primary",e,null,t.root,-1,{});return new yy("",new uy(i,[]))}(t,e),n=new jb([new q_("",{})]),s=new jb({}),a=new jb({}),o=new jb({}),r=new jb(""),l=new fy(n,s,o,r,a,"primary",e,i.root);return l.snapshot=i.root,new py(new uy(l,[]),i)}class fy{constructor(t,e,i,n,s,a,o,r){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=o,this._futureSnapshot=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ii.a)(t=>A_(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ii.a)(t=>A_(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function by(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({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:{}})}(i.slice(n))}class _y{constructor(t,e,i,n,s,a,o,r,l,c,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=o,this.routeConfig=r,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=A_(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=A_(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yy extends cy{constructor(t,e){super(e),this.url=t,vy(this,e)}toString(){return wy(this._root)}}function vy(t,e){e.value._routerState=t,e.children.forEach(e=>vy(t,e))}function wy(t){const e=t.children.length>0?` { ${t.children.map(wy).join(", ")} } `:"";return`${t.value}${e}`}function ky(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,L_(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),L_(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iL_(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||xy(t.parent,e.parent))}function Cy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Sy(t,e,i,n,s){let a={};return n&&V_(n,(t,e)=>{a[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new $_(i.root===t?e:function t(e,i,n){const s={};return V_(e.children,(e,a)=>{s[a]=e===i?n:t(e,i,n)}),new H_(e.segments,s)}(i.root,t,e),a,s)}class Dy{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Cy(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==B_(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ey{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Ay(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Oy(t,e,i){if(t||(t=new H_([],{})),0===t.segments.length&&t.hasChildren())return Iy(t,e,i);const n=function(t,e,i){let n=0,s=e;const a={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return a;const e=t.segments[s],o=Ay(i[n]),r=n0&&void 0===o)break;if(o&&r&&"object"==typeof r&&void 0===r.outlets){if(!My(o,r,e))return a;n+=2}else{if(!My(o,{},e))return a;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{null!==i&&(s[n]=Oy(t.children[n],e,i))}),V_(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new H_(t.segments,s)}}function Py(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=Py(new H_([],{}),0,t))}),e}function Ty(t){const e={};return V_(t,(t,i)=>e[i]=`${t}`),e}function My(t,e,i){return t==i.path&&L_(e,i.parameters)}class Fy{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),ky(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=my(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),V_(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=my(t),s=t.value.component?i.children:e;V_(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=my(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new C_(t.value.snapshot))}),t.children.length&&this.forwardEvent(new k_(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(ky(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Ly(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Ly(t){ky(t.value),t.children.forEach(Ly)}function zy(t){return"function"==typeof t}function Ny(t){return t instanceof $_}class By{constructor(t){this.segmentGroup=t||null}}class Vy{constructor(t){this.urlTree=t}}function jy(t){return new si.a(e=>e.error(new By(t)))}function Uy(t){return new si.a(e=>e.error(new Vy(t)))}function $y(t){return new si.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Hy{constructor(t,e,i,n,a){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(s.D)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(ii.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(mh(t=>{if(t instanceof Vy)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof By)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(ii.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(mh(t=>{if(t instanceof By)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new H_([],{primary:t}):t;return new $_(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(ii.a)(t=>new H_([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Le({});const i=[],n=[],s={};return V_(t,(t,a)=>{const o=e(a,t).pipe(Object(ii.a)(t=>s[a]=t));"primary"===a?i.push(o):n.push(o)}),Le.apply(null,i.concat(n)).pipe(rn(),e_(),Object(ii.a)(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,a){return Le(...i).pipe(Object(ii.a)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,a).pipe(mh(t=>{if(t instanceof By)return Le(null);throw t}))),rn(),i_(t=>!!t),mh((t,i)=>{if(t instanceof $b||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Le(new H_([],{}));throw new By(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,a,o){return Yy(n)!==a?jy(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a):jy(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Uy(s):this.lineralizeSegments(i,s).pipe(Object(vh.a)(i=>{const s=new H_(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){const{matched:o,consumedSegments:r,lastChild:l,positionalParamSegments:c}=qy(e,n,s);if(!o)return jy(e);const d=this.applyRedirectCommands(r,n.redirectTo,c);return n.redirectTo.startsWith("/")?Uy(d):this.lineralizeSegments(n,d).pipe(Object(vh.a)(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),a,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(ii.a)(t=>(i._loadedConfig=t,new H_(n,{})))):Le(new H_(n,{}));const{matched:s,consumedSegments:a,lastChild:o}=qy(e,i,n);if(!s)return jy(e);const r=n.slice(o);return this.getChildConfig(t,i,n).pipe(Object(vh.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>Wy(t,e,i)&&"primary"!==Yy(i))}(t,i,n)?{segmentGroup:Gy(new H_(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==Yy(n)&&(i[Yy(n)]=new H_([],{}));return i}(n,new H_(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>Wy(t,e,i))}(t,i,n)?{segmentGroup:Gy(new H_(t.segments,function(t,e,i,n){const s={};for(const a of i)Wy(t,e,a)&&!n[Yy(a)]&&(s[Yy(a)]=new H_([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,r,n);return 0===o.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(ii.a)(t=>new H_(a,t))):0===n.length&&0===o.length?Le(new H_(a,{})):this.expandSegment(i,s,n,o,"primary",!0).pipe(Object(ii.a)(t=>new H_(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Le(new P_(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Le(e._loadedConfig):function(t,e,i){const n=e.canLoad;return n&&0!==n.length?Object(vs.a)(n).pipe(Object(ii.a)(n=>{const s=t.get(n);let a;if(function(t){return t&&zy(t.canLoad)}(s))a=s.canLoad(e,i);else{if(!zy(s))throw new Error("Invalid CanLoad guard");a=s(e,i)}return j_(a)})).pipe(rn(),(s=t=>!0===t,t=>t.lift(new n_(s,void 0,t)))):Le(!0);var s}(t.injector,e,i).pipe(Object(vh.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(ii.a)(t=>(e._loadedConfig=t,t))):function(t){return new si.a(e=>e.error(O_(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Le(new P_([],t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Le(i);if(n.numberOfChildren>1||!n.children.primary)return $y(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new $_(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return V_(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let a={};return V_(e.children,(e,s)=>{a[s]=this.createSegmentGroup(t,e,i,n)}),new H_(s,a)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function qy(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||I_)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Gy(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new H_(t.segments.concat(e.segments),e.children)}return t}function Wy(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function Yy(t){return t.outlet||"primary"}class Qy{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ky{constructor(t,e){this.component=t,this.route=e}}function Xy(t,e,i){const n=t._root;return function t(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const o=my(i);return e.children.forEach(e=>{!function(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,r=i?i.value:null,l=n?n.getContext(e.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!G_(t.url,e.url);case"pathParamsOrQueryParamsChange":return!G_(t.url,e.url)||!L_(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xy(t,e)||!L_(t.queryParams,e.queryParams);case"paramsChange":default:return!xy(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Qy(s)):(o.data=r.data,o._resolvedData=r._resolvedData),t(e,i,o.component?l?l.children:null:n,s,a),c&&a.canDeactivateChecks.push(new Ky(l&&l.outlet&&l.outlet.component||null,r))}else r&&Jy(i,l,a),a.canActivateChecks.push(new Qy(s)),t(e,null,o.component?l?l.children:null:n,s,a)}(e,o[e.value.outlet],n,s.concat([e.value]),a),delete o[e.value.outlet]}),V_(o,(t,e)=>Jy(t,n.getContext(e),a)),a}(n,e?e._root:null,i,[n.value])}function Zy(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Jy(t,e,i){const n=my(t),s=t.value;V_(n,(t,n)=>{Jy(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Ky(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const tv=Symbol("INITIAL_VALUE");function ev(){return qr(t=>Em(...t.map(t=>t.pipe(ri(1),cn(tv)))).pipe(a_((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==tv)return t;if(n===tv&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Ny(n))return n}return t},t)},tv),Je(t=>t!==tv),Object(ii.a)(t=>Ny(t)?t:!0===t),ri(1)))}function iv(t,e){return null!==t&&e&&e(new x_(t)),Le(!0)}function nv(t,e){return null!==t&&e&&e(new w_(t)),Le(!0)}function sv(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Le(n.map(n=>fr(()=>{const s=Zy(n,e,i);let a;if(function(t){return t&&zy(t.canActivate)}(s))a=j_(s.canActivate(e,t));else{if(!zy(s))throw new Error("Invalid CanActivate guard");a=j_(s(e,t))}return a.pipe(i_())}))).pipe(ev()):Le(!0)}function av(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>fr(()=>Le(e.guards.map(s=>{const a=Zy(s,e.node,i);let o;if(function(t){return t&&zy(t.canActivateChild)}(a))o=j_(a.canActivateChild(n,t));else{if(!zy(a))throw new Error("Invalid CanActivateChild guard");o=j_(a(n,t))}return o.pipe(i_())})).pipe(ev())));return Le(s).pipe(ev())}class ov{}class rv{constructor(t,e,i,n,s,a){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a}recognize(){try{const t=dv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new _y([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new uy(i,e),s=new yy(this.url,n);return this.inheritParamsAndData(s._root),Le(s)}catch(t){return new si.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=by(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=W_(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const a of t)try{return this.processSegmentAgainstRoute(a,e,i,n)}catch(s){if(!(s instanceof ov))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new ov}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new ov;if((t.outlet||"primary")!==n)throw new ov;let s,a=[],o=[];if("**"===t.path){const a=i.length>0?B_(i).parameters:{};s=new _y(i,a,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,mv(t),n,t.component,t,lv(e),cv(e)+i.length,pv(t))}else{const r=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new ov;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||I_)(i,t,e);if(!n)throw new ov;const s={};V_(n.posParams,(t,e)=>{s[e]=t.path});const a=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:a}}(e,t,i);a=r.consumedSegments,o=i.slice(r.lastChild),s=new _y(a,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,mv(t),n,t.component,t,lv(e),cv(e)+a.length,pv(t))}const r=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=dv(e,a,o,r,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(r,l);return[new uy(s,t)]}if(0===r.length&&0===c.length)return[new uy(s,[])];const d=this.processSegment(r,l,c,"primary");return[new uy(s,d)]}}function lv(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function cv(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function dv(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>hv(t,e,i)&&"primary"!==uv(i))}(t,i,n)){const s=new H_(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const a of i)if(""===a.path&&"primary"!==uv(a)){const i=new H_([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[uv(a)]=i}return s}(t,e,n,new H_(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>hv(t,e,i))}(t,i,n)){const a=new H_(t.segments,function(t,e,i,n,s,a){const o={};for(const r of n)if(hv(t,i,r)&&!s[uv(r)]){const i=new H_([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===a?t.segments.length:e.length,o[uv(r)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}const a=new H_(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}function hv(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function uv(t){return t.outlet||"primary"}function mv(t){return t.data||{}}function pv(t){return t.resolve||{}}function gv(t,e,i,n){const s=Zy(t,e,n);return j_(s.resolve?s.resolve(e,i):s(e,i))}function fv(t){return function(e){return e.pipe(qr(e=>{const i=t(e);return i?Object(vs.a)(i).pipe(Object(ii.a)(()=>e)):Object(vs.a)([e])}))}}class bv{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const _v=new s.v("ROUTES");class yv{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(ii.a)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new P_(N_(n.injector.get(_v)).map(F_),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(vs.a)(this.loader.load(t)):j_(t()).pipe(Object(vh.a)(t=>t instanceof s.B?Le(t):Object(vs.a)(this.compiler.compileModuleAsync(t))))}}class vv{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function wv(t){throw t}function kv(t,e,i){return e.parse("/")}function xv(t,e){return Le(null)}let Cv=(()=>{class t{constructor(t,e,i,n,a,o,r,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Pe.a,this.errorHandler=wv,this.malformedUriErrorHandler=kv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xv,afterPreactivation:xv},this.urlHandlingStrategy=new vv,this.routeReuseStrategy=new bv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(s.D),this.console=a.get(s.ib);const c=a.get(s.F);this.isNgZoneEnabled=c instanceof s.F,this.resetConfig(l),this.currentUrlTree=new $_(new H_([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yv(o,r,t=>this.triggerEvent(new y_(t)),t=>this.triggerEvent(new v_(t))),this.routerState=gy(this.currentUrlTree,this.rootComponentType),this.transitions=new jb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Je(t=>0!==t.id),Object(ii.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),qr(t=>{let i=!1,n=!1;return Le(t).pipe(je(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qr(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Le(t).pipe(qr(t=>{const i=this.transitions.getValue();return e.next(new d_(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?ai:[t]}),qr(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,o=this.config,function(t){return t.pipe(qr(t=>function(t,e,i,n,s){return new Hy(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,o).pipe(Object(ii.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),je(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(a){return a.pipe(Object(vh.a)(a=>function(t,e,i,n,s="emptyOnly",a="legacy"){return new rv(t,e,i,n,s,a).recognize()}(t,e,a.urlAfterRedirects,i(a.urlAfterRedirects),n,s).pipe(Object(ii.a)(t=>Object.assign(Object.assign({},a),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),je(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),je(t=>{const i=new p_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:o}=t,r=new d_(i,this.serializeUrl(n),s,a);e.next(r);const l=gy(n,this.rootComponentType).snapshot;return Le(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ai}),fv(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!o})}),je(t=>{const e=new g_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(ii.a)(t=>Object.assign(Object.assign({},t),{guards:Xy(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(vh.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:o}}=i;return 0===o.length&&0===a.length?Le(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(vs.a)(t).pipe(Object(vh.a)(t=>function(t,e,i,n,s){const a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Le(a.map(a=>{const o=Zy(a,e,s);let r;if(function(t){return t&&zy(t.canDeactivate)}(o))r=j_(o.canDeactivate(t,e,i,n));else{if(!zy(o))throw new Error("Invalid CanDeactivate guard");r=j_(o(t,e,i,n))}return r.pipe(i_())})).pipe(ev()):Le(!0)}(t.component,t.route,i,e,n)),i_(t=>!0!==t,!0))}(o,n,s,t).pipe(Object(vh.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(vs.a)(e).pipe(wh(e=>Object(vs.a)([nv(e.route.parent,n),iv(e.route,n),av(t,e.path,i),sv(t,e.route,i)]).pipe(rn(),i_(t=>!0!==t,!0))),i_(t=>!0!==t,!0))}(n,a,t,e):Le(i)),Object(ii.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),je(t=>{if(Ny(t.guardsResult)){const e=O_(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),je(t=>{const e=new f_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Je(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new u_(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),fv(t=>{if(t.guards.canActivateChecks.length)return Le(t).pipe(je(t=>{const e=new b_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(Object(vh.a)(t=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=t;return s.length?Object(vs.a)(s).pipe(wh(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Le({});if(1===s.length){const a=s[0];return gv(t[a],e,i,n).pipe(Object(ii.a)(t=>({[a]:t})))}const a={};return Object(vs.a)(s).pipe(Object(vh.a)(s=>gv(t[s],e,i,n).pipe(Object(ii.a)(t=>(a[s]=t,t))))).pipe(e_(),Object(ii.a)(()=>a))}(t._resolve,t,e,n).pipe(Object(ii.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),by(t,i).resolve),null)))}(t.route,n,e,i)),function(t,e){return arguments.length>=2?function(i){return Object(l_.a)(a_(t,e),Hb(1),Xb(e))(i)}:function(e){return Object(l_.a)(a_((e,i,n)=>t(e,i,n+1)),Hb(1))(e)}}((t,e)=>t),Object(ii.a)(e=>t)):Le(t)}))}),je(t=>{const e=new __(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,i}),fv(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!o})}),Object(ii.a)(t=>{const e=function(t,e,i){const n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=i.value;const a=function(e,i,n){return i.children.map(i=>{for(const s of n.children)if(e.shouldReuseRoute(s.value.snapshot,i.value))return t(e,i,s);return t(e,i)})}(e,i,n);return new uy(s,a)}{const n=e.retrieve(i.value);if(n){const t=n.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;nt(e,i));return new uy(n,a)}}var s}(t,e._root,i?i._root:void 0);return new py(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),je(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,o=t=>this.triggerEvent(t),Object(ii.a)(t=>(new Fy(a,t.targetRouterState,t.currentRouterState,o).activate(s),t))),je({next(){i=!0},complete(){i=!0}}),fh(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new u_(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),mh(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Ny(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new u_(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new m_(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(a){t.reject(a)}}var s;return ai}));var s,a,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const i="popstate"===t.type?"popstate":"hashchange",n=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,i,n,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){R_(t),this.config=t.map(F_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:a,preserveQueryParams:o,queryParamsHandling:r,preserveFragment:l}=e;Object(s.eb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=i||this.routerState.root,d=l?this.currentUrlTree.fragment:a;let h=null;if(r)switch(r){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=o?this.currentUrlTree.queryParams:n||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,i,n,s){if(0===i.length)return Sy(e.root,e.root,e,n,s);const a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Dy(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return V_(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Dy(i,e,n)}(i);if(a.toRoot())return Sy(e.root,new H_([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new Ey(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new Ey(i.snapshot._urlSegment,!0,0);const n=Cy(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,a=i;for(;a>s;){if(a-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Ey(n,!1,s-a)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(a,e,t),r=o.processChildren?Iy(o.segmentGroup,o.index,a.commands):Oy(o.segmentGroup,o.index,a.commands);return Sy(o.segmentGroup,r,e,n,s)}(c,this.currentUrlTree,t,h,d)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.eb)()&&this.isNgZoneEnabled&&!s.F.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=Ny(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new h_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){const a=this.getTransition();if(a&&"imperative"!==e&&"imperative"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"hashchange"==e&&"popstate"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"popstate"==e&&"hashchange"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,r,l;s?(o=s.resolve,r=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,r=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:o,reject:r,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){s.Pc()},t.\u0275dir=s.tc({type:t}),t})(),Sv=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.eb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Ev(this.skipLocationChange),replaceUrl:Ev(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ev(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ev(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Cv),s.yc(fy),s.Nc("tabindex"),s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),Dv=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof h_&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.eb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:Ev(this.skipLocationChange),replaceUrl:Ev(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ev(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ev(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Cv),s.yc(fy),s.yc(ye.o))},t.\u0275dir=s.tc({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Qc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.Gc("href",e.href,s.nd),s.lc("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.ic]}),t})();function Ev(t){return""===t||!!t}let Av=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.element=e,this.renderer=i,this.link=n,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof h_&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Cv),s.yc(s.q),s.yc(s.L),s.yc(Sv,8),s.yc(Dv,8))},t.\u0275dir=s.tc({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Sv,!0),s.qc(i,Dv,!0)),2&t&&(s.gd(n=s.Rc())&&(e.links=n),s.gd(n=s.Rc())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.ic]}),t})();class Ov{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Iv,this.attachRef=null}}class Iv{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ov,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Pv=(()=>{class t{constructor(t,e,i,n,a){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.s,this.deactivateEvents=new s.s,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Rv(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Iv),s.yc(s.X),s.yc(s.n),s.Nc("name"),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Rv{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===fy?this.route:t===Iv?this.childContexts:this.parent.get(t,e)}}class Tv{}class Mv{preload(t,e){return Le(null)}}let Fv=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new yv(e,i,e=>t.triggerEvent(new y_(e)),e=>t.triggerEvent(new v_(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Je(t=>t instanceof h_),wh(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.D);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(vs.a)(i).pipe(Object(on.a)(),Object(ii.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(vh.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Cv),s.Mc(s.C),s.Mc(s.k),s.Mc(s.w),s.Mc(Tv))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Lv=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof d_?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof h_&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof S_&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new S_(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){s.Pc()},t.\u0275dir=s.tc({type:t}),t})();const zv=new s.v("ROUTER_CONFIGURATION"),Nv=new s.v("ROUTER_FORROOT_GUARD"),Bv=[ye.n,{provide:Y_,useClass:Q_},{provide:Cv,useFactory:function(t,e,i,n,s,a,o,r={},l,c){const d=new Cv(null,t,e,i,n,s,a,N_(o));if(l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),r.errorHandler&&(d.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(d.malformedUriErrorHandler=r.malformedUriErrorHandler),r.enableTracing){const t=Object(ye.N)();d.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return r.onSameUrlNavigation&&(d.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.urlUpdateStrategy&&(d.urlUpdateStrategy=r.urlUpdateStrategy),r.relativeLinkResolution&&(d.relativeLinkResolution=r.relativeLinkResolution),d},deps:[Y_,Iv,ye.n,s.w,s.C,s.k,_v,zv,[class{},new s.G],[class{},new s.G]]},Iv,{provide:fy,useFactory:function(t){return t.routerState.root},deps:[Cv]},{provide:s.C,useClass:s.R},Fv,Mv,class{preload(t,e){return e().pipe(mh(()=>Le(null)))}},{provide:zv,useValue:{enableTracing:!1}}];function Vv(){return new s.E("Router",Cv)}let jv=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Bv,qv(e),{provide:Nv,useFactory:Hv,deps:[[Cv,new s.G,new s.Q]]},{provide:zv,useValue:i||{}},{provide:ye.o,useFactory:$v,deps:[ye.D,[new s.u(ye.a),new s.G],zv]},{provide:Lv,useFactory:Uv,deps:[Cv,ye.H,zv]},{provide:Tv,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Mv},{provide:s.E,multi:!0,useFactory:Vv},[Gv,{provide:s.d,multi:!0,useFactory:Wv,deps:[Gv]},{provide:Qv,useFactory:Yv,deps:[Gv]},{provide:s.b,multi:!0,useExisting:Qv}]]}}static forChild(e){return{ngModule:t,providers:[qv(e)]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)(s.Mc(Nv,8),s.Mc(Cv,8))}}),t})();function Uv(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Lv(t,e,i)}function $v(t,e,i={}){return i.useHash?new ye.h(t,e):new ye.B(t,e)}function Hv(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function qv(t){return[{provide:s.a,multi:!0,useValue:t},{provide:_v,multi:!0,useValue:t}]}let Gv=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Pe.a}appInitializer(){return this.injector.get(ye.m,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Cv),n=this.injector.get(zv);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Le(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(zv),i=this.injector.get(Fv),n=this.injector.get(Lv),a=this.injector.get(Cv),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),a.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(s.w))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();function Wv(t){return t.appInitializer.bind(t)}function Yv(t){return t.bootstrapListener.bind(t)}const Qv=new s.v("Router Initializer");let Kv=(()=>{class t{constructor(t,e,i){this.http=t,this.router=e,this.document=i,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=Vb,this.settings_changed=new jb(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.debugMode=!1,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",this.session_id=Object(Ub.v4)(),Object(s.eb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params=`apiKey=${this.auth_token}&sessionID=${this.session_id}`,this.httpOptions={params:new Eh({fromString:this.http_params})}}setTheme(t){this.theme=this.THEMES_CONFIG[t]}startHandshake(t){return this.http.get(t+"geturl")}startHandshakeSSL(t){return this.http.get(t+"geturl")}getVideoFolder(){return this.http.get(this.startPath+"videofolder")}getAudioFolder(){return this.http.get(this.startPath+"audiofolder")}makeMP3(t,e,i,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:o,ui_uid:r},this.httpOptions)}makeMP4(t,e,i,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:o,ui_uid:r},this.httpOptions)}getFileStatusMp3(t){return this.http.post(this.path+"fileStatusMp3",{name:t},this.httpOptions)}getFileStatusMp4(t){return this.http.post(this.path+"fileStatusMp4",{name:t},this.httpOptions)}loadNavItems(){return Object(s.eb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}loadAsset(t){return this.http.get(`./assets/${t}`)}setConfig(t){return this.http.post(this.path+"setConfig",{new_config_file:t},this.httpOptions)}deleteFile(t,e,i=!1){return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{uid:t,blacklistMode:i},this.httpOptions)}getMp3s(){return this.http.get(this.path+"getMp3s",this.httpOptions)}getMp4s(){return this.http.get(this.path+"getMp4s",this.httpOptions)}getFile(t,e){return this.http.post(this.path+"getFile",{uid:t,type:e},this.httpOptions)}downloadFileFromServer(t,e,i=null,n=null,s=null,a=null){return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n,subscriptionName:s,subPlaylist:a},{responseType:"blob",params:this.httpOptions.params})}downloadArchive(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob",params:this.httpOptions.params})}getFileInfo(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i},this.httpOptions)}isPinSet(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}setPin(t){return this.http.post(this.path+"setPin",{pin:t},this.httpOptions)}checkPin(t){return this.http.post(this.path+"checkPin",{input_pin:t},this.httpOptions)}generateNewAPIKey(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}enableSharing(t,e,i){return this.http.post(this.path+"enableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}disableSharing(t,e,i){return this.http.post(this.path+"disableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}createPlaylist(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n},this.httpOptions)}getPlaylist(t,e){return this.http.post(this.path+"getPlaylist",{playlistID:t,type:e},this.httpOptions)}updatePlaylist(t,e,i){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:i},this.httpOptions)}removePlaylist(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e},this.httpOptions)}createSubscription(t,e,i=null,n=!1){return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i,streamingOnly:n},this.httpOptions)}unsubscribe(t,e=!1){return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e},this.httpOptions)}deleteSubscriptionFile(t,e,i){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i},this.httpOptions)}getSubscription(t){return this.http.post(this.path+"getSubscription",{id:t},this.httpOptions)}getAllSubscriptions(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}getCurrentDownloads(){return this.http.get(this.path+"downloads",this.httpOptions)}getCurrentDownload(t,e){return this.http.post(this.path+"download",{download_id:e,session_id:t},this.httpOptions)}clearDownloads(t=!1,e=null,i=null){return this.http.post(this.path+"clearDownloads",{delete_all:t,download_id:i,session_id:e||this.session_id},this.httpOptions)}updateServer(t){return this.http.post(this.path+"updateServer",{tag:t},this.httpOptions)}getUpdaterStatus(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}getLatestGithubRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}getAvailableRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Nh),s.Mc(Cv),s.Mc(ye.e))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();si.a.of=Le;class Xv{constructor(t){this.value=t}call(t,e){return e.subscribe(new Zv(t,this.value))}}class Zv extends Ne.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Jv(t,e,i){return je(t,e,i)(this)}function tw(){return qr(t_.a)(this)}function ew(t,e){if(1&t&&(s.Dc(0,"h4",5),s.vd(1),s.Cc()),2&t){const t=s.Uc();s.kc(1),s.wd(t.dialog_title)}}function iw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-form-field",6),s.Dc(2,"input",7),s.Qc("keyup.enter",(function(){return s.ld(t),s.Uc().doAction()}))("ngModelChange",(function(e){return s.ld(t),s.Uc().input=e})),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(2),s.ad("ngModel",t.input)("placeholder",t.input_placeholder)}}function nw(t,e){1&t&&(s.Dc(0,"div",8),s.zc(1,"mat-spinner",9),s.Cc()),2&t&&(s.kc(1),s.ad("diameter",25))}si.a.prototype.mapTo=function(t){return function(t){return e=>e.lift(new Xv(t))}(t)(this)},i("XypG"),si.a.fromEvent=_r,si.a.prototype.filter=function(t,e){return Je(t,e)(this)},si.a.prototype.debounceTime=function(t,e=Ye){return Qe(t,e)(this)},si.a.prototype.do=Jv,si.a.prototype._do=Jv,si.a.prototype.switch=tw,si.a.prototype._switch=tw;let sw=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.data=e,this.dialogRef=i,this.snackBar=n,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}ngOnInit(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}isPinSet(){this.postsService.isPinSet().subscribe(t=>{this.pinSetChecked=!0,t.is_set?this.isSetLogic():this.notSetLogic()})}isSetLogic(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}notSetLogic(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}doAction(){this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe(t=>{t.success?this.dialogRef.close(!0):(this.dialogRef.close(!1),this.openSnackBar("Pin is incorrect!"))}):this.postsService.setPin(this.input).subscribe(t=>{t.success?(this.dialogRef.close(!0),this.openSnackBar("Pin successfully set!")):(this.dialogRef.close(!1),this.openSnackBar("Failed to set pin!"))}))}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(ld),s.yc(rd),s.yc(Bg))},t.\u0275cmp=s.sc({type:t,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(s.td(0,ew,2,1,"h4",0),s.Dc(1,"mat-dialog-content"),s.Dc(2,"div",1),s.td(3,iw,3,2,"div",2),s.td(4,nw,2,1,"div",3),s.Cc(),s.Cc(),s.Dc(5,"mat-dialog-actions"),s.Dc(6,"button",4),s.Qc("click",(function(){return e.doAction()})),s.vd(7),s.Cc(),s.Cc()),2&t&&(s.ad("ngIf",e.pinSetChecked),s.kc(3),s.ad("ngIf",e.pinSetChecked),s.kc(1),s.ad("ngIf",!e.pinSetChecked),s.kc(2),s.ad("disabled",0===e.input.length),s.kc(1),s.wd(e.button_label))},directives:[ye.t,fd,bd,ms,gd,Mc,Au,As,Fs,$a,cp],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),t})();const aw={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},ow={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},rw={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]};var lw,cw,dw,hw,uw,mw,pw,gw;function fw(t,e){if(1&t&&(s.Dc(0,"mat-option",20),s.zc(1,"span",21),s.Vc(2,"highlight"),s.Dc(3,"button",22),s.Dc(4,"mat-icon"),s.vd(5,"info"),s.Cc(),s.Cc(),s.Cc()),2&t){const t=e.$implicit,i=s.Uc();s.ad("value",t.key),s.kc(1),s.ad("innerHTML",s.Xc(2,3,t.key,i.stateCtrl.value),s.md),s.kc(2),s.ad("matTooltip",t.description)}}function bw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",26),s.Qc("click",(function(){s.ld(t);const i=e.$implicit;return s.Uc(2).setFirstArg(i.key)})),s.Dc(1,"div",27),s.vd(2),s.Cc(),s.vd(3,"\xa0\xa0"),s.Dc(4,"div",28),s.Dc(5,"mat-icon",29),s.vd(6,"info"),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit;s.kc(2),s.wd(t.key),s.kc(3),s.ad("matTooltip",t.description)}}function _w(t,e){if(1&t&&(s.Bc(0),s.Dc(1,"button",23),s.vd(2),s.Cc(),s.Dc(3,"mat-menu",null,24),s.td(5,bw,7,2,"button",25),s.Cc(),s.Ac()),2&t){const t=e.$implicit,i=s.hd(4),n=s.Uc();s.kc(1),s.ad("matMenuTriggerFor",i),s.kc(1),s.wd(n.argsInfo[t.key].label),s.kc(3),s.ad("ngForOf",t.value)}}lw=$localize`:Modify args title␟d9e83ac17026e70ef6e9c0f3240a3b2450367f40␟3653857180335075556:Modify youtube-dl args`,cw=$localize`:Simulated args title␟7fc1946abe2b40f60059c6cd19975d677095fd19␟3319938540903314395:Simulated new args`,dw=$localize`:Add arg card title␟0b71824ae71972f236039bed43f8d2323e8fd570␟7066397187762906016:Add an arg`,hw=$localize`:Search args by category button␟c8b0e59eb491f2ac7505f0fbab747062e6b32b23␟827176536271704947:Search by category`,uw=$localize`:Use arg value checkbox␟9eeb91caef5a50256dd87e1c4b7b3e8216479377␟5487374754798278253:Use arg value`,mw=$localize`:Search args by category button␟7de2451ed3fb8d8b847979bd3f0c740b970f167b␟1014075402717090995:Add arg`,pw=$localize`:Arg modifier cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,gw=$localize`:Arg modifier modify button␟b2623aee44b70c9a4ba1fce16c8a593b0a4c7974␟3251759404563225821:Modify`;const yw=["placeholder",$localize`:Arg value placeholder␟25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd␟9086775160067017111:Arg value`],vw=function(){return{standalone:!0}};function ww(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-form-field",8),s.Dc(2,"input",30),s.Jc(3,yw),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().secondArg=e})),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(2),s.ad("ngModelOptions",s.cd(3,vw))("disabled",!t.secondArgEnabled)("ngModel",t.secondArg)}}let kw=(()=>{class t{transform(t,e){const i=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter(t=>t.length>0).join("|"):void 0,n=new RegExp(i,"gi");return e?t.replace(n,t=>`${t}`):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.xc({name:"highlight",type:t,pure:!0}),t})(),xw=(()=>{class t{constructor(t,e,i){this.data=t,this.dialogRef=e,this.dialog=i,this.myGroup=new Ia,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Ia,this.availableArgs=null,this.argsByCategory=null,this.argsInfo=null}static forRoot(){return{ngModule:t,providers:[]}}ngOnInit(){this.data&&(this.modified_args=this.data.initial_args),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(cn(""),Object(ii.a)(t=>this.filter(t)))}filter(t){if(this.availableArgs)return this.availableArgs.filter(e=>e.key.toLowerCase().includes(t.toLowerCase()))}addArg(){""!==this.modified_args&&(this.modified_args+=" "),this.modified_args+=this.stateCtrl.value+" "+(this.secondArgEnabled?this.secondArg:"")}canAddArg(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}getFirstArg(){return new Promise(t=>{t(this.stateCtrl.value)})}getValueAsync(t){return new Promise(e=>{e(t)})}getAllPossibleArgs(){const t=rw,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e);this.availableArgs=i,this.argsByCategory=t,this.argsInfo=ow}setFirstArg(t){this.stateCtrl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(ld),s.yc(rd),s.yc(ud))},t.\u0275cmp=s.sc({type:t,selectors:[["app-arg-modifier-dialog"]],features:[s.jc([kw])],decls:48,vars:17,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["color","accent",2,"width","100%"],["matInput","",3,"disabled"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","","mat-dialog-close",""],["mat-button","","color","accent",3,"mat-dialog-close"],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(s.Dc(0,"h4",0),s.Hc(1,lw),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"div",2),s.Dc(5,"div",3),s.Dc(6,"mat-card",4),s.Dc(7,"h6"),s.Hc(8,cw),s.Cc(),s.Dc(9,"mat-form-field",5),s.Dc(10,"textarea",6),s.vd(11),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(12,"div",3),s.Dc(13,"mat-card",7),s.Dc(14,"h6"),s.Hc(15,dw),s.Cc(),s.Dc(16,"form"),s.Dc(17,"div"),s.Dc(18,"mat-form-field",8),s.zc(19,"input",9),s.Cc(),s.Dc(20,"mat-autocomplete",null,10),s.td(22,fw,6,6,"mat-option",11),s.Vc(23,"async"),s.Cc(),s.Dc(24,"div"),s.Dc(25,"mat-menu",null,12),s.td(27,_w,6,3,"ng-container",13),s.Vc(28,"keyvalue"),s.Cc(),s.Dc(29,"button",14),s.Bc(30),s.Hc(31,hw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(32,"div"),s.Dc(33,"mat-checkbox",15),s.Qc("ngModelChange",(function(t){return e.secondArgEnabled=t})),s.Bc(34),s.Hc(35,uw),s.Ac(),s.Cc(),s.Cc(),s.td(36,ww,4,4,"div",16),s.Cc(),s.Dc(37,"div"),s.Dc(38,"button",17),s.Qc("click",(function(){return e.addArg()})),s.Bc(39),s.Hc(40,mw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(41,"mat-dialog-actions"),s.Dc(42,"button",18),s.Bc(43),s.Hc(44,pw),s.Ac(),s.Cc(),s.Dc(45,"button",19),s.Bc(46),s.Hc(47,gw),s.Ac(),s.Cc(),s.Cc()),2&t){const t=s.hd(21),i=s.hd(26);s.kc(10),s.ad("disabled",!0),s.kc(1),s.wd(e.modified_args),s.kc(8),s.ad("matAutocomplete",t)("formControl",e.stateCtrl),s.kc(3),s.ad("ngForOf",s.Wc(23,12,e.filteredOptions)),s.kc(5),s.ad("ngForOf",s.Wc(28,14,e.argsByCategory)),s.kc(2),s.ad("matMenuTriggerFor",i),s.kc(4),s.ad("ngModelOptions",s.cd(16,vw))("ngModel",e.secondArgEnabled),s.kc(3),s.ad("ngIf",e.secondArgEnabled),s.kc(2),s.ad("disabled",!e.canAddArg()),s.kc(7),s.ad("mat-dialog-close",e.modified_args)}},directives:[gd,fd,Ko,Mc,Au,Ha,Ls,Fa,Jc,As,Fs,Wa,Yc,ye.s,ym,ms,xm,dr,$a,ye.t,bd,pd,ns,Hm,pu,mm],pipes:[ye.b,ye.l,kw],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),t})();var Cw,Sw;function Dw(t,e){1&t&&(s.Dc(0,"h6"),s.vd(1,"Update in progress"),s.Cc())}function Ew(t,e){1&t&&(s.Dc(0,"h6"),s.vd(1,"Update failed"),s.Cc())}function Aw(t,e){1&t&&(s.Dc(0,"h6"),s.vd(1,"Update succeeded!"),s.Cc())}function Ow(t,e){1&t&&s.zc(0,"mat-progress-bar",7)}function Iw(t,e){1&t&&s.zc(0,"mat-progress-bar",8)}function Pw(t,e){if(1&t&&(s.Dc(0,"p",9),s.vd(1),s.Cc()),2&t){const t=s.Uc(2);s.kc(1),s.wd(t.updateStatus.details)}}function Rw(t,e){if(1&t&&(s.Dc(0,"div"),s.Dc(1,"div",3),s.td(2,Dw,2,0,"h6",1),s.td(3,Ew,2,0,"h6",1),s.td(4,Aw,2,0,"h6",1),s.Cc(),s.td(5,Ow,1,0,"mat-progress-bar",4),s.td(6,Iw,1,0,"mat-progress-bar",5),s.td(7,Pw,2,1,"p",6),s.Cc()),2&t){const t=s.Uc();s.kc(2),s.ad("ngIf",t.updateStatus.updating),s.kc(1),s.ad("ngIf",!t.updateStatus.updating&&t.updateStatus.error),s.kc(1),s.ad("ngIf",!t.updateStatus.updating&&!t.updateStatus.error),s.kc(1),s.ad("ngIf",t.updateStatus.updating),s.kc(1),s.ad("ngIf",!t.updateStatus.updating),s.kc(1),s.ad("ngIf",t.updateStatus.details)}}Cw=$localize`:Update progress dialog title␟91ecce65f1d23f9419d1c953cd6b7bc7f91c110e␟7113575027620819093:Updater`,Sw=$localize`:Close update progress dialog␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let Tw=(()=>{class t{constructor(t,e){this.postsService=t,this.snackBar=e,this.updateStatus=null,this.updateInterval=250,this.errored=!1}ngOnInit(){this.getUpdateProgress(),setInterval(()=>{this.updateStatus.updating&&this.getUpdateProgress()},250)}getUpdateProgress(){this.postsService.getUpdaterStatus().subscribe(t=>{t&&(this.updateStatus=t,this.updateStatus&&this.updateStatus.error&&this.openSnackBar("Update failed. Check logs for more details."))})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(Bg))},t.\u0275cmp=s.sc({type:t,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,Cw),s.Cc(),s.Dc(2,"mat-dialog-content"),s.td(3,Rw,8,6,"div",1),s.Cc(),s.Dc(4,"mat-dialog-actions"),s.Dc(5,"button",2),s.Bc(6),s.Hc(7,Sw),s.Ac(),s.Cc(),s.Cc()),2&t&&(s.kc(3),s.ad("ngIf",e.updateStatus))},directives:[gd,fd,ye.t,bd,ms,pd,Zm],styles:[""]}),t})();var Mw;function Fw(t,e){if(1&t&&(s.Dc(0,"mat-option",6),s.vd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Uc(2);s.ad("value",t.tag_name),s.kc(1),s.xd(" ",t.tag_name+(t===i.latestStableRelease?" - Latest Stable":"")+(t.tag_name===i.CURRENT_VERSION?" - Current Version":"")," ")}}function Lw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",3),s.Dc(1,"mat-form-field"),s.Dc(2,"mat-select",4),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().selectedVersion=e})),s.td(3,Fw,2,2,"mat-option",5),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(2),s.ad("ngModel",t.selectedVersion),s.kc(1),s.ad("ngForOf",t.availableVersionsFiltered)}}function zw(t,e){1&t&&(s.Bc(0),s.vd(1,"Upgrade to"),s.Ac())}function Nw(t,e){1&t&&(s.Bc(0),s.vd(1,"Downgrade to"),s.Ac())}function Bw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",3),s.Dc(1,"button",7),s.Qc("click",(function(){return s.ld(t),s.Uc().updateServer()})),s.Dc(2,"mat-icon"),s.vd(3,"update"),s.Cc(),s.vd(4,"\xa0\xa0 "),s.td(5,zw,2,0,"ng-container",8),s.td(6,Nw,2,0,"ng-container",8),s.vd(7),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(5),s.ad("ngIf",t.selectedVersion>t.CURRENT_VERSION),s.kc(1),s.ad("ngIf",t.selectedVersion{class t{constructor(t,e){this.postsService=t,this.dialog=e,this.availableVersions=null,this.availableVersionsFiltered=[],this.versionsShowLimit=5,this.latestStableRelease=null,this.selectedVersion=null,this.CURRENT_VERSION="v3.6"}ngOnInit(){this.getAvailableVersions()}updateServer(){this.postsService.updateServer(this.selectedVersion).subscribe(t=>{t.success&&this.openUpdateProgressDialog()})}getAvailableVersions(){this.availableVersionsFiltered=[],this.postsService.getAvailableRelease().subscribe(t=>{this.availableVersions=t;for(let e=0;e=this.versionsShowLimit)break;this.availableVersionsFiltered.push(t)}})}openUpdateProgressDialog(){this.dialog.open(Tw,{minWidth:"300px",minHeight:"200px"})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(ud))},t.\u0275cmp=s.sc({type:t,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.Bc(2),s.Hc(3,Mw),s.Ac(),s.Cc(),s.td(4,Lw,4,2,"div",2),s.td(5,Bw,8,3,"div",2),s.Cc()),2&t&&(s.kc(4),s.ad("ngIf",e.availableVersions),s.kc(1),s.ad("ngIf",e.selectedVersion&&e.selectedVersion!==e.CURRENT_VERSION))},directives:[ye.t,Mc,jp,Fs,$a,ye.s,ns,ms,pu],styles:[""]}),t})();var jw;jw=$localize`:Settings title␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`;const Uw=["label",$localize`:Main settings label␟82421c3e46a0453a70c42900eab51d58d79e6599␟3815928829326879804:Main`],$w=["label",$localize`:Downloader settings label␟0ba25ad86a240576c4f20a2fada4722ebba77b1e␟5385813889746830226:Downloader`],Hw=["label",$localize`:Extra settings label␟d5f69691f9f05711633128b5a3db696783266b58␟7419412790104674886:Extra`],qw=["label",$localize`:Host settings label␟bc2e854e111ecf2bd7db170da5e3c2ed08181d88␟6201638315245239510:Advanced`];var Gw,Ww;Gw=$localize`:Settings save button␟52c9a103b812f258bcddc3d90a6e3f46871d25fe␟3768927257183755959:Save`,Ww=$localize`:Settings cancel and close button␟fe8fd36dbf5deee1d56564965787a782a66eba44␟1370226763724525124:{VAR_SELECT, select, true {Close} false {Cancel} other {otha}}`,Ww=s.Lc(Ww,{VAR_SELECT:"\ufffd0\ufffd"});const Yw=["placeholder",$localize`:URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var Qw;Qw=$localize`:URL setting input hint␟54c512cca1923ab72faf1a0bd98d3d172469629a␟5463756323010996100:URL this app will be accessed from, without the port.`;const Kw=["placeholder",$localize`:Port input placeholder␟cb2741a46e3560f6bc6dfd99d385e86b08b26d72␟6117946241126833991:Port`];var Xw,Zw;function Jw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-form-field",11),s.Dc(4,"input",12),s.Jc(5,Yw),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Host.url=e})),s.Cc(),s.Dc(6,"mat-hint"),s.Bc(7),s.Hc(8,Qw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(9,"div",13),s.Dc(10,"mat-form-field",11),s.Dc(11,"input",12),s.Jc(12,Kw),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Host.port=e})),s.Cc(),s.Dc(13,"mat-hint"),s.Bc(14),s.Hc(15,Xw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(4),s.ad("ngModel",t.new_config.Host.url),s.kc(7),s.ad("ngModel",t.new_config.Host.port)}}Xw=$localize`:Port setting input hint␟22e8f1d0423a3b784fe40fab187b92c06541b577␟12816402920404434:The desired port. Default is 17442.`,Zw=$localize`:Use encryption setting␟cbe16a57be414e84b6a68309d08fad894df797d6␟5503616660881623306:Use encryption`;const tk=["placeholder",$localize`:Cert file path input placeholder␟0c1875a79b7ecc792cc1bebca3e063e40b5764f9␟2857997144709025078:Cert file path`],ek=["placeholder",$localize`:Key file path input placeholder␟736551b93461d2de64b118cf4043eee1d1c2cb2c␟2320113463068090884:Key file path`];function ik(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Encryption["use-encryption"]=e})),s.Bc(4),s.Hc(5,Zw),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",15),s.Dc(7,"mat-form-field",11),s.Dc(8,"input",16),s.Jc(9,tk),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Encryption["cert-file-path"]=e})),s.Cc(),s.Cc(),s.Cc(),s.Dc(10,"div",15),s.Dc(11,"mat-form-field",11),s.Dc(12,"input",16),s.Jc(13,ek),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Encryption["key-file-path"]=e})),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(3),s.ad("ngModel",t.new_config.Encryption["use-encryption"]),s.kc(5),s.ad("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["cert-file-path"]),s.kc(4),s.ad("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["key-file-path"])}}var nk;nk=$localize`:Allow subscriptions setting␟4e3120311801c4acd18de7146add2ee4a4417773␟5800596718492516574:Allow subscriptions`;const sk=["placeholder",$localize`:Subscriptions base path input setting placeholder␟4bee2a4bef2d26d37c9b353c278e24e5cd309ce3␟6919010605968316948:Subscriptions base path`];var ak;ak=$localize`:Subscriptions base path setting input hint␟bc9892814ee2d119ae94378c905ea440a249b84a␟2622759576830659218:Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder.`;const ok=["placeholder",$localize`:Check interval input setting placeholder␟5bef4b25ba680da7fff06b86a91b1fc7e6a926e3␟5349606203941321178:Check interval`];var rk,lk,ck,dk,hk,uk,mk,pk,gk,fk;function bk(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Subscriptions.allow_subscriptions=e})),s.Bc(4),s.Hc(5,nk),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",15),s.Dc(7,"mat-form-field",11),s.Dc(8,"input",16),s.Jc(9,sk),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Subscriptions.subscriptions_base_path=e})),s.Cc(),s.Dc(10,"mat-hint"),s.Bc(11),s.Hc(12,ak),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(13,"div",17),s.Dc(14,"mat-form-field",11),s.Dc(15,"input",16),s.Jc(16,ok),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Subscriptions.subscriptions_check_interval=e})),s.Cc(),s.Dc(17,"mat-hint"),s.Bc(18),s.Hc(19,rk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(20,"div",18),s.Dc(21,"mat-checkbox",19),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),s.Bc(22),s.Hc(23,lk),s.Ac(),s.Cc(),s.Dc(24,"p"),s.Dc(25,"a",20),s.Bc(26),s.Hc(27,ck),s.Ac(),s.Cc(),s.vd(28,"\xa0"),s.Bc(29),s.Hc(30,dk),s.Ac(),s.Cc(),s.Dc(31,"p"),s.Bc(32),s.Hc(33,hk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(3),s.ad("ngModel",t.new_config.Subscriptions.allow_subscriptions),s.kc(5),s.ad("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_base_path),s.kc(7),s.ad("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_check_interval),s.kc(6),s.ad("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function _k(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-form-field"),s.Dc(4,"mat-label"),s.Bc(5),s.Hc(6,uk),s.Ac(),s.Cc(),s.Dc(7,"mat-select",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Themes.default_theme=e})),s.Dc(8,"mat-option",21),s.Bc(9),s.Hc(10,mk),s.Ac(),s.Cc(),s.Dc(11,"mat-option",22),s.Bc(12),s.Hc(13,pk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(14,"div",23),s.Dc(15,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Themes.allow_theme_change=e})),s.Bc(16),s.Hc(17,gk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(7),s.ad("ngModel",t.new_config.Themes.default_theme),s.kc(8),s.ad("ngModel",t.new_config.Themes.allow_theme_change)}}function yk(t,e){if(1&t&&(s.Dc(0,"mat-option",26),s.vd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Uc(3);s.ad("value",t),s.kc(1),s.xd(" ",i.all_locales[t].nativeName," ")}}function vk(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-form-field"),s.Dc(4,"mat-label"),s.Bc(5),s.Hc(6,fk),s.Ac(),s.Cc(),s.Dc(7,"mat-select",24),s.Qc("selectionChange",(function(e){return s.ld(t),s.Uc(2).localeSelectChanged(e.value)}))("valueChange",(function(e){return s.ld(t),s.Uc(2).initialLocale=e})),s.td(8,yk,2,2,"mat-option",25),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(7),s.ad("value",t.initialLocale),s.kc(1),s.ad("ngForOf",t.supported_locales)}}function wk(t,e){if(1&t&&(s.td(0,Jw,16,2,"div",7),s.zc(1,"mat-divider"),s.td(2,ik,14,5,"div",7),s.zc(3,"mat-divider"),s.td(4,bk,34,7,"div",7),s.zc(5,"mat-divider"),s.td(6,_k,18,2,"div",7),s.zc(7,"mat-divider"),s.td(8,vk,9,2,"div",7)),2&t){const t=s.Uc();s.ad("ngIf",t.new_config),s.kc(2),s.ad("ngIf",t.new_config),s.kc(2),s.ad("ngIf",t.new_config),s.kc(2),s.ad("ngIf",t.new_config),s.kc(2),s.ad("ngIf",t.new_config)}}rk=$localize`:Check interval setting input hint␟0f56a7449b77630c114615395bbda4cab398efd8␟1580663059483543498:Unit is seconds, only include numbers.`,lk=$localize`:Use youtube-dl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,ck=$localize`:youtube-dl archive explanation prefix link␟fa9fe4255231dd1cc6b29d3d254a25cb7c764f0f␟6707903974690925048:With youtube-dl's archive`,dk=$localize`:youtube-dl archive explanation middle␟09006404cccc24b7a8f8d1ce0b39f2761ab841d8␟954972440308853962:feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory.`,hk=$localize`:youtube-dl archive explanation suffix␟29ed79a98fc01e7f9537777598e31dbde3aa7981␟6686872891691588730:This enables the ability to permanently delete videos from your subscriptions without unsubscribing, and allows you to record which videos you downloaded in case of data loss.`,uk=$localize`:Theme select label␟27a56aad79d8b61269ed303f11664cc78bcc2522␟7103588127254721505:Theme`,mk=$localize`:Default theme label␟ff7cee38a2259526c519f878e71b964f41db4348␟5607669932062416162:Default`,pk=$localize`:Dark theme label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,gk=$localize`:Allow theme change setting␟7a6bacee4c31cb5c0ac2d24274fb4610d8858602␟8325128210832071900:Allow theme change`,fk=$localize`:Language select label␟fe46ccaae902ce974e2441abe752399288298619␟2826581353496868063:Language`;const kk=["placeholder",$localize`:Audio folder path input placeholder␟ab2756805742e84ad0cc0468f4be2d8aa9f855a5␟3475061775640312711:Audio folder path`];var xk;xk=$localize`:Aduio path setting input hint␟c2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca␟3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder.`;const Ck=["placeholder",$localize`:Video folder path input placeholder␟46826331da1949bd6fb74624447057099c9d20cd␟3354965786971797948:Video folder path`];var Sk;Sk=$localize`:Video path setting input hint␟17c92e6d47a213fa95b5aa344b3f258147123f93␟2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder.`;const Dk=["placeholder",$localize`:Custom args input placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var Ek,Ak;function Ok(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-form-field",11),s.Dc(4,"input",12),s.Jc(5,kk),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Downloader["path-audio"]=e})),s.Cc(),s.Dc(6,"mat-hint"),s.Bc(7),s.Hc(8,xk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(9,"div",17),s.Dc(10,"mat-form-field",11),s.Dc(11,"input",12),s.Jc(12,Ck),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Downloader["path-video"]=e})),s.Cc(),s.Dc(13,"mat-hint"),s.Bc(14),s.Hc(15,Sk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(16,"div",17),s.Dc(17,"mat-form-field",27),s.Dc(18,"textarea",28),s.Jc(19,Dk),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Downloader.custom_args=e})),s.Cc(),s.Dc(20,"mat-hint"),s.Bc(21),s.Hc(22,Ek),s.Ac(),s.Cc(),s.Dc(23,"button",29),s.Qc("click",(function(){return s.ld(t),s.Uc(2).openArgsModifierDialog()})),s.Dc(24,"mat-icon"),s.vd(25,"edit"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(26,"div",18),s.Dc(27,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Downloader.use_youtubedl_archive=e})),s.Bc(28),s.Hc(29,Ak),s.Ac(),s.Cc(),s.Dc(30,"p"),s.vd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(4),s.ad("ngModel",t.new_config.Downloader["path-audio"]),s.kc(7),s.ad("ngModel",t.new_config.Downloader["path-video"]),s.kc(7),s.ad("ngModel",t.new_config.Downloader.custom_args),s.kc(9),s.ad("ngModel",t.new_config.Downloader.use_youtubedl_archive)}}function Ik(t,e){if(1&t&&s.td(0,Ok,32,4,"div",7),2&t){const t=s.Uc();s.ad("ngIf",t.new_config)}}Ek=$localize`:Custom args setting input hint␟f41145afc02fd47ef0576ac79acd2c47ebbf4901␟8874045538582126918:Global custom args for downloads on the home page.`,Ak=$localize`:Use youtubedl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`;const Pk=["placeholder",$localize`:Top title input placeholder␟61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095␟1974727764328838461:Top title`];var Rk,Tk,Mk,Fk,Lk,zk,Nk;function Bk(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-form-field",11),s.Dc(4,"input",12),s.Jc(5,Pk),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Extra.title_top=e})),s.Cc(),s.zc(6,"mat-hint"),s.Cc(),s.Cc(),s.Dc(7,"div",15),s.Dc(8,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Extra.file_manager_enabled=e})),s.Bc(9),s.Hc(10,Rk),s.Ac(),s.Cc(),s.Cc(),s.Dc(11,"div",15),s.Dc(12,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Extra.allow_quality_select=e})),s.Bc(13),s.Hc(14,Tk),s.Ac(),s.Cc(),s.Cc(),s.Dc(15,"div",15),s.Dc(16,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Extra.download_only_mode=e})),s.Bc(17),s.Hc(18,Mk),s.Ac(),s.Cc(),s.Cc(),s.Dc(19,"div",15),s.Dc(20,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Extra.allow_multi_download_mode=e})),s.Bc(21),s.Hc(22,Fk),s.Ac(),s.Cc(),s.Cc(),s.Dc(23,"div",15),s.Dc(24,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Extra.settings_pin_required=e})),s.Bc(25),s.Hc(26,Lk),s.Ac(),s.Cc(),s.Dc(27,"button",30),s.Qc("click",(function(){return s.ld(t),s.Uc(2).setNewPin()})),s.Bc(28),s.Hc(29,zk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(4),s.ad("ngModel",t.new_config.Extra.title_top),s.kc(4),s.ad("ngModel",t.new_config.Extra.file_manager_enabled),s.kc(4),s.ad("ngModel",t.new_config.Extra.allow_quality_select),s.kc(4),s.ad("ngModel",t.new_config.Extra.download_only_mode),s.kc(4),s.ad("ngModel",t.new_config.Extra.allow_multi_download_mode),s.kc(4),s.ad("ngModel",t.new_config.Extra.settings_pin_required),s.kc(3),s.ad("disabled",!t.new_config.Extra.settings_pin_required)}}Rk=$localize`:File manager enabled setting␟78d3531417c0d4ba4c90f0d4ae741edc261ec8df␟488432415925701010:File manager enabled`,Tk=$localize`:Allow quality seelct setting␟c33bd5392b39dbed36b8e5a1145163a15d45835f␟2252491142626131446:Allow quality select`,Mk=$localize`:Download only mode setting␟bda5508e24e0d77debb28bcd9194d8fefb1cfb92␟2765258699599899343:Download only mode`,Fk=$localize`:Allow multi-downloade mode setting␟09d31c803a7252658694e1e3176b97f5655a3fe3␟1457782201611151239:Allow multi-download mode`,Lk=$localize`:Require pin for settings setting␟d8b47221b5af9e9e4cd5cb434d76fc0c91611409␟8888472341408176239:Require pin for settings`,zk=$localize`:Set new pin button␟f5ec7b2cdf87d41154f4fcbc86e856314409dcb9␟5079149426228636902:Set New Pin`,Nk=$localize`:Enable Public API key setting␟1c4dbce56d96b8974aac24a02f7ab2ee81415014␟1129973800849533636:Enable Public API`;const Vk=["placeholder",$localize`:Public API Key setting placeholder␟23bd81dcc30b74d06279a26d7a42e8901c1b124e␟5137591319364175431:Public API Key`];var jk,Uk,$k;function Hk(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.API.use_API_key=e})),s.Bc(4),s.Hc(5,Nk),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",31),s.Dc(7,"div",32),s.Dc(8,"mat-form-field",11),s.Dc(9,"input",33),s.Jc(10,Vk),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.API.API_key=e})),s.Cc(),s.Dc(11,"mat-hint"),s.Dc(12,"a",34),s.Bc(13),s.Hc(14,jk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(15,"div",35),s.Dc(16,"button",36),s.Qc("click",(function(){return s.ld(t),s.Uc(2).generateAPIKey()})),s.Bc(17),s.Hc(18,Uk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(3),s.ad("ngModel",t.new_config.API.use_API_key),s.kc(6),s.ad("disabled",!t.new_config.API.use_API_key)("ngModel",t.new_config.API.API_key)}}jk=$localize`:View API docs setting hint␟41016a73d8ad85e6cb26dffa0a8fab9fe8f60d8e␟7819423665857999846:View documentation`,Uk=$localize`:Generate key button␟1b258b258b4cc475ceb2871305b61756b0134f4a␟5193539160604294602:Generate`,$k=$localize`:Use YouTube API setting␟d5d7c61349f3b0859336066e6d453fc35d334fe5␟921806454742404419:Use YouTube API`;const qk=["placeholder",$localize`:Youtube API Key setting placeholder␟ce10d31febb3d9d60c160750570310f303a22c22␟8352766560503075759:Youtube API Key`];var Gk,Wk,Yk,Qk,Kk,Xk,Zk,Jk,tx,ex,ix,nx,sx;function ax(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.API.use_youtube_API=e})),s.Bc(4),s.Hc(5,$k),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",31),s.Dc(7,"mat-form-field",11),s.Dc(8,"input",33),s.Jc(9,qk),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.API.youtube_API_key=e})),s.Cc(),s.Dc(10,"mat-hint"),s.Dc(11,"a",37),s.Bc(12),s.Hc(13,Gk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(3),s.ad("ngModel",t.new_config.API.use_youtube_API),s.kc(5),s.ad("disabled",!t.new_config.API.use_youtube_API)("ngModel",t.new_config.API.youtube_API_key)}}function ox(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"h6"),s.vd(4,"Chrome"),s.Cc(),s.Dc(5,"p"),s.Dc(6,"a",38),s.Bc(7),s.Hc(8,Wk),s.Ac(),s.Cc(),s.vd(9,"\xa0"),s.Bc(10),s.Hc(11,Yk),s.Ac(),s.Cc(),s.Dc(12,"p"),s.Bc(13),s.Hc(14,Qk),s.Ac(),s.Cc(),s.zc(15,"mat-divider",39),s.Cc(),s.Dc(16,"div",15),s.Dc(17,"h6"),s.vd(18,"Firefox"),s.Cc(),s.Dc(19,"p"),s.Dc(20,"a",40),s.Bc(21),s.Hc(22,Kk),s.Ac(),s.Cc(),s.vd(23,"\xa0"),s.Bc(24),s.Hc(25,Xk),s.Ac(),s.Cc(),s.Dc(26,"p"),s.Dc(27,"a",41),s.Bc(28),s.Hc(29,Zk),s.Ac(),s.Cc(),s.vd(30,"\xa0"),s.Bc(31),s.Hc(32,Jk),s.Ac(),s.Cc(),s.zc(33,"mat-divider",39),s.Cc(),s.Dc(34,"div",15),s.Dc(35,"h6"),s.vd(36,"Bookmarklet"),s.Cc(),s.Dc(37,"p"),s.Bc(38),s.Hc(39,tx),s.Ac(),s.Cc(),s.Dc(40,"mat-checkbox",42),s.Qc("change",(function(e){return s.ld(t),s.Uc(2).bookmarkletAudioOnlyChanged(e)})),s.Bc(41),s.Hc(42,ex),s.Ac(),s.Cc(),s.Dc(43,"p"),s.Dc(44,"a",43),s.vd(45,"YTDL-Bookmarklet"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(44),s.ad("href",t.generated_bookmarklet_code,s.nd)}}function rx(t,e){if(1&t&&(s.td(0,Bk,30,7,"div",7),s.zc(1,"mat-divider"),s.td(2,Hk,19,3,"div",7),s.zc(3,"mat-divider"),s.td(4,ax,14,3,"div",7),s.zc(5,"mat-divider"),s.td(6,ox,46,1,"div",7)),2&t){const t=s.Uc();s.ad("ngIf",t.new_config),s.kc(2),s.ad("ngIf",t.new_config),s.kc(2),s.ad("ngIf",t.new_config),s.kc(2),s.ad("ngIf",t.new_config)}}function lx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",8),s.Dc(1,"div",9),s.Dc(2,"div",10),s.Dc(3,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Advanced.use_default_downloading_agent=e})),s.Bc(4),s.Hc(5,ix),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",15),s.Dc(7,"mat-form-field"),s.Dc(8,"mat-label"),s.Bc(9),s.Hc(10,nx),s.Ac(),s.Cc(),s.Dc(11,"mat-select",19),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Advanced.custom_downloading_agent=e})),s.Dc(12,"mat-option",45),s.vd(13,"aria2c"),s.Cc(),s.Dc(14,"mat-option",46),s.vd(15,"avconv"),s.Cc(),s.Dc(16,"mat-option",47),s.vd(17,"axel"),s.Cc(),s.Dc(18,"mat-option",48),s.vd(19,"curl"),s.Cc(),s.Dc(20,"mat-option",49),s.vd(21,"ffmpeg"),s.Cc(),s.Dc(22,"mat-option",50),s.vd(23,"httpie"),s.Cc(),s.Dc(24,"mat-option",51),s.vd(25,"wget"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(26,"div",31),s.Dc(27,"mat-checkbox",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).new_config.Advanced.allow_advanced_download=e})),s.Bc(28),s.Hc(29,sx),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(3),s.ad("ngModel",t.new_config.Advanced.use_default_downloading_agent),s.kc(8),s.ad("disabled",t.new_config.Advanced.use_default_downloading_agent)("ngModel",t.new_config.Advanced.custom_downloading_agent),s.kc(16),s.ad("ngModel",t.new_config.Advanced.allow_advanced_download)}}function cx(t,e){1&t&&(s.Dc(0,"div",52),s.zc(1,"app-updater"),s.Cc())}function dx(t,e){if(1&t&&(s.td(0,lx,30,4,"div",7),s.zc(1,"mat-divider"),s.td(2,cx,2,0,"div",44)),2&t){const t=s.Uc();s.ad("ngIf",t.new_config),s.kc(2),s.ad("ngIf",t.new_config)}}Gk=$localize`:Youtube API Key setting hint␟8602e313cdfa7c4cc475ccbe86459fce3c3fd986␟3231872778665115286:Generating a key is easy!`,Wk=$localize`:Chrome ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,Yk=$localize`:Chrome click here suffix␟7f09776373995003161235c0c8d02b7f91dbc4df␟2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually.`,Qk=$localize`:Chrome setup suffix␟5b5296423906ab3371fdb2b5a5aaa83acaa2ee52␟8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL.`,Kk=$localize`:Firefox ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,Xk=$localize`:Firefox click here suffix␟9a2ec6da48771128384887525bdcac992632c863␟8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page.`,Zk=$localize`:Firefox setup prefix link␟eb81be6b49e195e5307811d1d08a19259d411f37␟3930152199106610543:Detailed setup instructions.`,Jk=$localize`:Firefox setup suffix␟cb17ff8fe3961cf90f44bee97c88a3f3347a7e55␟5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL.`,tx=$localize`:Bookmarklet instructions␟61b81b11aad0b9d970ece2fce18405f07eac69c2␟907045314542317789:Drag the link below to your bookmarks, and you're good to go! Just navigate to the YouTube video you'd like to download, and click the bookmark.`,ex=$localize`:Generate audio only bookmarklet checkbox␟c505d6c5de63cc700f0aaf8a4b31fae9e18024e5␟7868265792526063076:Generate 'audio only' bookmarklet`,ix=$localize`:Use default downloading agent setting␟5fab47f146b0a4b809dcebf3db9da94df6299ea1␟1862425442411516950:Use default downloading agent`,nx=$localize`:Custom downloader select label␟ec71e08aee647ea4a71fd6b7510c54d84a797ca6␟13573305706839101:Select a downloader`,sx=$localize`:Allow advanced downloading setting␟dc3d990391c944d1fbfc7cfb402f7b5e112fb3a8␟4097058672287489906:Allow advanced download`;let hx=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.sanitizer=i,this.dialog=n,this.all_locales=aw,this.supported_locales=["en","es"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v3.6"}get settingsAreTheSame(){return this._settingsSame=this.settingsSame(),this._settingsSame}set settingsAreTheSame(t){this._settingsSame=t}ngOnInit(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}getConfig(){this.loading_config=!0,this.postsService.loadNavItems().subscribe(t=>{this.loading_config=!1,this.initial_config=this.postsService.debugMode?t.YoutubeDLMaterial:t.config_file.YoutubeDLMaterial,this.new_config=JSON.parse(JSON.stringify(this.initial_config))})}settingsSame(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}saveSettings(){this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe(t=>{t.success&&(this.postsService.settings_changed.next(!0),this.initial_config=JSON.parse(JSON.stringify(this.new_config)))},t=>{console.error("Failed to save config!")})}setNewPin(){this.dialog.open(sw,{data:{resetMode:!0}})}generateAPIKey(){this.postsService.generateNewAPIKey().subscribe(t=>{t.new_api_key&&(this.initial_config.API.API_key=t.new_api_key,this.new_config.API.API_key=t.new_api_key)})}localeSelectChanged(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}generateBookmarklet(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}generateBookmarkletCode(){return`javascript:(function()%7Bwindow.open('${window.location.href.split("#")[0]+"#/home;url="}' + encodeURIComponent(window.location) + ';audioOnly=${this.bookmarkletAudioOnly}')%7D)()`}bookmarkletAudioOnlyChanged(t){this.bookmarkletAudioOnly=t.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}bookmarksite(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){const i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("title",t),i.setAttribute("rel","sidebar"),i.click()}}openArgsModifierDialog(){this.dialog.open(xw,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe(t=>{t&&(this.new_config.Downloader.custom_args=t)})}getLatestGithubRelease(){this.postsService.getLatestGithubRelease().subscribe(t=>{this.latestGithubRelease=t})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(Bg),s.yc(n.b),s.yc(ud))},t.\u0275cmp=s.sc({type:t,selectors:[["app-settings"]],decls:30,vars:3,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"container-fluid","mt-1"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,jw),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"mat-tab-group"),s.Dc(4,"mat-tab",1),s.Jc(5,Uw),s.td(6,wk,9,5,"ng-template",2),s.Cc(),s.Dc(7,"mat-tab",1),s.Jc(8,$w),s.td(9,Ik,1,1,"ng-template",3),s.Cc(),s.Dc(10,"mat-tab",1),s.Jc(11,Hw),s.td(12,rx,7,4,"ng-template",3),s.Cc(),s.Dc(13,"mat-tab",1),s.Jc(14,qw),s.td(15,dx,3,2,"ng-template",3),s.Cc(),s.Cc(),s.Cc(),s.Dc(16,"mat-dialog-actions"),s.Dc(17,"div",4),s.Dc(18,"button",5),s.Qc("click",(function(){return e.saveSettings()})),s.Dc(19,"mat-icon"),s.vd(20,"done"),s.Cc(),s.vd(21,"\xa0\xa0 "),s.Bc(22),s.Hc(23,Gw),s.Ac(),s.Cc(),s.Dc(24,"button",6),s.Dc(25,"mat-icon"),s.vd(26,"cancel"),s.Cc(),s.vd(27,"\xa0\xa0 "),s.Dc(28,"span"),s.Hc(29,Ww),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t&&(s.kc(18),s.ad("disabled",e.settingsSame()),s.kc(6),s.ad("mat-dialog-close",!1),s.kc(5),s.Kc(e.settingsAreTheSame+""),s.Ic(29))},directives:[gd,fd,If,yf,mf,bd,ms,pu,pd,ye.t,Iu,Mc,Au,As,ao,Fs,$a,Cc,dr,Sc,jp,ns,ye.s,Hm,Vw],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}"]}),t})();var ux,mx,px,gx,fx,bx,_x,yx,vx,wx;function kx(t,e){1&t&&(s.Dc(0,"span",12),s.zc(1,"mat-spinner",13),s.vd(2,"\xa0"),s.Bc(3),s.Hc(4,vx),s.Ac(),s.Cc()),2&t&&(s.kc(1),s.ad("diameter",22))}function xx(t,e){1&t&&(s.Dc(0,"mat-icon",14),s.vd(1,"done"),s.Cc())}function Cx(t,e){if(1&t&&(s.Dc(0,"a",2),s.Bc(1),s.Hc(2,wx),s.Ac(),s.vd(3),s.Cc()),2&t){const t=s.Uc();s.ad("href",t.latestUpdateLink,s.nd),s.kc(3),s.xd(" - ",t.latestGithubRelease.tag_name,"")}}function Sx(t,e){1&t&&(s.Dc(0,"span"),s.vd(1,"You are up to date."),s.Cc())}ux=$localize`:About dialog title␟cec82c0a545f37420d55a9b6c45c20546e82f94e␟8863443674032361244:About YoutubeDL-Material`,mx=$localize`:About first paragraph␟199c17e5d6a419313af3c325f06dcbb9645ca618␟7048705050249868840:is an open-source YouTube downloader built under Google's Material Design specifications. You can seamlessly download your favorite videos as video or audio files, and even subscribe to your favorite channels and playlists to keep updated with their new videos.`,px=$localize`:About second paragraph␟bc0ad0ee6630acb7fcb7802ec79f5a0ee943c1a7␟786314306504588277:has some awesome features included! An extensive API, Docker support, and localization (translation) support. Read up on all the supported features by clicking on the GitHub icon above.`,gx=$localize`:Version label␟a45e3b05f0529dc5246d70ef62304c94426d4c81␟5296103174605274070:Installed version:`,fx=$localize`:Update through settings menu hint␟189b28aaa19b3c51c6111ad039c4fd5e2a22e370␟41092526824232895:You can update from the settings menu.`,bx=$localize`:About bug prefix␟b33536f59b94ec935a16bd6869d836895dc5300c␟3353248286278121979:Found a bug or have a suggestion?`,_x=$localize`:About bug click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,yx=$localize`:About bug suffix␟e1f398f38ff1534303d4bb80bd6cece245f24016␟1971178156716923826:to create an issue!`,vx=$localize`:Checking for updates text␟e22f3a5351944f3a1a10cfc7da6f65dfbe0037fe␟9163379406577397382:Checking for updates...`,wx=$localize`:View latest update␟a16e92385b4fd9677bb830a4b796b8b79c113290␟509090351011426949:Update available`;let Dx=(()=>{class t{constructor(t){this.postsService=t,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v3.6"}ngOnInit(){this.getLatestGithubRelease()}getLatestGithubRelease(){this.postsService.getLatestGithubRelease().subscribe(t=>{this.checking_for_updates=!1,this.latestGithubRelease=t})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv))},t.\u0275cmp=s.sc({type:t,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Bc(1),s.Hc(2,ux),s.Ac(),s.Dc(3,"span",1),s.Dc(4,"a",2),s.zc(5,"img",3),s.Cc(),s.zc(6,"img",4),s.Cc(),s.Cc(),s.Dc(7,"mat-dialog-content"),s.Dc(8,"div",5),s.Dc(9,"p"),s.Dc(10,"i"),s.vd(11,"YoutubeDL-Material"),s.Cc(),s.vd(12,"\xa0"),s.Bc(13),s.Hc(14,mx),s.Ac(),s.Cc(),s.Dc(15,"p"),s.Dc(16,"i"),s.vd(17,"YoutubeDL-Material"),s.Cc(),s.vd(18,"\xa0"),s.Bc(19),s.Hc(20,px),s.Ac(),s.Cc(),s.zc(21,"mat-divider"),s.Dc(22,"h5",6),s.vd(23,"Installation details:"),s.Cc(),s.Dc(24,"p"),s.Bc(25),s.Hc(26,gx),s.Ac(),s.vd(27),s.td(28,kx,5,1,"span",7),s.td(29,xx,2,0,"mat-icon",8),s.vd(30,"\xa0\xa0"),s.td(31,Cx,4,2,"a",9),s.vd(32,". "),s.Bc(33),s.Hc(34,fx),s.Ac(),s.td(35,Sx,2,0,"span",10),s.Cc(),s.Dc(36,"p"),s.Bc(37),s.Hc(38,bx),s.Ac(),s.vd(39,"\xa0"),s.Dc(40,"a",2),s.Bc(41),s.Hc(42,_x),s.Ac(),s.Cc(),s.vd(43,"\xa0"),s.Bc(44),s.Hc(45,yx),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(46,"mat-dialog-actions"),s.Dc(47,"button",11),s.vd(48,"Close"),s.Cc(),s.Cc()),2&t&&(s.kc(4),s.ad("href",e.projectLink,s.nd),s.kc(23),s.xd("\xa0",e.current_version_tag," - "),s.kc(1),s.ad("ngIf",e.checking_for_updates),s.kc(1),s.ad("ngIf",!e.checking_for_updates),s.kc(2),s.ad("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name!==e.current_version_tag),s.kc(4),s.ad("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name===e.current_version_tag),s.kc(5),s.ad("href",e.issuesLink,s.nd))},directives:[gd,fd,Iu,ye.t,bd,ms,pd,cp,pu],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),t})();const Ex=["sidenav"],Ax=["hamburgerMenu"];var Ox,Ix,Px,Rx,Tx,Mx;function Fx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",20,21),s.Qc("click",(function(){return s.ld(t),s.Uc().toggleSidenav()})),s.Dc(2,"mat-icon"),s.vd(3,"menu"),s.Cc(),s.Cc()}}function Lx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",22),s.Qc("click",(function(){return s.ld(t),s.Uc().goBack()})),s.Dc(1,"mat-icon"),s.vd(2,"arrow_back"),s.Cc(),s.Cc()}}function zx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",13),s.Qc("click",(function(e){return s.ld(t),s.Uc().themeMenuItemClicked(e)})),s.Dc(1,"mat-icon"),s.vd(2),s.Cc(),s.Dc(3,"span"),s.Hc(4,Tx),s.Cc(),s.zc(5,"mat-slide-toggle",23),s.Cc()}if(2&t){const t=s.Uc();s.kc(2),s.wd("default"===t.postsService.theme.key?"brightness_5":"brightness_2"),s.kc(3),s.ad("checked","dark"===t.postsService.theme.key)}}function Nx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"a",24),s.Qc("click",(function(){return s.ld(t),s.Uc(),s.hd(30).close()})),s.Bc(1),s.Hc(2,Mx),s.Ac(),s.Cc()}}Ox=$localize`:Settings menu label␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,Ix=$localize`:About menu label␟004b222ff9ef9dd4771b777950ca1d0e4cd4348a␟1726363342938046830:About`,Px=$localize`:Navigation menu Home Page title␟92eee6be6de0b11c924e3ab27db30257159c0a7c␟2821179408673282599:Home`,Rx=$localize`:Navigation menu Downloads Page title␟822fab38216f64e8166d368b59fe756ca39d301b␟9040361513231775562:Downloads`,Tx=$localize`:Dark mode toggle label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,Mx=$localize`:Navigation menu Subscriptions Page title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`;let Bx=(()=>{class t{constructor(t,e,i,n,s,a){this.postsService=t,this.snackBar=e,this.dialog=i,this.router=n,this.overlayContainer=s,this.elementRef=a,this.THEMES_CONFIG=Vb,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe(t=>{t instanceof d_?this.navigator=localStorage.getItem("player_navigator"):t instanceof h_&&this.hamburgerMenuButton&&this.hamburgerMenuButton.nativeElement&&this.hamburgerMenuButton.nativeElement.blur()}),this.loadConfig(),this.postsService.settings_changed.subscribe(t=>{t&&this.loadConfig()})}toggleSidenav(){this.sidenav.toggle()}loadConfig(){this.postsService.loadNavItems().subscribe(t=>{const e=this.postsService.debugMode?t:t.config_file;this.topBarTitle=e.YoutubeDLMaterial.Extra.title_top,this.settingsPinRequired=e.YoutubeDLMaterial.Extra.settings_pin_required;const i=e.YoutubeDLMaterial.Themes;this.defaultTheme=i?e.YoutubeDLMaterial.Themes.default_theme:"default",this.allowThemeChange=!i||e.YoutubeDLMaterial.Themes.allow_theme_change,this.allowSubscriptions=e.YoutubeDLMaterial.Subscriptions.allow_subscriptions,localStorage.getItem("theme")||this.setTheme(i?this.defaultTheme:"default")},t=>{console.log(t)})}setTheme(t){let e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}onSetTheme(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}flipTheme(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}themeMenuItemClicked(t){this.flipTheme(),t.stopPropagation()}ngOnInit(){localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme"))}goBack(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}openSettingsDialog(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}actuallyOpenSettingsDialog(){this.dialog.open(hx,{width:"80vw"})}openPinDialog(){this.dialog.open(sw,{}).afterClosed().subscribe(t=>{t&&this.actuallyOpenSettingsDialog()})}openAboutDialog(){this.dialog.open(Dx,{width:"80vw"})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(Bg),s.yc(ud),s.yc(Cv),s.yc(Nl),s.yc(s.q))},t.\u0275cmp=s.sc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.zd(Ex,!0),s.zd(Ax,!0,s.q)),2&t&&(s.gd(i=s.Rc())&&(e.sidenav=i.first),s.gd(i=s.Rc())&&(e.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&s.mc(e.componentCssClass)},decls:41,vars:10,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/subscriptions",3,"click"]],template:function(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",0),s.Dc(1,"div",1),s.Dc(2,"mat-toolbar",2),s.Dc(3,"div",3),s.Dc(4,"div",4),s.td(5,Fx,4,0,"button",5),s.td(6,Lx,3,0,"button",6),s.Cc(),s.Dc(7,"div",7),s.Dc(8,"div",8),s.vd(9),s.Cc(),s.Cc(),s.Dc(10,"div",9),s.Dc(11,"button",10),s.Dc(12,"mat-icon"),s.vd(13,"more_vert"),s.Cc(),s.Cc(),s.Dc(14,"mat-menu",null,11),s.td(16,zx,6,2,"button",12),s.Dc(17,"button",13),s.Qc("click",(function(){return e.openSettingsDialog()})),s.Dc(18,"mat-icon"),s.vd(19,"settings"),s.Cc(),s.Dc(20,"span"),s.Hc(21,Ox),s.Cc(),s.Cc(),s.Dc(22,"button",13),s.Qc("click",(function(){return e.openAboutDialog()})),s.Dc(23,"mat-icon"),s.vd(24,"info"),s.Cc(),s.Dc(25,"span"),s.Hc(26,Ix),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(27,"div",14),s.Dc(28,"mat-sidenav-container",15),s.Dc(29,"mat-sidenav",null,16),s.Dc(31,"mat-nav-list"),s.Dc(32,"a",17),s.Qc("click",(function(){return s.ld(t),s.hd(30).close()})),s.Bc(33),s.Hc(34,Px),s.Ac(),s.Cc(),s.td(35,Nx,3,0,"a",18),s.Dc(36,"a",19),s.Qc("click",(function(){return s.ld(t),s.hd(30).close()})),s.Bc(37),s.Hc(38,Rx),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(39,"mat-sidenav-content"),s.zc(40,"router-outlet"),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.hd(15);s.sd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.rc),s.kc(5),s.ad("ngIf","/player"!==e.router.url.split(";")[0]),s.kc(1),s.ad("ngIf","/player"===e.router.url.split(";")[0]),s.kc(3),s.xd(" ",e.topBarTitle," "),s.kc(2),s.ad("matMenuTriggerFor",t),s.kc(5),s.ad("ngIf",e.allowThemeChange),s.kc(19),s.ad("ngIf",e.allowSubscriptions),s.kc(4),s.sd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.rc)}},directives:[qg,ye.t,ms,xm,pu,ym,mm,lg,og,$u,Qu,Dv,ag,Pv,kg],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),t})();function Vx(t,e,i,n){return new(i||(i=Promise))((function(s,a){function o(t){try{l(n.next(t))}catch(e){a(e)}}function r(t){try{l(n.throw(t))}catch(e){a(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,r)}l((n=n.apply(t,e||[])).next())}))}var jx=i("Iab2");class Ux{constructor(t){this.id=t&&t.id||null,this.title=t&&t.title||null,this.desc=t&&t.desc||null,this.thumbnailUrl=t&&t.thumbnailUrl||null,this.uploaded=t&&t.uploaded||null,this.videoUrl=t&&t.videoUrl||`https://www.youtube.com/watch?v=${this.id}`,this.uploaded=function(t){const e=new Date(t),i=Hx(e.getMonth()+1),n=Hx(e.getDate()),s=e.getFullYear();let a;a=e.getHours();const o=Hx(e.getMinutes());let r="AM";const l=parseInt(a,10);return l>12?(r="PM",a=l-12):0===l&&(a="12"),a=Hx(a),i+"-"+n+"-"+s+" "+a+":"+o+" "+r}(Date.parse(this.uploaded))}}let $x=(()=>{class t{constructor(t){this.http=t,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}initializeAPI(t){this.key=t}search(t){if(this.ValidURL(t))return new si.a;const e=[`q=${t}`,`key=${this.key}`,"part=snippet","type=video","maxResults=5"].join("&");return this.http.get(`${this.url}?${e}`).map(t=>t.items.map(t=>new Ux({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})))}ValidURL(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Nh))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Hx(t){return t<10?"0"+t:t}var qx;qx=$localize`:Create a playlist dialog title␟17f0ea5d2d7a262b0e875acc70475f102aee84e6␟3949911572988594237:Create a playlist`;const Gx=["placeholder",$localize`:Playlist name placeholder␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];var Wx,Yx;function Qx(t,e){1&t&&(s.Dc(0,"mat-label"),s.Bc(1),s.Hc(2,Wx),s.Ac(),s.Cc())}function Kx(t,e){1&t&&(s.Dc(0,"mat-label"),s.Bc(1),s.Hc(2,Yx),s.Ac(),s.Cc())}function Xx(t,e){if(1&t&&(s.Dc(0,"mat-option",8),s.vd(1),s.Cc()),2&t){const t=e.$implicit;s.ad("value",t.id),s.kc(1),s.wd(t.id)}}function Zx(t,e){1&t&&(s.Dc(0,"div",9),s.zc(1,"mat-spinner",10),s.Cc()),2&t&&(s.kc(1),s.ad("diameter",25))}Wx=$localize`:Audio files title␟f47e2d56dd8a145b2e9599da9730c049d52962a2␟253926325379303932:Audio files`,Yx=$localize`:Videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const Jx=function(){return{standalone:!0}};let tC=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Ia,this.name="",this.create_in_progress=!1}ngOnInit(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}createPlaylist(){const t=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,t).subscribe(t=>{this.create_in_progress=!1,this.dialogRef.close(!!t.success)})}getThumbnailURL(){for(let t=0;t1?"first-result-card":"",i===n.results.length-1&&n.results.length>1?"last-result-card":"",1===n.results.length?"only-result-card":"")),s.kc(2),s.xd(" ",t.title," "),s.kc(2),s.xd(" ",t.uploaded," ")}}function yC(t,e){if(1&t&&(s.Dc(0,"div",34),s.td(1,_C,12,7,"span",28),s.Cc()),2&t){const t=s.Uc();s.kc(1),s.ad("ngForOf",t.results)}}var vC,wC,kC,xC;function CC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-checkbox",40),s.Qc("change",(function(e){return s.ld(t),s.Uc().multiDownloadModeChanged(e)}))("ngModelChange",(function(e){return s.ld(t),s.Uc().multiDownloadMode=e})),s.Bc(1),s.Hc(2,vC),s.Ac(),s.Cc()}if(2&t){const t=s.Uc();s.ad("disabled",t.current_download)("ngModel",t.multiDownloadMode)}}function SC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",41),s.Qc("click",(function(){return s.ld(t),s.Uc().cancelDownload()})),s.Bc(1),s.Hc(2,wC),s.Ac(),s.Cc()}}vC=$localize`:Multi-download Mode checkbox␟96a01fafe135afc58b0f8071a4ab00234495ce18␟1215999553275961560: Multi-download Mode `,wC=$localize`:Cancel download button␟6a3777f913cf3f288664f0632b9f24794fdcc24e␟6991067716289442185: Cancel `,kC=$localize`:Advanced download mode panel␟322ed150e02666fe2259c5b4614eac7066f4ffa0␟7427754392029374006: Advanced `,xC=$localize`:Use custom args checkbox␟4e4c721129466be9c3862294dc40241b64045998␟5091669664044282329: Use custom args `;const DC=["placeholder",$localize`:Custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var EC,AC;EC=$localize`:Custom Args input hint␟ccc7e92cbdd35e901acf9ad80941abee07bd8f60␟8882144118477601028: No need to include URL, just everything after. `,AC=$localize`:Use custom output checkbox␟3a92a3443c65a52f37ca7efb8f453b35dbefbf29␟5904983012542242085: Use custom output `;const OC=["placeholder",$localize`:Custom output placeholder␟d9c02face477f2f9cdaae318ccee5f89856851fb␟3075663591125020403:Custom output`];var IC,PC,RC,TC;function MC(t,e){if(1&t&&(s.Dc(0,"p"),s.Bc(1),s.Hc(2,RC),s.Ac(),s.vd(3," \xa0"),s.Dc(4,"i"),s.vd(5),s.Cc(),s.Cc()),2&t){const t=s.Uc(2);s.kc(5),s.wd(t.simulatedOutput)}}IC=$localize`:Youtube-dl output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,PC=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,RC=$localize`:Simulated command label␟b7ffe7c6586d6f3f18a9246806a7c7d5538ab43e␟4637303589735709945: Simulated command: `,TC=$localize`:Use authentication checkbox␟8fad10737d3e3735a6699a4d89cbf6c20f6bb55f␟294759932648923187: Use authentication `;const FC=["placeholder",$localize`:YT Username placeholder␟08c74dc9762957593b91f6eb5d65efdfc975bf48␟5248717555542428023:Username`];function LC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",52),s.Dc(1,"mat-checkbox",46),s.Qc("change",(function(e){return s.ld(t),s.Uc(2).youtubeAuthEnabledChanged(e)}))("ngModelChange",(function(e){return s.ld(t),s.Uc(2).youtubeAuthEnabled=e})),s.Bc(2),s.Hc(3,TC),s.Ac(),s.Cc(),s.Dc(4,"mat-form-field",53),s.Dc(5,"input",49),s.Jc(6,FC),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).youtubeUsername=e})),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(1),s.ad("disabled",t.current_download)("ngModel",t.youtubeAuthEnabled)("ngModelOptions",s.cd(6,mC)),s.kc(4),s.ad("ngModel",t.youtubeUsername)("ngModelOptions",s.cd(7,mC))("disabled",!t.youtubeAuthEnabled)}}const zC=["placeholder",$localize`:YT Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];function NC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",52),s.Dc(1,"mat-form-field",54),s.Dc(2,"input",55),s.Jc(3,zC),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc(2).youtubePassword=e})),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(2),s.ad("ngModel",t.youtubePassword)("ngModelOptions",s.cd(3,mC))("disabled",!t.youtubeAuthEnabled)}}function BC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",0),s.Dc(1,"form",42),s.Dc(2,"mat-expansion-panel",43),s.Dc(3,"mat-expansion-panel-header"),s.Dc(4,"mat-panel-title"),s.Bc(5),s.Hc(6,kC),s.Ac(),s.Cc(),s.Cc(),s.td(7,MC,6,1,"p",10),s.Dc(8,"div",44),s.Dc(9,"div",5),s.Dc(10,"div",45),s.Dc(11,"mat-checkbox",46),s.Qc("change",(function(e){return s.ld(t),s.Uc().customArgsEnabledChanged(e)}))("ngModelChange",(function(e){return s.ld(t),s.Uc().customArgsEnabled=e})),s.Bc(12),s.Hc(13,xC),s.Ac(),s.Cc(),s.Dc(14,"button",47),s.Qc("click",(function(){return s.ld(t),s.Uc().openArgsModifierDialog()})),s.Dc(15,"mat-icon"),s.vd(16,"edit"),s.Cc(),s.Cc(),s.Dc(17,"mat-form-field",48),s.Dc(18,"input",49),s.Jc(19,DC),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().customArgs=e})),s.Cc(),s.Dc(20,"mat-hint"),s.Bc(21),s.Hc(22,EC),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(23,"div",45),s.Dc(24,"mat-checkbox",46),s.Qc("change",(function(e){return s.ld(t),s.Uc().customOutputEnabledChanged(e)}))("ngModelChange",(function(e){return s.ld(t),s.Uc().customOutputEnabled=e})),s.Bc(25),s.Hc(26,AC),s.Ac(),s.Cc(),s.Dc(27,"mat-form-field",48),s.Dc(28,"input",49),s.Jc(29,OC),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().customOutput=e})),s.Cc(),s.Dc(30,"mat-hint"),s.Dc(31,"a",50),s.Bc(32),s.Hc(33,IC),s.Ac(),s.Cc(),s.vd(34,". "),s.Bc(35),s.Hc(36,PC),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.td(37,LC,7,8,"div",51),s.td(38,NC,4,4,"div",51),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(7),s.ad("ngIf",t.simulatedOutput),s.kc(4),s.ad("disabled",t.current_download)("ngModel",t.customArgsEnabled)("ngModelOptions",s.cd(15,mC)),s.kc(7),s.ad("ngModel",t.customArgs)("ngModelOptions",s.cd(16,mC))("disabled",!t.customArgsEnabled),s.kc(6),s.ad("disabled",t.current_download)("ngModel",t.customOutputEnabled)("ngModelOptions",s.cd(17,mC)),s.kc(4),s.ad("ngModel",t.customOutput)("ngModelOptions",s.cd(18,mC))("disabled",!t.customOutputEnabled),s.kc(9),s.ad("ngIf",!t.youtubeAuthDisabledOverride),s.kc(1),s.ad("ngIf",!t.youtubeAuthDisabledOverride)}}function VC(t,e){1&t&&s.zc(0,"mat-divider",2)}function jC(t,e){if(1&t){const t=s.Ec();s.Bc(0),s.Dc(1,"app-download-item",60),s.Qc("cancelDownload",(function(e){return s.ld(t),s.Uc(3).cancelDownload(e)})),s.Cc(),s.td(2,VC,1,0,"mat-divider",61),s.Ac()}if(2&t){const t=s.Uc(),e=t.$implicit,i=t.index,n=s.Uc(2);s.kc(1),s.ad("download",e)("queueNumber",i+1),s.kc(1),s.ad("ngIf",i!==n.downloads.length-1)}}function UC(t,e){if(1&t&&(s.Dc(0,"div",5),s.td(1,jC,3,3,"ng-container",10),s.Cc()),2&t){const t=e.$implicit,i=s.Uc(2);s.kc(1),s.ad("ngIf",i.current_download!==t&&t.downloading)}}function $C(t,e){if(1&t&&(s.Dc(0,"div",56),s.Dc(1,"mat-card",57),s.Dc(2,"div",58),s.td(3,UC,2,1,"div",59),s.Cc(),s.Cc(),s.Cc()),2&t){const t=s.Uc();s.kc(3),s.ad("ngForOf",t.downloads)}}function HC(t,e){if(1&t&&(s.Dc(0,"div",67),s.zc(1,"mat-progress-bar",68),s.zc(2,"br"),s.Cc()),2&t){const t=s.Uc(2);s.ad("ngClass",t.percentDownloaded>15&&100===t.percentDownloaded?"make-room-for-spinner":"equal-sizes"),s.kc(1),s.bd("value",t.percentDownloaded)}}function qC(t,e){1&t&&(s.Dc(0,"div",69),s.zc(1,"mat-spinner",33),s.Cc()),2&t&&(s.kc(1),s.ad("diameter",25))}function GC(t,e){1&t&&s.zc(0,"mat-progress-bar",70)}function WC(t,e){if(1&t&&(s.Dc(0,"div",62),s.Dc(1,"div",63),s.td(2,HC,3,2,"div",64),s.td(3,qC,2,1,"div",65),s.td(4,GC,1,0,"ng-template",null,66,s.ud),s.Cc(),s.zc(6,"br"),s.Cc()),2&t){const t=s.hd(5),e=s.Uc();s.kc(2),s.ad("ngIf",e.current_download.percent_complete&&e.current_download.percent_complete>15)("ngIfElse",t),s.kc(1),s.ad("ngIf",100===e.percentDownloaded)}}function YC(t,e){}var QC,KC,XC,ZC,JC,tS,eS,iS;function nS(t,e){1&t&&s.zc(0,"mat-progress-bar",82)}function sS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",79,80),s.Qc("removeFile",(function(e){return s.ld(t),s.Uc(3).removeFromMp3(e)})),s.Cc(),s.td(3,nS,1,0,"mat-progress-bar",81),s.Cc()}if(2&t){const t=e.$implicit,i=s.Uc(3);s.kc(1),s.ad("file",t)("title",t.title)("name",t.id)("uid",t.uid)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!0)("use_youtubedl_archive",i.use_youtubedl_archive),s.kc(2),s.ad("ngIf",i.downloading_content.audio[t.id])}}function aS(t,e){1&t&&s.zc(0,"mat-progress-bar",82)}function oS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",84,80),s.Qc("removeFile",(function(){s.ld(t);const i=e.$implicit,n=e.index;return s.Uc(4).removePlaylistMp3(i.id,n)})),s.Cc(),s.td(3,aS,1,0,"mat-progress-bar",81),s.Cc()}if(2&t){const t=e.$implicit,i=s.Uc(4);s.kc(1),s.ad("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!0)("isPlaylist",!0)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.kc(2),s.ad("ngIf",i.downloading_content.audio[t.id])}}function rS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-list",83),s.Qc("resize",(function(e){return s.ld(t),s.Uc(3).onResize(e)}),!1,s.kd),s.td(1,oS,4,9,"mat-grid-tile",28),s.Cc()}if(2&t){const t=s.Uc(3);s.ad("cols",t.files_cols),s.kc(1),s.ad("ngForOf",t.playlists.audio)}}function lS(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,tS),s.Ac(),s.Cc())}function cS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-grid-list",74),s.Qc("resize",(function(e){return s.ld(t),s.Uc(2).onResize(e)}),!1,s.kd),s.td(2,sS,4,9,"mat-grid-tile",28),s.Cc(),s.zc(3,"mat-divider"),s.Dc(4,"div",75),s.Dc(5,"h6"),s.Hc(6,JC),s.Cc(),s.Cc(),s.td(7,rS,2,2,"mat-grid-list",76),s.Dc(8,"div",77),s.Dc(9,"button",78),s.Qc("click",(function(){return s.ld(t),s.Uc(2).openCreatePlaylistDialog("audio")})),s.Dc(10,"mat-icon"),s.vd(11,"add"),s.Cc(),s.Cc(),s.Cc(),s.td(12,lS,3,0,"div",10),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(1),s.ad("cols",t.files_cols),s.kc(1),s.ad("ngForOf",t.mp3s),s.kc(5),s.ad("ngIf",t.playlists.audio.length>0),s.kc(5),s.ad("ngIf",0===t.playlists.audio.length)}}function dS(t,e){1&t&&s.zc(0,"mat-progress-bar",82)}function hS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",79,85),s.Qc("removeFile",(function(e){return s.ld(t),s.Uc(3).removeFromMp4(e)})),s.Cc(),s.td(3,dS,1,0,"mat-progress-bar",81),s.Cc()}if(2&t){const t=e.$implicit,i=s.Uc(3);s.kc(1),s.ad("file",t)("title",t.title)("name",t.id)("uid",t.uid)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!1)("use_youtubedl_archive",i.use_youtubedl_archive),s.kc(2),s.ad("ngIf",i.downloading_content.video[t.id])}}function uS(t,e){1&t&&s.zc(0,"mat-progress-bar",82)}function mS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",84,85),s.Qc("removeFile",(function(){s.ld(t);const i=e.$implicit,n=e.index;return s.Uc(4).removePlaylistMp4(i.id,n)})),s.Cc(),s.td(3,uS,1,0,"mat-progress-bar",81),s.Cc()}if(2&t){const t=e.$implicit,i=s.Uc(4);s.kc(1),s.ad("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!1)("isPlaylist",!0)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.kc(2),s.ad("ngIf",i.downloading_content.video[t.id])}}function pS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-list",83),s.Qc("resize",(function(e){return s.ld(t),s.Uc(3).onResize(e)}),!1,s.kd),s.td(1,mS,4,9,"mat-grid-tile",28),s.Cc()}if(2&t){const t=s.Uc(3);s.ad("cols",t.files_cols),s.kc(1),s.ad("ngForOf",t.playlists.video)}}function gS(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,iS),s.Ac(),s.Cc())}function fS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-grid-list",74),s.Qc("resize",(function(e){return s.ld(t),s.Uc(2).onResize(e)}),!1,s.kd),s.td(2,hS,4,9,"mat-grid-tile",28),s.Cc(),s.zc(3,"mat-divider"),s.Dc(4,"div",75),s.Dc(5,"h6"),s.Hc(6,eS),s.Cc(),s.Cc(),s.td(7,pS,2,2,"mat-grid-list",76),s.Dc(8,"div",77),s.Dc(9,"button",78),s.Qc("click",(function(){return s.ld(t),s.Uc(2).openCreatePlaylistDialog("video")})),s.Dc(10,"mat-icon"),s.vd(11,"add"),s.Cc(),s.Cc(),s.Cc(),s.td(12,gS,3,0,"div",10),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(1),s.ad("cols",t.files_cols),s.kc(1),s.ad("ngForOf",t.mp4s),s.kc(5),s.ad("ngIf",t.playlists.video.length>0),s.kc(5),s.ad("ngIf",0===t.playlists.video.length)}}function bS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",71),s.Dc(1,"mat-accordion"),s.Dc(2,"mat-expansion-panel",72),s.Qc("opened",(function(){return s.ld(t),s.Uc().accordionOpened("audio")}))("closed",(function(){return s.ld(t),s.Uc().accordionClosed("audio")}))("mouseleave",(function(){return s.ld(t),s.Uc().accordionLeft("audio")}))("mouseenter",(function(){return s.ld(t),s.Uc().accordionEntered("audio")})),s.Dc(3,"mat-expansion-panel-header"),s.Dc(4,"mat-panel-title"),s.Bc(5),s.Hc(6,QC),s.Ac(),s.Cc(),s.Dc(7,"mat-panel-description"),s.Bc(8),s.Hc(9,KC),s.Ac(),s.Cc(),s.Cc(),s.td(10,cS,13,4,"div",73),s.Cc(),s.Dc(11,"mat-expansion-panel",72),s.Qc("opened",(function(){return s.ld(t),s.Uc().accordionOpened("video")}))("closed",(function(){return s.ld(t),s.Uc().accordionClosed("video")}))("mouseleave",(function(){return s.ld(t),s.Uc().accordionLeft("video")}))("mouseenter",(function(){return s.ld(t),s.Uc().accordionEntered("video")})),s.Dc(12,"mat-expansion-panel-header"),s.Dc(13,"mat-panel-title"),s.Bc(14),s.Hc(15,XC),s.Ac(),s.Cc(),s.Dc(16,"mat-panel-description"),s.Bc(17),s.Hc(18,ZC),s.Ac(),s.Cc(),s.Cc(),s.td(19,fS,13,4,"div",73),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(),e=s.hd(39),i=s.hd(41);s.kc(10),s.ad("ngIf",t.mp3s.length>0)("ngIfElse",e),s.kc(9),s.ad("ngIf",t.mp4s.length>0)("ngIfElse",i)}}function _S(t,e){}function yS(t,e){}QC=$localize`:Audio files title␟4a0dada6e841a425de3e5006e6a04df26c644fa5␟520791250454025553: Audio `,KC=$localize`:Audio files description␟9779715ac05308973d8f1c8658b29b986e92450f␟3371870979788549262: Your audio files are here `,XC=$localize`:Video files title␟9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33␟429855630861441368: Video `,ZC=$localize`:Video files description␟960582a8b9d7942716866ecfb7718309728f2916␟691504174199627518: Your video files are here `,JC=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,tS=$localize`:No video playlists available text␟78bd81adb4609b68cfa4c589222bdc233ba1faaa␟5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. `,eS=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,iS=$localize`:No video playlists available text␟0f59c46ca29e9725898093c9ea6b586730d0624e␟6806070849891381327: No playlists available. Create one from your downloading video files by clicking the blue plus button. `;let vS=!1,wS=!1,kS=!1,xS=!1,CS=(()=>{class t{constructor(t,e,i,n,s,a,o){this.postsService=t,this.youtubeSearch=e,this.snackBar=i,this.router=n,this.dialog=s,this.platform=a,this.route=o,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Ia("",[js.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}configLoad(){return Vx(this,void 0,void 0,(function*(){yield this.loadConfig(),this.autoStartDownload&&this.downloadClicked(),setInterval(()=>this.getSimulatedOutput(),1e3)}))}loadConfig(){return Vx(this,void 0,void 0,(function*(){this.postsService.loadNavItems().subscribe(t=>{const e=this.postsService.debugMode?t:t.config_file;if(this.fileManagerEnabled=e.YoutubeDLMaterial.Extra.file_manager_enabled,this.downloadOnlyMode=e.YoutubeDLMaterial.Extra.download_only_mode,this.allowMultiDownloadMode=e.YoutubeDLMaterial.Extra.allow_multi_download_mode,this.audioFolderPath=e.YoutubeDLMaterial.Downloader["path-audio"],this.videoFolderPath=e.YoutubeDLMaterial.Downloader["path-video"],this.use_youtubedl_archive=e.YoutubeDLMaterial.Downloader.use_youtubedl_archive,this.globalCustomArgs=e.YoutubeDLMaterial.Downloader.custom_args,this.youtubeSearchEnabled=e.YoutubeDLMaterial.API&&e.YoutubeDLMaterial.API.use_youtube_API&&e.YoutubeDLMaterial.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?e.YoutubeDLMaterial.API.youtube_API_key:null,this.allowQualitySelect=e.YoutubeDLMaterial.Extra.allow_quality_select,this.allowAdvancedDownload=e.YoutubeDLMaterial.Advanced.allow_advanced_download,this.useDefaultDownloadingAgent=e.YoutubeDLMaterial.Advanced.use_default_downloading_agent,this.customDownloadingAgent=e.YoutubeDLMaterial.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload){null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled"));const t=localStorage.getItem("customArgs"),e=localStorage.getItem("customOutput"),i=localStorage.getItem("youtubeUsername");t&&"null"!==t&&(this.customArgs=t),e&&"null"!==e&&(this.customOutput=e),i&&"null"!==i&&(this.youtubeUsername=i)}return setInterval(()=>{this.current_download&&this.getCurrentDownload()},500),!0},t=>(console.log(t),!1))}))}ngOnInit(){this.configLoad(),this.postsService.settings_changed.subscribe(t=>{t&&this.loadConfig()}),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}getMp3s(){this.postsService.getMp3s().subscribe(t=>{const e=t.mp3s,i=t.playlists;JSON.stringify(this.mp3s)!==JSON.stringify(e)&&(this.mp3s=e),this.playlists.audio=i;for(let n=0;n{console.log(t)})}getMp4s(){this.postsService.getMp4s().subscribe(t=>{const e=t.mp4s,i=t.playlists;JSON.stringify(this.mp4s)!==JSON.stringify(e)&&(this.mp4s=e),this.playlists.video=i;for(let n=0;n{console.log(t)})}setCols(){this.files_cols=window.innerWidth<=350?1:window.innerWidth<=500?2:window.innerWidth<=750?3:4}goToFile(t,e,i){e?this.downloadHelperMp3(t,i,!1,!1):this.downloadHelperMp4(t,i,!1,!1)}goToPlaylist(t,e){const i=this.getPlaylistObjectByID(t,e);i?this.downloadOnlyMode?(this.downloading_content[e][t]=!0,this.downloadPlaylist(i.fileNames,e,i.name,t)):(localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:i.fileNames.join("|nvr|"),type:e,id:t,uid:t}])):console.error(`Playlist with ID ${t} not found!`)}getPlaylistObjectByID(t,e){for(let i=0;i{t.success&&(this.playlists.audio.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp3s()})}removeFromMp4(t){for(let e=0;e{t.success&&(this.playlists.video.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp4s()})}downloadHelperMp3(t,e,i=!1,n=!1,s=null){if(this.downloadingfile=!1,this.multiDownloadMode&&!this.downloadOnlyMode);else if(!1===n&&this.downloadOnlyMode&&!this.iOS)if(i){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",e)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{fileNames:t,type:"audio",uid:e}]);this.removeDownloadFromCurrentDownloads(s),this.fileManagerEnabled&&(this.getMp3s(),setTimeout(()=>{this.audioFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadHelperMp4(t,e,i=!1,n=!1,s=null){if(this.downloadingfile=!1,this.multiDownloadMode&&!this.downloadOnlyMode);else if(!1===n&&this.downloadOnlyMode)if(i){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",e)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{fileNames:t,type:"video",uid:e}]);this.removeDownloadFromCurrentDownloads(s),this.fileManagerEnabled&&(this.getMp4s(),setTimeout(()=>{this.videoFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadClicked(){if(this.ValidURL(this.url)){this.urlError=!1,this.path="";const t=this.customArgsEnabled?this.customArgs:null,e=this.customOutputEnabled?this.customOutput:null,i=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,n=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(t&&localStorage.setItem("customArgs",t),e&&localStorage.setItem("customOutput",e),i&&localStorage.setItem("youtubeUsername",i)),this.audioOnly){const s={uid:Object(Ub.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;let a=null;""!==this.selectedQuality&&(a=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n,s.uid).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.audiopathEncoded,this.current_download=null,"-1"!==this.path&&this.downloadHelperMp3(this.path,t.uid,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1;const e=this.downloads.indexOf(s);-1!==e&&this.downloads.splice(e),this.openSnackBar("Download failed!","OK.")})}else{const s={uid:Object(Ub.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;const a=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n,s.uid).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.videopathEncoded,this.current_download=null,"-1"!==this.path&&this.downloadHelperMp4(this.path,t.uid,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1;const e=this.downloads.indexOf(s);-1!==e&&this.downloads.splice(e),this.openSnackBar("Download failed!","OK.")})}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}cancelDownload(t=null){t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}getSelectedAudioFormat(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}getSelectedVideoFormat(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){const t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}getDownloadByUID(t){const e=this.downloads.findIndex(e=>e.uid===t);return-1!==e?this.downloads[e]:null}removeDownloadFromCurrentDownloads(t){this.current_download===t&&(this.current_download=null);const e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}downloadAudioFile(t){this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe(e=>{this.downloading_content.audio[t]=!1;const i=e;Object(jx.saveAs)(i,decodeURIComponent(t)+".mp3"),this.fileManagerEnabled||this.postsService.deleteFile(t,!0).subscribe(t=>{this.getMp3s()})})}downloadVideoFile(t){this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe(e=>{this.downloading_content.video[t]=!1;const i=e;Object(jx.saveAs)(i,decodeURIComponent(t)+".mp4"),this.fileManagerEnabled||this.postsService.deleteFile(t,!1).subscribe(t=>{this.getMp4s()})})}downloadPlaylist(t,e,i=null,n=null){this.postsService.downloadFileFromServer(t,e,i).subscribe(t=>{n&&(this.downloading_content[e][n]=!1);const s=t;Object(jx.saveAs)(s,i+".zip")})}clearInput(){this.url="",this.results_showing=!1}onInputBlur(){this.results_showing=!1}visitURL(t){window.open(t)}useURL(t){this.results_showing=!1,this.url=t}inputChanged(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}ValidURL(t){const e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}getURLInfo(t){t.includes("playlist")||(this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe(e=>{this.cachedAvailableFormats[t].formats_loading=!1;const i=e.result;if(!i||!i.formats)return void this.errorFormats(t);const n=this.getAudioAndVideoFormats(i.formats);this.cachedAvailableFormats[t].formats={audio:n[0],video:n[1]}},e=>{this.errorFormats(t)})))}getSimulatedOutput(){const t=this.globalCustomArgs&&""!==this.globalCustomArgs;let e=[];const i=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=i.join(" ")+" "+this.customArgs,this.simulatedOutput;e.push(...i);const n=this.audioOnly?this.audioFolderPath:this.videoFolderPath,s=this.audioOnly?".mp3":".mp4";let a=["-o",n+"%(title)s"+s];if(this.customOutputEnabled&&this.customOutput&&(a=["-o",n+this.customOutput+s]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||e.push("--external-downloader","aria2c"),e.push(...a),this.audioOnly){const t=[],i=this.getSelectedAudioFormat();i?t.push("-f",i):this.selectedQuality&&t.push("--audio-quality",this.selectedQuality),e.splice(2,0,...t),e.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{let t=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"];const i=this.getSelectedVideoFormat();i?t=["-f",i]:this.selectedQuality&&(t=[`bestvideo[height=${this.selectedQuality}]+bestaudio/best[height=${this.selectedQuality}]`]),e.splice(2,0,...t),e.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&e.push("--download-archive","archive.txt"),t&&(e=e.concat(this.globalCustomArgs.split(" "))),this.simulatedOutput=e.join(" "),this.simulatedOutput}errorFormats(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}attachToInput(){si.a.fromEvent(this.urlInput.nativeElement,"keyup").map(t=>t.target.value).filter(t=>t.length>1).debounceTime(250).do(()=>this.results_loading=!0).map(t=>this.youtubeSearch.search(t)).switch().subscribe(t=>{this.results_loading=!1,""!==this.url&&t&&t.length>0?(this.results=t,this.results_showing=!0):this.results_showing=!1},t=>{console.log(t),this.results_loading=!1,this.results_showing=!1},()=>{this.results_loading=!1})}onResize(t){this.setCols()}videoModeChanged(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}multiDownloadModeChanged(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}customArgsEnabledChanged(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}customOutputEnabledChanged(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}youtubeAuthEnabledChanged(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}getAudioAndVideoFormats(t){const e={},i={};for(let n=0;ni&&(e=a.format_id,i=a.bitrate)}return e}accordionEntered(t){"audio"===t?(vS=!0,this.audioFileCards.forEach(t=>{t.onHoverResponse()})):"video"===t&&(wS=!0,this.videoFileCards.forEach(t=>{t.onHoverResponse()}))}accordionLeft(t){"audio"===t?vS=!1:"video"===t&&(wS=!1)}accordionOpened(t){"audio"===t?kS=!0:"video"===t&&(xS=!0)}accordionClosed(t){"audio"===t?kS=!1:"video"===t&&(xS=!1)}openCreatePlaylistDialog(t){this.dialog.open(tC,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe(e=>{e?("audio"===t&&this.getMp3s(),"video"===t&&this.getMp4s(),this.openSnackBar("Successfully created playlist!","")):!1===e&&this.openSnackBar("ERROR: failed to create playlist!","")})}openArgsModifierDialog(){this.dialog.open(xw,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{t&&(this.customArgs=t)})}getCurrentDownload(){this.postsService.getCurrentDownload(this.postsService.session_id,this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid).subscribe(t=>{const e=this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid;t.download?(console.log("got new download"),e===t.download.ui_uid&&(this.current_download=t.download,this.percentDownloaded=this.current_download.percent_complete,console.log(this.percentDownloaded))):console.log("failed to get new download")})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc($x),s.yc(Bg),s.yc(Cv),s.yc(ud),s.yc(bi),s.yc(fy))},t.\u0275cmp=s.sc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.zd(eC,!0,s.q),s.zd(iC,!0),s.zd(nC,!0)),2&t&&(s.gd(i=s.Rc())&&(e.urlInput=i.first),s.gd(i=s.Rc())&&(e.audioFileCards=i),s.gd(i=s.Rc())&&(e.videoFileCards=i))},decls:42,vars:18,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url","required","",2,"padding-right","25px",3,"ngModel","placeholder","formControl","ngModelChange"],["urlinput",""],[4,"ngIf"],["mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","isPlaylist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(s.zc(0,"br"),s.Dc(1,"div",0),s.Dc(2,"mat-card",1),s.Dc(3,"mat-card-title"),s.Bc(4),s.Hc(5,sC),s.Ac(),s.Cc(),s.Dc(6,"mat-card-content"),s.Dc(7,"div",2),s.Dc(8,"form",3),s.Dc(9,"div",4),s.Dc(10,"div",5),s.Dc(11,"div",6),s.Dc(12,"mat-form-field",7),s.Dc(13,"input",8,9),s.Qc("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),s.Cc(),s.td(15,cC,3,0,"mat-error",10),s.Dc(16,"button",11),s.Qc("click",(function(){return e.clearInput()})),s.Dc(17,"mat-icon"),s.vd(18,"clear"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.td(19,pC,8,5,"div",12),s.Cc(),s.Cc(),s.td(20,yC,2,1,"div",13),s.Cc(),s.zc(21,"br"),s.Dc(22,"mat-checkbox",14),s.Qc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),s.Bc(23),s.Hc(24,aC),s.Ac(),s.Cc(),s.td(25,CC,3,2,"mat-checkbox",15),s.Cc(),s.Cc(),s.Dc(26,"mat-card-actions"),s.Dc(27,"button",16),s.Qc("click",(function(){return e.downloadClicked()})),s.Bc(28),s.Hc(29,oC),s.Ac(),s.Cc(),s.td(30,SC,3,0,"button",17),s.Cc(),s.Cc(),s.Cc(),s.td(31,BC,39,19,"div",18),s.td(32,$C,4,1,"div",19),s.zc(33,"br"),s.td(34,WC,7,3,"div",20),s.td(35,YC,0,0,"ng-template",null,21,s.ud),s.td(37,bS,20,4,"div",22),s.td(38,_S,0,0,"ng-template",null,23,s.ud),s.td(40,yS,0,0,"ng-template",null,24,s.ud)),2&t){const t=s.hd(36);s.kc(2),s.ad("ngClass",e.allowAdvancedDownload?"no-border-radius-bottom":null),s.kc(9),s.ad("ngClass",e.allowQualitySelect?"col-sm-9":null),s.kc(2),s.ad("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":""))("formControl",e.urlForm),s.kc(2),s.ad("ngIf",e.urlError||e.urlForm.invalid),s.kc(4),s.ad("ngIf",e.allowQualitySelect),s.kc(1),s.ad("ngIf",e.results_showing),s.kc(2),s.ad("disabled",e.current_download)("ngModel",e.audioOnly),s.kc(3),s.ad("ngIf",e.allowMultiDownloadMode),s.kc(2),s.ad("disabled",e.downloadingfile),s.kc(3),s.ad("ngIf",!!e.current_download),s.kc(1),s.ad("ngIf",e.allowAdvancedDownload),s.kc(1),s.ad("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),s.kc(2),s.ad("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",t),s.kc(3),s.ad("ngIf",e.fileManagerEnabled)}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:-10px;top:5px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),t})();si.a.merge=br.a;var SS,DS,ES,AS,OS,IS,PS,RS=i("zuWl"),TS=i.n(RS);SS=$localize`:Video name property␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,DS=$localize`:Video URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,ES=$localize`:Video ID property␟c6eb45d085384903e53ab001a3513d1de6a1dbac␟6975318892267864632:Uploader:`,AS=$localize`:Video file size property␟109c6f4a5e46efb933612ededfaf52a13178b7e0␟8712868262622854125:File size:`,OS=$localize`:Video path property␟bd630d8669b16e5f264ec4649d9b469fe03e5ff4␟2612252809311306032:Path:`,IS=$localize`:Video upload date property␟a67e7d843cef735c79d5ef1c8ba4af3e758912bb␟73382088968432490:Upload Date:`,PS=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let MS=(()=>{class t{constructor(t){this.data=t}ngOnInit(){this.filesize=TS.a,this.data&&(this.file=this.data.file)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(ld))},t.\u0275cmp=s.sc({type:t,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.vd(1),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"div",2),s.Dc(5,"strong"),s.Bc(6),s.Hc(7,SS),s.Ac(),s.vd(8,"\xa0"),s.Cc(),s.Cc(),s.Dc(9,"div",3),s.vd(10),s.Cc(),s.Cc(),s.Dc(11,"div",1),s.Dc(12,"div",2),s.Dc(13,"strong"),s.Bc(14),s.Hc(15,DS),s.Ac(),s.vd(16,"\xa0"),s.Cc(),s.Cc(),s.Dc(17,"div",3),s.Dc(18,"a",4),s.vd(19),s.Cc(),s.Cc(),s.Cc(),s.Dc(20,"div",1),s.Dc(21,"div",2),s.Dc(22,"strong"),s.Bc(23),s.Hc(24,ES),s.Ac(),s.vd(25,"\xa0"),s.Cc(),s.Cc(),s.Dc(26,"div",3),s.vd(27),s.Cc(),s.Cc(),s.Dc(28,"div",1),s.Dc(29,"div",2),s.Dc(30,"strong"),s.Bc(31),s.Hc(32,AS),s.Ac(),s.vd(33,"\xa0"),s.Cc(),s.Cc(),s.Dc(34,"div",3),s.vd(35),s.Cc(),s.Cc(),s.Dc(36,"div",1),s.Dc(37,"div",2),s.Dc(38,"strong"),s.Bc(39),s.Hc(40,OS),s.Ac(),s.vd(41,"\xa0"),s.Cc(),s.Cc(),s.Dc(42,"div",3),s.vd(43),s.Cc(),s.Cc(),s.Dc(44,"div",1),s.Dc(45,"div",2),s.Dc(46,"strong"),s.Bc(47),s.Hc(48,IS),s.Ac(),s.vd(49,"\xa0"),s.Cc(),s.Cc(),s.Dc(50,"div",3),s.vd(51),s.Cc(),s.Cc(),s.Cc(),s.Dc(52,"mat-dialog-actions"),s.Dc(53,"button",5),s.Bc(54),s.Hc(55,PS),s.Ac(),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.wd(e.file.title),s.kc(9),s.wd(e.file.title),s.kc(8),s.ad("href",e.file.url,s.nd),s.kc(1),s.wd(e.file.url),s.kc(8),s.wd(e.file.uploader?e.file.uploader:"N/A"),s.kc(8),s.wd(e.file.size?e.filesize(e.file.size):"N/A"),s.kc(8),s.wd(e.file.path?e.file.path:"N/A"),s.kc(8),s.wd(e.file.upload_date?e.file.upload_date:"N/A"))},directives:[gd,fd,bd,ms,pd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),t})();const FS=new si.a(Be.a);function LS(t,e){t.className=t.className.replace(e,"")}function zS(t,e){t.className.includes(e)||(t.className+=` ${e}`)}function NS(){return"undefined"!=typeof window?window.navigator:void 0}function BS(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function VS(t){return"img"===t.nodeName.toLowerCase()}function jS(t,e,i){return VS(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function US(t){return e=>{const i=e.parentElement.getElementsByTagName("source");for(let n=0;n{VS(e)&&BS(e)&&t(e),i&&jS(e,i,n)}}const WS=GS($S),YS=GS(HS),QS=GS(qS),KS={finally:({element:t})=>{zS(t,"ng-lazyloaded"),LS(t,"ng-lazyloading")},loadImage:({element:t,useSrcset:e,imagePath:i,decode:n})=>{let s;if(VS(t)&&BS(t)){const n=t.parentNode.cloneNode(!0);s=n.getElementsByTagName("img")[0],HS(s),jS(s,i,e)}else s=new Image,VS(t)&&t.sizes&&(s.sizes=t.sizes),e&&"srcset"in s?s.srcset=i:s.src=i;return n&&s.decode?s.decode().then(()=>i):new Promise((t,e)=>{s.onload=()=>t(i),s.onerror=()=>e(null)})},setErrorImage:({element:t,errorImagePath:e,useSrcset:i})=>{QS(t,e,i),zS(t,"ng-failed-lazyloaded")},setLoadedImage:({element:t,imagePath:e,useSrcset:i})=>{YS(t,e,i)},setup:({element:t,defaultImagePath:e,useSrcset:i})=>{WS(t,e,i),zS(t,"ng-lazyloading"),function(t,e){return t.className&&t.className.includes("ng-lazyloaded")}(t)&&LS(t,"ng-lazyloaded")},isBot:t=>!(!t||!t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(t.userAgent)},XS=new WeakMap,ZS=new Pe.a;function JS(t){t.forEach(t=>ZS.next(t))}const tD={},eD=t=>{const e=t.scrollContainer||tD,i={root:t.scrollContainer||null};t.offset&&(i.rootMargin=`${t.offset}px`);let n=XS.get(e);return n||(n=new IntersectionObserver(JS,i),XS.set(e,n)),n.observe(t.element),si.a.create(e=>{const i=ZS.pipe(Je(e=>e.target===t.element)).subscribe(e);return()=>{i.unsubscribe(),n.unobserve(t.element)}})},iD=Object.assign({},KS,{isVisible:({event:t})=>t.isIntersecting,getObservable:(t,e=eD)=>t.customObservable?t.customObservable:e(t)}),nD=Object.assign({},KS,{isVisible:()=>!0,getObservable:()=>Le("load"),loadImage:({imagePath:t})=>[t]});let sD=(()=>{let t=class{constructor(t,e,i,n){this.onStateChange=new s.s,this.onLoad=new s.s,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new sl,this.platformId=i,this.hooks=function(t,e){const i=iD,n=e&&e.isBot?e.isBot:i.isBot;if(n(NS(),t))return Object.assign(nD,{isBot:n});if(!e)return i;const s={};return Object.assign(s,e.preset?e.preset:i),Object.keys(e).filter(t=>"preset"!==t).forEach(t=>{s[t]=e[t]}),s}(i,n)}ngOnChanges(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}ngAfterContentInit(){if(Object(ye.J)(this.platformId)&&!this.hooks.isBot(NS(),this.platformId))return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(je(t=>t.onStateChange.emit({reason:"setup"})),je(t=>this.hooks.setup(t)),qr(t=>t.imagePath?this.hooks.getObservable(t).pipe(function(t,e){return i=>i.pipe(je(t=>e.onStateChange.emit({reason:"observer-emit",data:t})),Je(i=>t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})),ri(1),je(()=>e.onStateChange.emit({reason:"start-loading"})),Object(vh.a)(()=>t.loadImage(e)),je(()=>e.onStateChange.emit({reason:"mount-image"})),je(i=>t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})),je(()=>e.onStateChange.emit({reason:"loading-succeeded"})),Object(ii.a)(()=>!0),mh(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),t.setErrorImage(e),Le(!1))),je(()=>{e.onStateChange.emit({reason:"finally"}),t.finally(e)}))}(this.hooks,t)):FS)).subscribe(t=>this.onLoad.emit(t))})}ngOnDestroy(){var t,e;null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(s.I),s.yc("options",8))},t.\u0275dir=s.tc({type:t,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[s.ic]}),t})();var aD;let oD=(()=>{let t=aD=class{static forRoot(t){return{ngModule:aD,providers:[{provide:"options",useValue:t}]}}};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();var rD,lD,cD,dD,hD;function uD(t,e){if(1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,dD),s.Ac(),s.vd(3),s.Cc()),2&t){const t=s.Uc();s.kc(3),s.xd("\xa0",t.count,"")}}function mD(t,e){1&t&&s.zc(0,"span")}function pD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",12),s.Dc(1,"img",13),s.Qc("error",(function(e){return s.ld(t),s.Uc().onImgError(e)}))("onLoad",(function(e){return s.ld(t),s.Uc().imageLoaded(e)})),s.Cc(),s.td(2,mD,1,0,"span",5),s.Cc()}if(2&t){const t=s.Uc();s.kc(1),s.ad("id",t.type)("lazyLoad",t.thumbnailURL)("customObservable",t.scrollAndLoad),s.kc(1),s.ad("ngIf",!t.image_loaded)}}function gD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",14),s.Qc("click",(function(){return s.ld(t),s.Uc().deleteFile()})),s.Dc(1,"mat-icon"),s.vd(2,"delete_forever"),s.Cc(),s.Cc()}}function fD(t,e){if(1&t&&(s.Dc(0,"button",15),s.Dc(1,"mat-icon"),s.vd(2,"more_vert"),s.Cc(),s.Cc()),2&t){s.Uc();const t=s.hd(16);s.ad("matMenuTriggerFor",t)}}function bD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",10),s.Qc("click",(function(){return s.ld(t),s.Uc().deleteFile(!0)})),s.Dc(1,"mat-icon"),s.vd(2,"delete_forever"),s.Cc(),s.Bc(3),s.Hc(4,hD),s.Ac(),s.Cc()}}rD=$localize`:File or playlist ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,lD=$localize`:Video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,cD=$localize`:Delete video button␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,dD=$localize`:Playlist video count␟e684046d73bcee88e82f7ff01e2852789a05fc32␟6836949342567686088:Count:`,hD=$localize`:Delete and blacklist video button␟34504b488c24c27e68089be549f0eeae6ebaf30b␟593208667984994894:Delete and blacklist`;let _D=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.mainComponent=i,this.dialog=n,this.isAudio=!0,this.removeFile=new s.s,this.isPlaylist=!1,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Pe.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){this.type=this.isAudio?"audio":"video"}deleteFile(t=!1){this.isPlaylist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,t).subscribe(t=>{t?(this.openSnackBar("Delete success!","OK."),this.removeFile.emit(this.name)):this.openSnackBar("Delete failed!","OK.")},t=>{this.openSnackBar("Delete failed!","OK.")})}openVideoInfoDialog(){this.dialog.open(MS,{data:{file:this.file},minWidth:"50vw"})}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(Bg),s.yc(CS),s.yc(ud))},t.\u0275cmp=s.sc({type:t,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",isPlaylist:"isPlaylist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:28,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"click",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"click"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(s.Dc(0,"mat-card",0),s.Dc(1,"div",1),s.Dc(2,"div",2),s.Dc(3,"div"),s.Dc(4,"b"),s.Dc(5,"a",3),s.Qc("click",(function(){return e.isPlaylist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio,e.uid)})),s.vd(6),s.Cc(),s.Cc(),s.Cc(),s.Dc(7,"span",4),s.Bc(8),s.Hc(9,rD),s.Ac(),s.vd(10),s.Cc(),s.td(11,uD,4,1,"div",5),s.Cc(),s.td(12,pD,3,4,"div",6),s.Cc(),s.td(13,gD,3,0,"button",7),s.td(14,fD,3,1,"button",8),s.Dc(15,"mat-menu",null,9),s.Dc(17,"button",10),s.Qc("click",(function(){return e.openVideoInfoDialog()})),s.Dc(18,"mat-icon"),s.vd(19,"info"),s.Cc(),s.Bc(20),s.Hc(21,lD),s.Ac(),s.Cc(),s.Dc(22,"button",10),s.Qc("click",(function(){return e.deleteFile()})),s.Dc(23,"mat-icon"),s.vd(24,"delete"),s.Cc(),s.Bc(25),s.Hc(26,cD),s.Ac(),s.Cc(),s.td(27,bD,5,0,"button",11),s.Cc(),s.Cc()),2&t&&(s.kc(6),s.wd(e.title),s.kc(4),s.xd("\xa0",e.name,""),s.kc(1),s.ad("ngIf",e.isPlaylist),s.kc(1),s.ad("ngIf",!e.image_errored&&e.thumbnailURL),s.kc(1),s.ad("ngIf",e.isPlaylist),s.kc(1),s.ad("ngIf",!e.isPlaylist),s.kc(13),s.ad("ngIf",e.use_youtubedl_archive))},directives:[Ko,ye.t,ym,mm,pu,sD,ms,xm],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),t})();function yD(t,e){1&t&&(s.Dc(0,"div",6),s.zc(1,"mat-spinner",7),s.Cc()),2&t&&(s.kc(1),s.ad("diameter",25))}let vD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}ngOnInit(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}enterPressed(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(rd),s.yc(ld))},t.\u0275cmp=s.sc({type:t,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.vd(1),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div"),s.Dc(4,"mat-form-field",1),s.Dc(5,"input",2),s.Qc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(6,"mat-dialog-actions"),s.Dc(7,"button",3),s.vd(8,"Cancel"),s.Cc(),s.Dc(9,"button",4),s.Qc("click",(function(){return e.enterPressed()})),s.vd(10),s.Cc(),s.td(11,yD,2,1,"div",5),s.Cc()),2&t&&(s.kc(1),s.wd(e.inputTitle),s.kc(4),s.ad("ngModel",e.inputText)("placeholder",e.inputPlaceholder),s.kc(4),s.ad("disabled",!e.inputText),s.kc(1),s.wd(e.submitText),s.kc(1),s.ad("ngIf",e.inputSubmitted))},directives:[gd,fd,Mc,Au,As,Fs,$a,bd,ms,pd,ye.t,cp],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var wD,kD,xD,CD,SD,DD;function ED(t,e){1&t&&(s.Bc(0),s.Hc(1,CD),s.Ac())}function AD(t,e){1&t&&(s.Bc(0),s.Hc(1,SD),s.Ac())}function OD(t,e){1&t&&(s.Bc(0),s.Hc(1,DD),s.Ac())}wD=$localize`:Enable sharing checkbox␟1f6d14a780a37a97899dc611881e6bc971268285␟3852386690131857488:Enable sharing`,kD=$localize`:Copy to clipboard button␟3a6e5a6aa78ca864f6542410c5dafb6334538106␟8738732372986673558:Copy to clipboard`,xD=$localize`:Close button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,CD=$localize`:Share playlist dialog title␟a249a5ae13e0835383885aaf697d2890cc3e53e9␟3024429387570590252:Share playlist`,SD=$localize`:Share video dialog title␟15da89490e04496ca9ea1e1b3d44fb5efd4a75d9␟1305889615005911428:Share video`,DD=$localize`:Share audio dialog title␟1d540dcd271b316545d070f9d182c372d923aadd␟3735500696745720245:Share audio`;let ID=(()=>{class t{constructor(t,e,i,n){this.data=t,this.router=e,this.snackBar=i,this.postsService=n,this.type=null,this.uid=null,this.share_url=null,this.sharing_enabled=null,this.is_playlist=null}ngOnInit(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist;const t=this.is_playlist?";id=":";uid=";this.share_url=window.location.href.split(";")[0]+t+this.uid}}copiedToClipboard(){this.openSnackBar("Copied to clipboard!")}sharingChanged(t){t.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe(t=>{t.success?(this.openSnackBar("Sharing enabled."),this.sharing_enabled=!0):this.openSnackBar("Failed to enable sharing.")},t=>{this.openSnackBar("Failed to enable sharing - server error.")}):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe(t=>{t.success?(this.openSnackBar("Sharing disabled."),this.sharing_enabled=!1):this.openSnackBar("Failed to disable sharing.")},t=>{this.openSnackBar("Failed to disable sharing - server error.")})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(ld),s.yc(Cv),s.yc(Bg),s.yc(Kv))},t.\u0275cmp=s.sc({type:t,selectors:[["app-share-media-dialog"]],decls:21,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.td(1,ED,2,0,"ng-container",1),s.td(2,AD,2,0,"ng-container",1),s.td(3,OD,2,0,"ng-container",1),s.Cc(),s.Dc(4,"mat-dialog-content"),s.Dc(5,"div"),s.Dc(6,"div"),s.Dc(7,"mat-checkbox",2),s.Qc("change",(function(t){return e.sharingChanged(t)})),s.Bc(8),s.Hc(9,wD),s.Ac(),s.Cc(),s.Cc(),s.Dc(10,"div"),s.Dc(11,"mat-form-field",3),s.zc(12,"input",4),s.Cc(),s.Cc(),s.Dc(13,"div",5),s.Dc(14,"button",6),s.Qc("click",(function(){return e.copiedToClipboard()})),s.Bc(15),s.Hc(16,kD),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(17,"mat-dialog-actions"),s.Dc(18,"button",7),s.Bc(19),s.Hc(20,xD),s.Ac(),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.ad("ngIf",e.is_playlist),s.kc(1),s.ad("ngIf",!e.is_playlist&&"video"===e.type),s.kc(1),s.ad("ngIf",!e.is_playlist&&"audio"===e.type),s.kc(4),s.ad("checked",e.sharing_enabled),s.kc(5),s.ad("disabled",!e.sharing_enabled)("readonly",!0)("value",e.share_url),s.kc(2),s.ad("disabled",!e.sharing_enabled)("cdkCopyToClipboard",e.share_url))},directives:[gd,ye.t,fd,dr,Mc,Au,ms,zb,bd,pd],styles:[""]}),t})();const PD=["*"],RD=["volumeBar"],TD=function(t){return{dragging:t}};function MD(t,e){if(1&t&&s.zc(0,"span",2),2&t){const t=e.$implicit;s.sd("width",null==t.$$style?null:t.$$style.width)("left",null==t.$$style?null:t.$$style.left)}}function FD(t,e){1&t&&s.zc(0,"span",2)}function LD(t,e){1&t&&(s.Dc(0,"span"),s.vd(1,"LIVE"),s.Cc())}function zD(t,e){if(1&t&&(s.Dc(0,"span"),s.vd(1),s.Vc(2,"vgUtc"),s.Cc()),2&t){const t=s.Uc();s.kc(1),s.wd(s.Xc(2,1,t.getTime(),t.vgFormat))}}function ND(t,e){if(1&t&&(s.Dc(0,"option",4),s.vd(1),s.Cc()),2&t){const t=e.$implicit;s.ad("value",t.id)("selected",!0===t.selected),s.kc(1),s.xd(" ",t.label," ")}}function BD(t,e){if(1&t&&(s.Dc(0,"option",4),s.vd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Uc();s.ad("value",t.qualityIndex.toString())("selected",t.qualityIndex===(null==i.bitrateSelected?null:i.bitrateSelected.qualityIndex)),s.kc(1),s.xd(" ",t.label," ")}}let VD=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t.VG_ENDED="ended",t.VG_PAUSED="paused",t.VG_PLAYING="playing",t.VG_LOADING="waiting",t})(),jD=(()=>{let t=class{constructor(){this.medias={},this.playerReadyEvent=new s.s(!0),this.isPlayerReady=!1}onPlayerReady(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}getDefaultMedia(){for(const t in this.medias)if(this.medias[t])return this.medias[t]}getMasterMedia(){let t;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}isMasterDefined(){let t=!1;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}getMediaById(t=null){let e=this.medias[t];return t&&"*"!==t||(e=this),e}play(){for(const t in this.medias)this.medias[t]&&this.medias[t].play()}pause(){for(const t in this.medias)this.medias[t]&&this.medias[t].pause()}get duration(){return this.$$getAllProperties("duration")}set currentTime(t){this.$$setAllProperties("currentTime",t)}get currentTime(){return this.$$getAllProperties("currentTime")}set state(t){this.$$setAllProperties("state",t)}get state(){return this.$$getAllProperties("state")}set volume(t){this.$$setAllProperties("volume",t)}get volume(){return this.$$getAllProperties("volume")}set playbackRate(t){this.$$setAllProperties("playbackRate",t)}get playbackRate(){return this.$$getAllProperties("playbackRate")}get canPlay(){return this.$$getAllProperties("canPlay")}get canPlayThrough(){return this.$$getAllProperties("canPlayThrough")}get isMetadataLoaded(){return this.$$getAllProperties("isMetadataLoaded")}get isWaiting(){return this.$$getAllProperties("isWaiting")}get isCompleted(){return this.$$getAllProperties("isCompleted")}get isLive(){return this.$$getAllProperties("isLive")}get isMaster(){return this.$$getAllProperties("isMaster")}get time(){return this.$$getAllProperties("time")}get buffer(){return this.$$getAllProperties("buffer")}get buffered(){return this.$$getAllProperties("buffered")}get subscriptions(){return this.$$getAllProperties("subscriptions")}get textTracks(){return this.$$getAllProperties("textTracks")}seekTime(t,e=!1){for(const i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],t,e)}$$seek(t,e,i=!1){let n,s=t.duration;i?(this.isMasterDefined()&&(s=this.getMasterMedia().duration),n=e*s/100):n=e,t.currentTime=n}addTextTrack(t,e,i){for(const n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],t,e,i)}$$addTextTrack(t,e,i,n){t.addTextTrack(e,i,n)}$$getAllProperties(t){const e={};let i;for(const n in this.medias)this.medias[n]&&(e[n]=this.medias[n]);switch(Object.keys(e).length){case 0:switch(t){case"state":i=VD.VG_PAUSED;break;case"playbackRate":case"volume":i=1;break;case"time":i={current:0,total:0,left:0}}break;case 1:i=e[Object.keys(e)[0]][t];break;default:i=e[this.getMasterMedia().id][t]}return i}$$setAllProperties(t,e){for(const i in this.medias)this.medias[i]&&(this.medias[i][t]=e)}registerElement(t){this.videogularElement=t}registerMedia(t){this.medias[t.id]=t}unregisterMedia(t){delete this.medias[t.id]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),UD=(()=>{let t=class{constructor(t,e){this.API=e,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.zc(2,"div",2),s.Cc(),s.Cc())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),t})(),$D=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c]]}),t})(),HD=(()=>{let t=class{constructor(){this.isHiddenSubject=new Pe.a,this.isHidden=this.isHiddenSubject.asObservable()}state(t){this.isHiddenSubject.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),qD=(()=>{let t=class{constructor(t,e,i){this.API=t,this.ref=e,this.hidden=i,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=e.nativeElement}ngOnInit(){this.mouseMove$=_r(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=_r(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}ngAfterViewInit(){this.vgAutohide?this.hide():this.show()}onPlay(){this.vgAutohide&&this.hide()}onPause(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}onStartAds(){this.isAdsPlaying="none"}onEndAds(){this.isAdsPlaying="initial"}hide(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}show(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}hideAsync(){this.API.state===VD.VG_PLAYING&&(this.timer=setTimeout(()=>{this.hideControls=!0,this.hidden.state(!0)},1e3*this.vgAutohideTime))}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(jD),s.yc(s.q),s.yc(HD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(s.sd("pointer-events",e.isAdsPlaying),s.oc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:PD,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),t})(),GD=(()=>{let t=class{static getZIndex(){let t,e=1;const i=document.getElementsByTagName("*");for(let n=0,s=i.length;ne&&(e=t+1);return e}static isMobileDevice(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}static isiOSDevice(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}static isCordova(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.uc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),WD=(()=>{let t=class{constructor(){this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new s.s}init(t,e){this.videogularElement=t,this.medias=e;const i={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(const s in i)if(i[s].enabled in document){this.polyfill=i[s];break}if(GD.isiOSDevice()&&(this.polyfill=i.ios),this.isAvailable=null!=this.polyfill,null==this.polyfill)return;let n;switch(this.polyfill.onchange){case"mozfullscreenchange":n=document;break;case"webkitendfullscreen":n=this.medias.toArray()[0].elem;break;default:n=t}this.fsChangeSubscription=_r(n,this.polyfill.onchange).subscribe(()=>{this.onFullscreenChange()})}onFullscreenChange(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}toggleFullscreen(t=null){this.isFullscreen?this.exit():this.request(t)}request(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(GD.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||GD.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}enterElementInFullScreen(t){t[this.polyfill.request]()}exit(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),YD=(()=>{let t=class{constructor(t,e,i){this.API=e,this.fsAPI=i,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=t.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onChangeFullscreen(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}onClick(){this.changeFullscreenState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}changeFullscreenState(){let t=this.target;this.target instanceof jD&&(t=null),this.fsAPI.toggleFullscreen(t)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD),s.yc(WD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&s.zc(0,"div",0),2&t&&(s.oc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),s.lc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),QD=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue="unmuted",this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}onClick(){this.changeMuteState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}changeMuteState(){const t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}getVolume(){const t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&s.zc(0,"div",0),2&t&&(s.oc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),s.lc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),KD=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement,this.isDragging=!1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}onClick(t){this.setVolume(this.calculateVolume(t.clientX))}onMouseDown(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}onDrag(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}onStopDrag(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}arrowAdjustVolume(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}calculateVolume(t){const e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}setVolume(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}getVolume(){return this.target?this.target.volume:0}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&s.rd(RD,!0),2&t&&s.gd(i=s.Rc())&&(e.volumeBarRef=i.first)},hostBindings:function(t,e){1&t&&s.Qc("mousemove",(function(t){return e.onDrag(t)}),!1,s.jd)("mouseup",(function(t){return e.onStopDrag(t)}),!1,s.jd)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(s.Dc(0,"div",0,1),s.Qc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),s.Dc(2,"div",2),s.zc(3,"div",3),s.zc(4,"div",4),s.Cc(),s.Cc()),2&t&&(s.lc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),s.kc(2),s.ad("ngClass",s.dd(7,TD,e.isDragging)),s.kc(1),s.sd("width",85*e.getVolume()+"%"),s.kc(1),s.sd("left",85*e.getVolume()+"%"))},directives:[ye.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),t})(),XD=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=VD.VG_PAUSED,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.playPause()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}playPause(){switch(this.getState()){case VD.VG_PLAYING:this.target.pause();break;case VD.VG_PAUSED:case VD.VG_ENDED:this.target.play()}}getState(){return this.ariaValue=this.target?this.target.state:VD.VG_PAUSED,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&s.zc(0,"div",0),2&t&&(s.oc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),s.lc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),ZD=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=1,this.elem=t.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.updatePlaybackSpeed()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}updatePlaybackSpeed(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof jD?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}getPlaybackRate(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(s.Dc(0,"span",0),s.vd(1),s.Cc()),2&t&&(s.lc("aria-valuetext",e.ariaValue),s.kc(1),s.xd(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),t})(),JD=(()=>{let t=class{constructor(t,e,i){this.API=e,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=t.nativeElement,this.subscriptions.push(i.isHidden.subscribe(t=>this.onHideScrubBar(t)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}seekStart(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===VD.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}seekMove(t){if(this.isSeeking){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}seekEnd(t){if(this.isSeeking=!1,this.target.canPlay){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}touchEnd(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}getTouchOffset(t){let e=0,i=t.target;for(;i;)e+=i.offsetLeft,i=i.offsetParent;return t.touches[0].pageX-e}onMouseDownScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}onMouseMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}onMouseUpScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}onTouchStartScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}onTouchMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}onTouchCancelScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}onTouchEndScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}arrowAdjustVolume(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}onHideScrubBar(t){this.hideScrubBar=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD),s.yc(HD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Qc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,s.jd)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,s.jd)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,s.jd)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,s.jd)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,s.jd)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&s.oc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:PD,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(s.Zc(),s.Dc(0,"div",0),s.Yc(1),s.Cc()),2&t&&s.lc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),t})(),tE=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getBufferTime(){let t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&s.zc(0,"div",0),2&t&&s.sd("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),t})(),eE=(()=>{let t=class{constructor(t,e){this.API=e,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}onLoadedMetadata(){if(this.vgCuePoints){this.cuePoints=[];for(let t=0,e=this.vgCuePoints.length;t=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime);let i="0",n="0";"number"==typeof e&&this.target.time.total&&(n=100*e/this.target.time.total+"%",i=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:n,left:i},this.cuePoints.push(this.vgCuePoints[t])}}}updateCuePoints(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}ngOnChanges(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}ngDoCheck(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[s.ic],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.td(1,MD,1,4,"span",1),s.Cc()),2&t&&(s.kc(1),s.ad("ngForOf",e.cuePoints))},directives:[ye.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),t})(),iE=(()=>{let t=class{constructor(t,e){this.API=e,this.vgSlider=!1,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(s.zc(0,"div",0),s.td(1,FD,1,0,"span",1)),2&t&&(s.sd("width",e.getPercentage()),s.kc(1),s.ad("ngIf",e.vgSlider))},directives:[ye.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),t})(),nE=(()=>{let t=class{transform(t,e){const i=new Date(t);let n=e,s=i.getUTCSeconds(),a=i.getUTCMinutes(),o=i.getUTCHours();return s<10&&(s="0"+s),a<10&&(a="0"+a),o<10&&(o="0"+o),n=n.replace(/ss/g,s),n=n.replace(/mm/g,a),n=n.replace(/hh/g,o),n}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.xc({name:"vgUtc",type:t,pure:!0}),t})(),sE=(()=>{let t=class{constructor(t,e){this.API=e,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getTime(){let t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:PD,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(s.Zc(),s.td(0,LD,2,0,"span",0),s.td(1,zD,3,4,"span",0),s.Yc(2)),2&t&&(s.ad("ngIf",null==e.target?null:e.target.isLive),s.kc(1),s.ad("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[ye.t],pipes:[nE],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),t})(),aE=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor);const t=Array.from(this.API.getMasterMedia().elem.children).filter(t=>"TRACK"===t.tagName).filter(t=>"subtitles"===t.kind).map(t=>({label:t.label,selected:!0===t.default,id:t.srclang}));this.tracks=[...t,{id:null,label:"Off",selected:t.every(t=>!1===t.selected)}];const e=this.tracks.filter(t=>!0===t.selected)[0];this.trackSelected=e.id,this.ariaValue=e.label}selectTrack(t){this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach(e=>{e.language===t?(this.ariaValue=e.label,e.mode="showing"):e.mode="hidden"})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.vd(2),s.Cc(),s.Dc(3,"select",2),s.Qc("change",(function(t){return e.selectTrack(t.target.value)})),s.td(4,ND,2,3,"option",3),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.oc("vg-icon-closed_caption",!e.trackSelected),s.kc(1),s.xd(" ",e.trackSelected||""," "),s.kc(1),s.lc("aria-valuetext",e.ariaValue),s.kc(1),s.ad("ngForOf",e.tracks))},directives:[ye.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),oE=(()=>{let t=class{constructor(t,e){this.API=e,this.onBitrateChange=new s.s,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){}ngOnChanges(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach(t=>t.label=(t.label||Math.round(t.bitrate/1e3)).toString())}selectBitrate(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[s.ic],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.vd(2),s.Cc(),s.Dc(3,"select",2),s.Qc("change",(function(t){return e.selectBitrate(t.target.value)})),s.td(4,BD,2,3,"option",3),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.oc("vg-icon-hd",!e.bitrateSelected),s.kc(1),s.xd(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),s.kc(1),s.lc("aria-valuetext",e.ariaValue),s.kc(1),s.ad("ngForOf",e.bitrates))},directives:[ye.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),rE=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[HD],imports:[[ye.c]]}),t})(),lE=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t.VG_ABORT="abort",t.VG_CAN_PLAY="canplay",t.VG_CAN_PLAY_THROUGH="canplaythrough",t.VG_DURATION_CHANGE="durationchange",t.VG_EMPTIED="emptied",t.VG_ENCRYPTED="encrypted",t.VG_ENDED="ended",t.VG_ERROR="error",t.VG_LOADED_DATA="loadeddata",t.VG_LOADED_METADATA="loadedmetadata",t.VG_LOAD_START="loadstart",t.VG_PAUSE="pause",t.VG_PLAY="play",t.VG_PLAYING="playing",t.VG_PROGRESS="progress",t.VG_RATE_CHANGE="ratechange",t.VG_SEEK="seek",t.VG_SEEKED="seeked",t.VG_SEEKING="seeking",t.VG_STALLED="stalled",t.VG_SUSPEND="suspend",t.VG_TIME_UPDATE="timeupdate",t.VG_VOLUME_CHANGE="volumechange",t.VG_WAITING="waiting",t.VG_LOAD="load",t.VG_ENTER="enter",t.VG_EXIT="exit",t.VG_START_ADS="startads",t.VG_END_ADS="endads",t})(),cE=(()=>{let t=class{constructor(t,e){this.api=t,this.ref=e,this.state=VD.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Pe.a}ngOnInit(){this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:_r(this.elem,lE.VG_ABORT),canPlay:_r(this.elem,lE.VG_CAN_PLAY),canPlayThrough:_r(this.elem,lE.VG_CAN_PLAY_THROUGH),durationChange:_r(this.elem,lE.VG_DURATION_CHANGE),emptied:_r(this.elem,lE.VG_EMPTIED),encrypted:_r(this.elem,lE.VG_ENCRYPTED),ended:_r(this.elem,lE.VG_ENDED),error:_r(this.elem,lE.VG_ERROR),loadedData:_r(this.elem,lE.VG_LOADED_DATA),loadedMetadata:_r(this.elem,lE.VG_LOADED_METADATA),loadStart:_r(this.elem,lE.VG_LOAD_START),pause:_r(this.elem,lE.VG_PAUSE),play:_r(this.elem,lE.VG_PLAY),playing:_r(this.elem,lE.VG_PLAYING),progress:_r(this.elem,lE.VG_PROGRESS),rateChange:_r(this.elem,lE.VG_RATE_CHANGE),seeked:_r(this.elem,lE.VG_SEEKED),seeking:_r(this.elem,lE.VG_SEEKING),stalled:_r(this.elem,lE.VG_STALLED),suspend:_r(this.elem,lE.VG_SUSPEND),timeUpdate:_r(this.elem,lE.VG_TIME_UPDATE),volumeChange:_r(this.elem,lE.VG_VOLUME_CHANGE),waiting:_r(this.elem,lE.VG_WAITING),startAds:_r(this.elem,lE.VG_START_ADS),endAds:_r(this.elem,lE.VG_END_ADS),mutation:new si.a(t=>{const e=new MutationObserver(e=>{t.next(e)});return e.observe(this.elem,{childList:!0,attributes:!0}),()=>{e.disconnect()}}),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe(()=>{this.prepareSync()})}prepareSync(){const t=[];for(const e in this.api.medias)this.api.medias[e]&&t.push(this.api.medias[e].subscriptions.canPlay);this.canPlayAllSubscription=Em(t).pipe(Object(ii.a)((...t)=>{t.some(t=>4===t.target.readyState)&&!this.syncSubscription&&(this.startSync(),this.syncSubscription.unsubscribe())})).subscribe()}startSync(){this.syncSubscription=Nr(0,1e3).subscribe(()=>{for(const t in this.api.medias)if(this.api.medias[t]!==this){const e=this.api.medias[t].currentTime-this.currentTime;e<-.3||e>.3?(this.playAtferSync=this.state===VD.VG_PLAYING,this.pause(),this.api.medias[t].pause(),this.api.medias[t].currentTime=this.currentTime):this.playAtferSync&&(this.play(),this.api.medias[t].play(),this.playAtferSync=!1)}})}onMutation(t){for(let e=0,i=t.length;e0&&i.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===i.type&&i.removedNodes.length&&"source"===i.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}loadMedia(){this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout(()=>this.vgMedia.load(),10)}play(){if(!(this.playPromise||this.state!==VD.VG_PAUSED&&this.state!==VD.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then(()=>{this.playPromise=null}).catch(()=>{this.playPromise=null}),this.playPromise}pause(){this.playPromise?this.playPromise.then(()=>{this.vgMedia.pause()}):this.vgMedia.pause()}get id(){let t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}get duration(){return this.vgMedia.duration}set currentTime(t){this.vgMedia.currentTime=t}get currentTime(){return this.vgMedia.currentTime}set volume(t){this.vgMedia.volume=t}get volume(){return this.vgMedia.volume}set playbackRate(t){this.vgMedia.playbackRate=t}get playbackRate(){return this.vgMedia.playbackRate}get buffered(){return this.vgMedia.buffered}get textTracks(){return this.vgMedia.textTracks}onCanPlay(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}onCanPlayThrough(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}onLoadMetadata(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=VD.VG_PAUSED;const e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}onWait(t){this.isWaiting=!0,this.ref.detectChanges()}onComplete(t){this.isCompleted=!0,this.state=VD.VG_ENDED,this.ref.detectChanges()}onStartPlaying(t){this.state=VD.VG_PLAYING,this.ref.detectChanges()}onPlay(t){this.state=VD.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}onPause(t){this.state=VD.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}onTimeUpdate(t){const e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onProgress(t){const e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onVolumeChange(t){this.ref.detectChanges()}onError(t){this.ref.detectChanges()}bufferCheck(){const t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}startBufferCheck(){this.checkBufferSubscription=Nr(0,this.checkInterval).subscribe(()=>{this.bufferCheck()})}stopBufferCheck(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}seekTime(t,e=!1){let i;i=e?t*this.duration/100:t,this.currentTime=i}addTextTrack(t,e,i,n){const s=this.vgMedia.addTextTrack(t,e,i);return n&&(s.mode=n),s}ngOnDestroy(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}};return t.\u0275fac=function(e){return new(e||t)(s.yc(jD),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),t})(),dE=(()=>{let t=class{constructor(t){this.ref=t,this.onEnterCuePoint=new s.s,this.onUpdateCuePoint=new s.s,this.onExitCuePoint=new s.s,this.onCompleteCuePoint=new s.s,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}ngOnInit(){this.onLoad$=_r(this.ref.nativeElement,lE.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}onLoad(t){if(t.target&&t.target.track){const e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){const e=t.target.textTracks[0].cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}}updateCuePoints(t){this.cuesSubscriptions.forEach(t=>t.unsubscribe());for(let e=0,i=t.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","vgCuePoints",""]],outputs:{onEnterCuePoint:"onEnterCuePoint",onUpdateCuePoint:"onUpdateCuePoint",onExitCuePoint:"onExitCuePoint",onCompleteCuePoint:"onCompleteCuePoint"}}),t})(),hE=(()=>{let t=class{constructor(t,e,i,n){this.api=e,this.fsAPI=i,this.controlsHidden=n,this.isFullscreen=!1,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.onPlayerReady=new s.s,this.onMediaReady=new s.s,this.subscriptions=[],this.elem=t.nativeElement,this.api.registerElement(this.elem)}ngAfterContentInit(){this.medias.toArray().forEach(t=>{this.api.registerMedia(t)}),this.fsAPI.init(this.elem,this.medias),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.api.onPlayerReady(this.fsAPI),this.onPlayerReady.emit(this.api)}onChangeFullscreen(t){this.fsAPI.nativeFullscreen?this.isNativeFullscreen=t:(this.isFullscreen=t,this.zIndex=t?GD.getZIndex().toString():"auto")}onHideControls(t){this.areControlsHidden=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD),s.yc(WD),s.yc(HD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-player"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,cE,!1),2&t&&s.gd(n=s.Rc())&&(e.medias=n)},hostVars:8,hostBindings:function(t,e){2&t&&(s.sd("z-index",e.zIndex),s.oc("fullscreen",e.isFullscreen)("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden))},outputs:{onPlayerReady:"onPlayerReady",onMediaReady:"onMediaReady"},features:[s.jc([jD,WD,HD])],ngContentSelectors:PD,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},styles:["\n vg-player {\n font-family: 'videogular';\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: black;\n }\n vg-player.fullscreen {\n position: fixed;\n left: 0;\n top: 0;\n }\n vg-player.native-fullscreen.controls-hidden {\n cursor: none;\n }\n "],encapsulation:2}),t})(),uE=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[jD,WD,GD,HD,VD,lE]}),t})(),mE=(()=>{let t=class{constructor(t,e,i,n){this.API=e,this.fsAPI=i,this.controlsHidden=n,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}onChangeFullscreen(t){this.fsAPI.nativeFullscreen&&(this.isNativeFullscreen=t)}onHideControls(t){this.areControlsHidden=t}onClick(){switch(this.getState()){case VD.VG_PLAYING:this.target.pause();break;case VD.VG_PAUSED:case VD.VG_ENDED:this.target.play()}}getState(){let t=VD.VG_PAUSED;if(this.target)if(this.target.state instanceof Array){for(let e=0,i=this.target.state.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jD),s.yc(WD),s.yc(HD))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-overlay-play"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Qc("click",(function(){return e.onClick()})),2&t&&s.oc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:2,vars:6,consts:[[1,"vg-overlay-play"],[1,"overlay-play-container"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.zc(1,"div",1),s.Cc()),2&t&&(s.oc("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden),s.kc(1),s.oc("vg-icon-play_arrow","playing"!==e.getState()))},styles:["\n vg-overlay-play {\n z-index: 200;\n }\n vg-overlay-play.is-buffering {\n display: none;\n }\n vg-overlay-play .vg-overlay-play {\n transition: all 0.5s;\n cursor: pointer;\n position: absolute;\n display: block;\n color: white;\n width: 100%;\n height: 100%;\n font-size: 80px;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n vg-overlay-play .vg-overlay-play.native-fullscreen.controls-hidden {\n cursor: none;\n }\n vg-overlay-play .vg-overlay-play .overlay-play-container.vg-icon-play_arrow {\n pointer-events: none;\n width: 100%;\n height: 100%;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 80px;\n }\n vg-overlay-play .vg-overlay-play:hover {\n filter: alpha(opacity=100);\n opacity: 1;\n }\n vg-overlay-play .vg-overlay-play:hover .overlay-play-container.vg-icon-play_arrow:before {\n transform: scale(1.2);\n }\n "],encapsulation:2}),t})(),pE=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c]]}),t})();function gE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-button-toggle",12),s.Qc("click",(function(){s.ld(t);const i=e.$implicit,n=e.index;return s.Uc(2).onClickPlaylistItem(i,n)})),s.vd(1),s.Cc()}if(2&t){const t=e.$implicit,i=s.Uc(2);s.ad("checked",i.currentItem.title===t.title)("value",t.title),s.kc(1),s.wd(t.label)}}var fE;function bE(t,e){1&t&&s.zc(0,"mat-spinner",17),2&t&&s.ad("diameter",25)}function _E(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",13),s.Dc(1,"div",14),s.td(2,bE,1,1,"mat-spinner",15),s.Cc(),s.Dc(3,"button",16),s.Qc("click",(function(){return s.ld(t),s.Uc(2).updatePlaylist()})),s.Bc(4),s.Hc(5,fE),s.Ac(),s.vd(6,"\xa0"),s.Dc(7,"mat-icon"),s.vd(8,"update"),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(2),s.ad("ngIf",t.playlist_updating),s.kc(1),s.ad("disabled",t.playlist_updating)}}function yE(t,e){1&t&&s.zc(0,"mat-spinner",23),2&t&&s.ad("diameter",50)}function vE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",24),s.Qc("click",(function(){return s.ld(t),s.Uc(3).namePlaylistDialog()})),s.Dc(1,"mat-icon",19),s.vd(2,"favorite"),s.Cc(),s.Cc()}}function wE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",25),s.Qc("click",(function(){return s.ld(t),s.Uc(3).openShareDialog()})),s.Dc(1,"mat-icon",19),s.vd(2,"share"),s.Cc(),s.Cc()}}function kE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"button",18),s.Qc("click",(function(){return s.ld(t),s.Uc(2).downloadContent()})),s.Dc(2,"mat-icon",19),s.vd(3,"save"),s.Cc(),s.td(4,yE,1,1,"mat-spinner",20),s.Cc(),s.td(5,vE,3,0,"button",21),s.td(6,wE,3,0,"button",22),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(1),s.ad("disabled",t.downloading),s.kc(3),s.ad("ngIf",t.downloading),s.kc(1),s.ad("ngIf",!t.id),s.kc(1),s.ad("ngIf",!t.is_shared&&t.id)}}function xE(t,e){1&t&&s.zc(0,"mat-spinner",23),2&t&&s.ad("diameter",50)}function CE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",25),s.Qc("click",(function(){return s.ld(t),s.Uc(3).openShareDialog()})),s.Dc(1,"mat-icon",19),s.vd(2,"share"),s.Cc(),s.Cc()}}function SE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"button",18),s.Qc("click",(function(){return s.ld(t),s.Uc(2).downloadFile()})),s.Dc(2,"mat-icon",19),s.vd(3,"save"),s.Cc(),s.td(4,xE,1,1,"mat-spinner",20),s.Cc(),s.td(5,CE,3,0,"button",22),s.Cc()}if(2&t){const t=s.Uc(2);s.kc(1),s.ad("disabled",t.downloading),s.kc(3),s.ad("ngIf",t.downloading),s.kc(1),s.ad("ngIf",!t.is_shared&&t.uid&&"false"!==t.uid&&"subscription"!==t.type)}}function DE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"div",1),s.Dc(2,"div",2),s.Dc(3,"div",3),s.Dc(4,"vg-player",4),s.Qc("onPlayerReady",(function(e){return s.ld(t),s.Uc().onPlayerReady(e)})),s.zc(5,"video",5,6),s.Cc(),s.Cc(),s.Dc(7,"div",7),s.Dc(8,"mat-button-toggle-group",8,9),s.Qc("cdkDropListDropped",(function(e){return s.ld(t),s.Uc().drop(e)})),s.td(10,gE,2,3,"mat-button-toggle",10),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.td(11,_E,9,2,"div",11),s.td(12,kE,7,4,"div",0),s.td(13,SE,6,3,"div",0),s.Cc()}if(2&t){const t=s.hd(6),e=s.Uc();s.kc(1),s.ad("ngClass","audio"===e.type?null:"container-video"),s.kc(2),s.ad("ngClass","audio"===e.type?"my-2 px-1":"video-col"),s.kc(1),s.sd("background-color","audio"===e.type?"transparent":"black"),s.kc(1),s.ad("ngClass","audio"===e.type?"audio-styles":"video-styles")("vgMedia",t)("src",e.currentItem.src,s.nd),s.kc(3),s.ad("cdkDropListSortingDisabled",!e.id),s.kc(2),s.ad("ngForOf",e.playlist),s.kc(1),s.ad("ngIf",e.id&&e.playlistChanged()),s.kc(1),s.ad("ngIf",e.playlist.length>1),s.kc(1),s.ad("ngIf",1===e.playlist.length)}}fE=$localize`:Playlist save changes button␟5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f␟7000649363168371045:Save changes`;let EE=(()=>{class t{constructor(t,e,i,n,s){this.postsService=t,this.route=e,this.dialog=i,this.router=n,this.snackBar=s,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.url=null,this.name=null,this.downloading=!1}onResize(t){this.innerWidth=window.innerWidth}ngOnInit(){this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.postsService.loadNavItems().subscribe(t=>{const e=this.postsService.debugMode?t:t.config_file;this.baseStreamPath=this.postsService.path,this.audioFolderPath=e.YoutubeDLMaterial.Downloader["path-audio"],this.videoFolderPath=e.YoutubeDLMaterial.Downloader["path-video"],this.subscriptionFolderPath=e.YoutubeDLMaterial.Subscriptions.subscriptions_base_path,this.fileNames=this.route.snapshot.paramMap.get("fileNames")?this.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,this.fileNames||(this.is_shared=!0),this.uid&&!this.id?this.getFile():this.id&&this.getPlaylistFiles(),this.url?(this.playlist=[],this.playlist.push({title:this.name,label:this.name,src:this.url,type:"video/mp4"}),this.currentItem=this.playlist[0],this.currentIndex=0,this.show_player=!0):("subscription"===this.type||this.fileNames)&&(this.show_player=!0,this.parseFileNames())})}getFile(){const t=!!this.fileNames;this.postsService.getFile(this.uid,null).subscribe(e=>{this.db_file=e.file,this.db_file?(this.fileNames||this.id||(this.fileNames=[this.db_file.id],this.type=this.db_file.isAudio?"audio":"video",t||this.parseFileNames()),this.db_file.sharingEnabled?this.show_player=!0:t||this.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):this.openSnackBar("Failed to get file information from the server.","Dismiss")})}getPlaylistFiles(){this.postsService.getPlaylist(this.id,null).subscribe(t=>{this.db_playlist=t.playlist,this.fileNames=this.db_playlist.fileNames,this.type=t.type,this.show_player=!0,this.parseFileNames()})}parseFileNames(){let t=null;"audio"===this.type?t="audio/mp3":"video"===this.type||"subscription"===this.type?t="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(let e=0;e{})}getFileNames(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,e+".zip")},t=>{console.log(t),this.downloading=!1})}downloadFile(){const t="audio"===this.type?".mp3":".mp4",e=this.playlist[0].title;this.downloading=!0,this.postsService.downloadFileFromServer(e,this.type,null,null,this.subscriptionName,this.subPlaylist).subscribe(i=>{this.downloading=!1,saveAs(i,e+t)},t=>{console.log(t),this.downloading=!1})}namePlaylistDialog(){const t=new s.s,e=this.dialog.open(vD,{width:"300px",data:{inputTitle:"Name the playlist",inputPlaceholder:"Name",submitText:"Favorite",doneEmitter:t}});t.subscribe(t=>{if(t){const i=this.getFileNames();this.postsService.createPlaylist(t,i,this.type,null).subscribe(i=>{if(i.success){e.close();const n=i.new_playlist;this.db_playlist=n,this.openSnackBar("Playlist '"+t+"' successfully created!",""),this.playlistPostCreationHandler(n.id)}})}})}playlistPostCreationHandler(t){this.id=t,this.router.navigateByUrl(this.router.url+";id="+t)}drop(t){ob(this.playlist,t.previousIndex,t.currentIndex)}playlistChanged(){return JSON.stringify(this.playlist)!==this.original_playlist}updatePlaylist(){const t=this.getFileNames();this.playlist_updating=!0,this.postsService.updatePlaylist(this.id,t,this.type).subscribe(e=>{if(this.playlist_updating=!1,e.success){const e=t.join("|nvr|");this.router.navigate(["/player",{fileNames:e,type:this.type,id:this.id}]),this.openSnackBar("Successfully updated playlist.",""),this.original_playlist=JSON.stringify(this.playlist)}else this.openSnackBar("ERROR: Failed to update playlist.","")})}openShareDialog(){this.dialog.open(ID,{data:{uid:this.id?this.id:this.uid,type:this.type,sharing_enabled:this.id?this.db_playlist.sharingEnabled:this.db_file.sharingEnabled,is_playlist:!!this.id},width:"60vw"}).afterClosed().subscribe(t=>{this.id?this.getPlaylistFiles():this.getFile()})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(fy),s.yc(ud),s.yc(Cv),s.yc(Bg))},t.\u0275cmp=s.sc({type:t,selectors:[["app-player"]],hostBindings:function(t,e){1&t&&s.Qc("resize",(function(t){return e.onResize(t)}),!1,s.kd)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"container",3,"ngClass"],[1,"row",2,"max-width","100%","margin-left","0px","height","70vh"],[1,"col",3,"ngClass"],[3,"onPlayerReady"],["id","singleVideo","preload","auto","controls","",1,"video-player",3,"ngClass","vgMedia","src"],["media",""],[1,"col-12","my-2"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",2,"width","80%","left","9%",3,"cdkDropListSortingDisabled","cdkDropListDropped"],["group","matButtonToggleGroup"],["cdkDrag","","class","toggle-button",3,"checked","value","click",4,"ngFor","ngForOf"],["class","update-playlist-button-div",4,"ngIf"],["cdkDrag","",1,"toggle-button",3,"checked","value","click"],[1,"update-playlist-button-div"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],["color","primary","mat-raised-button","",3,"disabled","click"],[3,"diameter"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],["color","accent","class","favorite-button","color","primary","mat-fab","",3,"click",4,"ngIf"],["class","share-button","color","primary","mat-fab","",3,"click",4,"ngIf"],[1,"spinner",3,"diameter"],["color","accent","color","primary","mat-fab","",1,"favorite-button",3,"click"],["color","primary","mat-fab","",1,"share-button",3,"click"]],template:function(t,e){1&t&&s.td(0,DE,14,12,"div",0),2&t&&s.ad("ngIf",e.playlist.length>0&&e.show_player)},directives:[ye.t,ye.q,hE,cE,Ao,Rb,ye.s,Po,Ab,ms,pu,cp],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),t})();var AE;AE=$localize`:Subscribe dialog title␟a9806cf78ce00eb2613eeca11354a97e033377b8␟4500902888758611270:Subscribe to playlist or channel`;const OE=["placeholder",$localize`:Subscription URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var IE;IE=$localize`:Subscription URL input hint␟93efc99ae087fc116de708ecd3ace86ca237cf30␟6758330192665823220:The playlist or channel URL`;const PE=["placeholder",$localize`:Subscription custom name placeholder␟08f5d0ef937ae17feb1b04aff15ad88911e87baf␟1402261878731426139:Custom name`];var RE,TE,ME,FE,LE;function zE(t,e){if(1&t&&(s.Dc(0,"mat-option",17),s.vd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Uc(2);s.ad("value",t+(1===i.timerange_amount?"":"s")),s.kc(1),s.xd(" ",t+(1===i.timerange_amount?"":"s")," ")}}function NE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",3),s.Bc(1),s.Hc(2,LE),s.Ac(),s.Dc(3,"mat-form-field",13),s.Dc(4,"input",14),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().timerange_amount=e})),s.Cc(),s.Cc(),s.Dc(5,"mat-select",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().timerange_unit=e})),s.td(6,zE,2,2,"mat-option",16),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(4),s.ad("ngModel",t.timerange_amount),s.kc(1),s.ad("ngModel",t.timerange_unit),s.kc(1),s.ad("ngForOf",t.time_units)}}function BE(t,e){1&t&&(s.Dc(0,"div",18),s.zc(1,"mat-spinner",19),s.Cc()),2&t&&(s.kc(1),s.ad("diameter",25))}RE=$localize`:Custom name input hint␟f3f62aa84d59f3a8b900cc9a7eec3ef279a7b4e7␟8525826677893067522:This is optional`,TE=$localize`:Download all uploads subscription setting␟ea30873bd3f0d5e4fb2378eec3f0a1db77634a28␟2789218157148692814:Download all uploads`,ME=$localize`:Subscribe cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,FE=$localize`:Subscribe button␟d0336848b0c375a1c25ba369b3481ee383217a4f␟1144407473317535723:Subscribe`,LE=$localize`:Download time range prefix␟28a678e9cabf86e44c32594c43fa0e890135c20f␟2424458468042538424:Download videos uploaded in the last`;let VE=(()=>{class t{constructor(t,e,i){this.postsService=t,this.snackBar=e,this.dialogRef=i,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.time_units=["day","week","month","year"]}ngOnInit(){}subscribeClicked(){if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;let t=null;this.download_all||(t="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,t,this.streamingOnlyMode).subscribe(t=>{this.subscribing=!1,t.new_sub?this.dialogRef.close(t.new_sub):(t.error&&this.openSnackBar("ERROR: "+t.error),this.dialogRef.close())})}}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(Bg),s.yc(rd))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscribe-dialog"]],decls:36,vars:7,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,AE),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"div",2),s.Dc(5,"div",3),s.Dc(6,"mat-form-field",4),s.Dc(7,"input",5),s.Jc(8,OE),s.Qc("ngModelChange",(function(t){return e.url=t})),s.Cc(),s.Dc(9,"mat-hint"),s.Bc(10),s.Hc(11,IE),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(12,"div",3),s.Dc(13,"mat-form-field",4),s.Dc(14,"input",6),s.Jc(15,PE),s.Qc("ngModelChange",(function(t){return e.name=t})),s.Cc(),s.Dc(16,"mat-hint"),s.Bc(17),s.Hc(18,RE),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(19,"div",7),s.Dc(20,"mat-checkbox",8),s.Qc("ngModelChange",(function(t){return e.download_all=t})),s.Bc(21),s.Hc(22,TE),s.Ac(),s.Cc(),s.Cc(),s.td(23,NE,7,3,"div",9),s.Dc(24,"div",3),s.Dc(25,"div"),s.Dc(26,"mat-checkbox",8),s.Qc("ngModelChange",(function(t){return e.streamingOnlyMode=t})),s.vd(27,"Streaming-only mode"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(28,"mat-dialog-actions"),s.Dc(29,"button",10),s.Bc(30),s.Hc(31,ME),s.Ac(),s.Cc(),s.Dc(32,"button",11),s.Qc("click",(function(){return e.subscribeClicked()})),s.Bc(33),s.Hc(34,FE),s.Ac(),s.Cc(),s.td(35,BE,2,1,"div",12),s.Cc()),2&t&&(s.kc(7),s.ad("ngModel",e.url),s.kc(7),s.ad("ngModel",e.name),s.kc(6),s.ad("ngModel",e.download_all),s.kc(3),s.ad("ngIf",!e.download_all),s.kc(3),s.ad("ngModel",e.streamingOnlyMode),s.kc(6),s.ad("disabled",!e.url),s.kc(3),s.ad("ngIf",e.subscribing))},directives:[gd,fd,Mc,Au,As,ao,Fs,$a,Cc,dr,ye.t,bd,ms,pd,Ys,jp,ye.s,ns,cp],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var jE,UE,$E,HE,qE,GE,WE;function YE(t,e){if(1&t&&(s.Dc(0,"div",1),s.Dc(1,"strong"),s.Bc(2),s.Hc(3,WE),s.Ac(),s.vd(4,"\xa0"),s.Cc(),s.Dc(5,"span",2),s.vd(6),s.Cc(),s.Cc()),2&t){const t=s.Uc();s.kc(6),s.wd(t.sub.archive)}}jE=$localize`:Subscription type property␟e78c0d60ac39787f62c9159646fe0b3c1ed55a1d␟2736556170366900089:Type:`,UE=$localize`:Subscription URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,$E=$localize`:Subscription ID property␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,HE=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,qE=$localize`:Export Archive button␟8efc77bf327659c0fec1f518cf48a98cdcd9dddf␟5613381975493898311:Export Archive`,GE=$localize`:Unsubscribe button␟3042bd3ad8dffcfeca5fd1ae6159fd1047434e95␟1698114086921246480:Unsubscribe`,WE=$localize`:Subscription ID property␟a44d86aa1e6c20ced07aca3a7c081d8db9ded1c6␟2158775445713924699:Archive:`;let QE=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.postsService=i,this.sub=null,this.unsubbedEmitter=null}ngOnInit(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}unsubscribe(){this.postsService.unsubscribe(this.sub,!0).subscribe(t=>{this.unsubbedEmitter.emit(!0),this.dialogRef.close()})}downloadArchive(){this.postsService.downloadArchive(this.sub).subscribe(t=>{saveAs(t,"archive.txt")})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(rd),s.yc(ld),s.yc(Kv))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.vd(1),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"strong"),s.Bc(5),s.Hc(6,jE),s.Ac(),s.vd(7,"\xa0"),s.Cc(),s.Dc(8,"span",2),s.vd(9),s.Cc(),s.Cc(),s.Dc(10,"div",1),s.Dc(11,"strong"),s.Bc(12),s.Hc(13,UE),s.Ac(),s.vd(14,"\xa0"),s.Cc(),s.Dc(15,"span",2),s.vd(16),s.Cc(),s.Cc(),s.Dc(17,"div",1),s.Dc(18,"strong"),s.Bc(19),s.Hc(20,$E),s.Ac(),s.vd(21,"\xa0"),s.Cc(),s.Dc(22,"span",2),s.vd(23),s.Cc(),s.Cc(),s.td(24,YE,7,1,"div",3),s.Cc(),s.Dc(25,"mat-dialog-actions"),s.Dc(26,"button",4),s.Bc(27),s.Hc(28,HE),s.Ac(),s.Cc(),s.Dc(29,"button",5),s.Qc("click",(function(){return e.downloadArchive()})),s.Bc(30),s.Hc(31,qE),s.Ac(),s.Cc(),s.zc(32,"span",6),s.Dc(33,"button",7),s.Qc("click",(function(){return e.unsubscribe()})),s.Bc(34),s.Hc(35,GE),s.Ac(),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.wd(e.sub.name),s.kc(8),s.wd(e.sub.isPlaylist?"Playlist":"Channel"),s.kc(7),s.wd(e.sub.url),s.kc(7),s.wd(e.sub.id),s.kc(1),s.ad("ngIf",e.sub.archive))},directives:[gd,fd,ye.t,bd,ms,pd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();var KE,XE,ZE,JE,tA,eA,iA;function nA(t,e){if(1&t&&(s.Dc(0,"strong"),s.vd(1),s.Cc()),2&t){const t=s.Uc().$implicit;s.kc(1),s.wd(t.name)}}function sA(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,JE),s.Ac(),s.Cc())}function aA(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-list-item"),s.Dc(1,"a",9),s.Qc("click",(function(){s.ld(t);const i=e.$implicit;return s.Uc().goToSubscription(i)})),s.td(2,nA,2,1,"strong",10),s.td(3,sA,3,0,"div",10),s.Cc(),s.Dc(4,"button",11),s.Qc("click",(function(){s.ld(t);const i=e.$implicit;return s.Uc().showSubInfo(i)})),s.Dc(5,"mat-icon"),s.vd(6,"info"),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit;s.kc(2),s.ad("ngIf",t.name),s.kc(1),s.ad("ngIf",!t.name)}}function oA(t,e){1&t&&(s.Dc(0,"div",12),s.Dc(1,"p"),s.Hc(2,tA),s.Cc(),s.Cc())}function rA(t,e){1&t&&(s.Dc(0,"div",14),s.Bc(1),s.Hc(2,eA),s.Ac(),s.Cc())}function lA(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-list-item"),s.Dc(1,"a",9),s.Qc("click",(function(){s.ld(t);const i=e.$implicit;return s.Uc().goToSubscription(i)})),s.Dc(2,"strong"),s.vd(3),s.Cc(),s.td(4,rA,3,0,"div",13),s.Cc(),s.Dc(5,"button",11),s.Qc("click",(function(){s.ld(t);const i=e.$implicit;return s.Uc().showSubInfo(i)})),s.Dc(6,"mat-icon"),s.vd(7,"info"),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit;s.kc(3),s.wd(t.name),s.kc(1),s.ad("ngIf",!t.name)}}function cA(t,e){1&t&&(s.Dc(0,"div",12),s.Dc(1,"p"),s.Hc(2,iA),s.Cc(),s.Cc())}function dA(t,e){1&t&&(s.Dc(0,"div",15),s.zc(1,"mat-progress-bar",16),s.Cc())}KE=$localize`:Subscriptions title␟e2319dec5b4ccfb6ed9f55ccabd63650a8fdf547␟3180145612302390475:Your subscriptions`,XE=$localize`:Subscriptions channels title␟807cf11e6ac1cde912496f764c176bdfdd6b7e19␟8181077408762380407:Channels`,ZE=$localize`:Subscriptions playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,JE=$localize`:Subscription playlist not available text␟29b89f751593e1b347eef103891b7a1ff36ec03f␟973700466393519727:Name not available. Channel retrieval in progress.`,tA=$localize`:No channel subscriptions text␟4636cd4a1379c50d471e98786098c4d39e1e82ad␟2560406180065361139:You have no channel subscriptions.`,eA=$localize`:Subscription playlist not available text␟2e0a410652cb07d069f576b61eab32586a18320d␟4161141077899894301:Name not available. Playlist retrieval in progress.`,iA=$localize`:No playlist subscriptions text␟587b57ced54965d8874c3fd0e9dfedb987e5df04␟3403368727234976136:You have no playlist subscriptions.`;let hA=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.postsService=e,this.router=i,this.snackBar=n,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}ngOnInit(){this.getSubscriptions()}getSubscriptions(){this.subscriptions_loading=!0,this.subscriptions=null,this.channel_subscriptions=[],this.playlist_subscriptions=[],this.postsService.getAllSubscriptions().subscribe(t=>{if(this.subscriptions_loading=!1,this.subscriptions=t.subscriptions,this.subscriptions)for(let e=0;e{this.subscriptions_loading=!1,console.error("Failed to get subscriptions"),this.openSnackBar("ERROR: Failed to get subscriptions!","OK.")})}goToSubscription(t){this.router.navigate(["/subscription",{id:t.id}])}openSubscribeDialog(){this.dialog.open(VE,{maxWidth:500,width:"80vw"}).afterClosed().subscribe(t=>{t&&(t.isPlaylist?this.playlist_subscriptions.push(t):this.channel_subscriptions.push(t))})}showSubInfo(t){const e=new s.s;this.dialog.open(QE,{data:{sub:t,unsubbedEmitter:e}}),e.subscribe(e=>{e&&(this.openSnackBar(`${t.name} successfully deleted!`),this.getSubscriptions())})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(ud),s.yc(Kv),s.yc(Cv),s.yc(Bg))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(s.zc(0,"br"),s.Dc(1,"h2",0),s.Hc(2,KE),s.Cc(),s.zc(3,"mat-divider",1),s.zc(4,"br"),s.Dc(5,"h4",2),s.Hc(6,XE),s.Cc(),s.Dc(7,"mat-nav-list",3),s.td(8,aA,7,2,"mat-list-item",4),s.Cc(),s.td(9,oA,3,0,"div",5),s.Dc(10,"h4",6),s.Hc(11,ZE),s.Cc(),s.Dc(12,"mat-nav-list",3),s.td(13,lA,8,2,"mat-list-item",4),s.Cc(),s.td(14,cA,3,0,"div",5),s.td(15,dA,2,0,"div",7),s.Dc(16,"button",8),s.Qc("click",(function(){return e.openSubscribeDialog()})),s.Dc(17,"mat-icon"),s.vd(18,"add"),s.Cc(),s.Cc()),2&t&&(s.kc(8),s.ad("ngForOf",e.channel_subscriptions),s.kc(1),s.ad("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),s.kc(4),s.ad("ngForOf",e.playlist_subscriptions),s.kc(1),s.ad("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),s.kc(1),s.ad("ngIf",e.subscriptions_loading))},directives:[Iu,$u,ye.s,ye.t,ms,pu,Qu,Ln,Zm],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),t})();var uA,mA,pA,gA;function fA(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",4),s.Qc("click",(function(){return s.ld(t),s.Uc().deleteForever()})),s.Dc(1,"mat-icon"),s.vd(2,"delete_forever"),s.Cc(),s.Bc(3),s.Hc(4,gA),s.Ac(),s.Cc()}}function bA(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",10),s.Dc(1,"img",11),s.Qc("error",(function(e){return s.ld(t),s.Uc().onImgError(e)})),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(1),s.ad("src",t.file.thumbnailURL,s.nd)}}uA=$localize`:Video duration label␟2054791b822475aeaea95c0119113de3200f5e1c␟7115285952699064699:Length:`,mA=$localize`:Subscription video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,pA=$localize`:Delete and redownload subscription video button␟94e01842dcee90531caa52e4147f70679bac87fe␟8460889291602192517:Delete and redownload`,gA=$localize`:Delete forever subscription video button␟2031adb51e07a41844e8ba7704b054e98345c9c1␟880206287081443054:Delete forever`;let _A=(()=>{class t{constructor(t,e,i){this.snackBar=t,this.postsService=e,this.dialog=i,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new s.s,this.reloadSubscription=new s.s,this.scrollSubject=new Pe.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){this.file.duration&&(this.formattedDuration=function(t){const e=~~(t/3600),i=~~(t%3600/60),n=~~t%60;let s="";return e>0&&(s+=e+":"+(i<10?"0":"")),s+=i+":"+(n<10?"0":""),s+=""+n,s}(this.file.duration))}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}goToFile(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}openSubscriptionInfoDialog(){this.dialog.open(MS,{data:{file:this.file},minWidth:"50vw"})}deleteAndRedownload(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}deleteForever(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Bg),s.yc(Kv),s.yc(ud))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.Bc(2),s.Hc(3,uA),s.Ac(),s.vd(4),s.Cc(),s.Dc(5,"button",2),s.Dc(6,"mat-icon"),s.vd(7,"more_vert"),s.Cc(),s.Cc(),s.Dc(8,"mat-menu",null,3),s.Dc(10,"button",4),s.Qc("click",(function(){return e.openSubscriptionInfoDialog()})),s.Dc(11,"mat-icon"),s.vd(12,"info"),s.Cc(),s.Bc(13),s.Hc(14,mA),s.Ac(),s.Cc(),s.Dc(15,"button",4),s.Qc("click",(function(){return e.deleteAndRedownload()})),s.Dc(16,"mat-icon"),s.vd(17,"restore"),s.Cc(),s.Bc(18),s.Hc(19,pA),s.Ac(),s.Cc(),s.td(20,fA,5,0,"button",5),s.Cc(),s.Dc(21,"mat-card",6),s.Qc("click",(function(){return e.goToFile()})),s.Dc(22,"div",7),s.td(23,bA,2,1,"div",8),s.Dc(24,"span",9),s.Dc(25,"strong"),s.vd(26),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t){const t=s.hd(9);s.kc(4),s.xd("\xa0",e.formattedDuration," "),s.kc(1),s.ad("matMenuTriggerFor",t),s.kc(15),s.ad("ngIf",e.sub.archive&&e.use_youtubedl_archive),s.kc(3),s.ad("ngIf",!e.image_errored&&e.file.thumbnailURL),s.kc(3),s.wd(e.file.title)}},directives:[ms,xm,pu,ym,mm,ye.t,Ko,qn],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),t})();function yA(t,e){if(1&t&&(s.Dc(0,"h2",9),s.vd(1),s.Cc()),2&t){const t=s.Uc();s.kc(1),s.xd(" ",t.subscription.name," ")}}var vA;vA=$localize`:Subscription videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const wA=["placeholder",$localize`:Subscription videos search placeholder␟7e892ba15f2c6c17e83510e273b3e10fc32ea016␟4580988005648117665:Search`];function kA(t,e){if(1&t&&(s.Dc(0,"mat-option",25),s.vd(1),s.Cc()),2&t){const t=e.$implicit;s.ad("value",t.value),s.kc(1),s.xd(" ",t.value.label," ")}}function xA(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",26),s.Dc(1,"app-subscription-file-card",27),s.Qc("reloadSubscription",(function(){return s.ld(t),s.Uc(2).getSubscription()}))("goToFileEmit",(function(e){return s.ld(t),s.Uc(2).goToFile(e)})),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit,i=s.Uc(2);s.kc(1),s.ad("file",t)("sub",i.subscription)("use_youtubedl_archive",i.use_youtubedl_archive)}}function CA(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"div",12),s.Dc(4,"mat-select",13),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().filterProperty=e}))("selectionChange",(function(e){return s.ld(t),s.Uc().filterOptionChanged(e.value)})),s.td(5,kA,2,2,"mat-option",14),s.Vc(6,"keyvalue"),s.Cc(),s.Cc(),s.Dc(7,"div",12),s.Dc(8,"button",15),s.Qc("click",(function(){return s.ld(t),s.Uc().toggleModeChange()})),s.Dc(9,"mat-icon"),s.vd(10),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.zc(11,"div",16),s.Dc(12,"div",16),s.Dc(13,"h4",17),s.Hc(14,vA),s.Cc(),s.Cc(),s.Dc(15,"div",18),s.Dc(16,"mat-form-field",19),s.Dc(17,"input",20),s.Jc(18,wA),s.Qc("focus",(function(){return s.ld(t),s.Uc().searchIsFocused=!0}))("blur",(function(){return s.ld(t),s.Uc().searchIsFocused=!1}))("ngModelChange",(function(e){return s.ld(t),s.Uc().search_text=e}))("ngModelChange",(function(e){return s.ld(t),s.Uc().onSearchInputChanged(e)})),s.Cc(),s.Dc(19,"mat-icon",21),s.vd(20,"search"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(21,"div",22),s.Dc(22,"div",23),s.td(23,xA,2,3,"div",24),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(4),s.ad("ngModel",t.filterProperty),s.kc(1),s.ad("ngForOf",s.Wc(6,6,t.filterProperties)),s.kc(5),s.wd(t.descendingMode?"arrow_downward":"arrow_upward"),s.kc(6),s.ad("ngClass",t.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),s.kc(1),s.ad("ngModel",t.search_text),s.kc(6),s.ad("ngForOf",t.filtered_files)}}function SA(t,e){1&t&&s.zc(0,"mat-spinner",28),2&t&&s.ad("diameter",50)}let DA=(()=>{class t{constructor(t,e,i){this.postsService=t,this.route=e,this.router=i,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}ngOnInit(){this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.getSubscription(),this.getConfig());const t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}goBack(){this.router.navigate(["/subscriptions"])}getSubscription(){this.postsService.getSubscription(this.id).subscribe(t=>{this.subscription=t.subscription,this.files=t.files,this.search_mode?this.filterFiles(this.search_text):this.filtered_files=this.files,this.filterByProperty(this.filterProperty.property)})}getConfig(){this.postsService.loadNavItems().subscribe(t=>{this.use_youtubedl_archive=(this.postsService.debugMode?t:t.config_file).YoutubeDLMaterial.Subscriptions.subscriptions_use_youtubedl_archive})}goToFile(t){const e=t.name,i=t.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:e,url:i}]:["/player",{fileNames:e,type:"subscription",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist}])}onSearchInputChanged(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}filterFiles(t){const e=t.toLowerCase();this.filtered_files=this.files.filter(t=>t.id.toLowerCase().includes(e))}filterByProperty(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?(e,i)=>e[t]>i[t]?-1:1:(e,i)=>e[t]>i[t]?1:-1)}filterOptionChanged(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}toggleModeChange(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}downloadContent(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,this.subscription.name+".zip")},t=>{console.log(t),this.downloading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv),s.yc(fy),s.yc(Cv))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscription"]],decls:13,vars:4,consts:[[2,"margin-top","14px"],["mat-icon-button","",1,"back-button",3,"click"],[2,"margin-bottom","15px"],["style","text-align: center;",4,"ngIf"],[2,"width","80%","margin","0 auto"],[4,"ngIf"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],[2,"text-align","center"],[1,"flex-grid"],[1,"filter-select-parent"],[2,"display","inline-block"],[2,"width","110px",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],[1,"col"],[2,"text-align","center","margin-bottom","20px"],[1,"col",2,"top","-12px"],["color","accent",1,"search-bar",3,"ngClass"],["type","text","matInput","",1,"search-input",3,"ngModel","focus","blur","ngModelChange",6,"placeholder"],["matSuffix",""],[1,"container"],[1,"row","justify-content-center"],["class","col-6 col-lg-4 mb-2 mt-2 sub-file-col",4,"ngFor","ngForOf"],[3,"value"],[1,"col-6","col-lg-4","mb-2","mt-2","sub-file-col"],[3,"file","sub","use_youtubedl_archive","reloadSubscription","goToFileEmit"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"button",1),s.Qc("click",(function(){return e.goBack()})),s.Dc(2,"mat-icon"),s.vd(3,"arrow_back"),s.Cc(),s.Cc(),s.Dc(4,"div",2),s.td(5,yA,2,1,"h2",3),s.Cc(),s.zc(6,"mat-divider",4),s.zc(7,"br"),s.td(8,CA,24,8,"div",5),s.Dc(9,"button",6),s.Qc("click",(function(){return e.downloadContent()})),s.Dc(10,"mat-icon",7),s.vd(11,"save"),s.Cc(),s.td(12,SA,1,1,"mat-spinner",8),s.Cc(),s.Cc()),2&t&&(s.kc(5),s.ad("ngIf",e.subscription),s.kc(3),s.ad("ngIf",e.subscription),s.kc(1),s.ad("disabled",e.downloading),s.kc(3),s.ad("ngIf",e.downloading))},directives:[ms,pu,ye.t,Iu,jp,Fs,$a,ye.s,Mc,ye.q,Au,As,Ac,ns,_A,cp],pipes:[ye.l],styles:[".sub-file-col[_ngcontent-%COMP%]{max-width:240px}.back-button[_ngcontent-%COMP%]{float:left;position:absolute;left:15px}.filter-select-parent[_ngcontent-%COMP%]{position:absolute;top:0;left:20px;display:block}.search-bar[_ngcontent-%COMP%]{transition:all .5s ease;position:relative;float:right}.search-bar-unfocused[_ngcontent-%COMP%]{width:100px}.search-input[_ngcontent-%COMP%]{transition:all .5s ease}.search-bar-focused[_ngcontent-%COMP%]{width:100%}.flex-grid[_ngcontent-%COMP%]{width:100%;display:block;position:relative}.col[_ngcontent-%COMP%]{width:33%;display:inline-block}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:absolute;bottom:25px}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}"]}),t})();var EA;function AA(t,e){1&t&&(s.Dc(0,"mat-icon",10),s.vd(1,"done"),s.Cc())}function OA(t,e){1&t&&(s.Dc(0,"mat-icon",11),s.vd(1,"error"),s.Cc())}function IA(t,e){if(1&t&&(s.Dc(0,"mat-expansion-panel",12),s.Dc(1,"mat-expansion-panel-header"),s.vd(2," Error "),s.Cc(),s.vd(3),s.Cc()),2&t){const t=s.Uc();s.kc(3),s.xd(" ",t.download.error," ")}}EA=$localize`:Download ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`;let PA=(()=>{class t{constructor(){this.download={uid:null,type:"audio",percent_complete:0,complete:!1,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.cancelDownload=new s.s,this.queueNumber=null,this.url_id=null}ngOnInit(){if(this.download&&this.download.url&&this.download.url.includes("youtube")){const t=this.download.is_playlist?6:3,e=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+t;this.url_id=this.download.url.substring(e,this.download.url.length)}}cancelTheDownload(){this.cancelDownload.emit(this.download)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:17,vars:11,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","text-align","center","width","100%"],[1,"shorten"],[3,"value","mode"],["style","margin-left: 25px; cursor: default","matTooltip","The download is complete","matTooltip-i18n","",4,"ngIf"],["style","margin-left: 25px; cursor: default","matTooltip","An error has occurred","matTooltip-i18n","",4,"ngIf"],["mat-icon-button","","color","warn",2,"margin-bottom","2px",3,"click"],["fontSet","material-icons-outlined"],["class","ignore-margin",4,"ngIf"],["matTooltip","The download is complete","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],["matTooltip","An error has occurred","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],[1,"ignore-margin"]],template:function(t,e){1&t&&(s.Dc(0,"div"),s.Dc(1,"mat-grid-list",0),s.Dc(2,"mat-grid-tile",1),s.Dc(3,"div",2),s.Dc(4,"span",3),s.Bc(5),s.Hc(6,EA),s.Ac(),s.vd(7),s.Cc(),s.Cc(),s.Cc(),s.Dc(8,"mat-grid-tile",1),s.zc(9,"mat-progress-bar",4),s.td(10,AA,2,0,"mat-icon",5),s.td(11,OA,2,0,"mat-icon",6),s.Cc(),s.Dc(12,"mat-grid-tile",1),s.Dc(13,"button",7),s.Qc("click",(function(){return e.cancelTheDownload()})),s.Dc(14,"mat-icon",8),s.vd(15,"cancel"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.td(16,IA,4,1,"mat-expansion-panel",9),s.Cc()),2&t&&(s.kc(1),s.ad("rowHeight",50)("cols",24),s.kc(1),s.ad("colspan",7),s.kc(5),s.xd("\xa0",e.url_id?e.url_id:e.download.uid,""),s.kc(1),s.ad("colspan",13),s.kc(1),s.ad("value",e.download.complete||e.download.error?100:e.download.percent_complete)("mode",e.download.complete||0!==e.download.percent_complete||e.download.error?"determinate":"indeterminate"),s.kc(1),s.ad("ngIf",e.download.complete),s.kc(1),s.ad("ngIf",e.download.error),s.kc(1),s.ad("colspan",4),s.kc(4),s.ad("ngIf",e.download.error))},directives:[hh,Xd,Zm,ye.t,ms,pu,Hm,Bd,jd],styles:[".shorten[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.ignore-margin[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;margin-bottom:-15px}"]}),t})();var RA,TA,MA;function FA(t,e){1&t&&(s.Dc(0,"span"),s.vd(1,"\xa0"),s.Bc(2),s.Hc(3,TA),s.Ac(),s.Cc())}function LA(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-card",10),s.Dc(1,"app-download-item",11),s.Qc("cancelDownload",(function(){s.ld(t);const e=s.Uc().$implicit,i=s.Uc(2).$implicit;return s.Uc().clearDownload(i.key,e.value.uid)})),s.Cc(),s.Cc()}if(2&t){const t=s.Uc(),e=t.$implicit,i=t.index;s.kc(1),s.ad("download",e.value)("queueNumber",i+1)}}function zA(t,e){if(1&t&&(s.Dc(0,"div",8),s.td(1,LA,2,2,"mat-card",9),s.Cc()),2&t){const t=e.$implicit;s.kc(1),s.ad("ngIf",t.value)}}function NA(t,e){if(1&t&&(s.Bc(0),s.Dc(1,"mat-card",3),s.Dc(2,"h4",4),s.Bc(3),s.Hc(4,RA),s.Ac(),s.vd(5),s.td(6,FA,4,0,"span",2),s.Cc(),s.Dc(7,"div",5),s.Dc(8,"div",6),s.td(9,zA,2,1,"div",7),s.Vc(10,"keyvalue"),s.Cc(),s.Cc(),s.Cc(),s.Ac()),2&t){const t=s.Uc().$implicit,e=s.Uc();s.kc(5),s.xd("\xa0",t.key," "),s.kc(1),s.ad("ngIf",t.key===e.postsService.session_id),s.kc(3),s.ad("ngForOf",s.Wc(10,3,t.value))}}function BA(t,e){if(1&t&&(s.Dc(0,"div"),s.td(1,NA,11,5,"ng-container",2),s.Cc()),2&t){const t=e.$implicit,i=s.Uc();s.kc(1),s.ad("ngIf",i.keys(t.value).length>0)}}function VA(t,e){1&t&&(s.Dc(0,"div"),s.Dc(1,"h4",4),s.Hc(2,MA),s.Cc(),s.Cc())}RA=$localize`:Session ID␟a1ad8b1be9be43b5183bd2c3186d4e19496f2a0b␟98219539077594180:Session ID:`,TA=$localize`:Current session␟eb98135e35af26a9a326ee69bd8ff104d36dd8ec␟2634265024545519524:(current)`,MA=$localize`:No downloads label␟7117fc42f860e86d983bfccfcf2654e5750f3406␟6454341788755868274:No downloads available!`;let jA=(()=>{class t{constructor(t){this.postsService=t,this.downloads_check_interval=500,this.downloads={},this.keys=Object.keys,this.valid_sessions_length=0}ngOnInit(){this.getCurrentDownloads(),setInterval(()=>{this.getCurrentDownloads()},this.downloads_check_interval)}getCurrentDownloads(){this.postsService.getCurrentDownloads().subscribe(t=>{t.downloads&&this.assignNewValues(t.downloads)})}clearDownload(t,e){this.postsService.clearDownloads(!1,t,e).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}clearDownloads(t){this.postsService.clearDownloads(!1,t).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}clearAllDownloads(){this.postsService.clearDownloads(!0).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}assignNewValues(t){const e=Object.keys(t);for(let i=0;i0){t=!0;break}return t}}var e;return t.\u0275fac=function(e){return new(e||t)(s.yc(Kv))},t.\u0275cmp=s.sc({type:t,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.td(1,BA,2,1,"div",1),s.Vc(2,"keyvalue"),s.td(3,VA,3,0,"div",2),s.Cc()),2&t&&(s.kc(1),s.ad("ngForOf",s.Wc(2,2,e.downloads)),s.kc(2),s.ad("ngIf",e.downloads&&!e.downloadsValid()))},directives:[ye.s,ye.t,Ko,PA],pipes:[ye.l],styles:[""],data:{animation:[o("list",[m(":enter",[g("@items",(e=p(),{type:12,timings:100,animation:e}),{optional:!0})])]),o("items",[m(":enter",[d({transform:"scale(0.5)",opacity:0}),r("500ms cubic-bezier(.8,-0.6,0.2,1.5)",d({transform:"scale(1)",opacity:1}))]),m(":leave",[d({transform:"scale(1)",opacity:1,height:"*"}),r("1s cubic-bezier(.8,-0.6,0.2,1.5)",d({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),t})();const UA=[{path:"home",component:CS},{path:"player",component:EE},{path:"subscriptions",component:hA},{path:"subscription",component:DA},{path:"downloads",component:jA},{path:"",redirectTo:"/home",pathMatch:"full"}];let $A=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[jv.forRoot(UA,{useHash:!0})],jv]}),t})();var HA=i("2Yyj"),qA=i.n(HA);function GA({element:t}){return"video"===t.id?wS||xS:vS||kS}Object(ye.K)(qA.a,"es");let WA=(()=>{class t{}return t.\u0275mod=s.wc({type:t,bootstrap:[Bx]}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Kv],imports:[[ye.c,n.a,Ie,Mn,kp,yo,Ou,Up,vo,Jh,Gg,Jo,zg,gs,gr,dg,gu,sm,uh,Gd,tp,dp,Ro,Gn,Sm,yd,Eg,Sm,td,Hf,Gm,Tb,Nb,uE,rE,pE,$D,oD.forRoot({isVisible:GA}),jv,$A]]}),t})();s.od(CS,[ye.q,ye.r,ye.s,ye.t,ye.A,ye.w,ye.x,ye.y,ye.z,ye.u,ye.v,_p,wp,nn,Ha,ra,ha,As,Ys,Js,Ss,oa,da,Xs,Fs,Ls,ao,uo,po,fo,oo,co,$a,Va,Fa,_u,yu,yc,Mc,Cc,Sc,Dc,Ec,Ac,Au,wu,jp,Vp,ns,Zn,Wa,Qa,io,Xa,Ja,qg,Hg,Ko,Xo,Zo,Bo,Vo,jo,Uo,$o,qo,Go,Wo,Ho,Yo,Qo,Lg,ms,ps,dr,ur,ng,sg,ig,og,lg,ag,pu,qu,$u,Qu,Gu,Ln,Wu,Yu,Wn,nm,im,Iu,hh,Xd,Zd,th,eh,Jd,Hd,Bd,Vd,jd,$d,Ud,Ld,Zm,lp,cp,Ao,Po,qn,ym,mm,xm,cm,ad,pd,gd,fd,bd,Cg,kg,Yc,Jc,Qc,If,pf,yf,Bf,$f,mf,Hm,qm,Rb,Ib,Ab,xb,Sb,Cb,zb,cE,dE,hE,qD,YD,QD,KD,XD,ZD,JD,tE,eE,iE,sE,aE,oE,mE,UD,sD,Pv,Sv,Dv,Av,D_,Bx,_D,CS,EE,vD,tC,PA,hA,VE,DA,_A,QE,hx,sw,Dx,MS,xw,Vw,Tw,ID,jA],[ye.b,ye.G,ye.p,ye.k,ye.E,ye.g,ye.C,ye.F,ye.d,ye.f,ye.i,ye.j,ye.l,nE,kw])},xDdU:function(t,e,i){var n,s,a=i("4fRq"),o=i("I2ZF"),r=0,l=0;t.exports=function(t,e,i){var c=e&&i||0,d=e||[],h=(t=t||{}).node||n,u=void 0!==t.clockseq?t.clockseq:s;if(null==h||null==u){var m=a();null==h&&(h=n=[1|m[0],m[1],m[2],m[3],m[4],m[5]]),null==u&&(u=s=16383&(m[6]<<8|m[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),g=void 0!==t.nsecs?t.nsecs:l+1,f=p-r+(g-l)/1e4;if(f<0&&void 0===t.clockseq&&(u=u+1&16383),(f<0||p>r)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=p,l=g,s=u;var b=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;d[c++]=b>>>24&255,d[c++]=b>>>16&255,d[c++]=b>>>8&255,d[c++]=255&b;var _=p/4294967296*1e4&268435455;d[c++]=_>>>8&255,d[c++]=255&_,d[c++]=_>>>24&15|16,d[c++]=_>>>16&255,d[c++]=u>>>8|128,d[c++]=255&u;for(var y=0;y<6;++y)d[c+y]=h[y];return e||o(d)}},xk4V:function(t,e,i){var n=i("4fRq"),s=i("I2ZF");t.exports=function(t,e,i){var a=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var r=0;r<16;++r)e[a+r]=o[r];return e||s(o)}},zuWl:function(t,e,i){"use strict";!function(e){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},s={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function a(t){var e,a,o,r,l,c,d,h,u,m,p,g,f,b,_,y=1>>((3&e)<<3)&255;return s}}},"6BPK":function(t,e,i){var n,s;!function(a,o,r){"use strict";"undefined"!=typeof window&&i("PDX0")?void 0===(s="function"==typeof(n=r)?n.call(e,i,e,t):n)||(t.exports=s):t.exports?t.exports=r():o.exports?o.exports=r():o.Fingerprint2=r()}(0,this,(function(){"use strict";var t=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]+(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]+e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]+e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]+e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},e=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]*(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]*e[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=t[3]*e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]*e[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[2]*e[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[3]*e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},i=function(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:[t[1]<<(e-=32)|t[0]>>>32-e,t[0]<>>32-e]},n=function(t,e){return 0==(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=e(t,[4283543511,3981806797]),t=s(t,[0,t[0]>>>1]),t=e(t,[3301882366,444984403]),s(t,[0,t[0]>>>1])},o=function(o,r){for(var l=(o=o||"").length%16,c=o.length-l,d=[0,r=r||0],h=[0,r],u=[0,0],m=[0,0],p=[2277735313,289559509],g=[1291169091,658871167],f=0;f>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(h[0]>>>0).toString(16)).slice(-8)+("00000000"+(h[1]>>>0).toString(16)).slice(-8)},r={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},l=function(t,e){if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach)t.forEach(e);else if(t.length===+t.length)for(var i=0,n=t.length;ie.name?1:t.name=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0||e.indexOf("cros")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(i.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(i.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===t))return!0}return n.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t}())}},{key:"hasLiedBrowser",getData:function(t){t(function(){var t,e=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"==(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==i)return!0;var n,s=eval.toString().length;if(37===s&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===s&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===s&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(a){try{a.toSource(),n=!0}catch(o){n=!1}}return n&&"Firefox"!==t&&"Other"!==t}())}},{key:"touchSupport",getData:function(t){t(function(){var t,e=0;void 0!==navigator.maxTouchPoints?e=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(i){t=!1}return[e,t,"ontouchstart"in window]}())}},{key:"fonts",getData:function(t,e){var i=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];e.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(e.fonts.userDefinedFonts)).filter((function(t,e){return n.indexOf(t)===e}));var s=document.getElementsByTagName("body")[0],a=document.createElement("div"),o=document.createElement("div"),r={},l={},c=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.fontStyle="normal",t.style.fontWeight="normal",t.style.letterSpacing="normal",t.style.lineBreak="auto",t.style.lineHeight="normal",t.style.textTransform="none",t.style.textAlign="left",t.style.textDecoration="none",t.style.textShadow="none",t.style.whiteSpace="normal",t.style.wordBreak="normal",t.style.wordSpacing="normal",t.innerHTML="mmmmmmmmmmlli",t},d=function(t,e){var i=c();return i.style.fontFamily="'"+t+"',"+e,i},h=function(t){for(var e=!1,n=0;n=t.components.length)e(i.data);else{var o=t.components[n];if(t.excludes[o.key])s(!1);else{if(!a&&o.pauseBefore)return n-=1,void setTimeout((function(){s(!0)}),1);try{o.getData((function(t){i.addPreprocessedComponent(o.key,t),s(!1)}),t)}catch(r){i.addPreprocessedComponent(o.key,String(r)),s(!1)}}}};s(!1)},f.getPromise=function(t){return new Promise((function(e,i){f.get(t,e)}))},f.getV18=function(t,e){return null==e&&(e=t,t={}),f.get(t,(function(i){for(var n=[],s=0;s=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(t,a,o){var r=s.URL||s.webkitURL,l=document.createElement("a");l.download=a=a||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?n(l):i(l.href)?e(t,a,o):n(l,l.target="_blank")):(l.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(l.href)}),4e4),setTimeout((function(){n(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,a){if(s=s||t.name||"download","string"!=typeof t)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(["\ufeff",t],{type:t.type}):t}(t,a),s);else if(i(t))e(t,s,a);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){n(o)}))}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var o="application/octet-stream"===t.type,r=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&r)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},c.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?n.apply(e,[]):n)||(t.exports=s)},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},XypG:function(t,e){},ZAI4:function(t,e,i){"use strict";i.r(e),i.d(e,"isVisible",(function(){return cP})),i.d(e,"AppModule",(function(){return dP}));var n=i("jhN1"),s=i("fXoL");class a{}function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function r(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:3,steps:t,options:e}}function c(t,e=null){return{type:2,steps:t,options:e}}function d(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function u(t){return{type:5,steps:t}}function m(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function p(t=null){return{type:9,options:t}}function g(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function f(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function v(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(t){switch(t.length){case 0:return new b;case 1:return t[0];default:return new _(t)}}function w(t,e,i,n,s={},a={}){const o=[],r=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,d=n&&c||{};Object.keys(t).forEach(i=>{let n=i,r=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),r){case"!":r=s[i];break;case"*":r=a[i];break;default:r=e.normalizeStyleValue(i,n,r,o)}d[n]=r}),n||r.push(d),c=d,l=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return r}function x(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&k(i,"start",t)));break;case"done":t.onDone(()=>n(i&&k(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&k(i,"destroy",t)))}}function k(t,e,i){const n=i.totalTime,s=C(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),a=t._data;return null!=a&&(s._data=a),s}function C(t,e,i,n,s="",a=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:a,disabled:!!o}}function S(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function E(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let O=(t,e)=>!1,A=(t,e)=>!1,D=(t,e,i)=>[];const I=v();(I||"undefined"!=typeof Element)&&(O=(t,e)=>t.contains(e),A=(()=>{if(I||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):A}})(),D=(t,e,i)=>{let n=[];if(i)n.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&n.push(i)}return n});let T=null,P=!1;function F(t){T||(T=("undefined"!=typeof document?document.body:null)||{},P=!!T.style&&"WebkitAppearance"in T.style);let e=!0;return T.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in T.style,!e&&P)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in T.style),e}const R=A,M=O,z=D;function L(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let N=(()=>{class t{validateStyleProperty(t){return F(t)}matchesElement(t,e){return R(t,e)}containsElement(t,e){return M(t,e)}query(t,e,i){return z(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,a=[],o){return new b(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.NOOP=new N,t})();function V(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:j(parseFloat(e[1]),e[2])}function j(t,e){switch(e){case"s":return 1e3*t;default:return t}}function $(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,a="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=j(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=j(parseFloat(o),i[4]));const r=i[5];r&&(a=r)}else n=t;if(!i){let i=!1,a=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(a,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:a}}(t,e,i)}function U(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function W(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else U(t,i);return i}function G(t,e,i){return i?e+":"+i+";":""}function H(t){let e="";for(let i=0;i{const s=et(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),v()&&H(t))}function Y(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=et(e);t.style[i]=""}),v()&&H(t))}function K(t){return Array.isArray(t)?1==t.length?t[0]:c(t):t}const X=new RegExp("{{\\s*(.+?)\\s*}}","g");function J(t){let e=[];if("string"==typeof t){let i;for(;i=X.exec(t);)e.push(i[1]);X.lastIndex=0}return e}function Z(t,e,i){const n=t.toString(),s=n.replace(X,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function Q(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const tt=/-+([a-z0-9])/g;function et(t){return t.replace(tt,(...t)=>t[1].toUpperCase())}function it(t,e){return 0===t||0===e}function nt(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let a=e[0],o=[];if(n.forEach(t=>{a.hasOwnProperty(t)||o.push(t),a[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],a=n[2],o=n[3];e.push(ct(s,o)),"<"!=a[0]||"*"==s&&"*"==o||e.push(ct(o,s))}(t,i,e)):i.push(t),i}const rt=new Set(["true","1"]),lt=new Set(["false","0"]);function ct(t,e){const i=rt.has(t)||lt.has(t),n=rt.has(e)||lt.has(e);return(s,a)=>{let o="*"==t||t==s,r="*"==e||e==a;return!o&&i&&"boolean"==typeof s&&(o=s?rt.has(t):lt.has(t)),!r&&n&&"boolean"==typeof a&&(r=a?rt.has(e):lt.has(e)),o&&r}}const dt=new RegExp("s*:selfs*,?","g");function ht(t,e,i){return new ut(t).build(e,i)}class ut{constructor(t){this._driver=t}build(t,e){const i=new mt(e);return this._resetContextStyleTimingState(i),st(this,K(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,a.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:a,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,a=n||{};if(i.styles.forEach(t=>{if(pt(t)){const e=t;Object.keys(e).forEach(t=>{J(e[t]).forEach(t=>{a.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=Q(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=st(this,K(t.animation),e);return{type:1,matchers:ot(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:gt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>st(this,t,e)),options:gt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=st(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:gt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ft($(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ft(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||$(n,e),ft(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:d({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,a=!1;if(!s){a=!0;const t={};i.easing&&(t.easing=i.easing),s=d(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=a,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(pt(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const a=e.collectedStyles[e.currentQuerySelector],o=a[i];let r=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),r=!1),s=o.startTime),r&&(a[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=J(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let a=!1,o=!1,r=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(pt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(pt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),o=o||c<0||c>1,a=a||c0&&n{const a=d>0?n==h?1:d*n:s[n],o=a*p;e.currentTime=u+m.delay+o,m.duration=o,this._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:st(this,K(t.animation),e),options:gt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:gt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,a]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(dt,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,S(e.collectedStyles,e.currentQuerySelector,{});const o=st(this,K(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:o,originalSelector:t.selector,options:gt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:$(t.timings,e.errors,!0);return{type:12,animation:st(this,K(t.animation),e),timings:i,options:null}}}class mt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function pt(t){return!Array.isArray(t)&&"object"==typeof t}function gt(t){var e;return t?(t=U(t)).params&&(t.params=(e=t.params)?U(e):null):t={},t}function ft(t,e,i){return{duration:t,delay:e,easing:i}}function bt(t,e,i,n,s,a,o=null,r=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:a,totalTime:s+a,easing:o,subTimeline:r}}class _t{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const vt=new RegExp(":enter","g"),yt=new RegExp(":leave","g");function wt(t,e,i,n,s,a={},o={},r,l,c=[]){return(new xt).buildKeyframes(t,e,i,n,s,a,o,r,l,c)}class xt{buildKeyframes(t,e,i,n,s,a,o,r,l,c=[]){l=l||new _t;const d=new Ct(t,e,l,n,s,c,[]);d.options=r,d.currentTimeline.setStyles([a],null,d.errors,r),st(this,i,d);const h=d.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,d.errors,r)}return h.length?h.map(t=>t.buildKeyframes()):[bt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,n,n.options);s!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?V(i.duration):null,a=null!=i.delay?V(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,a);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),st(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=kt);const t=V(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>st(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?V(t.options.delay):0;t.steps.forEach(a=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),st(this,a,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return $(e.params?Z(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(t=>{a.forwardTime((t.offset||0)*s),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?V(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kt);let a=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let r=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(r=o.currentTimeline),st(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),r&&(e.currentTimeline.mergeTimelineCollectedStyles(r),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,a=Math.abs(s.duration),o=a*(e.currentQueryTotal-1);let r=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":r=o-r;break;case"full":r=i.currentStaggerTime}const l=e.currentTimeline;r&&l.delayNextStep(r);const c=l.currentTime;st(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const kt={};class Ct{constructor(t,e,i,n,s,a,o,r){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=r||new St(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=V(i.duration)),null!=i.delay&&(n.delay=V(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Z(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Ct(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=kt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Et(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,a){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(vt,"."+this._enterClassName)).replace(yt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||a.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class St{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new St(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},a=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):W(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(t=>{const e=Z(a[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,a)=>{const o=W(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=a/this.duration),n.push(o)});const s=t.size?Q(t.values()):[],a=e.size?Q(e.values()):[];if(i){const t=n[0],e=U(t);t.offset=0,e.offset=1,n=[t,e]}return bt(this.element,n,s,a,this.duration,this.startTime,this.easing,!1)}}class Et extends St{constructor(t,e,i,n,s,a,o=!1){super(t,e,a.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],a=i+e,o=e/a,r=W(t[0],!1);r.offset=0,s.push(r);const l=W(t[0],!1);l.offset=Ot(o),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=W(t[n],!1);o.offset=Ot((e+o.offset*i)/a),s.push(o)}i=a,e=0,n="",t=s}return bt(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Ot(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class At{}class Dt extends At{normalizePropertyName(t,e){return et(t)}normalizeStyleValue(t,e,i,n){let s="";const a=i.toString().trim();if(It[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return a+s}}const It=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Tt(t,e,i,n,s,a,o,r,l,c,d,h,u){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:a,toState:n,toStyles:o,timelines:r,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:u}}const Pt={};class Ft{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],a=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):a}build(t,e,i,n,s,a,o,r,l,c){const d=[],h=this.ast.options&&this.ast.options.params||Pt,u=this.buildStyles(i,o&&o.params||Pt,d),m=r&&r.params||Pt,p=this.buildStyles(n,m,d),g=new Set,f=new Map,b=new Map,_="void"===n,v={params:Object.assign(Object.assign({},h),m)},y=c?[]:wt(t,e,this.ast.animation,s,a,u,p,v,l,d);let w=0;if(y.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),d.length)return Tt(e,this._triggerName,i,n,_,u,p,[],[],f,b,w,d);y.forEach(t=>{const i=t.element,n=S(f,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=S(b,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const x=Q(g.values());return Tt(e,this._triggerName,i,n,_,u,p,y,x,f,b,w)}}class Rt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=U(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let a=s[t];a.length>1&&(a=Z(a,n,e)),i[t]=a})}}),i}}class Mt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Rt(t.style,t.options&&t.options.params||{})}),zt(this.states,"true","1"),zt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Ft(t,e,this.states))}),this.fallbackTransition=new Ft(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function zt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Lt=new _t;class Nt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=ht(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=w(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let a;const o=new Map;if(s?(a=wt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Lt,n),a.forEach(t=>{const e=S(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),a=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const r=y(a.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=r,r.onDestroy(()=>this.destroy(t)),this.players.push(r),r}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=C(e,"","","");return x(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Bt=[],Vt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class $t{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=U(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const Ut=new $t("void");class Wt{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const a=S(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};a.push(o);const r=S(this._engine.statesByElement,t,{});return r.hasOwnProperty(e)||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),r[e]=Ut),()=>{this._engine.afterFlush(()=>{const t=a.indexOf(o);t>=0&&a.splice(t,1),this._triggers[e]||delete r[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),a=new Ht(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let r=o[e];const l=new $t(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&r&&l.absorbOptions(r.options),o[e]=l,r||(r=Ut),"void"!==l.value&&r.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{Y(t,i),q(t,n)})}return}const c=S(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let d=s.matchTransition(r.value,l.value,t,l.params),h=!1;if(!d){if(!n)return;d=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:r,toState:l,player:a,isFallbackTransition:h}),h||(Jt(t,"ng-animate-queued"),a.onStart(()=>{Zt(t,"ng-animate-queued")})),a.onDone(()=>{let e=this.players.indexOf(a);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(a);t>=0&&i.splice(t,1)}}),this.players.push(a),c.push(a),a}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const a=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&a.push(i)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&y(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,a=this._engine.statesByElement.get(t)[n]||Ut,o=new $t("void"),r=new Ht(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:a,toState:o,player:r,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Vt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,a=this._elementListeners.get(s);a&&a.forEach(e=>{if(e.name==i.triggerName){const n=C(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,x(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Gt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Wt(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zt(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(qt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return qt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return y(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Vt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?y(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new _t,n=[],s=new Map,a=[],o=new Map,r=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+p++;m.set(e,i),t.forEach(t=>Jt(t,i))});const g=[],f=new Set,b=new Set;for(let y=0;yf.add(t)):b.add(t))}const _=new Map,v=Xt(h,Array.from(f));v.forEach((t,e)=>{const i="ng-leave"+p++;_.set(e,i),t.forEach(t=>Jt(t,i))}),t.push(()=>{u.forEach((t,e)=>{const i=m.get(e);t.forEach(t=>Zt(t,i))}),v.forEach((t,e)=>{const i=_.get(e);t.forEach(t=>Zt(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],x=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!d||!this.driver.containsElement(d,s),h=_.get(s),u=m.get(s),p=this._buildInstruction(t,i,u,h,c);if(!p.errors||!p.errors.length)return c||t.isFallbackTransition?(e.onStart(()=>Y(s,p.fromStyles)),e.onDestroy(()=>q(s,p.toStyles)),void n.push(e)):(p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,p.timelines),a.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>S(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=r.get(e);t||r.set(e,t=new Set),i.forEach(e=>t.add(e))}}),void p.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=l.get(e);n||l.set(e,n=new Set),i.forEach(t=>n.add(t))}));x.push(p)});if(x.length){const t=[];x.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const k=new Map,C=new Map;a.forEach(t=>{const e=t.element;i.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{S(k,e,[]).push(t),t.destroy()})});const E=g.filter(t=>te(t,r,l)),O=new Map;Kt(O,this.driver,b,l,"*").forEach(t=>{te(t,r,l)&&E.push(t)});const A=new Map;u.forEach((t,e)=>{Kt(A,this.driver,new Set(t),r,"!")}),E.forEach(t=>{const e=O.get(t),i=A.get(t);O.set(t,Object.assign(Object.assign({},e),i))});const D=[],I=[],T={};a.forEach(t=>{const{element:e,player:a,instruction:o}=t;if(i.has(e)){if(c.has(e))return a.onDestroy(()=>q(e,o.toStyles)),a.disabled=!0,a.overrideTotalTime(o.totalTime),void n.push(a);let t=T;if(C.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=C.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>C.set(e,t))}const i=this._buildAnimation(a.namespaceId,o,k,s,A,O);if(a.setRealPlayer(i),t===T)D.push(a);else{const e=this.playersByElement.get(t);e&&e.length&&(a.parentPlayer=y(e)),n.push(a)}}else Y(e,o.fromStyles),a.onDestroy(()=>q(e,o.toStyles)),I.push(a),c.has(e)&&n.push(a)}),I.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=y(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let y=0;y!t.destroyed);n.length?Qt(this,t,n):this.processLeaveNode(t)}return g.length=0,D.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),D}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let a=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(a=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&a.push(e)})}}return(i||n)&&(a=a.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),a}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,r=t!==n,l=S(i,t,[]);this._getPreviousPlayers(t,r,s,a,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Y(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const o=e.triggerName,r=e.element,l=[],c=new Set,d=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const u=h.__ng_removed;if(u&&u.removedBeforeQueried)return new b(e.duration,e.delay);const m=h!==r,p=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),f=a.get(h),v=w(0,this._normalizer,0,e.keyframes,g,f),y=this._buildPlayer(e,v,p);if(e.subTimeline&&n&&d.add(h),m){const e=new Ht(t,o,h);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{S(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Jt(t,"ng-animating"));const u=y(h);return u.onDestroy(()=>{c.forEach(t=>Zt(t,"ng-animating")),q(r,e.toStyles)}),d.forEach(t=>{S(n,t,[]).push(u)}),u}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new b(t.duration,t.delay)}}class Ht{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new b,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>x(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){S(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function qt(t){return t&&1===t.nodeType}function Yt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Kt(t,e,i,n,s){const a=[];i.forEach(t=>a.push(Yt(t)));const o=[];n.forEach((i,n)=>{const a={};i.forEach(t=>{const i=a[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=jt,o.push(n))}),t.set(n,a)});let r=0;return i.forEach(t=>Yt(t,a[r++])),o}function Xt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let a=s.get(e);if(a)return a;const o=e.parentNode;return a=i.has(o)?o:n.has(o)?1:t(o),s.set(e,a),a}(t);1!==e&&i.get(e).push(t)}),i}function Jt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Zt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Qt(t,e,i){y(i).onDone(()=>t.processLeaveNode(e))}function te(t,e,i){const n=i.get(t);if(!n)return!1;let s=e.get(t);return s?n.forEach(t=>s.add(t)):e.set(t,n),i.delete(t),!0}class ee{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Gt(t,e,i),this._timelineEngine=new Nt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const a=t+"-"+n;let o=this._triggerCache[a];if(!o){const t=[],e=ht(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Mt(t,e)}(n,e),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=E(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=E(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ie(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=se(e[0]),e.length>1&&(n=se(e[e.length-1]))):e&&(i=se(e)),i||n?new ne(t,i,n):null}let ne=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Y(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function se(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ue(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ue(t,"").split(","),n=ce(i,e);n>=0&&(i.splice(n,1),he(t,"",i.join(",")))}(this._element,this._name))}}function re(t,e,i){he(t,"PlayState",i,le(t,e))}function le(t,e){const i=ue(t,"");return i.indexOf(",")>0?ce(i.split(","),e):ce([i],e)}function ce(t,e){for(let i=0;i=0)return i;return-1}function de(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function he(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ue(t,e){return t.style["animation"+e]}class me{constructor(t,e,i,n,s,a,o,r){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:at(this.element,i))})}this.currentSnapshot=t}}class pe extends b{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=L(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ge{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return F(t)}matchesElement(t,e){return R(t,e)}containsElement(t,e){return M(t,e)}query(t,e,i){return z(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>L(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const a=document.createElement("style");return a.innerHTML=n,a}animate(t,e,i,n,s,a=[],o){o&&this._notifyFaultyScrubber();const r=a.filter(t=>t instanceof me),l={};it(i,n)&&r.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=nt(t,e,l));if(0==i)return new pe(t,c);const d=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(t,d,e);document.querySelector("head").appendChild(h);const u=ie(t,e),m=new me(t,e,d,i,n,s,c,u);return m.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),m}_notifyFaultyScrubber(){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)}}class fe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,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}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:at(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class be{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_e().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return F(t)}matchesElement(t,e){return R(t,e)}containsElement(t,e){return M(t,e)}query(t,e,i){return z(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,a=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,a);const r={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(r.easing=s);const l={},c=a.filter(t=>t instanceof fe);it(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const d=ie(t,e=nt(t,e=e.map(t=>W(t,!1)),l));return new fe(t,e,r,d)}}function _e(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=i("ofXK");let ye=(()=>{class t extends a{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.Z.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?c(t):t;return ke(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(s.N),s.Oc(ve.e))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();class we extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new xe(this._id,t,e||{},this._renderer)}}class xe{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ke(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ke(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let Ce=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Se("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const a=e=>{Array.isArray(e)?e.forEach(a):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(a),new Ee(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(s.N),s.Oc(ee),s.Oc(s.G))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();class Se{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ee extends Se{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),a="";return"@"!=s.charAt(0)&&([s,a]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,a,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Oe=(()=>{class t extends ee{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(ve.e),s.Oc(B),s.Oc(At))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();const Ae=new s.w("AnimationModuleType"),De=[{provide:B,useFactory:function(){return"function"==typeof _e()?new be:new ge}},{provide:Ae,useValue:"BrowserAnimations"},{provide:a,useClass:ye},{provide:At,useFactory:function(){return new Dt}},{provide:ee,useClass:Oe},{provide:s.N,useFactory:function(t,e,i){return new Ce(t,e,i)},deps:[n.d,ee,s.G]}];let Ie=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:De,imports:[n.a]}),t})();var Te=i("XNiG"),Pe=i("quSY"),Fe=i("z+Ro"),Re=i("yCtX"),Me=i("jZKg");function ze(...t){let e=t[t.length-1];return Object(Fe.a)(e)?(t.pop(),Object(Me.a)(t,e)):Object(Re.a)(t)}function Le(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Ne=i("7o/Q"),Be=i("KqfI"),Ve=i("n6bG");function je(t,e,i){return function(n){return n.lift(new $e(t,e,i))}}class $e{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Ue(t,this.nextOrObserver,this.error,this.complete))}}class Ue extends Ne.a{constructor(t,e,i,n){super(t),this._tapNext=Be.a,this._tapError=Be.a,this._tapComplete=Be.a,this._tapError=i||Be.a,this._tapComplete=n||Be.a,Object(Ve.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Be.a,this._tapError=e.error||Be.a,this._tapComplete=e.complete||Be.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class We extends Pe.a{constructor(t,e){super()}schedule(t,e=0){return this}}class Ge extends We{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let He=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class qe extends He{constructor(t,e=He.now){super(t,()=>qe.delegate&&qe.delegate!==this?qe.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return qe.delegate&&qe.delegate!==this?qe.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Ye=new qe(Ge);function Ke(t,e=Ye){return i=>i.lift(new Xe(t,e))}class Xe{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Je(t,this.dueTime,this.scheduler))}}class Je extends Ne.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ze,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Ze(t){t.debouncedNext()}function Qe(t,e){return function(i){return i.lift(new ti(t,e))}}class ti{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new ei(t,this.predicate,this.thisArg))}}class ei extends Ne.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}var ii=i("lJxs");const ni=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();var si=i("HDdC");const ai=new si.a(t=>t.complete());function oi(t){return t?function(t){return new si.a(e=>t.schedule(()=>e.complete()))}(t):ai}function ri(t){return e=>0===t?oi():e.lift(new li(t))}class li{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new ci(t,this.total))}}class ci extends Ne.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function di(t){return null!=t&&"false"!==`${t}`}function hi(t,e=0){return ui(t)?Number(t):e}function ui(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function mi(t){return Array.isArray(t)?t:[t]}function pi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function gi(t){return t instanceof s.q?t.nativeElement:t}let fi;try{fi="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(hP){fi=!1}let bi,_i=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(ve.I)(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&&!fi)&&"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)(s.Oc(s.J,8))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(s.J,8))},token:t,providedIn:"root"}),t})(),vi=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})();const yi=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function wi(){if(bi)return bi;if("object"!=typeof document||!document)return bi=new Set(yi),bi;let t=document.createElement("input");return bi=new Set(yi.filter(e=>(t.setAttribute("type",e),t.type===e))),bi}let xi,ki,Ci;function Si(t){return function(){if(null==xi&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xi=!0}))}finally{xi=xi||!1}return xi}()?t:!!t.capture}function Ei(){if("object"!=typeof document||!document)return 0;if(null==ki){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),ki=0,0===t.scrollLeft&&(t.scrollLeft=1,ki=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return ki}function Oi(t){if(function(){if(null==Ci){const t="undefined"!=typeof document?document.head:null;Ci=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ci}()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}let Ai=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.vc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Di=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=gi(t);return new si.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new Te.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Ai))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(Ai))},token:t,providedIn:"root"}),t})(),Ii=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.t,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=hi(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Ke(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Di),s.zc(s.q),s.zc(s.G))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Ti=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[Ai]}),t})();function Pi(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Fi=0;const Ri=new Map;let Mi=null,zi=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Ri.set(e,{messageElement:e,referenceCount:0})):Ri.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Ri.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Mi&&0===Mi.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Ri.get(e);!function(t,e,i){const n=Pi(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=Ri.get(e);i.referenceCount--,function(t,e,i){const n=Pi(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=Pi(t,"aria-describedby"),n=Ri.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(ve.e))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(ve.e))},token:t,providedIn:"root"}),t})();class Li{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Te.a,this._typeaheadSubscription=Pe.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Te.a,this.change=new Te.a,t instanceof s.L&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"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(je(t=>this._pressedLetters.push(t)),Ke(t),Qe(()=>this._pressedLetters.length>0),Object(ii.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){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;default:return void((i||Le(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.L?this._items.toArray():this._items}}class Ni extends Li{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Bi extends Li{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Vi=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(hP){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===$i(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=$i(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===n)return!1;if("audio"===n){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===n){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==n||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let 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")||ji(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(_i))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(_i))},token:t,providedIn:"root"}),t})();function ji(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function $i(t){if(!ji(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Ui{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const 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}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(t)}}let Wi=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Ui(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Vi),s.Oc(s.G),s.Oc(ve.e))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(Vi),Object(s.Oc)(s.G),Object(s.Oc)(ve.e))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Gi=new s.w("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Hi=new s.w("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let qi=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return ze(null);const i=gi(t);if(this._elementInfo.has(i)){let t=this._elementInfo.get(i);return t.checkChildren=e,t.subject.asObservable()}let n={unlisten:()=>{},checkChildren:e,subject:new Te.a};this._elementInfo.set(i,n),this._incrementMonitoredElementCount();let s=t=>this._onFocus(t,i),a=t=>this._onBlur(t,i);return this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",s,!0),i.addEventListener("blur",a,!0)}),n.unlisten=()=>{i.removeEventListener("focus",s,!0),i.removeEventListener("blur",a,!0)},n.subject.asObservable()}stopMonitoring(t){const e=gi(t),i=this._elementInfo.get(e);i&&(i.unlisten(),i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,i){const n=gi(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(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))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==t.target)return;let n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Ki),t.addEventListener("mousedown",this._documentMousedownListener,Ki),t.addEventListener("touchstart",this._documentTouchstartListener,Ki),e.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Ki),t.removeEventListener("mousedown",this._documentMousedownListener,Ki),t.removeEventListener("touchstart",this._documentTouchstartListener,Ki),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(s.G),s.Oc(_i),s.Oc(ve.e,8),s.Oc(Yi,8))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(s.G),Object(s.Oc)(_i),Object(s.Oc)(ve.e,8),Object(s.Oc)(Yi,8))},token:t,providedIn:"root"}),t})(),Ji=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.t,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(Xi))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();function Zi(t){return 0===t.buttons}let Qi=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const 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");const 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"))}}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(_i),s.Oc(ve.e))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(_i),Object(s.Oc)(ve.e))},token:t,providedIn:"root"}),t})(),tn=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)(s.Oc(Qi))},imports:[[vi,Ti]]}),t})();const en=new s.w("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.eb)(ve.e)}});let nn=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.t,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(en,8))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(en,8))},token:t,providedIn:"root"}),t})(),sn=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new s.t}get dir(){return this._dir}set dir(t){const e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.mc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[s.kc([{provide:nn,useExisting:t}])]}),t})(),an=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})();const on=new s.X("9.2.0");var rn=i("bHdf");function ln(){return Object(rn.a)(1)}function cn(...t){return ln()(ze(...t))}function dn(...t){const e=t[t.length-1];return Object(Fe.a)(e)?(t.pop(),i=>cn(t,i,e)):e=>cn(t,e)}const hn=["*",[["mat-option"],["ng-container"]]],un=["*","mat-option, ng-container"];function mn(t,e){if(1&t&&s.Ac(0,"mat-pseudo-checkbox",3),2&t){const t=s.Wc();s.cd("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const pn=["*"];let gn=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),fn=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const bn=new s.X("9.2.0"),_n=new s.w("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let vn=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(s.fb)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);const n=getComputedStyle(i);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&bn.full!==on.full&&console.warn("The Angular Material version ("+bn.full+") does not match the Angular CDK version ("+on.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)(s.Oc(Qi),s.Oc(_n,8),s.Oc(ve.e,8))},imports:[[an],an]}),t})();function yn(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}}}function wn(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function xn(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}}}function kn(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function Cn(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new Te.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function Sn(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new si.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const En=new s.w("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(s.eb)(s.A)}});class On{constructor(){this._localeChanges=new Te.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const An=new s.w("mat-date-formats");let Dn;try{Dn="undefined"!=typeof Intl}catch(hP){Dn=!1}const In={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"]},Tn=Rn(31,t=>String(t+1)),Pn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Fn=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Rn(t,e){const i=Array(t);for(let n=0;n{class t extends On{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(Dn){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Rn(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return In[t]}getDateNames(){if(Dn){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Rn(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Tn}getDayOfWeekNames(t){if(Dn){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Rn(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Pn[t]}getYearName(t){if(Dn){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Dn){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"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Fn.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(En,8),s.Oc(_i))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),zn=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[{provide:On,useClass:Mn}],imports:[[vi]]}),t})();const Ln={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Nn=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[{provide:An,useValue:Ln}],imports:[[zn]]}),t})(),Bn=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.vc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function jn(t,e,i="mat"){t.changes.pipe(dn(t)).subscribe(({length:t})=>{$n(e,`${i}-2-line`,!1),$n(e,`${i}-3-line`,!1),$n(e,`${i}-multi-line`,!1),2===t||3===t?$n(e,`${i}-${t}-line`,!0):t>3&&$n(e,`${i}-multi-line`,!0)})}function $n(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Un=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();class Wn{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Gn={enterDuration:450,exitDuration:400},Hn=Si({passive:!0});class qn{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=Zi(t),i=this._lastTouchStartEvent&&Date.now(){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))},n.isBrowser&&(this._containerElement=gi(i),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Gn),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const a=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,r=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${o-a}px`,c.style.top=`${r-a}px`,c.style.height=`${2*a}px`,c.style.width=`${2*a}px`,null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const d=new Wn(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const t=d===this._mostRecentTransientRipple;d.state=1,i.persistent||t&&this._isPointerDown||d.fadeOut()},l),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Gn),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=gi(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,i)=>{e.addEventListener(i,t,Hn)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,Hn)})}}const Yn=new s.w("mat-ripple-global-options");let Kn=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new qn(this,e,t,i),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.G),s.zc(_i),s.zc(Yn,8),s.zc(Ae,8))},t.\u0275dir=s.uc({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.pc("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})(),Xn=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vn,vi],vn]}),t})(),Jn=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ae,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.pc("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})(),Zn=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})();class Qn{}const ts=yn(Qn);let es=0,is=(()=>{class t extends ts{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${es++}`}}return t.\u0275fac=function(e){return ns(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(s.mc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),s.pc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[s.ic],ngContentSelectors:un,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(s.bd(hn),s.Fc(0,"label",0),s.xd(1),s.ad(2),s.Ec(),s.ad(3,1)),2&t&&(s.cd("id",e._labelId),s.lc(1),s.zd("",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})();const ns=s.Hc(is);let ss=0;class as{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const os=new s.w("MAT_OPTION_PARENT_COMPONENT");let rs=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${ss++}`,this.onSelectionChange=new s.t,this._stateChanges=new Te.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=di(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||Le(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new as(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(os,8),s.zc(is,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(s.Ic("id",e.id),s.mc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.pc("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:pn,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&&(s.bd(),s.vd(0,mn,1,2,"mat-pseudo-checkbox",0),s.Fc(1,"span",1),s.ad(2),s.Ec(),s.Ac(3,"div",2)),2&t&&(s.cd("ngIf",e.multiple),s.lc(3),s.cd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ve.t,Kn,Jn],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 ls(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),a=0;for(let e=0;ei+n?Math.max(0,s-n+e):i}let ds=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[Xn,ve.c,Zn]]}),t})();const hs=new s.w("mat-label-global-options"),us=["mat-button",""],ms=["*"],ps=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class gs{constructor(t){this._elementRef=t}}const fs=wn(yn(xn(gs)));let bs=(()=>{class t extends fs{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of ps)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(Xi),s.zc(Ae,8))},t.\u0275cmp=s.tc({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var i;1&t&&s.Bd(Kn,!0),2&t&&s.id(i=s.Tc())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(s.mc("disabled",e.disabled||null),s.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.ic],attrs:us,ngContentSelectors:ms,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.bd(),s.Fc(0,"span",0),s.ad(1),s.Ec(),s.Ac(2,"div",1),s.Ac(3,"div",2)),2&t&&(s.lc(2),s.pc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.cd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Kn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .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[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-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[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[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[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"],encapsulation:2,changeDetection:0}),t})(),_s=(()=>{class t extends bs{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Xi),s.zc(s.q),s.zc(Ae,8))},t.\u0275cmp=s.tc({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&s.Sc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(s.mc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),s.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[s.ic],attrs:us,ngContentSelectors:ms,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.bd(),s.Fc(0,"span",0),s.ad(1),s.Ec(),s.Ac(2,"div",1),s.Ac(3,"div",2)),2&t&&(s.lc(2),s.pc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.cd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Kn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .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[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-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[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[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[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"],encapsulation:2,changeDetection:0}),t})(),vs=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[Xn,vn],vn]}),t})();function ys(t){return t&&"function"==typeof t.connect}class ws{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Te.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let xs=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.vc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();var ks=i("DH7j"),Cs=i("XoHu"),Ss=i("Cfvw");function Es(...t){if(1===t.length){const e=t[0];if(Object(ks.a)(e))return Os(e,null);if(Object(Cs.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Os(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Os(t=1===t.length&&Object(ks.a)(t[0])?t[0]:t,null).pipe(Object(ii.a)(t=>e(...t)))}return Os(t,null)}function Os(t,e){return new si.a(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let a=0,o=0;for(let r=0;r{c||(c=!0,o++),s[r]=t},error:t=>i.error(t),complete:()=>{a++,a!==n&&c||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}const As=new s.w("NgValueAccessor"),Ds={provide:As,useExisting:Object(s.db)(()=>Is),multi:!0};let Is=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.M),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.Sc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[s.kc([Ds])]}),t})();const Ts={provide:As,useExisting:Object(s.db)(()=>Fs),multi:!0},Ps=new s.w("CompositionEventMode");let Fs=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(ve.N)()?Object(ve.N)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.M),s.zc(s.q),s.zc(Ps,8))},t.\u0275dir=s.uc({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&s.Sc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[s.kc([Ts])]}),t})(),Rs=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t}),t})(),Ms=(()=>{class t extends Rs{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return zs(e||t)},t.\u0275dir=s.uc({type:t,features:[s.ic]}),t})();const zs=s.Hc(Ms);function Ls(){throw new Error("unimplemented")}class Ns extends Rs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Ls()}get asyncValidator(){return Ls()}}class Bs{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let Vs=(()=>{class t extends Bs{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ns,2))},t.\u0275dir=s.uc({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.pc("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:[s.ic]}),t})(),js=(()=>{class t extends Bs{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ms,2))},t.\u0275dir=s.uc({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.pc("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:[s.ic]}),t})();function $s(t){return null==t||0===t.length}const Us=new s.w("NgValidators"),Ws=new s.w("NgAsyncValidators"),Gs=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Hs{static min(t){return e=>{if($s(e.value)||$s(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if($s(e.value)||$s(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return $s(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return $s(t.value)||Gs.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if($s(e.value))return null;const i=e.value?e.value.length:0;return i{const i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}static pattern(t){if(!t)return Hs.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if($s(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(qs);return 0==e.length?null:function(t){return Ks(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(qs);return 0==e.length?null:function(t){return Es(function(t,e){return e.map(e=>e(t))}(t,e).map(Ys)).pipe(Object(ii.a)(Ks))}}}function qs(t){return null!=t}function Ys(t){const e=Object(s.Ob)(t)?Object(Ss.a)(t):t;if(!Object(s.Nb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Ks(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Xs(t){return t.validate?e=>t.validate(e):t}function Js(t){return t.validate?e=>t.validate(e):t}const Zs={provide:As,useExisting:Object(s.db)(()=>Qs),multi:!0};let Qs=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.M),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.Sc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.kc([Zs])]}),t})();const ta={provide:As,useExisting:Object(s.db)(()=>ia),multi:!0};let ea=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),ia=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Ns),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){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 ')}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.M),s.zc(s.q),s.zc(ea),s.zc(s.x))},t.\u0275dir=s.uc({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&s.Sc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s.kc([ta])]}),t})();const na={provide:As,useExisting:Object(s.db)(()=>sa),multi:!0};let sa=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.M),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&s.Sc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.kc([na])]}),t})();const aa='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',oa='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ra='\n
\n
\n \n
\n
';class la{static controlParentException(){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 ${aa}`)}static ngModelGroupException(){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 ${oa}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ra}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${aa}`)}static groupParentException(){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 ${oa}`)}static arrayParentException(){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 \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 });')}static disabledAttrWarning(){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 ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${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 Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const ca={provide:As,useExisting:Object(s.db)(()=>ha),multi:!0};function da(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ha=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=s.Pb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=da(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.M),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.Sc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[s.kc([ca])]}),t})(),ua=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(da(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.M),s.zc(ha,9))},t.\u0275dir=s.uc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const ma={provide:As,useExisting:Object(s.db)(()=>ga),multi:!0};function pa(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ga=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=s.Pb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(pa(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(pa(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.M),s.zc(ga,9))},t.\u0275dir=s.uc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function ba(t,e){return[...e.path,t]}function _a(t,e){t||xa(e,"Cannot find control with"),e.valueAccessor||xa(e,"No value accessor for form control with"),t.validator=Hs.compose([t.validator,e.validator]),t.asyncValidator=Hs.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&va(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&va(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function va(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ya(t,e){null==t&&xa(e,"Cannot find control with"),t.validator=Hs.compose([t.validator,e.validator]),t.asyncValidator=Hs.composeAsync([t.asyncValidator,e.asyncValidator])}function wa(t){return xa(t,"There is no FormControl instance attached to form control element with")}function xa(t,e){let i;throw i=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${i}`)}function ka(t){return null!=t?Hs.compose(t.map(Xs)):null}function Ca(t){return null!=t?Hs.composeAsync(t.map(Js)):null}function Sa(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(s.Pb)(e,i.currentValue)}const Ea=[Is,sa,Qs,ha,ga,ia];function Oa(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Aa(t,e){if(!e)return null;Array.isArray(e)||xa(t,"Value accessor was not provided as an array for form control with");let i=void 0,n=void 0,s=void 0;return e.forEach(e=>{var a;e.constructor===Fs?i=e:(a=e,Ea.some(t=>a.constructor===t)?(n&&xa(t,"More than one built-in value accessor matches form control with"),n=e):(s&&xa(t,"More than one custom value accessor matches form control with"),s=e))}),s||n||i||(xa(t,"No valid value accessor for form control with"),null)}function Da(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function Ia(t,e,i,n){Object(s.fb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(la.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Ta(t){const e=Fa(t)?t.validators:t;return Array.isArray(e)?ka(e):e||null}function Pa(t,e){const i=Fa(e)?e.asyncValidators:t;return Array.isArray(i)?Ca(i):i||null}function Fa(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ra{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Ta(t)}setAsyncValidators(t){this.asyncValidator=Pa(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(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(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(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(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){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)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=Ys(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof za?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof La&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.t,this.statusChanges=new s.t}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Fa(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Ma extends Ra{constructor(t=null,e,i){super(Ta(e),Pa(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){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}}class za extends Ra{constructor(t,e,i){super(Ta(e),Pa(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Ma?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((i,n)=>{e=e||this.contains(n)&&t(i)}),e}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class La extends Ra{constructor(t,e,i){super(Ta(e),Pa(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Ma?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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 ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Na={provide:Ms,useExisting:Object(s.db)(()=>Va)},Ba=(()=>Promise.resolve(null))();let Va=(()=>{class t extends Ms{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.t,this.form=new za({},ka(t),Ca(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ba.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),_a(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ba.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Da(this._directives,t)})}addFormGroup(t){Ba.then(()=>{const e=this._findContainer(t.path),i=new za({});ya(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ba.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ba.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Oa(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Us,10),s.zc(Ws,10))},t.\u0275dir=s.uc({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.Sc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.kc([Na]),s.ic]}),t})(),ja=(()=>{class t extends Ms{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._validators)}get asyncValidator(){return Ca(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return $a(e||t)},t.\u0275dir=s.uc({type:t,features:[s.ic]}),t})();const $a=s.Hc(ja);class Ua{static modelParentException(){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 ${aa}\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 \n
\n \n \n
\n `)}static formGroupNameException(){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 ${oa}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ra}`)}static missingNameException(){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: ')}static modelGroupParentException(){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 ${oa}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ra}`)}}const Wa={provide:Ms,useExisting:Object(s.db)(()=>Ga)};let Ga=(()=>{class t extends ja{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof Va||Ua.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ms,5),s.zc(Us,10),s.zc(Ws,10))},t.\u0275dir=s.uc({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[s.kc([Wa]),s.ic]}),t})();const Ha={provide:Ns,useExisting:Object(s.db)(()=>Ya)},qa=(()=>Promise.resolve(null))();let Ya=(()=>{class t extends Ns{constructor(t,e,i,n){super(),this.control=new Ma,this._registered=!1,this.update=new s.t,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=Aa(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Sa(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ba(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){_a(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Ga)&&this._parent instanceof ja?Ua.formGroupNameException():this._parent instanceof Ga||this._parent instanceof Va||Ua.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ua.missingNameException()}_updateValue(t){qa.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;qa.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ms,9),s.zc(Us,10),s.zc(Ws,10),s.zc(As,10))},t.\u0275dir=s.uc({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:[s.kc([Ha]),s.ic,s.jc]}),t})(),Ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Xa=new s.w("NgModelWithFormControlWarning"),Ja={provide:Ns,useExisting:Object(s.db)(()=>Za)};let Za=(()=>{class t extends Ns{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.t,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=Aa(this,i)}set isDisabled(t){la.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(_a(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Sa(e,this.viewModel)&&(Ia("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Us,10),s.zc(Ws,10),s.zc(As,10),s.zc(Xa,8))},t.\u0275dir=s.uc({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s.kc([Ja]),s.ic,s.jc]}),t._ngModelWarningSentOnce=!1,t})();const Qa={provide:Ms,useExisting:Object(s.db)(()=>to)};let to=(()=>{class t extends Ms{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new s.t}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return _a(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Da(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ya(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);ya(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Oa(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>wa(e)),e.valueAccessor.registerOnTouched(()=>wa(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&_a(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=ka(this._validators);this.form.validator=Hs.compose([this.form.validator,t]);const e=Ca(this._asyncValidators);this.form.asyncValidator=Hs.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||la.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Us,10),s.zc(Ws,10))},t.\u0275dir=s.uc({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.Sc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.kc([Qa]),s.ic,s.jc]}),t})();const eo={provide:Ms,useExisting:Object(s.db)(()=>io)};let io=(()=>{class t extends ja{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){ao(this._parent)&&la.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ms,13),s.zc(Us,10),s.zc(Ws,10))},t.\u0275dir=s.uc({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s.kc([eo]),s.ic]}),t})();const no={provide:Ms,useExisting:Object(s.db)(()=>so)};let so=(()=>{class t extends Ms{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return ka(this._validators)}get asyncValidator(){return Ca(this._asyncValidators)}_checkParentType(){ao(this._parent)&&la.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ms,13),s.zc(Us,10),s.zc(Ws,10))},t.\u0275dir=s.uc({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s.kc([no]),s.ic]}),t})();function ao(t){return!(t instanceof io||t instanceof to||t instanceof so)}const oo={provide:Ns,useExisting:Object(s.db)(()=>ro)};let ro=(()=>{class t extends Ns{constructor(t,e,i,n,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new s.t,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=Aa(this,n)}set isDisabled(t){la.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),Sa(e,this.viewModel)&&(Ia("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof io)&&this._parent instanceof ja?la.ngModelGroupException():this._parent instanceof io||this._parent instanceof to||this._parent instanceof so||la.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ms,13),s.zc(Us,10),s.zc(Ws,10),s.zc(As,10),s.zc(Xa,8))},t.\u0275dir=s.uc({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s.kc([oo]),s.ic,s.jc]}),t._ngModelWarningSentOnce=!1,t})();const lo={provide:Us,useExisting:Object(s.db)(()=>ho),multi:!0},co={provide:Us,useExisting:Object(s.db)(()=>uo),multi:!0};let ho=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Hs.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({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&&s.mc("required",e.required?"":null)},inputs:{required:"required"},features:[s.kc([lo])]}),t})(),uo=(()=>{class t extends ho{validate(t){return this.required?Hs.requiredTrue(t):null}}return t.\u0275fac=function(e){return mo(e||t)},t.\u0275dir=s.uc({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&&s.mc("required",e.required?"":null)},features:[s.kc([co]),s.ic]}),t})();const mo=s.Hc(uo),po={provide:Us,useExisting:Object(s.db)(()=>go),multi:!0};let go=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?Hs.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[s.kc([po])]}),t})();const fo={provide:Us,useExisting:Object(s.db)(()=>bo),multi:!0};let bo=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Hs.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.mc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[s.kc([fo]),s.jc]}),t})();const _o={provide:Us,useExisting:Object(s.db)(()=>vo),multi:!0};let vo=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Hs.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.mc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s.kc([_o]),s.jc]}),t})();const yo={provide:Us,useExisting:Object(s.db)(()=>wo),multi:!0};let wo=(()=>{class t{ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Hs.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.mc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[s.kc([yo]),s.jc]}),t})(),xo=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})(),ko=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,s=null,a=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new za(i,{asyncValidators:s,updateOn:a,validators:n})}control(t,e,i){return new Ma(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new La(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Ma||t instanceof za||t instanceof La?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),Co=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[ea],imports:[xo]}),t})(),So=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Xa,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[ko,ea],imports:[xo]}),t})();const Eo=["button"],Oo=["*"],Ao=new s.w("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),Do={provide:As,useExisting:Object(s.db)(()=>Fo),multi:!0};class Io{}let To=0;class Po{constructor(t,e){this.source=t,this.value=e}}let Fo=(()=>{class t{constructor(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${To++}`,this.valueChange=new s.t,this.change=new s.t,this.appearance=e&&e.appearance?e.appearance:"standard"}get name(){return this._name}set name(t){this._name=t,this._buttonToggles&&this._buttonToggles.forEach(t=>{t.name=this._name,t._markForCheck()})}get vertical(){return this._vertical}set vertical(t){this._vertical=di(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(t=>t.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=di(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new ws(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(){const t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,i=new Po(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(t,e,i=!1,n=!1){this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):n=!0,n?Promise.resolve(()=>this._updateModelValue(i)):this._updateModelValue(i)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(e=>null!=t.value&&e===t.value):t.value===this._rawValue)}_setSelectionByValue(t){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(t=>this._selectValue(t))}else this._clearSelection(),this._selectValue(t)}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const e=this._buttonToggles.find(e=>null!=e.value&&e.value===t);e&&(e.checked=!0,this._selectionModel.select(e))}_updateModelValue(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.j),s.zc(Ao,8))},t.\u0275dir=s.uc({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,zo,!0),2&t&&s.id(n=s.Tc())&&(e._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(s.mc("aria-disabled",e.disabled),s.pc("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:[s.kc([Do,{provide:Io,useExisting:t}])]}),t})();class Ro{}const Mo=xn(Ro);let zo=(()=>{class t extends Mo{constructor(t,e,i,n,a,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._focusMonitor=n,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new s.t;const r=Number(a);this.tabIndex=r||0===r?r:null,this.buttonToggleGroup=t,this.appearance=o&&o.appearance?o.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const e=di(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=di(t)}ngOnInit(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||`mat-button-toggle-${To++}`,this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const 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 Po(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Fo,8),s.zc(s.j),s.zc(s.q),s.zc(Xi),s.Pc("tabindex"),s.zc(Ao,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&s.Bd(Eo,!0),2&t&&s.id(i=s.Tc())&&(e._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&s.Sc("focus",(function(){return e.focus()})),2&t&&(s.mc("tabindex",-1)("id",e.id)("name",null),s.pc("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:[s.ic],ngContentSelectors:Oo,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&&(s.bd(),s.Fc(0,"button",0,1),s.Sc("click",(function(){return e._onButtonClick()})),s.Fc(2,"div",2),s.ad(3),s.Ec(),s.Ec(),s.Ac(4,"div",3),s.Ac(5,"div",4)),2&t){const t=s.jd(1);s.cd("id",e.buttonId)("disabled",e.disabled||null),s.mc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.lc(5),s.cd("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[Kn],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{line-height:48px;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 48px}.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})(),Lo=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vn,Xn],vn]}),t})();const No=["*",[["mat-card-footer"]]],Bo=["*","mat-card-footer"],Vo=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],jo=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],$o=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Uo=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let Wo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),Go=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),Ho=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),qo=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&s.pc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),Yo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t})(),Ko=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),Xo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t})(),Jo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t})(),Zo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t})(),Qo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t})(),tr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),er=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ae,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:Bo,decls:2,vars:0,template:function(t,e){1&t&&(s.bd(No),s.ad(0),s.ad(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),ir=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:jo,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.bd(Vo),s.ad(0),s.Fc(1,"div",0),s.ad(2,1),s.Ec(),s.ad(3,2))},encapsulation:2,changeDetection:0}),t})(),nr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:Uo,decls:4,vars:0,template:function(t,e){1&t&&(s.bd($o),s.Fc(0,"div"),s.ad(1),s.Ec(),s.ad(2,1),s.ad(3,2))},encapsulation:2,changeDetection:0}),t})(),sr=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const ar=["input"],or=function(){return{enterDuration:150}},rr=["*"],lr=new s.w("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),cr=new s.w("mat-checkbox-click-action");let dr=0;const hr={provide:As,useExisting:Object(s.db)(()=>gr),multi:!0};class ur{}class mr{constructor(t){this._elementRef=t}}const pr=kn(wn(xn(yn(mr))));let gr=(()=>{class t extends pr{constructor(t,e,i,n,a,o,r,l){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=o,this._animationMode=r,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++dr}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.t,this.indeterminateChange=new s.t,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(a)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=di(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=di(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=di(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new ur;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){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(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(Xi),s.zc(s.G),s.Pc("tabindex"),s.zc(cr,8),s.zc(Ae,8),s.zc(lr,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(s.Bd(ar,!0),s.Bd(Kn,!0)),2&t&&(s.id(i=s.Tc())&&(e._inputElement=i.first),s.id(i=s.Tc())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ic("id",e.id),s.mc("tabindex",null),s.pc("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",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s.kc([hr]),s.ic],ngContentSelectors:rr,decls:17,vars:19,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&&(s.bd(),s.Fc(0,"label",0,1),s.Fc(2,"div",2),s.Fc(3,"input",3,4),s.Sc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ec(),s.Fc(5,"div",5),s.Ac(6,"div",6),s.Ec(),s.Ac(7,"div",7),s.Fc(8,"div",8),s.Vc(),s.Fc(9,"svg",9),s.Ac(10,"path",10),s.Ec(),s.Uc(),s.Ac(11,"div",11),s.Ec(),s.Ec(),s.Fc(12,"span",12,13),s.Sc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Fc(14,"span",14),s.xd(15,"\xa0"),s.Ec(),s.ad(16),s.Ec(),s.Ec()),2&t){const t=s.jd(1),i=s.jd(13);s.mc("for",e.inputId),s.lc(2),s.pc("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.lc(1),s.cd("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.mc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),s.lc(2),s.cd("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.ed(18,or))}},directives:[Kn,Ii],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}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .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})();const fr={provide:Us,useExisting:Object(s.db)(()=>br),multi:!0};let br=(()=>{class t extends uo{}return t.\u0275fac=function(e){return _r(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.kc([fr]),s.ic]}),t})();const _r=s.Hc(br);let vr=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})(),yr=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[Xn,vn,Ti,vr],vn,vr]}),t})();function wr(t){return new si.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(Ss.a)(i):oi()).subscribe(e)})}var xr=i("VRyK");function kr(t,e,i,n){return Object(Ve.a)(i)&&(n=i,i=void 0),n?kr(t,e,i).pipe(Object(ii.a)(t=>Object(ks.a)(t)?n(...t):n(t))):new si.a(n=>{!function t(e,i,n,s,a){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,a),o=()=>t.removeEventListener(i,n,a)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,n),o=()=>t.off(i,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,n),o=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,r=e.length;o1?Array.prototype.slice.call(arguments):t)}),n,i)})}class Cr extends Ge{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class Sr extends qe{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),Dr={};function Ir(t){return t in Dr&&(delete Dr[t],!0)}const Tr={setImmediate(t){const e=Or++;return Dr[e]=!0,Ar.then(()=>Ir(e)&&t()),e},clearImmediate(t){Ir(t)}};class Pr extends Ge{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Tr.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Tr.clearImmediate(e),t.scheduled=void 0)}}class Fr extends qe{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new zr(t,e))}class zr{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Lr(t,this.compare,this.keySelector))}}class Lr extends Ne.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var Nr=i("l7GE"),Br=i("ZUHj");class Vr{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new jr(t,this.durationSelector))}}class jr extends Nr.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(Br.a)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function $r(t){return!Object(ks.a)(t)&&t-parseFloat(t)+1>=0}function Ur(t=0,e,i){let n=-1;return $r(e)?n=Number(e)<1?1:Number(e):Object(Fe.a)(e)&&(i=e),Object(Fe.a)(i)||(i=Ye),new si.a(e=>{const s=$r(t)?t:+t-i.now();return i.schedule(Wr,s,{index:0,period:n,subscriber:e})})}function Wr(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Gr(t,e=Ye){return i=()=>Ur(t,e),function(t){return t.lift(new Vr(i))};var i}function Hr(t){return e=>e.lift(new qr(t))}class qr{constructor(t){this.notifier=t}call(t,e){const i=new Yr(t),n=Object(Br.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Yr extends Nr.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var Kr=i("51Dv");function Xr(t,e){return"function"==typeof e?i=>i.pipe(Xr((i,n)=>Object(Ss.a)(t(i,n)).pipe(Object(ii.a)((t,s)=>e(i,t,n,s))))):e=>e.lift(new Jr(t))}class Jr{constructor(t){this.project=t}call(t,e){return e.subscribe(new Zr(t,this.project))}}class Zr extends Nr.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new Kr.a(this,e,i),a=this.destination;a.add(s),this.innerSubscription=Object(Br.a)(this,t,void 0,void 0,s),this.innerSubscription!==s&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}class Qr extends Ge{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class tl extends qe{}const el=new tl(Qr);function il(t,e){return new si.a(e?i=>e.schedule(nl,0,{error:t,subscriber:i}):e=>e.error(t))}function nl({error:t,subscriber:e}){e.error(t)}let sl=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(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()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return ze(this.value);case"E":return il(this.error);case"C":return oi()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class al extends Ne.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(al.dispatch,this.delay,new ol(t,this.destination)))}_next(t){this.scheduleMessage(sl.createNext(t))}_error(t){this.scheduleMessage(sl.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(sl.createComplete()),this.unsubscribe()}}class ol{constructor(t,e){this.notification=t,this.destination=e}}var rl=i("9ppp"),ll=i("Ylt2");class cl extends Te.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new dl(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let a;if(this.closed)throw new rl.a;if(this.isStopped||this.hasError?a=Pe.a.EMPTY:(this.observers.push(t),a=new ll.a(this,t)),n&&t.add(t=new al(t,n)),e)for(let o=0;oe&&(a=Math.max(a,s-e)),a>0&&n.splice(0,a),n}}class dl{constructor(t,e){this.time=t,this.value=e}}let hl=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new Te.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new si.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Gr(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ze()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Qe(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>kr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(s.G),s.Oc(_i),s.Oc(ve.e,8))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(s.G),Object(s.Oc)(_i),Object(s.Oc)(ve.e,8))},token:t,providedIn:"root"}),t})(),ul=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new Te.a,this._elementScrolled=new si.a(t=>this.ngZone.runOutsideAngular(()=>kr(this.elementRef.nativeElement,"scroll").pipe(Hr(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Ei()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Ei()?t.left=t.right:1==Ei()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const 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))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Ei()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Ei()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(hl),s.zc(s.G),s.zc(nn,8))},t.\u0275dir=s.uc({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),ml=(()=>{class t{constructor(t,e,i){this._platform=t,this._document=i,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?Object(xr.a)(kr(e,"resize"),kr(e,"orientationchange")):ze(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Gr(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(_i),s.Oc(s.G),s.Oc(ve.e,8))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(_i),Object(s.Oc)(s.G),Object(s.Oc)(ve.e,8))},token:t,providedIn:"root"}),t})(),pl=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[an,vi],an]}),t})();function gl(){throw Error("Host already has a portal attached")}class fl{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&gl(),this._attachedHost=t,t.attach(this)}detach(){let 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())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class bl extends fl{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class _l extends fl{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class vl extends fl{constructor(t){super(),this.element=t instanceof s.q?t.nativeElement:t}}class yl{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&gl(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof bl?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof _l?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof vl?(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.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class wl extends yl{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let xl=(()=>{class t extends _l{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V),s.zc(s.Y))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[s.ic]}),t})(),kl=(()=>{class t extends yl{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.t,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.n),s.zc(s.Y),s.zc(ve.e))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.ic]}),t})(),Cl=(()=>{class t extends kl{}return t.\u0275fac=function(e){return Sl(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[s.kc([{provide:kl,useExisting:t}]),s.ic]}),t})();const Sl=s.Hc(Cl);let El=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})();class Ol{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}class Al{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=pi(-this._previousScrollPosition.left),t.style.top=pi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function Dl(){return Error("Scroll strategy has already been attached.")}class Il{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw Dl();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tl{enable(){}disable(){}attach(){}}function Pl(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Fl(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class Rl{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw Dl();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Pl(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Ml=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Tl,this.close=t=>new Il(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new Al(this._viewportRuler,this._document),this.reposition=t=>new Rl(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(hl),s.Oc(ml),s.Oc(s.G),s.Oc(ve.e))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(hl),Object(s.Oc)(ml),Object(s.Oc)(s.G),Object(s.Oc)(ve.e))},token:t,providedIn:"root"}),t})();class zl{constructor(t){if(this.scrollStrategy=new Tl,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Ll{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Nl{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function Bl(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function Vl(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let jl=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(ve.e))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(ve.e))},token:t,providedIn:"root"}),t})();const $l=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Ul=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||$l){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEventsObservable=new si.a(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new Te.a,this._keydownEventSubscriptions=0,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=pi(this._config.width),t.height=pi(this._config.height),t.minWidth=pi(this._config.minWidth),t.minHeight=pi(this._config.minHeight),t.maxWidth=pi(this._config.maxWidth),t.maxHeight=pi(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;mi(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Hr(Object(xr.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Gl=/([A-Za-z%]+)$/;class Hl{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Te.a,this._resizeSubscription=Pe.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let a of this._preferredPositions){let o=this._getOriginPoint(t,a),r=this._getOverlayPoint(o,e,a),l=this._getOverlayFit(r,e,i,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,o);this._canFitWithFlexibleDimensions(l,r,i)?n.push({position:a,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,a)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ql(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)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:a}=t,o=this._getOffset(n,"x"),r=this._getOffset(n,"y");o&&(s+=o),r&&(a+=r);let l=0-a,c=a+e.height-i.height,d=this._subtractOverflows(e.width,0-s,s+e.width-i.width),h=this._subtractOverflows(e.height,l,c),u=d*h;return{visibleArea:u,isCompletelyWithinViewport:e.width*e.height===u,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:d==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,a=Yl(this._overlayRef.getConfig().minHeight),o=Yl(this._overlayRef.getConfig().minWidth),r=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=a&&a<=n)&&r}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.right,0),a=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-i.top-t.y,0),r=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?r||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,r=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;r=2*e,l=t.x-e,r>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:a,left:l,bottom:o,right:c,width:r,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=pi(i.height),n.top=pi(i.top),n.bottom=pi(i.bottom),n.width=pi(i.width),n.left=pi(i.left),n.right=pi(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=pi(t)),s&&(n.maxWidth=pi(s))}this._lastBoundingBoxSize=i,ql(this._boundingBox.style,n)}_resetBoundingBoxStyles(){ql(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ql(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();ql(i,this._getExactOverlayY(e,t,n)),ql(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",r=this._getOffset(e,"x"),l=this._getOffset(e,"y");r&&(o+=`translateX(${r}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),a.maxHeight&&(n?i.maxHeight=pi(a.maxHeight):s&&(i.maxHeight="")),a.maxWidth&&(n?i.maxWidth=pi(a.maxWidth):s&&(i.maxWidth="")),ql(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=a,"bottom"===t.overlayY?n.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:n.top=pi(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=`${this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)}px`:s.left=pi(a.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Fl(t,i),isOriginOutsideView:Pl(t,i),isOverlayClipped:Fl(e,i),isOverlayOutsideView:Pl(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{Vl("originX",t.originX),Bl("originY",t.originY),Vl("overlayX",t.overlayX),Bl("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&mi(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.q)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function ql(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Yl(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Gl);return i&&"px"!==i?null:parseFloat(e)}return t||null}class Kl{constructor(t,e,i,n,s,a,o){this._preferredPositions=[],this._positionStrategy=new Hl(i,n,s,a,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new Ll(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class Xl{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:a,maxHeight:o}=i,r=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=r?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,r?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=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Jl=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Xl}connectedTo(t,e,i){return new Kl(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Hl(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(ml),s.Oc(ve.e),s.Oc(_i),s.Oc(Ul))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(ml),Object(s.Oc)(ve.e),Object(s.Oc)(_i),Object(s.Oc)(Ul))},token:t,providedIn:"root"}),t})(),Zl=0,Ql=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=a,this._ngZone=o,this._document=r,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new zl(t);return s.direction=s.direction||this._directionality.value,new Wl(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${Zl++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new wl(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Ml),s.Oc(Ul),s.Oc(s.n),s.Oc(Jl),s.Oc(jl),s.Oc(s.x),s.Oc(s.G),s.Oc(ve.e),s.Oc(nn),s.Oc(ve.n,8))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();const tc=[{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"}],ec=new s.w("cdk-connected-overlay-scroll-strategy");let ic=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),nc=(()=>{class t{constructor(t,e,i,n,a){this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Pe.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new s.t,this.positionChange=new s.t,this.attach=new s.t,this.detach=new s.t,this.overlayKeydown=new s.t,this._templatePortal=new _l(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=di(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=di(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=di(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=di(t)}get push(){return this._push}set push(t){this._push=di(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=tc),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||Le(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new zl({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}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ql),s.zc(s.V),s.zc(s.Y),s.zc(ec),s.zc(nn,8))},t.\u0275dir=s.uc({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"},exportAs:["cdkConnectedOverlay"],features:[s.jc]}),t})();const sc={provide:ec,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ac=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[Ql,sc],imports:[[an,El,pl],pl]}),t})();const oc=["underline"],rc=["connectionContainer"],lc=["inputContainer"],cc=["label"];function dc(t,e){1&t&&(s.Dc(0),s.Fc(1,"div",14),s.Ac(2,"div",15),s.Ac(3,"div",16),s.Ac(4,"div",17),s.Ec(),s.Fc(5,"div",18),s.Ac(6,"div",15),s.Ac(7,"div",16),s.Ac(8,"div",17),s.Ec(),s.Cc())}function hc(t,e){1&t&&(s.Fc(0,"div",19),s.ad(1,1),s.Ec())}function uc(t,e){if(1&t&&(s.Dc(0),s.ad(1,2),s.Fc(2,"span"),s.xd(3),s.Ec(),s.Cc()),2&t){const t=s.Wc(2);s.lc(3),s.yd(t._control.placeholder)}}function mc(t,e){1&t&&s.ad(0,3,["*ngSwitchCase","true"])}function pc(t,e){1&t&&(s.Fc(0,"span",23),s.xd(1," *"),s.Ec())}function gc(t,e){if(1&t){const t=s.Gc();s.Fc(0,"label",20,21),s.Sc("cdkObserveContent",(function(){return s.nd(t),s.Wc().updateOutlineGap()})),s.vd(2,uc,4,1,"ng-container",12),s.vd(3,mc,1,0,void 0,12),s.vd(4,pc,2,0,"span",22),s.Ec()}if(2&t){const t=s.Wc();s.pc("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.cd("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.mc("for",t._control.id)("aria-owns",t._control.id),s.lc(2),s.cd("ngSwitchCase",!1),s.lc(1),s.cd("ngSwitchCase",!0),s.lc(1),s.cd("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function fc(t,e){1&t&&(s.Fc(0,"div",24),s.ad(1,4),s.Ec())}function bc(t,e){if(1&t&&(s.Fc(0,"div",25,26),s.Ac(2,"span",27),s.Ec()),2&t){const t=s.Wc();s.lc(2),s.pc("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function _c(t,e){if(1&t&&(s.Fc(0,"div"),s.ad(1,5),s.Ec()),2&t){const t=s.Wc();s.cd("@transitionMessages",t._subscriptAnimationState)}}function vc(t,e){if(1&t&&(s.Fc(0,"div",31),s.xd(1),s.Ec()),2&t){const t=s.Wc(2);s.cd("id",t._hintLabelId),s.lc(1),s.yd(t.hintLabel)}}function yc(t,e){if(1&t&&(s.Fc(0,"div",28),s.vd(1,vc,2,2,"div",29),s.ad(2,6),s.Ac(3,"div",30),s.ad(4,7),s.Ec()),2&t){const t=s.Wc();s.cd("@transitionMessages",t._subscriptAnimationState),s.lc(1),s.cd("ngIf",t.hintLabel)}}const wc=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],xc=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let kc=0,Cc=(()=>{class t{constructor(){this.id=`mat-error-${kc++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.mc("id",e.id)},inputs:{id:"id"}}),t})();const Sc={transitionMessages:o("transitionMessages",[h("enter",d({opacity:1,transform:"translateY(0%)"})),m("void => enter",[d({opacity:0,transform:"translateY(-100%)"}),r("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ec=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t}),t})();function Oc(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let Ac=0,Dc=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${Ac++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.mc("id",e.id)("align",null),s.pc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),Ic=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-label"]]}),t})(),Tc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-placeholder"]]}),t})(),Pc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matPrefix",""]]}),t})(),Fc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matSuffix",""]]}),t})(),Rc=0;class Mc{constructor(t){this._elementRef=t}}const zc=wn(Mc,"primary"),Lc=new s.w("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Nc=new s.w("MatFormField");let Bc=(()=>{class t extends zc{constructor(t,e,i,n,s,a,o,r){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=a,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Te.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Rc++}`,this._labelId=`mat-form-field-label-${Rc++}`,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==r,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=di(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(dn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Hr(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Hr(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(xr.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(dn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(dn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Hr(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,kr(this._label.nativeElement,"transitionend").pipe(ri(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(i=>{if("start"===i.align){if(t||this.hintLabel)throw Oc("start");t=i}else if("end"===i.align){if(e)throw Oc("end");e=i}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),a=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const a=this._getStartEnd(s),o=this._getStartEnd(t.children[0].getBoundingClientRect());let r=0;for(const e of t.children)r+=e.offsetWidth;e=Math.abs(o-a)-5,i=r>0?.75*r+10:0}for(let o=0;o{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[ve.c,Ti]]}),t})();function jc(t,e=Ye){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new $c(n,e))}class $c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Uc(t,this.delay,this.scheduler))}}class Uc extends Ne.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Uc.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Wc(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(sl.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(sl.createComplete()),this.unsubscribe()}}class Wc{constructor(t,e){this.time=t,this.notification=e}}const Gc=["panel"];function Hc(t,e){if(1&t&&(s.Fc(0,"div",0,1),s.ad(2),s.Ec()),2&t){const t=s.Wc();s.cd("id",t.id)("ngClass",t._classList)}}const qc=["*"];let Yc=0;class Kc{constructor(t,e){this.source=t,this.option=e}}class Xc{}const Jc=xn(Xc),Zc=new s.w("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let Qc=(()=>{class t extends Jc{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Pe.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.t,this.opened=new s.t,this.closed=new s.t,this.optionActivated=new s.t,this._classList={},this.id=`mat-autocomplete-${Yc++}`,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=di(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Ni(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new Kc(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.j),s.zc(s.q),s.zc(Zc))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,rs,!0),s.rc(i,is,!0)),2&t&&(s.id(n=s.Tc())&&(e.options=n),s.id(n=s.Tc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.td(s.V,!0),s.Bd(Gc,!0)),2&t&&(s.id(i=s.Tc())&&(e.template=i.first),s.id(i=s.Tc())&&(e.panel=i.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:[s.kc([{provide:os,useExisting:t}]),s.ic],ngContentSelectors:qc,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.bd(),s.vd(0,Hc,3,2,"ng-template"))},directives:[ve.q],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})(),td=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t})();const ed=new s.w("mat-autocomplete-scroll-strategy"),id={provide:ed,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},nd={provide:As,useExisting:Object(s.db)(()=>sd),multi:!0};let sd=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=r,this._document=l,this._viewportRuler=c,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Pe.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Te.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=wr(()=>this.autocomplete&&this.autocomplete.options?Object(xr.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(ri(1),Xr(()=>this.optionSelections))),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=di(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&(this._zone.runOutsideAngular(()=>{t.addEventListener("blur",this._windowBlurHandler)}),this._isInsideShadowRoot=!!Oi(this._element.nativeElement))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){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())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(xr.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Qe(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Qe(()=>this._overlayAttached)):ze()).pipe(Object(ii.a)(t=>t instanceof as?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(xr.a)(kr(this._document,"click"),kr(this._document,"touchend")).pipe(Qe(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const 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){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=ls(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=cs(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(ri(1)),e=this.autocomplete.options.changes.pipe(je(()=>this._positionStrategy.reapplyLastPosition()),jc(0));return Object(xr.a)(t,e).pipe(Xr(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),ri(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(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()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){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.");let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new _l(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(27===t.keyCode||38===t.keyCode&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})}))),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new zl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},i={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};let n;n="above"===this.position?[i]:"below"===this.position?[e]:[e,i],t.withPositions(n)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(Ql),s.zc(s.Y),s.zc(s.G),s.zc(s.j),s.zc(ed),s.zc(nn,8),s.zc(Nc,9),s.zc(ve.e,8),s.zc(ml))},t.\u0275dir=s.uc({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.Sc("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&&s.mc("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:[s.kc([nd]),s.jc]}),t})(),ad=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[id],imports:[[ds,ac,vn,ve.c],ds,vn]}),t})();function od(t,e){}class rd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const ld={dialogContainer:o("dialogContainer",[h("void, exit",d({opacity:0,transform:"scale(0.7)"})),h("enter",d({transform:"none"})),m("* => enter",r("150ms cubic-bezier(0, 0, 0.2, 1)",d({transform:"none",opacity:1}))),m("* => void, * => exit",r("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",d({opacity:0})))])};function cd(){throw Error("Attempting to attach dialog content after content is already attached")}let dd=(()=>{class t extends yl{constructor(t,e,i,n,a){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=a,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new s.t,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(Wi),s.zc(s.j),s.zc(ve.e,8),s.zc(rd))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&s.td(kl,!0),2&t&&s.id(i=s.Tc())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.qc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(s.mc("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),s.Ad("@dialogContainer",e._state))},features:[s.ic],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.vd(0,od,0,0,"ng-template",0)},directives:[kl],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:[ld.dialogContainer]}}),t})(),hd=0;class ud{constructor(t,e,i=`mat-dialog-${hd++}`){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Te.a,this._afterClosed=new Te.a,this._beforeClosed=new Te.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Qe(t=>"done"===t.phaseName&&"enter"===t.toState),ri(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Qe(t=>"done"===t.phaseName&&"exit"===t.toState),ri(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Qe(t=>27===t.keyCode&&!this.disableClose&&!Le(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Qe(t=>"start"===t.phaseName),ri(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let 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}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const md=new s.w("MatDialogData"),pd=new s.w("mat-dialog-default-options"),gd=new s.w("mat-dialog-scroll-strategy"),fd={provide:gd,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.block()}};let bd=(()=>{class t{constructor(t,e,i,n,s,a,o){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=a,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Te.a,this._afterOpenedAtThisLevel=new Te.a,this._ariaHiddenElements=new Map,this.afterAllClosed=wr(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(dn(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new rd)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new zl({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}_attachDialogContainer(t,e){const i=s.x.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:rd,useValue:e}]}),n=new bl(dd,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new ud(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe(()=>{a.disableClose||a.close()}),t instanceof s.V)e.attachTemplatePortal(new _l(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),s=e.attachComponentPortal(new bl(t,n.viewContainerRef,i));a.componentInstance=s.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,a=[{provide:dd,useValue:i},{provide:md,useValue:t.data},{provide:ud,useValue:e}];return!t.direction||n&&n.get(nn,null)||a.push({provide:nn,useValue:{value:t.direction,change:ze()}}),s.x.create({parent:n||this._injector,providers:a})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Ql),s.Oc(s.x),s.Oc(ve.n,8),s.Oc(pd,8),s.Oc(gd),s.Oc(t,12),s.Oc(Ul))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),_d=0,vd=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=kd(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(ud,8),s.zc(s.q),s.zc(bd))},t.\u0275dir=s.uc({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&s.mc("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:[s.jc]}),t})(),yd=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id=`mat-dialog-title-${_d++}`}ngOnInit(){this._dialogRef||(this._dialogRef=kd(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(ud,8),s.zc(s.q),s.zc(bd))},t.\u0275dir=s.uc({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ic("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),wd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),xd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function kd(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let Cd=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[bd,fd],imports:[[ac,El,vn],vn]}),t})(),Sd=0,Ed=(()=>{class t{constructor(){this._stateChanges=new Te.a,this._openCloseAllActions=new Te.a,this.id=`cdk-accordion-${Sd++}`,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=di(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s.jc]}),t})(),Od=0,Ad=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Pe.a.EMPTY,this.closed=new s.t,this.opened=new s.t,this.destroyed=new s.t,this.expandedChange=new s.t,this.id=`cdk-accordion-child-${Od++}`,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=di(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())}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ed,12),s.zc(s.j),s.zc(xs))},t.\u0275dir=s.uc({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s.kc([{provide:Ed,useValue:void 0}])]}),t})(),Dd=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})();const Id=["body"];function Td(t,e){}const Pd=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Fd=["mat-expansion-panel-header","*","mat-action-row"],Rd=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Md=function(t,e){return{value:t,params:e}};function zd(t,e){if(1&t&&s.Ac(0,"span",2),2&t){const t=s.Wc();s.cd("@indicatorRotate",t._getExpandedState())}}const Ld=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Nd=["mat-panel-title","mat-panel-description","*"],Bd=new s.w("MAT_ACCORDION"),Vd={indicatorRotate:o("indicatorRotate",[h("collapsed, void",d({transform:"rotate(0deg)"})),h("expanded",d({transform:"rotate(180deg)"})),m("expanded <=> collapsed, void => collapsed",r("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[h("collapsed, void",d({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),h("expanded",d({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),m("expanded <=> collapsed, void => collapsed",l([g("@indicatorRotate",p(),{optional:!0}),r("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[h("collapsed, void",d({height:"0px",visibility:"hidden"})),h("expanded",d({height:"*",visibility:"visible"})),m("expanded <=> collapsed, void => collapsed",r("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let jd=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V))},t.\u0275dir=s.uc({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),$d=0;const Ud=new s.w("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Wd=(()=>{class t extends Ad{constructor(t,e,i,n,a,o,r){super(t,e,i),this._viewContainerRef=n,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new s.t,this.afterCollapse=new s.t,this._inputChanges=new Te.a,this._headerId=`mat-expansion-panel-header-${$d++}`,this._bodyAnimationDone=new Te.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Mr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),r&&(this.hideToggle=r.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=di(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(dn(null),Qe(()=>this.expanded&&!this._portal),ri(1)).subscribe(()=>{this._portal=new _l(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Bd,12),s.zc(s.j),s.zc(xs),s.zc(s.Y),s.zc(ve.e),s.zc(Ae,8),s.zc(Ud,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,jd,!0),2&t&&s.id(n=s.Tc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&s.Bd(Id,!0),2&t&&s.id(i=s.Tc())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.pc("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:[s.kc([{provide:Bd,useValue:void 0}]),s.ic,s.jc],ngContentSelectors:Fd,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&&(s.bd(Pd),s.ad(0),s.Fc(1,"div",0,1),s.Sc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),s.Fc(3,"div",2),s.ad(4,1),s.vd(5,Td,0,0,"ng-template",3),s.Ec(),s.ad(6,2),s.Ec()),2&t&&(s.lc(1),s.cd("@bodyExpansion",e._getExpandedState())("id",e.id),s.mc("aria-labelledby",e._headerId),s.lc(4),s.cd("cdkPortalOutlet",e._portal))},directives:[kl],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)}.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:[Vd.bodyExpansion]},changeDetection:0}),t})(),Gd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t})(),Hd=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=Pe.a.EMPTY,this._animationsDisabled=!0;const a=t.accordion?t.accordion._stateChanges.pipe(Qe(t=>!(!t.hideToggle&&!t.togglePosition))):ai;this._parentChangeSubscription=Object(xr.a)(t.opened,t.closed,a,t._inputChanges.pipe(Qe(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Qe(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),i.monitor(e).subscribe(e=>{e&&t.accordion&&t.accordion._handleHeaderFocus(this)}),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}_animationStarted(){this._animationsDisabled=!1}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_keydown(t){switch(t.keyCode){case 32:case 13:Le(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Wd,1),s.zc(s.q),s.zc(Xi),s.zc(s.j),s.zc(Ud,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(s.qc("@expansionHeight.start",(function(){return e._animationStarted()})),s.Sc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(s.mc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Ad("@.disabled",e._animationsDisabled)("@expansionHeight",s.gd(16,Md,e._getExpandedState(),s.gd(13,Rd,e.collapsedHeight,e.expandedHeight))),s.pc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Nd,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.bd(Ld),s.Fc(0,"span",0),s.ad(1),s.ad(2,1),s.ad(3,2),s.Ec(),s.vd(4,zd,1,1,"span",1)),2&t&&(s.lc(4),s.cd("ngIf",e._showToggle()))},directives:[ve.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.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:[Vd.indicatorRotate,Vd.expansionHeaderHeight]},changeDetection:0}),t})(),qd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),Yd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Kd=(()=>{class t extends Ed{constructor(){super(...arguments),this._ownHeaders=new s.L,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=di(t)}ngAfterContentInit(){this._headers.changes.pipe(dn(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Bi(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;36===e?Le(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?Le(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return Xd(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,Hd,!0),2&t&&s.id(n=s.Tc())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.pc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s.kc([{provide:Bd,useExisting:t}]),s.ic]}),t})();const Xd=s.Hc(Kd);let Jd=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[ve.c,Dd,El]]}),t})();const Zd=["*"],Qd=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],th=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],eh=new s.w("MAT_GRID_LIST");let ih=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(hi(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(hi(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(eh,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&s.mc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Zd,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(s.bd(),s.Fc(0,"figure",0),s.ad(1),s.Ec())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),nh=(()=>{class t{constructor(t){this._element=t}ngAfterContentInit(){jn(this._lines,this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,Vn,!0),2&t&&s.id(n=s.Tc())&&(e._lines=n)},ngContentSelectors:th,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(s.bd(Qd),s.ad(0),s.Fc(1,"div",0),s.ad(2,1),s.Ec(),s.ad(3,2))},encapsulation:2,changeDetection:0}),t})(),sh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),t})(),ah=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),t})(),oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),t})();class rh{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new lh(this.rowIndex,e)}_findMatchingGap(t){if(t>this.tracker.length)throw Error(`mat-grid-list: tile with colspan ${t} is wider than `+`grid with cols="${this.tracker.length}".`);let e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)))}while(i-e{t._setStyle("top",null),t._setStyle("height",null)})}}class uh extends dh{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",ph(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",ph(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");if(2!==e.length)throw Error(`mat-grid-list: invalid ratio given for row-height: "${t}"`);this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class mh extends dh{setRowStyles(t,e){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",ph(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function ph(t){return`calc(${t})`}function gh(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let fh=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(hi(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${null==t?"":t}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${null==t?"":t}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new mh:t&&t.indexOf(":")>-1?new uh(t):new hh(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new rh);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,i),e.forEach((e,i)=>{const n=t.positions[i];this._tileStyler.setStyle(e,n.row,n.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(nn,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,ih,!0),2&t&&s.id(n=s.Tc())&&(e._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&s.mc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[s.kc([{provide:eh,useExisting:t}])],ngContentSelectors:Zd,decls:2,vars:0,template:function(t,e){1&t&&(s.bd(),s.Fc(0,"div"),s.ad(1),s.Ec())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),bh=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[Un,vn],Un,vn]}),t})();function _h(t){return function(e){const i=new vh(t),n=e.lift(i);return i.caught=n}}class vh{constructor(t){this.selector=t}call(t,e){return e.subscribe(new yh(t,this.selector,this.caught))}}class yh extends Nr.a{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new Kr.a(this,void 0,void 0);this.add(n);const s=Object(Br.a)(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function wh(t){return e=>e.lift(new xh(t))}class xh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new kh(t,this.callback))}}class kh extends Ne.a{constructor(t,e){super(t),this.add(new Pe.a(e))}}var Ch=i("w1tV"),Sh=i("5+tZ");function Eh(t,e){return Object(Sh.a)(t,e,1)}class Oh{}class Ah{}class Dh{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Dh?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Dh;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Dh?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Ih{encodeKey(t){return Th(t)}encodeValue(t){return Th(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Th(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,"/")}class Ph{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ih,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,a]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(a),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Ph({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Fh(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Rh(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Mh(t){return"undefined"!=typeof FormData&&t instanceof FormData}class zh{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Dh),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),r)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new zh(e,i,s,{params:l,headers:r,reportProgress:o,responseType:n,withCredentials:a})}}const Lh=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class Nh{constructor(t,e=200,i="OK"){this.headers=t.headers||new Dh,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Bh extends Nh{constructor(t={}){super(t),this.type=Lh.ResponseHeader}clone(t={}){return new Bh({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})}}class Vh extends Nh{constructor(t={}){super(t),this.type=Lh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Vh({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})}}class jh extends Nh{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function $h(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Uh=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof zh)n=t;else{let s=void 0;s=i.headers instanceof Dh?i.headers:new Dh(i.headers);let a=void 0;i.params&&(a=i.params instanceof Ph?i.params:new Ph({fromObject:i.params})),n=new zh(t,e,void 0!==i.body?i.body:null,{headers:s,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=ze(n).pipe(Eh(t=>this.handler.handle(t)));if(t instanceof zh||"events"===i.observe)return s;const a=s.pipe(Qe(t=>t instanceof Vh));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(Object(ii.a)(t=>t.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Ph).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,$h(i,e))}post(t,e,i={}){return this.request("POST",t,$h(i,e))}put(t,e,i={}){return this.request("PUT",t,$h(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Oh))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();class Wh{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Gh=new s.w("HTTP_INTERCEPTORS");let Hh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();const qh=/^\)\]\}',?\n/;class Yh{}let Kh=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),Xh=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new si.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",a=new Dh(i.getAllResponseHeaders()),o=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 Bh({headers:a,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:r}=a(),l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(qh,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=t,c&&(c=!1,l={error:d,text:l})}}c?(e.next(new Vh({body:l,headers:n,status:s,statusText:o,url:r||void 0})),e.complete()):e.error(new jh({error:l,headers:n,status:s,statusText:o,url:r||void 0}))},r=t=>{const{url:n}=a(),s=new jh({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let l=!1;const c=n=>{l||(e.next(a()),l=!0);let s={type:Lh.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},d=t=>{let i={type:Lh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",r),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",d)),i.send(n),e.next({type:Lh.Sent}),()=>{i.removeEventListener("error",r),i.removeEventListener("load",o),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",d)),i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Yh))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();const Jh=new s.w("XSRF_COOKIE_NAME"),Zh=new s.w("XSRF_HEADER_NAME");class Qh{}let tu=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(ve.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(ve.e),s.Oc(s.J),s.Oc(Jh))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),eu=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Qh),s.Oc(Zh))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),iu=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Gh,[]);this.chain=t.reduceRight((t,e)=>new Wh(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Ah),s.Oc(s.x))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),nu=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:eu,useClass:Hh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Jh,useValue:e.cookieName}:[],e.headerName?{provide:Zh,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[eu,{provide:Gh,useExisting:eu,multi:!0},{provide:Qh,useClass:tu},{provide:Jh,useValue:"XSRF-TOKEN"},{provide:Zh,useValue:"X-XSRF-TOKEN"}]}),t})(),su=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[Uh,{provide:Oh,useClass:iu},Xh,{provide:Ah,useExisting:Xh},Kh,{provide:Yh,useExisting:Kh}],imports:[[nu.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const au=["*"];function ou(t){return Error(`Unable to find icon with the name "${t}"`)}function ru(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function lu(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class cu{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let du=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new cu(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const a=this._sanitizer.sanitize(s.Q.HTML,i);if(!a)throw lu(i);const o=this._createSvgElementForSingleIcon(a,n);return this._addSvgIconConfig(t,e,new cu(o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new cu(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.Q.HTML,e);if(!n)throw lu(e);const a=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new cu(a,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.Q.RESOURCE_URL,t);if(!e)throw ru(t);const i=this._cachedIconsByUrl.get(e);return i?ze(hu(i)):this._loadSvgIconFromConfig(new cu(t)).pipe(je(t=>this._cachedIconsByUrl.set(e,t)),Object(ii.a)(t=>hu(t)))}getNamedSvgIcon(t,e=""){const i=uu(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):il(ou(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?ze(hu(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(je(e=>t.svgElement=e),Object(ii.a)(t=>hu(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?ze(i):Es(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(_h(e=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(s.Q.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i),ze(null)})))).pipe(Object(ii.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw ou(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgElement){const e=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(Object(ii.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?ze(t.svgElement):this._fetchUrl(t.url).pipe(Object(ii.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const a=this._svgElementFromString("");return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(e)),Object(Ch.a)());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(uu(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Uh,8),s.Oc(n.b),s.Oc(ve.e,8),s.Oc(s.s,8))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(Uh,8),Object(s.Oc)(n.b),Object(s.Oc)(ve.e,8),Object(s.Oc)(s.s,8))},token:t,providedIn:"root"}),t})();function hu(t){return t.cloneNode(!0)}function uu(t,e){return t+":"+e}class mu{constructor(t){this._elementRef=t}}const pu=wn(mu),gu=new s.w("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(s.eb)(ve.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),fu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],bu=fu.map(t=>`[${t}]`).join(", "),_u=/^url\(['"]?#(.*?)['"]?\)$/;let vu=(()=>{class t extends pu{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=di(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(e,t).pipe(ri(1)).subscribe(t=>this._setSvgElement(t),i=>{const n=`Error retrieving icon ${t}:${e}! ${i.message}`;this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(bu),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],a=s.getAttribute(t),o=a?a.match(_u):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(du),s.Pc("aria-hidden"),s.zc(gu,8),s.zc(s.s,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[s.ic,s.jc],ngContentSelectors:au,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.ad(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),yu=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const wu=Si({passive:!0});let xu=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return ai;const e=gi(t),i=this._monitoredElements.get(e);if(i)return i.subject.asObservable();const n=new Te.a,s="cdk-text-field-autofilled",a=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",a,wu),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",a,wu)}}),n.asObservable()}stopMonitoring(t){const e=gi(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(_i),s.Oc(s.G))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(_i),Object(s.Oc)(s.G))},token:t,providedIn:"root"}),t})(),ku=(()=>{class t{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new s.t}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(xu))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),Cu=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new Te.a,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(t){this._minRows=hi(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=hi(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=di(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{kr(this._getWindow(),"resize").pipe(Gr(16),Hr(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let 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()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=e.placeholder;e.classList.add("cdk-textarea-autosize-measuring"),e.placeholder="",e.style.height=`${e.scrollHeight-4}px`,e.classList.remove("cdk-textarea-autosize-measuring"),e.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(_i),s.zc(s.G),s.zc(ve.e,8))},t.\u0275dir=s.uc({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.Sc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),Su=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vi]]}),t})(),Eu=(()=>{class t extends Cu{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return Ou(e||t)},t.\u0275dir=s.uc({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:[s.ic]}),t})();const Ou=s.Hc(Eu),Au=new s.w("MAT_INPUT_VALUE_ACCESSOR"),Du=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Iu=0;class Tu{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Pu=Cn(Tu);let Fu=(()=>{class t extends Pu{constructor(t,e,i,n,s,a,o,r,l){super(a,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=r,this._uid=`mat-input-${Iu++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new Te.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>wi().has(t));const c=this._elementRef.nativeElement;this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===c.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=di(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=di(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&wi().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=di(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(Du.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const 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}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(_i),s.zc(Ns,10),s.zc(Va,8),s.zc(to,8),s.zc(Bn),s.zc(Au,10),s.zc(xu),s.zc(s.G))},t.\u0275dir=s.uc({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&&s.Sc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(s.Ic("disabled",e.disabled)("required",e.required),s.mc("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),s.pc("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:[s.kc([{provide:Ec,useExisting:t}]),s.ic,s.jc]}),t})(),Ru=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[Bn],imports:[[Su,Vc],Su,Vc]}),t})(),Mu=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=di(t)}get inset(){return this._inset}set inset(t){this._inset=di(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.mc("aria-orientation",e.vertical?"vertical":"horizontal"),s.pc("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})(),zu=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const Lu=["*"],Nu=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Bu=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Vu=["text"];function ju(t,e){if(1&t&&s.Ac(0,"mat-pseudo-checkbox",5),2&t){const t=s.Wc();s.cd("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const $u=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Uu=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class Wu{}const Gu=yn(xn(Wu));class Hu{}const qu=xn(Hu);let Yu=(()=>{class t extends Gu{constructor(){super(...arguments),this._stateChanges=new Te.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return Ku(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.ic,s.jc],ngContentSelectors:Lu,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.ad(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const Ku=s.Hc(Yu);let Xu=(()=>{class t extends Gu{constructor(t){super(),this._elementRef=t,this._stateChanges=new Te.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s.ic,s.jc],ngContentSelectors:Lu,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.ad(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),Ju=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Zu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),tm=(()=>{class t extends qu{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new Te.a,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Hr(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=di(t)}ngAfterContentInit(){jn(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(Yu,8),s.zc(Xu,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,Ju,!0),s.rc(i,Zu,!0),s.rc(i,Vn,!0)),2&t&&(s.id(n=s.Tc())&&(e._avatar=n.first),s.id(n=s.Tc())&&(e._icon=n.first),s.id(n=s.Tc())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.pc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.ic],ngContentSelectors:Bu,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.bd(Nu),s.Fc(0,"div",0),s.Ac(1,"div",1),s.ad(2),s.Fc(3,"div",2),s.ad(4,1),s.Ec(),s.ad(5,2),s.Ec()),2&t&&(s.lc(1),s.cd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Kn],encapsulation:2,changeDetection:0}),t})();class em{}const im=xn(em);class nm{}const sm=xn(nm),am={provide:As,useExisting:Object(s.db)(()=>lm),multi:!0};class om{constructor(t,e){this.source=t,this.option=e}}let rm=(()=>{class t extends sm{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=di(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=di(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){jn(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(Object(s.db)(()=>lm)))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,Ju,!0),s.rc(i,Zu,!0),s.rc(i,Vn,!0)),2&t&&(s.id(n=s.Tc())&&(e._avatar=n.first),s.id(n=s.Tc())&&(e._icon=n.first),s.id(n=s.Tc())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&s.Bd(Vu,!0),2&t&&s.id(i=s.Tc())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.Sc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(s.mc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),s.pc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[s.ic],ngContentSelectors:Uu,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(s.bd($u),s.Fc(0,"div",0),s.Ac(1,"div",1),s.vd(2,ju,1,2,"mat-pseudo-checkbox",2),s.Fc(3,"div",3,4),s.ad(5),s.Ec(),s.ad(6,1),s.Ec()),2&t&&(s.pc("mat-list-item-content-reverse","after"==e.checkboxPosition),s.lc(1),s.cd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),s.lc(1),s.cd("ngIf",e.selectionList.multiple))},directives:[Kn,ve.t,Jn],encapsulation:2,changeDetection:0}),t})(),lm=(()=>{class t extends im{constructor(t,e,i){super(),this._element=t,this._changeDetector=i,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new s.t,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new ws(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new Te.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=di(t);if(e!==this._multiple){if(Object(s.fb)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new ws(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Bi(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Hr(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(dn(null),Hr(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Hr(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=Le(t);switch(e){case 32:case 13:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:s||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&Le(t,"ctrlKey")&&!i.isTyping()?(this.options.find(t=>!t.selected)?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new om(this,t))}_onFocus(){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}_setAllOptionsSelected(t){let e=!1;this.options.forEach(i=>{i._setSelected(t)&&(e=!0)}),e&&this._reportValueChange()}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.Pc("tabindex"),s.zc(s.j))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,rm,!0),2&t&&s.id(n=s.Tc())&&(e.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&s.Sc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onTouched()}))("keydown",(function(t){return e._keydown(t)})),2&t&&s.mc("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[s.kc([am]),s.ic,s.jc],ngContentSelectors:Lu,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.ad(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),cm=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[Un,Xn,vn,Zn,ve.c],Un,vn,Zn,zu]}),t})();const dm=["mat-menu-item",""],hm=["*"];function um(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",0),s.Sc("keydown",(function(e){return s.nd(t),s.Wc()._handleKeydown(e)}))("click",(function(){return s.nd(t),s.Wc().closed.emit("click")}))("@transformMenu.start",(function(e){return s.nd(t),s.Wc()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return s.nd(t),s.Wc()._onAnimationDone(e)})),s.Fc(1,"div",1),s.ad(2),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.cd("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.mc("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const mm={transformMenu:o("transformMenu",[h("void",d({opacity:0,transform:"scale(0.8)"})),m("void => enter",l([g(".mat-menu-content, .mat-mdc-menu-content",r("100ms linear",d({opacity:1}))),r("120ms cubic-bezier(0, 0, 0.2, 1)",d({transform:"scale(1)"}))])),m("* => void",r("100ms 25ms linear",d({opacity:0})))]),fadeInItems:o("fadeInItems",[h("showing",d({opacity:1})),m("void => *",[d({opacity:0}),r("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let pm=(()=>{class t{constructor(t,e,i,n,s,a,o){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=a,this._changeDetectorRef=o,this._attached=new Te.a}attach(t={}){this._portal||(this._portal=new _l(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new wl(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const 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()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V),s.zc(s.n),s.zc(s.g),s.zc(s.x),s.zc(s.Y),s.zc(ve.e),s.zc(s.j))},t.\u0275dir=s.uc({type:t,selectors:[["ng-template","matMenuContent",""]]}),t})();const gm=new s.w("MAT_MENU_PANEL");class fm{}const bm=xn(yn(fm));let _m=(()=>{class t extends bm{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new Te.a,this._focused=new Te.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.monitor(this._elementRef,!1),n&&n.addItem&&n.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let i="";if(t.childNodes){const n=t.childNodes.length;for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.L,this._tabSubscription=Pe.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Te.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.t,this.close=this.closed,this.panelId=`mat-menu-panel-${ym++}`}get xPosition(){return this._xPosition}set xPosition(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=di(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=di(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Bi(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(dn(this._directDescendantItems),Xr(t=>Object(xr.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(dn(this._directDescendantItems),Xr(t=>Object(xr.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:Le(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:Le(t)||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(dn(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.G),s.zc(vm))},t.\u0275dir=s.uc({type:t,contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,pm,!0),s.rc(i,_m,!0),s.rc(i,_m,!1)),2&t&&(s.id(n=s.Tc())&&(e.lazyContent=n.first),s.id(n=s.Tc())&&(e._allItems=n),s.id(n=s.Tc())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&s.Bd(s.V,!0),2&t&&s.id(i=s.Tc())&&(e.templateRef=i.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})(),xm=(()=>{class t extends wm{}return t.\u0275fac=function(e){return km(e||t)},t.\u0275dir=s.uc({type:t,features:[s.ic]}),t})();const km=s.Hc(xm);let Cm=(()=>{class t extends xm{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.G),s.zc(vm))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[s.kc([{provide:gm,useExisting:xm},{provide:xm,useExisting:t}]),s.ic],ngContentSelectors:hm,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&&(s.bd(),s.vd(0,um,3,6,"ng-template"))},directives:[ve.q],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:[mm.transformMenu,mm.fadeInItems]},changeDetection:0}),t})();const Sm=new s.w("mat-menu-scroll-strategy"),Em={provide:Sm,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Om=Si({passive:!0});let Am=(()=>{class t{constructor(t,e,i,n,a,o,r,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=o,this._dir=r,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Pe.a.EMPTY,this._hoverSubscription=Pe.a.EMPTY,this._menuCloseSubscription=Pe.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new s.t,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.t,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Om),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=n}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Om),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof xm&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof xm?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Qe(t=>"void"===t.toState),ri(1),Hr(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){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")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new zl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,o]=[n,s],[r,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=r="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(a="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:a,overlayX:r,overlayY:n,offsetY:c},{originX:i,originY:a,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:r,overlayY:s,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:ze(),n=this._parentMenu?this._parentMenu._hovered().pipe(Qe(t=>t!==this._menuItemInstance),Qe(()=>this._menuOpen)):ze();return Object(xr.a)(t,i,n,e)}_handleMousedown(t){Zi(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Qe(t=>t===this._menuItemInstance&&!t.disabled),jc(0,Rr)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof xm&&this.menu._isAnimating?this.menu._animationDone.pipe(ri(1),jc(0,Rr),Hr(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _l(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ql),s.zc(s.q),s.zc(s.Y),s.zc(Sm),s.zc(xm,8),s.zc(_m,10),s.zc(nn,8),s.zc(Xi))},t.\u0275dir=s.uc({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.Sc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&s.mc("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})(),Dm=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[Em],imports:[vn]}),t})(),Im=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[Em],imports:[[ve.c,vn,Xn,ac,Dm],Dm]}),t})();const Tm={};function Pm(...t){let e=null,i=null;return Object(Fe.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(ks.a)(t[0])&&(t=t[0]),Object(Re.a)(t,i).lift(new Fm(e))}class Fm{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Rm(t,this.resultSelector))}}class Rm extends Nr.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Tm),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;ithis.total&&this.destination.next(t)}}const Lm=new Set;let Nm,Bm=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Vm}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Lm.has(t))try{Nm||(Nm=document.createElement("style"),Nm.setAttribute("type","text/css"),document.head.appendChild(Nm)),Nm.sheet&&(Nm.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Lm.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(_i))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(_i))},token:t,providedIn:"root"}),t})();function Vm(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let jm=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new Te.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return $m(mi(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Pm($m(mi(t)).map(t=>this._registerQuery(t).observable));return e=cn(e.pipe(ri(1)),e.pipe(t=>t.lift(new Mm(1)),Ke(0))),e.pipe(Object(ii.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new si.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(dn(e),Object(ii.a)(e=>({query:t,matches:e.matches})),Hr(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Bm),s.Oc(s.G))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(Bm),Object(s.Oc)(s.G))},token:t,providedIn:"root"}),t})();function $m(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Um={tooltipState:o("state",[h("initial, void, hidden",d({opacity:0,transform:"scale(0)"})),h("visible",d({transform:"scale(1)"})),m("* => visible",r("200ms cubic-bezier(0, 0, 0.2, 1)",u([d({opacity:0,transform:"scale(0)",offset:0}),d({opacity:.5,transform:"scale(0.99)",offset:.5}),d({opacity:1,transform:"scale(1)",offset:1})]))),m("* => hidden",r("100ms cubic-bezier(0, 0, 0.2, 1)",d({opacity:0})))])},Wm=Si({passive:!0});function Gm(t){return Error(`Tooltip position "${t}" is invalid.`)}const Hm=new s.w("mat-tooltip-scroll-strategy"),qm={provide:Hm,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Ym=new s.w("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Km=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c,d,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=a,this._ariaDescriber=o,this._focusMonitor=r,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Te.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Le(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),r.monitor(e).pipe(Hr(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&s.run(()=>this.show()):s.run(()=>this.hide(0))}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?`${t}`.trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,i)=>{t.removeEventListener(i,e,Wm)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new bl(Xm,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Hr(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Hr(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Hr(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Gm(e);i={originX:"end",originY:"center"}}const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Gm(e);i={overlayX:"start",overlayY:"center"}}const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1),Hr(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(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}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,Wm)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ql),s.zc(s.q),s.zc(hl),s.zc(s.Y),s.zc(s.G),s.zc(_i),s.zc(zi),s.zc(Xi),s.zc(Hm),s.zc(nn,8),s.zc(Ym,8),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","matTooltip",""]],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})(),Xm=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Te.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.j),s.zc(jm))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e._handleBodyInteraction()}),!1,s.kd),2&t&&s.ud("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.Fc(0,"div",0),s.Sc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),s.Xc(1,"async"),s.xd(2),s.Ec()),2&t){var i;const t=null==(i=s.Yc(1,5,e._isHandset))?null:i.matches;s.pc("mat-tooltip-handset",t),s.cd("ngClass",e.tooltipClass)("@state",e._visibility),s.lc(2),s.yd(e.message)}},directives:[ve.q],pipes:[ve.b],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:[Um.tooltipState]},changeDetection:0}),t})(),Jm=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[qm],imports:[[tn,ve.c,ac,vn],vn]}),t})();const Zm=["primaryValueBar"];class Qm{constructor(t){this._elementRef=t}}const tp=wn(Qm,"primary"),ep=new s.w("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(s.eb)(ve.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let ip=0,np=(()=>{class t extends tp{constructor(t,e,i,n){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new s.t,this._animationEndSubscription=Pe.a.EMPTY,this.mode="determinate",this.progressbarId=`mat-progress-bar-${ip++}`;const a=n?n.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${a}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=sp(hi(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=sp(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=kr(t,"transitionend").pipe(Qe(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.G),s.zc(Ae,8),s.zc(ep,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&s.Bd(Zm,!0),2&t&&s.id(i=s.Tc())&&(e._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(s.mc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),s.pc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[s.ic],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(s.Vc(),s.Fc(0,"svg",0),s.Fc(1,"defs"),s.Fc(2,"pattern",1),s.Ac(3,"circle",2),s.Ec(),s.Ec(),s.Ac(4,"rect",3),s.Ec(),s.Uc(),s.Ac(5,"div",4),s.Ac(6,"div",5,6),s.Ac(8,"div",7)),2&t&&(s.lc(2),s.cd("id",e.progressbarId),s.lc(2),s.mc("fill",e._rectangleFillValue),s.lc(1),s.cd("ngStyle",e._bufferTransform()),s.lc(1),s.cd("ngStyle",e._primaryTransform()))},directives:[ve.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function sp(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let ap=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[ve.c,vn],vn]}),t})();function op(t,e){if(1&t&&(s.Vc(),s.Ac(0,"circle",3)),2&t){const t=s.Wc();s.ud("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.mc("r",t._circleRadius)}}function rp(t,e){if(1&t&&(s.Vc(),s.Ac(0,"circle",3)),2&t){const t=s.Wc();s.ud("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.mc("r",t._circleRadius)}}function lp(t,e){if(1&t&&(s.Vc(),s.Ac(0,"circle",3)),2&t){const t=s.Wc();s.ud("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.mc("r",t._circleRadius)}}function cp(t,e){if(1&t&&(s.Vc(),s.Ac(0,"circle",3)),2&t){const t=s.Wc();s.ud("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.mc("r",t._circleRadius)}}class dp{constructor(t){this._elementRef=t}}const hp=wn(dp,"primary"),up=new s.w("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let mp=(()=>{class t extends hp{constructor(e,i,n,s,a){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!a&&!a._forceAnimations,a&&(a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=hi(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=hi(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,hi(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Oi(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}get _strokeCircumference(){return 2*Math.PI*this._circleRadius}get _strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}get _circleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,`${.95*this._strokeCircumference}`).replace(/END_VALUE/g,`${.2*this._strokeCircumference}`).replace(/DIAMETER/g,`${this.diameter}`)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(_i),s.zc(ve.e,8),s.zc(Ae,8),s.zc(up))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.mc("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),s.ud("width",e.diameter,"px")("height",e.diameter,"px"),s.pc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.ic],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&&(s.Vc(),s.Fc(0,"svg",0),s.vd(1,op,1,9,"circle",1),s.vd(2,rp,1,7,"circle",2),s.Ec()),2&t&&(s.ud("width",e.diameter,"px")("height",e.diameter,"px"),s.cd("ngSwitch","indeterminate"===e.mode),s.mc("viewBox",e._viewBox),s.lc(1),s.cd("ngSwitchCase",!0),s.lc(1),s.cd("ngSwitchCase",!1))},directives:[ve.x,ve.y],styles:[".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}.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"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),pp=(()=>{class t extends mp{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(_i),s.zc(ve.e,8),s.zc(Ae,8),s.zc(up))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.ud("width",e.diameter,"px")("height",e.diameter,"px"),s.pc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.ic],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&&(s.Vc(),s.Fc(0,"svg",0),s.vd(1,lp,1,9,"circle",1),s.vd(2,cp,1,7,"circle",2),s.Ec()),2&t&&(s.ud("width",e.diameter,"px")("height",e.diameter,"px"),s.cd("ngSwitch","indeterminate"===e.mode),s.mc("viewBox",e._viewBox),s.lc(1),s.cd("ngSwitchCase",!0),s.lc(1),s.cd("ngSwitchCase",!1))},directives:[ve.x,ve.y],styles:[".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}.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"],encapsulation:2,changeDetection:0}),t})(),gp=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vn,ve.c],vn]}),t})();const fp=["input"],bp=function(){return{enterDuration:150}},_p=["*"],vp=new s.w("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let yp=0;const wp={provide:As,useExisting:Object(s.db)(()=>kp),multi:!0};class xp{constructor(t,e){this.source=t,this.value=e}}let kp=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name=`mat-radio-group-${yp++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.t}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=di(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new xp(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.j))},t.\u0275dir=s.uc({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,Ep,!0),2&t&&s.id(n=s.Tc())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[s.kc([wp])]}),t})();class Cp{constructor(t){this._elementRef=t}}const Sp=xn(kn(Cp));let Ep=(()=>{class t extends Sp{constructor(t,e,i,n,a,o,r){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=a,this._animationMode=o,this._providerOverride=r,this._uniqueId=`mat-radio-${++yp}`,this.id=this._uniqueId,this.change=new s.t,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=a.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=di(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(di(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=di(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new xp(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.zc(kp,8),s.zc(s.q),s.zc(s.j),s.zc(Xi),s.zc(xs),s.zc(Ae,8),s.zc(vp,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&s.Bd(fp,!0),2&t&&s.id(i=s.Tc())&&(e._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&s.Sc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(s.mc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.pc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[s.ic],ngContentSelectors:_p,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(s.bd(),s.Fc(0,"label",0,1),s.Fc(2,"div",2),s.Ac(3,"div",3),s.Ac(4,"div",4),s.Fc(5,"input",5,6),s.Sc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ec(),s.Fc(7,"div",7),s.Ac(8,"div",8),s.Ec(),s.Ec(),s.Fc(9,"div",9),s.Fc(10,"span",10),s.xd(11,"\xa0"),s.Ec(),s.ad(12),s.Ec(),s.Ec()),2&t){const t=s.jd(1);s.mc("for",e.inputId),s.lc(5),s.cd("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),s.mc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),s.lc(2),s.cd("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.ed(18,bp)),s.lc(2),s.pc("mat-radio-label-before","before"==e.labelPosition)}},directives:[Kn],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),Op=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[Xn,vn],vn]}),t})();const Ap=["trigger"],Dp=["panel"];function Ip(t,e){if(1&t&&(s.Fc(0,"span",8),s.xd(1),s.Ec()),2&t){const t=s.Wc();s.lc(1),s.yd(t.placeholder||"\xa0")}}function Tp(t,e){if(1&t&&(s.Fc(0,"span"),s.xd(1),s.Ec()),2&t){const t=s.Wc(2);s.lc(1),s.yd(t.triggerValue||"\xa0")}}function Pp(t,e){1&t&&s.ad(0,0,["*ngSwitchCase","true"])}function Fp(t,e){if(1&t&&(s.Fc(0,"span",9),s.vd(1,Tp,2,1,"span",10),s.vd(2,Pp,1,0,void 0,11),s.Ec()),2&t){const t=s.Wc();s.cd("ngSwitch",!!t.customTrigger),s.lc(2),s.cd("ngSwitchCase",!0)}}function Rp(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",12),s.Fc(1,"div",13,14),s.Sc("@transformPanel.done",(function(e){return s.nd(t),s.Wc()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return s.nd(t),s.Wc()._handleKeydown(e)})),s.ad(3,1),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.cd("@transformPanelWrap",void 0),s.lc(1),s.oc("mat-select-panel ",t._getPanelTheme(),""),s.ud("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.cd("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing")}}const Mp=[[["mat-select-trigger"]],"*"],zp=["mat-select-trigger","*"],Lp={transformPanelWrap:o("transformPanelWrap",[m("* => void",g("@transformPanel",[p()],{optional:!0}))]),transformPanel:o("transformPanel",[h("void",d({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h("showing",d({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h("showing-multiple",d({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),m("void => *",r("120ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void",r("100ms 25ms linear",d({opacity:0})))])};let Np=0;const Bp=new s.w("mat-select-scroll-strategy"),Vp=new s.w("MAT_SELECT_CONFIG"),jp={provide:Bp,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class $p{constructor(t,e){this.source=t,this.value=e}}class Up{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Wp=xn(kn(yn(Cn(Up))));let Gp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-select-trigger"]]}),t})(),Hp=(()=>{class t extends Wp{constructor(t,e,i,n,a,o,r,l,c,d,h,u,m,p){super(a,n,r,l,d),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=o,this._parentFormField=c,this.ngControl=d,this._liveAnnouncer=m,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid=`mat-select-${Np++}`,this._destroy=new Te.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new Te.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=wr(()=>{const t=this.options;return t?t.changes.pipe(dn(t),Xr(()=>Object(xr.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(ri(1),Xr(()=>this.optionSelectionChanges))}),this.openedChange=new s.t,this._openedStream=this.openedChange.pipe(Qe(t=>t),Object(ii.a)(()=>{})),this._closedStream=this.openedChange.pipe(Qe(t=>!t),Object(ii.a)(()=>{})),this.selectionChange=new s.t,this.valueChange=new s.t,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,p&&(null!=p.disableOptionCentering&&(this.disableOptionCentering=p.disableOptionCentering),null!=p.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=p.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=di(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=di(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=di(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=hi(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ws(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Mr(),Hr(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Hr(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Hr(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(dn(null),Hr(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.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(ri(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!Le(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;36===e||35===e?(36===e?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const n=this.selected;n&&i!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||Le(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(ri(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return Object(s.fb)()&&console.warn(i),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Ni(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Hr(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(Hr(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(xr.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Hr(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(xr.a)(...this.options.map(t=>t._stateChanges)).pipe(Hr(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==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(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new $p(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=ls(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=cs(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,i,n)=>void 0!==e?e:t===i?n:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=ls(s,this.options,this.optionGroups);const a=i/2;this._scrollTop=this._calculateOverlayScroll(s,a,n),this._offsetY=this._calculateOverlayOffsetY(s,a,n),this._checkOverlayWithinViewport(n)}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const a=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);a>0?s+=a+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,a=Math.floor(256/n);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-a))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):a>n?this._adjustPanelDown(a,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(s.zc(ml),s.zc(s.j),s.zc(s.G),s.zc(Bn),s.zc(s.q),s.zc(nn,8),s.zc(Va,8),s.zc(to,8),s.zc(Nc,8),s.zc(Ns,10),s.Pc("tabindex"),s.zc(Bp),s.zc(qi),s.zc(Vp,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,Gp,!0),s.rc(i,rs,!0),s.rc(i,is,!0)),2&t&&(s.id(n=s.Tc())&&(e.customTrigger=n.first),s.id(n=s.Tc())&&(e.options=n),s.id(n=s.Tc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.Bd(Ap,!0),s.Bd(Dp,!0),s.Bd(nc,!0)),2&t&&(s.id(i=s.Tc())&&(e.trigger=i.first),s.id(i=s.Tc())&&(e.panel=i.first),s.id(i=s.Tc())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&s.Sc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(s.mc("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()),s.pc("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:[s.kc([{provide:Ec,useExisting:t},{provide:os,useExisting:t}]),s.ic,s.jc],ngContentSelectors:zp,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&&(s.bd(Mp),s.Fc(0,"div",0,1),s.Sc("click",(function(){return e.toggle()})),s.Fc(3,"div",2),s.vd(4,Ip,2,1,"span",3),s.vd(5,Fp,3,2,"span",4),s.Ec(),s.Fc(6,"div",5),s.Ac(7,"div",6),s.Ec(),s.Ec(),s.vd(8,Rp,4,10,"ng-template",7),s.Sc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=s.jd(1);s.lc(3),s.cd("ngSwitch",e.empty),s.lc(1),s.cd("ngSwitchCase",!0),s.lc(1),s.cd("ngSwitchCase",!1),s.lc(3),s.cd("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[ic,ve.x,ve.y,nc,ve.z,ve.q],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:[Lp.transformPanelWrap,Lp.transformPanel]},changeDetection:0}),t})(),qp=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[jp],imports:[[ve.c,ac,ds,vn],Vc,ds,vn]}),t})();const Yp=["*"];function Kp(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",2),s.Sc("click",(function(){return s.nd(t),s.Wc()._onBackdropClicked()})),s.Ec()}if(2&t){const t=s.Wc();s.pc("mat-drawer-shown",t._isShowingBackdrop())}}function Xp(t,e){1&t&&(s.Fc(0,"mat-drawer-content"),s.ad(1,2),s.Ec())}const Jp=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Zp=["mat-drawer","mat-drawer-content","*"];function Qp(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",2),s.Sc("click",(function(){return s.nd(t),s.Wc()._onBackdropClicked()})),s.Ec()}if(2&t){const t=s.Wc();s.pc("mat-drawer-shown",t._isShowingBackdrop())}}function tg(t,e){1&t&&(s.Fc(0,"mat-sidenav-content",3),s.ad(1,2),s.Ec())}const eg=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ig=["mat-sidenav","mat-sidenav-content","*"],ng={transformDrawer:o("transform",[h("open, open-instant",d({transform:"none",visibility:"visible"})),h("void",d({"box-shadow":"none",visibility:"hidden"})),m("void => open-instant",r("0ms")),m("void <=> open, open-instant => void",r("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function sg(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const ag=new s.w("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),og=new s.w("MAT_DRAWER_CONTAINER");let rg=(()=>{class t extends ul{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.j),s.zc(Object(s.db)(()=>cg)),s.zc(s.q),s.zc(hl),s.zc(s.G))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.ud("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.ic],ngContentSelectors:Yp,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.ad(0))},encapsulation:2,changeDetection:0}),t})(),lg=(()=>{class t{constructor(t,e,i,n,a,o,r){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=a,this._doc=o,this._container=r,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Te.a,this._animationEnd=new Te.a,this._animationState="void",this.openedChange=new s.t(!0),this._destroyed=new Te.a,this.onPositionChanged=new s.t,this._modeChanged=new Te.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{kr(this._elementRef.nativeElement,"keydown").pipe(Qe(t=>27===t.keyCode&&!this.disableClose&&!Le(t)),Hr(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Mr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=di(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=di(t)}get opened(){return this._opened}set opened(t){this.toggle(di(t))}get _openedStream(){return this.openedChange.pipe(Qe(t=>t),Object(ii.a)(()=>{}))}get openedStart(){return this._animationStarted.pipe(Qe(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(ii.a)(()=>{}))}get _closedStream(){return this.openedChange.pipe(Qe(t=>!t),Object(ii.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(Qe(t=>t.fromState!==t.toState&&"void"===t.toState),Object(ii.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(ri(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(Wi),s.zc(Xi),s.zc(_i),s.zc(s.G),s.zc(ve.e,8),s.zc(og,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.qc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(s.mc("align",null),s.Ad("@transform",e._animationState),s.pc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:Yp,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.bd(),s.Fc(0,"div",0),s.ad(1),s.Ec())},encapsulation:2,data:{animation:[ng.transformDrawer]},changeDetection:0}),t})(),cg=(()=>{class t{constructor(t,e,i,n,a,o=!1,r){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=r,this._drawers=new s.L,this.backdropClick=new s.t,this._destroyed=new Te.a,this._doCheckSubject=new Te.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Te.a,t&&t.change.pipe(Hr(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Hr(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=di(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:di(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(dn(this._allDrawers),Hr(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(dn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Ke(10),Hr(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const i=this._left._width;t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const i=this._right._width;e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Qe(t=>t.fromState!==t.toState),Hr(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Hr(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Hr(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Hr(Object(xr.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&sg("end"),this._end=t):(null!=this._start&&sg("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.zc(nn,8),s.zc(s.q),s.zc(s.G),s.zc(s.j),s.zc(ml),s.zc(ag),s.zc(Ae,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,rg,!0),s.rc(i,lg,!0)),2&t&&(s.id(n=s.Tc())&&(e._content=n.first),s.id(n=s.Tc())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&s.Bd(rg,!0),2&t&&s.id(i=s.Tc())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.pc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.kc([{provide:og,useExisting:t}])],ngContentSelectors:Zp,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.bd(Jp),s.vd(0,Kp,1,2,"div",0),s.ad(1),s.ad(2,1),s.vd(3,Xp,2,0,"mat-drawer-content",1)),2&t&&(s.cd("ngIf",e.hasBackdrop),s.lc(3),s.cd("ngIf",!e._content))},directives:[ve.t,rg],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})(),dg=(()=>{class t extends rg{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.j),s.zc(Object(s.db)(()=>mg)),s.zc(s.q),s.zc(hl),s.zc(s.G))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.ud("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.ic],ngContentSelectors:Yp,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.ad(0))},encapsulation:2,changeDetection:0}),t})(),hg=(()=>{class t extends lg{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=di(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=hi(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=hi(t)}}return t.\u0275fac=function(e){return ug(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.mc("align",null),s.ud("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.pc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.ic],ngContentSelectors:Yp,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.bd(),s.Fc(0,"div",0),s.ad(1),s.Ec())},encapsulation:2,data:{animation:[ng.transformDrawer]},changeDetection:0}),t})();const ug=s.Hc(hg);let mg=(()=>{class t extends cg{}return t.\u0275fac=function(e){return pg(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,dg,!0),s.rc(i,hg,!0)),2&t&&(s.id(n=s.Tc())&&(e._content=n.first),s.id(n=s.Tc())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.pc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.kc([{provide:og,useExisting:t}]),s.ic],ngContentSelectors:ig,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.bd(eg),s.vd(0,Qp,1,2,"div",0),s.ad(1),s.ad(2,1),s.vd(3,tg,2,0,"mat-sidenav-content",1)),2&t&&(s.cd("ngIf",e.hasBackdrop),s.lc(3),s.cd("ngIf",!e._content))},directives:[ve.t,dg,ul],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})();const pg=s.Hc(mg);let gg=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[ve.c,vn,pl,vi],vn]}),t})();const fg=["thumbContainer"],bg=["toggleBar"],_g=["input"],vg=function(){return{enterDuration:150}},yg=["*"],wg=new s.w("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let xg=0;const kg={provide:As,useExisting:Object(s.db)(()=>Og),multi:!0};class Cg{constructor(t,e){this.source=t,this.checked=e}}class Sg{constructor(t){this._elementRef=t}}const Eg=kn(wn(xn(yn(Sg)),"accent"));let Og=(()=>{class t extends Eg{constructor(t,e,i,n,a,o,r,l){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=o,this._animationMode=r,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId=`mat-slide-toggle-${++xg}`,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.t,this.toggleChange=new s.t,this.dragChange=new s.t,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=di(t)}get checked(){return this._checked}set checked(t){this._checked=di(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new Cg(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(Xi),s.zc(s.j),s.Pc("tabindex"),s.zc(s.G),s.zc(wg),s.zc(Ae,8),s.zc(nn,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(s.Bd(fg,!0),s.Bd(bg,!0),s.Bd(_g,!0)),2&t&&(s.id(i=s.Tc())&&(e._thumbEl=i.first),s.id(i=s.Tc())&&(e._thumbBarEl=i.first),s.id(i=s.Tc())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ic("id",e.id),s.mc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.pc("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",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[s.kc([kg]),s.ic],ngContentSelectors:yg,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&&(s.bd(),s.Fc(0,"label",0,1),s.Fc(2,"div",2,3),s.Fc(4,"input",4,5),s.Sc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ec(),s.Fc(6,"div",6,7),s.Ac(8,"div",8),s.Fc(9,"div",9),s.Ac(10,"div",10),s.Ec(),s.Ec(),s.Ec(),s.Fc(11,"span",11,12),s.Sc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Fc(13,"span",13),s.xd(14,"\xa0"),s.Ec(),s.ad(15),s.Ec(),s.Ec()),2&t){const t=s.jd(1),i=s.jd(12);s.mc("for",e.inputId),s.lc(2),s.pc("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.lc(2),s.cd("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.mc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.lc(5),s.cd("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.ed(17,vg))}},directives:[Kn,Ii],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})();const Ag={provide:Us,useExisting:Object(s.db)(()=>Dg),multi:!0};let Dg=(()=>{class t extends uo{}return t.\u0275fac=function(e){return Ig(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[s.kc([Ag]),s.ic]}),t})();const Ig=s.Hc(Dg);let Tg=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})(),Pg=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[Tg,Xn,vn,Ti],Tg,vn]}),t})();function Fg(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",1),s.Fc(1,"button",2),s.Sc("click",(function(){return s.nd(t),s.Wc().action()})),s.xd(2),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(2),s.yd(t.data.action)}}function Rg(t,e){}const Mg=Math.pow(2,31)-1;class zg{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Te.a,this._afterOpened=new Te.a,this._onAction=new Te.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Mg))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}const Lg=new s.w("MatSnackBarData");class Ng{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Bg=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(s.zc(zg),s.zc(Lg))},t.\u0275cmp=s.tc({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&&(s.Fc(0,"span"),s.xd(1),s.Ec(),s.vd(2,Fg,3,1,"div",0)),2&t&&(s.lc(1),s.yd(e.data.message),s.lc(1),s.cd("ngIf",e.hasAction))},directives:[ve.t,bs],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})();const Vg={snackBarState:o("state",[h("void, hidden",d({transform:"scale(0.8)",opacity:0})),h("visible",d({transform:"scale(1)",opacity:1})),m("* => visible",r("150ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void, * => hidden",r("75ms cubic-bezier(0.4, 0.0, 1, 1)",d({opacity:0})))])};let jg=(()=>{class t extends yl{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new Te.a,this._onEnter=new Te.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==n.politeness||n.announcementMessage?"off"===n.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>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")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.G),s.zc(s.q),s.zc(s.j),s.zc(Ng))},t.\u0275cmp=s.tc({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&s.td(kl,!0),2&t&&s.id(i=s.Tc())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&s.qc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(s.mc("role",e._role),s.Ad("@state",e._animationState))},features:[s.ic],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.vd(0,Rg,0,0,"ng-template",0)},directives:[kl],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:[Vg.snackBarState]}}),t})(),$g=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[ac,El,ve.c,vs,vn],vn]}),t})();const Ug=new s.w("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Ng}});let Wg=(()=>{class t{constructor(t,e,i,n,s,a){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage||(n.announcementMessage=t),this.openFromComponent(Bg,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=new Ol(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Ng,e]])),n=new bl(jg,e.viewContainerRef,i),s=t.attach(n);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new Ng),this._defaultConfig),e),n=this._createOverlay(i),a=this._attachSnackBarContainer(n,i),o=new zg(a,n);if(t instanceof s.V){const e=new _l(t,null,{$implicit:i.data,snackBarRef:o});o.instance=a.attachTemplatePortal(e)}else{const e=this._createInjector(i,o),n=new bl(t,void 0,e),s=a.attachComponentPortal(n);o.instance=s.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Hr(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new zl;e.direction=t.direction;let i=this._overlay.position().global();const n="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!n||"end"===t.horizontalPosition&&n,a=!s&&"center"!==t.horizontalPosition;return s?i.left("0"):a?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return new Ol(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[zg,e],[Lg,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Ql),s.Oc(qi),s.Oc(s.x),s.Oc(jm),s.Oc(t,12),s.Oc(Ug))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(Ql),Object(s.Oc)(qi),Object(s.Oc)(s.u),Object(s.Oc)(jm),Object(s.Oc)(t,12),Object(s.Oc)(Ug))},token:t,providedIn:$g}),t})();const Gg=["*",[["mat-toolbar-row"]]],Hg=["*","mat-toolbar-row"];class qg{constructor(t){this._elementRef=t}}const Yg=wn(qg);let Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Xg=(()=>{class t extends Yg{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){Object(s.fb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(t=>!(t.classList&&t.classList.contains("mat-toolbar-row"))).filter(t=>t.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(t=>!(!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.")}()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(_i),s.zc(ve.e))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,Kg,!0),2&t&&s.id(n=s.Tc())&&(e._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.ic],ngContentSelectors:Hg,decls:2,vars:0,template:function(t,e){1&t&&(s.bd(Gg),s.ad(0),s.ad(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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),t})(),Jg=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();function Zg(t,e){1&t&&s.ad(0)}const Qg=["*"];function tf(t,e){}const ef=function(t){return{animationDuration:t}},nf=function(t,e){return{value:t,params:e}},sf=["tabBodyWrapper"],af=["tabHeader"];function of(t,e){}function rf(t,e){if(1&t&&s.vd(0,of,0,0,"ng-template",9),2&t){const t=s.Wc().$implicit;s.cd("cdkPortalOutlet",t.templateLabel)}}function lf(t,e){if(1&t&&s.xd(0),2&t){const t=s.Wc().$implicit;s.yd(t.textLabel)}}function cf(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",6),s.Sc("click",(function(){s.nd(t);const i=e.$implicit,n=e.index,a=s.Wc(),o=s.jd(1);return a._handleClick(i,o,n)})),s.Fc(1,"div",7),s.vd(2,rf,1,1,"ng-template",8),s.vd(3,lf,1,1,"ng-template",8),s.Ec(),s.Ec()}if(2&t){const t=e.$implicit,i=e.index,n=s.Wc();s.pc("mat-tab-label-active",n.selectedIndex==i),s.cd("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),s.mc("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),s.lc(2),s.cd("ngIf",t.templateLabel),s.lc(1),s.cd("ngIf",!t.templateLabel)}}function df(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-tab-body",10),s.Sc("_onCentered",(function(){return s.nd(t),s.Wc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return s.nd(t),s.Wc()._setTabBodyWrapperHeight(e)})),s.Ec()}if(2&t){const t=e.$implicit,i=e.index,n=s.Wc();s.pc("mat-tab-body-active",n.selectedIndex==i),s.cd("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),s.mc("aria-labelledby",n._getTabLabelId(i))}}const hf=["tabListContainer"],uf=["tabList"],mf=["nextPaginator"],pf=["previousPaginator"],gf=["mat-tab-nav-bar",""],ff=new s.w("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let bf=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.G),s.zc(ff),s.zc(Ae,8))},t.\u0275dir=s.uc({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&s.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})(),_f=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V))},t.\u0275dir=s.uc({type:t,selectors:[["","matTabContent",""]]}),t})(),vf=(()=>{class t extends xl{}return t.\u0275fac=function(e){return yf(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.ic]}),t})();const yf=s.Hc(vf);class wf{}const xf=yn(wf),kf=new s.w("MAT_TAB_GROUP");let Cf=(()=>{class t extends xf{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new Te.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){t&&(this._templateLabel=t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _l(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.Y),s.zc(kf,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,vf,!0),s.sd(i,_f,!0,s.V)),2&t&&(s.id(n=s.Tc())&&(e.templateLabel=n.first),s.id(n=s.Tc())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;1&t&&s.td(s.V,!0),2&t&&s.id(i=s.Tc())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.ic,s.jc],ngContentSelectors:Qg,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.vd(0,Zg,1,0,"ng-template"))},encapsulation:2}),t})();const Sf={translateTab:o("translateTab",[h("center, void, left-origin-center, right-origin-center",d({transform:"none"})),h("left",d({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),h("right",d({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),m("* => left, * => right, left => center, right => center",r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),m("void => left-origin-center",[d({transform:"translate3d(-100%, 0, 0)"}),r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),m("void => right-origin-center",[d({transform:"translate3d(100%, 0, 0)"}),r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ef=(()=>{class t extends kl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=Pe.a.EMPTY,this._leavingSub=Pe.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(dn(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.n),s.zc(s.Y),s.zc(Object(s.db)(()=>Af)),s.zc(ve.e))},t.\u0275dir=s.uc({type:t,selectors:[["","matTabBodyHost",""]],features:[s.ic]}),t})(),Of=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=Pe.a.EMPTY,this._translateTabComplete=new Te.a,this._onCentering=new s.t,this._beforeCentering=new s.t,this._afterLeavingCenter=new s.t,this._onCentered=new s.t(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Mr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(nn,8),s.zc(s.j))},t.\u0275dir=s.uc({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),Af=(()=>{class t extends Of{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(nn,8),s.zc(s.j))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&s.Bd(Cl,!0),2&t&&s.id(i=s.Tc())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[s.ic],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.Fc(0,"div",0,1),s.Sc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),s.vd(2,tf,0,0,"ng-template",2),s.Ec()),2&t&&s.cd("@translateTab",s.gd(3,nf,e._position,s.fd(1,ef,e.animationDuration)))},directives:[Ef],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:[Sf.translateTab]}}),t})();const Df=new s.w("MAT_TABS_CONFIG");let If=0;class Tf{}class Pf{constructor(t){this._elementRef=t}}const Ff=wn(xn(Pf),"primary");let Rf=(()=>{class t extends Ff{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new s.L,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=Pe.a.EMPTY,this._tabLabelSubscription=Pe.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.t,this.focusChange=new s.t,this.animationDone=new s.t,this.selectedTabChange=new s.t(!0),this._groupId=If++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=di(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=hi(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new Tf;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(xr.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(Df,8),s.zc(Ae,8))},t.\u0275dir=s.uc({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.ic]}),t})(),Mf=(()=>{class t extends Rf{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(Df,8),s.zc(Ae,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,Cf,!0),2&t&&s.id(n=s.Tc())&&(e._allTabs=n)},viewQuery:function(t,e){var i;1&t&&(s.Bd(sf,!0),s.Bd(af,!0)),2&t&&(s.id(i=s.Tc())&&(e._tabBodyWrapper=i.first),s.id(i=s.Tc())&&(e._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.kc([{provide:kf,useExisting:t}]),s.ic],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(s.Fc(0,"mat-tab-header",0,1),s.Sc("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),s.vd(2,cf,4,14,"div",2),s.Ec(),s.Fc(3,"div",3,4),s.vd(5,df,1,8,"mat-tab-body",5),s.Ec()),2&t&&(s.cd("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),s.lc(2),s.cd("ngForOf",e._tabs),s.lc(1),s.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.lc(2),s.cd("ngForOf",e._tabs))},directives:function(){return[$f,ve.s,Nf,Kn,Ji,ve.t,kl,Af]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.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{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.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})();class zf{}const Lf=yn(zf);let Nf=(()=>{class t extends Lf{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(s.mc("aria-disabled",!!e.disabled),s.pc("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.ic]}),t})();const Bf=Si({passive:!0});let Vf=(()=>{class t{constructor(t,e,i,n,a,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=a,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Te.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Te.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.t,this.indexFocused=new s.t,a.runOutsideAngular(()=>{kr(t.nativeElement,"mouseleave").pipe(Hr(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=hi(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){kr(this._previousPaginator.nativeElement,"touchstart",Bf).pipe(Hr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),kr(this._nextPaginator.nativeElement,"touchstart",Bf).pipe(Hr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:ze(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Bi(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(xr.a)(t,e,this._items.changes).pipe(Hr(this._destroyed)).subscribe(()=>{i(),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Hr(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Le(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.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t);break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let a,o;"ltr"==this._getLayoutDirection()?(a=n,o=a+s):(o=this._tabList.nativeElement.offsetWidth-n,a=o-s);const r=this.scrollDistance,l=this.scrollDistance+i;al&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const 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()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Ur(650,100).pipe(Hr(Object(xr.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(ml),s.zc(nn,8),s.zc(s.G),s.zc(_i),s.zc(Ae,8))},t.\u0275dir=s.uc({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),jf=(()=>{class t extends Vf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(ml),s.zc(nn,8),s.zc(s.G),s.zc(_i),s.zc(Ae,8))},t.\u0275dir=s.uc({type:t,inputs:{disableRipple:"disableRipple"},features:[s.ic]}),t})(),$f=(()=>{class t extends jf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.j),s.zc(ml),s.zc(nn,8),s.zc(s.G),s.zc(_i),s.zc(Ae,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,Nf,!1),2&t&&s.id(n=s.Tc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(s.td(bf,!0),s.td(hf,!0),s.td(uf,!0),s.Bd(mf,!0),s.Bd(pf,!0)),2&t&&(s.id(i=s.Tc())&&(e._inkBar=i.first),s.id(i=s.Tc())&&(e._tabListContainer=i.first),s.id(i=s.Tc())&&(e._tabList=i.first),s.id(i=s.Tc())&&(e._nextPaginator=i.first),s.id(i=s.Tc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.ic],ngContentSelectors:Qg,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&&(s.bd(),s.Fc(0,"div",0,1),s.Sc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),s.Ac(2,"div",2),s.Ec(),s.Fc(3,"div",3,4),s.Sc("keydown",(function(t){return e._handleKeydown(t)})),s.Fc(5,"div",5,6),s.Sc("cdkObserveContent",(function(){return e._onContentChanges()})),s.Fc(7,"div",7),s.ad(8),s.Ec(),s.Ac(9,"mat-ink-bar"),s.Ec(),s.Ec(),s.Fc(10,"div",8,9),s.Sc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),s.Ac(12,"div",2),s.Ec()),2&t&&(s.pc("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.cd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.lc(5),s.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.lc(5),s.pc("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.cd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Kn,Ii,bf],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-labels{justify-content:center}[mat-align-tabs=end] .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})(),Uf=(()=>{class t extends Vf{constructor(t,e,i,n,s,a,o){super(t,n,s,e,i,a,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(dn(null),Hr(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(t){if(!this._items)return;const e=this._items.toArray();for(let i=0;i{class t extends Uf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(nn,8),s.zc(s.G),s.zc(s.j),s.zc(ml),s.zc(_i,8),s.zc(Ae,8))},t.\u0275cmp=s.tc({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,Yf,!0),2&t&&s.id(n=s.Tc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(s.td(bf,!0),s.td(hf,!0),s.td(uf,!0),s.Bd(mf,!0),s.Bd(pf,!0)),2&t&&(s.id(i=s.Tc())&&(e._inkBar=i.first),s.id(i=s.Tc())&&(e._tabListContainer=i.first),s.id(i=s.Tc())&&(e._tabList=i.first),s.id(i=s.Tc())&&(e._nextPaginator=i.first),s.id(i=s.Tc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&s.pc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.ic],attrs:gf,ngContentSelectors:Qg,decls:13,vars:6,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-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["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&&(s.bd(),s.Fc(0,"div",0,1),s.Sc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),s.Ac(2,"div",2),s.Ec(),s.Fc(3,"div",3,4),s.Sc("keydown",(function(t){return e._handleKeydown(t)})),s.Fc(5,"div",5,6),s.Sc("cdkObserveContent",(function(){return e._onContentChanges()})),s.Fc(7,"div",7),s.ad(8),s.Ec(),s.Ac(9,"mat-ink-bar"),s.Ec(),s.Ec(),s.Fc(10,"div",8,9),s.Sc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),s.Ac(12,"div",2),s.Ec()),2&t&&(s.pc("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.cd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.lc(10),s.pc("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.cd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Kn,Ii,bf],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-tab-links{display:flex}[mat-align-tabs=center] .mat-tab-links{justify-content:center}[mat-align-tabs=end] .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})();class Gf{}const Hf=kn(xn(yn(Gf)));let qf=(()=>{class t extends Hf{constructor(t,e,i,n,s,a){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===a&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),s.monitor(e)}get active(){return this._isActive}set active(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Uf),s.zc(s.q),s.zc(Yn,8),s.Pc("tabindex"),s.zc(Xi),s.zc(Ae,8))},t.\u0275dir=s.uc({type:t,inputs:{active:"active"},features:[s.ic]}),t})(),Yf=(()=>{class t extends qf{constructor(t,e,i,n,s,a,o,r){super(t,e,s,a,o,r),this._tabLinkRipple=new qn(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Wf),s.zc(s.q),s.zc(s.G),s.zc(_i),s.zc(Yn,8),s.Pc("tabindex"),s.zc(Xi),s.zc(Ae,8))},t.\u0275dir=s.uc({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(s.mc("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),s.pc("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.ic]}),t})(),Kf=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[ve.c,vn,El,Xn,Ti,tn],vn]}),t})();function Xf(t,e){if(1&t&&(s.Fc(0,"mat-option",19),s.xd(1),s.Ec()),2&t){const t=e.$implicit;s.cd("value",t),s.lc(1),s.zd(" ",t," ")}}function Jf(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-form-field",16),s.Fc(1,"mat-select",17),s.Sc("selectionChange",(function(e){return s.nd(t),s.Wc(2)._changePageSize(e.value)})),s.vd(2,Xf,2,2,"mat-option",18),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.cd("color",t.color),s.lc(1),s.cd("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.lc(1),s.cd("ngForOf",t._displayedPageSizeOptions)}}function Zf(t,e){if(1&t&&(s.Fc(0,"div",20),s.xd(1),s.Ec()),2&t){const t=s.Wc(2);s.lc(1),s.yd(t.pageSize)}}function Qf(t,e){if(1&t&&(s.Fc(0,"div",12),s.Fc(1,"div",13),s.xd(2),s.Ec(),s.vd(3,Jf,3,5,"mat-form-field",14),s.vd(4,Zf,2,1,"div",15),s.Ec()),2&t){const t=s.Wc();s.lc(2),s.zd(" ",t._intl.itemsPerPageLabel," "),s.lc(1),s.cd("ngIf",t._displayedPageSizeOptions.length>1),s.lc(1),s.cd("ngIf",t._displayedPageSizeOptions.length<=1)}}function tb(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",21),s.Sc("click",(function(){return s.nd(t),s.Wc().firstPage()})),s.Vc(),s.Fc(1,"svg",7),s.Ac(2,"path",22),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.cd("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.mc("aria-label",t._intl.firstPageLabel)}}function eb(t,e){if(1&t){const t=s.Gc();s.Vc(),s.Uc(),s.Fc(0,"button",23),s.Sc("click",(function(){return s.nd(t),s.Wc().lastPage()})),s.Vc(),s.Fc(1,"svg",7),s.Ac(2,"path",24),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.cd("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.mc("aria-label",t._intl.lastPageLabel)}}let ib=(()=>{class t{constructor(){this.changes=new Te.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.vc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const nb={provide:ib,deps:[[new s.H,new s.R,ib]],useFactory:function(t){return t||new ib}},sb=new s.w("MAT_PAGINATOR_DEFAULT_OPTIONS");class ab{}const ob=yn(Sn(ab));let rb=(()=>{class t extends ob{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.t,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(hi(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=hi(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(hi(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>hi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=di(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=di(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(ib),s.zc(s.j),s.zc(sb,8))},t.\u0275cmp=s.tc({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[s.ic],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.Fc(1,"div",1),s.vd(2,Qf,5,3,"div",2),s.Fc(3,"div",3),s.Fc(4,"div",4),s.xd(5),s.Ec(),s.vd(6,tb,3,5,"button",5),s.Fc(7,"button",6),s.Sc("click",(function(){return e.previousPage()})),s.Vc(),s.Fc(8,"svg",7),s.Ac(9,"path",8),s.Ec(),s.Ec(),s.Uc(),s.Fc(10,"button",9),s.Sc("click",(function(){return e.nextPage()})),s.Vc(),s.Fc(11,"svg",7),s.Ac(12,"path",10),s.Ec(),s.Ec(),s.vd(13,eb,3,5,"button",11),s.Ec(),s.Ec(),s.Ec()),2&t&&(s.lc(2),s.cd("ngIf",!e.hidePageSize),s.lc(3),s.zd(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.lc(1),s.cd("ngIf",e.showFirstLastButtons),s.lc(1),s.cd("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.mc("aria-label",e._intl.previousPageLabel),s.lc(3),s.cd("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.mc("aria-label",e._intl.nextPageLabel),s.lc(3),s.cd("ngIf",e.showFirstLastButtons))},directives:[ve.t,bs,Km,Bc,Hp,ve.s,rs],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),lb=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[nb],imports:[[ve.c,vs,qp,Jm]]}),t})();const cb=["mat-sort-header",""];function db(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",3),s.Sc("@arrowPosition.start",(function(){return s.nd(t),s.Wc()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return s.nd(t),s.Wc()._disableViewStateAnimation=!1})),s.Ac(1,"div",4),s.Fc(2,"div",5),s.Ac(3,"div",6),s.Ac(4,"div",7),s.Ac(5,"div",8),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.cd("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),s.lc(2),s.cd("@indicator",t._getArrowDirectionState()),s.lc(1),s.cd("@leftPointer",t._getArrowDirectionState()),s.lc(1),s.cd("@rightPointer",t._getArrowDirectionState())}}const hb=["*"];class ub{}const mb=Sn(yn(ub));let pb=(()=>{class t extends mb{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new Te.a,this.start="asc",this._direction="",this.sortChange=new s.t}get direction(){return this._direction}set direction(t){if(Object(s.fb)()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(`${t} is not a valid sort direction ('asc' or 'desc').`)}(t);this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=di(t)}register(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error(`Cannot have two MatSortables with the same id (${t.id}).`);this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),i=e.indexOf(this.direction)+1;return i>=e.length&&(i=0),e[i]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return gb(e||t)},t.\u0275dir=s.uc({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:[s.ic,s.jc]}),t})();const gb=s.Hc(pb),fb=fn.ENTERING+" "+gn.STANDARD_CURVE,bb={indicator:o("indicator",[h("active-asc, asc",d({transform:"translateY(0px)"})),h("active-desc, desc",d({transform:"translateY(10px)"})),m("active-asc <=> active-desc",r(fb))]),leftPointer:o("leftPointer",[h("active-asc, asc",d({transform:"rotate(-45deg)"})),h("active-desc, desc",d({transform:"rotate(45deg)"})),m("active-asc <=> active-desc",r(fb))]),rightPointer:o("rightPointer",[h("active-asc, asc",d({transform:"rotate(45deg)"})),h("active-desc, desc",d({transform:"rotate(-45deg)"})),m("active-asc <=> active-desc",r(fb))]),arrowOpacity:o("arrowOpacity",[h("desc-to-active, asc-to-active, active",d({opacity:1})),h("desc-to-hint, asc-to-hint, hint",d({opacity:.54})),h("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",d({opacity:0})),m("* => asc, * => desc, * => active, * => hint, * => void",r("0ms")),m("* <=> *",r(fb))]),arrowPosition:o("arrowPosition",[m("* => desc-to-hint, * => desc-to-active",r(fb,u([d({transform:"translateY(-25%)"}),d({transform:"translateY(0)"})]))),m("* => hint-to-desc, * => active-to-desc",r(fb,u([d({transform:"translateY(0)"}),d({transform:"translateY(25%)"})]))),m("* => asc-to-hint, * => asc-to-active",r(fb,u([d({transform:"translateY(25%)"}),d({transform:"translateY(0)"})]))),m("* => hint-to-asc, * => active-to-asc",r(fb,u([d({transform:"translateY(0)"}),d({transform:"translateY(-25%)"})]))),h("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",d({transform:"translateY(0)"})),h("hint-to-desc, active-to-desc, desc",d({transform:"translateY(-25%)"})),h("hint-to-asc, active-to-asc, asc",d({transform:"translateY(25%)"}))]),allowChildren:o("allowChildren",[m("* <=> *",[g("@*",p(),{optional:!0})])])};let _b=(()=>{class t{constructor(){this.changes=new Te.a,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.vc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vb={provide:_b,deps:[[new s.H,new s.R,_b]],useFactory:function(t){return t||new _b}};class yb{}const wb=yn(yb);let xb=(()=>{class t extends wb{constructor(t,e,i,n,s,a){if(super(),this._intl=t,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=a,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",!i)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");this._rerenderSubscription=Object(xr.a)(i.sortChange,i._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()}),s&&a&&s.monitor(a,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=di(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngOnDestroy(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(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})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_handleClick(){if(this._isDisabled())return;this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(_b),s.zc(s.j),s.zc(pb,8),s.zc("MAT_SORT_HEADER_COLUMN_DEF",8),s.zc(Xi),s.zc(s.q))},t.\u0275cmp=s.tc({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(s.mc("aria-sort",e._getAriaSortAttribute()),s.pc("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[s.ic],attrs:cb,ngContentSelectors:hb,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["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&&(s.bd(),s.Fc(0,"div",0),s.Fc(1,"button",1),s.ad(2),s.Ec(),s.vd(3,db,6,6,"div",2),s.Ec()),2&t&&(s.pc("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),s.lc(1),s.mc("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),s.lc(2),s.cd("ngIf",e._renderArrow()))},directives:[ve.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.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:[bb.indicator,bb.leftPointer,bb.rightPointer,bb.arrowOpacity,bb.arrowPosition,bb.allowChildren]},changeDetection:0}),t})(),kb=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[vb],imports:[[ve.c]]}),t})();class Cb extends Te.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new rl.a;return this._value}next(t){super.next(this._value=t)}}const Sb=[[["caption"]]],Eb=["caption"];function Ob(t,e){if(1&t&&(s.Fc(0,"th",3),s.xd(1),s.Ec()),2&t){const t=s.Wc();s.ud("text-align",t.justify),s.lc(1),s.zd(" ",t.headerText," ")}}function Ab(t,e){if(1&t&&(s.Fc(0,"td",4),s.xd(1),s.Ec()),2&t){const t=e.$implicit,i=s.Wc();s.ud("text-align",i.justify),s.lc(1),s.zd(" ",i.dataAccessor(t,i.name)," ")}}function Db(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=di(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ib=new s.w("CDK_TABLE"),Tb=new s.w("text-column-options");let Pb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Fb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Rb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class Mb{}const zb=Db(Mb);let Lb=(()=>{class t extends zb{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=di(t),this._hasStickyChanged=e!==this._stickyEnd}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ib,8))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,Pb,!0),s.rc(i,Fb,!0),s.rc(i,Rb,!0)),2&t&&(s.id(n=s.Tc())&&(e.cell=n.first),s.id(n=s.Tc())&&(e.headerCell=n.first),s.id(n=s.Tc())&&(e.footerCell=n.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s.kc([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.ic]}),t})();class Nb{constructor(t,e){e.nativeElement.classList.add(`cdk-column-${t.cssClassFriendlyName}`)}}let Bb=(()=>{class t extends Nb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Lb),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.ic]}),t})(),Vb=(()=>{class t extends Nb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Lb),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[s.ic]}),t})(),jb=(()=>{class t extends Nb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Lb),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.ic]}),t})(),$b=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Gb?t.headerCell.template:this instanceof Yb?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(t){s.Rc()},t.\u0275dir=s.uc({type:t,features:[s.jc]}),t})();class Ub extends $b{}const Wb=Db(Ub);let Gb=(()=>{class t extends Wb{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V),s.zc(s.y),s.zc(Ib,8))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.ic,s.jc]}),t})();class Hb extends $b{}const qb=Db(Hb);let Yb=(()=>{class t extends qb{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V),s.zc(s.y),s.zc(Ib,8))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.ic,s.jc]}),t})(),Kb=(()=>{class t extends $b{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V),s.zc(s.y),s.zc(Ib,8))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.ic]}),t})(),Xb=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.Y))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),Jb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Bc(0,0)},directives:[Xb],encapsulation:2}),t})(),Zb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Bc(0,0)},directives:[Xb],encapsulation:2}),t})(),Qb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Bc(0,0)},directives:[Xb],encapsulation:2}),t})();const t_=["top","bottom","left","right"];class e_{constructor(t,e,i,n=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._isBrowser=n}clearStickyPositioning(t,e){for(const i of t)if(i.nodeType===i.ELEMENT_NODE){this._removeStickyStyle(i,e);for(let t=0;tt)||i.some(t=>t);if(!t.length||!n||!this._isBrowser)return;const s=t[0],a=s.children.length,o=this._getCellWidths(s),r=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,i),c="rtl"===this.direction;for(const d of t)for(let t=0;t!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)}_removeStickyStyle(t,e){for(const i of e)t.style[i]="";t.style.zIndex=this._getCalculatedZIndex(t),t_.some(e=>!!t.style[e])||(t.style.position="",t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i){t.classList.add(this._stickCellCss),t.style[e]=`${i}px`,t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of t_)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t){const e=[],i=t.children;for(let n=0;n0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}function i_(t){return Error(`Could not find column with id "${t}".`)}let n_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.Y),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","rowOutlet",""]]}),t})(),s_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.Y),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),a_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.Y),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),o_=(()=>{class t{constructor(t,e,i,n,s,a,o){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._onDestroy=new Te.a,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._multiTemplateDataRows=!1,this.viewChange=new Cb({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){Object(s.fb)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}.`),this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=di(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){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.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),ys(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return;const e=this._rowOutlet.viewContainer;t.forEachOperation((t,i,n)=>{if(null==t.previousIndex)this._insertRow(t.item,n);else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this.updateStickyColumnStyles()}setHeaderRowDef(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}setFooterRowDef(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),r_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{if(this._columnDefsByName.has(t.name))throw Error(`Duplicate column definition name provided: "${t.name}".`);this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=r_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=r_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=r_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff();this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}_switchDataSource(t){this._data=[],ys(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}_observeRenderChanges(){if(!this.dataSource)return;let t;if(ys(this.dataSource)?t=this.dataSource.connect(this):(e=this.dataSource)&&(e instanceof si.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=ze(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");var e;this._renderChangeSubscription=t.pipe(Hr(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>{const e=this._columnDefsByName.get(t);if(!e)throw i_(t);return e}),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}if(!i.length)throw function(t){return Error("Could not find a matching row definition for the"+`provided row data: ${JSON.stringify(t)}`)}(t);return i}_insertRow(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}_renderRow(t,e,i,n={}){t.viewContainer.createEmbeddedView(e.template,n,i);for(let s of this._getCellTemplates(e))Xb.mostRecentCellOutlet&&Xb.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);if(!i)throw i_(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup"),e.appendChild(i.outlet.elementRef.nativeElement),t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new e_(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:ze()).pipe(Hr(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.y),s.zc(s.j),s.zc(s.q),s.Pc("role"),s.zc(nn,8),s.zc(ve.e),s.zc(_i))},t.\u0275cmp=s.tc({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,Lb,!0),s.rc(i,Kb,!0),s.rc(i,Gb,!0),s.rc(i,Yb,!0)),2&t&&(s.id(n=s.Tc())&&(e._contentColumnDefs=n),s.id(n=s.Tc())&&(e._contentRowDefs=n),s.id(n=s.Tc())&&(e._contentHeaderRowDefs=n),s.id(n=s.Tc())&&(e._contentFooterRowDefs=n))},viewQuery:function(t,e){var i;1&t&&(s.td(n_,!0),s.td(s_,!0),s.td(a_,!0)),2&t&&(s.id(i=s.Tc())&&(e._rowOutlet=i.first),s.id(i=s.Tc())&&(e._headerRowOutlet=i.first),s.id(i=s.Tc())&&(e._footerRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[s.kc([{provide:Ib,useExisting:t}])],ngContentSelectors:Eb,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.bd(Sb),s.ad(0),s.Bc(1,0),s.Bc(2,1),s.Bc(3,2))},directives:[s_,n_,a_],encapsulation:2}),t})();function r_(t,e){return t.concat(Array.from(e))}let l_=(()=>{class t{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),!this._table)throw Error("Text column could not find a parent table for registration.");this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;if(Object(s.fb)()&&!t)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(o_,8),s.zc(Tb,8))},t.\u0275cmp=s.tc({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var i;1&t&&(s.td(Lb,!0),s.td(Pb,!0),s.td(Fb,!0)),2&t&&(s.id(i=s.Tc())&&(e.columnDef=i.first),s.id(i=s.Tc())&&(e.cell=i.first),s.id(i=s.Tc())&&(e.headerCell=i.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(s.Dc(0,0),s.vd(1,Ob,2,3,"th",1),s.vd(2,Ab,2,3,"td",2),s.Cc())},directives:[Lb,Fb,Pb,Bb,jb],encapsulation:2}),t})(),c_=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})();const d_=[[["caption"]]],h_=["caption"];function u_(t,e){if(1&t&&(s.Fc(0,"th",3),s.xd(1),s.Ec()),2&t){const t=s.Wc();s.ud("text-align",t.justify),s.lc(1),s.zd(" ",t.headerText," ")}}function m_(t,e){if(1&t&&(s.Fc(0,"td",4),s.xd(1),s.Ec()),2&t){const t=e.$implicit,i=s.Wc();s.ud("text-align",i.justify),s.lc(1),s.zd(" ",i.dataAccessor(t,i.name)," ")}}let p_=(()=>{class t extends o_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky"}}return t.\u0275fac=function(e){return g_(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[s.kc([{provide:o_,useExisting:t},{provide:Ib,useExisting:t}]),s.ic],ngContentSelectors:h_,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.bd(d_),s.ad(0),s.Bc(1,0),s.Bc(2,1),s.Bc(3,2))},directives:[s_,n_,a_],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),t})();const g_=s.Hc(p_);let f_=(()=>{class t extends Pb{}return t.\u0275fac=function(e){return b_(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matCellDef",""]],features:[s.kc([{provide:Pb,useExisting:t}]),s.ic]}),t})();const b_=s.Hc(f_);let __=(()=>{class t extends Fb{}return t.\u0275fac=function(e){return v_(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matHeaderCellDef",""]],features:[s.kc([{provide:Fb,useExisting:t}]),s.ic]}),t})();const v_=s.Hc(__);let y_=(()=>{class t extends Rb{}return t.\u0275fac=function(e){return w_(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matFooterCellDef",""]],features:[s.kc([{provide:Rb,useExisting:t}]),s.ic]}),t})();const w_=s.Hc(y_);let x_=(()=>{class t extends Lb{}return t.\u0275fac=function(e){return k_(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s.kc([{provide:Lb,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.ic]}),t})();const k_=s.Hc(x_);let C_=(()=>{class t extends Bb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Lb),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.ic]}),t})(),S_=(()=>{class t extends Vb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Lb),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[s.ic]}),t})(),E_=(()=>{class t extends jb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Lb),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.ic]}),t})(),O_=(()=>{class t extends Gb{}return t.\u0275fac=function(e){return A_(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s.kc([{provide:Gb,useExisting:t}]),s.ic]}),t})();const A_=s.Hc(O_);let D_=(()=>{class t extends Yb{}return t.\u0275fac=function(e){return I_(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[s.kc([{provide:Yb,useExisting:t}]),s.ic]}),t})();const I_=s.Hc(D_);let T_=(()=>{class t extends Kb{}return t.\u0275fac=function(e){return P_(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s.kc([{provide:Kb,useExisting:t}]),s.ic]}),t})();const P_=s.Hc(T_);let F_=(()=>{class t extends Jb{}return t.\u0275fac=function(e){return R_(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s.kc([{provide:Jb,useExisting:t}]),s.ic],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Bc(0,0)},directives:[Xb],encapsulation:2}),t})();const R_=s.Hc(F_);let M_=(()=>{class t extends Zb{}return t.\u0275fac=function(e){return z_(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[s.kc([{provide:Zb,useExisting:t}]),s.ic],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Bc(0,0)},directives:[Xb],encapsulation:2}),t})();const z_=s.Hc(M_);let L_=(()=>{class t extends Qb{}return t.\u0275fac=function(e){return N_(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s.kc([{provide:Qb,useExisting:t}]),s.ic],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Bc(0,0)},directives:[Xb],encapsulation:2}),t})();const N_=s.Hc(L_);let B_=(()=>{class t extends l_{}return t.\u0275fac=function(e){return V_(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["mat-text-column"]],features:[s.ic],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(t,e){1&t&&(s.Dc(0,0),s.vd(1,u_,2,3,"th",1),s.vd(2,m_,2,3,"td",2),s.Cc())},directives:[x_,__,f_,C_,E_],encapsulation:2}),t})();const V_=s.Hc(B_);let j_=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[c_,vn]]}),t})();class $_ extends class{}{constructor(t=[]){super(),this._renderData=new Cb([]),this._filter=new Cb(""),this._internalPageChanges=new Te.a,this._renderChangesSubscription=Pe.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(ui(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),a=this.sortingDataAccessor(e,i),o=0;return null!=s&&null!=a?s>a?o=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new Cb(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Object(xr.a)(this._sort.sortChange,this._sort.initialized):ze(null),e=this._paginator?Object(xr.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):ze(null),i=Pm([this._data,this._filter]).pipe(Object(ii.a)(([t])=>this._filterData(t))),n=Pm([i,t]).pipe(Object(ii.a)(([t])=>this._orderData(t))),s=Pm([n,e]).pipe(Object(ii.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}function U_(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function W_(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function G_(t,e){const i=e?"":"none";W_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function H_(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function q_(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}const Y_=Si({passive:!0}),K_=Si({passive:!1});class X_{constructor(t,e,i,n,s,a){this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=s,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Te.a,this._pointerMoveSubscription=Pe.a.EMPTY,this._pointerUpSubscription=Pe.a.EMPTY,this._scrollSubscription=Pe.a.EMPTY,this._resizeSubscription=Pe.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Te.a,this.started=new Te.a,this.released=new Te.a,this.ended=new Te.a,this.entered=new Te.a,this.exited=new Te.a,this.dropped=new Te.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{if(t.preventDefault(),!this._hasStartedDragging){const e=this._getPointerPositionOnPage(t);if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const e=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._updatePointerDirectionDelta(e),this._dropContainer)this._updateActiveDropContainer(e);else{const t=this._activeTransform;t.x=e.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=e.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:e,event:t,distance:this._getDragDistance(e),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=di(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>gi(t)),this._handles.forEach(t=>G_(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=gi(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,K_),e.addEventListener("touchstart",this._pointerDown,Y_),this._initialTransform=void 0,this._rootElement=e),this}withBoundaryElement(t){return this._boundaryElement=t?gi(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&tv(this._rootElement),tv(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&tv(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&tv(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){if(this.started.next({source:this}),ev(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){const t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(a,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(s,t)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(n),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var e}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=ev(e),s=!n&&0!==e.button,a=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor,a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(dn(null)).subscribe(()=>{this._scrollPosition=this._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());const r=this._previewTemplate;this._pickupPositionInElement=r&&r.template&&!r.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),a=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:s}),e.drop(this,i,this._initialContainer,a,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,e,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(t,e),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=J_(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i){const e=t.viewContainer.createEmbeddedView(i,t.context);e.detectChanges(),n=iv(e,this._document),this._previewRef=e,t.matchSize?nv(n,this._rootElement):n.style.transform=J_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=Z_(t),nv(n,t)}return W_(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),G_(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=J_(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=q_(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),a=q_(e,"transition-duration"),o=q_(e,"transition-delay");return H_(a[s])+H_(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=iv(this._placeholderRef,this._document)):i=Z_(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,a=ev(e)?e.targetTouches[0]:e;return{x:s.left-i.left+(a.pageX-s.left-this._scrollPosition.left),y:s.top-i.top+(a.pageY-s.top-this._scrollPosition.top)}}_getPointerPositionOnPage(t){const e=ev(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}_getConstrainedPointerPosition(t){const e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,n=this._boundaryRect,s=this._previewRect,a=n.top+e,o=n.bottom-(s.height-e);i.x=Q_(i.x,n.left+t,n.right-(s.width-t)),i.y=Q_(i.y,a,o)}return i}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-s.x),o=Math.abs(i-s.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,G_(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,K_),t.removeEventListener("touchstart",this._pointerDown,Y_)}_applyRootElementTransform(t,e){const i=J_(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,a=n.right-i.right,o=i.top-n.top,r=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>n.height?(o>0&&(e+=o),r>0&&(e-=r)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:ev(t)?e.touch:e?e.mouse:0}}function J_(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Z_(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(let s=0;s!0,this.beforeStarted=new Te.a,this.entered=new Te.a,this.exited=new Te.a,this.dropped=new Te.a,this.sorted=new Te.a,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Pe.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Te.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=Ye){return(!$r(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Ye),new si.a(i=>(i.add(e.schedule(U_,t,{subscriber:i,counter:0,period:t})),i))}(0,Er).pipe(Hr(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?uv(t,-2):2===this._verticalScrollDirection&&uv(t,2),1===this._horizontalScrollDirection?mv(t,-2):2===this._horizontalScrollDirection&&mv(t,2)})},this.element=gi(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=gi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const a=this._activeDraggables,o=a.indexOf(t),r=t.getPlaceholderElement();let l=a[s];if(l===t&&(l=a[s+1]),o>-1&&a.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(r,e),a.splice(s,0,t)}else gi(this.element).appendChild(r),a.push(t);r.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,a){this._reset(),null==a&&(a=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:a,container:this,previousContainer:i,isPointerOverContainer:n,distance:s})}withItems(t){return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&this._cacheItems(),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=gi(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getItemIndex(t){return this._isDragging?cv("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!lv(this._clientRect,e,i))return;const s=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===a&&s.length>0)return;const o="horizontal"===this._orientation,r=cv(s,e=>e.drag===t),l=s[a],c=s[r].clientRect,d=l.clientRect,h=r>a?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?n.x:n.y;const u=this._getItemOffsetPx(c,d,h),m=this._getSiblingOffsetPx(r,s,h),p=s.slice();sv(s,r,a),this.sorted.next({previousIndex:r,currentIndex:a,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?u:m,a=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(a.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,rv(e.clientRect,0,s)):(a.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,rv(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.forEach((a,o)=>{o!==this._document&&a.clientRect&&!i&&lv(a.clientRect,t,e)&&([n,s]=function(t,e,i,n){const s=pv(e,n),a=gv(e,i);let o=0,r=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(a){const e=t.scrollLeft;1===a?e>0&&(r=1):t.scrollWidth-e>t.clientWidth&&(r=2)}return[o,r]}(o,a.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:a,height:o}=this._viewportRuler.getViewportSize(),r={width:a,height:o,top:0,right:a,bottom:o,left:0};n=pv(r,e),s=gv(r,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach(t=>{const e=hv(t);t===this.element&&(this._clientRect=e),this._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:e})})}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:hv(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=gi(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>t.getRootElement().style.transform=""),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,a=e[t+-1*i];let o=s[n?"width":"height"]*i;if(a){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=a.clientRect[t]-s[e]:o+=s[t]-a.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation;return cv(this._itemPositions,({drag:a,clientRect:o},r,l)=>{if(a===t)return l.length<2;if(n){const t=s?n.x:n.y;if(a===this._previousSwap.drag&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e<=Math.floor(o.right):i>=Math.floor(o.top)&&i<=Math.floor(o.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_updateAfterScroll(t,e,i){const n=t===this._document?t.documentElement:t,s=this._parentPositions.get(t).scrollPosition,a=s.top-e,o=s.left-i;this._parentPositions.forEach((e,i)=>{e.clientRect&&t!==i&&n.contains(i)&&rv(e.clientRect,a,o)}),this._itemPositions.forEach(({clientRect:t})=>{rv(t,a,o)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}),s.top=e,s.left=i}_isOverContainer(t,e){return dv(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(n=>n._canReceive(t,e,i))}_canReceive(t,e,i){if(!dv(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=gi(this.element);return n===s||s.contains(n)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=t.target;if(this._parentPositions.get(e)){let t,i;if(e===this._document){const e=this._viewportRuler.getViewportScrollPosition();t=e.top,i=e.left}else t=e.scrollTop,i=e.scrollLeft;this._updateAfterScroll(e,t,i)}}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Oi(gi(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function rv(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function lv(t,e,i){const{top:n,right:s,bottom:a,left:o,width:r,height:l}=t,c=.05*r,d=.05*l;return i>n-d&&io-c&&e=n&&i<=s&&e>=a&&e<=o}function hv(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function uv(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function mv(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function pv(t,e){const{top:i,bottom:n,height:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}function gv(t,e){const{left:i,right:n,width:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}const fv=Si({passive:!1,capture:!0});let bv=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Te.a,this.pointerUp=new Te.a,this.scroll=new Te.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,fv)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,fv)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch"),i=t?"touchend":"mouseup";this._globalListeners.set(t?"touchmove":"mousemove",{handler:t=>this.pointerMove.next(t),options:fv}).set(i,{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fv}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(s.G),s.Oc(ve.e))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(s.G),Object(s.Oc)(ve.e))},token:t,providedIn:"root"}),t})();const _v={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let vv=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=_v){return new X_(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new ov(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(ve.e),s.Oc(s.G),s.Oc(ml),s.Oc(bv))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(ve.e),Object(s.Oc)(s.G),Object(s.Oc)(ml),Object(s.Oc)(bv))},token:t,providedIn:"root"}),t})();const yv=new s.w("CDK_DRAG_PARENT");let wv=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new Te.a,this._disabled=!1,this._parentDrag=e,G_(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(yv,8))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),xv=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V))},t.\u0275dir=s.uc({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),t})(),kv=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=di(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.V))},t.\u0275dir=s.uc({type:t,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),t})();const Cv=new s.w("CDK_DRAG_CONFIG"),Sv=new s.w("CDK_DROP_LIST");let Ev=(()=>{class t{constructor(t,e,i,n,a,o,r,l,c){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=n,this._viewContainerRef=a,this._dir=r,this._changeDetectorRef=c,this._destroyed=new Te.a,this.started=new s.t,this.released=new s.t,this.ended=new s.t,this.entered=new s.t,this.exited=new s.t,this.dropped=new s.t,this.moved=new si.a(t=>{const e=this._dragRef.moved.pipe(Object(ii.a)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,o&&this._assignDefaults(o),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=di(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.asObservable().pipe(ri(1),Hr(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(dn(this._handles),je(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),Xr(t=>Object(xr.a)(...t.map(t=>t._stateChanges.pipe(dn(t))))),Hr(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?Ov(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+`Currently attached to "${e.nodeName}".`);this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return Ov(this.element.nativeElement,t);const e=gi(t);if(Object(s.fb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:hi(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:a,draggingDisabled:o,rootElementSelector:r}=t;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),a&&(this.boundaryElement=a),r&&(this.rootElementSelector=r)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(Sv,12),s.zc(ve.e),s.zc(s.G),s.zc(s.Y),s.zc(Cv,8),s.zc(nn,8),s.zc(vv),s.zc(s.j))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,kv,!0),s.rc(i,xv,!0),s.rc(i,wv,!0)),2&t&&(s.id(n=s.Tc())&&(e._previewTemplate=n.first),s.id(n=s.Tc())&&(e._placeholderTemplate=n.first),s.id(n=s.Tc())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s.kc([{provide:yv,useExisting:t}]),s.jc]}),t})();function Ov(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let Av=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}ngOnDestroy(){this._items.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.uc({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),t})(),Dv=0,Iv=(()=>{class t{constructor(e,i,n,a,o,r,l){this.element=e,this._changeDetectorRef=n,this._dir=a,this._group=o,this._scrollDispatcher=r,this._destroyed=new Te.a,this.connectedTo=[],this.id=`cdk-drop-list-${Dv++}`,this.enterPredicate=()=>!0,this.dropped=new s.t,this.entered=new s.t,this.exited=new s.t,this.sorted=new s.t,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=di(t)}ngAfterContentInit(){if(this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t)}}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}start(){this._dropListRef.start()}drop(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}enter(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}exit(t){this._dropListRef.exit(t._dragRef)}getItemIndex(t){return this._dropListRef.getItemIndex(t._dragRef)}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(dn(this._dir.value),Hr(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=mi(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=di(this.sortingDisabled),e.autoScrollDisabled=di(this.autoScrollDisabled),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:a}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=a||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(vv),s.zc(s.j),s.zc(nn,8),s.zc(Av,12),s.zc(hl),s.zc(Cv,8))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Ic("id",e.id),s.pc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[s.kc([{provide:Av,useValue:void 0},{provide:Sv,useExisting:t}])]}),t._dropLists=[],t})(),Tv=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[vv]}),t})();class Pv{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.opacity="0",n.position="absolute",n.left=n.top="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(hP){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let Fv=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new Pv(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(ve.e))},t.\u0275prov=Object(s.vc)({factory:function(){return new t(Object(s.Oc)(ve.e))},token:t,providedIn:"root"}),t})();const Rv=new s.w("CKD_COPY_TO_CLIPBOARD_CONFIG");let Mv=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.t,this._deprecatedCopied=this.copied,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone?this._ngZone.runOutsideAngular(()=>setTimeout(n,1)):setTimeout(n,1)};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Fv),s.zc(s.G),s.zc(Rv,8))},t.\u0275dir=s.uc({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),t})(),zv=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})();function Lv(t){return _h(t)(this)}si.a.prototype.map=function(t,e){return Object(ii.a)(t,e)(this)},si.a.prototype.catch=Lv,si.a.prototype._catch=Lv,si.a.throw=il,si.a.throwError=il;const Nv={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}};var Bv=i("6BPK");const Vv=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function jv(t){return function(e){return 0===t?oi():e.lift(new $v(t))}}class $v{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new Uv(t,this.total))}}class Uv extends Ne.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Gv(t))}class Gv{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Hv(t,this.errorFactory))}}class Hv extends Ne.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function qv(){return new Vv}function Yv(t=null){return e=>e.lift(new Kv(t))}class Kv{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Xv(t,this.defaultValue))}}class Xv extends Ne.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Jv=i("SpAZ");function Zv(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Qe((e,i)=>t(e,i,n)):Jv.a,jv(1),i?Yv(e):Wv(()=>new Vv))}function Qv(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Qe((e,i)=>t(e,i,n)):Jv.a,ri(1),i?Yv(e):Wv(()=>new Vv))}class ty{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new ey(t,this.predicate,this.thisArg,this.source))}}class ey extends Ne.a{constructor(t,e,i,n){super(t),this.predicate=e,this.thisArg=i,this.source=n,this.index=0,this.thisArg=i||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function iy(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new ny(t,e,i))}}class ny{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new sy(t,this.accumulator,this.seed,this.hasSeed))}}class sy extends Ne.a{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var ay=i("mCNh");class oy{constructor(t,e){this.id=t,this.url=e}}class ry extends oy{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ly extends oy{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class cy extends oy{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class dy extends oy{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class hy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class my extends oy{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class py extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fy{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class by{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _y{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vy{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yy{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wy{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xy{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ky=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Ac(0,"router-outlet")},directives:function(){return[Ax]},encapsulation:2}),t})();class Cy{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Sy(t){return new Cy(t)}function Ey(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Oy(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthe.indexOf(t)>-1):t===e}function My(t){return Array.prototype.concat.apply([],t)}function zy(t){return t.length>0?t[t.length-1]:null}function Ly(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Ny(t){return Object(s.Nb)(t)?t:Object(s.Ob)(t)?Object(Ss.a)(Promise.resolve(t)):ze(t)}function By(t,e,i){return i?function(t,e){return Fy(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!Uy(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Ry(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,s){if(i.segments.length>s.length)return!!Uy(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!Uy(i.segments,s))return!1;for(const e in n.children){if(!i.children[e])return!1;if(!t(i.children[e],n.children[e]))return!1}return!0}{const t=s.slice(0,i.segments.length),a=s.slice(i.segments.length);return!!Uy(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,a)}}(e,i,i.segments)}(t.root,e.root)}class Vy{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sy(this.queryParams)),this._queryParamMap}toString(){return qy.serialize(this)}}class jy{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ly(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yy(this)}}class $y{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Sy(this.parameters)),this._parameterMap}toString(){return tw(this)}}function Uy(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function Wy(t,e){let i=[];return Ly(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),Ly(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class Gy{}class Hy{parse(t){const e=new aw(t);return new Vy(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return Yy(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return Ly(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=Wy(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${Yy(e)}/(${i.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Xy(e)}=${Xy(t)}`).join("&"):`${Xy(e)}=${Xy(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const qy=new Hy;function Yy(t){return t.segments.map(t=>tw(t)).join("/")}function Ky(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xy(t){return Ky(t).replace(/%3B/gi,";")}function Jy(t){return Ky(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zy(t){return decodeURIComponent(t)}function Qy(t){return Zy(t.replace(/\+/g,"%20"))}function tw(t){return`${Jy(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Jy(t)}=${Jy(e[t])}`).join("")}`;var e}const ew=/^[^\/()?;=#]+/;function iw(t){const e=t.match(ew);return e?e[0]:""}const nw=/^[^=?&#]+/,sw=/^[^?&#]+/;class aw{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jy([],{}):new jy([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new jy(t,e)),i}parseSegment(){const t=iw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new $y(Zy(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=iw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=iw(this.remaining);t&&(i=t,this.capture(i))}t[Zy(e)]=Zy(i)}parseQueryParam(t){const e=function(t){const e=t.match(nw);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(sw);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Qy(e),s=Qy(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=iw(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const a=this.parseChildren();e[s]=1===Object.keys(a).length?a.primary:new jy([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class ow{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=rw(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=rw(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=lw(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return lw(t,this._root).map(t=>t.value)}}function rw(t,e){if(t===e.value)return e;for(const i of e.children){const e=rw(t,i);if(e)return e}return null}function lw(t,e){if(t===e.value)return[e];for(const i of e.children){const n=lw(t,i);if(n.length)return n.unshift(e),n}return[]}class cw{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function dw(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class hw extends ow{constructor(t,e){super(t),this.snapshot=e,bw(this,t)}toString(){return this.snapshot.toString()}}function uw(t,e){const i=function(t,e){const i=new gw([],{},{},"",{},"primary",e,null,t.root,-1,{});return new fw("",new cw(i,[]))}(t,e),n=new Cb([new $y("",{})]),s=new Cb({}),a=new Cb({}),o=new Cb({}),r=new Cb(""),l=new mw(n,s,o,r,a,"primary",e,i.root);return l.snapshot=i.root,new hw(new cw(l,[]),i)}class mw{constructor(t,e,i,n,s,a,o,r){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=o,this._futureSnapshot=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ii.a)(t=>Sy(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ii.a)(t=>Sy(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pw(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({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:{}})}(i.slice(n))}class gw{constructor(t,e,i,n,s,a,o,r,l,c,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=o,this.routeConfig=r,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Sy(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sy(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fw extends ow{constructor(t,e){super(e),this.url=t,bw(this,e)}toString(){return _w(this._root)}}function bw(t,e){e.value._routerState=t,e.children.forEach(e=>bw(t,e))}function _w(t){const e=t.children.length>0?` { ${t.children.map(_w).join(", ")} } `:"";return`${t.value}${e}`}function vw(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Fy(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Fy(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iFy(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||yw(t.parent,e.parent))}function ww(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function xw(t,e,i,n,s){let a={};return n&&Ly(n,(t,e)=>{a[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Vy(i.root===t?e:function t(e,i,n){const s={};return Ly(e.children,(e,a)=>{s[a]=e===i?n:t(e,i,n)}),new jy(e.segments,s)}(i.root,t,e),a,s)}class kw{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ww(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==zy(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cw{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Sw(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Ew(t,e,i){if(t||(t=new jy([],{})),0===t.segments.length&&t.hasChildren())return Ow(t,e,i);const n=function(t,e,i){let n=0,s=e;const a={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return a;const e=t.segments[s],o=Sw(i[n]),r=n0&&void 0===o)break;if(o&&r&&"object"==typeof r&&void 0===r.outlets){if(!Tw(o,r,e))return a;n+=2}else{if(!Tw(o,{},e))return a;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{null!==i&&(s[n]=Ew(t.children[n],e,i))}),Ly(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new jy(t.segments,s)}}function Aw(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=Aw(new jy([],{}),0,t))}),e}function Iw(t){const e={};return Ly(t,(t,i)=>e[i]=`${t}`),e}function Tw(t,e,i){return t==i.path&&Fy(e,i.parameters)}class Pw{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),vw(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=dw(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Ly(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=dw(t),s=t.value.component?i.children:e;Ly(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=dw(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new wy(t.value.snapshot))}),t.children.length&&this.forwardEvent(new vy(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(vw(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Fw(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Fw(t){vw(t.value),t.children.forEach(Fw)}function Rw(t){return"function"==typeof t}function Mw(t){return t instanceof Vy}class zw{constructor(t){this.segmentGroup=t||null}}class Lw{constructor(t){this.urlTree=t}}function Nw(t){return new si.a(e=>e.error(new zw(t)))}function Bw(t){return new si.a(e=>e.error(new Lw(t)))}function Vw(t){return new si.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class jw{constructor(t,e,i,n,a){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(s.E)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(ii.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(_h(t=>{if(t instanceof Lw)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof zw)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(ii.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(_h(t=>{if(t instanceof zw)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new jy([],{primary:t}):t;return new Vy(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(ii.a)(t=>new jy([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return ze({});const i=[],n=[],s={};return Ly(t,(t,a)=>{const o=e(a,t).pipe(Object(ii.a)(t=>s[a]=t));"primary"===a?i.push(o):n.push(o)}),ze.apply(null,i.concat(n)).pipe(ln(),Zv(),Object(ii.a)(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,a){return ze(...i).pipe(Object(ii.a)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,a).pipe(_h(t=>{if(t instanceof zw)return ze(null);throw t}))),ln(),Qv(t=>!!t),_h((t,i)=>{if(t instanceof Vv||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return ze(new jy([],{}));throw new zw(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,a,o){return Gw(n)!==a?Nw(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a):Nw(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Bw(s):this.lineralizeSegments(i,s).pipe(Object(Sh.a)(i=>{const s=new jy(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){const{matched:o,consumedSegments:r,lastChild:l,positionalParamSegments:c}=$w(e,n,s);if(!o)return Nw(e);const d=this.applyRedirectCommands(r,n.redirectTo,c);return n.redirectTo.startsWith("/")?Bw(d):this.lineralizeSegments(n,d).pipe(Object(Sh.a)(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),a,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(ii.a)(t=>(i._loadedConfig=t,new jy(n,{})))):ze(new jy(n,{}));const{matched:s,consumedSegments:a,lastChild:o}=$w(e,i,n);if(!s)return Nw(e);const r=n.slice(o);return this.getChildConfig(t,i,n).pipe(Object(Sh.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>Ww(t,e,i)&&"primary"!==Gw(i))}(t,i,n)?{segmentGroup:Uw(new jy(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==Gw(n)&&(i[Gw(n)]=new jy([],{}));return i}(n,new jy(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>Ww(t,e,i))}(t,i,n)?{segmentGroup:Uw(new jy(t.segments,function(t,e,i,n){const s={};for(const a of i)Ww(t,e,a)&&!n[Gw(a)]&&(s[Gw(a)]=new jy([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,r,n);return 0===o.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(ii.a)(t=>new jy(a,t))):0===n.length&&0===o.length?ze(new jy(a,{})):this.expandSegment(i,s,n,o,"primary",!0).pipe(Object(ii.a)(t=>new jy(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?ze(new Ay(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ze(e._loadedConfig):function(t,e,i){const n=e.canLoad;return n&&0!==n.length?Object(Ss.a)(n).pipe(Object(ii.a)(n=>{const s=t.get(n);let a;if(function(t){return t&&Rw(t.canLoad)}(s))a=s.canLoad(e,i);else{if(!Rw(s))throw new Error("Invalid CanLoad guard");a=s(e,i)}return Ny(a)})).pipe(ln(),(s=t=>!0===t,t=>t.lift(new ty(s,void 0,t)))):ze(!0);var s}(t.injector,e,i).pipe(Object(Sh.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(ii.a)(t=>(e._loadedConfig=t,t))):function(t){return new si.a(e=>e.error(Ey(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):ze(new Ay([],t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return ze(i);if(n.numberOfChildren>1||!n.children.primary)return Vw(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Vy(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ly(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let a={};return Ly(e.children,(e,s)=>{a[s]=this.createSegmentGroup(t,e,i,n)}),new jy(s,a)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function $w(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||Oy)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Uw(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new jy(t.segments.concat(e.segments),e.children)}return t}function Ww(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function Gw(t){return t.outlet||"primary"}class Hw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class qw{constructor(t,e){this.component=t,this.route=e}}function Yw(t,e,i){const n=t._root;return function t(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const o=dw(i);return e.children.forEach(e=>{!function(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,r=i?i.value:null,l=n?n.getContext(e.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Uy(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Uy(t.url,e.url)||!Fy(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yw(t,e)||!Fy(t.queryParams,e.queryParams);case"paramsChange":default:return!yw(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Hw(s)):(o.data=r.data,o._resolvedData=r._resolvedData),t(e,i,o.component?l?l.children:null:n,s,a),c&&a.canDeactivateChecks.push(new qw(l&&l.outlet&&l.outlet.component||null,r))}else r&&Xw(i,l,a),a.canActivateChecks.push(new Hw(s)),t(e,null,o.component?l?l.children:null:n,s,a)}(e,o[e.value.outlet],n,s.concat([e.value]),a),delete o[e.value.outlet]}),Ly(o,(t,e)=>Xw(t,n.getContext(e),a)),a}(n,e?e._root:null,i,[n.value])}function Kw(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Xw(t,e,i){const n=dw(t),s=t.value;Ly(n,(t,n)=>{Xw(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new qw(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Jw=Symbol("INITIAL_VALUE");function Zw(){return Xr(t=>Pm(...t.map(t=>t.pipe(ri(1),dn(Jw)))).pipe(iy((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Jw)return t;if(n===Jw&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Mw(n))return n}return t},t)},Jw),Qe(t=>t!==Jw),Object(ii.a)(t=>Mw(t)?t:!0===t),ri(1)))}function Qw(t,e){return null!==t&&e&&e(new yy(t)),ze(!0)}function tx(t,e){return null!==t&&e&&e(new _y(t)),ze(!0)}function ex(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?ze(n.map(n=>wr(()=>{const s=Kw(n,e,i);let a;if(function(t){return t&&Rw(t.canActivate)}(s))a=Ny(s.canActivate(e,t));else{if(!Rw(s))throw new Error("Invalid CanActivate guard");a=Ny(s(e,t))}return a.pipe(Qv())}))).pipe(Zw()):ze(!0)}function ix(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>wr(()=>ze(e.guards.map(s=>{const a=Kw(s,e.node,i);let o;if(function(t){return t&&Rw(t.canActivateChild)}(a))o=Ny(a.canActivateChild(n,t));else{if(!Rw(a))throw new Error("Invalid CanActivateChild guard");o=Ny(a(n,t))}return o.pipe(Qv())})).pipe(Zw())));return ze(s).pipe(Zw())}class nx{}class sx{constructor(t,e,i,n,s,a){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a}recognize(){try{const t=rx(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new gw([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new cw(i,e),s=new fw(this.url,n);return this.inheritParamsAndData(s._root),ze(s)}catch(t){return new si.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=pw(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=Wy(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const a of t)try{return this.processSegmentAgainstRoute(a,e,i,n)}catch(s){if(!(s instanceof nx))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new nx}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new nx;if((t.outlet||"primary")!==n)throw new nx;let s,a=[],o=[];if("**"===t.path){const a=i.length>0?zy(i).parameters:{};s=new gw(i,a,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dx(t),n,t.component,t,ax(e),ox(e)+i.length,hx(t))}else{const r=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new nx;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||Oy)(i,t,e);if(!n)throw new nx;const s={};Ly(n.posParams,(t,e)=>{s[e]=t.path});const a=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:a}}(e,t,i);a=r.consumedSegments,o=i.slice(r.lastChild),s=new gw(a,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dx(t),n,t.component,t,ax(e),ox(e)+a.length,hx(t))}const r=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=rx(e,a,o,r,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(r,l);return[new cw(s,t)]}if(0===r.length&&0===c.length)return[new cw(s,[])];const d=this.processSegment(r,l,c,"primary");return[new cw(s,d)]}}function ax(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ox(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function rx(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>lx(t,e,i)&&"primary"!==cx(i))}(t,i,n)){const s=new jy(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const a of i)if(""===a.path&&"primary"!==cx(a)){const i=new jy([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[cx(a)]=i}return s}(t,e,n,new jy(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>lx(t,e,i))}(t,i,n)){const a=new jy(t.segments,function(t,e,i,n,s,a){const o={};for(const r of n)if(lx(t,i,r)&&!s[cx(r)]){const i=new jy([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===a?t.segments.length:e.length,o[cx(r)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}const a=new jy(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}function lx(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function cx(t){return t.outlet||"primary"}function dx(t){return t.data||{}}function hx(t){return t.resolve||{}}function ux(t,e,i,n){const s=Kw(t,e,n);return Ny(s.resolve?s.resolve(e,i):s(e,i))}function mx(t){return function(e){return e.pipe(Xr(e=>{const i=t(e);return i?Object(Ss.a)(i).pipe(Object(ii.a)(()=>e)):Object(Ss.a)([e])}))}}class px{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const gx=new s.w("ROUTES");class fx{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(ii.a)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new Ay(My(n.injector.get(gx)).map(Py),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(Ss.a)(this.loader.load(t)):Ny(t()).pipe(Object(Sh.a)(t=>t instanceof s.C?ze(t):Object(Ss.a)(this.compiler.compileModuleAsync(t))))}}class bx{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function _x(t){throw t}function vx(t,e,i){return e.parse("/")}function yx(t,e){return ze(null)}let wx=(()=>{class t{constructor(t,e,i,n,a,o,r,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Te.a,this.errorHandler=_x,this.malformedUriErrorHandler=vx,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yx,afterPreactivation:yx},this.urlHandlingStrategy=new bx,this.routeReuseStrategy=new px,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(s.E),this.console=a.get(s.jb);const c=a.get(s.G);this.isNgZoneEnabled=c instanceof s.G,this.resetConfig(l),this.currentUrlTree=new Vy(new jy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fx(o,r,t=>this.triggerEvent(new fy(t)),t=>this.triggerEvent(new by(t))),this.routerState=uw(this.currentUrlTree,this.rootComponentType),this.transitions=new Cb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Qe(t=>0!==t.id),Object(ii.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Xr(t=>{let i=!1,n=!1;return ze(t).pipe(je(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Xr(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return ze(t).pipe(Xr(t=>{const i=this.transitions.getValue();return e.next(new ry(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?ai:[t]}),Xr(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,o=this.config,function(t){return t.pipe(Xr(t=>function(t,e,i,n,s){return new jw(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,o).pipe(Object(ii.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),je(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(a){return a.pipe(Object(Sh.a)(a=>function(t,e,i,n,s="emptyOnly",a="legacy"){return new sx(t,e,i,n,s,a).recognize()}(t,e,a.urlAfterRedirects,i(a.urlAfterRedirects),n,s).pipe(Object(ii.a)(t=>Object.assign(Object.assign({},a),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),je(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),je(t=>{const i=new hy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:o}=t,r=new ry(i,this.serializeUrl(n),s,a);e.next(r);const l=uw(n,this.rootComponentType).snapshot;return ze(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ai}),mx(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!o})}),je(t=>{const e=new uy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(ii.a)(t=>Object.assign(Object.assign({},t),{guards:Yw(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(Sh.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:o}}=i;return 0===o.length&&0===a.length?ze(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(Ss.a)(t).pipe(Object(Sh.a)(t=>function(t,e,i,n,s){const a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?ze(a.map(a=>{const o=Kw(a,e,s);let r;if(function(t){return t&&Rw(t.canDeactivate)}(o))r=Ny(o.canDeactivate(t,e,i,n));else{if(!Rw(o))throw new Error("Invalid CanDeactivate guard");r=Ny(o(t,e,i,n))}return r.pipe(Qv())})).pipe(Zw()):ze(!0)}(t.component,t.route,i,e,n)),Qv(t=>!0!==t,!0))}(o,n,s,t).pipe(Object(Sh.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(Ss.a)(e).pipe(Eh(e=>Object(Ss.a)([tx(e.route.parent,n),Qw(e.route,n),ix(t,e.path,i),ex(t,e.route,i)]).pipe(ln(),Qv(t=>!0!==t,!0))),Qv(t=>!0!==t,!0))}(n,a,t,e):ze(i)),Object(ii.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),je(t=>{if(Mw(t.guardsResult)){const e=Ey(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),je(t=>{const e=new my(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Qe(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new cy(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),mx(t=>{if(t.guards.canActivateChecks.length)return ze(t).pipe(je(t=>{const e=new py(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(Object(Sh.a)(t=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=t;return s.length?Object(Ss.a)(s).pipe(Eh(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return ze({});if(1===s.length){const a=s[0];return ux(t[a],e,i,n).pipe(Object(ii.a)(t=>({[a]:t})))}const a={};return Object(Ss.a)(s).pipe(Object(Sh.a)(s=>ux(t[s],e,i,n).pipe(Object(ii.a)(t=>(a[s]=t,t))))).pipe(Zv(),Object(ii.a)(()=>a))}(t._resolve,t,e,n).pipe(Object(ii.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),pw(t,i).resolve),null)))}(t.route,n,e,i)),function(t,e){return arguments.length>=2?function(i){return Object(ay.a)(iy(t,e),jv(1),Yv(e))(i)}:function(e){return Object(ay.a)(iy((e,i,n)=>t(e,i,n+1)),jv(1))(e)}}((t,e)=>t),Object(ii.a)(e=>t)):ze(t)}))}),je(t=>{const e=new gy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,i}),mx(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!o})}),Object(ii.a)(t=>{const e=function(t,e,i){const n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=i.value;const a=function(e,i,n){return i.children.map(i=>{for(const s of n.children)if(e.shouldReuseRoute(s.value.snapshot,i.value))return t(e,i,s);return t(e,i)})}(e,i,n);return new cw(s,a)}{const n=e.retrieve(i.value);if(n){const t=n.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;nt(e,i));return new cw(n,a)}}var s}(t,e._root,i?i._root:void 0);return new hw(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),je(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,o=t=>this.triggerEvent(t),Object(ii.a)(t=>(new Pw(a,t.targetRouterState,t.currentRouterState,o).activate(s),t))),je({next(){i=!0},complete(){i=!0}}),wh(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new cy(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),_h(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Mw(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new cy(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new dy(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(a){t.reject(a)}}var s;return ai}));var s,a,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const i="popstate"===t.type?"popstate":"hashchange",n=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,i,n,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Dy(t),this.config=t.map(Py),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:a,preserveQueryParams:o,queryParamsHandling:r,preserveFragment:l}=e;Object(s.fb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=i||this.routerState.root,d=l?this.currentUrlTree.fragment:a;let h=null;if(r)switch(r){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=o?this.currentUrlTree.queryParams:n||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,i,n,s){if(0===i.length)return xw(e.root,e.root,e,n,s);const a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new kw(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return Ly(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new kw(i,e,n)}(i);if(a.toRoot())return xw(e.root,new jy([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new Cw(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new Cw(i.snapshot._urlSegment,!0,0);const n=ww(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,a=i;for(;a>s;){if(a-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Cw(n,!1,s-a)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(a,e,t),r=o.processChildren?Ow(o.segmentGroup,o.index,a.commands):Ew(o.segmentGroup,o.index,a.commands);return xw(o.segmentGroup,r,e,n,s)}(c,this.currentUrlTree,t,h,d)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.fb)()&&this.isNgZoneEnabled&&!s.G.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=Mw(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new ly(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){const a=this.getTransition();if(a&&"imperative"!==e&&"imperative"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"hashchange"==e&&"popstate"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"popstate"==e&&"hashchange"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,r,l;s?(o=s.resolve,r=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,r=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:o,reject:r,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){s.Rc()},t.\u0275dir=s.uc({type:t}),t})(),xx=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.fb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Cx(this.skipLocationChange),replaceUrl:Cx(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Cx(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Cx(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(wx),s.zc(mw),s.Pc("tabindex"),s.zc(s.M),s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),kx=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof ly&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.fb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:Cx(this.skipLocationChange),replaceUrl:Cx(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Cx(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Cx(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(wx),s.zc(mw),s.zc(ve.o))},t.\u0275dir=s.uc({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Sc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.Ic("href",e.href,s.pd),s.mc("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.jc]}),t})();function Cx(t){return""===t||!!t}let Sx=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.element=e,this.renderer=i,this.link=n,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof ly&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(wx),s.zc(s.q),s.zc(s.M),s.zc(xx,8),s.zc(kx,8))},t.\u0275dir=s.uc({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(s.rc(i,xx,!0),s.rc(i,kx,!0)),2&t&&(s.id(n=s.Tc())&&(e.links=n),s.id(n=s.Tc())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.jc]}),t})();class Ex{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ox,this.attachRef=null}}class Ox{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ex,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Ax=(()=>{class t{constructor(t,e,i,n,a){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.t,this.deactivateEvents=new s.t,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Dx(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Ox),s.zc(s.Y),s.zc(s.n),s.Pc("name"),s.zc(s.j))},t.\u0275dir=s.uc({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Dx{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===mw?this.route:t===Ox?this.childContexts:this.parent.get(t,e)}}class Ix{}class Tx{preload(t,e){return ze(null)}}let Px=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new fx(e,i,e=>t.triggerEvent(new fy(e)),e=>t.triggerEvent(new by(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Qe(t=>t instanceof ly),Eh(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.E);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(Ss.a)(i).pipe(Object(rn.a)(),Object(ii.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(Sh.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(wx),s.Oc(s.D),s.Oc(s.k),s.Oc(s.x),s.Oc(Ix))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),Fx=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ry?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ly&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof xy&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new xy(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){s.Rc()},t.\u0275dir=s.uc({type:t}),t})();const Rx=new s.w("ROUTER_CONFIGURATION"),Mx=new s.w("ROUTER_FORROOT_GUARD"),zx=[ve.n,{provide:Gy,useClass:Hy},{provide:wx,useFactory:function(t,e,i,n,s,a,o,r={},l,c){const d=new wx(null,t,e,i,n,s,a,My(o));if(l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),r.errorHandler&&(d.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(d.malformedUriErrorHandler=r.malformedUriErrorHandler),r.enableTracing){const t=Object(ve.N)();d.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return r.onSameUrlNavigation&&(d.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.urlUpdateStrategy&&(d.urlUpdateStrategy=r.urlUpdateStrategy),r.relativeLinkResolution&&(d.relativeLinkResolution=r.relativeLinkResolution),d},deps:[Gy,Ox,ve.n,s.x,s.D,s.k,gx,Rx,[class{},new s.H],[class{},new s.H]]},Ox,{provide:mw,useFactory:function(t){return t.routerState.root},deps:[wx]},{provide:s.D,useClass:s.S},Px,Tx,class{preload(t,e){return e().pipe(_h(()=>ze(null)))}},{provide:Rx,useValue:{enableTracing:!1}}];function Lx(){return new s.F("Router",wx)}let Nx=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[zx,$x(e),{provide:Mx,useFactory:jx,deps:[[wx,new s.H,new s.R]]},{provide:Rx,useValue:i||{}},{provide:ve.o,useFactory:Vx,deps:[ve.D,[new s.v(ve.a),new s.H],Rx]},{provide:Fx,useFactory:Bx,deps:[wx,ve.H,Rx]},{provide:Ix,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Tx},{provide:s.F,multi:!0,useFactory:Lx},[Ux,{provide:s.d,multi:!0,useFactory:Wx,deps:[Ux]},{provide:Hx,useFactory:Gx,deps:[Ux]},{provide:s.b,multi:!0,useExisting:Hx}]]}}static forChild(e){return{ngModule:t,providers:[$x(e)]}}}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)(s.Oc(Mx,8),s.Oc(wx,8))}}),t})();function Bx(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Fx(t,e,i)}function Vx(t,e,i={}){return i.useHash?new ve.h(t,e):new ve.B(t,e)}function jx(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function $x(t){return[{provide:s.a,multi:!0,useValue:t},{provide:gx,multi:!0,useValue:t}]}let Ux=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Te.a}appInitializer(){return this.injector.get(ve.m,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(wx),n=this.injector.get(Rx);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?ze(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Rx),i=this.injector.get(Px),n=this.injector.get(Fx),a=this.injector.get(wx),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),a.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(s.x))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();function Wx(t){return t.appInitializer.bind(t)}function Gx(t){return t.bootstrapListener.bind(t)}const Hx=new s.w("Router Initializer");let qx=(()=>{class t{constructor(t,e,i,n){this.http=t,this.router=e,this.document=i,this.snackBar=n,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=Nv,this.settings_changed=new Cb(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.unauthorized=!1,this.debugMode=!1,this.isLoggedIn=!1,this.token=null,this.user=null,this.permissions=null,this.available_permissions=null,this.reload_config=new Cb(!1),this.config_reloaded=new Cb(!1),this.service_initialized=new Cb(!1),this.initialized=!1,this.open_create_default_admin_dialog=new Cb(!1),this.config=null,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(s.fb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params=`apiKey=${this.auth_token}`,this.httpOptions={params:new Ph({fromString:this.http_params})},Bv.get(t=>{this.session_id=Bv.x64hash128(t.map((function(t){return t.value})).join(),31),this.httpOptions.params=this.httpOptions.params.set("sessionID",this.session_id)}),this.loadNavItems().subscribe(t=>{const e=this.debugMode?t:t.config_file;e&&(this.config=e.YoutubeDLMaterial,this.config.Advanced.multi_user_mode?localStorage.getItem("jwt_token")?(this.token=localStorage.getItem("jwt_token"),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.jwtAuth()):this.sendToLogin():this.setInitialized())}),this.reload_config.subscribe(t=>{t&&this.reloadConfig()})}canActivate(t,e){return new Promise(t=>{t(!0)})}setTheme(t){this.theme=this.THEMES_CONFIG[t]}startHandshake(t){return this.http.get(t+"geturl")}startHandshakeSSL(t){return this.http.get(t+"geturl")}reloadConfig(){this.loadNavItems().subscribe(t=>{const e=this.debugMode?t:t.config_file;e&&(this.config=e.YoutubeDLMaterial,this.config_reloaded.next(!0))})}getVideoFolder(){return this.http.get(this.startPath+"videofolder")}getAudioFolder(){return this.http.get(this.startPath+"audiofolder")}makeMP3(t,e,i,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:o,ui_uid:r},this.httpOptions)}makeMP4(t,e,i,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:o,ui_uid:r},this.httpOptions)}getFileStatusMp3(t){return this.http.post(this.path+"fileStatusMp3",{name:t},this.httpOptions)}getFileStatusMp4(t){return this.http.post(this.path+"fileStatusMp4",{name:t},this.httpOptions)}loadNavItems(){return Object(s.fb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}loadAsset(t){return this.http.get(`./assets/${t}`)}setConfig(t){return this.http.post(this.path+"setConfig",{new_config_file:t},this.httpOptions)}deleteFile(t,e,i=!1){return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{uid:t,blacklistMode:i},this.httpOptions)}getMp3s(){return this.http.get(this.path+"getMp3s",this.httpOptions)}getMp4s(){return this.http.get(this.path+"getMp4s",this.httpOptions)}getFile(t,e,i=null){return this.http.post(this.path+"getFile",{uid:t,type:e,uuid:i},this.httpOptions)}downloadFileFromServer(t,e,i=null,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n,subscriptionName:s,subPlaylist:a,uuid:r,uid:o},{responseType:"blob",params:this.httpOptions.params})}downloadArchive(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob",params:this.httpOptions.params})}getFileInfo(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i},this.httpOptions)}isPinSet(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}setPin(t){return this.http.post(this.path+"setPin",{pin:t},this.httpOptions)}checkPin(t){return this.http.post(this.path+"checkPin",{input_pin:t},this.httpOptions)}generateNewAPIKey(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}enableSharing(t,e,i){return this.http.post(this.path+"enableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}disableSharing(t,e,i){return this.http.post(this.path+"disableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}createPlaylist(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n},this.httpOptions)}getPlaylist(t,e){return this.http.post(this.path+"getPlaylist",{playlistID:t,type:e},this.httpOptions)}updatePlaylist(t,e,i){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:i},this.httpOptions)}removePlaylist(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e},this.httpOptions)}createSubscription(t,e,i=null,n=!1){return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i,streamingOnly:n},this.httpOptions)}unsubscribe(t,e=!1){return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e},this.httpOptions)}deleteSubscriptionFile(t,e,i){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i},this.httpOptions)}getSubscription(t){return this.http.post(this.path+"getSubscription",{id:t},this.httpOptions)}getAllSubscriptions(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}getCurrentDownloads(){return this.http.get(this.path+"downloads",this.httpOptions)}getCurrentDownload(t,e){return this.http.post(this.path+"download",{download_id:e,session_id:t},this.httpOptions)}clearDownloads(t=!1,e=null,i=null){return this.http.post(this.path+"clearDownloads",{delete_all:t,download_id:i,session_id:e||this.session_id},this.httpOptions)}updateServer(t){return this.http.post(this.path+"updateServer",{tag:t},this.httpOptions)}getUpdaterStatus(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}getLatestGithubRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}getAvailableRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}afterLogin(t,e,i,n){this.isLoggedIn=!0,this.user=t,this.permissions=i,this.available_permissions=n,this.token=e,localStorage.setItem("jwt_token",this.token),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.config_reloaded.next(!0),"/login"===this.router.url&&this.router.navigate(["/home"])}login(t,e){const i=this.http.post(this.path+"auth/login",{userid:t,password:e},this.httpOptions);return i.subscribe(t=>{t.token&&this.afterLogin(t.user,t.token,t.permissions,t.available_permissions)}),i}jwtAuth(){const t=this.http.post(this.path+"auth/jwtAuth",{},this.httpOptions);return t.subscribe(t=>{t.token&&(this.afterLogin(t.user,t.token,t.permissions,t.available_permissions),this.setInitialized())},t=>{401===t.status&&this.sendToLogin()}),t}logout(){this.user=null,this.permissions=null,this.isLoggedIn=!1,localStorage.setItem("jwt_token",null),"/login"!==this.router.url&&this.router.navigate(["/login"]),this.http_params=`apiKey=${this.auth_token}&sessionID=${this.session_id}`,this.httpOptions={params:new Ph({fromString:this.http_params})}}register(t,e){return this.http.post(this.path+"auth/register",{userid:t,username:t,password:e},this.httpOptions)}sendToLogin(){this.checkAdminCreationStatus(),"/login"!==this.router.url&&(this.router.navigate(["/login"]),this.openSnackBar("You must log in to access this page!"))}setInitialized(){this.service_initialized.next(!0),this.initialized=!0,this.config_reloaded.next(!0)}adminExists(){return this.http.post(this.path+"auth/adminExists",{},this.httpOptions)}createAdminAccount(t){return this.http.post(this.path+"auth/register",{userid:"admin",username:"admin",password:t},this.httpOptions)}checkAdminCreationStatus(){this.config.Advanced.multi_user_mode&&this.adminExists().subscribe(t=>{t.exists||this.open_create_default_admin_dialog.next(!0)})}changeUser(t){return this.http.post(this.path+"changeUser",{change_object:t},this.httpOptions)}deleteUser(t){return this.http.post(this.path+"deleteUser",{uid:t},this.httpOptions)}changeUserPassword(t,e){return this.http.post(this.path+"auth/changePassword",{user_uid:t,new_password:e},this.httpOptions)}getUsers(){return this.http.post(this.path+"getUsers",{},this.httpOptions)}getRoles(){return this.http.post(this.path+"getRoles",{},this.httpOptions)}setUserPermission(t,e,i){return this.http.post(this.path+"changeUserPermissions",{user_uid:t,permission:e,new_value:i},this.httpOptions)}setRolePermission(t,e,i){return this.http.post(this.path+"changeRolePermissions",{role:t,permission:e,new_value:i},this.httpOptions)}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Uh),s.Oc(wx),s.Oc(ve.e),s.Oc(Wg))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})();si.a.of=ze;class Yx{constructor(t){this.value=t}call(t,e){return e.subscribe(new Kx(t,this.value))}}class Kx extends Ne.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Xx(t,e,i){return je(t,e,i)(this)}function Jx(){return Xr(Jv.a)(this)}function Zx(t,e){if(1&t&&(s.Fc(0,"h4",5),s.xd(1),s.Ec()),2&t){const t=s.Wc();s.lc(1),s.yd(t.dialog_title)}}function Qx(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"mat-form-field",6),s.Fc(2,"input",7),s.Sc("keyup.enter",(function(){return s.nd(t),s.Wc().doAction()}))("ngModelChange",(function(e){return s.nd(t),s.Wc().input=e})),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(2),s.cd("ngModel",t.input)("placeholder",t.input_placeholder)}}function tk(t,e){1&t&&(s.Fc(0,"div",8),s.Ac(1,"mat-spinner",9),s.Ec()),2&t&&(s.lc(1),s.cd("diameter",25))}si.a.prototype.mapTo=function(t){return function(t){return e=>e.lift(new Yx(t))}(t)(this)},i("XypG"),si.a.fromEvent=kr,si.a.prototype.filter=function(t,e){return Qe(t,e)(this)},si.a.prototype.debounceTime=function(t,e=Ye){return Ke(t,e)(this)},si.a.prototype.do=Xx,si.a.prototype._do=Xx,si.a.prototype.switch=Jx,si.a.prototype._switch=Jx;let ek=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.data=e,this.dialogRef=i,this.snackBar=n,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}ngOnInit(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}isPinSet(){this.postsService.isPinSet().subscribe(t=>{this.pinSetChecked=!0,t.is_set?this.isSetLogic():this.notSetLogic()})}isSetLogic(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}notSetLogic(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}doAction(){this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe(t=>{t.success?this.dialogRef.close(!0):(this.dialogRef.close(!1),this.openSnackBar("Pin is incorrect!"))}):this.postsService.setPin(this.input).subscribe(t=>{t.success?(this.dialogRef.close(!0),this.openSnackBar("Pin successfully set!")):(this.dialogRef.close(!1),this.openSnackBar("Failed to set pin!"))}))}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(md),s.zc(ud),s.zc(Wg))},t.\u0275cmp=s.tc({type:t,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(s.vd(0,Zx,2,1,"h4",0),s.Fc(1,"mat-dialog-content"),s.Fc(2,"div",1),s.vd(3,Qx,3,2,"div",2),s.vd(4,tk,2,1,"div",3),s.Ec(),s.Ec(),s.Fc(5,"mat-dialog-actions"),s.Fc(6,"button",4),s.Sc("click",(function(){return e.doAction()})),s.xd(7),s.Ec(),s.Ec()),2&t&&(s.cd("ngIf",e.pinSetChecked),s.lc(3),s.cd("ngIf",e.pinSetChecked),s.lc(1),s.cd("ngIf",!e.pinSetChecked),s.lc(2),s.cd("disabled",0===e.input.length),s.lc(1),s.yd(e.button_label))},directives:[ve.t,wd,xd,bs,yd,Bc,Fu,Fs,Vs,Ya,pp],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),t})();const ik={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},nk={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},sk={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]};var ak,ok,rk,lk,ck,dk,hk,uk;function mk(t,e){if(1&t&&(s.Fc(0,"mat-option",20),s.Ac(1,"span",21),s.Xc(2,"highlight"),s.Fc(3,"button",22),s.Fc(4,"mat-icon"),s.xd(5,"info"),s.Ec(),s.Ec(),s.Ec()),2&t){const t=e.$implicit,i=s.Wc();s.cd("value",t.key),s.lc(1),s.cd("innerHTML",s.Zc(2,3,t.key,i.stateCtrl.value),s.od),s.lc(2),s.cd("matTooltip",t.description)}}function pk(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",26),s.Sc("click",(function(){s.nd(t);const i=e.$implicit;return s.Wc(2).setFirstArg(i.key)})),s.Fc(1,"div",27),s.xd(2),s.Ec(),s.xd(3,"\xa0\xa0"),s.Fc(4,"div",28),s.Fc(5,"mat-icon",29),s.xd(6,"info"),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=e.$implicit;s.lc(2),s.yd(t.key),s.lc(3),s.cd("matTooltip",t.description)}}function gk(t,e){if(1&t&&(s.Dc(0),s.Fc(1,"button",23),s.xd(2),s.Ec(),s.Fc(3,"mat-menu",null,24),s.vd(5,pk,7,2,"button",25),s.Ec(),s.Cc()),2&t){const t=e.$implicit,i=s.jd(4),n=s.Wc();s.lc(1),s.cd("matMenuTriggerFor",i),s.lc(1),s.yd(n.argsInfo[t.key].label),s.lc(3),s.cd("ngForOf",t.value)}}ak=$localize`:Modify args title␟d9e83ac17026e70ef6e9c0f3240a3b2450367f40␟3653857180335075556:Modify youtube-dl args`,ok=$localize`:Simulated args title␟7fc1946abe2b40f60059c6cd19975d677095fd19␟3319938540903314395:Simulated new args`,rk=$localize`:Add arg card title␟0b71824ae71972f236039bed43f8d2323e8fd570␟7066397187762906016:Add an arg`,lk=$localize`:Search args by category button␟c8b0e59eb491f2ac7505f0fbab747062e6b32b23␟827176536271704947:Search by category`,ck=$localize`:Use arg value checkbox␟9eeb91caef5a50256dd87e1c4b7b3e8216479377␟5487374754798278253:Use arg value`,dk=$localize`:Search args by category button␟7de2451ed3fb8d8b847979bd3f0c740b970f167b␟1014075402717090995:Add arg`,hk=$localize`:Arg modifier cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,uk=$localize`:Arg modifier modify button␟b2623aee44b70c9a4ba1fce16c8a593b0a4c7974␟3251759404563225821:Modify`;const fk=["placeholder",$localize`:Arg value placeholder␟25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd␟9086775160067017111:Arg value`],bk=function(){return{standalone:!0}};function _k(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"mat-form-field",8),s.Fc(2,"input",30),s.Lc(3,fk),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().secondArg=e})),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(2),s.cd("ngModelOptions",s.ed(3,bk))("disabled",!t.secondArgEnabled)("ngModel",t.secondArg)}}let vk=(()=>{class t{transform(t,e){const i=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter(t=>t.length>0).join("|"):void 0,n=new RegExp(i,"gi");return e?t.replace(n,t=>`${t}`):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.yc({name:"highlight",type:t,pure:!0}),t})(),yk=(()=>{class t{constructor(t,e,i){this.data=t,this.dialogRef=e,this.dialog=i,this.myGroup=new Ma,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Ma,this.availableArgs=null,this.argsByCategory=null,this.argsInfo=null}static forRoot(){return{ngModule:t,providers:[]}}ngOnInit(){this.data&&(this.modified_args=this.data.initial_args),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(dn(""),Object(ii.a)(t=>this.filter(t)))}filter(t){if(this.availableArgs)return this.availableArgs.filter(e=>e.key.toLowerCase().includes(t.toLowerCase()))}addArg(){""!==this.modified_args&&(this.modified_args+=" "),this.modified_args+=this.stateCtrl.value+" "+(this.secondArgEnabled?this.secondArg:"")}canAddArg(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}getFirstArg(){return new Promise(t=>{t(this.stateCtrl.value)})}getValueAsync(t){return new Promise(e=>{e(t)})}getAllPossibleArgs(){const t=sk,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e);this.availableArgs=i,this.argsByCategory=t,this.argsInfo=nk}setFirstArg(t){this.stateCtrl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(md),s.zc(ud),s.zc(bd))},t.\u0275cmp=s.tc({type:t,selectors:[["app-arg-modifier-dialog"]],features:[s.kc([vk])],decls:48,vars:17,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["color","accent",2,"width","100%"],["matInput","",3,"disabled"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","","mat-dialog-close",""],["mat-button","","color","accent",3,"mat-dialog-close"],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(s.Fc(0,"h4",0),s.Jc(1,ak),s.Ec(),s.Fc(2,"mat-dialog-content"),s.Fc(3,"div",1),s.Fc(4,"div",2),s.Fc(5,"div",3),s.Fc(6,"mat-card",4),s.Fc(7,"h6"),s.Jc(8,ok),s.Ec(),s.Fc(9,"mat-form-field",5),s.Fc(10,"textarea",6),s.xd(11),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(12,"div",3),s.Fc(13,"mat-card",7),s.Fc(14,"h6"),s.Jc(15,rk),s.Ec(),s.Fc(16,"form"),s.Fc(17,"div"),s.Fc(18,"mat-form-field",8),s.Ac(19,"input",9),s.Ec(),s.Fc(20,"mat-autocomplete",null,10),s.vd(22,mk,6,6,"mat-option",11),s.Xc(23,"async"),s.Ec(),s.Fc(24,"div"),s.Fc(25,"mat-menu",null,12),s.vd(27,gk,6,3,"ng-container",13),s.Xc(28,"keyvalue"),s.Ec(),s.Fc(29,"button",14),s.Dc(30),s.Jc(31,lk),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(32,"div"),s.Fc(33,"mat-checkbox",15),s.Sc("ngModelChange",(function(t){return e.secondArgEnabled=t})),s.Dc(34),s.Jc(35,ck),s.Cc(),s.Ec(),s.Ec(),s.vd(36,_k,4,4,"div",16),s.Ec(),s.Fc(37,"div"),s.Fc(38,"button",17),s.Sc("click",(function(){return e.addArg()})),s.Dc(39),s.Jc(40,dk),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(41,"mat-dialog-actions"),s.Fc(42,"button",18),s.Dc(43),s.Jc(44,hk),s.Cc(),s.Ec(),s.Fc(45,"button",19),s.Dc(46),s.Jc(47,uk),s.Cc(),s.Ec(),s.Ec()),2&t){const t=s.jd(21),i=s.jd(26);s.lc(10),s.cd("disabled",!0),s.lc(1),s.yd(e.modified_args),s.lc(8),s.cd("matAutocomplete",t)("formControl",e.stateCtrl),s.lc(3),s.cd("ngForOf",s.Yc(23,12,e.filteredOptions)),s.lc(5),s.cd("ngForOf",s.Yc(28,14,e.argsByCategory)),s.lc(2),s.cd("matMenuTriggerFor",i),s.lc(4),s.cd("ngModelOptions",s.ed(16,bk))("ngModel",e.secondArgEnabled),s.lc(3),s.cd("ngIf",e.secondArgEnabled),s.lc(2),s.cd("disabled",!e.canAddArg()),s.lc(7),s.cd("mat-dialog-close",e.modified_args)}},directives:[yd,wd,er,Bc,Fu,Ka,js,Va,sd,Fs,Vs,Za,Qc,ve.s,Cm,bs,Am,gr,Ya,ve.t,xd,vd,rs,Km,vu,_m],pipes:[ve.b,ve.l,vk],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),t})();var wk,xk;function kk(t,e){1&t&&(s.Fc(0,"h6"),s.xd(1,"Update in progress"),s.Ec())}function Ck(t,e){1&t&&(s.Fc(0,"h6"),s.xd(1,"Update failed"),s.Ec())}function Sk(t,e){1&t&&(s.Fc(0,"h6"),s.xd(1,"Update succeeded!"),s.Ec())}function Ek(t,e){1&t&&s.Ac(0,"mat-progress-bar",7)}function Ok(t,e){1&t&&s.Ac(0,"mat-progress-bar",8)}function Ak(t,e){if(1&t&&(s.Fc(0,"p",9),s.xd(1),s.Ec()),2&t){const t=s.Wc(2);s.lc(1),s.yd(t.updateStatus.details)}}function Dk(t,e){if(1&t&&(s.Fc(0,"div"),s.Fc(1,"div",3),s.vd(2,kk,2,0,"h6",1),s.vd(3,Ck,2,0,"h6",1),s.vd(4,Sk,2,0,"h6",1),s.Ec(),s.vd(5,Ek,1,0,"mat-progress-bar",4),s.vd(6,Ok,1,0,"mat-progress-bar",5),s.vd(7,Ak,2,1,"p",6),s.Ec()),2&t){const t=s.Wc();s.lc(2),s.cd("ngIf",t.updateStatus.updating),s.lc(1),s.cd("ngIf",!t.updateStatus.updating&&t.updateStatus.error),s.lc(1),s.cd("ngIf",!t.updateStatus.updating&&!t.updateStatus.error),s.lc(1),s.cd("ngIf",t.updateStatus.updating),s.lc(1),s.cd("ngIf",!t.updateStatus.updating),s.lc(1),s.cd("ngIf",t.updateStatus.details)}}wk=$localize`:Update progress dialog title␟91ecce65f1d23f9419d1c953cd6b7bc7f91c110e␟7113575027620819093:Updater`,xk=$localize`:Close update progress dialog␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let Ik=(()=>{class t{constructor(t,e){this.postsService=t,this.snackBar=e,this.updateStatus=null,this.updateInterval=250,this.errored=!1}ngOnInit(){this.getUpdateProgress(),setInterval(()=>{this.updateStatus.updating&&this.getUpdateProgress()},250)}getUpdateProgress(){this.postsService.getUpdaterStatus().subscribe(t=>{t&&(this.updateStatus=t,this.updateStatus&&this.updateStatus.error&&this.openSnackBar("Update failed. Check logs for more details."))})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(Wg))},t.\u0275cmp=s.tc({type:t,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.Jc(1,wk),s.Ec(),s.Fc(2,"mat-dialog-content"),s.vd(3,Dk,8,6,"div",1),s.Ec(),s.Fc(4,"mat-dialog-actions"),s.Fc(5,"button",2),s.Dc(6),s.Jc(7,xk),s.Cc(),s.Ec(),s.Ec()),2&t&&(s.lc(3),s.cd("ngIf",e.updateStatus))},directives:[yd,wd,ve.t,xd,bs,vd,np],styles:[""]}),t})();var Tk;function Pk(t,e){if(1&t&&(s.Fc(0,"mat-option",6),s.xd(1),s.Ec()),2&t){const t=e.$implicit,i=s.Wc(2);s.cd("value",t.tag_name),s.lc(1),s.zd(" ",t.tag_name+(t===i.latestStableRelease?" - Latest Stable":"")+(t.tag_name===i.CURRENT_VERSION?" - Current Version":"")," ")}}function Fk(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",3),s.Fc(1,"mat-form-field"),s.Fc(2,"mat-select",4),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().selectedVersion=e})),s.vd(3,Pk,2,2,"mat-option",5),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(2),s.cd("ngModel",t.selectedVersion),s.lc(1),s.cd("ngForOf",t.availableVersionsFiltered)}}function Rk(t,e){1&t&&(s.Dc(0),s.xd(1,"Upgrade to"),s.Cc())}function Mk(t,e){1&t&&(s.Dc(0),s.xd(1,"Downgrade to"),s.Cc())}function zk(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",3),s.Fc(1,"button",7),s.Sc("click",(function(){return s.nd(t),s.Wc().updateServer()})),s.Fc(2,"mat-icon"),s.xd(3,"update"),s.Ec(),s.xd(4,"\xa0\xa0 "),s.vd(5,Rk,2,0,"ng-container",8),s.vd(6,Mk,2,0,"ng-container",8),s.xd(7),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(5),s.cd("ngIf",t.selectedVersion>t.CURRENT_VERSION),s.lc(1),s.cd("ngIf",t.selectedVersion{class t{constructor(t,e){this.postsService=t,this.dialog=e,this.availableVersions=null,this.availableVersionsFiltered=[],this.versionsShowLimit=5,this.latestStableRelease=null,this.selectedVersion=null,this.CURRENT_VERSION="v3.6"}ngOnInit(){this.getAvailableVersions()}updateServer(){this.postsService.updateServer(this.selectedVersion).subscribe(t=>{t.success&&this.openUpdateProgressDialog()})}getAvailableVersions(){this.availableVersionsFiltered=[],this.postsService.getAvailableRelease().subscribe(t=>{this.availableVersions=t;for(let e=0;e=this.versionsShowLimit)break;this.availableVersionsFiltered.push(t)}})}openUpdateProgressDialog(){this.dialog.open(Ik,{minWidth:"300px",minHeight:"200px"})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(bd))},t.\u0275cmp=s.tc({type:t,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.Fc(1,"div",1),s.Dc(2),s.Jc(3,Tk),s.Cc(),s.Ec(),s.vd(4,Fk,4,2,"div",2),s.vd(5,zk,8,3,"div",2),s.Ec()),2&t&&(s.lc(4),s.cd("ngIf",e.availableVersions),s.lc(1),s.cd("ngIf",e.selectedVersion&&e.selectedVersion!==e.CURRENT_VERSION))},directives:[ve.t,Bc,Hp,Vs,Ya,ve.s,rs,bs,vu],styles:[""]}),t})();var Nk,Bk,Vk;Nk=$localize`:Register user dialog title␟b7ff2e2b909c53abe088fe60b9f4b6ac7757247f␟1815535846517216306:Register a user`,Bk=$localize`:Register user button␟cfc2f436ec2beffb042e7511a73c89c372e86a6c␟3301086086650990787:Register`,Vk=$localize`:Close button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let jk=(()=>{class t{constructor(t,e){this.postsService=t,this.dialogRef=e,this.usernameInput="",this.passwordInput=""}ngOnInit(){}createUser(){this.postsService.register(this.usernameInput,this.passwordInput).subscribe(t=>{this.dialogRef.close(t.user?t.user:{error:"Unknown error"})},t=>{this.dialogRef.close({error:t})})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(ud))},t.\u0275cmp=s.tc({type:t,selectors:[["app-add-user-dialog"]],decls:16,vars:2,consts:[["mat-dialog-title",""],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["matInput","","placeholder","Password","type","password",3,"ngModel","ngModelChange"],["color","accent","mat-raised-button","",3,"click"],["mat-dialog-close","","mat-button",""]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.Jc(1,Nk),s.Ec(),s.Fc(2,"mat-dialog-content"),s.Fc(3,"div"),s.Fc(4,"mat-form-field"),s.Fc(5,"input",1),s.Sc("ngModelChange",(function(t){return e.usernameInput=t})),s.Ec(),s.Ec(),s.Ec(),s.Fc(6,"div"),s.Fc(7,"mat-form-field"),s.Fc(8,"input",2),s.Sc("ngModelChange",(function(t){return e.passwordInput=t})),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(9,"mat-dialog-actions"),s.Fc(10,"button",3),s.Sc("click",(function(){return e.createUser()})),s.Dc(11),s.Jc(12,Bk),s.Cc(),s.Ec(),s.Fc(13,"button",4),s.Dc(14),s.Jc(15,Vk),s.Cc(),s.Ec(),s.Ec()),2&t&&(s.lc(5),s.cd("ngModel",e.usernameInput),s.lc(3),s.cd("ngModel",e.passwordInput))},directives:[yd,wd,Bc,Fu,Fs,Vs,Ya,xd,bs,vd],styles:[""]}),t})();var $k,Uk,Wk;function Gk(t,e){if(1&t&&(s.Fc(0,"h4",3),s.Dc(1),s.Jc(2,Uk),s.Cc(),s.xd(3),s.Ec()),2&t){const t=s.Wc();s.lc(3),s.zd("\xa0-\xa0",t.user.name,"")}}$k=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,Uk=$localize`:Manage user dialog title␟2bd201aea09e43fbfd3cd15ec0499b6755302329␟4975588549700433407:Manage user`,Wk=$localize`:User UID␟29c97c8e76763bb15b6d515648fa5bd1eb0f7510␟1937680469704133878:User UID:`;const Hk=["placeholder",$localize`:New password placeholder␟e70e209561583f360b1e9cefd2cbb1fe434b6229␟3588415639242079458:New password`];var qk,Yk,Kk,Xk;function Jk(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-list-item",8),s.Fc(1,"h3",9),s.xd(2),s.Ec(),s.Fc(3,"span",9),s.Fc(4,"mat-radio-group",10),s.Sc("change",(function(i){s.nd(t);const n=e.$implicit;return s.Wc(2).changeUserPermissions(i,n)}))("ngModelChange",(function(i){s.nd(t);const n=e.$implicit;return s.Wc(2).permissions[n]=i})),s.Fc(5,"mat-radio-button",11),s.Dc(6),s.Jc(7,Yk),s.Cc(),s.Ec(),s.Fc(8,"mat-radio-button",12),s.Dc(9),s.Jc(10,Kk),s.Cc(),s.Ec(),s.Fc(11,"mat-radio-button",13),s.Dc(12),s.Jc(13,Xk),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=e.$implicit,i=s.Wc(2);s.lc(2),s.yd(i.permissionToLabel[t]?i.permissionToLabel[t]:t),s.lc(2),s.cd("disabled","settings"===t&&i.postsService.user.uid===i.user.uid)("ngModel",i.permissions[t]),s.mc("aria-label","Give user permission for "+t)}}function Zk(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-dialog-content"),s.Fc(1,"p"),s.Dc(2),s.Jc(3,Wk),s.Cc(),s.xd(4),s.Ec(),s.Fc(5,"div"),s.Fc(6,"mat-form-field",4),s.Fc(7,"input",5),s.Lc(8,Hk),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().newPasswordInput=e})),s.Ec(),s.Ec(),s.Fc(9,"button",6),s.Sc("click",(function(){return s.nd(t),s.Wc().setNewPassword()})),s.Dc(10),s.Jc(11,qk),s.Cc(),s.Ec(),s.Ec(),s.Fc(12,"div"),s.Fc(13,"mat-list"),s.vd(14,Jk,14,4,"mat-list-item",7),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(4),s.zd("\xa0",t.user.uid,""),s.lc(3),s.cd("ngModel",t.newPasswordInput),s.lc(2),s.cd("disabled",0===t.newPasswordInput.length),s.lc(5),s.cd("ngForOf",t.available_permissions)}}qk=$localize`:Set new password␟6498fa1b8f563988f769654a75411bb8060134b9␟4099895221156718403:Set new password`,Yk=$localize`:Use default␟40da072004086c9ec00d125165da91eaade7f541␟1641415171855135728:Use default`,Kk=$localize`:Yes␟4f20f2d5a6882190892e58b85f6ccbedfa737952␟2807800733729323332:Yes`,Xk=$localize`:No␟3d3ae7deebc5949b0c1c78b9847886a94321d9fd␟3542042671420335679:No`;let Qk=(()=>{class t{constructor(t,e){this.postsService=t,this.data=e,this.user=null,this.newPasswordInput="",this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.settingNewPassword=!1,this.data&&(this.user=this.data.user,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}ngOnInit(){}parsePermissions(){this.permissions={};for(let t=0;t{})}setNewPassword(){this.settingNewPassword=!0,this.postsService.changeUserPassword(this.user.uid,this.newPasswordInput).subscribe(t=>{this.newPasswordInput="",this.settingNewPassword=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(md))},t.\u0275cmp=s.tc({type:t,selectors:[["app-manage-user"]],decls:6,vars:2,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],[2,"margin-right","15px"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["mat-raised-button","","color","accent",3,"disabled","click"],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["matLine",""],[3,"disabled","ngModel","change","ngModelChange"],["value","default"],["value","yes"],["value","no"]],template:function(t,e){1&t&&(s.vd(0,Gk,4,1,"h4",0),s.vd(1,Zk,15,4,"mat-dialog-content",1),s.Fc(2,"mat-dialog-actions"),s.Fc(3,"button",2),s.Dc(4),s.Jc(5,$k),s.Cc(),s.Ec(),s.Ec()),2&t&&(s.cd("ngIf",e.user),s.lc(1),s.cd("ngIf",e.user))},directives:[ve.t,xd,bs,vd,yd,wd,Bc,Fu,Fs,Vs,Ya,Xu,ve.s,tm,Vn,kp,Ep],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),t})();var tC,eC,iC,nC;function sC(t,e){if(1&t&&(s.Fc(0,"h4",3),s.Dc(1),s.Jc(2,eC),s.Cc(),s.xd(3),s.Ec()),2&t){const t=s.Wc();s.lc(3),s.zd("\xa0-\xa0",t.role.name,"")}}function aC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-list-item",5),s.Fc(1,"h3",6),s.xd(2),s.Ec(),s.Fc(3,"span",6),s.Fc(4,"mat-radio-group",7),s.Sc("change",(function(i){s.nd(t);const n=e.$implicit,a=s.Wc(2);return a.changeRolePermissions(i,n,a.permissions[n])}))("ngModelChange",(function(i){s.nd(t);const n=e.$implicit;return s.Wc(2).permissions[n]=i})),s.Fc(5,"mat-radio-button",8),s.Dc(6),s.Jc(7,iC),s.Cc(),s.Ec(),s.Fc(8,"mat-radio-button",9),s.Dc(9),s.Jc(10,nC),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=e.$implicit,i=s.Wc(2);s.lc(2),s.yd(i.permissionToLabel[t]?i.permissionToLabel[t]:t),s.lc(2),s.cd("disabled","settings"===t&&"admin"===i.role.name)("ngModel",i.permissions[t]),s.mc("aria-label","Give role permission for "+t)}}function oC(t,e){if(1&t&&(s.Fc(0,"mat-dialog-content"),s.Fc(1,"mat-list"),s.vd(2,aC,11,4,"mat-list-item",4),s.Ec(),s.Ec()),2&t){const t=s.Wc();s.lc(2),s.cd("ngForOf",t.available_permissions)}}tC=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,eC=$localize`:Manage role dialog title␟57c6c05d8ebf4ef1180c2705033c044f655bb2c4␟6937165687043532169:Manage role`,iC=$localize`:Yes␟4f20f2d5a6882190892e58b85f6ccbedfa737952␟2807800733729323332:Yes`,nC=$localize`:No␟3d3ae7deebc5949b0c1c78b9847886a94321d9fd␟3542042671420335679:No`;let rC=(()=>{class t{constructor(t,e,i){this.postsService=t,this.dialogRef=e,this.data=i,this.role=null,this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.data&&(this.role=this.data.role,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}ngOnInit(){}parsePermissions(){this.permissions={};for(let t=0;t{t.success||(this.permissions[e]="yes"===this.permissions[e]?"no":"yes")},t=>{this.permissions[e]="yes"===this.permissions[e]?"no":"yes"})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(ud),s.zc(md))},t.\u0275cmp=s.tc({type:t,selectors:[["app-manage-role"]],decls:6,vars:2,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["matLine",""],[3,"disabled","ngModel","change","ngModelChange"],["value","yes"],["value","no"]],template:function(t,e){1&t&&(s.vd(0,sC,4,1,"h4",0),s.vd(1,oC,3,1,"mat-dialog-content",1),s.Fc(2,"mat-dialog-actions"),s.Fc(3,"button",2),s.Dc(4),s.Jc(5,tC),s.Cc(),s.Ec(),s.Ec()),2&t&&(s.cd("ngIf",e.role),s.lc(1),s.cd("ngIf",e.role))},directives:[ve.t,xd,bs,vd,yd,wd,Xu,ve.s,tm,Vn,kp,Vs,Ya,Ep],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),t})();var lC,cC,dC,hC;function uC(t,e){1&t&&(s.Fc(0,"mat-header-cell",24),s.Dc(1),s.Jc(2,cC),s.Cc(),s.Ec())}function mC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"span"),s.Fc(1,"span",26),s.Fc(2,"mat-form-field"),s.Fc(3,"input",27),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(3).constructedObject.name=e})),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(3);s.lc(3),s.cd("ngModel",t.constructedObject.name)}}function pC(t,e){if(1&t&&s.xd(0),2&t){const t=s.Wc().$implicit;s.zd(" ",t.name," ")}}function gC(t,e){if(1&t&&(s.Fc(0,"mat-cell"),s.vd(1,mC,4,1,"span",0),s.vd(2,pC,1,1,"ng-template",null,25,s.wd),s.Ec()),2&t){const t=e.$implicit,i=s.jd(3),n=s.Wc(2);s.lc(1),s.cd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i)}}function fC(t,e){1&t&&(s.Fc(0,"mat-header-cell",24),s.Dc(1),s.Jc(2,dC),s.Cc(),s.Ec())}function bC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"span"),s.Fc(1,"span",26),s.Fc(2,"mat-form-field"),s.Fc(3,"mat-select",29),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(3).constructedObject.role=e})),s.Fc(4,"mat-option",30),s.xd(5,"Admin"),s.Ec(),s.Fc(6,"mat-option",31),s.xd(7,"User"),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(3);s.lc(3),s.cd("ngModel",t.constructedObject.role)}}function _C(t,e){if(1&t&&s.xd(0),2&t){const t=s.Wc().$implicit;s.zd(" ",t.role," ")}}function vC(t,e){if(1&t&&(s.Fc(0,"mat-cell"),s.vd(1,bC,8,1,"span",0),s.vd(2,_C,1,1,"ng-template",null,28,s.wd),s.Ec()),2&t){const t=e.$implicit,i=s.jd(3),n=s.Wc(2);s.lc(1),s.cd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i)}}function yC(t,e){1&t&&(s.Fc(0,"mat-header-cell",24),s.Dc(1),s.Jc(2,hC),s.Cc(),s.Ec())}function wC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"span"),s.Fc(1,"button",35),s.Sc("click",(function(){s.nd(t);const e=s.Wc().$implicit;return s.Wc(2).finishEditing(e.uid)})),s.Fc(2,"mat-icon"),s.xd(3,"done"),s.Ec(),s.Ec(),s.Fc(4,"button",36),s.Sc("click",(function(){return s.nd(t),s.Wc(3).disableEditMode()})),s.Fc(5,"mat-icon"),s.xd(6,"cancel"),s.Ec(),s.Ec(),s.Ec()}}function xC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",37),s.Sc("click",(function(){s.nd(t);const e=s.Wc().$implicit;return s.Wc(2).enableEditMode(e.uid)})),s.Fc(1,"mat-icon"),s.xd(2,"edit"),s.Ec(),s.Ec()}}function kC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-cell"),s.vd(1,wC,7,0,"span",0),s.vd(2,xC,3,0,"ng-template",null,32,s.wd),s.Fc(4,"button",33),s.Sc("click",(function(){s.nd(t);const i=e.$implicit;return s.Wc(2).manageUser(i.uid)})),s.Fc(5,"mat-icon"),s.xd(6,"settings"),s.Ec(),s.Ec(),s.Fc(7,"button",34),s.Sc("click",(function(){s.nd(t);const i=e.$implicit;return s.Wc(2).removeUser(i.uid)})),s.Fc(8,"mat-icon"),s.xd(9,"delete"),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=e.$implicit,i=s.jd(3),n=s.Wc(2);s.lc(1),s.cd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i),s.lc(3),s.cd("disabled",n.editObject&&n.editObject.uid===t.uid),s.lc(3),s.cd("disabled",n.editObject&&n.editObject.uid===t.uid||t.uid===n.postsService.user.uid)}}function CC(t,e){1&t&&s.Ac(0,"mat-header-row")}function SC(t,e){1&t&&s.Ac(0,"mat-row")}function EC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",38),s.Sc("click",(function(){s.nd(t);const i=e.$implicit;return s.Wc(2).openModifyRole(i)})),s.xd(1),s.Ec()}if(2&t){const t=e.$implicit;s.lc(1),s.yd(t.name)}}function OC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"div",3),s.Fc(2,"div",4),s.Fc(3,"div",5),s.Fc(4,"div",6),s.Fc(5,"mat-form-field"),s.Fc(6,"input",7),s.Sc("keyup",(function(e){return s.nd(t),s.Wc().applyFilter(e.target.value)})),s.Ec(),s.Ec(),s.Ec(),s.Fc(7,"div",8),s.Fc(8,"mat-table",9,10),s.Dc(10,11),s.vd(11,uC,3,0,"mat-header-cell",12),s.vd(12,gC,4,2,"mat-cell",13),s.Cc(),s.Dc(13,14),s.vd(14,fC,3,0,"mat-header-cell",12),s.vd(15,vC,4,2,"mat-cell",13),s.Cc(),s.Dc(16,15),s.vd(17,yC,3,0,"mat-header-cell",12),s.vd(18,kC,10,4,"mat-cell",13),s.Cc(),s.vd(19,CC,1,0,"mat-header-row",16),s.vd(20,SC,1,0,"mat-row",17),s.Ec(),s.Ac(21,"mat-paginator",18,19),s.Fc(23,"button",20),s.Sc("click",(function(){return s.nd(t),s.Wc().openAddUserDialog()})),s.Dc(24),s.Jc(25,lC),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(26,"button",21),s.xd(27,"Edit Role"),s.Ec(),s.Fc(28,"mat-menu",null,22),s.vd(30,EC,2,1,"button",23),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.jd(29),e=s.Wc();s.lc(8),s.cd("dataSource",e.dataSource),s.lc(11),s.cd("matHeaderRowDef",e.displayedColumns),s.lc(1),s.cd("matRowDefColumns",e.displayedColumns),s.lc(1),s.cd("length",e.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),s.lc(2),s.cd("disabled",!e.users),s.lc(3),s.cd("matMenuTriggerFor",t),s.lc(4),s.cd("ngForOf",e.roles)}}function AC(t,e){1&t&&s.Ac(0,"mat-spinner")}lC=$localize`:Add users button␟4d92a0395dd66778a931460118626c5794a3fc7a␟506553185810307410:Add Users`,cC=$localize`:Username users table header␟746f64ddd9001ac456327cd9a3d5152203a4b93c␟5277049347608663780: User name `,dC=$localize`:Role users table header␟52c1447c1ec9570a2a3025c7e566557b8d19ed92␟2803298218425845065: Role `,hC=$localize`:Actions users table header␟59a8c38db3091a63ac1cb9590188dc3a972acfb3␟4360239040231802726: Actions `;let DC=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.dialog=i,this.dialogRef=n,this.displayedColumns=["name","role","actions"],this.dataSource=new $_,this.deleteDialogContentSubstring="Are you sure you want delete user ",this.length=100,this.pageSize=5,this.pageSizeOptions=[5,10,25,100],this.editObject=null,this.constructedObject={},this.roles=null}ngOnInit(){this.getArray(),this.getRoles()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}afterGetData(){this.dataSource.sort=this.sort}setPageSizeOptions(t){this.pageSizeOptions=t.split(",").map(t=>+t)}applyFilter(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t}getArray(){this.postsService.getUsers().subscribe(t=>{this.users=t.users,this.createAndSortData(),this.afterGetData()})}getRoles(){this.postsService.getRoles().subscribe(t=>{this.roles=[];const e=t.roles,i=Object.keys(e);for(let n=0;n{t&&!t.error?(this.openSnackBar("Successfully added user "+t.name),this.getArray()):t&&t.error&&this.openSnackBar("Failed to add user")})}finishEditing(t){let e=!1;if(this.constructedObject&&this.constructedObject.name&&this.constructedObject.role&&!IC(this.constructedObject.name)&&!IC(this.constructedObject.role)){e=!0;const i=this.indexOfUser(t);this.users[i]=this.constructedObject,this.constructedObject={},this.editObject=null,this.setUser(this.users[i]),this.createAndSortData()}}enableEditMode(t){if(this.uidInUserList(t)&&this.indexOfUser(t)>-1){const e=this.indexOfUser(t);this.editObject=this.users[e],this.constructedObject.name=this.users[e].name,this.constructedObject.uid=this.users[e].uid,this.constructedObject.role=this.users[e].role}}disableEditMode(){this.editObject=null}uidInUserList(t){for(let e=0;e{this.getArray()})}manageUser(t){const e=this.indexOfUser(t);this.dialog.open(Qk,{data:{user:this.users[e]},width:"65vw"})}removeUser(t){this.postsService.deleteUser(t).subscribe(t=>{this.getArray()},t=>{this.getArray()})}createAndSortData(){this.users.sort((t,e)=>e.name>t.name);const t=[];for(let e=0;e{this.getRoles()})}closeDialog(){this.dialogRef.close()}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(Wg),s.zc(bd),s.zc(ud))},t.\u0275cmp=s.tc({type:t,selectors:[["app-modify-users"]],viewQuery:function(t,e){var i;1&t&&(s.Bd(rb,!0),s.Bd(pb,!0)),2&t&&(s.id(i=s.Tc())&&(e.paginator=i.first),s.id(i=s.Tc())&&(e.sort=i.first))},inputs:{pageSize:"pageSize"},decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],[1,"centered",2,"position","absolute"],["loading",""],[2,"padding","15px"],[1,"row"],[1,"table","table-responsive","p-5"],[1,"example-header"],["matInput","","placeholder","Search",3,"keyup"],[1,"example-container","mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","role"],["matColumnDef","actions"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["paginator",""],["color","primary","mat-raised-button","",2,"float","left","top","-45px","left","15px",3,"disabled","click"],["color","primary","mat-raised-button","",1,"edit-role",3,"matMenuTriggerFor"],["edit_roles_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-sort-header",""],["noteditingname",""],[2,"width","80%"],["matInput","","type","text",2,"font-size","12px",3,"ngModel","ngModelChange"],["noteditingemail",""],[3,"ngModel","ngModelChange"],["value","admin"],["value","user"],["notediting",""],["mat-icon-button","","matTooltip","Manage user",3,"disabled","click"],["mat-icon-button","","matTooltip","Delete user",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Finish editing user",3,"click"],["mat-icon-button","","matTooltip","Cancel editing user",3,"click"],["mat-icon-button","","matTooltip","Edit user",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(s.vd(0,OC,31,9,"div",0),s.Fc(1,"div",1),s.vd(2,AC,1,0,"ng-template",null,2,s.wd),s.Ec()),2&t){const t=s.jd(3);s.cd("ngIf",e.dataSource)("ngIfElse",t)}},directives:[ve.t,Bc,Fu,p_,pb,x_,__,f_,O_,T_,rb,bs,Am,Cm,ve.s,C_,xb,E_,Fs,Vs,Ya,Hp,rs,Km,vu,F_,L_,_m,pp],styles:[".edit-role[_ngcontent-%COMP%]{position:relative;top:-80px;left:35px}"]}),t})();function IC(t){return null===t||null!==t.match(/^ *$/)}var TC;TC=$localize`:Settings title␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`;const PC=["label",$localize`:Main settings label␟82421c3e46a0453a70c42900eab51d58d79e6599␟3815928829326879804:Main`],FC=["label",$localize`:Downloader settings label␟0ba25ad86a240576c4f20a2fada4722ebba77b1e␟5385813889746830226:Downloader`],RC=["label",$localize`:Extra settings label␟d5f69691f9f05711633128b5a3db696783266b58␟7419412790104674886:Extra`],MC=["label",$localize`:Host settings label␟bc2e854e111ecf2bd7db170da5e3c2ed08181d88␟6201638315245239510:Advanced`];var zC,LC;zC=$localize`:Settings save button␟52c9a103b812f258bcddc3d90a6e3f46871d25fe␟3768927257183755959:Save`,LC=$localize`:Settings cancel and close button␟fe8fd36dbf5deee1d56564965787a782a66eba44␟1370226763724525124:{VAR_SELECT, select, true {Close} false {Cancel} other {otha}}`,LC=s.Nc(LC,{VAR_SELECT:"\ufffd0\ufffd"});const NC=["placeholder",$localize`:URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var BC;BC=$localize`:URL setting input hint␟54c512cca1923ab72faf1a0bd98d3d172469629a␟5463756323010996100:URL this app will be accessed from, without the port.`;const VC=["placeholder",$localize`:Port input placeholder␟cb2741a46e3560f6bc6dfd99d385e86b08b26d72␟6117946241126833991:Port`];var jC,$C;function UC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-form-field",12),s.Fc(4,"input",13),s.Lc(5,NC),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Host.url=e})),s.Ec(),s.Fc(6,"mat-hint"),s.Dc(7),s.Jc(8,BC),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(9,"div",14),s.Fc(10,"mat-form-field",12),s.Fc(11,"input",13),s.Lc(12,VC),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Host.port=e})),s.Ec(),s.Fc(13,"mat-hint"),s.Dc(14),s.Jc(15,jC),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(4),s.cd("ngModel",t.new_config.Host.url),s.lc(7),s.cd("ngModel",t.new_config.Host.port)}}jC=$localize`:Port setting input hint␟22e8f1d0423a3b784fe40fab187b92c06541b577␟12816402920404434:The desired port. Default is 17442.`,$C=$localize`:Use encryption setting␟cbe16a57be414e84b6a68309d08fad894df797d6␟5503616660881623306:Use encryption`;const WC=["placeholder",$localize`:Cert file path input placeholder␟0c1875a79b7ecc792cc1bebca3e063e40b5764f9␟2857997144709025078:Cert file path`],GC=["placeholder",$localize`:Key file path input placeholder␟736551b93461d2de64b118cf4043eee1d1c2cb2c␟2320113463068090884:Key file path`];function HC(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Encryption["use-encryption"]=e})),s.Dc(4),s.Jc(5,$C),s.Cc(),s.Ec(),s.Ec(),s.Fc(6,"div",16),s.Fc(7,"mat-form-field",12),s.Fc(8,"input",17),s.Lc(9,WC),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Encryption["cert-file-path"]=e})),s.Ec(),s.Ec(),s.Ec(),s.Fc(10,"div",16),s.Fc(11,"mat-form-field",12),s.Fc(12,"input",17),s.Lc(13,GC),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Encryption["key-file-path"]=e})),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(3),s.cd("ngModel",t.new_config.Encryption["use-encryption"]),s.lc(5),s.cd("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["cert-file-path"]),s.lc(4),s.cd("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["key-file-path"])}}var qC;qC=$localize`:Allow subscriptions setting␟4e3120311801c4acd18de7146add2ee4a4417773␟5800596718492516574:Allow subscriptions`;const YC=["placeholder",$localize`:Subscriptions base path input setting placeholder␟4bee2a4bef2d26d37c9b353c278e24e5cd309ce3␟6919010605968316948:Subscriptions base path`];var KC;KC=$localize`:Subscriptions base path setting input hint␟bc9892814ee2d119ae94378c905ea440a249b84a␟2622759576830659218:Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder.`;const XC=["placeholder",$localize`:Check interval input setting placeholder␟5bef4b25ba680da7fff06b86a91b1fc7e6a926e3␟5349606203941321178:Check interval`];var JC,ZC,QC,tS,eS,iS,nS,sS,aS,oS;function rS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Subscriptions.allow_subscriptions=e})),s.Dc(4),s.Jc(5,qC),s.Cc(),s.Ec(),s.Ec(),s.Fc(6,"div",16),s.Fc(7,"mat-form-field",12),s.Fc(8,"input",17),s.Lc(9,YC),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Subscriptions.subscriptions_base_path=e})),s.Ec(),s.Fc(10,"mat-hint"),s.Dc(11),s.Jc(12,KC),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(13,"div",18),s.Fc(14,"mat-form-field",12),s.Fc(15,"input",17),s.Lc(16,XC),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Subscriptions.subscriptions_check_interval=e})),s.Ec(),s.Fc(17,"mat-hint"),s.Dc(18),s.Jc(19,JC),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(20,"div",19),s.Fc(21,"mat-checkbox",20),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),s.Dc(22),s.Jc(23,ZC),s.Cc(),s.Ec(),s.Fc(24,"p"),s.Fc(25,"a",21),s.Dc(26),s.Jc(27,QC),s.Cc(),s.Ec(),s.xd(28,"\xa0"),s.Dc(29),s.Jc(30,tS),s.Cc(),s.Ec(),s.Fc(31,"p"),s.Dc(32),s.Jc(33,eS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(3),s.cd("ngModel",t.new_config.Subscriptions.allow_subscriptions),s.lc(5),s.cd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_base_path),s.lc(7),s.cd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_check_interval),s.lc(6),s.cd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function lS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-form-field"),s.Fc(4,"mat-label"),s.Dc(5),s.Jc(6,iS),s.Cc(),s.Ec(),s.Fc(7,"mat-select",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Themes.default_theme=e})),s.Fc(8,"mat-option",22),s.Dc(9),s.Jc(10,nS),s.Cc(),s.Ec(),s.Fc(11,"mat-option",23),s.Dc(12),s.Jc(13,sS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(14,"div",24),s.Fc(15,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Themes.allow_theme_change=e})),s.Dc(16),s.Jc(17,aS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(7),s.cd("ngModel",t.new_config.Themes.default_theme),s.lc(8),s.cd("ngModel",t.new_config.Themes.allow_theme_change)}}function cS(t,e){if(1&t&&(s.Fc(0,"mat-option",27),s.xd(1),s.Ec()),2&t){const t=e.$implicit,i=s.Wc(3);s.cd("value",t),s.lc(1),s.zd(" ",i.all_locales[t].nativeName," ")}}function dS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-form-field"),s.Fc(4,"mat-label"),s.Dc(5),s.Jc(6,oS),s.Cc(),s.Ec(),s.Fc(7,"mat-select",25),s.Sc("selectionChange",(function(e){return s.nd(t),s.Wc(2).localeSelectChanged(e.value)}))("valueChange",(function(e){return s.nd(t),s.Wc(2).initialLocale=e})),s.vd(8,cS,2,2,"mat-option",26),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(7),s.cd("value",t.initialLocale),s.lc(1),s.cd("ngForOf",t.supported_locales)}}function hS(t,e){if(1&t&&(s.vd(0,UC,16,2,"div",8),s.Ac(1,"mat-divider"),s.vd(2,HC,14,5,"div",8),s.Ac(3,"mat-divider"),s.vd(4,rS,34,7,"div",8),s.Ac(5,"mat-divider"),s.vd(6,lS,18,2,"div",8),s.Ac(7,"mat-divider"),s.vd(8,dS,9,2,"div",8)),2&t){const t=s.Wc();s.cd("ngIf",t.new_config),s.lc(2),s.cd("ngIf",t.new_config),s.lc(2),s.cd("ngIf",t.new_config),s.lc(2),s.cd("ngIf",t.new_config),s.lc(2),s.cd("ngIf",t.new_config)}}JC=$localize`:Check interval setting input hint␟0f56a7449b77630c114615395bbda4cab398efd8␟1580663059483543498:Unit is seconds, only include numbers.`,ZC=$localize`:Use youtube-dl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,QC=$localize`:youtube-dl archive explanation prefix link␟fa9fe4255231dd1cc6b29d3d254a25cb7c764f0f␟6707903974690925048:With youtube-dl's archive`,tS=$localize`:youtube-dl archive explanation middle␟09006404cccc24b7a8f8d1ce0b39f2761ab841d8␟954972440308853962:feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory.`,eS=$localize`:youtube-dl archive explanation suffix␟29ed79a98fc01e7f9537777598e31dbde3aa7981␟6686872891691588730:This enables the ability to permanently delete videos from your subscriptions without unsubscribing, and allows you to record which videos you downloaded in case of data loss.`,iS=$localize`:Theme select label␟27a56aad79d8b61269ed303f11664cc78bcc2522␟7103588127254721505:Theme`,nS=$localize`:Default theme label␟ff7cee38a2259526c519f878e71b964f41db4348␟5607669932062416162:Default`,sS=$localize`:Dark theme label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,aS=$localize`:Allow theme change setting␟7a6bacee4c31cb5c0ac2d24274fb4610d8858602␟8325128210832071900:Allow theme change`,oS=$localize`:Language select label␟fe46ccaae902ce974e2441abe752399288298619␟2826581353496868063:Language`;const uS=["placeholder",$localize`:Audio folder path input placeholder␟ab2756805742e84ad0cc0468f4be2d8aa9f855a5␟3475061775640312711:Audio folder path`];var mS;mS=$localize`:Aduio path setting input hint␟c2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca␟3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder.`;const pS=["placeholder",$localize`:Video folder path input placeholder␟46826331da1949bd6fb74624447057099c9d20cd␟3354965786971797948:Video folder path`];var gS;gS=$localize`:Video path setting input hint␟17c92e6d47a213fa95b5aa344b3f258147123f93␟2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder.`;const fS=["placeholder",$localize`:Custom args input placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var bS,_S;function vS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-form-field",12),s.Fc(4,"input",13),s.Lc(5,uS),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Downloader["path-audio"]=e})),s.Ec(),s.Fc(6,"mat-hint"),s.Dc(7),s.Jc(8,mS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(9,"div",18),s.Fc(10,"mat-form-field",12),s.Fc(11,"input",13),s.Lc(12,pS),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Downloader["path-video"]=e})),s.Ec(),s.Fc(13,"mat-hint"),s.Dc(14),s.Jc(15,gS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(16,"div",18),s.Fc(17,"mat-form-field",28),s.Fc(18,"textarea",29),s.Lc(19,fS),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Downloader.custom_args=e})),s.Ec(),s.Fc(20,"mat-hint"),s.Dc(21),s.Jc(22,bS),s.Cc(),s.Ec(),s.Fc(23,"button",30),s.Sc("click",(function(){return s.nd(t),s.Wc(2).openArgsModifierDialog()})),s.Fc(24,"mat-icon"),s.xd(25,"edit"),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(26,"div",19),s.Fc(27,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Downloader.use_youtubedl_archive=e})),s.Dc(28),s.Jc(29,_S),s.Cc(),s.Ec(),s.Fc(30,"p"),s.xd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(4),s.cd("ngModel",t.new_config.Downloader["path-audio"]),s.lc(7),s.cd("ngModel",t.new_config.Downloader["path-video"]),s.lc(7),s.cd("ngModel",t.new_config.Downloader.custom_args),s.lc(9),s.cd("ngModel",t.new_config.Downloader.use_youtubedl_archive)}}function yS(t,e){if(1&t&&s.vd(0,vS,32,4,"div",8),2&t){const t=s.Wc();s.cd("ngIf",t.new_config)}}bS=$localize`:Custom args setting input hint␟f41145afc02fd47ef0576ac79acd2c47ebbf4901␟8874045538582126918:Global custom args for downloads on the home page.`,_S=$localize`:Use youtubedl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`;const wS=["placeholder",$localize`:Top title input placeholder␟61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095␟1974727764328838461:Top title`];var xS,kS,CS,SS,ES,OS,AS;function DS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-form-field",12),s.Fc(4,"input",13),s.Lc(5,wS),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Extra.title_top=e})),s.Ec(),s.Ac(6,"mat-hint"),s.Ec(),s.Ec(),s.Fc(7,"div",16),s.Fc(8,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Extra.file_manager_enabled=e})),s.Dc(9),s.Jc(10,xS),s.Cc(),s.Ec(),s.Ec(),s.Fc(11,"div",16),s.Fc(12,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Extra.allow_quality_select=e})),s.Dc(13),s.Jc(14,kS),s.Cc(),s.Ec(),s.Ec(),s.Fc(15,"div",16),s.Fc(16,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Extra.download_only_mode=e})),s.Dc(17),s.Jc(18,CS),s.Cc(),s.Ec(),s.Ec(),s.Fc(19,"div",16),s.Fc(20,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Extra.allow_multi_download_mode=e})),s.Dc(21),s.Jc(22,SS),s.Cc(),s.Ec(),s.Ec(),s.Fc(23,"div",16),s.Fc(24,"mat-checkbox",20),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Extra.settings_pin_required=e})),s.Dc(25),s.Jc(26,ES),s.Cc(),s.Ec(),s.Fc(27,"button",31),s.Sc("click",(function(){return s.nd(t),s.Wc(2).setNewPin()})),s.Dc(28),s.Jc(29,OS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(4),s.cd("ngModel",t.new_config.Extra.title_top),s.lc(4),s.cd("ngModel",t.new_config.Extra.file_manager_enabled),s.lc(4),s.cd("ngModel",t.new_config.Extra.allow_quality_select),s.lc(4),s.cd("ngModel",t.new_config.Extra.download_only_mode),s.lc(4),s.cd("ngModel",t.new_config.Extra.allow_multi_download_mode),s.lc(4),s.cd("disabled",t.new_config.Advanced.multi_user_mode)("ngModel",t.new_config.Extra.settings_pin_required),s.lc(3),s.cd("disabled",!t.new_config.Extra.settings_pin_required)}}xS=$localize`:File manager enabled setting␟78d3531417c0d4ba4c90f0d4ae741edc261ec8df␟488432415925701010:File manager enabled`,kS=$localize`:Allow quality seelct setting␟c33bd5392b39dbed36b8e5a1145163a15d45835f␟2252491142626131446:Allow quality select`,CS=$localize`:Download only mode setting␟bda5508e24e0d77debb28bcd9194d8fefb1cfb92␟2765258699599899343:Download only mode`,SS=$localize`:Allow multi-downloade mode setting␟09d31c803a7252658694e1e3176b97f5655a3fe3␟1457782201611151239:Allow multi-download mode`,ES=$localize`:Require pin for settings setting␟d8b47221b5af9e9e4cd5cb434d76fc0c91611409␟8888472341408176239:Require pin for settings`,OS=$localize`:Set new pin button␟f5ec7b2cdf87d41154f4fcbc86e856314409dcb9␟5079149426228636902:Set New Pin`,AS=$localize`:Enable Public API key setting␟1c4dbce56d96b8974aac24a02f7ab2ee81415014␟1129973800849533636:Enable Public API`;const IS=["placeholder",$localize`:Public API Key setting placeholder␟23bd81dcc30b74d06279a26d7a42e8901c1b124e␟5137591319364175431:Public API Key`];var TS,PS,FS;function RS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.API.use_API_key=e})),s.Dc(4),s.Jc(5,AS),s.Cc(),s.Ec(),s.Ec(),s.Fc(6,"div",32),s.Fc(7,"div",33),s.Fc(8,"mat-form-field",12),s.Fc(9,"input",34),s.Lc(10,IS),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.API.API_key=e})),s.Ec(),s.Fc(11,"mat-hint"),s.Fc(12,"a",35),s.Dc(13),s.Jc(14,TS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(15,"div",36),s.Fc(16,"button",37),s.Sc("click",(function(){return s.nd(t),s.Wc(2).generateAPIKey()})),s.Dc(17),s.Jc(18,PS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(3),s.cd("ngModel",t.new_config.API.use_API_key),s.lc(6),s.cd("disabled",!t.new_config.API.use_API_key)("ngModel",t.new_config.API.API_key)}}TS=$localize`:View API docs setting hint␟41016a73d8ad85e6cb26dffa0a8fab9fe8f60d8e␟7819423665857999846:View documentation`,PS=$localize`:Generate key button␟1b258b258b4cc475ceb2871305b61756b0134f4a␟5193539160604294602:Generate`,FS=$localize`:Use YouTube API setting␟d5d7c61349f3b0859336066e6d453fc35d334fe5␟921806454742404419:Use YouTube API`;const MS=["placeholder",$localize`:Youtube API Key setting placeholder␟ce10d31febb3d9d60c160750570310f303a22c22␟8352766560503075759:Youtube API Key`];var zS,LS,NS,BS,VS,jS,$S,US,WS,GS,HS,qS,YS,KS;function XS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.API.use_youtube_API=e})),s.Dc(4),s.Jc(5,FS),s.Cc(),s.Ec(),s.Ec(),s.Fc(6,"div",32),s.Fc(7,"mat-form-field",12),s.Fc(8,"input",34),s.Lc(9,MS),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.API.youtube_API_key=e})),s.Ec(),s.Fc(10,"mat-hint"),s.Fc(11,"a",38),s.Dc(12),s.Jc(13,zS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(3),s.cd("ngModel",t.new_config.API.use_youtube_API),s.lc(5),s.cd("disabled",!t.new_config.API.use_youtube_API)("ngModel",t.new_config.API.youtube_API_key)}}function JS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"h6"),s.xd(4,"Chrome"),s.Ec(),s.Fc(5,"p"),s.Fc(6,"a",39),s.Dc(7),s.Jc(8,LS),s.Cc(),s.Ec(),s.xd(9,"\xa0"),s.Dc(10),s.Jc(11,NS),s.Cc(),s.Ec(),s.Fc(12,"p"),s.Dc(13),s.Jc(14,BS),s.Cc(),s.Ec(),s.Ac(15,"mat-divider",40),s.Ec(),s.Fc(16,"div",16),s.Fc(17,"h6"),s.xd(18,"Firefox"),s.Ec(),s.Fc(19,"p"),s.Fc(20,"a",41),s.Dc(21),s.Jc(22,VS),s.Cc(),s.Ec(),s.xd(23,"\xa0"),s.Dc(24),s.Jc(25,jS),s.Cc(),s.Ec(),s.Fc(26,"p"),s.Fc(27,"a",42),s.Dc(28),s.Jc(29,$S),s.Cc(),s.Ec(),s.xd(30,"\xa0"),s.Dc(31),s.Jc(32,US),s.Cc(),s.Ec(),s.Ac(33,"mat-divider",40),s.Ec(),s.Fc(34,"div",16),s.Fc(35,"h6"),s.xd(36,"Bookmarklet"),s.Ec(),s.Fc(37,"p"),s.Dc(38),s.Jc(39,WS),s.Cc(),s.Ec(),s.Fc(40,"mat-checkbox",43),s.Sc("change",(function(e){return s.nd(t),s.Wc(2).bookmarkletAudioOnlyChanged(e)})),s.Dc(41),s.Jc(42,GS),s.Cc(),s.Ec(),s.Fc(43,"p"),s.Fc(44,"a",44),s.xd(45,"YTDL-Bookmarklet"),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(44),s.cd("href",t.generated_bookmarklet_code,s.pd)}}function ZS(t,e){if(1&t&&(s.vd(0,DS,30,8,"div",8),s.Ac(1,"mat-divider"),s.vd(2,RS,19,3,"div",8),s.Ac(3,"mat-divider"),s.vd(4,XS,14,3,"div",8),s.Ac(5,"mat-divider"),s.vd(6,JS,46,1,"div",8)),2&t){const t=s.Wc();s.cd("ngIf",t.new_config),s.lc(2),s.cd("ngIf",t.new_config),s.lc(2),s.cd("ngIf",t.new_config),s.lc(2),s.cd("ngIf",t.new_config)}}function QS(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",9),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Advanced.use_default_downloading_agent=e})),s.Dc(4),s.Jc(5,HS),s.Cc(),s.Ec(),s.Ec(),s.Fc(6,"div",16),s.Fc(7,"mat-form-field"),s.Fc(8,"mat-label"),s.Dc(9),s.Jc(10,qS),s.Cc(),s.Ec(),s.Fc(11,"mat-select",20),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Advanced.custom_downloading_agent=e})),s.Fc(12,"mat-option",46),s.xd(13,"aria2c"),s.Ec(),s.Fc(14,"mat-option",47),s.xd(15,"avconv"),s.Ec(),s.Fc(16,"mat-option",48),s.xd(17,"axel"),s.Ec(),s.Fc(18,"mat-option",49),s.xd(19,"curl"),s.Ec(),s.Fc(20,"mat-option",50),s.xd(21,"ffmpeg"),s.Ec(),s.Fc(22,"mat-option",51),s.xd(23,"httpie"),s.Ec(),s.Fc(24,"mat-option",52),s.xd(25,"wget"),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(26,"div",16),s.Fc(27,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Advanced.allow_advanced_download=e})),s.Dc(28),s.Jc(29,YS),s.Cc(),s.Ec(),s.Ec(),s.Fc(30,"div",53),s.Fc(31,"mat-checkbox",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).new_config.Advanced.multi_user_mode=e})),s.Dc(32),s.Jc(33,KS),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(3),s.cd("ngModel",t.new_config.Advanced.use_default_downloading_agent),s.lc(8),s.cd("disabled",t.new_config.Advanced.use_default_downloading_agent)("ngModel",t.new_config.Advanced.custom_downloading_agent),s.lc(16),s.cd("ngModel",t.new_config.Advanced.allow_advanced_download),s.lc(4),s.cd("ngModel",t.new_config.Advanced.multi_user_mode)}}function tE(t,e){1&t&&(s.Fc(0,"div",54),s.Ac(1,"app-updater"),s.Ec())}function eE(t,e){if(1&t&&(s.vd(0,QS,34,5,"div",8),s.Ac(1,"mat-divider"),s.vd(2,tE,2,0,"div",45)),2&t){const t=s.Wc();s.cd("ngIf",t.new_config),s.lc(2),s.cd("ngIf",t.new_config)}}zS=$localize`:Youtube API Key setting hint␟8602e313cdfa7c4cc475ccbe86459fce3c3fd986␟3231872778665115286:Generating a key is easy!`,LS=$localize`:Chrome ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,NS=$localize`:Chrome click here suffix␟7f09776373995003161235c0c8d02b7f91dbc4df␟2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually.`,BS=$localize`:Chrome setup suffix␟5b5296423906ab3371fdb2b5a5aaa83acaa2ee52␟8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL.`,VS=$localize`:Firefox ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,jS=$localize`:Firefox click here suffix␟9a2ec6da48771128384887525bdcac992632c863␟8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page.`,$S=$localize`:Firefox setup prefix link␟eb81be6b49e195e5307811d1d08a19259d411f37␟3930152199106610543:Detailed setup instructions.`,US=$localize`:Firefox setup suffix␟cb17ff8fe3961cf90f44bee97c88a3f3347a7e55␟5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL.`,WS=$localize`:Bookmarklet instructions␟61b81b11aad0b9d970ece2fce18405f07eac69c2␟907045314542317789:Drag the link below to your bookmarks, and you're good to go! Just navigate to the YouTube video you'd like to download, and click the bookmark.`,GS=$localize`:Generate audio only bookmarklet checkbox␟c505d6c5de63cc700f0aaf8a4b31fae9e18024e5␟7868265792526063076:Generate 'audio only' bookmarklet`,HS=$localize`:Use default downloading agent setting␟5fab47f146b0a4b809dcebf3db9da94df6299ea1␟1862425442411516950:Use default downloading agent`,qS=$localize`:Custom downloader select label␟ec71e08aee647ea4a71fd6b7510c54d84a797ca6␟13573305706839101:Select a downloader`,YS=$localize`:Allow advanced downloading setting␟dc3d990391c944d1fbfc7cfb402f7b5e112fb3a8␟4097058672287489906:Allow advanced download`,KS=$localize`:Multi user mode setting␟d4477669a560750d2064051a510ef4d7679e2f3e␟8189972369495207275:Multi-user mode`;const iE=["label",$localize`:Users settings label␟4d13a9cd5ed3dcee0eab22cb25198d43886942be␟4555457172864212828:Users`];function nE(t,e){1&t&&(s.Fc(0,"mat-tab",1),s.Lc(1,iE),s.Ac(2,"app-modify-users"),s.Ec())}let sE=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.sanitizer=i,this.dialog=n,this.all_locales=ik,this.supported_locales=["en","es"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v3.6"}get settingsAreTheSame(){return this._settingsSame=this.settingsSame(),this._settingsSame}set settingsAreTheSame(t){this._settingsSame=t}ngOnInit(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}getConfig(){this.initial_config=this.postsService.config,this.new_config=JSON.parse(JSON.stringify(this.initial_config))}settingsSame(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}saveSettings(){this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe(t=>{t.success&&(!this.initial_config.Advanced.multi_user_mode&&this.new_config.Advanced.multi_user_mode&&this.postsService.checkAdminCreationStatus(),this.initial_config=JSON.parse(JSON.stringify(this.new_config)),this.postsService.reload_config.next(!0))},t=>{console.error("Failed to save config!")})}setNewPin(){this.dialog.open(ek,{data:{resetMode:!0}})}generateAPIKey(){this.postsService.generateNewAPIKey().subscribe(t=>{t.new_api_key&&(this.initial_config.API.API_key=t.new_api_key,this.new_config.API.API_key=t.new_api_key)})}localeSelectChanged(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}generateBookmarklet(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}generateBookmarkletCode(){return`javascript:(function()%7Bwindow.open('${window.location.href.split("#")[0]+"#/home;url="}' + encodeURIComponent(window.location) + ';audioOnly=${this.bookmarkletAudioOnly}')%7D)()`}bookmarkletAudioOnlyChanged(t){this.bookmarkletAudioOnly=t.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}bookmarksite(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){const i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("title",t),i.setAttribute("rel","sidebar"),i.click()}}openArgsModifierDialog(){this.dialog.open(yk,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe(t=>{t&&(this.new_config.Downloader.custom_args=t)})}getLatestGithubRelease(){this.postsService.getLatestGithubRelease().subscribe(t=>{this.latestGithubRelease=t})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(Wg),s.zc(n.b),s.zc(bd))},t.\u0275cmp=s.tc({type:t,selectors:[["app-settings"]],decls:31,vars:4,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],["label","Users",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mb-3","mt-3"],[1,"container-fluid","mt-1"]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.Jc(1,TC),s.Ec(),s.Fc(2,"mat-dialog-content"),s.Fc(3,"mat-tab-group"),s.Fc(4,"mat-tab",1),s.Lc(5,PC),s.vd(6,hS,9,5,"ng-template",2),s.Ec(),s.Fc(7,"mat-tab",1),s.Lc(8,FC),s.vd(9,yS,1,1,"ng-template",3),s.Ec(),s.Fc(10,"mat-tab",1),s.Lc(11,RC),s.vd(12,ZS,7,4,"ng-template",3),s.Ec(),s.Fc(13,"mat-tab",1),s.Lc(14,MC),s.vd(15,eE,3,2,"ng-template",3),s.Ec(),s.vd(16,nE,3,0,"mat-tab",4),s.Ec(),s.Ec(),s.Fc(17,"mat-dialog-actions"),s.Fc(18,"div",5),s.Fc(19,"button",6),s.Sc("click",(function(){return e.saveSettings()})),s.Fc(20,"mat-icon"),s.xd(21,"done"),s.Ec(),s.xd(22,"\xa0\xa0 "),s.Dc(23),s.Jc(24,zC),s.Cc(),s.Ec(),s.Fc(25,"button",7),s.Fc(26,"mat-icon"),s.xd(27,"cancel"),s.Ec(),s.xd(28,"\xa0\xa0 "),s.Fc(29,"span"),s.Jc(30,LC),s.Ec(),s.Ec(),s.Ec(),s.Ec()),2&t&&(s.lc(16),s.cd("ngIf",e.postsService.config&&e.postsService.config.Advanced.multi_user_mode),s.lc(3),s.cd("disabled",e.settingsSame()),s.lc(6),s.cd("mat-dialog-close",!1),s.lc(5),s.Mc(e.settingsAreTheSame+""),s.Kc(30))},directives:[yd,wd,Mf,Cf,_f,ve.t,xd,bs,vu,vd,Mu,Bc,Fu,Fs,ho,Vs,Ya,Dc,gr,Ic,Hp,rs,ve.s,Km,Lk,DC],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}"]}),t})();var aE,oE,rE,lE,cE,dE,hE,uE,mE,pE;function gE(t,e){1&t&&(s.Fc(0,"span",12),s.Ac(1,"mat-spinner",13),s.xd(2,"\xa0"),s.Dc(3),s.Jc(4,mE),s.Cc(),s.Ec()),2&t&&(s.lc(1),s.cd("diameter",22))}function fE(t,e){1&t&&(s.Fc(0,"mat-icon",14),s.xd(1,"done"),s.Ec())}function bE(t,e){if(1&t&&(s.Fc(0,"a",2),s.Dc(1),s.Jc(2,pE),s.Cc(),s.xd(3),s.Ec()),2&t){const t=s.Wc();s.cd("href",t.latestUpdateLink,s.pd),s.lc(3),s.zd(" - ",t.latestGithubRelease.tag_name,"")}}function _E(t,e){1&t&&(s.Fc(0,"span"),s.xd(1,"You are up to date."),s.Ec())}aE=$localize`:About dialog title␟cec82c0a545f37420d55a9b6c45c20546e82f94e␟8863443674032361244:About YoutubeDL-Material`,oE=$localize`:About first paragraph␟199c17e5d6a419313af3c325f06dcbb9645ca618␟7048705050249868840:is an open-source YouTube downloader built under Google's Material Design specifications. You can seamlessly download your favorite videos as video or audio files, and even subscribe to your favorite channels and playlists to keep updated with their new videos.`,rE=$localize`:About second paragraph␟bc0ad0ee6630acb7fcb7802ec79f5a0ee943c1a7␟786314306504588277:has some awesome features included! An extensive API, Docker support, and localization (translation) support. Read up on all the supported features by clicking on the GitHub icon above.`,lE=$localize`:Version label␟a45e3b05f0529dc5246d70ef62304c94426d4c81␟5296103174605274070:Installed version:`,cE=$localize`:Update through settings menu hint␟189b28aaa19b3c51c6111ad039c4fd5e2a22e370␟41092526824232895:You can update from the settings menu.`,dE=$localize`:About bug prefix␟b33536f59b94ec935a16bd6869d836895dc5300c␟3353248286278121979:Found a bug or have a suggestion?`,hE=$localize`:About bug click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,uE=$localize`:About bug suffix␟e1f398f38ff1534303d4bb80bd6cece245f24016␟1971178156716923826:to create an issue!`,mE=$localize`:Checking for updates text␟e22f3a5351944f3a1a10cfc7da6f65dfbe0037fe␟9163379406577397382:Checking for updates...`,pE=$localize`:View latest update␟a16e92385b4fd9677bb830a4b796b8b79c113290␟509090351011426949:Update available`;let vE=(()=>{class t{constructor(t){this.postsService=t,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v3.6"}ngOnInit(){this.getLatestGithubRelease()}getLatestGithubRelease(){this.postsService.getLatestGithubRelease().subscribe(t=>{this.checking_for_updates=!1,this.latestGithubRelease=t})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx))},t.\u0275cmp=s.tc({type:t,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.Dc(1),s.Jc(2,aE),s.Cc(),s.Fc(3,"span",1),s.Fc(4,"a",2),s.Ac(5,"img",3),s.Ec(),s.Ac(6,"img",4),s.Ec(),s.Ec(),s.Fc(7,"mat-dialog-content"),s.Fc(8,"div",5),s.Fc(9,"p"),s.Fc(10,"i"),s.xd(11,"YoutubeDL-Material"),s.Ec(),s.xd(12,"\xa0"),s.Dc(13),s.Jc(14,oE),s.Cc(),s.Ec(),s.Fc(15,"p"),s.Fc(16,"i"),s.xd(17,"YoutubeDL-Material"),s.Ec(),s.xd(18,"\xa0"),s.Dc(19),s.Jc(20,rE),s.Cc(),s.Ec(),s.Ac(21,"mat-divider"),s.Fc(22,"h5",6),s.xd(23,"Installation details:"),s.Ec(),s.Fc(24,"p"),s.Dc(25),s.Jc(26,lE),s.Cc(),s.xd(27),s.vd(28,gE,5,1,"span",7),s.vd(29,fE,2,0,"mat-icon",8),s.xd(30,"\xa0\xa0"),s.vd(31,bE,4,2,"a",9),s.xd(32,". "),s.Dc(33),s.Jc(34,cE),s.Cc(),s.vd(35,_E,2,0,"span",10),s.Ec(),s.Fc(36,"p"),s.Dc(37),s.Jc(38,dE),s.Cc(),s.xd(39,"\xa0"),s.Fc(40,"a",2),s.Dc(41),s.Jc(42,hE),s.Cc(),s.Ec(),s.xd(43,"\xa0"),s.Dc(44),s.Jc(45,uE),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(46,"mat-dialog-actions"),s.Fc(47,"button",11),s.xd(48,"Close"),s.Ec(),s.Ec()),2&t&&(s.lc(4),s.cd("href",e.projectLink,s.pd),s.lc(23),s.zd("\xa0",e.current_version_tag," - "),s.lc(1),s.cd("ngIf",e.checking_for_updates),s.lc(1),s.cd("ngIf",!e.checking_for_updates),s.lc(2),s.cd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name!==e.current_version_tag),s.lc(4),s.cd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name===e.current_version_tag),s.lc(5),s.cd("href",e.issuesLink,s.pd))},directives:[yd,wd,Mu,ve.t,xd,bs,vd,pp,vu],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),t})();var yE,wE,xE,kE,CE,SE,EE,OE;function AE(t,e){if(1&t&&(s.Fc(0,"div"),s.Fc(1,"div"),s.Fc(2,"strong"),s.Dc(3),s.Jc(4,kE),s.Cc(),s.Ec(),s.xd(5),s.Ec(),s.Fc(6,"div"),s.Fc(7,"strong"),s.Dc(8),s.Jc(9,CE),s.Cc(),s.Ec(),s.xd(10),s.Ec(),s.Fc(11,"div"),s.Fc(12,"strong"),s.Dc(13),s.Jc(14,SE),s.Cc(),s.Ec(),s.xd(15),s.Xc(16,"date"),s.Ec(),s.Ac(17,"div",6),s.Ec()),2&t){const t=s.Wc();s.lc(5),s.zd("\xa0",t.postsService.user.name," "),s.lc(5),s.zd("\xa0",t.postsService.user.uid," "),s.lc(5),s.zd("\xa0",t.postsService.user.created?s.Yc(16,3,t.postsService.user.created):"N/A"," ")}}function DE(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"h5"),s.Fc(2,"mat-icon"),s.xd(3,"warn"),s.Ec(),s.Dc(4),s.Jc(5,EE),s.Cc(),s.Ec(),s.Fc(6,"button",7),s.Sc("click",(function(){return s.nd(t),s.Wc().loginClicked()})),s.Dc(7),s.Jc(8,OE),s.Cc(),s.Ec(),s.Ec()}}yE=$localize`:User profile dialog title␟42ff677ec14f111e88bd6cdd30145378e994d1bf␟3496181279436331299:Your Profile`,wE=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,xE=$localize`:Logout␟bb694b49d408265c91c62799c2b3a7e3151c824d␟3797778920049399855:Logout`,kE=$localize`:Name␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,CE=$localize`:UID␟ac9d09de42edca1296371e4d801349c9096ac8de␟5524669285756836501:UID:`,SE=$localize`:Created␟a5ed099ffc9e96f6970df843289ade8a7d20ab9f␟1616250945945379783:Created:`,EE=$localize`:Not logged in notification␟fa96f2137af0a24e6d6d54c598c0af7d5d5ad344␟276791482480581557:You are not logged in.`,OE=$localize`:Login␟6765b4c916060f6bc42d9bb69e80377dbcb5e4e9␟2454050363478003966:Login`;let IE=(()=>{class t{constructor(t,e,i){this.postsService=t,this.router=e,this.dialogRef=i}ngOnInit(){}loginClicked(){this.router.navigate(["/login"]),this.dialogRef.close()}logoutClicked(){this.postsService.logout(),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(wx),s.zc(ud))},t.\u0275cmp=s.tc({type:t,selectors:[["app-user-profile-dialog"]],decls:14,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],[2,"width","100%"],[2,"position","relative"],["mat-stroked-button","","mat-dialog-close","","color","primary"],["mat-stroked-button","","color","warn",2,"position","absolute","right","0px",3,"click"],[2,"margin-top","20px"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.Jc(1,yE),s.Ec(),s.Fc(2,"mat-dialog-content"),s.vd(3,AE,18,5,"div",1),s.vd(4,DE,9,0,"div",1),s.Ec(),s.Fc(5,"mat-dialog-actions"),s.Fc(6,"div",2),s.Fc(7,"div",3),s.Fc(8,"button",4),s.Dc(9),s.Jc(10,wE),s.Cc(),s.Ec(),s.Fc(11,"button",5),s.Sc("click",(function(){return e.logoutClicked()})),s.Dc(12),s.Jc(13,xE),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec()),2&t&&(s.lc(3),s.cd("ngIf",e.postsService.isLoggedIn&&e.postsService.user),s.lc(1),s.cd("ngIf",!e.postsService.isLoggedIn||!e.postsService.user))},directives:[yd,wd,ve.t,xd,bs,vd,vu],pipes:[ve.f],styles:[""]}),t})();var TE,PE;TE=$localize`:Create admin account dialog title␟a1dbca87b9f36d2b06a5cbcffb5814c4ae9b798a␟1671378244656756701:Create admin account`,PE=$localize`:No default admin detected explanation␟2d2adf3ca26a676bca2269295b7455a26fd26980␟1428648941210584739:No default admin account detected. This will create and set the password for an admin account with the user name as 'admin'.`;const FE=["placeholder",$localize`:Password␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];var RE;function ME(t,e){1&t&&s.Ac(0,"mat-spinner",7),2&t&&s.cd("diameter",25)}RE=$localize`:Create␟70a67e04629f6d412db0a12d51820b480788d795␟5674286808255988565:Create`;let zE=(()=>{class t{constructor(t,e){this.postsService=t,this.dialogRef=e,this.creating=!1,this.input=""}ngOnInit(){}create(){this.creating=!0,this.postsService.createAdminAccount(this.input).subscribe(t=>{this.creating=!1,this.dialogRef.close(!!t.success)},t=>{console.log(t),this.dialogRef.close(!1)})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(ud))},t.\u0275cmp=s.tc({type:t,selectors:[["app-set-default-admin-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],[2,"position","relative"],["color","accent"],["type","password","matInput","",3,"ngModel","keyup.enter","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],[3,"diameter"]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.Dc(1),s.Jc(2,TE),s.Cc(),s.Ec(),s.Fc(3,"mat-dialog-content"),s.Fc(4,"div"),s.Fc(5,"p"),s.Jc(6,PE),s.Ec(),s.Ec(),s.Fc(7,"div",1),s.Fc(8,"div"),s.Fc(9,"mat-form-field",2),s.Fc(10,"input",3),s.Lc(11,FE),s.Sc("keyup.enter",(function(){return e.create()}))("ngModelChange",(function(t){return e.input=t})),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(12,"mat-dialog-actions"),s.Fc(13,"button",4),s.Sc("click",(function(){return e.create()})),s.Dc(14),s.Jc(15,RE),s.Cc(),s.Ec(),s.Fc(16,"div",5),s.vd(17,ME,1,1,"mat-spinner",6),s.Ec(),s.Ec()),2&t&&(s.lc(10),s.cd("ngModel",e.input),s.lc(3),s.cd("disabled",0===e.input.length),s.lc(4),s.cd("ngIf",e.creating))},directives:[yd,wd,Bc,Fu,Fs,Vs,Ya,xd,bs,ve.t,pp],styles:[".spinner-div[_ngcontent-%COMP%]{position:relative;left:10px;bottom:5px}"]}),t})();const LE=["sidenav"],NE=["hamburgerMenu"];var BE,VE,jE,$E,UE,WE,GE;function HE(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",20,21),s.Sc("click",(function(){return s.nd(t),s.Wc().toggleSidenav()})),s.Fc(2,"mat-icon"),s.xd(3,"menu"),s.Ec(),s.Ec()}}function qE(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",22),s.Sc("click",(function(){return s.nd(t),s.Wc().goBack()})),s.Fc(1,"mat-icon"),s.xd(2,"arrow_back"),s.Ec(),s.Ec()}}function YE(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",13),s.Sc("click",(function(){return s.nd(t),s.Wc().openProfileDialog()})),s.Fc(1,"mat-icon"),s.xd(2,"person"),s.Ec(),s.Fc(3,"span"),s.Jc(4,jE),s.Ec(),s.Ec()}}function KE(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",13),s.Sc("click",(function(e){return s.nd(t),s.Wc().themeMenuItemClicked(e)})),s.Fc(1,"mat-icon"),s.xd(2),s.Ec(),s.Fc(3,"span"),s.Jc(4,$E),s.Ec(),s.Ac(5,"mat-slide-toggle",23),s.Ec()}if(2&t){const t=s.Wc();s.lc(2),s.yd("default"===t.postsService.theme.key?"brightness_5":"brightness_2"),s.lc(3),s.cd("checked","dark"===t.postsService.theme.key)}}function XE(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",13),s.Sc("click",(function(){return s.nd(t),s.Wc().openSettingsDialog()})),s.Fc(1,"mat-icon"),s.xd(2,"settings"),s.Ec(),s.Fc(3,"span"),s.Jc(4,UE),s.Ec(),s.Ec()}}function JE(t,e){if(1&t){const t=s.Gc();s.Fc(0,"a",24),s.Sc("click",(function(){return s.nd(t),s.Wc(),s.jd(27).close()})),s.Dc(1),s.Jc(2,WE),s.Cc(),s.Ec()}}function ZE(t,e){if(1&t){const t=s.Gc();s.Fc(0,"a",25),s.Sc("click",(function(){return s.nd(t),s.Wc(),s.jd(27).close()})),s.Dc(1),s.Jc(2,GE),s.Cc(),s.Ec()}}BE=$localize`:About menu label␟004b222ff9ef9dd4771b777950ca1d0e4cd4348a␟1726363342938046830:About`,VE=$localize`:Navigation menu Home Page title␟92eee6be6de0b11c924e3ab27db30257159c0a7c␟2821179408673282599:Home`,jE=$localize`:Profile menu label␟994363f08f9fbfa3b3994ff7b35c6904fdff18d8␟4915431133669985304:Profile`,$E=$localize`:Dark mode toggle label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,UE=$localize`:Settings menu label␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,WE=$localize`:Navigation menu Subscriptions Page title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,GE=$localize`:Navigation menu Downloads Page title␟822fab38216f64e8166d368b59fe756ca39d301b␟9040361513231775562:Downloads`;let QE=(()=>{class t{constructor(t,e,i,n,s,a){this.postsService=t,this.snackBar=e,this.dialog=i,this.router=n,this.overlayContainer=s,this.elementRef=a,this.THEMES_CONFIG=Nv,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe(t=>{t instanceof ry?this.navigator=localStorage.getItem("player_navigator"):t instanceof ly&&this.hamburgerMenuButton&&this.hamburgerMenuButton.nativeElement&&this.hamburgerMenuButton.nativeElement.blur()}),this.postsService.config_reloaded.subscribe(t=>{t&&this.loadConfig()})}toggleSidenav(){this.sidenav.toggle()}loadConfig(){this.topBarTitle=this.postsService.config.Extra.title_top,this.settingsPinRequired=this.postsService.config.Extra.settings_pin_required;const t=this.postsService.config.Themes;this.defaultTheme=t?this.postsService.config.Themes.default_theme:"default",this.allowThemeChange=!t||this.postsService.config.Themes.allow_theme_change,this.allowSubscriptions=this.postsService.config.Subscriptions.allow_subscriptions,localStorage.getItem("theme")||this.setTheme(t?this.defaultTheme:"default")}setTheme(t){let e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}onSetTheme(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}flipTheme(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}themeMenuItemClicked(t){this.flipTheme(),t.stopPropagation()}ngOnInit(){localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme")),this.postsService.open_create_default_admin_dialog.subscribe(t=>{t&&this.dialog.open(zE).afterClosed().subscribe(t=>{t?"/login"!==this.router.url&&this.router.navigate(["/login"]):console.error("Failed to create default admin account. See logs for details.")})})}goBack(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}openSettingsDialog(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}actuallyOpenSettingsDialog(){this.dialog.open(sE,{width:"80vw"})}openPinDialog(){this.dialog.open(ek,{}).afterClosed().subscribe(t=>{t&&this.actuallyOpenSettingsDialog()})}openAboutDialog(){this.dialog.open(vE,{width:"80vw"})}openProfileDialog(){this.dialog.open(IE,{width:"60vw"})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(Wg),s.zc(bd),s.zc(wx),s.zc(Ul),s.zc(s.q))},t.\u0275cmp=s.tc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.Bd(LE,!0),s.Bd(NE,!0,s.q)),2&t&&(s.id(i=s.Tc())&&(e.sidenav=i.first),s.id(i=s.Tc())&&(e.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&s.nc(e.componentCssClass)},decls:36,vars:13,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-list-item","","routerLink","/downloads",3,"click"]],template:function(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",0),s.Fc(1,"div",1),s.Fc(2,"mat-toolbar",2),s.Fc(3,"div",3),s.Fc(4,"div",4),s.vd(5,HE,4,0,"button",5),s.vd(6,qE,3,0,"button",6),s.Ec(),s.Fc(7,"div",7),s.Fc(8,"div",8),s.xd(9),s.Ec(),s.Ec(),s.Fc(10,"div",9),s.Fc(11,"button",10),s.Fc(12,"mat-icon"),s.xd(13,"more_vert"),s.Ec(),s.Ec(),s.Fc(14,"mat-menu",null,11),s.vd(16,YE,5,0,"button",12),s.vd(17,KE,6,2,"button",12),s.vd(18,XE,5,0,"button",12),s.Fc(19,"button",13),s.Sc("click",(function(){return e.openAboutDialog()})),s.Fc(20,"mat-icon"),s.xd(21,"info"),s.Ec(),s.Fc(22,"span"),s.Jc(23,BE),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(24,"div",14),s.Fc(25,"mat-sidenav-container",15),s.Fc(26,"mat-sidenav",null,16),s.Fc(28,"mat-nav-list"),s.Fc(29,"a",17),s.Sc("click",(function(){return s.nd(t),s.jd(27).close()})),s.Dc(30),s.Jc(31,VE),s.Cc(),s.Ec(),s.vd(32,JE,3,0,"a",18),s.vd(33,ZE,3,0,"a",19),s.Ec(),s.Ec(),s.Fc(34,"mat-sidenav-content"),s.Ac(35,"router-outlet"),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.jd(15);s.ud("background",e.postsService.theme?e.postsService.theme.background_color:null,s.sc),s.lc(5),s.cd("ngIf","/player"!==e.router.url.split(";")[0]),s.lc(1),s.cd("ngIf","/player"===e.router.url.split(";")[0]),s.lc(3),s.zd(" ",e.topBarTitle," "),s.lc(2),s.cd("matMenuTriggerFor",t),s.lc(5),s.cd("ngIf",e.postsService.isLoggedIn),s.lc(1),s.cd("ngIf",e.allowThemeChange),s.lc(1),s.cd("ngIf",!e.postsService.isLoggedIn||e.postsService.permissions.includes("settings")),s.lc(14),s.cd("ngIf",e.allowSubscriptions&&(!e.postsService.isLoggedIn||e.postsService.permissions.includes("subscriptions"))),s.lc(1),s.cd("ngIf",!e.postsService.isLoggedIn||e.postsService.permissions.includes("downloads_manager")),s.lc(1),s.ud("background",e.postsService.theme?e.postsService.theme.background_color:null,s.sc)}},directives:[Xg,ve.t,bs,Am,vu,Cm,_m,mg,hg,Yu,tm,kx,dg,Ax,Og],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),t})();function tO(t,e,i,n){return new(i||(i=Promise))((function(s,a){function o(t){try{l(n.next(t))}catch(e){a(e)}}function r(t){try{l(n.throw(t))}catch(e){a(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,r)}l((n=n.apply(t,e||[])).next())}))}var eO=i("Iab2");class iO{constructor(t){this.id=t&&t.id||null,this.title=t&&t.title||null,this.desc=t&&t.desc||null,this.thumbnailUrl=t&&t.thumbnailUrl||null,this.uploaded=t&&t.uploaded||null,this.videoUrl=t&&t.videoUrl||`https://www.youtube.com/watch?v=${this.id}`,this.uploaded=function(t){const e=new Date(t),i=sO(e.getMonth()+1),n=sO(e.getDate()),s=e.getFullYear();let a;a=e.getHours();const o=sO(e.getMinutes());let r="AM";const l=parseInt(a,10);return l>12?(r="PM",a=l-12):0===l&&(a="12"),a=sO(a),i+"-"+n+"-"+s+" "+a+":"+o+" "+r}(Date.parse(this.uploaded))}}let nO=(()=>{class t{constructor(t){this.http=t,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}initializeAPI(t){this.key=t}search(t){if(this.ValidURL(t))return new si.a;const e=[`q=${t}`,`key=${this.key}`,"part=snippet","type=video","maxResults=5"].join("&");return this.http.get(`${this.url}?${e}`).map(t=>t.items.map(t=>new iO({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})))}ValidURL(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Oc(Uh))},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function sO(t){return t<10?"0"+t:t}var aO;aO=$localize`:Create a playlist dialog title␟17f0ea5d2d7a262b0e875acc70475f102aee84e6␟3949911572988594237:Create a playlist`;const oO=["placeholder",$localize`:Playlist name placeholder␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];var rO,lO;function cO(t,e){1&t&&(s.Fc(0,"mat-label"),s.Dc(1),s.Jc(2,rO),s.Cc(),s.Ec())}function dO(t,e){1&t&&(s.Fc(0,"mat-label"),s.Dc(1),s.Jc(2,lO),s.Cc(),s.Ec())}function hO(t,e){if(1&t&&(s.Fc(0,"mat-option",8),s.xd(1),s.Ec()),2&t){const t=e.$implicit;s.cd("value",t.id),s.lc(1),s.yd(t.id)}}function uO(t,e){1&t&&(s.Fc(0,"div",9),s.Ac(1,"mat-spinner",10),s.Ec()),2&t&&(s.lc(1),s.cd("diameter",25))}rO=$localize`:Audio files title␟f47e2d56dd8a145b2e9599da9730c049d52962a2␟253926325379303932:Audio files`,lO=$localize`:Videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const mO=function(){return{standalone:!0}};let pO=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Ma,this.name="",this.create_in_progress=!1}ngOnInit(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}createPlaylist(){const t=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,t).subscribe(t=>{this.create_in_progress=!1,this.dialogRef.close(!!t.success)})}getThumbnailURL(){for(let t=0;t1?"first-result-card":"",i===n.results.length-1&&n.results.length>1?"last-result-card":"",1===n.results.length?"only-result-card":"")),s.lc(2),s.zd(" ",t.title," "),s.lc(2),s.zd(" ",t.uploaded," ")}}function RO(t,e){if(1&t&&(s.Fc(0,"div",34),s.vd(1,FO,12,7,"span",28),s.Ec()),2&t){const t=s.Wc();s.lc(1),s.cd("ngForOf",t.results)}}var MO,zO,LO,NO;function BO(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-checkbox",40),s.Sc("change",(function(e){return s.nd(t),s.Wc().multiDownloadModeChanged(e)}))("ngModelChange",(function(e){return s.nd(t),s.Wc().multiDownloadMode=e})),s.Dc(1),s.Jc(2,MO),s.Cc(),s.Ec()}if(2&t){const t=s.Wc();s.cd("disabled",t.current_download)("ngModel",t.multiDownloadMode)}}function VO(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",41),s.Sc("click",(function(){return s.nd(t),s.Wc().cancelDownload()})),s.Dc(1),s.Jc(2,zO),s.Cc(),s.Ec()}}MO=$localize`:Multi-download Mode checkbox␟96a01fafe135afc58b0f8071a4ab00234495ce18␟1215999553275961560: Multi-download Mode `,zO=$localize`:Cancel download button␟6a3777f913cf3f288664f0632b9f24794fdcc24e␟6991067716289442185: Cancel `,LO=$localize`:Advanced download mode panel␟322ed150e02666fe2259c5b4614eac7066f4ffa0␟7427754392029374006: Advanced `,NO=$localize`:Use custom args checkbox␟4e4c721129466be9c3862294dc40241b64045998␟5091669664044282329: Use custom args `;const jO=["placeholder",$localize`:Custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var $O,UO;$O=$localize`:Custom Args input hint␟ccc7e92cbdd35e901acf9ad80941abee07bd8f60␟8882144118477601028: No need to include URL, just everything after. `,UO=$localize`:Use custom output checkbox␟3a92a3443c65a52f37ca7efb8f453b35dbefbf29␟5904983012542242085: Use custom output `;const WO=["placeholder",$localize`:Custom output placeholder␟d9c02face477f2f9cdaae318ccee5f89856851fb␟3075663591125020403:Custom output`];var GO,HO,qO,YO;function KO(t,e){if(1&t&&(s.Fc(0,"p"),s.Dc(1),s.Jc(2,qO),s.Cc(),s.xd(3," \xa0"),s.Fc(4,"i"),s.xd(5),s.Ec(),s.Ec()),2&t){const t=s.Wc(2);s.lc(5),s.yd(t.simulatedOutput)}}GO=$localize`:Youtube-dl output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,HO=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,qO=$localize`:Simulated command label␟b7ffe7c6586d6f3f18a9246806a7c7d5538ab43e␟4637303589735709945: Simulated command: `,YO=$localize`:Use authentication checkbox␟8fad10737d3e3735a6699a4d89cbf6c20f6bb55f␟294759932648923187: Use authentication `;const XO=["placeholder",$localize`:YT Username placeholder␟08c74dc9762957593b91f6eb5d65efdfc975bf48␟5248717555542428023:Username`];function JO(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",52),s.Fc(1,"mat-checkbox",46),s.Sc("change",(function(e){return s.nd(t),s.Wc(2).youtubeAuthEnabledChanged(e)}))("ngModelChange",(function(e){return s.nd(t),s.Wc(2).youtubeAuthEnabled=e})),s.Dc(2),s.Jc(3,YO),s.Cc(),s.Ec(),s.Fc(4,"mat-form-field",53),s.Fc(5,"input",49),s.Lc(6,XO),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).youtubeUsername=e})),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(1),s.cd("disabled",t.current_download)("ngModel",t.youtubeAuthEnabled)("ngModelOptions",s.ed(6,AO)),s.lc(4),s.cd("ngModel",t.youtubeUsername)("ngModelOptions",s.ed(7,AO))("disabled",!t.youtubeAuthEnabled)}}const ZO=["placeholder",$localize`:YT Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];function QO(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",52),s.Fc(1,"mat-form-field",54),s.Fc(2,"input",55),s.Lc(3,ZO),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc(2).youtubePassword=e})),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(2),s.cd("ngModel",t.youtubePassword)("ngModelOptions",s.ed(3,AO))("disabled",!t.youtubeAuthEnabled)}}function tA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",0),s.Fc(1,"form",42),s.Fc(2,"mat-expansion-panel",43),s.Fc(3,"mat-expansion-panel-header"),s.Fc(4,"mat-panel-title"),s.Dc(5),s.Jc(6,LO),s.Cc(),s.Ec(),s.Ec(),s.vd(7,KO,6,1,"p",10),s.Fc(8,"div",44),s.Fc(9,"div",5),s.Fc(10,"div",45),s.Fc(11,"mat-checkbox",46),s.Sc("change",(function(e){return s.nd(t),s.Wc().customArgsEnabledChanged(e)}))("ngModelChange",(function(e){return s.nd(t),s.Wc().customArgsEnabled=e})),s.Dc(12),s.Jc(13,NO),s.Cc(),s.Ec(),s.Fc(14,"button",47),s.Sc("click",(function(){return s.nd(t),s.Wc().openArgsModifierDialog()})),s.Fc(15,"mat-icon"),s.xd(16,"edit"),s.Ec(),s.Ec(),s.Fc(17,"mat-form-field",48),s.Fc(18,"input",49),s.Lc(19,jO),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().customArgs=e})),s.Ec(),s.Fc(20,"mat-hint"),s.Dc(21),s.Jc(22,$O),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(23,"div",45),s.Fc(24,"mat-checkbox",46),s.Sc("change",(function(e){return s.nd(t),s.Wc().customOutputEnabledChanged(e)}))("ngModelChange",(function(e){return s.nd(t),s.Wc().customOutputEnabled=e})),s.Dc(25),s.Jc(26,UO),s.Cc(),s.Ec(),s.Fc(27,"mat-form-field",48),s.Fc(28,"input",49),s.Lc(29,WO),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().customOutput=e})),s.Ec(),s.Fc(30,"mat-hint"),s.Fc(31,"a",50),s.Dc(32),s.Jc(33,GO),s.Cc(),s.Ec(),s.xd(34,". "),s.Dc(35),s.Jc(36,HO),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.vd(37,JO,7,8,"div",51),s.vd(38,QO,4,4,"div",51),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(7),s.cd("ngIf",t.simulatedOutput),s.lc(4),s.cd("disabled",t.current_download)("ngModel",t.customArgsEnabled)("ngModelOptions",s.ed(15,AO)),s.lc(7),s.cd("ngModel",t.customArgs)("ngModelOptions",s.ed(16,AO))("disabled",!t.customArgsEnabled),s.lc(6),s.cd("disabled",t.current_download)("ngModel",t.customOutputEnabled)("ngModelOptions",s.ed(17,AO)),s.lc(4),s.cd("ngModel",t.customOutput)("ngModelOptions",s.ed(18,AO))("disabled",!t.customOutputEnabled),s.lc(9),s.cd("ngIf",!t.youtubeAuthDisabledOverride),s.lc(1),s.cd("ngIf",!t.youtubeAuthDisabledOverride)}}function eA(t,e){1&t&&s.Ac(0,"mat-divider",2)}function iA(t,e){if(1&t){const t=s.Gc();s.Dc(0),s.Fc(1,"app-download-item",60),s.Sc("cancelDownload",(function(e){return s.nd(t),s.Wc(3).cancelDownload(e)})),s.Ec(),s.vd(2,eA,1,0,"mat-divider",61),s.Cc()}if(2&t){const t=s.Wc(),e=t.$implicit,i=t.index,n=s.Wc(2);s.lc(1),s.cd("download",e)("queueNumber",i+1),s.lc(1),s.cd("ngIf",i!==n.downloads.length-1)}}function nA(t,e){if(1&t&&(s.Fc(0,"div",5),s.vd(1,iA,3,3,"ng-container",10),s.Ec()),2&t){const t=e.$implicit,i=s.Wc(2);s.lc(1),s.cd("ngIf",i.current_download!==t&&t.downloading)}}function sA(t,e){if(1&t&&(s.Fc(0,"div",56),s.Fc(1,"mat-card",57),s.Fc(2,"div",58),s.vd(3,nA,2,1,"div",59),s.Ec(),s.Ec(),s.Ec()),2&t){const t=s.Wc();s.lc(3),s.cd("ngForOf",t.downloads)}}function aA(t,e){if(1&t&&(s.Fc(0,"div",67),s.Ac(1,"mat-progress-bar",68),s.Ac(2,"br"),s.Ec()),2&t){const t=s.Wc(2);s.cd("ngClass",t.percentDownloaded>15&&100===t.percentDownloaded?"make-room-for-spinner":"equal-sizes"),s.lc(1),s.dd("value",t.percentDownloaded)}}function oA(t,e){1&t&&(s.Fc(0,"div",69),s.Ac(1,"mat-spinner",33),s.Ec()),2&t&&(s.lc(1),s.cd("diameter",25))}function rA(t,e){1&t&&s.Ac(0,"mat-progress-bar",70)}function lA(t,e){if(1&t&&(s.Fc(0,"div",62),s.Fc(1,"div",63),s.vd(2,aA,3,2,"div",64),s.vd(3,oA,2,1,"div",65),s.vd(4,rA,1,0,"ng-template",null,66,s.wd),s.Ec(),s.Ac(6,"br"),s.Ec()),2&t){const t=s.jd(5),e=s.Wc();s.lc(2),s.cd("ngIf",e.current_download.percent_complete&&e.current_download.percent_complete>15)("ngIfElse",t),s.lc(1),s.cd("ngIf",100===e.percentDownloaded)}}function cA(t,e){}var dA,hA,uA,mA,pA,gA,fA,bA;function _A(t,e){1&t&&s.Ac(0,"mat-progress-bar",82)}function vA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-grid-tile"),s.Fc(1,"app-file-card",79,80),s.Sc("removeFile",(function(e){return s.nd(t),s.Wc(3).removeFromMp3(e)})),s.Ec(),s.vd(3,_A,1,0,"mat-progress-bar",81),s.Ec()}if(2&t){const t=e.$implicit,i=s.Wc(3);s.lc(1),s.cd("file",t)("title",t.title)("name",t.id)("uid",t.uid)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!0)("use_youtubedl_archive",i.use_youtubedl_archive),s.lc(2),s.cd("ngIf",i.downloading_content.audio[t.id])}}function yA(t,e){1&t&&s.Ac(0,"mat-progress-bar",82)}function wA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-grid-tile"),s.Fc(1,"app-file-card",84,80),s.Sc("removeFile",(function(){s.nd(t);const i=e.$implicit,n=e.index;return s.Wc(4).removePlaylistMp3(i.id,n)})),s.Ec(),s.vd(3,yA,1,0,"mat-progress-bar",81),s.Ec()}if(2&t){const t=e.$implicit,i=s.Wc(4);s.lc(1),s.cd("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!0)("isPlaylist",!0)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.lc(2),s.cd("ngIf",i.downloading_content.audio[t.id])}}function xA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-grid-list",83),s.Sc("resize",(function(e){return s.nd(t),s.Wc(3).onResize(e)}),!1,s.md),s.vd(1,wA,4,9,"mat-grid-tile",28),s.Ec()}if(2&t){const t=s.Wc(3);s.cd("cols",t.files_cols),s.lc(1),s.cd("ngForOf",t.playlists.audio)}}function kA(t,e){1&t&&(s.Fc(0,"div"),s.Dc(1),s.Jc(2,gA),s.Cc(),s.Ec())}function CA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"mat-grid-list",74),s.Sc("resize",(function(e){return s.nd(t),s.Wc(2).onResize(e)}),!1,s.md),s.vd(2,vA,4,9,"mat-grid-tile",28),s.Ec(),s.Ac(3,"mat-divider"),s.Fc(4,"div",75),s.Fc(5,"h6"),s.Jc(6,pA),s.Ec(),s.Ec(),s.vd(7,xA,2,2,"mat-grid-list",76),s.Fc(8,"div",77),s.Fc(9,"button",78),s.Sc("click",(function(){return s.nd(t),s.Wc(2).openCreatePlaylistDialog("audio")})),s.Fc(10,"mat-icon"),s.xd(11,"add"),s.Ec(),s.Ec(),s.Ec(),s.vd(12,kA,3,0,"div",10),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(1),s.cd("cols",t.files_cols),s.lc(1),s.cd("ngForOf",t.mp3s),s.lc(5),s.cd("ngIf",t.playlists.audio.length>0),s.lc(5),s.cd("ngIf",0===t.playlists.audio.length)}}function SA(t,e){1&t&&s.Ac(0,"mat-progress-bar",82)}function EA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-grid-tile"),s.Fc(1,"app-file-card",79,85),s.Sc("removeFile",(function(e){return s.nd(t),s.Wc(3).removeFromMp4(e)})),s.Ec(),s.vd(3,SA,1,0,"mat-progress-bar",81),s.Ec()}if(2&t){const t=e.$implicit,i=s.Wc(3);s.lc(1),s.cd("file",t)("title",t.title)("name",t.id)("uid",t.uid)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!1)("use_youtubedl_archive",i.use_youtubedl_archive),s.lc(2),s.cd("ngIf",i.downloading_content.video[t.id])}}function OA(t,e){1&t&&s.Ac(0,"mat-progress-bar",82)}function AA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-grid-tile"),s.Fc(1,"app-file-card",84,85),s.Sc("removeFile",(function(){s.nd(t);const i=e.$implicit,n=e.index;return s.Wc(4).removePlaylistMp4(i.id,n)})),s.Ec(),s.vd(3,OA,1,0,"mat-progress-bar",81),s.Ec()}if(2&t){const t=e.$implicit,i=s.Wc(4);s.lc(1),s.cd("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!1)("isPlaylist",!0)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.lc(2),s.cd("ngIf",i.downloading_content.video[t.id])}}function DA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-grid-list",83),s.Sc("resize",(function(e){return s.nd(t),s.Wc(3).onResize(e)}),!1,s.md),s.vd(1,AA,4,9,"mat-grid-tile",28),s.Ec()}if(2&t){const t=s.Wc(3);s.cd("cols",t.files_cols),s.lc(1),s.cd("ngForOf",t.playlists.video)}}function IA(t,e){1&t&&(s.Fc(0,"div"),s.Dc(1),s.Jc(2,bA),s.Cc(),s.Ec())}function TA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"mat-grid-list",74),s.Sc("resize",(function(e){return s.nd(t),s.Wc(2).onResize(e)}),!1,s.md),s.vd(2,EA,4,9,"mat-grid-tile",28),s.Ec(),s.Ac(3,"mat-divider"),s.Fc(4,"div",75),s.Fc(5,"h6"),s.Jc(6,fA),s.Ec(),s.Ec(),s.vd(7,DA,2,2,"mat-grid-list",76),s.Fc(8,"div",77),s.Fc(9,"button",78),s.Sc("click",(function(){return s.nd(t),s.Wc(2).openCreatePlaylistDialog("video")})),s.Fc(10,"mat-icon"),s.xd(11,"add"),s.Ec(),s.Ec(),s.Ec(),s.vd(12,IA,3,0,"div",10),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(1),s.cd("cols",t.files_cols),s.lc(1),s.cd("ngForOf",t.mp4s),s.lc(5),s.cd("ngIf",t.playlists.video.length>0),s.lc(5),s.cd("ngIf",0===t.playlists.video.length)}}function PA(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",71),s.Fc(1,"mat-accordion"),s.Fc(2,"mat-expansion-panel",72),s.Sc("opened",(function(){return s.nd(t),s.Wc().accordionOpened("audio")}))("closed",(function(){return s.nd(t),s.Wc().accordionClosed("audio")}))("mouseleave",(function(){return s.nd(t),s.Wc().accordionLeft("audio")}))("mouseenter",(function(){return s.nd(t),s.Wc().accordionEntered("audio")})),s.Fc(3,"mat-expansion-panel-header"),s.Fc(4,"mat-panel-title"),s.Dc(5),s.Jc(6,dA),s.Cc(),s.Ec(),s.Fc(7,"mat-panel-description"),s.Dc(8),s.Jc(9,hA),s.Cc(),s.Ec(),s.Ec(),s.vd(10,CA,13,4,"div",73),s.Ec(),s.Fc(11,"mat-expansion-panel",72),s.Sc("opened",(function(){return s.nd(t),s.Wc().accordionOpened("video")}))("closed",(function(){return s.nd(t),s.Wc().accordionClosed("video")}))("mouseleave",(function(){return s.nd(t),s.Wc().accordionLeft("video")}))("mouseenter",(function(){return s.nd(t),s.Wc().accordionEntered("video")})),s.Fc(12,"mat-expansion-panel-header"),s.Fc(13,"mat-panel-title"),s.Dc(14),s.Jc(15,uA),s.Cc(),s.Ec(),s.Fc(16,"mat-panel-description"),s.Dc(17),s.Jc(18,mA),s.Cc(),s.Ec(),s.Ec(),s.vd(19,TA,13,4,"div",73),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(),e=s.jd(39),i=s.jd(41);s.lc(10),s.cd("ngIf",t.mp3s.length>0)("ngIfElse",e),s.lc(9),s.cd("ngIf",t.mp4s.length>0)("ngIfElse",i)}}function FA(t,e){}function RA(t,e){}dA=$localize`:Audio files title␟4a0dada6e841a425de3e5006e6a04df26c644fa5␟520791250454025553: Audio `,hA=$localize`:Audio files description␟9779715ac05308973d8f1c8658b29b986e92450f␟3371870979788549262: Your audio files are here `,uA=$localize`:Video files title␟9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33␟429855630861441368: Video `,mA=$localize`:Video files description␟960582a8b9d7942716866ecfb7718309728f2916␟691504174199627518: Your video files are here `,pA=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,gA=$localize`:No video playlists available text␟78bd81adb4609b68cfa4c589222bdc233ba1faaa␟5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. `,fA=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,bA=$localize`:No video playlists available text␟0f59c46ca29e9725898093c9ea6b586730d0624e␟6806070849891381327: No playlists available. Create one from your downloading video files by clicking the blue plus button. `;let MA=!1,zA=!1,LA=!1,NA=!1,BA=(()=>{class t{constructor(t,e,i,n,s,a,o){this.postsService=t,this.youtubeSearch=e,this.snackBar=i,this.router=n,this.dialog=s,this.platform=a,this.route=o,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Ma("",[Hs.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}configLoad(){return tO(this,void 0,void 0,(function*(){yield this.loadConfig(),this.autoStartDownload&&this.downloadClicked(),setInterval(()=>this.getSimulatedOutput(),1e3)}))}loadConfig(){return tO(this,void 0,void 0,(function*(){if(this.fileManagerEnabled=this.postsService.config.Extra.file_manager_enabled,this.downloadOnlyMode=this.postsService.config.Extra.download_only_mode,this.allowMultiDownloadMode=this.postsService.config.Extra.allow_multi_download_mode,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.use_youtubedl_archive=this.postsService.config.Downloader.use_youtubedl_archive,this.globalCustomArgs=this.postsService.config.Downloader.custom_args,this.youtubeSearchEnabled=this.postsService.config.API&&this.postsService.config.API.use_youtube_API&&this.postsService.config.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?this.postsService.config.API.youtube_API_key:null,this.allowQualitySelect=this.postsService.config.Extra.allow_quality_select,this.allowAdvancedDownload=this.postsService.config.Advanced.allow_advanced_download&&(!this.postsService.isLoggedIn||this.postsService.permissions.includes("advanced_download")),this.useDefaultDownloadingAgent=this.postsService.config.Advanced.use_default_downloading_agent,this.customDownloadingAgent=this.postsService.config.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload){null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled"));const t=localStorage.getItem("customArgs"),e=localStorage.getItem("customOutput"),i=localStorage.getItem("youtubeUsername");t&&"null"!==t&&(this.customArgs=t),e&&"null"!==e&&(this.customOutput=e),i&&"null"!==i&&(this.youtubeUsername=i)}return setInterval(()=>{this.current_download&&this.getCurrentDownload()},500),!0}))}ngOnInit(){this.postsService.initialized?this.configLoad():this.postsService.service_initialized.subscribe(t=>{t&&this.configLoad()}),this.postsService.config_reloaded.subscribe(t=>{t&&this.loadConfig()}),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}getMp3s(){this.postsService.getMp3s().subscribe(t=>{const e=t.mp3s,i=t.playlists;JSON.stringify(this.mp3s)!==JSON.stringify(e)&&(this.mp3s=e),this.playlists.audio=i;for(let n=0;n{console.log(t)})}getMp4s(){this.postsService.getMp4s().subscribe(t=>{const e=t.mp4s,i=t.playlists;JSON.stringify(this.mp4s)!==JSON.stringify(e)&&(this.mp4s=e),this.playlists.video=i;for(let n=0;n{console.log(t)})}setCols(){this.files_cols=window.innerWidth<=350?1:window.innerWidth<=500?2:window.innerWidth<=750?3:4}goToFile(t,e,i){e?this.downloadHelperMp3(t,i,!1,!1,null,!0):this.downloadHelperMp4(t,i,!1,!1,null,!0)}goToPlaylist(t,e){const i=this.getPlaylistObjectByID(t,e);i?this.downloadOnlyMode?(this.downloading_content[e][t]=!0,this.downloadPlaylist(i.fileNames,e,i.name,t)):(localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:i.fileNames.join("|nvr|"),type:e,id:t,uid:t}])):console.error(`Playlist with ID ${t} not found!`)}getPlaylistObjectByID(t,e){for(let i=0;i{t.success&&(this.playlists.audio.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp3s()})}removeFromMp4(t){for(let e=0;e{t.success&&(this.playlists.video.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp4s()})}downloadHelperMp3(t,e,i=!1,n=!1,s=null,a=!1){if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||a)if(!1===n&&this.downloadOnlyMode&&!this.iOS)if(i){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",e)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{fileNames:t,type:"audio",uid:e}]);this.removeDownloadFromCurrentDownloads(s),this.fileManagerEnabled&&(this.getMp3s(),setTimeout(()=>{this.audioFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadHelperMp4(t,e,i=!1,n=!1,s=null,a=!1){if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||a)if(!1===n&&this.downloadOnlyMode)if(i){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",e)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{fileNames:t,type:"video",uid:e}]);this.removeDownloadFromCurrentDownloads(s),this.fileManagerEnabled&&(this.getMp4s(),setTimeout(()=>{this.videoFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadClicked(){if(this.ValidURL(this.url)){this.urlError=!1,this.path="";const t=this.customArgsEnabled?this.customArgs:null,e=this.customOutputEnabled?this.customOutput:null,i=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,n=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(t&&localStorage.setItem("customArgs",t),e&&localStorage.setItem("customOutput",e),i&&localStorage.setItem("youtubeUsername",i)),this.audioOnly){const s={uid:Object(gO.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;let a=null;""!==this.selectedQuality&&(a=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n,s.uid).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.audiopathEncoded,this.current_download=null,"-1"!==this.path&&this.downloadHelperMp3(this.path,t.uid,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1;const e=this.downloads.indexOf(s);-1!==e&&this.downloads.splice(e),this.openSnackBar("Download failed!","OK.")})}else{const s={uid:Object(gO.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;const a=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n,s.uid).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.videopathEncoded,this.current_download=null,"-1"!==this.path&&this.downloadHelperMp4(this.path,t.uid,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1;const e=this.downloads.indexOf(s);-1!==e&&this.downloads.splice(e),this.openSnackBar("Download failed!","OK.")})}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}cancelDownload(t=null){t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}getSelectedAudioFormat(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}getSelectedVideoFormat(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){const t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}getDownloadByUID(t){const e=this.downloads.findIndex(e=>e.uid===t);return-1!==e?this.downloads[e]:null}removeDownloadFromCurrentDownloads(t){this.current_download===t&&(this.current_download=null);const e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}downloadAudioFile(t){this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe(e=>{this.downloading_content.audio[t]=!1;const i=e;Object(eO.saveAs)(i,decodeURIComponent(t)+".mp3"),this.fileManagerEnabled||this.postsService.deleteFile(t,!0).subscribe(t=>{this.getMp3s()})})}downloadVideoFile(t){this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe(e=>{this.downloading_content.video[t]=!1;const i=e;Object(eO.saveAs)(i,decodeURIComponent(t)+".mp4"),this.fileManagerEnabled||this.postsService.deleteFile(t,!1).subscribe(t=>{this.getMp4s()})})}downloadPlaylist(t,e,i=null,n=null){this.postsService.downloadFileFromServer(t,e,i).subscribe(t=>{n&&(this.downloading_content[e][n]=!1);const s=t;Object(eO.saveAs)(s,i+".zip")})}clearInput(){this.url="",this.results_showing=!1}onInputBlur(){this.results_showing=!1}visitURL(t){window.open(t)}useURL(t){this.results_showing=!1,this.url=t}inputChanged(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}ValidURL(t){const e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}getURLInfo(t){t.includes("playlist")||(this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe(e=>{this.cachedAvailableFormats[t].formats_loading=!1;const i=e.result;if(!i||!i.formats)return void this.errorFormats(t);const n=this.getAudioAndVideoFormats(i.formats);this.cachedAvailableFormats[t].formats={audio:n[0],video:n[1]}},e=>{this.errorFormats(t)})))}getSimulatedOutput(){const t=this.globalCustomArgs&&""!==this.globalCustomArgs;let e=[];const i=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=i.join(" ")+" "+this.customArgs,this.simulatedOutput;e.push(...i);const n=this.audioOnly?this.audioFolderPath:this.videoFolderPath,s=this.audioOnly?".mp3":".mp4";let a=["-o",n+"%(title)s"+s];if(this.customOutputEnabled&&this.customOutput&&(a=["-o",n+this.customOutput+s]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||e.push("--external-downloader","aria2c"),e.push(...a),this.audioOnly){const t=[],i=this.getSelectedAudioFormat();i?t.push("-f",i):this.selectedQuality&&t.push("--audio-quality",this.selectedQuality),e.splice(2,0,...t),e.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{let t=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"];const i=this.getSelectedVideoFormat();i?t=["-f",i]:this.selectedQuality&&(t=[`bestvideo[height=${this.selectedQuality}]+bestaudio/best[height=${this.selectedQuality}]`]),e.splice(2,0,...t),e.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&e.push("--download-archive","archive.txt"),t&&(e=e.concat(this.globalCustomArgs.split(" "))),this.simulatedOutput=e.join(" "),this.simulatedOutput}errorFormats(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}attachToInput(){si.a.fromEvent(this.urlInput.nativeElement,"keyup").map(t=>t.target.value).filter(t=>t.length>1).debounceTime(250).do(()=>this.results_loading=!0).map(t=>this.youtubeSearch.search(t)).switch().subscribe(t=>{this.results_loading=!1,""!==this.url&&t&&t.length>0?(this.results=t,this.results_showing=!0):this.results_showing=!1},t=>{console.log(t),this.results_loading=!1,this.results_showing=!1},()=>{this.results_loading=!1})}onResize(t){this.setCols()}videoModeChanged(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}multiDownloadModeChanged(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}customArgsEnabledChanged(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}customOutputEnabledChanged(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}youtubeAuthEnabledChanged(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}getAudioAndVideoFormats(t){const e={},i={};for(let n=0;ni&&(e=a.format_id,i=a.bitrate)}return e}accordionEntered(t){"audio"===t?(MA=!0,this.audioFileCards.forEach(t=>{t.onHoverResponse()})):"video"===t&&(zA=!0,this.videoFileCards.forEach(t=>{t.onHoverResponse()}))}accordionLeft(t){"audio"===t?MA=!1:"video"===t&&(zA=!1)}accordionOpened(t){"audio"===t?LA=!0:"video"===t&&(NA=!0)}accordionClosed(t){"audio"===t?LA=!1:"video"===t&&(NA=!1)}openCreatePlaylistDialog(t){this.dialog.open(pO,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe(e=>{e?("audio"===t&&this.getMp3s(),"video"===t&&this.getMp4s(),this.openSnackBar("Successfully created playlist!","")):!1===e&&this.openSnackBar("ERROR: failed to create playlist!","")})}openArgsModifierDialog(){this.dialog.open(yk,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{t&&(this.customArgs=t)})}getCurrentDownload(){if(!this.current_download)return;const t=this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid;this.postsService.getCurrentDownload(this.postsService.session_id,t).subscribe(e=>{e.download&&t===e.download.ui_uid&&(this.current_download=e.download,this.percentDownloaded=this.current_download.percent_complete)})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(nO),s.zc(Wg),s.zc(wx),s.zc(bd),s.zc(_i),s.zc(mw))},t.\u0275cmp=s.tc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.Bd(fO,!0,s.q),s.Bd(bO,!0),s.Bd(_O,!0)),2&t&&(s.id(i=s.Tc())&&(e.urlInput=i.first),s.id(i=s.Tc())&&(e.audioFileCards=i),s.id(i=s.Tc())&&(e.videoFileCards=i))},decls:42,vars:18,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url","required","",2,"padding-right","25px",3,"ngModel","placeholder","formControl","ngModelChange"],["urlinput",""],[4,"ngIf"],["mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","isPlaylist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(s.Ac(0,"br"),s.Fc(1,"div",0),s.Fc(2,"mat-card",1),s.Fc(3,"mat-card-title"),s.Dc(4),s.Jc(5,vO),s.Cc(),s.Ec(),s.Fc(6,"mat-card-content"),s.Fc(7,"div",2),s.Fc(8,"form",3),s.Fc(9,"div",4),s.Fc(10,"div",5),s.Fc(11,"div",6),s.Fc(12,"mat-form-field",7),s.Fc(13,"input",8,9),s.Sc("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),s.Ec(),s.vd(15,CO,3,0,"mat-error",10),s.Fc(16,"button",11),s.Sc("click",(function(){return e.clearInput()})),s.Fc(17,"mat-icon"),s.xd(18,"clear"),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.vd(19,DO,8,5,"div",12),s.Ec(),s.Ec(),s.vd(20,RO,2,1,"div",13),s.Ec(),s.Ac(21,"br"),s.Fc(22,"mat-checkbox",14),s.Sc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),s.Dc(23),s.Jc(24,yO),s.Cc(),s.Ec(),s.vd(25,BO,3,2,"mat-checkbox",15),s.Ec(),s.Ec(),s.Fc(26,"mat-card-actions"),s.Fc(27,"button",16),s.Sc("click",(function(){return e.downloadClicked()})),s.Dc(28),s.Jc(29,wO),s.Cc(),s.Ec(),s.vd(30,VO,3,0,"button",17),s.Ec(),s.Ec(),s.Ec(),s.vd(31,tA,39,19,"div",18),s.vd(32,sA,4,1,"div",19),s.Ac(33,"br"),s.vd(34,lA,7,3,"div",20),s.vd(35,cA,0,0,"ng-template",null,21,s.wd),s.vd(37,PA,20,4,"div",22),s.vd(38,FA,0,0,"ng-template",null,23,s.wd),s.vd(40,RA,0,0,"ng-template",null,24,s.wd)),2&t){const t=s.jd(36);s.lc(2),s.cd("ngClass",e.allowAdvancedDownload?"no-border-radius-bottom":null),s.lc(9),s.cd("ngClass",e.allowQualitySelect?"col-sm-9":null),s.lc(2),s.cd("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":""))("formControl",e.urlForm),s.lc(2),s.cd("ngIf",e.urlError||e.urlForm.invalid),s.lc(4),s.cd("ngIf",e.allowQualitySelect),s.lc(1),s.cd("ngIf",e.results_showing),s.lc(2),s.cd("disabled",e.current_download)("ngModel",e.audioOnly),s.lc(3),s.cd("ngIf",e.allowMultiDownloadMode),s.lc(2),s.cd("disabled",e.downloadingfile),s.lc(3),s.cd("ngIf",!!e.current_download),s.lc(1),s.cd("ngIf",e.allowAdvancedDownload),s.lc(1),s.cd("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),s.lc(2),s.cd("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",t),s.lc(3),s.cd("ngIf",e.fileManagerEnabled&&(!e.postsService.isLoggedIn||e.postsService.permissions.includes("filemanager")))}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:-10px;top:5px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),t})();si.a.merge=xr.a;var VA,jA,$A,UA,WA,GA,HA,qA=i("zuWl"),YA=i.n(qA);VA=$localize`:Video name property␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,jA=$localize`:Video URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,$A=$localize`:Video ID property␟c6eb45d085384903e53ab001a3513d1de6a1dbac␟6975318892267864632:Uploader:`,UA=$localize`:Video file size property␟109c6f4a5e46efb933612ededfaf52a13178b7e0␟8712868262622854125:File size:`,WA=$localize`:Video path property␟bd630d8669b16e5f264ec4649d9b469fe03e5ff4␟2612252809311306032:Path:`,GA=$localize`:Video upload date property␟a67e7d843cef735c79d5ef1c8ba4af3e758912bb␟73382088968432490:Upload Date:`,HA=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let KA=(()=>{class t{constructor(t){this.data=t}ngOnInit(){this.filesize=YA.a,this.data&&(this.file=this.data.file)}}return t.\u0275fac=function(e){return new(e||t)(s.zc(md))},t.\u0275cmp=s.tc({type:t,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.xd(1),s.Ec(),s.Fc(2,"mat-dialog-content"),s.Fc(3,"div",1),s.Fc(4,"div",2),s.Fc(5,"strong"),s.Dc(6),s.Jc(7,VA),s.Cc(),s.xd(8,"\xa0"),s.Ec(),s.Ec(),s.Fc(9,"div",3),s.xd(10),s.Ec(),s.Ec(),s.Fc(11,"div",1),s.Fc(12,"div",2),s.Fc(13,"strong"),s.Dc(14),s.Jc(15,jA),s.Cc(),s.xd(16,"\xa0"),s.Ec(),s.Ec(),s.Fc(17,"div",3),s.Fc(18,"a",4),s.xd(19),s.Ec(),s.Ec(),s.Ec(),s.Fc(20,"div",1),s.Fc(21,"div",2),s.Fc(22,"strong"),s.Dc(23),s.Jc(24,$A),s.Cc(),s.xd(25,"\xa0"),s.Ec(),s.Ec(),s.Fc(26,"div",3),s.xd(27),s.Ec(),s.Ec(),s.Fc(28,"div",1),s.Fc(29,"div",2),s.Fc(30,"strong"),s.Dc(31),s.Jc(32,UA),s.Cc(),s.xd(33,"\xa0"),s.Ec(),s.Ec(),s.Fc(34,"div",3),s.xd(35),s.Ec(),s.Ec(),s.Fc(36,"div",1),s.Fc(37,"div",2),s.Fc(38,"strong"),s.Dc(39),s.Jc(40,WA),s.Cc(),s.xd(41,"\xa0"),s.Ec(),s.Ec(),s.Fc(42,"div",3),s.xd(43),s.Ec(),s.Ec(),s.Fc(44,"div",1),s.Fc(45,"div",2),s.Fc(46,"strong"),s.Dc(47),s.Jc(48,GA),s.Cc(),s.xd(49,"\xa0"),s.Ec(),s.Ec(),s.Fc(50,"div",3),s.xd(51),s.Ec(),s.Ec(),s.Ec(),s.Fc(52,"mat-dialog-actions"),s.Fc(53,"button",5),s.Dc(54),s.Jc(55,HA),s.Cc(),s.Ec(),s.Ec()),2&t&&(s.lc(1),s.yd(e.file.title),s.lc(9),s.yd(e.file.title),s.lc(8),s.cd("href",e.file.url,s.pd),s.lc(1),s.yd(e.file.url),s.lc(8),s.yd(e.file.uploader?e.file.uploader:"N/A"),s.lc(8),s.yd(e.file.size?e.filesize(e.file.size):"N/A"),s.lc(8),s.yd(e.file.path?e.file.path:"N/A"),s.lc(8),s.yd(e.file.upload_date?e.file.upload_date:"N/A"))},directives:[yd,wd,xd,bs,vd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),t})();const XA=new si.a(Be.a);function JA(t,e){t.className=t.className.replace(e,"")}function ZA(t,e){t.className.includes(e)||(t.className+=` ${e}`)}function QA(){return"undefined"!=typeof window?window.navigator:void 0}function tD(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function eD(t){return"img"===t.nodeName.toLowerCase()}function iD(t,e,i){return eD(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function nD(t){return e=>{const i=e.parentElement.getElementsByTagName("source");for(let n=0;n{eD(e)&&tD(e)&&t(e),i&&iD(e,i,n)}}const lD=rD(sD),cD=rD(aD),dD=rD(oD),hD={finally:({element:t})=>{ZA(t,"ng-lazyloaded"),JA(t,"ng-lazyloading")},loadImage:({element:t,useSrcset:e,imagePath:i,decode:n})=>{let s;if(eD(t)&&tD(t)){const n=t.parentNode.cloneNode(!0);s=n.getElementsByTagName("img")[0],aD(s),iD(s,i,e)}else s=new Image,eD(t)&&t.sizes&&(s.sizes=t.sizes),e&&"srcset"in s?s.srcset=i:s.src=i;return n&&s.decode?s.decode().then(()=>i):new Promise((t,e)=>{s.onload=()=>t(i),s.onerror=()=>e(null)})},setErrorImage:({element:t,errorImagePath:e,useSrcset:i})=>{dD(t,e,i),ZA(t,"ng-failed-lazyloaded")},setLoadedImage:({element:t,imagePath:e,useSrcset:i})=>{cD(t,e,i)},setup:({element:t,defaultImagePath:e,useSrcset:i})=>{lD(t,e,i),ZA(t,"ng-lazyloading"),function(t,e){return t.className&&t.className.includes("ng-lazyloaded")}(t)&&JA(t,"ng-lazyloaded")},isBot:t=>!(!t||!t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(t.userAgent)},uD=new WeakMap,mD=new Te.a;function pD(t){t.forEach(t=>mD.next(t))}const gD={},fD=t=>{const e=t.scrollContainer||gD,i={root:t.scrollContainer||null};t.offset&&(i.rootMargin=`${t.offset}px`);let n=uD.get(e);return n||(n=new IntersectionObserver(pD,i),uD.set(e,n)),n.observe(t.element),si.a.create(e=>{const i=mD.pipe(Qe(e=>e.target===t.element)).subscribe(e);return()=>{i.unsubscribe(),n.unobserve(t.element)}})},bD=Object.assign({},hD,{isVisible:({event:t})=>t.isIntersecting,getObservable:(t,e=fD)=>t.customObservable?t.customObservable:e(t)}),_D=Object.assign({},hD,{isVisible:()=>!0,getObservable:()=>ze("load"),loadImage:({imagePath:t})=>[t]});let vD=(()=>{let t=class{constructor(t,e,i,n){this.onStateChange=new s.t,this.onLoad=new s.t,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new cl,this.platformId=i,this.hooks=function(t,e){const i=bD,n=e&&e.isBot?e.isBot:i.isBot;if(n(QA(),t))return Object.assign(_D,{isBot:n});if(!e)return i;const s={};return Object.assign(s,e.preset?e.preset:i),Object.keys(e).filter(t=>"preset"!==t).forEach(t=>{s[t]=e[t]}),s}(i,n)}ngOnChanges(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}ngAfterContentInit(){if(Object(ve.J)(this.platformId)&&!this.hooks.isBot(QA(),this.platformId))return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(je(t=>t.onStateChange.emit({reason:"setup"})),je(t=>this.hooks.setup(t)),Xr(t=>t.imagePath?this.hooks.getObservable(t).pipe(function(t,e){return i=>i.pipe(je(t=>e.onStateChange.emit({reason:"observer-emit",data:t})),Qe(i=>t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})),ri(1),je(()=>e.onStateChange.emit({reason:"start-loading"})),Object(Sh.a)(()=>t.loadImage(e)),je(()=>e.onStateChange.emit({reason:"mount-image"})),je(i=>t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})),je(()=>e.onStateChange.emit({reason:"loading-succeeded"})),Object(ii.a)(()=>!0),_h(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),t.setErrorImage(e),ze(!1))),je(()=>{e.onStateChange.emit({reason:"finally"}),t.finally(e)}))}(this.hooks,t)):XA)).subscribe(t=>this.onLoad.emit(t))})}ngOnDestroy(){var t,e;null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(s.G),s.zc(s.J),s.zc("options",8))},t.\u0275dir=s.uc({type:t,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[s.jc]}),t})();var yD;let wD=(()=>{let t=yD=class{static forRoot(t){return{ngModule:yD,providers:[{provide:"options",useValue:t}]}}};return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)}}),t})();var xD,kD,CD,SD,ED;function OD(t,e){if(1&t&&(s.Fc(0,"div"),s.Dc(1),s.Jc(2,SD),s.Cc(),s.xd(3),s.Ec()),2&t){const t=s.Wc();s.lc(3),s.zd("\xa0",t.count,"")}}function AD(t,e){1&t&&s.Ac(0,"span")}function DD(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",12),s.Fc(1,"img",13),s.Sc("error",(function(e){return s.nd(t),s.Wc().onImgError(e)}))("onLoad",(function(e){return s.nd(t),s.Wc().imageLoaded(e)})),s.Ec(),s.vd(2,AD,1,0,"span",5),s.Ec()}if(2&t){const t=s.Wc();s.lc(1),s.cd("id",t.type)("lazyLoad",t.thumbnailURL)("customObservable",t.scrollAndLoad),s.lc(1),s.cd("ngIf",!t.image_loaded)}}function ID(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",14),s.Sc("click",(function(){return s.nd(t),s.Wc().deleteFile()})),s.Fc(1,"mat-icon"),s.xd(2,"delete_forever"),s.Ec(),s.Ec()}}function TD(t,e){if(1&t&&(s.Fc(0,"button",15),s.Fc(1,"mat-icon"),s.xd(2,"more_vert"),s.Ec(),s.Ec()),2&t){s.Wc();const t=s.jd(16);s.cd("matMenuTriggerFor",t)}}function PD(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",10),s.Sc("click",(function(){return s.nd(t),s.Wc().deleteFile(!0)})),s.Fc(1,"mat-icon"),s.xd(2,"delete_forever"),s.Ec(),s.Dc(3),s.Jc(4,ED),s.Cc(),s.Ec()}}xD=$localize`:File or playlist ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,kD=$localize`:Video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,CD=$localize`:Delete video button␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,SD=$localize`:Playlist video count␟e684046d73bcee88e82f7ff01e2852789a05fc32␟6836949342567686088:Count:`,ED=$localize`:Delete and blacklist video button␟34504b488c24c27e68089be549f0eeae6ebaf30b␟593208667984994894:Delete and blacklist`;let FD=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.mainComponent=i,this.dialog=n,this.isAudio=!0,this.removeFile=new s.t,this.isPlaylist=!1,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Te.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){this.type=this.isAudio?"audio":"video"}deleteFile(t=!1){this.isPlaylist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,t).subscribe(t=>{t?(this.openSnackBar("Delete success!","OK."),this.removeFile.emit(this.name)):this.openSnackBar("Delete failed!","OK.")},t=>{this.openSnackBar("Delete failed!","OK.")})}openVideoInfoDialog(){this.dialog.open(KA,{data:{file:this.file},minWidth:"50vw"})}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(Wg),s.zc(BA),s.zc(bd))},t.\u0275cmp=s.tc({type:t,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",isPlaylist:"isPlaylist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:28,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"click",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"click"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(s.Fc(0,"mat-card",0),s.Fc(1,"div",1),s.Fc(2,"div",2),s.Fc(3,"div"),s.Fc(4,"b"),s.Fc(5,"a",3),s.Sc("click",(function(){return e.isPlaylist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio,e.uid)})),s.xd(6),s.Ec(),s.Ec(),s.Ec(),s.Fc(7,"span",4),s.Dc(8),s.Jc(9,xD),s.Cc(),s.xd(10),s.Ec(),s.vd(11,OD,4,1,"div",5),s.Ec(),s.vd(12,DD,3,4,"div",6),s.Ec(),s.vd(13,ID,3,0,"button",7),s.vd(14,TD,3,1,"button",8),s.Fc(15,"mat-menu",null,9),s.Fc(17,"button",10),s.Sc("click",(function(){return e.openVideoInfoDialog()})),s.Fc(18,"mat-icon"),s.xd(19,"info"),s.Ec(),s.Dc(20),s.Jc(21,kD),s.Cc(),s.Ec(),s.Fc(22,"button",10),s.Sc("click",(function(){return e.deleteFile()})),s.Fc(23,"mat-icon"),s.xd(24,"delete"),s.Ec(),s.Dc(25),s.Jc(26,CD),s.Cc(),s.Ec(),s.vd(27,PD,5,0,"button",11),s.Ec(),s.Ec()),2&t&&(s.lc(6),s.yd(e.title),s.lc(4),s.zd("\xa0",e.name,""),s.lc(1),s.cd("ngIf",e.isPlaylist),s.lc(1),s.cd("ngIf",!e.image_errored&&e.thumbnailURL),s.lc(1),s.cd("ngIf",e.isPlaylist),s.lc(1),s.cd("ngIf",!e.isPlaylist),s.lc(13),s.cd("ngIf",e.use_youtubedl_archive))},directives:[er,ve.t,Cm,_m,vu,vD,bs,Am],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),t})();function RD(t,e){1&t&&(s.Fc(0,"div",6),s.Ac(1,"mat-spinner",7),s.Ec()),2&t&&(s.lc(1),s.cd("diameter",25))}let MD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}ngOnInit(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}enterPressed(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}return t.\u0275fac=function(e){return new(e||t)(s.zc(ud),s.zc(md))},t.\u0275cmp=s.tc({type:t,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.xd(1),s.Ec(),s.Fc(2,"mat-dialog-content"),s.Fc(3,"div"),s.Fc(4,"mat-form-field",1),s.Fc(5,"input",2),s.Sc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(6,"mat-dialog-actions"),s.Fc(7,"button",3),s.xd(8,"Cancel"),s.Ec(),s.Fc(9,"button",4),s.Sc("click",(function(){return e.enterPressed()})),s.xd(10),s.Ec(),s.vd(11,RD,2,1,"div",5),s.Ec()),2&t&&(s.lc(1),s.yd(e.inputTitle),s.lc(4),s.cd("ngModel",e.inputText)("placeholder",e.inputPlaceholder),s.lc(4),s.cd("disabled",!e.inputText),s.lc(1),s.yd(e.submitText),s.lc(1),s.cd("ngIf",e.inputSubmitted))},directives:[yd,wd,Bc,Fu,Fs,Vs,Ya,xd,bs,vd,ve.t,pp],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var zD,LD,ND,BD,VD,jD;function $D(t,e){1&t&&(s.Dc(0),s.Jc(1,BD),s.Cc())}function UD(t,e){1&t&&(s.Dc(0),s.Jc(1,VD),s.Cc())}function WD(t,e){1&t&&(s.Dc(0),s.Jc(1,jD),s.Cc())}zD=$localize`:Enable sharing checkbox␟1f6d14a780a37a97899dc611881e6bc971268285␟3852386690131857488:Enable sharing`,LD=$localize`:Copy to clipboard button␟3a6e5a6aa78ca864f6542410c5dafb6334538106␟8738732372986673558:Copy to clipboard`,ND=$localize`:Close button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,BD=$localize`:Share playlist dialog title␟a249a5ae13e0835383885aaf697d2890cc3e53e9␟3024429387570590252:Share playlist`,VD=$localize`:Share video dialog title␟15da89490e04496ca9ea1e1b3d44fb5efd4a75d9␟1305889615005911428:Share video`,jD=$localize`:Share audio dialog title␟1d540dcd271b316545d070f9d182c372d923aadd␟3735500696745720245:Share audio`;let GD=(()=>{class t{constructor(t,e,i,n){this.data=t,this.router=e,this.snackBar=i,this.postsService=n,this.type=null,this.uid=null,this.uuid=null,this.share_url=null,this.sharing_enabled=null,this.is_playlist=null}ngOnInit(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.uuid=this.data.uuid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist;const t=this.is_playlist?";id=":";uid=";this.share_url=window.location.href.split(";")[0]+t+this.uid,this.uuid&&(this.share_url+=";uuid="+this.uuid)}}copiedToClipboard(){this.openSnackBar("Copied to clipboard!")}sharingChanged(t){t.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe(t=>{t.success?(this.openSnackBar("Sharing enabled."),this.sharing_enabled=!0):this.openSnackBar("Failed to enable sharing.")},t=>{this.openSnackBar("Failed to enable sharing - server error.")}):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe(t=>{t.success?(this.openSnackBar("Sharing disabled."),this.sharing_enabled=!1):this.openSnackBar("Failed to disable sharing.")},t=>{this.openSnackBar("Failed to disable sharing - server error.")})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(md),s.zc(wx),s.zc(Wg),s.zc(qx))},t.\u0275cmp=s.tc({type:t,selectors:[["app-share-media-dialog"]],decls:21,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.vd(1,$D,2,0,"ng-container",1),s.vd(2,UD,2,0,"ng-container",1),s.vd(3,WD,2,0,"ng-container",1),s.Ec(),s.Fc(4,"mat-dialog-content"),s.Fc(5,"div"),s.Fc(6,"div"),s.Fc(7,"mat-checkbox",2),s.Sc("change",(function(t){return e.sharingChanged(t)})),s.Dc(8),s.Jc(9,zD),s.Cc(),s.Ec(),s.Ec(),s.Fc(10,"div"),s.Fc(11,"mat-form-field",3),s.Ac(12,"input",4),s.Ec(),s.Ec(),s.Fc(13,"div",5),s.Fc(14,"button",6),s.Sc("click",(function(){return e.copiedToClipboard()})),s.Dc(15),s.Jc(16,LD),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(17,"mat-dialog-actions"),s.Fc(18,"button",7),s.Dc(19),s.Jc(20,ND),s.Cc(),s.Ec(),s.Ec()),2&t&&(s.lc(1),s.cd("ngIf",e.is_playlist),s.lc(1),s.cd("ngIf",!e.is_playlist&&"video"===e.type),s.lc(1),s.cd("ngIf",!e.is_playlist&&"audio"===e.type),s.lc(4),s.cd("checked",e.sharing_enabled),s.lc(5),s.cd("disabled",!e.sharing_enabled)("readonly",!0)("value",e.share_url),s.lc(2),s.cd("disabled",!e.sharing_enabled)("cdkCopyToClipboard",e.share_url))},directives:[yd,ve.t,wd,gr,Bc,Fu,bs,Mv,xd,vd],styles:[""]}),t})();const HD=["*"],qD=["volumeBar"],YD=function(t){return{dragging:t}};function KD(t,e){if(1&t&&s.Ac(0,"span",2),2&t){const t=e.$implicit;s.ud("width",null==t.$$style?null:t.$$style.width)("left",null==t.$$style?null:t.$$style.left)}}function XD(t,e){1&t&&s.Ac(0,"span",2)}function JD(t,e){1&t&&(s.Fc(0,"span"),s.xd(1,"LIVE"),s.Ec())}function ZD(t,e){if(1&t&&(s.Fc(0,"span"),s.xd(1),s.Xc(2,"vgUtc"),s.Ec()),2&t){const t=s.Wc();s.lc(1),s.yd(s.Zc(2,1,t.getTime(),t.vgFormat))}}function QD(t,e){if(1&t&&(s.Fc(0,"option",4),s.xd(1),s.Ec()),2&t){const t=e.$implicit;s.cd("value",t.id)("selected",!0===t.selected),s.lc(1),s.zd(" ",t.label," ")}}function tI(t,e){if(1&t&&(s.Fc(0,"option",4),s.xd(1),s.Ec()),2&t){const t=e.$implicit,i=s.Wc();s.cd("value",t.qualityIndex.toString())("selected",t.qualityIndex===(null==i.bitrateSelected?null:i.bitrateSelected.qualityIndex)),s.lc(1),s.zd(" ",t.label," ")}}let eI=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t.VG_ENDED="ended",t.VG_PAUSED="paused",t.VG_PLAYING="playing",t.VG_LOADING="waiting",t})(),iI=(()=>{let t=class{constructor(){this.medias={},this.playerReadyEvent=new s.t(!0),this.isPlayerReady=!1}onPlayerReady(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}getDefaultMedia(){for(const t in this.medias)if(this.medias[t])return this.medias[t]}getMasterMedia(){let t;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}isMasterDefined(){let t=!1;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}getMediaById(t=null){let e=this.medias[t];return t&&"*"!==t||(e=this),e}play(){for(const t in this.medias)this.medias[t]&&this.medias[t].play()}pause(){for(const t in this.medias)this.medias[t]&&this.medias[t].pause()}get duration(){return this.$$getAllProperties("duration")}set currentTime(t){this.$$setAllProperties("currentTime",t)}get currentTime(){return this.$$getAllProperties("currentTime")}set state(t){this.$$setAllProperties("state",t)}get state(){return this.$$getAllProperties("state")}set volume(t){this.$$setAllProperties("volume",t)}get volume(){return this.$$getAllProperties("volume")}set playbackRate(t){this.$$setAllProperties("playbackRate",t)}get playbackRate(){return this.$$getAllProperties("playbackRate")}get canPlay(){return this.$$getAllProperties("canPlay")}get canPlayThrough(){return this.$$getAllProperties("canPlayThrough")}get isMetadataLoaded(){return this.$$getAllProperties("isMetadataLoaded")}get isWaiting(){return this.$$getAllProperties("isWaiting")}get isCompleted(){return this.$$getAllProperties("isCompleted")}get isLive(){return this.$$getAllProperties("isLive")}get isMaster(){return this.$$getAllProperties("isMaster")}get time(){return this.$$getAllProperties("time")}get buffer(){return this.$$getAllProperties("buffer")}get buffered(){return this.$$getAllProperties("buffered")}get subscriptions(){return this.$$getAllProperties("subscriptions")}get textTracks(){return this.$$getAllProperties("textTracks")}seekTime(t,e=!1){for(const i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],t,e)}$$seek(t,e,i=!1){let n,s=t.duration;i?(this.isMasterDefined()&&(s=this.getMasterMedia().duration),n=e*s/100):n=e,t.currentTime=n}addTextTrack(t,e,i){for(const n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],t,e,i)}$$addTextTrack(t,e,i,n){t.addTextTrack(e,i,n)}$$getAllProperties(t){const e={};let i;for(const n in this.medias)this.medias[n]&&(e[n]=this.medias[n]);switch(Object.keys(e).length){case 0:switch(t){case"state":i=eI.VG_PAUSED;break;case"playbackRate":case"volume":i=1;break;case"time":i={current:0,total:0,left:0}}break;case 1:i=e[Object.keys(e)[0]][t];break;default:i=e[this.getMasterMedia().id][t]}return i}$$setAllProperties(t,e){for(const i in this.medias)this.medias[i]&&(this.medias[i][t]=e)}registerElement(t){this.videogularElement=t}registerMedia(t){this.medias[t.id]=t}unregisterMedia(t){delete this.medias[t.id]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),nI=(()=>{let t=class{constructor(t,e){this.API=e,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&s.pc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.Fc(1,"div",1),s.Ac(2,"div",2),s.Ec(),s.Ec())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),t})(),sI=(()=>{let t=class{};return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[ve.c]]}),t})(),aI=(()=>{let t=class{constructor(){this.isHiddenSubject=new Te.a,this.isHidden=this.isHiddenSubject.asObservable()}state(t){this.isHiddenSubject.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),oI=(()=>{let t=class{constructor(t,e,i){this.API=t,this.ref=e,this.hidden=i,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=e.nativeElement}ngOnInit(){this.mouseMove$=kr(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=kr(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}ngAfterViewInit(){this.vgAutohide?this.hide():this.show()}onPlay(){this.vgAutohide&&this.hide()}onPause(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}onStartAds(){this.isAdsPlaying="none"}onEndAds(){this.isAdsPlaying="initial"}hide(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}show(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}hideAsync(){this.API.state===eI.VG_PLAYING&&(this.timer=setTimeout(()=>{this.hideControls=!0,this.hidden.state(!0)},1e3*this.vgAutohideTime))}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(iI),s.zc(s.q),s.zc(aI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(s.ud("pointer-events",e.isAdsPlaying),s.pc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:HD,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.ad(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),t})(),rI=(()=>{let t=class{static getZIndex(){let t,e=1;const i=document.getElementsByTagName("*");for(let n=0,s=i.length;ne&&(e=t+1);return e}static isMobileDevice(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}static isiOSDevice(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}static isCordova(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.vc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),lI=(()=>{let t=class{constructor(){this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new s.t}init(t,e){this.videogularElement=t,this.medias=e;const i={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(const s in i)if(i[s].enabled in document){this.polyfill=i[s];break}if(rI.isiOSDevice()&&(this.polyfill=i.ios),this.isAvailable=null!=this.polyfill,null==this.polyfill)return;let n;switch(this.polyfill.onchange){case"mozfullscreenchange":n=document;break;case"webkitendfullscreen":n=this.medias.toArray()[0].elem;break;default:n=t}this.fsChangeSubscription=kr(n,this.polyfill.onchange).subscribe(()=>{this.onFullscreenChange()})}onFullscreenChange(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}toggleFullscreen(t=null){this.isFullscreen?this.exit():this.request(t)}request(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(rI.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||rI.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}enterElementInFullScreen(t){t[this.polyfill.request]()}exit(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t})(),cI=(()=>{let t=class{constructor(t,e,i){this.API=e,this.fsAPI=i,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=t.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onChangeFullscreen(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}onClick(){this.changeFullscreenState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}changeFullscreenState(){let t=this.target;this.target instanceof iI&&(t=null),this.fsAPI.toggleFullscreen(t)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI),s.zc(lI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&s.Ac(0,"div",0),2&t&&(s.pc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),s.mc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),dI=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue="unmuted",this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}onClick(){this.changeMuteState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}changeMuteState(){const t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}getVolume(){const t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&s.Ac(0,"div",0),2&t&&(s.pc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),s.mc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),hI=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement,this.isDragging=!1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}onClick(t){this.setVolume(this.calculateVolume(t.clientX))}onMouseDown(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}onDrag(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}onStopDrag(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}arrowAdjustVolume(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}calculateVolume(t){const e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}setVolume(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}getVolume(){return this.target?this.target.volume:0}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&s.td(qD,!0),2&t&&s.id(i=s.Tc())&&(e.volumeBarRef=i.first)},hostBindings:function(t,e){1&t&&s.Sc("mousemove",(function(t){return e.onDrag(t)}),!1,s.ld)("mouseup",(function(t){return e.onStopDrag(t)}),!1,s.ld)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(s.Fc(0,"div",0,1),s.Sc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),s.Fc(2,"div",2),s.Ac(3,"div",3),s.Ac(4,"div",4),s.Ec(),s.Ec()),2&t&&(s.mc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),s.lc(2),s.cd("ngClass",s.fd(7,YD,e.isDragging)),s.lc(1),s.ud("width",85*e.getVolume()+"%"),s.lc(1),s.ud("left",85*e.getVolume()+"%"))},directives:[ve.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),t})(),uI=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=eI.VG_PAUSED,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.playPause()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}playPause(){switch(this.getState()){case eI.VG_PLAYING:this.target.pause();break;case eI.VG_PAUSED:case eI.VG_ENDED:this.target.play()}}getState(){return this.ariaValue=this.target?this.target.state:eI.VG_PAUSED,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&s.Ac(0,"div",0),2&t&&(s.pc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),s.mc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),mI=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=1,this.elem=t.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.updatePlaybackSpeed()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}updatePlaybackSpeed(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof iI?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}getPlaybackRate(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(s.Fc(0,"span",0),s.xd(1),s.Ec()),2&t&&(s.mc("aria-valuetext",e.ariaValue),s.lc(1),s.zd(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),t})(),pI=(()=>{let t=class{constructor(t,e,i){this.API=e,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=t.nativeElement,this.subscriptions.push(i.isHidden.subscribe(t=>this.onHideScrubBar(t)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}seekStart(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===eI.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}seekMove(t){if(this.isSeeking){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}seekEnd(t){if(this.isSeeking=!1,this.target.canPlay){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}touchEnd(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}getTouchOffset(t){let e=0,i=t.target;for(;i;)e+=i.offsetLeft,i=i.offsetParent;return t.touches[0].pageX-e}onMouseDownScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}onMouseMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}onMouseUpScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}onTouchStartScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}onTouchMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}onTouchCancelScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}onTouchEndScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}arrowAdjustVolume(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}onHideScrubBar(t){this.hideScrubBar=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI),s.zc(aI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Sc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,s.ld)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,s.ld)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,s.ld)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,s.ld)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,s.ld)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&s.pc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:HD,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(s.bd(),s.Fc(0,"div",0),s.ad(1),s.Ec()),2&t&&s.mc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),t})(),gI=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getBufferTime(){let t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&s.Ac(0,"div",0),2&t&&s.ud("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),t})(),fI=(()=>{let t=class{constructor(t,e){this.API=e,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}onLoadedMetadata(){if(this.vgCuePoints){this.cuePoints=[];for(let t=0,e=this.vgCuePoints.length;t=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime);let i="0",n="0";"number"==typeof e&&this.target.time.total&&(n=100*e/this.target.time.total+"%",i=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:n,left:i},this.cuePoints.push(this.vgCuePoints[t])}}}updateCuePoints(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}ngOnChanges(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}ngDoCheck(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[s.jc],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.vd(1,KD,1,4,"span",1),s.Ec()),2&t&&(s.lc(1),s.cd("ngForOf",e.cuePoints))},directives:[ve.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),t})(),bI=(()=>{let t=class{constructor(t,e){this.API=e,this.vgSlider=!1,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(s.Ac(0,"div",0),s.vd(1,XD,1,0,"span",1)),2&t&&(s.ud("width",e.getPercentage()),s.lc(1),s.cd("ngIf",e.vgSlider))},directives:[ve.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),t})(),_I=(()=>{let t=class{transform(t,e){const i=new Date(t);let n=e,s=i.getUTCSeconds(),a=i.getUTCMinutes(),o=i.getUTCHours();return s<10&&(s="0"+s),a<10&&(a="0"+a),o<10&&(o="0"+o),n=n.replace(/ss/g,s),n=n.replace(/mm/g,a),n=n.replace(/hh/g,o),n}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.yc({name:"vgUtc",type:t,pure:!0}),t})(),vI=(()=>{let t=class{constructor(t,e){this.API=e,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getTime(){let t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:HD,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(s.bd(),s.vd(0,JD,2,0,"span",0),s.vd(1,ZD,3,4,"span",0),s.ad(2)),2&t&&(s.cd("ngIf",null==e.target?null:e.target.isLive),s.lc(1),s.cd("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[ve.t],pipes:[_I],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),t})(),yI=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor);const t=Array.from(this.API.getMasterMedia().elem.children).filter(t=>"TRACK"===t.tagName).filter(t=>"subtitles"===t.kind).map(t=>({label:t.label,selected:!0===t.default,id:t.srclang}));this.tracks=[...t,{id:null,label:"Off",selected:t.every(t=>!1===t.selected)}];const e=this.tracks.filter(t=>!0===t.selected)[0];this.trackSelected=e.id,this.ariaValue=e.label}selectTrack(t){this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach(e=>{e.language===t?(this.ariaValue=e.label,e.mode="showing"):e.mode="hidden"})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.Fc(1,"div",1),s.xd(2),s.Ec(),s.Fc(3,"select",2),s.Sc("change",(function(t){return e.selectTrack(t.target.value)})),s.vd(4,QD,2,3,"option",3),s.Ec(),s.Ec()),2&t&&(s.lc(1),s.pc("vg-icon-closed_caption",!e.trackSelected),s.lc(1),s.zd(" ",e.trackSelected||""," "),s.lc(1),s.mc("aria-valuetext",e.ariaValue),s.lc(1),s.cd("ngForOf",e.tracks))},directives:[ve.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),wI=(()=>{let t=class{constructor(t,e){this.API=e,this.onBitrateChange=new s.t,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){}ngOnChanges(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach(t=>t.label=(t.label||Math.round(t.bitrate/1e3)).toString())}selectBitrate(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[s.jc],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.Fc(1,"div",1),s.xd(2),s.Ec(),s.Fc(3,"select",2),s.Sc("change",(function(t){return e.selectBitrate(t.target.value)})),s.vd(4,tI,2,3,"option",3),s.Ec(),s.Ec()),2&t&&(s.lc(1),s.pc("vg-icon-hd",!e.bitrateSelected),s.lc(1),s.zd(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),s.lc(1),s.mc("aria-valuetext",e.ariaValue),s.lc(1),s.cd("ngForOf",e.bitrates))},directives:[ve.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),xI=(()=>{let t=class{};return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[aI],imports:[[ve.c]]}),t})(),kI=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.vc({token:t,factory:t.\u0275fac}),t.VG_ABORT="abort",t.VG_CAN_PLAY="canplay",t.VG_CAN_PLAY_THROUGH="canplaythrough",t.VG_DURATION_CHANGE="durationchange",t.VG_EMPTIED="emptied",t.VG_ENCRYPTED="encrypted",t.VG_ENDED="ended",t.VG_ERROR="error",t.VG_LOADED_DATA="loadeddata",t.VG_LOADED_METADATA="loadedmetadata",t.VG_LOAD_START="loadstart",t.VG_PAUSE="pause",t.VG_PLAY="play",t.VG_PLAYING="playing",t.VG_PROGRESS="progress",t.VG_RATE_CHANGE="ratechange",t.VG_SEEK="seek",t.VG_SEEKED="seeked",t.VG_SEEKING="seeking",t.VG_STALLED="stalled",t.VG_SUSPEND="suspend",t.VG_TIME_UPDATE="timeupdate",t.VG_VOLUME_CHANGE="volumechange",t.VG_WAITING="waiting",t.VG_LOAD="load",t.VG_ENTER="enter",t.VG_EXIT="exit",t.VG_START_ADS="startads",t.VG_END_ADS="endads",t})(),CI=(()=>{let t=class{constructor(t,e){this.api=t,this.ref=e,this.state=eI.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Te.a}ngOnInit(){this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:kr(this.elem,kI.VG_ABORT),canPlay:kr(this.elem,kI.VG_CAN_PLAY),canPlayThrough:kr(this.elem,kI.VG_CAN_PLAY_THROUGH),durationChange:kr(this.elem,kI.VG_DURATION_CHANGE),emptied:kr(this.elem,kI.VG_EMPTIED),encrypted:kr(this.elem,kI.VG_ENCRYPTED),ended:kr(this.elem,kI.VG_ENDED),error:kr(this.elem,kI.VG_ERROR),loadedData:kr(this.elem,kI.VG_LOADED_DATA),loadedMetadata:kr(this.elem,kI.VG_LOADED_METADATA),loadStart:kr(this.elem,kI.VG_LOAD_START),pause:kr(this.elem,kI.VG_PAUSE),play:kr(this.elem,kI.VG_PLAY),playing:kr(this.elem,kI.VG_PLAYING),progress:kr(this.elem,kI.VG_PROGRESS),rateChange:kr(this.elem,kI.VG_RATE_CHANGE),seeked:kr(this.elem,kI.VG_SEEKED),seeking:kr(this.elem,kI.VG_SEEKING),stalled:kr(this.elem,kI.VG_STALLED),suspend:kr(this.elem,kI.VG_SUSPEND),timeUpdate:kr(this.elem,kI.VG_TIME_UPDATE),volumeChange:kr(this.elem,kI.VG_VOLUME_CHANGE),waiting:kr(this.elem,kI.VG_WAITING),startAds:kr(this.elem,kI.VG_START_ADS),endAds:kr(this.elem,kI.VG_END_ADS),mutation:new si.a(t=>{const e=new MutationObserver(e=>{t.next(e)});return e.observe(this.elem,{childList:!0,attributes:!0}),()=>{e.disconnect()}}),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe(()=>{this.prepareSync()})}prepareSync(){const t=[];for(const e in this.api.medias)this.api.medias[e]&&t.push(this.api.medias[e].subscriptions.canPlay);this.canPlayAllSubscription=Pm(t).pipe(Object(ii.a)((...t)=>{t.some(t=>4===t.target.readyState)&&!this.syncSubscription&&(this.startSync(),this.syncSubscription.unsubscribe())})).subscribe()}startSync(){this.syncSubscription=Ur(0,1e3).subscribe(()=>{for(const t in this.api.medias)if(this.api.medias[t]!==this){const e=this.api.medias[t].currentTime-this.currentTime;e<-.3||e>.3?(this.playAtferSync=this.state===eI.VG_PLAYING,this.pause(),this.api.medias[t].pause(),this.api.medias[t].currentTime=this.currentTime):this.playAtferSync&&(this.play(),this.api.medias[t].play(),this.playAtferSync=!1)}})}onMutation(t){for(let e=0,i=t.length;e0&&i.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===i.type&&i.removedNodes.length&&"source"===i.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}loadMedia(){this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout(()=>this.vgMedia.load(),10)}play(){if(!(this.playPromise||this.state!==eI.VG_PAUSED&&this.state!==eI.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then(()=>{this.playPromise=null}).catch(()=>{this.playPromise=null}),this.playPromise}pause(){this.playPromise?this.playPromise.then(()=>{this.vgMedia.pause()}):this.vgMedia.pause()}get id(){let t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}get duration(){return this.vgMedia.duration}set currentTime(t){this.vgMedia.currentTime=t}get currentTime(){return this.vgMedia.currentTime}set volume(t){this.vgMedia.volume=t}get volume(){return this.vgMedia.volume}set playbackRate(t){this.vgMedia.playbackRate=t}get playbackRate(){return this.vgMedia.playbackRate}get buffered(){return this.vgMedia.buffered}get textTracks(){return this.vgMedia.textTracks}onCanPlay(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}onCanPlayThrough(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}onLoadMetadata(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=eI.VG_PAUSED;const e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}onWait(t){this.isWaiting=!0,this.ref.detectChanges()}onComplete(t){this.isCompleted=!0,this.state=eI.VG_ENDED,this.ref.detectChanges()}onStartPlaying(t){this.state=eI.VG_PLAYING,this.ref.detectChanges()}onPlay(t){this.state=eI.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}onPause(t){this.state=eI.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}onTimeUpdate(t){const e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onProgress(t){const e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onVolumeChange(t){this.ref.detectChanges()}onError(t){this.ref.detectChanges()}bufferCheck(){const t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}startBufferCheck(){this.checkBufferSubscription=Ur(0,this.checkInterval).subscribe(()=>{this.bufferCheck()})}stopBufferCheck(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}seekTime(t,e=!1){let i;i=e?t*this.duration/100:t,this.currentTime=i}addTextTrack(t,e,i,n){const s=this.vgMedia.addTextTrack(t,e,i);return n&&(s.mode=n),s}ngOnDestroy(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}};return t.\u0275fac=function(e){return new(e||t)(s.zc(iI),s.zc(s.j))},t.\u0275dir=s.uc({type:t,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),t})(),SI=(()=>{let t=class{constructor(t){this.ref=t,this.onEnterCuePoint=new s.t,this.onUpdateCuePoint=new s.t,this.onExitCuePoint=new s.t,this.onCompleteCuePoint=new s.t,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}ngOnInit(){this.onLoad$=kr(this.ref.nativeElement,kI.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}onLoad(t){if(t.target&&t.target.track){const e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){const e=t.target.textTracks[0].cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}}updateCuePoints(t){this.cuesSubscriptions.forEach(t=>t.unsubscribe());for(let e=0,i=t.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q))},t.\u0275dir=s.uc({type:t,selectors:[["","vgCuePoints",""]],outputs:{onEnterCuePoint:"onEnterCuePoint",onUpdateCuePoint:"onUpdateCuePoint",onExitCuePoint:"onExitCuePoint",onCompleteCuePoint:"onCompleteCuePoint"}}),t})(),EI=(()=>{let t=class{constructor(t,e,i,n){this.api=e,this.fsAPI=i,this.controlsHidden=n,this.isFullscreen=!1,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.onPlayerReady=new s.t,this.onMediaReady=new s.t,this.subscriptions=[],this.elem=t.nativeElement,this.api.registerElement(this.elem)}ngAfterContentInit(){this.medias.toArray().forEach(t=>{this.api.registerMedia(t)}),this.fsAPI.init(this.elem,this.medias),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.api.onPlayerReady(this.fsAPI),this.onPlayerReady.emit(this.api)}onChangeFullscreen(t){this.fsAPI.nativeFullscreen?this.isNativeFullscreen=t:(this.isFullscreen=t,this.zIndex=t?rI.getZIndex().toString():"auto")}onHideControls(t){this.areControlsHidden=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI),s.zc(lI),s.zc(aI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-player"]],contentQueries:function(t,e,i){var n;1&t&&s.rc(i,CI,!1),2&t&&s.id(n=s.Tc())&&(e.medias=n)},hostVars:8,hostBindings:function(t,e){2&t&&(s.ud("z-index",e.zIndex),s.pc("fullscreen",e.isFullscreen)("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden))},outputs:{onPlayerReady:"onPlayerReady",onMediaReady:"onMediaReady"},features:[s.kc([iI,lI,aI])],ngContentSelectors:HD,decls:1,vars:0,template:function(t,e){1&t&&(s.bd(),s.ad(0))},styles:["\n vg-player {\n font-family: 'videogular';\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: black;\n }\n vg-player.fullscreen {\n position: fixed;\n left: 0;\n top: 0;\n }\n vg-player.native-fullscreen.controls-hidden {\n cursor: none;\n }\n "],encapsulation:2}),t})(),OI=(()=>{let t=class{};return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[iI,lI,rI,aI,eI,kI]}),t})(),AI=(()=>{let t=class{constructor(t,e,i,n){this.API=e,this.fsAPI=i,this.controlsHidden=n,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}onChangeFullscreen(t){this.fsAPI.nativeFullscreen&&(this.isNativeFullscreen=t)}onHideControls(t){this.areControlsHidden=t}onClick(){switch(this.getState()){case eI.VG_PLAYING:this.target.pause();break;case eI.VG_PAUSED:case eI.VG_ENDED:this.target.play()}}getState(){let t=eI.VG_PAUSED;if(this.target)if(this.target.state instanceof Array){for(let e=0,i=this.target.state.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.zc(s.q),s.zc(iI),s.zc(lI),s.zc(aI))},t.\u0275cmp=s.tc({type:t,selectors:[["vg-overlay-play"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Sc("click",(function(){return e.onClick()})),2&t&&s.pc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:2,vars:6,consts:[[1,"vg-overlay-play"],[1,"overlay-play-container"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.Ac(1,"div",1),s.Ec()),2&t&&(s.pc("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden),s.lc(1),s.pc("vg-icon-play_arrow","playing"!==e.getState()))},styles:["\n vg-overlay-play {\n z-index: 200;\n }\n vg-overlay-play.is-buffering {\n display: none;\n }\n vg-overlay-play .vg-overlay-play {\n transition: all 0.5s;\n cursor: pointer;\n position: absolute;\n display: block;\n color: white;\n width: 100%;\n height: 100%;\n font-size: 80px;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n vg-overlay-play .vg-overlay-play.native-fullscreen.controls-hidden {\n cursor: none;\n }\n vg-overlay-play .vg-overlay-play .overlay-play-container.vg-icon-play_arrow {\n pointer-events: none;\n width: 100%;\n height: 100%;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 80px;\n }\n vg-overlay-play .vg-overlay-play:hover {\n filter: alpha(opacity=100);\n opacity: 1;\n }\n vg-overlay-play .vg-overlay-play:hover .overlay-play-container.vg-icon-play_arrow:before {\n transform: scale(1.2);\n }\n "],encapsulation:2}),t})(),DI=(()=>{let t=class{};return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[ve.c]]}),t})();function II(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-button-toggle",12),s.Sc("click",(function(){s.nd(t);const i=e.$implicit,n=e.index;return s.Wc(2).onClickPlaylistItem(i,n)})),s.xd(1),s.Ec()}if(2&t){const t=e.$implicit,i=s.Wc(2);s.cd("checked",i.currentItem.title===t.title)("value",t.title),s.lc(1),s.yd(t.label)}}var TI;function PI(t,e){1&t&&s.Ac(0,"mat-spinner",17),2&t&&s.cd("diameter",25)}function FI(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",13),s.Fc(1,"div",14),s.vd(2,PI,1,1,"mat-spinner",15),s.Ec(),s.Fc(3,"button",16),s.Sc("click",(function(){return s.nd(t),s.Wc(2).updatePlaylist()})),s.Dc(4),s.Jc(5,TI),s.Cc(),s.xd(6,"\xa0"),s.Fc(7,"mat-icon"),s.xd(8,"update"),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(2),s.cd("ngIf",t.playlist_updating),s.lc(1),s.cd("disabled",t.playlist_updating)}}function RI(t,e){1&t&&s.Ac(0,"mat-spinner",23),2&t&&s.cd("diameter",50)}function MI(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",24),s.Sc("click",(function(){return s.nd(t),s.Wc(3).namePlaylistDialog()})),s.Fc(1,"mat-icon",19),s.xd(2,"favorite"),s.Ec(),s.Ec()}}function zI(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",25),s.Sc("click",(function(){return s.nd(t),s.Wc(3).openShareDialog()})),s.Fc(1,"mat-icon",19),s.xd(2,"share"),s.Ec(),s.Ec()}}function LI(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"button",18),s.Sc("click",(function(){return s.nd(t),s.Wc(2).downloadContent()})),s.Fc(2,"mat-icon",19),s.xd(3,"save"),s.Ec(),s.vd(4,RI,1,1,"mat-spinner",20),s.Ec(),s.vd(5,MI,3,0,"button",21),s.vd(6,zI,3,0,"button",22),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(1),s.cd("disabled",t.downloading),s.lc(3),s.cd("ngIf",t.downloading),s.lc(1),s.cd("ngIf",!t.id),s.lc(1),s.cd("ngIf",!t.is_shared&&t.id&&(!t.postsService.isLoggedIn||t.postsService.permissions.includes("sharing")))}}function NI(t,e){1&t&&s.Ac(0,"mat-spinner",23),2&t&&s.cd("diameter",50)}function BI(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",25),s.Sc("click",(function(){return s.nd(t),s.Wc(3).openShareDialog()})),s.Fc(1,"mat-icon",19),s.xd(2,"share"),s.Ec(),s.Ec()}}function VI(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"button",18),s.Sc("click",(function(){return s.nd(t),s.Wc(2).downloadFile()})),s.Fc(2,"mat-icon",19),s.xd(3,"save"),s.Ec(),s.vd(4,NI,1,1,"mat-spinner",20),s.Ec(),s.vd(5,BI,3,0,"button",22),s.Ec()}if(2&t){const t=s.Wc(2);s.lc(1),s.cd("disabled",t.downloading),s.lc(3),s.cd("ngIf",t.downloading),s.lc(1),s.cd("ngIf",!t.is_shared&&t.uid&&"false"!==t.uid&&"subscription"!==t.type&&(!t.postsService.isLoggedIn||t.postsService.permissions.includes("sharing")))}}function jI(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"div",1),s.Fc(2,"div",2),s.Fc(3,"div",3),s.Fc(4,"vg-player",4),s.Sc("onPlayerReady",(function(e){return s.nd(t),s.Wc().onPlayerReady(e)})),s.Ac(5,"video",5,6),s.Ec(),s.Ec(),s.Fc(7,"div",7),s.Fc(8,"mat-button-toggle-group",8,9),s.Sc("cdkDropListDropped",(function(e){return s.nd(t),s.Wc().drop(e)})),s.vd(10,II,2,3,"mat-button-toggle",10),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.vd(11,FI,9,2,"div",11),s.vd(12,LI,7,4,"div",0),s.vd(13,VI,6,3,"div",0),s.Ec()}if(2&t){const t=s.jd(6),e=s.Wc();s.lc(1),s.cd("ngClass","audio"===e.type?null:"container-video"),s.lc(2),s.cd("ngClass","audio"===e.type?"my-2 px-1":"video-col"),s.lc(1),s.ud("background-color","audio"===e.type?"transparent":"black"),s.lc(1),s.cd("ngClass","audio"===e.type?"audio-styles":"video-styles")("vgMedia",t)("src",e.currentItem.src,s.pd),s.lc(3),s.cd("cdkDropListSortingDisabled",!e.id),s.lc(2),s.cd("ngForOf",e.playlist),s.lc(1),s.cd("ngIf",e.id&&e.playlistChanged()),s.lc(1),s.cd("ngIf",e.playlist.length>1),s.lc(1),s.cd("ngIf",1===e.playlist.length)}}TI=$localize`:Playlist save changes button␟5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f␟7000649363168371045:Save changes`;let $I=(()=>{class t{constructor(t,e,i,n,s){this.postsService=t,this.route=e,this.dialog=i,this.router=n,this.snackBar=s,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.uuid=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.sharingEnabled=null,this.url=null,this.name=null,this.downloading=!1}onResize(t){this.innerWidth=window.innerWidth}ngOnInit(){this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.uuid=this.route.snapshot.paramMap.get("uuid"),this.postsService.initialized?this.processConfig():this.postsService.service_initialized.subscribe(t=>{t&&this.processConfig()})}processConfig(){this.baseStreamPath=this.postsService.path,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.subscriptionFolderPath=this.postsService.config.Subscriptions.subscriptions_base_path,this.fileNames=this.route.snapshot.paramMap.get("fileNames")?this.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,this.fileNames||(this.is_shared=!0),this.uid&&!this.id?this.getFile():this.id&&this.getPlaylistFiles(),this.url?(this.playlist=[],this.playlist.push({title:this.name,label:this.name,src:this.url,type:"video/mp4"}),this.currentItem=this.playlist[0],this.currentIndex=0,this.show_player=!0):("subscription"===this.type||this.fileNames)&&(this.show_player=!0,this.parseFileNames())}getFile(){const t=!!this.fileNames;this.postsService.getFile(this.uid,null,this.uuid).subscribe(e=>{this.db_file=e.file,this.db_file?(this.sharingEnabled=this.db_file.sharingEnabled,this.fileNames||this.id||(this.fileNames=[this.db_file.id],this.type=this.db_file.isAudio?"audio":"video",t||this.parseFileNames()),this.db_file.sharingEnabled?this.show_player=!0:t||this.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):this.openSnackBar("Failed to get file information from the server.","Dismiss")})}getPlaylistFiles(){this.postsService.getPlaylist(this.id,null).subscribe(t=>{this.db_playlist=t.playlist,this.fileNames=this.db_playlist.fileNames,this.type=t.type,this.show_player=!0,this.parseFileNames()})}parseFileNames(){let t=null;"audio"===this.type?t="audio/mp3":"video"===this.type||"subscription"===this.type?t="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(let e=0;e{})}getFileNames(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,e+".zip")},t=>{console.log(t),this.downloading=!1})}downloadFile(){const t="audio"===this.type?".mp3":".mp4",e=this.playlist[0].title;this.downloading=!0,this.postsService.downloadFileFromServer(e,this.type,null,null,this.subscriptionName,this.subPlaylist,this.is_shared?this.db_file.uid:null,this.uuid).subscribe(i=>{this.downloading=!1,saveAs(i,e+t)},t=>{console.log(t),this.downloading=!1})}namePlaylistDialog(){const t=new s.t,e=this.dialog.open(MD,{width:"300px",data:{inputTitle:"Name the playlist",inputPlaceholder:"Name",submitText:"Favorite",doneEmitter:t}});t.subscribe(t=>{if(t){const i=this.getFileNames();this.postsService.createPlaylist(t,i,this.type,null).subscribe(i=>{if(i.success){e.close();const n=i.new_playlist;this.db_playlist=n,this.openSnackBar("Playlist '"+t+"' successfully created!",""),this.playlistPostCreationHandler(n.id)}})}})}playlistPostCreationHandler(t){this.id=t,this.router.navigateByUrl(this.router.url+";id="+t)}drop(t){sv(this.playlist,t.previousIndex,t.currentIndex)}playlistChanged(){return JSON.stringify(this.playlist)!==this.original_playlist}updatePlaylist(){const t=this.getFileNames();this.playlist_updating=!0,this.postsService.updatePlaylist(this.id,t,this.type).subscribe(e=>{if(this.playlist_updating=!1,e.success){const e=t.join("|nvr|");this.router.navigate(["/player",{fileNames:e,type:this.type,id:this.id}]),this.openSnackBar("Successfully updated playlist.",""),this.original_playlist=JSON.stringify(this.playlist)}else this.openSnackBar("ERROR: Failed to update playlist.","")})}openShareDialog(){this.dialog.open(GD,{data:{uid:this.id?this.id:this.uid,type:this.type,sharing_enabled:this.id?this.db_playlist.sharingEnabled:this.db_file.sharingEnabled,is_playlist:!!this.id,uuid:this.postsService.isLoggedIn?this.postsService.user.uid:null},width:"60vw"}).afterClosed().subscribe(t=>{this.id?this.getPlaylistFiles():this.getFile()})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(mw),s.zc(bd),s.zc(wx),s.zc(Wg))},t.\u0275cmp=s.tc({type:t,selectors:[["app-player"]],hostBindings:function(t,e){1&t&&s.Sc("resize",(function(t){return e.onResize(t)}),!1,s.md)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"container",3,"ngClass"],[1,"row",2,"max-width","100%","margin-left","0px","height","70vh"],[1,"col",3,"ngClass"],[3,"onPlayerReady"],["id","singleVideo","preload","auto","controls","",1,"video-player",3,"ngClass","vgMedia","src"],["media",""],[1,"col-12","my-2"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",2,"width","80%","left","9%",3,"cdkDropListSortingDisabled","cdkDropListDropped"],["group","matButtonToggleGroup"],["cdkDrag","","class","toggle-button",3,"checked","value","click",4,"ngFor","ngForOf"],["class","update-playlist-button-div",4,"ngIf"],["cdkDrag","",1,"toggle-button",3,"checked","value","click"],[1,"update-playlist-button-div"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],["color","primary","mat-raised-button","",3,"disabled","click"],[3,"diameter"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],["color","accent","class","favorite-button","color","primary","mat-fab","",3,"click",4,"ngIf"],["class","share-button","color","primary","mat-fab","",3,"click",4,"ngIf"],[1,"spinner",3,"diameter"],["color","accent","color","primary","mat-fab","",1,"favorite-button",3,"click"],["color","primary","mat-fab","",1,"share-button",3,"click"]],template:function(t,e){1&t&&s.vd(0,jI,14,12,"div",0),2&t&&s.cd("ngIf",e.playlist.length>0&&e.show_player)},directives:[ve.t,ve.q,EI,CI,Fo,Iv,ve.s,zo,Ev,bs,vu,pp],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),t})();var UI;UI=$localize`:Subscribe dialog title␟a9806cf78ce00eb2613eeca11354a97e033377b8␟4500902888758611270:Subscribe to playlist or channel`;const WI=["placeholder",$localize`:Subscription URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var GI;GI=$localize`:Subscription URL input hint␟93efc99ae087fc116de708ecd3ace86ca237cf30␟6758330192665823220:The playlist or channel URL`;const HI=["placeholder",$localize`:Subscription custom name placeholder␟08f5d0ef937ae17feb1b04aff15ad88911e87baf␟1402261878731426139:Custom name`];var qI,YI,KI,XI,JI;function ZI(t,e){if(1&t&&(s.Fc(0,"mat-option",17),s.xd(1),s.Ec()),2&t){const t=e.$implicit,i=s.Wc(2);s.cd("value",t+(1===i.timerange_amount?"":"s")),s.lc(1),s.zd(" ",t+(1===i.timerange_amount?"":"s")," ")}}function QI(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",3),s.Dc(1),s.Jc(2,JI),s.Cc(),s.Fc(3,"mat-form-field",13),s.Fc(4,"input",14),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().timerange_amount=e})),s.Ec(),s.Ec(),s.Fc(5,"mat-select",15),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().timerange_unit=e})),s.vd(6,ZI,2,2,"mat-option",16),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(4),s.cd("ngModel",t.timerange_amount),s.lc(1),s.cd("ngModel",t.timerange_unit),s.lc(1),s.cd("ngForOf",t.time_units)}}function tT(t,e){1&t&&(s.Fc(0,"div",18),s.Ac(1,"mat-spinner",19),s.Ec()),2&t&&(s.lc(1),s.cd("diameter",25))}qI=$localize`:Custom name input hint␟f3f62aa84d59f3a8b900cc9a7eec3ef279a7b4e7␟8525826677893067522:This is optional`,YI=$localize`:Download all uploads subscription setting␟ea30873bd3f0d5e4fb2378eec3f0a1db77634a28␟2789218157148692814:Download all uploads`,KI=$localize`:Subscribe cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,XI=$localize`:Subscribe button␟d0336848b0c375a1c25ba369b3481ee383217a4f␟1144407473317535723:Subscribe`,JI=$localize`:Download time range prefix␟28a678e9cabf86e44c32594c43fa0e890135c20f␟2424458468042538424:Download videos uploaded in the last`;let eT=(()=>{class t{constructor(t,e,i){this.postsService=t,this.snackBar=e,this.dialogRef=i,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.time_units=["day","week","month","year"]}ngOnInit(){}subscribeClicked(){if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;let t=null;this.download_all||(t="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,t,this.streamingOnlyMode).subscribe(t=>{this.subscribing=!1,t.new_sub?this.dialogRef.close(t.new_sub):(t.error&&this.openSnackBar("ERROR: "+t.error),this.dialogRef.close())})}}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(Wg),s.zc(ud))},t.\u0275cmp=s.tc({type:t,selectors:[["app-subscribe-dialog"]],decls:36,vars:7,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.Jc(1,UI),s.Ec(),s.Fc(2,"mat-dialog-content"),s.Fc(3,"div",1),s.Fc(4,"div",2),s.Fc(5,"div",3),s.Fc(6,"mat-form-field",4),s.Fc(7,"input",5),s.Lc(8,WI),s.Sc("ngModelChange",(function(t){return e.url=t})),s.Ec(),s.Fc(9,"mat-hint"),s.Dc(10),s.Jc(11,GI),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(12,"div",3),s.Fc(13,"mat-form-field",4),s.Fc(14,"input",6),s.Lc(15,HI),s.Sc("ngModelChange",(function(t){return e.name=t})),s.Ec(),s.Fc(16,"mat-hint"),s.Dc(17),s.Jc(18,qI),s.Cc(),s.Ec(),s.Ec(),s.Ec(),s.Fc(19,"div",7),s.Fc(20,"mat-checkbox",8),s.Sc("ngModelChange",(function(t){return e.download_all=t})),s.Dc(21),s.Jc(22,YI),s.Cc(),s.Ec(),s.Ec(),s.vd(23,QI,7,3,"div",9),s.Fc(24,"div",3),s.Fc(25,"div"),s.Fc(26,"mat-checkbox",8),s.Sc("ngModelChange",(function(t){return e.streamingOnlyMode=t})),s.xd(27,"Streaming-only mode"),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(28,"mat-dialog-actions"),s.Fc(29,"button",10),s.Dc(30),s.Jc(31,KI),s.Cc(),s.Ec(),s.Fc(32,"button",11),s.Sc("click",(function(){return e.subscribeClicked()})),s.Dc(33),s.Jc(34,XI),s.Cc(),s.Ec(),s.vd(35,tT,2,1,"div",12),s.Ec()),2&t&&(s.lc(7),s.cd("ngModel",e.url),s.lc(7),s.cd("ngModel",e.name),s.lc(6),s.cd("ngModel",e.download_all),s.lc(3),s.cd("ngIf",!e.download_all),s.lc(3),s.cd("ngModel",e.streamingOnlyMode),s.lc(6),s.cd("disabled",!e.url),s.lc(3),s.cd("ngIf",e.subscribing))},directives:[yd,wd,Bc,Fu,Fs,ho,Vs,Ya,Dc,gr,ve.t,xd,bs,vd,Qs,Hp,ve.s,rs,pp],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var iT,nT,sT,aT,oT,rT,lT;function cT(t,e){if(1&t&&(s.Fc(0,"div",1),s.Fc(1,"strong"),s.Dc(2),s.Jc(3,lT),s.Cc(),s.xd(4,"\xa0"),s.Ec(),s.Fc(5,"span",2),s.xd(6),s.Ec(),s.Ec()),2&t){const t=s.Wc();s.lc(6),s.yd(t.sub.archive)}}iT=$localize`:Subscription type property␟e78c0d60ac39787f62c9159646fe0b3c1ed55a1d␟2736556170366900089:Type:`,nT=$localize`:Subscription URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,sT=$localize`:Subscription ID property␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,aT=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,oT=$localize`:Export Archive button␟8efc77bf327659c0fec1f518cf48a98cdcd9dddf␟5613381975493898311:Export Archive`,rT=$localize`:Unsubscribe button␟3042bd3ad8dffcfeca5fd1ae6159fd1047434e95␟1698114086921246480:Unsubscribe`,lT=$localize`:Subscription ID property␟a44d86aa1e6c20ced07aca3a7c081d8db9ded1c6␟2158775445713924699:Archive:`;let dT=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.postsService=i,this.sub=null,this.unsubbedEmitter=null}ngOnInit(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}unsubscribe(){this.postsService.unsubscribe(this.sub,!0).subscribe(t=>{this.unsubbedEmitter.emit(!0),this.dialogRef.close()})}downloadArchive(){this.postsService.downloadArchive(this.sub).subscribe(t=>{saveAs(t,"archive.txt")})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(ud),s.zc(md),s.zc(qx))},t.\u0275cmp=s.tc({type:t,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(s.Fc(0,"h4",0),s.xd(1),s.Ec(),s.Fc(2,"mat-dialog-content"),s.Fc(3,"div",1),s.Fc(4,"strong"),s.Dc(5),s.Jc(6,iT),s.Cc(),s.xd(7,"\xa0"),s.Ec(),s.Fc(8,"span",2),s.xd(9),s.Ec(),s.Ec(),s.Fc(10,"div",1),s.Fc(11,"strong"),s.Dc(12),s.Jc(13,nT),s.Cc(),s.xd(14,"\xa0"),s.Ec(),s.Fc(15,"span",2),s.xd(16),s.Ec(),s.Ec(),s.Fc(17,"div",1),s.Fc(18,"strong"),s.Dc(19),s.Jc(20,sT),s.Cc(),s.xd(21,"\xa0"),s.Ec(),s.Fc(22,"span",2),s.xd(23),s.Ec(),s.Ec(),s.vd(24,cT,7,1,"div",3),s.Ec(),s.Fc(25,"mat-dialog-actions"),s.Fc(26,"button",4),s.Dc(27),s.Jc(28,aT),s.Cc(),s.Ec(),s.Fc(29,"button",5),s.Sc("click",(function(){return e.downloadArchive()})),s.Dc(30),s.Jc(31,oT),s.Cc(),s.Ec(),s.Ac(32,"span",6),s.Fc(33,"button",7),s.Sc("click",(function(){return e.unsubscribe()})),s.Dc(34),s.Jc(35,rT),s.Cc(),s.Ec(),s.Ec()),2&t&&(s.lc(1),s.yd(e.sub.name),s.lc(8),s.yd(e.sub.isPlaylist?"Playlist":"Channel"),s.lc(7),s.yd(e.sub.url),s.lc(7),s.yd(e.sub.id),s.lc(1),s.cd("ngIf",e.sub.archive))},directives:[yd,wd,ve.t,xd,bs,vd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();var hT,uT,mT,pT,gT,fT,bT;function _T(t,e){if(1&t&&(s.Fc(0,"strong"),s.xd(1),s.Ec()),2&t){const t=s.Wc().$implicit;s.lc(1),s.yd(t.name)}}function vT(t,e){1&t&&(s.Fc(0,"div"),s.Dc(1),s.Jc(2,pT),s.Cc(),s.Ec())}function yT(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-list-item"),s.Fc(1,"a",9),s.Sc("click",(function(){s.nd(t);const i=e.$implicit;return s.Wc().goToSubscription(i)})),s.vd(2,_T,2,1,"strong",10),s.vd(3,vT,3,0,"div",10),s.Ec(),s.Fc(4,"button",11),s.Sc("click",(function(){s.nd(t);const i=e.$implicit;return s.Wc().showSubInfo(i)})),s.Fc(5,"mat-icon"),s.xd(6,"info"),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=e.$implicit;s.lc(2),s.cd("ngIf",t.name),s.lc(1),s.cd("ngIf",!t.name)}}function wT(t,e){1&t&&(s.Fc(0,"div",12),s.Fc(1,"p"),s.Jc(2,gT),s.Ec(),s.Ec())}function xT(t,e){1&t&&(s.Fc(0,"div",14),s.Dc(1),s.Jc(2,fT),s.Cc(),s.Ec())}function kT(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-list-item"),s.Fc(1,"a",9),s.Sc("click",(function(){s.nd(t);const i=e.$implicit;return s.Wc().goToSubscription(i)})),s.Fc(2,"strong"),s.xd(3),s.Ec(),s.vd(4,xT,3,0,"div",13),s.Ec(),s.Fc(5,"button",11),s.Sc("click",(function(){s.nd(t);const i=e.$implicit;return s.Wc().showSubInfo(i)})),s.Fc(6,"mat-icon"),s.xd(7,"info"),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=e.$implicit;s.lc(3),s.yd(t.name),s.lc(1),s.cd("ngIf",!t.name)}}function CT(t,e){1&t&&(s.Fc(0,"div",12),s.Fc(1,"p"),s.Jc(2,bT),s.Ec(),s.Ec())}function ST(t,e){1&t&&(s.Fc(0,"div",15),s.Ac(1,"mat-progress-bar",16),s.Ec())}hT=$localize`:Subscriptions title␟e2319dec5b4ccfb6ed9f55ccabd63650a8fdf547␟3180145612302390475:Your subscriptions`,uT=$localize`:Subscriptions channels title␟807cf11e6ac1cde912496f764c176bdfdd6b7e19␟8181077408762380407:Channels`,mT=$localize`:Subscriptions playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,pT=$localize`:Subscription playlist not available text␟29b89f751593e1b347eef103891b7a1ff36ec03f␟973700466393519727:Name not available. Channel retrieval in progress.`,gT=$localize`:No channel subscriptions text␟4636cd4a1379c50d471e98786098c4d39e1e82ad␟2560406180065361139:You have no channel subscriptions.`,fT=$localize`:Subscription playlist not available text␟2e0a410652cb07d069f576b61eab32586a18320d␟4161141077899894301:Name not available. Playlist retrieval in progress.`,bT=$localize`:No playlist subscriptions text␟587b57ced54965d8874c3fd0e9dfedb987e5df04␟3403368727234976136:You have no playlist subscriptions.`;let ET=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.postsService=e,this.router=i,this.snackBar=n,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}ngOnInit(){this.postsService.initialized&&this.getSubscriptions(),this.postsService.service_initialized.subscribe(t=>{t&&this.getSubscriptions()})}getSubscriptions(){this.subscriptions_loading=!0,this.subscriptions=null,this.postsService.getAllSubscriptions().subscribe(t=>{if(this.channel_subscriptions=[],this.playlist_subscriptions=[],this.subscriptions_loading=!1,this.subscriptions=t.subscriptions,this.subscriptions)for(let e=0;e{this.subscriptions_loading=!1,console.error("Failed to get subscriptions"),this.openSnackBar("ERROR: Failed to get subscriptions!","OK.")})}goToSubscription(t){this.router.navigate(["/subscription",{id:t.id}])}openSubscribeDialog(){this.dialog.open(eT,{maxWidth:500,width:"80vw"}).afterClosed().subscribe(t=>{t&&(t.isPlaylist?this.playlist_subscriptions.push(t):this.channel_subscriptions.push(t))})}showSubInfo(t){const e=new s.t;this.dialog.open(dT,{data:{sub:t,unsubbedEmitter:e}}),e.subscribe(e=>{e&&(this.openSnackBar(`${t.name} successfully deleted!`),this.getSubscriptions())})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(bd),s.zc(qx),s.zc(wx),s.zc(Wg))},t.\u0275cmp=s.tc({type:t,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(s.Ac(0,"br"),s.Fc(1,"h2",0),s.Jc(2,hT),s.Ec(),s.Ac(3,"mat-divider",1),s.Ac(4,"br"),s.Fc(5,"h4",2),s.Jc(6,uT),s.Ec(),s.Fc(7,"mat-nav-list",3),s.vd(8,yT,7,2,"mat-list-item",4),s.Ec(),s.vd(9,wT,3,0,"div",5),s.Fc(10,"h4",6),s.Jc(11,mT),s.Ec(),s.Fc(12,"mat-nav-list",3),s.vd(13,kT,8,2,"mat-list-item",4),s.Ec(),s.vd(14,CT,3,0,"div",5),s.vd(15,ST,2,0,"div",7),s.Fc(16,"button",8),s.Sc("click",(function(){return e.openSubscribeDialog()})),s.Fc(17,"mat-icon"),s.xd(18,"add"),s.Ec(),s.Ec()),2&t&&(s.lc(8),s.cd("ngForOf",e.channel_subscriptions),s.lc(1),s.cd("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),s.lc(4),s.cd("ngForOf",e.playlist_subscriptions),s.lc(1),s.cd("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),s.lc(1),s.cd("ngIf",e.subscriptions_loading))},directives:[Mu,Yu,ve.s,ve.t,bs,vu,tm,Vn,np],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),t})();var OT,AT,DT,IT;function TT(t,e){if(1&t){const t=s.Gc();s.Fc(0,"button",4),s.Sc("click",(function(){return s.nd(t),s.Wc().deleteForever()})),s.Fc(1,"mat-icon"),s.xd(2,"delete_forever"),s.Ec(),s.Dc(3),s.Jc(4,IT),s.Cc(),s.Ec()}}function PT(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",10),s.Fc(1,"img",11),s.Sc("error",(function(e){return s.nd(t),s.Wc().onImgError(e)})),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(1),s.cd("src",t.file.thumbnailURL,s.pd)}}OT=$localize`:Video duration label␟2054791b822475aeaea95c0119113de3200f5e1c␟7115285952699064699:Length:`,AT=$localize`:Subscription video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,DT=$localize`:Delete and redownload subscription video button␟94e01842dcee90531caa52e4147f70679bac87fe␟8460889291602192517:Delete and redownload`,IT=$localize`:Delete forever subscription video button␟2031adb51e07a41844e8ba7704b054e98345c9c1␟880206287081443054:Delete forever`;let FT=(()=>{class t{constructor(t,e,i){this.snackBar=t,this.postsService=e,this.dialog=i,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new s.t,this.reloadSubscription=new s.t,this.scrollSubject=new Te.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){this.file.duration&&(this.formattedDuration=function(t){const e=~~(t/3600),i=~~(t%3600/60),n=~~t%60;let s="";return e>0&&(s+=e+":"+(i<10?"0":"")),s+=i+":"+(n<10?"0":""),s+=""+n,s}(this.file.duration))}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}goToFile(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}openSubscriptionInfoDialog(){this.dialog.open(KA,{data:{file:this.file},minWidth:"50vw"})}deleteAndRedownload(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}deleteForever(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(Wg),s.zc(qx),s.zc(bd))},t.\u0275cmp=s.tc({type:t,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(s.Fc(0,"div",0),s.Fc(1,"div",1),s.Dc(2),s.Jc(3,OT),s.Cc(),s.xd(4),s.Ec(),s.Fc(5,"button",2),s.Fc(6,"mat-icon"),s.xd(7,"more_vert"),s.Ec(),s.Ec(),s.Fc(8,"mat-menu",null,3),s.Fc(10,"button",4),s.Sc("click",(function(){return e.openSubscriptionInfoDialog()})),s.Fc(11,"mat-icon"),s.xd(12,"info"),s.Ec(),s.Dc(13),s.Jc(14,AT),s.Cc(),s.Ec(),s.Fc(15,"button",4),s.Sc("click",(function(){return e.deleteAndRedownload()})),s.Fc(16,"mat-icon"),s.xd(17,"restore"),s.Ec(),s.Dc(18),s.Jc(19,DT),s.Cc(),s.Ec(),s.vd(20,TT,5,0,"button",5),s.Ec(),s.Fc(21,"mat-card",6),s.Sc("click",(function(){return e.goToFile()})),s.Fc(22,"div",7),s.vd(23,PT,2,1,"div",8),s.Fc(24,"span",9),s.Fc(25,"strong"),s.xd(26),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ec()),2&t){const t=s.jd(9);s.lc(4),s.zd("\xa0",e.formattedDuration," "),s.lc(1),s.cd("matMenuTriggerFor",t),s.lc(15),s.cd("ngIf",e.sub.archive&&e.use_youtubedl_archive),s.lc(3),s.cd("ngIf",!e.image_errored&&e.file.thumbnailURL),s.lc(3),s.yd(e.file.title)}},directives:[bs,Am,vu,Cm,_m,ve.t,er,Kn],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),t})();function RT(t,e){if(1&t&&(s.Fc(0,"h2",9),s.xd(1),s.Ec()),2&t){const t=s.Wc();s.lc(1),s.zd(" ",t.subscription.name," ")}}var MT;MT=$localize`:Subscription videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const zT=["placeholder",$localize`:Subscription videos search placeholder␟7e892ba15f2c6c17e83510e273b3e10fc32ea016␟4580988005648117665:Search`];function LT(t,e){if(1&t&&(s.Fc(0,"mat-option",25),s.xd(1),s.Ec()),2&t){const t=e.$implicit;s.cd("value",t.value),s.lc(1),s.zd(" ",t.value.label," ")}}function NT(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div",26),s.Fc(1,"app-subscription-file-card",27),s.Sc("reloadSubscription",(function(){return s.nd(t),s.Wc(2).getSubscription()}))("goToFileEmit",(function(e){return s.nd(t),s.Wc(2).goToFile(e)})),s.Ec(),s.Ec()}if(2&t){const t=e.$implicit,i=s.Wc(2);s.lc(1),s.cd("file",t)("sub",i.subscription)("use_youtubedl_archive",i.use_youtubedl_archive)}}function BT(t,e){if(1&t){const t=s.Gc();s.Fc(0,"div"),s.Fc(1,"div",10),s.Fc(2,"div",11),s.Fc(3,"div",12),s.Fc(4,"mat-select",13),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().filterProperty=e}))("selectionChange",(function(e){return s.nd(t),s.Wc().filterOptionChanged(e.value)})),s.vd(5,LT,2,2,"mat-option",14),s.Xc(6,"keyvalue"),s.Ec(),s.Ec(),s.Fc(7,"div",12),s.Fc(8,"button",15),s.Sc("click",(function(){return s.nd(t),s.Wc().toggleModeChange()})),s.Fc(9,"mat-icon"),s.xd(10),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Ac(11,"div",16),s.Fc(12,"div",16),s.Fc(13,"h4",17),s.Jc(14,MT),s.Ec(),s.Ec(),s.Fc(15,"div",18),s.Fc(16,"mat-form-field",19),s.Fc(17,"input",20),s.Lc(18,zT),s.Sc("focus",(function(){return s.nd(t),s.Wc().searchIsFocused=!0}))("blur",(function(){return s.nd(t),s.Wc().searchIsFocused=!1}))("ngModelChange",(function(e){return s.nd(t),s.Wc().search_text=e}))("ngModelChange",(function(e){return s.nd(t),s.Wc().onSearchInputChanged(e)})),s.Ec(),s.Fc(19,"mat-icon",21),s.xd(20,"search"),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.Fc(21,"div",22),s.Fc(22,"div",23),s.vd(23,NT,2,3,"div",24),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(4),s.cd("ngModel",t.filterProperty),s.lc(1),s.cd("ngForOf",s.Yc(6,6,t.filterProperties)),s.lc(5),s.yd(t.descendingMode?"arrow_downward":"arrow_upward"),s.lc(6),s.cd("ngClass",t.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),s.lc(1),s.cd("ngModel",t.search_text),s.lc(6),s.cd("ngForOf",t.filtered_files)}}function VT(t,e){1&t&&s.Ac(0,"mat-spinner",28),2&t&&s.cd("diameter",50)}let jT=(()=>{class t{constructor(t,e,i){this.postsService=t,this.route=e,this.router=i,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}ngOnInit(){this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.postsService.service_initialized.subscribe(t=>{t&&(this.getConfig(),this.getSubscription())}));const t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}goBack(){this.router.navigate(["/subscriptions"])}getSubscription(){this.postsService.getSubscription(this.id).subscribe(t=>{this.subscription=t.subscription,this.files=t.files,this.search_mode?this.filterFiles(this.search_text):this.filtered_files=this.files,this.filterByProperty(this.filterProperty.property)})}getConfig(){this.use_youtubedl_archive=this.postsService.config.Subscriptions.subscriptions_use_youtubedl_archive}goToFile(t){const e=t.name,i=t.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:e,url:i}]:["/player",{fileNames:e,type:"subscription",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist,uuid:this.postsService.user?this.postsService.user.uid:null}])}onSearchInputChanged(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}filterFiles(t){const e=t.toLowerCase();this.filtered_files=this.files.filter(t=>t.id.toLowerCase().includes(e))}filterByProperty(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?(e,i)=>e[t]>i[t]?-1:1:(e,i)=>e[t]>i[t]?1:-1)}filterOptionChanged(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}toggleModeChange(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}downloadContent(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,this.subscription.name+".zip")},t=>{console.log(t),this.downloading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(mw),s.zc(wx))},t.\u0275cmp=s.tc({type:t,selectors:[["app-subscription"]],decls:13,vars:4,consts:[[2,"margin-top","14px"],["mat-icon-button","",1,"back-button",3,"click"],[2,"margin-bottom","15px"],["style","text-align: center;",4,"ngIf"],[2,"width","80%","margin","0 auto"],[4,"ngIf"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],[2,"text-align","center"],[1,"flex-grid"],[1,"filter-select-parent"],[2,"display","inline-block"],[2,"width","110px",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],[1,"col"],[2,"text-align","center","margin-bottom","20px"],[1,"col",2,"top","-12px"],["color","accent",1,"search-bar",3,"ngClass"],["type","text","matInput","",1,"search-input",3,"ngModel","focus","blur","ngModelChange",6,"placeholder"],["matSuffix",""],[1,"container"],[1,"row","justify-content-center"],["class","col-6 col-lg-4 mb-2 mt-2 sub-file-col",4,"ngFor","ngForOf"],[3,"value"],[1,"col-6","col-lg-4","mb-2","mt-2","sub-file-col"],[3,"file","sub","use_youtubedl_archive","reloadSubscription","goToFileEmit"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.Fc(1,"button",1),s.Sc("click",(function(){return e.goBack()})),s.Fc(2,"mat-icon"),s.xd(3,"arrow_back"),s.Ec(),s.Ec(),s.Fc(4,"div",2),s.vd(5,RT,2,1,"h2",3),s.Ec(),s.Ac(6,"mat-divider",4),s.Ac(7,"br"),s.vd(8,BT,24,8,"div",5),s.Fc(9,"button",6),s.Sc("click",(function(){return e.downloadContent()})),s.Fc(10,"mat-icon",7),s.xd(11,"save"),s.Ec(),s.vd(12,VT,1,1,"mat-spinner",8),s.Ec(),s.Ec()),2&t&&(s.lc(5),s.cd("ngIf",e.subscription),s.lc(3),s.cd("ngIf",e.subscription),s.lc(1),s.cd("disabled",e.downloading),s.lc(3),s.cd("ngIf",e.downloading))},directives:[bs,vu,ve.t,Mu,Hp,Vs,Ya,ve.s,Bc,ve.q,Fu,Fs,Fc,rs,FT,pp],pipes:[ve.l],styles:[".sub-file-col[_ngcontent-%COMP%]{max-width:240px}.back-button[_ngcontent-%COMP%]{float:left;position:absolute;left:15px}.filter-select-parent[_ngcontent-%COMP%]{position:absolute;top:0;left:20px;display:block}.search-bar[_ngcontent-%COMP%]{transition:all .5s ease;position:relative;float:right}.search-bar-unfocused[_ngcontent-%COMP%]{width:100px}.search-input[_ngcontent-%COMP%]{transition:all .5s ease}.search-bar-focused[_ngcontent-%COMP%]{width:100%}.flex-grid[_ngcontent-%COMP%]{width:100%;display:block;position:relative}.col[_ngcontent-%COMP%]{width:33%;display:inline-block}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:absolute;bottom:25px}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}"]}),t})();function $T(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-tab",9),s.Fc(1,"div",3),s.Fc(2,"mat-form-field"),s.Fc(3,"input",4),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().registrationUsernameInput=e})),s.Ec(),s.Ec(),s.Ec(),s.Fc(4,"div"),s.Fc(5,"mat-form-field"),s.Fc(6,"input",10),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().registrationPasswordInput=e})),s.Ec(),s.Ec(),s.Ec(),s.Fc(7,"div"),s.Fc(8,"mat-form-field"),s.Fc(9,"input",11),s.Sc("ngModelChange",(function(e){return s.nd(t),s.Wc().registrationPasswordConfirmationInput=e})),s.Ec(),s.Ec(),s.Ec(),s.Fc(10,"div",6),s.Fc(11,"button",7),s.Sc("click",(function(){return s.nd(t),s.Wc().register()})),s.xd(12,"Register"),s.Ec(),s.Ec(),s.Ec()}if(2&t){const t=s.Wc();s.lc(3),s.cd("ngModel",t.registrationUsernameInput),s.lc(3),s.cd("ngModel",t.registrationPasswordInput),s.lc(3),s.cd("ngModel",t.registrationPasswordConfirmationInput),s.lc(2),s.cd("disabled",t.registering)}}let UT=(()=>{class t{constructor(t,e,i){this.postsService=t,this.snackBar=e,this.router=i,this.selectedTabIndex=0,this.loginUsernameInput="",this.loginPasswordInput="",this.loggingIn=!1,this.registrationEnabled=!0,this.registrationUsernameInput="",this.registrationPasswordInput="",this.registrationPasswordConfirmationInput="",this.registering=!1}ngOnInit(){this.postsService.isLoggedIn&&this.router.navigate(["/home"]),this.postsService.service_initialized.subscribe(t=>{t&&(this.postsService.config.Advanced.multi_user_mode||this.router.navigate(["/home"]))})}login(){""!==this.loginPasswordInput&&(this.loggingIn=!0,this.postsService.login(this.loginUsernameInput,this.loginPasswordInput).subscribe(t=>{this.loggingIn=!1},t=>{this.loggingIn=!1}))}register(){this.registrationUsernameInput&&""!==this.registrationUsernameInput?this.registrationPasswordInput&&""!==this.registrationPasswordInput?this.registrationPasswordConfirmationInput&&""!==this.registrationPasswordConfirmationInput?this.registrationPasswordInput===this.registrationPasswordConfirmationInput?(this.registering=!0,this.postsService.register(this.registrationUsernameInput,this.registrationPasswordInput).subscribe(t=>{this.registering=!1,t&&t.user&&(this.openSnackBar(`User ${t.user.name} successfully registered.`),this.loginUsernameInput=t.user.name,this.selectedTabIndex=0)},t=>{this.registering=!1,t&&t.error&&"string"==typeof t.error?this.openSnackBar(t.error):console.log(t)})):this.openSnackBar("Password confirmation is incorrect!"):this.openSnackBar("Password confirmation is required!"):this.openSnackBar("Password is required!"):this.openSnackBar("User name is required!")}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.zc(qx),s.zc(Wg),s.zc(wx))},t.\u0275cmp=s.tc({type:t,selectors:[["app-login"]],decls:13,vars:5,consts:[[1,"login-card"],[3,"selectedIndex","selectedIndexChange"],["label","Login"],[2,"margin-top","10px"],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange","keyup.enter"],[2,"margin-bottom","10px","margin-top","10px"],["color","primary","mat-raised-button","",3,"disabled","click"],["label","Register",4,"ngIf"],["label","Register"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Confirm Password",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(s.Fc(0,"mat-card",0),s.Fc(1,"mat-tab-group",1),s.Sc("selectedIndexChange",(function(t){return e.selectedTabIndex=t})),s.Fc(2,"mat-tab",2),s.Fc(3,"div",3),s.Fc(4,"mat-form-field"),s.Fc(5,"input",4),s.Sc("ngModelChange",(function(t){return e.loginUsernameInput=t})),s.Ec(),s.Ec(),s.Ec(),s.Fc(6,"div"),s.Fc(7,"mat-form-field"),s.Fc(8,"input",5),s.Sc("ngModelChange",(function(t){return e.loginPasswordInput=t}))("keyup.enter",(function(){return e.login()})),s.Ec(),s.Ec(),s.Ec(),s.Fc(9,"div",6),s.Fc(10,"button",7),s.Sc("click",(function(){return e.login()})),s.xd(11,"Login"),s.Ec(),s.Ec(),s.Ec(),s.vd(12,$T,13,4,"mat-tab",8),s.Ec(),s.Ec()),2&t&&(s.lc(1),s.cd("selectedIndex",e.selectedTabIndex),s.lc(4),s.cd("ngModel",e.loginUsernameInput),s.lc(3),s.cd("ngModel",e.loginPasswordInput),s.lc(2),s.cd("disabled",e.loggingIn),s.lc(2),s.cd("ngIf",e.registrationEnabled))},directives:[er,Mf,Cf,Bc,Fu,Fs,Vs,Ya,bs,ve.t],styles:[".login-card[_ngcontent-%COMP%]{max-width:600px;width:80%;margin:20px auto 0}"]}),t})();var WT;function GT(t,e){1&t&&(s.Fc(0,"mat-icon",10),s.xd(1,"done"),s.Ec())}function HT(t,e){1&t&&(s.Fc(0,"mat-icon",11),s.xd(1,"error"),s.Ec())}function qT(t,e){if(1&t&&(s.Fc(0,"mat-expansion-panel",12),s.Fc(1,"mat-expansion-panel-header"),s.xd(2," Error "),s.Ec(),s.xd(3),s.Ec()),2&t){const t=s.Wc();s.lc(3),s.zd(" ",t.download.error," ")}}WT=$localize`:Download ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`;let YT=(()=>{class t{constructor(){this.download={uid:null,type:"audio",percent_complete:0,complete:!1,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.cancelDownload=new s.t,this.queueNumber=null,this.url_id=null}ngOnInit(){if(this.download&&this.download.url&&this.download.url.includes("youtube")){const t=this.download.is_playlist?6:3,e=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+t;this.url_id=this.download.url.substring(e,this.download.url.length)}}cancelTheDownload(){this.cancelDownload.emit(this.download)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.tc({type:t,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:17,vars:11,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","text-align","center","width","100%"],[1,"shorten"],[3,"value","mode"],["style","margin-left: 25px; cursor: default","matTooltip","The download is complete","matTooltip-i18n","",4,"ngIf"],["style","margin-left: 25px; cursor: default","matTooltip","An error has occurred","matTooltip-i18n","",4,"ngIf"],["mat-icon-button","","color","warn",2,"margin-bottom","2px",3,"click"],["fontSet","material-icons-outlined"],["class","ignore-margin",4,"ngIf"],["matTooltip","The download is complete","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],["matTooltip","An error has occurred","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],[1,"ignore-margin"]],template:function(t,e){1&t&&(s.Fc(0,"div"),s.Fc(1,"mat-grid-list",0),s.Fc(2,"mat-grid-tile",1),s.Fc(3,"div",2),s.Fc(4,"span",3),s.Dc(5),s.Jc(6,WT),s.Cc(),s.xd(7),s.Ec(),s.Ec(),s.Ec(),s.Fc(8,"mat-grid-tile",1),s.Ac(9,"mat-progress-bar",4),s.vd(10,GT,2,0,"mat-icon",5),s.vd(11,HT,2,0,"mat-icon",6),s.Ec(),s.Fc(12,"mat-grid-tile",1),s.Fc(13,"button",7),s.Sc("click",(function(){return e.cancelTheDownload()})),s.Fc(14,"mat-icon",8),s.xd(15,"cancel"),s.Ec(),s.Ec(),s.Ec(),s.Ec(),s.vd(16,qT,4,1,"mat-expansion-panel",9),s.Ec()),2&t&&(s.lc(1),s.cd("rowHeight",50)("cols",24),s.lc(1),s.cd("colspan",7),s.lc(5),s.zd("\xa0",e.url_id?e.url_id:e.download.uid,""),s.lc(1),s.cd("colspan",13),s.lc(1),s.cd("value",e.download.complete||e.download.error?100:e.download.percent_complete)("mode",e.download.complete||0!==e.download.percent_complete||e.download.error?"determinate":"indeterminate"),s.lc(1),s.cd("ngIf",e.download.complete),s.lc(1),s.cd("ngIf",e.download.error),s.lc(1),s.cd("colspan",4),s.lc(4),s.cd("ngIf",e.download.error))},directives:[fh,ih,np,ve.t,bs,vu,Km,Wd,Hd],styles:[".shorten[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.ignore-margin[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;margin-bottom:-15px}"]}),t})();var KT,XT,JT;function ZT(t,e){1&t&&(s.Fc(0,"span"),s.xd(1,"\xa0"),s.Dc(2),s.Jc(3,XT),s.Cc(),s.Ec())}function QT(t,e){if(1&t){const t=s.Gc();s.Fc(0,"mat-card",10),s.Fc(1,"app-download-item",11),s.Sc("cancelDownload",(function(){s.nd(t);const e=s.Wc().$implicit,i=s.Wc(2).$implicit;return s.Wc().clearDownload(i.key,e.value.uid)})),s.Ec(),s.Ec()}if(2&t){const t=s.Wc(),e=t.$implicit,i=t.index;s.lc(1),s.cd("download",e.value)("queueNumber",i+1)}}function tP(t,e){if(1&t&&(s.Fc(0,"div",8),s.vd(1,QT,2,2,"mat-card",9),s.Ec()),2&t){const t=e.$implicit;s.lc(1),s.cd("ngIf",t.value)}}function eP(t,e){if(1&t&&(s.Dc(0),s.Fc(1,"mat-card",3),s.Fc(2,"h4",4),s.Dc(3),s.Jc(4,KT),s.Cc(),s.xd(5),s.vd(6,ZT,4,0,"span",2),s.Ec(),s.Fc(7,"div",5),s.Fc(8,"div",6),s.vd(9,tP,2,1,"div",7),s.Xc(10,"keyvalue"),s.Ec(),s.Ec(),s.Ec(),s.Cc()),2&t){const t=s.Wc().$implicit,e=s.Wc();s.lc(5),s.zd("\xa0",t.key," "),s.lc(1),s.cd("ngIf",t.key===e.postsService.session_id),s.lc(3),s.cd("ngForOf",s.Yc(10,3,t.value))}}function iP(t,e){if(1&t&&(s.Fc(0,"div"),s.vd(1,eP,11,5,"ng-container",2),s.Ec()),2&t){const t=e.$implicit,i=s.Wc();s.lc(1),s.cd("ngIf",i.keys(t.value).length>0)}}function nP(t,e){1&t&&(s.Fc(0,"div"),s.Fc(1,"h4",4),s.Jc(2,JT),s.Ec(),s.Ec())}KT=$localize`:Session ID␟a1ad8b1be9be43b5183bd2c3186d4e19496f2a0b␟98219539077594180:Session ID:`,XT=$localize`:Current session␟eb98135e35af26a9a326ee69bd8ff104d36dd8ec␟2634265024545519524:(current)`,JT=$localize`:No downloads label␟7117fc42f860e86d983bfccfcf2654e5750f3406␟6454341788755868274:No downloads available!`;let sP=(()=>{class t{constructor(t){this.postsService=t,this.downloads_check_interval=500,this.downloads={},this.keys=Object.keys,this.valid_sessions_length=0}ngOnInit(){this.getCurrentDownloads(),setInterval(()=>{this.getCurrentDownloads()},this.downloads_check_interval)}getCurrentDownloads(){this.postsService.getCurrentDownloads().subscribe(t=>{t.downloads&&this.assignNewValues(t.downloads)})}clearDownload(t,e){this.postsService.clearDownloads(!1,t,e).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}clearDownloads(t){this.postsService.clearDownloads(!1,t).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}clearAllDownloads(){this.postsService.clearDownloads(!0).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}assignNewValues(t){const e=Object.keys(t);for(let i=0;i0){t=!0;break}return t}}var e;return t.\u0275fac=function(e){return new(e||t)(s.zc(qx))},t.\u0275cmp=s.tc({type:t,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(t,e){1&t&&(s.Fc(0,"div",0),s.vd(1,iP,2,1,"div",1),s.Xc(2,"keyvalue"),s.vd(3,nP,3,0,"div",2),s.Ec()),2&t&&(s.lc(1),s.cd("ngForOf",s.Yc(2,2,e.downloads)),s.lc(2),s.cd("ngIf",e.downloads&&!e.downloadsValid()))},directives:[ve.s,ve.t,er,YT],pipes:[ve.l],styles:[""],data:{animation:[o("list",[m(":enter",[g("@items",(e=p(),{type:12,timings:100,animation:e}),{optional:!0})])]),o("items",[m(":enter",[d({transform:"scale(0.5)",opacity:0}),r("500ms cubic-bezier(.8,-0.6,0.2,1.5)",d({transform:"scale(1)",opacity:1}))]),m(":leave",[d({transform:"scale(1)",opacity:1,height:"*"}),r("1s cubic-bezier(.8,-0.6,0.2,1.5)",d({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),t})();const aP=[{path:"home",component:BA,canActivate:[qx]},{path:"player",component:$I,canActivate:[qx]},{path:"subscriptions",component:ET,canActivate:[qx]},{path:"subscription",component:jT,canActivate:[qx]},{path:"login",component:UT},{path:"downloads",component:sP},{path:"",redirectTo:"/home",pathMatch:"full"}];let oP=(()=>{class t{}return t.\u0275mod=s.xc({type:t}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},imports:[[Nx.forRoot(aP,{useHash:!0})],Nx]}),t})();var rP=i("2Yyj"),lP=i.n(rP);function cP({element:t}){return"video"===t.id?zA||NA:MA||LA}Object(ve.K)(lP.a,"es");let dP=(()=>{class t{}return t.\u0275mod=s.xc({type:t,bootstrap:[QE]}),t.\u0275inj=s.wc({factory:function(e){return new(e||t)},providers:[qx],imports:[[ve.c,n.a,Ie,Nn,Op,Co,Ru,qp,So,su,Jg,sr,$g,vs,yr,gg,yu,cm,bh,Jd,ap,gp,Lo,Xn,Im,Cd,Pg,Im,ad,Kf,Jm,lb,kb,j_,Tv,zv,OI,xI,DI,sI,wD.forRoot({isVisible:cP}),Nx,oP]]}),t})();s.qd(BA,[ve.q,ve.r,ve.s,ve.t,ve.A,ve.w,ve.x,ve.y,ve.z,ve.u,ve.v,kp,Ep,sn,Ka,ua,fa,Fs,Qs,sa,Is,ha,ga,ia,Vs,js,ho,bo,vo,wo,uo,go,Ya,Ga,Va,ku,Cu,Cc,Bc,Dc,Ic,Tc,Pc,Fc,Fu,Eu,Hp,Gp,rs,is,Za,to,ro,io,so,Xg,Kg,er,ir,nr,Wo,Go,Ho,qo,Yo,Xo,Jo,Zo,Ko,Qo,tr,jg,bs,_s,gr,br,lg,cg,rg,hg,mg,dg,vu,Xu,Yu,tm,Ju,Vn,Zu,Qu,Jn,lm,rm,Mu,fh,ih,nh,ah,oh,sh,Kd,Wd,Gd,Hd,Yd,qd,jd,np,mp,pp,Fo,zo,Kn,Cm,_m,Am,pm,dd,vd,yd,wd,xd,Dg,Og,Qc,sd,td,Mf,vf,Cf,Wf,Yf,_f,Km,Xm,rb,pb,xb,p_,__,O_,x_,f_,T_,y_,D_,C_,E_,S_,F_,L_,M_,B_,Iv,Av,Ev,wv,kv,xv,Mv,CI,SI,EI,oI,cI,dI,hI,uI,mI,pI,gI,fI,bI,vI,yI,wI,AI,nI,vD,Ax,xx,kx,Sx,ky,QE,FD,BA,$I,MD,pO,YT,ET,eT,jT,FT,dT,sE,ek,vE,KA,yk,Lk,Ik,GD,UT,sP,IE,zE,DC,jk,Qk,rC],[ve.b,ve.G,ve.p,ve.k,ve.E,ve.g,ve.C,ve.F,ve.d,ve.f,ve.i,ve.j,ve.l,_I,vk])},xDdU:function(t,e,i){var n,s,a=i("4fRq"),o=i("I2ZF"),r=0,l=0;t.exports=function(t,e,i){var c=e&&i||0,d=e||[],h=(t=t||{}).node||n,u=void 0!==t.clockseq?t.clockseq:s;if(null==h||null==u){var m=a();null==h&&(h=n=[1|m[0],m[1],m[2],m[3],m[4],m[5]]),null==u&&(u=s=16383&(m[6]<<8|m[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),g=void 0!==t.nsecs?t.nsecs:l+1,f=p-r+(g-l)/1e4;if(f<0&&void 0===t.clockseq&&(u=u+1&16383),(f<0||p>r)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=p,l=g,s=u;var b=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;d[c++]=b>>>24&255,d[c++]=b>>>16&255,d[c++]=b>>>8&255,d[c++]=255&b;var _=p/4294967296*1e4&268435455;d[c++]=_>>>8&255,d[c++]=255&_,d[c++]=_>>>24&15|16,d[c++]=_>>>16&255,d[c++]=u>>>8|128,d[c++]=255&u;for(var v=0;v<6;++v)d[c+v]=h[v];return e||o(d)}},xk4V:function(t,e,i){var n=i("4fRq"),s=i("I2ZF");t.exports=function(t,e,i){var a=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var r=0;r<16;++r)e[a+r]=o[r];return e||s(o)}},zuWl:function(t,e,i){"use strict";!function(e){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},s={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function a(t){var e,a,o,r,l,c,d,h,u,m,p,g,f,b,_,v=1=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,a,r=!0,o=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return r=t.done,t},e:function(t){o=!0,a=t},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw a}}}}function _createSuper(t){return function(){var e,n=_getPrototypeOf(t);if(_isNativeReflectConstruct()){var i=_getPrototypeOf(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return _possibleConstructorReturn(this,e)}}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){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 _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _inherits(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&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(l){a=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return n}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n>>((3&e)<<3)&255;return a}}},EcEN:function(t,e,n){var i=n("xDdU"),a=n("xk4V"),r=a;r.v1=i,r.v4=a,t.exports=r},I2ZF:function(t,e){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var i=e||0;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}},Iab2:function(t,e,n){var i,a;void 0===(a="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){r(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,r,o){var s=a.URL||a.webkitURL,l=document.createElement("a");l.download=r=r||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?i(l):n(l.href)?e(t,r,o):i(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,r){if(a=a||t.name||"download","string"!=typeof t)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(["\ufeff",t],{type:t.type}):t}(t,r),a);else if(n(t))e(t,a,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){i(o)}))}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=a)},XypG:function(t,e){},ZAI4:function(t,e,n){"use strict";n.r(e),n.d(e,"isVisible",(function(){return fM})),n.d(e,"AppModule",(function(){return gM}));var i=n("jhN1"),a=n("fXoL"),r=function t(){_classCallCheck(this,t)};function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function d(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function p(t){Promise.resolve(null).then(t)}var g=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;_classCallCheck(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 _createClass(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;p((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}(),v=function(){function t(e){var n=this;_classCallCheck(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,a=0,r=0,o=this.players.length;0==o?p((function(){return n._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++i==o&&n._onFinish()})),t.onDestroy((function(){++a==o&&n._onDestroy()})),t.onStart((function(){++r==o&&n._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return _createClass(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 b(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(t){switch(t.length){case 0:return new g;case 1:return t[0];default:return new v(t)}}function _(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,c=null;if(i.forEach((function(t){var n=t.offset,i=n==l,u=i&&c||{};Object.keys(t).forEach((function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),s){case"!":s=a[n];break;case"*":s=r[n];break;default:s=e.normalizeStyleValue(n,i,s,o)}u[i]=s})),i||s.push(u),c=u,l=n})),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function k(t,e,n,i){switch(e){case"start":t.onStart((function(){return i(n&&C(n,"start",t))}));break;case"done":t.onDone((function(){return i(n&&C(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return i(n&&C(n,"destroy",t))}))}}function C(t,e,n){var i=n.totalTime,a=w(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(a._data=r),a}function w(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=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:a,totalTime:r,disabled:!!o}}function x(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 S(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var O=function(t,e){return!1},D=function(t,e){return!1},E=function(t,e,n){return[]},A=b();(A||"undefined"!=typeof Element)&&(O=function(t,e){return t.contains(e)},D=function(){if(A||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])}:D}(),E=function(t,e,n){var i=[];if(n)i.push.apply(i,_toConsumableArray(t.querySelectorAll(e)));else{var a=t.querySelector(e);a&&i.push(a)}return i});var I=null,T=!1;function P(t){I||(I=("undefined"!=typeof document?document.body:null)||{},T=!!I.style&&"WebkitAppearance"in I.style);var e=!0;return I.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in I.style)&&T)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in I.style),e}var R=D,M=O,j=E;function L(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 F,z=((F=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return P(t)}},{key:"matchesElement",value:function(t,e){return R(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return j(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return n||""}},{key:"animate",value:function(t,e,n,i,a){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new g(n,i)}}]),t}()).\u0275fac=function(t){return new(t||F)},F.\u0275prov=a.uc({token:F,factory:F.\u0275fac}),F),N=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new z,t}();function B(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:V(parseFloat(e[1]),e[2])}function V(t,e){switch(e){case"s":return 1e3*t;default:return t}}function U(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,a=0,r="";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=V(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(a=V(parseFloat(s),o[4]));var l=o[5];l&&(r=l)}else i=t;if(!n){var c=!1,u=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),c=!0),a<0&&(e.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&e.splice(u,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:i,delay:a,easing:r}}(t,e,n)}function H(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 q(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 H(t,n);return n}function G(t,e,n){return n?e+":"+n+";":""}function W(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 a=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var r=a[1],o=a[2],s=a[3];e.push(lt(r,s)),"<"!=o[0]||"*"==r&&"*"==s||e.push(lt(s,r))}(t,a,i)})):a.push(n),a),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:ft(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return at(n,t,e)})),options:ft(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,a=0,r=t.steps.map((function(t){e.currentTime=i;var r=at(n,t,e);return a=Math.max(a,e.currentTime),r}));return e.currentTime=a,{type:3,steps:r,options:ft(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 pt(U(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var a=pt(0,0,"");return a.dynamic=!0,a.strValue=i,a}return pt((n=n||U(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var a=t.styles?t.styles:u({});if(5==a.type)n=this.visitKeyframes(a,e);else{var r=t.styles,o=!1;if(!r){o=!0;var s={};i.easing&&(s.easing=i.easing),r=u(s)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(r,e);l.isEmptyStep=o,n=l}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,a=null;return n.forEach((function(t){if(mt(t)){var e=t,n=e.easing;if(n&&(a=n,delete e.easing),!i)for(var r in e)if(e[r].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:a,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,a=e.currentTime,r=e.currentTime;i&&r>0&&(r-=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,l,c,u,d=e.collectedStyles[e.currentQuerySelector],h=d[i],m=!0;h&&(r!=a&&r>=h.startTime&&a<=h.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),m=!1),r=h.startTime),m&&(d[i]={startTime:r,endTime:a}),e.options&&(o=t[i],s=e.options,l=e.errors,c=s.params||{},(u=X(o)).length&&u.forEach((function(t){c.hasOwnProperty(t)||l.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 a=0,r=[],o=!1,s=!1,l=0,c=t.steps.map((function(t){var i=n._makeStyleAst(t,e),c=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(mt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(mt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),u=0;return null!=c&&(a++,u=i.offset=c),s=s||u<0||u>1,o=o||u0&&a0?a==h?1:d*a:r[a],s=o*p;e.currentTime=m+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=o,i.styles.push(t)})),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:at(this,$(t.animation),e),options:ft(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:ft(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ft(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var a=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(ct,"")),[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),r=a[0],o=a[1];e.currentQuerySelector=n.length?n+" "+r:r,x(e.collectedStyles,e.currentQuerySelector,{});var s=at(this,$(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:ft(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"}:U(t.timings,e.errors,!0);return{type:12,animation:at(this,$(t.animation),e),timings:n,options:null}}}]),t}(),ht=function t(e){_classCallCheck(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 mt(t){return!Array.isArray(t)&&"object"==typeof t}function ft(t){var e;return t?(t=H(t)).params&&(t.params=(e=t.params)?H(e):null):t={},t}function pt(t,e,n){return{duration:t,delay:e,easing:n}}function gt(t,e,n,i,a,r){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:a,delay:r,totalTime:a+r,easing:o,subTimeline:s}}var vt=function(){function t(){_classCallCheck(this,t),this._map=new Map}return _createClass(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,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),bt=new RegExp(":enter","g"),yt=new RegExp(":leave","g");function _t(t,e,n,i,a){var r=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,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new kt).buildKeyframes(t,e,n,i,a,r,o,s,l,c)}var kt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,n,i,a,r,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new vt;var u=new wt(t,e,l,i,a,c,[]);u.options=s,u.currentTimeline.setStyles([r],null,u.errors,s),at(this,n,u);var d=u.timelines.filter((function(t){return t.containsAnimation()}));if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,u.errors,s)}return d.length?d.map((function(t){return t.buildKeyframes()})):[gt(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),a=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);a!=r&&e.transformIntoNewTimeline(r)}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,a=null!=n.duration?B(n.duration):null,r=null!=n.delay?B(n.delay):null;return 0!==a&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,a,r);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),at(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,a=e,r=t.options;if(r&&(r.params||r.delay)&&((a=e.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Ct);var o=B(r.delay);a.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return at(n,t,a)})),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>i&&a.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],a=e.currentTimeline.currentTime,r=t.options&&t.options.delay?B(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);r&&s.delayNextStep(r),at(n,o,s),a=Math.max(a,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(a),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return U(e.params?Z(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 a=t.style;5==a.type?this.visitKeyframes(a,e):(e.incrementTime(n.duration),this.visitStyle(a,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 a=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(a):n.setStyles(t.styles,a,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,a=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach((function(t){r.forwardTime((t.offset||0)*a),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+a),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,a=t.options||{},r=a.delay?B(a.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ct);var o=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach((function(i,a){e.currentQueryIndex=a;var s=e.createSubContext(t.options,i);r&&s.delayNextStep(r),i===e.element&&(l=s.currentTimeline),at(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,a=t.timings,r=Math.abs(a.duration),o=r*(e.currentQueryTotal-1),s=r*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var c=l.currentTime;at(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),t}(),Ct={},wt=function(){function t(e,n,i,a,r,o,s,l){_classCallCheck(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=a,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new xt(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,a=this.options;null!=i.duration&&(a.duration=B(i.duration)),null!=i.delay&&(a.delay=B(i.delay));var r=i.params;if(r){var o=a.params;o||(o=this.options.params={}),Object.keys(r).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=Z(r[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,a=n||this.element,r=new t(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Ct,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:""},a=new St(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(a),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,a,r){var o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(bt,"."+this._enterClassName)).replace(yt,"."+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,_toConsumableArray(s))}return a||0!=o.length||r.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}(),xt=function(){function t(e,n,i,a){_classCallCheck(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=a,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 _createClass(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 a=this;e&&(this._previousKeyframe.easing=e);var r=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]="*"})):q(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(o).forEach((function(t){var e=Z(o[t],r,n);a._pendingStyles[t]=e,a._localTimelineStyles.hasOwnProperty(t)||(a._backFill[t]=a._globalTimelineStyles.hasOwnProperty(t)?a._globalTimelineStyles[t]:"*"),a._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],a=t._styleSummary[n];(!i||a.time>i.time)&&e._updateStyle(n,a.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,a=[];this._keyframes.forEach((function(r,o){var s=q(r,!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),a.push(s)}));var r=e.size?J(e.values()):[],o=n.size?J(n.values()):[];if(i){var s=a[0],l=H(s);s.offset=0,l.offset=1,a=[s,l]}return gt(this.element,a,r,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}(),St=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o,s){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(l=e.call(this,t,i,s.delay)).element=i,l.keyframes=a,l.preStyleProps=r,l.postStyleProps=o,l._stretchStartingKeyframe=c,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return _createClass(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,a=e.easing;if(this._stretchStartingKeyframe&&n){var r=[],o=i+n,s=n/o,l=q(t[0],!1);l.offset=0,r.push(l);var c=q(t[0],!1);c.offset=Ot(s),r.push(c);for(var u=t.length-1,d=1;d<=u;d++){var h=q(t[d],!1);h.offset=Ot((n+h.offset*i)/o),r.push(h)}i=o,n=0,a="",t=r}return gt(this.element,t,this.preStyleProps,this.postStyleProps,i,n,a,!0)}}]),n}(xt);function Ot(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 Dt=function t(){_classCallCheck(this,t)},Et=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(t,e){return et(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var a="",r=n.toString().trim();if(At[e]&&0!==n&&"0"!==n)if("number"==typeof n)a="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 r+a}}]),n}(Dt),At=function(t){var e={};return t.forEach((function(t){return e[t]=!0})),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function It(t,e,n,i,a,r,o,s,l,c,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:a,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var Tt={},Pt=function(){function t(e,n,i){_classCallCheck(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return _createClass(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,a){return t.some((function(t){return t(e,n,i,a)}))}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],a=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return a?a.buildStyles(e,n):r}},{key:"build",value:function(t,e,n,i,a,r,o,s,l,c){var u=[],d=this.ast.options&&this.ast.options.params||Tt,h=this.buildStyles(n,o&&o.params||Tt,u),m=s&&s.params||Tt,f=this.buildStyles(i,m,u),p=new Set,g=new Map,v=new Map,b="void"===i,y={params:Object.assign(Object.assign({},d),m)},_=c?[]:_t(t,e,this.ast.animation,a,r,h,f,y,l,u),k=0;if(_.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),u.length)return It(e,this._triggerName,n,i,b,h,f,[],[],g,v,k,u);_.forEach((function(t){var n=t.element,i=x(g,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var a=x(v,n,{});t.postStyleProps.forEach((function(t){return a[t]=!0})),n!==e&&p.add(n)}));var C=J(p.values());return It(e,this._triggerName,n,i,b,h,f,_,C,g,v,k)}}]),t}(),Rt=function(){function t(e,n){_classCallCheck(this,t),this.styles=e,this.defaultParams=n}return _createClass(t,[{key:"buildStyles",value:function(t,e){var n={},i=H(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 a=t;Object.keys(a).forEach((function(t){var r=a[t];r.length>1&&(r=Z(r,i,e)),n[t]=r}))}})),n}}]),t}(),Mt=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(t){i.states[t.name]=new Rt(t.style,t.options&&t.options.params||{})})),jt(this.states,"true","1"),jt(this.states,"false","0"),n.transitions.forEach((function(t){i.transitionFactories.push(new Pt(e,t,i.states))})),this.fallbackTransition=new Pt(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find((function(a){return a.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 jt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Lt=new vt,Ft=function(){function t(e,n,i){_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var n=[],i=ut(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,a=_(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,a,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=this._animations[t],s=new Map;if(o?(n=_t(this._driver,e,o,"ng-enter","ng-leave",{},{},a,Lt,r)).forEach((function(t){var e=x(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(r.push("The requested animation doesn't exist or has already been destroyed"),n=[]),r.length)throw new Error("Unable to create the animation due to the following errors: ".concat(r.join("\n")));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,"*")}))}));var l=y(n.map((function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)})));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 a=w(e,"","","");return k(this._getPlayer(t),n,a,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var a=this._getPlayer(t);switch(n){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),zt=[],Nt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=n;var i,a=e&&e.hasOwnProperty("value");if(this.value=null!=(i=a?e.value:e)?i:null,a){var r=H(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return _createClass(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}(),Ut=new Vt("void"),Ht=function(){function t(e,n,i){_classCallCheck(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,Kt(n,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,n,i){var a,r=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"!=(a=n)&&"done"!=a)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var o=x(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);var l=x(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Kt(t,"ng-trigger"),Kt(t,"ng-trigger-"+e),l[e]=Ut),function(){r._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),r._triggers[e]||delete l[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,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this._getTrigger(e),o=new Gt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Kt(t,"ng-trigger"),Kt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],c=new Vt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s[e]=c,l||(l=Ut),"void"===c.value||l.value!==c.value){var u=x(this._engine.playersByElement,t,[]);u.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var d=r.matchTransition(l.value,c.value,t,c.params),h=!1;if(!d){if(!a)return;d=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(Kt(t,"ng-animate-queued"),o.onStart((function(){Xt(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 a=n.indexOf(o);a>=0&&n.splice(a,1)}})),this.players.push(o),u.push(o),o}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var a=0;a=0){for(var i=!1,a=n;a>=0;a--)if(this.driver.containsElement(this._namespaceList[a].hostElement,e)){this._namespaceList.splice(a+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),a=0;a=0&&this.collectedLeaveElements.splice(r,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),Kt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,i){if(Wt(e)){var a=t?this._fetchNamespace(t):null;if(a?a.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.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,a){return Wt(e)?this._fetchNamespace(t).listen(e,n,i,a):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,a){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,a)}},{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 y(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=Nt,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;E--)this._namespaceList[E].drainQueuedTransitions(e).forEach((function(t){var e=t.player,r=t.element;if(O.push(e),n.collectedEnterElements.length){var u=r.__ng_removed;if(u&&u.setForMove)return void e.destroy()}var h=!d||!n.driver.containsElement(d,r),m=w.get(r),p=f.get(r),g=n._buildInstruction(t,i,p,m,h);if(!g.errors||!g.errors.length)return h||t.isFallbackTransition?(e.onStart((function(){return Y(r,g.fromStyles)})),e.onDestroy((function(){return Q(r,g.toStyles)})),void a.push(e)):(g.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(r,g.timelines),o.push({instruction:g,player:e,element:r}),g.queriedElements.forEach((function(t){return x(s,t,[]).push(e)})),g.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),void g.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)}))})));D.push(g)}));if(D.length){var A=[];D.forEach((function(t){A.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return A.push("- ".concat(t,"\n"))}))})),O.forEach((function(t){return t.destroy()})),this.reportError(A)}var I=new Map,T=new Map;o.forEach((function(t){var e=t.element;i.has(e)&&(T.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))})),a.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){x(I,e,[]).push(t),t.destroy()}))}));var P=g.filter((function(t){return Jt(t,l,c)})),R=new Map;Yt(R,this.driver,b,c,"*").forEach((function(t){Jt(t,l,c)&&P.push(t)}));var M=new Map;m.forEach((function(t,e){Yt(M,n.driver,new Set(t),l,"!")})),P.forEach((function(t){var e=R.get(t),n=M.get(t);R.set(t,Object.assign(Object.assign({},e),n))}));var j=[],L=[],F={};o.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(u.has(e))return o.onDestroy((function(){return Q(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void a.push(o);var l=F;if(T.size>1){for(var c=e,d=[];c=c.parentNode;){var h=T.get(c);if(h){l=h;break}d.push(c)}d.forEach((function(t){return T.set(t,l)}))}var m=n._buildAnimation(o.namespaceId,s,I,r,M,R);if(o.setRealPlayer(m),l===F)j.push(o);else{var f=n.playersByElement.get(l);f&&f.length&&(o.parentPlayer=y(f)),a.push(o)}}else Y(e,s.fromStyles),o.onDestroy((function(){return Q(e,s.toStyles)})),L.push(o),u.has(e)&&a.push(o)})),L.forEach((function(t){var e=r.get(t.element);if(e&&e.length){var n=y(e);t.setRealPlayer(n)}})),a.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var z=0;z0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new g(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}(),Gt=function(){function t(e,n,i){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new g,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(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 k(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){x(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 Wt(t){return t&&1===t.nodeType}function Qt(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Yt(t,e,n,i,a){var r=[];n.forEach((function(t){return r.push(Qt(t))}));var o=[];i.forEach((function(n,i){var r={};n.forEach((function(t){var n=r[t]=e.computeStyle(i,t,a);n&&0!=n.length||(i.__ng_removed=Bt,o.push(i))})),t.set(i,r)}));var s=0;return n.forEach((function(t){return Qt(t,r[s++])})),o}function $t(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),a=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var r=a.get(e);if(r)return r;var o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),a.set(e,r),r}(t);1!==e&&n.get(e).push(t)})),n}function Kt(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Zt(t,e,n){y(n).onDone((function(){return t.processLeaveNode(e)}))}function Jt(t,e,n){var i=n.get(t);if(!i)return!1;var a=e.get(t);return a?i.forEach((function(t){return a.add(t)})):e.set(t,i),n.delete(t),!0}var te=function(){function t(e,n,i){var a=this;_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new qt(e,n,i),this._timelineEngine=new Ft(e,n,i),this._transitionEngine.onRemovalComplete=function(t,e){return a.onRemovalComplete(t,e)}}return _createClass(t,[{key:"registerTrigger",value:function(t,e,n,i,a){var r=t+"-"+i,o=this._triggerCache[r];if(!o){var s=[],l=ut(this._driver,a,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(t,e){return new Mt(t,e)}(i,l),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}},{key:"onRemove",value:function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,n,i){if("@"==n.charAt(0)){var a=_slicedToArray(S(n),2),r=a[0],o=a[1];this._timelineEngine.command(r,e,o,i)}else this._transitionEngine.trigger(t,e,n,i)}},{key:"listen",value:function(t,e,n,i,a){if("@"==n.charAt(0)){var r=_slicedToArray(S(n),2),o=r[0],s=r[1];return this._timelineEngine.listen(o,e,s,a)}return this._transitionEngine.listen(t,e,n,i,a)}},{key:"flush",value:function(){var t=arguments.length>0&&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 ee(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=ie(e[0]),e.length>1&&(i=ie(e[e.length-1]))):e&&(n=ie(e)),n||i?new ne(t,n,i):null}var ne=function(){var t=function(){function t(e,n,i){_classCallCheck(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var a=t.initialStylesByElement.get(e);a||t.initialStylesByElement.set(e,a={}),this._initialStyles=a}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(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&&(Y(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function ie(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(),ce(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,n=de(t,"").split(","),(i=le(n,e))>=0&&(n.splice(i,1),ue(t,"",n.join(","))))}}]),t}();function oe(t,e,n){ue(t,"PlayState",n,se(t,e))}function se(t,e){var n=de(t,"");return n.indexOf(",")>0?le(n.split(","),e):le([n],e)}function le(t,e){for(var n=0;n=0)return n;return-1}function ce(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ue(t,e,n,i){var a="animation"+e;if(null!=i){var r=t.style[a];if(r.length){var o=r.split(",");o[i]=n,n=o.join(",")}}t.style[a]=n}function de(t,e){return t.style["animation"+e]}var he=function(){function t(e,n,i,a,r,o,s,l){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=a,this._delay=r,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=a+r,this._buildStyler()}return _createClass(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 re(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]:rt(t.element,i))}))}this.currentSnapshot=e}}]),t}(),me=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this)).element=t,a._startingStyles={},a.__initialized=!1,a._styles=L(i),a}return _createClass(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]})),_get(_getPrototypeOf(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])})),_get(_getPrototypeOf(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,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(g),fe=function(){function t(){_classCallCheck(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return P(t)}},{key:"matchesElement",value:function(t,e){return R(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return j(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 L(t)}));var i="@keyframes ".concat(e," {\n"),a="";n.forEach((function(t){a=" ";var e=parseFloat(t.offset);i+="".concat(a).concat(100*e,"% {\n"),a+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(a,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(a).concat(e,": ").concat(n,";\n"))}})),i+="".concat(a,"}\n")})),i+="}\n";var r=document.createElement("style");return r.innerHTML=i,r}},{key:"animate",value:function(t,e,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=r.filter((function(t){return t instanceof he})),l={};nt(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return l[t]=e[t]}))}));var c=function(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}(e=it(t,e,l));if(0==n)return new me(t,c);var u="gen_css_kf_".concat(this._count++),d=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(d);var h=ee(t,e),m=new he(t,e,u,n,i,a,c,h);return m.onDestroy((function(){var t;(t=d).parentNode.removeChild(t)})),m}},{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}(),pe=function(){function t(e,n,i,a){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=a,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 _createClass(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]:rt(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}(),ge=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ve().toString()),this._cssKeyframesDriver=new fe}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return P(t)}},{key:"matchesElement",value:function(t,e){return R(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return j(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,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,a,r);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};a&&(s.easing=a);var l={},c=r.filter((function(t){return t instanceof pe}));nt(n,i)&&c.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return l[t]=e[t]}))}));var u=ee(t,e=it(t,e=e.map((function(t){return q(t,!1)})),l));return new pe(t,e,s,u)}}]),t}();function ve(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var be,ye=n("ofXK"),_e=((be=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:a.Y.None,styles:[],data:{animation:[]}}),r}return _createClass(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?c(t):t;return we(this._renderer,null,e,"register",[n]),new ke(e,this._renderer)}}]),n}(r)).\u0275fac=function(t){return new(t||be)(a.Mc(a.M),a.Mc(ye.e))},be.\u0275prov=a.uc({token:be,factory:be.\u0275fac}),be),ke=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this))._id=t,a._renderer=i,a}return _createClass(n,[{key:"create",value:function(t,e){return new Ce(this._id,t,e||{},this._renderer)}}]),n}(function(){return function t(){_classCallCheck(this,t)}}()),Ce=function(){function t(e,n,i,a){_classCallCheck(this,t),this.id=e,this.element=n,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(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?e-1:0),i=1;i1&&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(a){n=!0,i=!!a&&a||new Error(a)}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){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(je.a)),Ye=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=n}return _createClass(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}(),$e=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye.now;return _classCallCheck(this,n),(i=e.call(this,t,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():a()}))).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,t,e,i)}},{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}(Ye),Ke=new $e(Qe);function Xe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return function(n){return n.lift(new Ze(t,e))}}var Ze=function(){function t(e,n){_classCallCheck(this,t),this.dueTime=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Je(t,this.dueTime,this.scheduler))}}]),t}(),Je=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,t)).dueTime=i,r.scheduler=a,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(tn,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}(Ve.a);function tn(t){t.debouncedNext()}function en(t,e){return function(n){return n.lift(new nn(t,e))}}var nn=function(){function t(e,n){_classCallCheck(this,t),this.predicate=e,this.thisArg=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new an(t,this.predicate,this.thisArg))}}]),t}(),an=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,t)).predicate=i,r.thisArg=a,r.count=0,r}return _createClass(n,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}]),n}(Ve.a),rn=n("lJxs"),on=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),sn=n("HDdC"),ln=new sn.a((function(t){return t.complete()}));function cn(t){return t?function(t){return new sn.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):ln}function un(t){return function(e){return 0===t?cn():e.lift(new hn(t))}}var dn,hn=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new on}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new mn(t,this.total))}}]),t}(),mn=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).total=i,a.count=0,a}return _createClass(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}(Ve.a);function fn(t){return null!=t&&"false"!=="".concat(t)}function pn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function gn(t){return Array.isArray(t)?t:[t]}function vn(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function bn(t){return t instanceof a.q?t.nativeElement:t}try{dn="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(vM){dn=!1}var yn,_n,kn,Cn,wn,xn,Sn=((kn=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(ye.I)(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&&!dn)&&"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}).\u0275fac=function(t){return new(t||kn)(a.Mc(a.I,8))},kn.\u0275prov=Object(a.uc)({factory:function(){return new kn(Object(a.Mc)(a.I,8))},token:kn,providedIn:"root"}),kn),On=((_n=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:_n}),_n.\u0275inj=a.vc({factory:function(t){return new(t||_n)}}),_n),Dn=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function En(){if(yn)return yn;if("object"!=typeof document||!document)return yn=new Set(Dn);var t=document.createElement("input");return yn=new Set(Dn.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function An(t){return function(){if(null==Cn&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Cn=!0}}))}finally{Cn=Cn||!1}return Cn}()?t:!!t.capture}function In(){if("object"!=typeof document||!document)return 0;if(null==wn){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",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),wn=0,0===t.scrollLeft&&(t.scrollLeft=1,wn=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return wn}function Tn(t){if(function(){if(null==xn){var t="undefined"!=typeof document?document.head:null;xn=!(!t||!t.createShadowRoot&&!t.attachShadow)}return xn}()){var e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}var Pn,Rn,Mn,jn,Ln=((jn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}()).\u0275fac=function(t){return new(t||jn)},jn.\u0275prov=Object(a.uc)({factory:function(){return new jn},token:jn,providedIn:"root"}),jn),Fn=((Mn=function(){function t(e){_classCallCheck(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return _createClass(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=bn(t);return new sn.a((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 Me.a,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}()).\u0275fac=function(t){return new(t||Mn)(a.Mc(Ln))},Mn.\u0275prov=Object(a.uc)({factory:function(){return new Mn(Object(a.Mc)(Ln))},token:Mn,providedIn:"root"}),Mn),zn=((Rn=function(){function t(e,n,i){_classCallCheck(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new a.s,this._disabled=!1,this._currentSubscription=null}return _createClass(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(Xe(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=fn(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=pn(t),this._subscribe()}}]),t}()).\u0275fac=function(t){return new(t||Rn)(a.yc(Fn),a.yc(a.q),a.yc(a.F))},Rn.\u0275dir=a.tc({type:Rn,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Rn),Nn=((Pn=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Pn}),Pn.\u0275inj=a.vc({factory:function(t){return new(t||Pn)},providers:[Ln]}),Pn);function Bn(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Vn,Un,Hn=0,qn=new Map,Gn=null,Wn=((Vn=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),qn.set(e,{messageElement:e,referenceCount:0})):qn.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=qn.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}Gn&&0===Gn.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}}))}return _createClass(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(qe((function(e){return t._pressedLetters.push(e)})),Xe(e),en((function(){return t._pressedLetters.length>0})),Object(rn.a)((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;default:return void((i||Be(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 a.K?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),Yn=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Qn),$n=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._origin="program",t}return _createClass(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Qn),Kn=((Un=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(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(vM){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Zn(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var a=t.nodeName.toLowerCase(),r=Zn(t);if(t.hasAttribute("contenteditable"))return-1!==r;if("iframe"===a)return!1;if("audio"===a){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===a){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==a||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(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))&&t.tabIndex>=0}},{key:"isFocusable",value:function(t){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")||Xn(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}]),t}()).\u0275fac=function(t){return new(t||Un)(a.Mc(Sn))},Un.\u0275prov=Object(a.uc)({factory:function(){return new Un(Object(a.Mc)(Sn))},token:Un,providedIn:"root"}),Un);function Xn(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 Zn(t){if(!Xn(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Jn,ti=function(){function t(e,n,i,a){var r=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=a,this._hasAttached=!1,this.startAnchorListener=function(){return r.focusLastTabbableElement()},this.endAnchorListener=function(){return r.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(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}},{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(un(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}(),ei=((Jn=function(){function t(e,n,i){_classCallCheck(this,t),this._checker=e,this._ngZone=n,this._document=i}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new ti(t,this._checker,this._ngZone,this._document,e)}}]),t}()).\u0275fac=function(t){return new(t||Jn)(a.Mc(Kn),a.Mc(a.F),a.Mc(ye.e))},Jn.\u0275prov=Object(a.uc)({factory:function(){return new Jn(Object(a.Mc)(Kn),Object(a.Mc)(a.F),Object(a.Mc)(ye.e))},token:Jn,providedIn:"root"}),Jn);"undefined"!=typeof Element&∈var ni,ii,ai,ri=new a.v("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),oi=new a.v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),si=((ni=function(){function t(e,n,i,a){_classCallCheck(this,t),this._ngZone=n,this._defaultOptions=a,this._document=i,this._liveElement=e||this._createLiveElement()}return _createClass(t,[{key:"announce",value:function(t){for(var e,n,i,a=this,r=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),l=1;l1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Ne(null);var i=bn(t);if(this._elementInfo.has(i)){var a=this._elementInfo.get(i);return a.checkChildren=n,a.subject.asObservable()}var r={unlisten:function(){},checkChildren:n,subject:new Me.a};this._elementInfo.set(i,r),this._incrementMonitoredElementCount();var o=function(t){return e._onFocus(t,i)},s=function(t){return e._onBlur(t,i)};return this._ngZone.runOutsideAngular((function(){i.addEventListener("focus",o,!0),i.addEventListener("blur",s,!0)})),r.unlisten=function(){i.removeEventListener("focus",o,!0),i.removeEventListener("blur",s,!0)},r.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=bn(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}},{key:"focusVia",value:function(t,e,n){var i=bn(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:"_setClasses",value:function(t,e){this._elementInfo.get(t)&&(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=t.target;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===t.target)){var i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),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:"_incrementMonitoredElementCount",value:function(){var t=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,ci),e.addEventListener("mousedown",t._documentMousedownListener,ci),e.addEventListener("touchstart",t._documentTouchstartListener,ci),n.addEventListener("focus",t._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){if(!--this._monitoredElementCount){var t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,ci),t.removeEventListener("mousedown",this._documentMousedownListener,ci),t.removeEventListener("touchstart",this._documentTouchstartListener,ci),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}()).\u0275fac=function(t){return new(t||ai)(a.Mc(a.F),a.Mc(Sn),a.Mc(ye.e,8),a.Mc(li,8))},ai.\u0275prov=Object(a.uc)({factory:function(){return new ai(Object(a.Mc)(a.F),Object(a.Mc)(Sn),Object(a.Mc)(ye.e,8),Object(a.Mc)(li,8))},token:ai,providedIn:"root"}),ai),di=((ii=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new a.s,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return i.cdkFocusChange.emit(t)}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||ii)(a.yc(a.q),a.yc(ui))},ii.\u0275dir=a.tc({type:ii,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),ii);function hi(t){return 0===t.buttons}var mi,fi,pi,gi,vi,bi=((fi=function(){function t(e,n){_classCallCheck(this,t),this._platform=e,this._document=n}return _createClass(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.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){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}()).\u0275fac=function(t){return new(t||fi)(a.Mc(Sn),a.Mc(ye.e))},fi.\u0275prov=Object(a.uc)({factory:function(){return new fi(Object(a.Mc)(Sn),Object(a.Mc)(ye.e))},token:fi,providedIn:"root"}),fi),yi=((mi=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()}).\u0275mod=a.wc({type:mi}),mi.\u0275inj=a.vc({factory:function(t){return new(t||mi)(a.Mc(bi))},imports:[[On,Nn]]}),mi),_i=new a.v("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(a.db)(ye.e)}}),ki=((vi=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new a.s,e){var n=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}()).\u0275fac=function(t){return new(t||vi)(a.Mc(_i,8))},vi.\u0275prov=Object(a.uc)({factory:function(){return new vi(Object(a.Mc)(_i,8))},token:vi,providedIn:"root"}),vi),Ci=((gi=function(){function t(){_classCallCheck(this,t),this._dir="ltr",this._isInitialized=!1,this.change=new a.s}return _createClass(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}()).\u0275fac=function(t){return new(t||gi)},gi.\u0275dir=a.tc({type:gi,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[a.jc([{provide:ki,useExisting:gi}])]}),gi),wi=((pi=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:pi}),pi.\u0275inj=a.vc({factory:function(t){return new(t||pi)}}),pi),xi=new a.W("9.2.0"),Si=n("bHdf");function Oi(){return Object(Si.a)(1)}function Di(){return Oi()(Ne.apply(void 0,arguments))}function Ei(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return function(t){_inherits(i,t);var n=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var a=arguments.length,r=new Array(a),o=0;o0?n:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),Gi=new a.v("mat-date-formats");try{Ui="undefined"!=typeof Intl}catch(vM){Ui=!1}var Wi={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"]},Qi=Ki(31,(function(t){return String(t+1)})),Yi={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},$i=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ki(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(Ui){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($i.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return _get(_getPrototypeOf(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}(qi)).\u0275fac=function(t){return new(t||Zi)(a.Mc(Hi,8),a.Mc(Sn))},Zi.\u0275prov=a.uc({token:Zi,factory:Zi.\u0275fac}),Zi),ia=((Xi=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Xi}),Xi.\u0275inj=a.vc({factory:function(t){return new(t||Xi)},providers:[{provide:qi,useClass:na}],imports:[[On]]}),Xi),aa={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"}}},ra=((ea=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ea}),ea.\u0275inj=a.vc({factory:function(t){return new(t||ea)},providers:[{provide:Gi,useValue:aa}],imports:[[ia]]}),ea),oa=((ta=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}()).\u0275fac=function(t){return new(t||ta)},ta.\u0275prov=Object(a.uc)({factory:function(){return new ta},token:ta,providedIn:"root"}),ta),sa=((Ji=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ji)},Ji.\u0275dir=a.tc({type:Ji,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ji);function la(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(Ei(t)).subscribe((function(t){var i=t.length;ca(e,"".concat(n,"-2-line"),!1),ca(e,"".concat(n,"-3-line"),!1),ca(e,"".concat(n,"-multi-line"),!1),2===i||3===i?ca(e,"".concat(n,"-").concat(i,"-line"),!0):i>3&&ca(e,"".concat(n,"-multi-line"),!0)}))}function ca(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}var ua,da,ha,ma,fa,pa,ga,va=((ua=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ua}),ua.\u0275inj=a.vc({factory:function(t){return new(t||ua)},imports:[[Li],Li]}),ua),ba=function(){function t(e,n,i){_classCallCheck(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return _createClass(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),ya={enterDuration:450,exitDuration:400},_a=An({passive:!0}),ka=function(){function t(e,n,i,a){var r=this;_classCallCheck(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=function(t){var e=hi(t),n=r._lastTouchStartEvent&&Date.now()2&&void 0!==arguments[2]?arguments[2]:{},a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},ya),i.animation);i.centered&&(t=a.left+a.width/2,e=a.top+a.height/2);var o=i.radius||function(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),a=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+a*a)}(t,e,a),s=t-a.left,l=e-a.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-o,"px"),u.style.top="".concat(l-o,"px"),u.style.height="".concat(2*o,"px"),u.style.width="".concat(2*o,"px"),null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var d=new ba(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone((function(){var t=d===n._mostRecentTransientRipple;d.state=1,i.persistent||t&&n._isPointerDown||d.fadeOut()}),c),d}},{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({},ya),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=this,n=bn(t);n&&n!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){e._triggerEvents.forEach((function(t,e){n.addEventListener(e,t,_a)}))})),this._triggerElement=n)}},{key:"_runTimeoutOutsideZone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&this._triggerEvents.forEach((function(e,n){t._triggerElement.removeEventListener(n,e,_a)}))}}]),t}(),Ca=new a.v("mat-ripple-global-options"),wa=((fa=function(){function t(e,n,i,a,r){_classCallCheck(this,t),this._elementRef=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new ka(this,n,e,i),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return _createClass(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({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||fa)(a.yc(a.q),a.yc(a.F),a.yc(Sn),a.yc(Ca,8),a.yc(Te,8))},fa.\u0275dir=a.tc({type:fa,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("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"]}),fa),xa=((ma=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ma}),ma.\u0275inj=a.vc({factory:function(t){return new(t||ma)},imports:[[Li,On],Li]}),ma),Sa=((ha=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||ha)(a.yc(Te,8))},ha.\u0275cmp=a.sc({type:ha,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&a.oc("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}),ha),Oa=((da=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:da}),da.\u0275inj=a.vc({factory:function(t){return new(t||da)}}),da),Da=Fi((function t(){_classCallCheck(this,t)})),Ea=0,Aa=((pa=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-".concat(Ea++),t}return n}(Da)).\u0275fac=function(t){return Ia(t||pa)},pa.\u0275cmp=a.sc({type:pa,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(a.lc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),a.oc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[a.hc],ngContentSelectors:Ii,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(a.Zc(Ai),a.Dc(0,"label",0),a.vd(1),a.Yc(2),a.Cc(),a.Yc(3,1)),2&t&&(a.ad("id",e._labelId),a.kc(1),a.xd("",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}),pa),Ia=a.Fc(Aa),Ta=0,Pa=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=n},Ra=new a.v("MAT_OPTION_PARENT_COMPONENT"),Ma=((ga=function(){function t(e,n,i,r){_classCallCheck(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(Ta++),this.onSelectionChange=new a.s,this._stateChanges=new Me.a}return _createClass(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||Be(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 Pa(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=fn(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}()).\u0275fac=function(t){return new(t||ga)(a.yc(a.q),a.yc(a.j),a.yc(Ra,8),a.yc(Aa,8))},ga.\u0275cmp=a.sc({type:ga,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&a.Qc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(a.Gc("id",e.id),a.lc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),a.oc("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Ri,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&&(a.Zc(),a.td(0,Ti,1,2,"mat-pseudo-checkbox",0),a.Dc(1,"span",1),a.Yc(2),a.Cc(),a.zc(3,"div",2)),2&t&&(a.ad("ngIf",e.multiple),a.kc(3),a.ad("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ye.t,wa,Sa],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}),ga);function ja(t,e,n){if(n.length){for(var i=e.toArray(),a=n.toArray(),r=0,o=0;on+i?Math.max(0,a-i+e):n}var Fa,za,Na,Ba,Va,Ua=((Fa=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Fa}),Fa.\u0275inj=a.vc({factory:function(t){return new(t||Fa)},imports:[[xa,ye.c,Oa]]}),Fa),Ha=new a.v("mat-label-global-options"),qa=["mat-button",""],Ga=["*"],Wa=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Qa=zi(Fi(Ni((function t(e){_classCallCheck(this,t),this._elementRef=e})))),Ya=((Ba=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;_classCallCheck(this,n),(r=e.call(this,t))._focusMonitor=i,r._animationMode=a,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(Wa);try{for(s.s();!(o=s.n()).done;){var l=o.value;r._hasHostAttributes(l)&&r._getHostElement().classList.add(l)}}catch(c){s.e(c)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),r._focusMonitor.monitor(r._elementRef,!0),r.isRoundButton&&(r.color="accent"),r}return _createClass(n,[{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;i*,.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"],encapsulation:2,changeDetection:0}),Ba),$a=((Na=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){return _classCallCheck(this,n),e.call(this,i,t,a)}return _createClass(n,[{key:"_haltDisabledEvents",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}]),n}(Ya)).\u0275fac=function(t){return new(t||Na)(a.yc(ui),a.yc(a.q),a.yc(Te,8))},Na.\u0275cmp=a.sc({type:Na,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&a.Qc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(a.lc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),a.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[a.hc],attrs:qa,ngContentSelectors:Ga,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(a.Zc(),a.Dc(0,"span",0),a.Yc(1),a.Cc(),a.zc(2,"div",1),a.zc(3,"div",2)),2&t&&(a.kc(2),a.oc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),a.ad("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[wa],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .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[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-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[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[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[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"],encapsulation:2,changeDetection:0}),Na),Ka=((za=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:za}),za.\u0275inj=a.vc({factory:function(t){return new(t||za)},imports:[[xa,Li],Li]}),za),Xa=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this._multiple=n,this._emitChanges=a,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Me.a,i&&i.length&&(n?i.forEach((function(t){return e._markSelected(t)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(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}(),Za=((Va=function(){function t(){_classCallCheck(this,t),this._listeners=[]}return _createClass(t,[{key:"notify",value:function(t,e){var n,i=_createForOfIteratorHelper(this._listeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(t,e)}catch(a){i.e(a)}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}()).\u0275fac=function(t){return new(t||Va)},Va.\u0275prov=Object(a.uc)({factory:function(){return new Va},token:Va,providedIn:"root"}),Va),Ja=n("DH7j"),tr=n("XoHu"),er=n("Cfvw");function nr(){for(var t=arguments.length,e=new Array(t),n=0;nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return xr(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return xr(t.value)||Dr.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(xr(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}: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(xr(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(Ar);return 0==e.length?null:function(t){return Tr(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(Ar);return 0==e.length?null:function(t){return nr(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(Ir)).pipe(Object(rn.a)(Tr))}}}]),t}();function Ar(t){return null!=t}function Ir(t){var e=Object(a.Nb)(t)?Object(er.a)(t):t;if(!Object(a.Mb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Tr(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function Pr(t){return t.validate?function(e){return t.validate(e)}:t}function Rr(t){return t.validate?function(e){return t.validate(e)}:t}var Mr,jr,Lr,Fr,zr={provide:lr,useExisting:Object(a.cb)((function(){return Nr})),multi:!0},Nr=((Mr=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":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}()).\u0275fac=function(t){return new(t||Mr)(a.yc(a.L),a.yc(a.q))},Mr.\u0275dir=a.tc({type:Mr,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&a.Qc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[a.jc([zr])]}),Mr),Br={provide:lr,useExisting:Object(a.cb)((function(){return Ur})),multi:!0},Vr=((Lr=function(){function t(){_classCallCheck(this,t),this._accessors=[]}return _createClass(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=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}()).\u0275fac=function(t){return new(t||Lr)},Lr.\u0275prov=a.uc({token:Lr,factory:Lr.\u0275fac}),Lr),Ur=((jr=function(){function t(e,n,i,a){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._registry=i,this._injector=a,this.onChange=function(){},this.onTouched=function(){}}return _createClass(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(_r),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}()).\u0275fac=function(t){return new(t||jr)(a.yc(a.L),a.yc(a.q),a.yc(Vr),a.yc(a.w))},jr.\u0275dir=a.tc({type:jr,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&a.Qc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[a.jc([Br])]}),jr),Hr={provide:lr,useExisting:Object(a.cb)((function(){return qr})),multi:!0},qr=((Fr=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(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}()).\u0275fac=function(t){return new(t||Fr)(a.yc(a.L),a.yc(a.q))},Fr.\u0275dir=a.tc({type:Fr,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&a.Qc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[a.jc([Hr])]}),Fr),Gr='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Wr='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Qr='\n
\n
\n \n
\n
',Yr=function(){function t(){_classCallCheck(this,t)}return _createClass(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(Gr))}},{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(Wr,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(Qr))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(Gr))}},{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(Wr))}},{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 \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 Angular v7.\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}(),$r={provide:lr,useExisting:Object(a.cb)((function(){return Jr})),multi:!0};function Kr(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var Xr,Zr,Jr=((Zr=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=a.Ob}return _createClass(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=Kr(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(n.hasOwnProperty("selectedOptions"))for(var a=n.selectedOptions,r=0;r1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function fo(t){return null!=t?Er.compose(t.map(Pr)):null}function po(t){return null!=t?Er.composeAsync(t.map(Rr)):null}function go(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(a.Ob)(e,n.currentValue)}var vo=[ur,qr,Nr,Jr,ro,Ur];function bo(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 yo(t,e){if(!e)return null;Array.isArray(e)||mo(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,a=void 0;return e.forEach((function(e){var r;e.constructor===mr?n=e:(r=e,vo.some((function(t){return r.constructor===t}))?(i&&mo(t,"More than one built-in value accessor matches form control with"),i=e):(a&&mo(t,"More than one custom value accessor matches form control with"),a=e))})),a||i||n||(mo(t,"No valid value accessor for form control with"),null)}function _o(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function ko(t,e,n,i){Object(a.eb)()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(Yr.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function Co(t){var e=xo(t)?t.validators:t;return Array.isArray(e)?fo(e):e||null}function wo(t,e){var n=xo(e)?e.asyncValidators:t;return Array.isArray(n)?po(n):n||null}function xo(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var So,Oo,Do,Eo,Ao,Io,To,Po,Ro,Mo=function(){function t(e,n){_classCallCheck(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(t,[{key:"setValidators",value:function(t){this.validator=Co(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=wo(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=Ir(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 Lo?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Fo&&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 a.s,this.statusChanges=new a.s}},{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){xo(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}(),jo=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(t=e.call(this,Co(a),wo(r,a)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(a),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _createClass(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}(Mo),Lo=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,Co(i),wo(a,i))).controls=t,r._initObservables(),r._setUpdateStrategy(i),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(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 jo?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){var e=this,n=!1;return this._forEachChild((function(i,a){n=n||e.contains(a)&&t(i)})),n}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},(function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e}))}},{key:"_reduceChildren",value:function(t,e){var n=t;return this._forEachChild((function(t,i){n=e(n,t,i)})),n}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t0||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}(Mo),Fo=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,Co(i),wo(a,i))).controls=t,r._initObservables(),r._setUpdateStrategy(i),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(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 jo?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=_createForOfIteratorHelper(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}(Mo),zo={provide:pr,useExisting:Object(a.cb)((function(){return Bo}))},No=Promise.resolve(null),Bo=((Oo=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new a.s,r.form=new Lo({},fo(t),po(i)),r}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;No.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),lo(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;No.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),_o(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;No.then((function(){var n=e._findContainer(t.path),i=new Lo({});uo(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;No.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;No.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,bo(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){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}(pr)).\u0275fac=function(t){return new(t||Oo)(a.yc(Sr,10),a.yc(Or,10))},Oo.\u0275dir=a.tc({type:Oo,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&a.Qc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.jc([zo]),a.hc]}),Oo),Vo=((So=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(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 so(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 fo(this._validators)}},{key:"asyncValidator",get:function(){return po(this._asyncValidators)}}]),n}(pr)).\u0275fac=function(t){return Uo(t||So)},So.\u0275dir=a.tc({type:So,features:[a.hc]}),So),Uo=a.Fc(Vo),Ho=function(){function t(){_classCallCheck(this,t)}return _createClass(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(Gr,'\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 \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(Wr,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(Qr))}},{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(Wr,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(Qr))}}]),t}(),qo={provide:pr,useExisting:Object(a.cb)((function(){return Go}))},Go=((Do=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this))._parent=t,r._validators=i,r._asyncValidators=a,r}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof Bo||Ho.modelGroupParentException()}}]),n}(Vo)).\u0275fac=function(t){return new(t||Do)(a.yc(pr,5),a.yc(Sr,10),a.yc(Or,10))},Do.\u0275dir=a.tc({type:Do,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a.jc([qo]),a.hc]}),Do),Wo={provide:_r,useExisting:Object(a.cb)((function(){return Yo}))},Qo=Promise.resolve(null),Yo=((Ao=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var s;return _classCallCheck(this,n),(s=e.call(this)).control=new jo,s._registered=!1,s.update=new a.s,s._parent=t,s._rawValidators=i||[],s._rawAsyncValidators=r||[],s.valueAccessor=yo(_assertThisInitialized(s),o),s}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),go(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(){lo(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 Go)&&this._parent instanceof Vo?Ho.formGroupNameException():this._parent instanceof Go||this._parent instanceof Bo||Ho.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ho.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;Qo.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;Qo.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?so(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return fo(this._rawValidators)}},{key:"asyncValidator",get:function(){return po(this._rawAsyncValidators)}}]),n}(_r)).\u0275fac=function(t){return new(t||Ao)(a.yc(pr,9),a.yc(Sr,10),a.yc(Or,10),a.yc(lr,10))},Ao.\u0275dir=a.tc({type:Ao,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a.jc([Wo]),a.hc,a.ic]}),Ao),$o=((Eo=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Eo)},Eo.\u0275dir=a.tc({type:Eo,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Eo),Ko=new a.v("NgModelWithFormControlWarning"),Xo={provide:_r,useExisting:Object(a.cb)((function(){return Zo}))},Zo=((Io=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var s;return _classCallCheck(this,n),(s=e.call(this))._ngModelWarningConfig=o,s.update=new a.s,s._ngModelWarningSent=!1,s._rawValidators=t||[],s._rawAsyncValidators=i||[],s.valueAccessor=yo(_assertThisInitialized(s),r),s}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(lo(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),go(t,this.viewModel)&&(ko("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){Yr.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return fo(this._rawValidators)}},{key:"asyncValidator",get:function(){return po(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(_r)).\u0275fac=function(t){return new(t||Io)(a.yc(Sr,10),a.yc(Or,10),a.yc(lr,10),a.yc(Ko,8))},Io.\u0275dir=a.tc({type:Io,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.jc([Xo]),a.hc,a.ic]}),Io._ngModelWarningSentOnce=!1,Io),Jo={provide:pr,useExisting:Object(a.cb)((function(){return ts}))},ts=((To=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var r;return _classCallCheck(this,n),(r=e.call(this))._validators=t,r._asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new a.s,r}return _createClass(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 lo(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){_o(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);uo(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);uo(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,bo(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){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 ho(e)})),e.valueAccessor.registerOnTouched((function(){return ho(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&&lo(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=fo(this._validators);this.form.validator=Er.compose([this.form.validator,t]);var e=po(this._asyncValidators);this.form.asyncValidator=Er.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||Yr.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(pr)).\u0275fac=function(t){return new(t||To)(a.yc(Sr,10),a.yc(Or,10))},To.\u0275dir=a.tc({type:To,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&a.Qc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.jc([Jo]),a.hc,a.ic]}),To),es={provide:pr,useExisting:Object(a.cb)((function(){return ns}))},ns=((Po=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this))._parent=t,r._validators=i,r._asyncValidators=a,r}return _createClass(n,[{key:"_checkParentType",value:function(){rs(this._parent)&&Yr.groupParentException()}}]),n}(Vo)).\u0275fac=function(t){return new(t||Po)(a.yc(pr,13),a.yc(Sr,10),a.yc(Or,10))},Po.\u0275dir=a.tc({type:Po,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a.jc([es]),a.hc]}),Po),is={provide:pr,useExisting:Object(a.cb)((function(){return as}))},as=((Ro=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this))._parent=t,r._validators=i,r._asyncValidators=a,r}return _createClass(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(){rs(this._parent)&&Yr.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 so(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return fo(this._validators)}},{key:"asyncValidator",get:function(){return po(this._asyncValidators)}}]),n}(pr)).\u0275fac=function(t){return new(t||Ro)(a.yc(pr,13),a.yc(Sr,10),a.yc(Or,10))},Ro.\u0275dir=a.tc({type:Ro,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a.jc([is]),a.hc]}),Ro);function rs(t){return!(t instanceof ns||t instanceof ts||t instanceof as)}var os,ss,ls,cs,us,ds,hs,ms,fs,ps,gs,vs,bs,ys,_s,ks,Cs,ws,xs,Ss,Os,Ds,Es,As,Is,Ts,Ps,Rs,Ms,js,Ls,Fs,zs,Ns={provide:_r,useExisting:Object(a.cb)((function(){return Bs}))},Bs=((os=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s){var l;return _classCallCheck(this,n),(l=e.call(this))._ngModelWarningConfig=s,l._added=!1,l.update=new a.s,l._ngModelWarningSent=!1,l._parent=t,l._rawValidators=i||[],l._rawAsyncValidators=r||[],l.valueAccessor=yo(_assertThisInitialized(l),o),l}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),go(t,this.viewModel)&&(ko("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 ns)&&this._parent instanceof Vo?Yr.ngModelGroupException():this._parent instanceof ns||this._parent instanceof ts||this._parent instanceof as||Yr.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){Yr.disabledAttrWarning()}},{key:"path",get:function(){return so(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 fo(this._rawValidators)}},{key:"asyncValidator",get:function(){return po(this._rawAsyncValidators)}}]),n}(_r)).\u0275fac=function(t){return new(t||os)(a.yc(pr,13),a.yc(Sr,10),a.yc(Or,10),a.yc(lr,10),a.yc(Ko,8))},os.\u0275dir=a.tc({type:os,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.jc([Ns]),a.hc,a.ic]}),os._ngModelWarningSentOnce=!1,os),Vs={provide:Sr,useExisting:Object(a.cb)((function(){return Hs})),multi:!0},Us={provide:Sr,useExisting:Object(a.cb)((function(){return qs})),multi:!0},Hs=((ls=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this.required?Er.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}()).\u0275fac=function(t){return new(t||ls)},ls.\u0275dir=a.tc({type:ls,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("required",e.required?"":null)},inputs:{required:"required"},features:[a.jc([Vs])]}),ls),qs=((ss=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(t){return this.required?Er.requiredTrue(t):null}}]),n}(Hs)).\u0275fac=function(t){return Gs(t||ss)},ss.\u0275dir=a.tc({type:ss,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("required",e.required?"":null)},features:[a.jc([Us]),a.hc]}),ss),Gs=a.Fc(qs),Ws={provide:Sr,useExisting:Object(a.cb)((function(){return Qs})),multi:!0},Qs=((cs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this._enabled?Er.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}()).\u0275fac=function(t){return new(t||cs)},cs.\u0275dir=a.tc({type:cs,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a.jc([Ws])]}),cs),Ys={provide:Sr,useExisting:Object(a.cb)((function(){return $s})),multi:!0},$s=((us=function(){function t(){_classCallCheck(this,t)}return _createClass(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=Er.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}()).\u0275fac=function(t){return new(t||us)},us.\u0275dir=a.tc({type:us,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[a.jc([Ys]),a.ic]}),us),Ks={provide:Sr,useExisting:Object(a.cb)((function(){return Xs})),multi:!0},Xs=((ds=function(){function t(){_classCallCheck(this,t)}return _createClass(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=Er.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}()).\u0275fac=function(t){return new(t||ds)},ds.\u0275dir=a.tc({type:ds,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a.jc([Ks]),a.ic]}),ds),Zs={provide:Sr,useExisting:Object(a.cb)((function(){return Js})),multi:!0},Js=((gs=function(){function t(){_classCallCheck(this,t)}return _createClass(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=Er.pattern(this.pattern)}}]),t}()).\u0275fac=function(t){return new(t||gs)},gs.\u0275dir=a.tc({type:gs,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[a.jc([Zs]),a.ic]}),gs),tl=((ps=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ps}),ps.\u0275inj=a.vc({factory:function(t){return new(t||ps)}}),ps),el=((fs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),i=null,a=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,a=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,a=null!=e.asyncValidator?e.asyncValidator:null)),new Lo(n,{asyncValidators:a,updateOn:r,validators:i})}},{key:"control",value:function(t,e,n){return new jo(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,a=t.map((function(t){return i._createControl(t)}));return new Fo(a,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 jo||t instanceof Lo||t instanceof Fo?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}()).\u0275fac=function(t){return new(t||fs)},fs.\u0275prov=a.uc({token:fs,factory:fs.\u0275fac}),fs),nl=((ms=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ms}),ms.\u0275inj=a.vc({factory:function(t){return new(t||ms)},providers:[Vr],imports:[tl]}),ms),il=((hs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:Ko,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}()).\u0275mod=a.wc({type:hs}),hs.\u0275inj=a.vc({factory:function(t){return new(t||hs)},providers:[el,Vr],imports:[tl]}),hs),al=["button"],rl=["*"],ol=new a.v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),sl={provide:lr,useExisting:Object(a.cb)((function(){return dl})),multi:!0},ll=function t(){_classCallCheck(this,t)},cl=0,ul=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},dl=((vs=function(){function t(e,n){_classCallCheck(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(cl++),this.valueChange=new a.s,this.change=new a.s,this.appearance=n&&n.appearance?n.appearance:"standard"}return _createClass(t,[{key:"ngOnInit",value:function(){this._selectionModel=new Xa(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var t;(t=this._selectionModel).select.apply(t,_toConsumableArray(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 ul(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],a=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):a=!0,a?Promise.resolve((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=fn(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=fn(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fn(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))}}]),t}()).\u0275fac=function(t){return new(t||vs)(a.yc(a.j),a.yc(ol,8))},vs.\u0275dir=a.tc({type:vs,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,ml,!0),2&t&&a.gd(i=a.Rc())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(a.lc("aria-disabled",e.disabled),a.oc("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:[a.jc([sl,{provide:ll,useExisting:vs}])]}),vs),hl=Ni((function t(){_classCallCheck(this,t)})),ml=((ys=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s,l){var c;_classCallCheck(this,n),(c=e.call(this))._changeDetectorRef=i,c._elementRef=r,c._focusMonitor=o,c._isSingleSelector=!1,c._checked=!1,c.ariaLabelledby=null,c._disabled=!1,c.change=new a.s;var u=Number(s);return c.tabIndex=u||0===u?u:null,c.buttonToggleGroup=t,c.appearance=l&&l.appearance?l.appearance:"standard",c}return _createClass(n,[{key:"ngOnInit",value:function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-".concat(cl++),this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),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 ul(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=fn(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=fn(t)}}]),n}(hl)).\u0275fac=function(t){return new(t||ys)(a.yc(dl,8),a.yc(a.j),a.yc(a.q),a.yc(ui),a.Nc("tabindex"),a.yc(ol,8))},ys.\u0275cmp=a.sc({type:ys,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&a.zd(al,!0),2&t&&a.gd(n=a.Rc())&&(e._buttonElement=n.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&a.Qc("focus",(function(){return e.focus()})),2&t&&(a.lc("tabindex",-1)("id",e.id)("name",null),a.oc("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:[a.hc],ngContentSelectors:rl,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&&(a.Zc(),a.Dc(0,"button",0,1),a.Qc("click",(function(){return e._onButtonClick()})),a.Dc(2,"div",2),a.Yc(3),a.Cc(),a.Cc(),a.zc(4,"div",3),a.zc(5,"div",4)),2&t){var n=a.hd(1);a.ad("id",e.buttonId)("disabled",e.disabled||null),a.lc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),a.kc(5),a.ad("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[wa],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{line-height:48px;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 48px}.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}),ys),fl=((bs=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:bs}),bs.\u0275inj=a.vc({factory:function(t){return new(t||bs)},imports:[[Li,xa],Li]}),bs),pl=["*",[["mat-card-footer"]]],gl=["*","mat-card-footer"],vl=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],bl=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],yl=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],_l=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],kl=((Ms=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ms)},Ms.\u0275dir=a.tc({type:Ms,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Ms),Cl=((Rs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Rs)},Rs.\u0275dir=a.tc({type:Rs,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Rs),wl=((Ps=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ps)},Ps.\u0275dir=a.tc({type:Ps,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Ps),xl=((Ts=function t(){_classCallCheck(this,t),this.align="start"}).\u0275fac=function(t){return new(t||Ts)},Ts.\u0275dir=a.tc({type:Ts,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Ts),Sl=((Is=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Is)},Is.\u0275dir=a.tc({type:Is,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),Is),Ol=((As=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||As)},As.\u0275dir=a.tc({type:As,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),As),Dl=((Es=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Es)},Es.\u0275dir=a.tc({type:Es,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Es),El=((Ds=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ds)},Ds.\u0275dir=a.tc({type:Ds,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Ds),Al=((Os=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Os)},Os.\u0275dir=a.tc({type:Os,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),Os),Il=((Ss=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ss)},Ss.\u0275dir=a.tc({type:Ss,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),Ss),Tl=((xs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||xs)},xs.\u0275dir=a.tc({type:xs,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),xs),Pl=((ws=function t(e){_classCallCheck(this,t),this._animationMode=e}).\u0275fac=function(t){return new(t||ws)(a.yc(Te,8))},ws.\u0275cmp=a.sc({type:ws,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:gl,decls:2,vars:0,template:function(t,e){1&t&&(a.Zc(pl),a.Yc(0),a.Yc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),ws),Rl=((Cs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Cs)},Cs.\u0275cmp=a.sc({type:Cs,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:bl,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(a.Zc(vl),a.Yc(0),a.Dc(1,"div",0),a.Yc(2,1),a.Cc(),a.Yc(3,2))},encapsulation:2,changeDetection:0}),Cs),Ml=((ks=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ks)},ks.\u0275cmp=a.sc({type:ks,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:_l,decls:4,vars:0,template:function(t,e){1&t&&(a.Zc(yl),a.Dc(0,"div"),a.Yc(1),a.Cc(),a.Yc(2,1),a.Yc(3,2))},encapsulation:2,changeDetection:0}),ks),jl=((_s=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:_s}),_s.\u0275inj=a.vc({factory:function(t){return new(t||_s)},imports:[[Li],Li]}),_s),Ll=["input"],Fl=function(){return{enterDuration:150}},zl=["*"],Nl=new a.v("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),Bl=new a.v("mat-checkbox-click-action"),Vl=0,Ul={provide:lr,useExisting:Object(a.cb)((function(){return Gl})),multi:!0},Hl=function t(){_classCallCheck(this,t)},ql=Bi(zi(Ni(Fi((function t(e){_classCallCheck(this,t),this._elementRef=e}))))),Gl=((js=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s,l,c,u){var d;return _classCallCheck(this,n),(d=e.call(this,t))._changeDetectorRef=i,d._focusMonitor=r,d._ngZone=o,d._clickAction=l,d._animationMode=c,d._options=u,d.ariaLabel="",d.ariaLabelledby=null,d._uniqueId="mat-checkbox-".concat(++Vl),d.id=d._uniqueId,d.labelPosition="after",d.name=null,d.change=new a.s,d.indeterminateChange=new a.s,d._onTouched=function(){},d._currentAnimationClass="",d._currentCheckState=0,d._controlValueAccessorChangeFn=function(){},d._checked=!1,d._disabled=!1,d._indeterminate=!1,d._options=d._options||{},d._options.color&&(d.color=d._options.color),d.tabIndex=parseInt(s)||0,d._focusMonitor.monitor(t,!0).subscribe((function(t){t||Promise.resolve().then((function(){d._onTouched(),i.markForCheck()}))})),d._clickAction=d._clickAction||d._options.clickAction,d}return _createClass(n,[{key:"ngAfterViewInit",value:function(){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 Hl;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=fn(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=fn(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=fn(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(ql)).\u0275fac=function(t){return new(t||js)(a.yc(a.q),a.yc(a.j),a.yc(ui),a.yc(a.F),a.Nc("tabindex"),a.yc(Bl,8),a.yc(Te,8),a.yc(Nl,8))},js.\u0275cmp=a.sc({type:js,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(a.zd(Ll,!0),a.zd(wa,!0)),2&t&&(a.gd(n=a.Rc())&&(e._inputElement=n.first),a.gd(n=a.Rc())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(a.Gc("id",e.id),a.lc("tabindex",null),a.oc("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",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a.jc([Ul]),a.hc],ngContentSelectors:zl,decls:17,vars:19,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&&(a.Zc(),a.Dc(0,"label",0,1),a.Dc(2,"div",2),a.Dc(3,"input",3,4),a.Qc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),a.Cc(),a.Dc(5,"div",5),a.zc(6,"div",6),a.Cc(),a.zc(7,"div",7),a.Dc(8,"div",8),a.Tc(),a.Dc(9,"svg",9),a.zc(10,"path",10),a.Cc(),a.Sc(),a.zc(11,"div",11),a.Cc(),a.Cc(),a.Dc(12,"span",12,13),a.Qc("cdkObserveContent",(function(){return e._onLabelTextChange()})),a.Dc(14,"span",14),a.vd(15,"\xa0"),a.Cc(),a.Yc(16),a.Cc(),a.Cc()),2&t){var n=a.hd(1),i=a.hd(13);a.lc("for",e.inputId),a.kc(2),a.oc("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),a.kc(1),a.ad("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),a.lc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),a.kc(2),a.ad("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.cd(18,Fl))}},directives:[wa,zn],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}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .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}),js),Wl={provide:Sr,useExisting:Object(a.cb)((function(){return Ql})),multi:!0},Ql=((Ls=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(qs)).\u0275fac=function(t){return Yl(t||Ls)},Ls.\u0275dir=a.tc({type:Ls,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[a.jc([Wl]),a.hc]}),Ls),Yl=a.Fc(Ql),$l=((zs=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:zs}),zs.\u0275inj=a.vc({factory:function(t){return new(t||zs)}}),zs),Kl=((Fs=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Fs}),Fs.\u0275inj=a.vc({factory:function(t){return new(t||Fs)},imports:[[xa,Li,Nn,$l],Li,$l]}),Fs);function Xl(t){return new sn.a((function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(er.a)(n):cn()).subscribe(e)}))}var Zl=n("VRyK");function Jl(t,e,n,i){return Object(He.a)(n)&&(i=n,n=void 0),i?Jl(t,e,n).pipe(Object(rn.a)((function(t){return Object(Ja.a)(t)?i.apply(void 0,_toConsumableArray(t)):i(t)}))):new sn.a((function(i){!function t(e,n,i,a,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,r),o=function(){return s.removeEventListener(n,i,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,i),o=function(){return l.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,i),o=function(){return c.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,d=e.length;u1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var tc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).scheduler=t,a.work=i,a}return _createClass(n,[{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),n}(Qe),ec=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,a=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=oc(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,t,e,i);0===t.actions.length&&(sc(e),t.scheduled=void 0)}}]),n}(Qe),cc=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,a=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function bc(){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 vc(e)?i=Number(e)<1?1:Number(e):Object(Le.a)(e)&&(n=e),Object(Le.a)(n)||(n=Ke),new sn.a((function(e){var a=vc(t)?t:+t-n.now();return n.schedule(yc,a,{index:0,period:i,subscriber:e})}))}function yc(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 _c(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return e=function(){return bc(t,n)},function(t){return t.lift(new pc(e))}}function kc(t){return function(e){return e.lift(new Cc(t))}}var Cc=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var n=new wc(t),i=Object(fc.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),wc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this,t)).seenValue=!1,i}return _createClass(n,[{key:"notifyNext",value:function(t,e,n,i,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(mc.a),xc=n("51Dv");function Sc(t,e){return"function"==typeof e?function(n){return n.pipe(Sc((function(n,i){return Object(er.a)(t(n,i)).pipe(Object(rn.a)((function(t,a){return e(n,t,i,a)})))})))}:function(e){return e.lift(new Oc(t))}}var Oc=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Dc(t,this.project))}}]),t}(),Dc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).project=i,a.index=0,a}return _createClass(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,t,n)}},{key:"_innerSub",value:function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var a=new xc.a(this,e,n),r=this.destination;r.add(a),this.innerSubscription=Object(fc.a)(this,t,void 0,void 0,a),this.innerSubscription!==a&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,n,i,a){this.destination.next(e)}}]),n}(mc.a),Ec=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t,i)).scheduler=t,a.work=i,a}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,i):t.flush(this)}}]),n}(Qe),Ac=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}($e))(Ec);function Ic(t,e){return new sn.a(e?function(n){return e.schedule(Tc,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Tc(t){var e=t.error;t.subscriber.error(e)}var Pc,Rc,Mc,jc,Lc,Fc=((Pc=function(){function t(e,n,i){_classCallCheck(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return _createClass(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 Ne(this.value);case"E":return Ic(this.error);case"C":return cn()}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}()).completeNotification=new Pc("C"),Pc.undefinedValueNotification=new Pc("N",void 0),Pc),zc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(a=e.call(this,t)).scheduler=i,a.delay=r,a}return _createClass(n,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new Nc(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(Fc.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(Fc.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Fc.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),n}(Ve.a),Nc=function t(e,n){_classCallCheck(this,t),this.notification=e,this.destination=n},Bc=n("9ppp"),Vc=n("Ylt2"),Uc=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(t=e.call(this)).scheduler=r,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=i<1?1:i,t._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new Hc(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,r=i.length;if(this.closed)throw new Bc.a;if(this.isStopped||this.hasError?e=je.a.EMPTY:(this.observers.push(t),e=new Vc.a(this,t)),a&&t.add(t=new zc(t,a)),n)for(var o=0;oe&&(r=Math.max(r,a-e)),r>0&&i.splice(0,r),i}}]),n}(Me.a),Hc=function t(e,n){_classCallCheck(this,t),this.time=e,this.value=n},qc=((Lc=function(){function t(e,n,i){_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._scrolled=new Me.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(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 sn.a((function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(_c(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Ne()}},{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(en((function(t){return!t||n.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,a){e._scrollableContainsElement(a,t)&&n.push(a)})),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 Jl(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||Lc)(a.Mc(a.F),a.Mc(Sn),a.Mc(ye.e,8))},Lc.\u0275prov=Object(a.uc)({factory:function(){return new Lc(Object(a.Mc)(a.F),Object(a.Mc)(Sn),Object(a.Mc)(ye.e,8))},token:Lc,providedIn:"root"}),Lc),Gc=((jc=function(){function t(e,n,i,a){var r=this;_classCallCheck(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new Me.a,this._elementScrolled=new sn.a((function(t){return r.ngZone.runOutsideAngular((function(){return Jl(r.elementRef.nativeElement,"scroll").pipe(kc(r._destroyed)).subscribe(t)}))}))}return _createClass(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!=In()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==In()?t.left=t.right:1==In()&&(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==In()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==In()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||jc)(a.yc(a.q),a.yc(qc),a.yc(a.F),a.yc(ki,8))},jc.\u0275dir=a.tc({type:jc,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),jc),Wc=((Mc=function(){function t(e,n,i){var a=this;_classCallCheck(this,t),this._platform=e,this._document=i,n.runOutsideAngular((function(){var t=a._getWindow();a._change=e.isBrowser?Object(Zl.a)(Jl(t,"resize"),Jl(t,"orientationchange")):Ne(),a._invalidateCache=a.change().subscribe((function(){return a._updateViewportSize()}))}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{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(_c(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}()).\u0275fac=function(t){return new(t||Mc)(a.Mc(Sn),a.Mc(a.F),a.Mc(ye.e,8))},Mc.\u0275prov=Object(a.uc)({factory:function(){return new Mc(Object(a.Mc)(Sn),Object(a.Mc)(a.F),Object(a.Mc)(ye.e,8))},token:Mc,providedIn:"root"}),Mc),Qc=((Rc=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Rc}),Rc.\u0275inj=a.vc({factory:function(t){return new(t||Rc)},imports:[[wi,On],wi]}),Rc);function Yc(){throw Error("Host already has a portal attached")}var $c,Kc,Xc,Zc,Jc=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&Yc(),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}(),tu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this)).component=t,o.viewContainerRef=i,o.injector=a,o.componentFactoryResolver=r,o}return n}(Jc),eu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this)).templateRef=t,r.viewContainerRef=i,r.context=a,r}return _createClass(n,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(Jc),nu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).element=t instanceof a.q?t.nativeElement:t,i}return n}(Jc),iu=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(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()&&Yc(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof tu?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof eu?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof nu?(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}(),au=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o){var s;return _classCallCheck(this,n),(s=e.call(this)).outletElement=t,s._componentFactoryResolver=i,s._appRef=a,s._defaultInjector=r,s.attachDomPortal=function(t){if(!s._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 i=s._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),s.outletElement.appendChild(e),_get(_getPrototypeOf(n.prototype),"setDisposeFn",_assertThisInitialized(s)).call(_assertThisInitialized(s),(function(){i.parentNode&&i.parentNode.replaceChild(e,i)}))},s._document=o,s}return _createClass(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.detectChanges(),i.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=n.indexOf(i);-1!==t&&n.remove(t)})),i}},{key:"dispose",value:function(){_get(_getPrototypeOf(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}(iu),ru=((Xc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){return _classCallCheck(this,n),e.call(this,t,i)}return n}(eu)).\u0275fac=function(t){return new(t||Xc)(a.yc(a.U),a.yc(a.X))},Xc.\u0275dir=a.tc({type:Xc,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[a.hc]}),Xc),ou=((Kc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._componentFactoryResolver=t,o._viewContainerRef=i,o._isInitialized=!1,o.attached=new a.s,o.attachDomPortal=function(t){if(!o._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 i=o._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(o)),e.parentNode.insertBefore(i,e),o._getRootNode().appendChild(e),_get(_getPrototypeOf(n.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){i.parentNode&&i.parentNode.replaceChild(e,i)}))},o._document=r,o}return _createClass(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(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,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}},{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()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(iu)).\u0275fac=function(t){return new(t||Kc)(a.yc(a.n),a.yc(a.X),a.yc(ye.e))},Kc.\u0275dir=a.tc({type:Kc,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.hc]}),Kc),su=(($c=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(ou)).\u0275fac=function(t){return lu(t||$c)},$c.\u0275dir=a.tc({type:$c,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[a.jc([{provide:ou,useExisting:$c}]),a.hc]}),$c),lu=a.Fc(su),cu=((Zc=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Zc}),Zc.\u0275inj=a.vc({factory:function(t){return new(t||Zc)}}),Zc),uu=function(){function t(e,n){_classCallCheck(this,t),this._parentInjector=e,this._customTokens=n}return _createClass(t,[{key:"get",value:function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}]),t}(),du=function(){function t(e,n){_classCallCheck(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(t,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=vn(-this._previousScrollPosition.left),t.style.top=vn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",a=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=a}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}]),t}();function hu(){return Error("Scroll strategy has already been attached.")}var mu=function(){function t(e,n,i,a){var r=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=a,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw hu();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}(),fu=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function pu(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function gu(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var vu,bu=function(){function t(e,n,i,a){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=a,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw hu();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,a=n.height;pu(e,[{width:i,height:a,bottom:a,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}(),yu=((vu=function t(e,n,i,a){var r=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new fu},this.close=function(t){return new mu(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new du(r._viewportRuler,r._document)},this.reposition=function(t){return new bu(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=a}).\u0275fac=function(t){return new(t||vu)(a.Mc(qc),a.Mc(Wc),a.Mc(a.F),a.Mc(ye.e))},vu.\u0275prov=Object(a.uc)({factory:function(){return new vu(Object(a.Mc)(qc),Object(a.Mc)(Wc),Object(a.Mc)(a.F),Object(a.Mc)(ye.e))},token:vu,providedIn:"root"}),vu),_u=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new fu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}},this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),t}()).\u0275fac=function(t){return new(t||Su)(a.Mc(ye.e))},Su.\u0275prov=Object(a.uc)({factory:function(){return new Su(Object(a.Mc)(ye.e))},token:Su,providedIn:"root"}),Su),Eu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Au=((Ou=function(){function t(e,n){_classCallCheck(this,t),this._platform=n,this._document=e}return _createClass(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||Eu)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;nm&&(m=g,h=p)}}catch(v){f.e(v)}finally{f.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.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&&Ru(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,a=this._isRtl()?t.left:t.right;n="start"==e.originX?i:a}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,a;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,a="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+a}}},{key:"_getOverlayFit",value:function(t,e,n,i){var a=t.x,r=t.y,o=this._getOffset(i,"x"),s=this._getOffset(i,"y");o&&(a+=o),s&&(r+=s);var l=0-r,c=r+e.height-n.height,u=this._subtractOverflows(e.width,0-a,a+e.width-n.width),d=this._subtractOverflows(e.height,l,c),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:e.width*e.height===h,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:u==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,a=n.right-e.x,r=Mu(this._overlayRef.getConfig().minHeight),o=Mu(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=o&&o<=a;return(t.fitsInViewportVertically||null!=r&&r<=i)&&s}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,a,r=this._viewportRect,o=Math.max(t.x+e.width-r.right,0),s=Math.max(t.y+e.height-r.bottom,0),l=Math.max(r.top-n.top-t.y,0),c=Math.max(r.left-n.left-t.x,0);return i=e.width<=r.width?c||-o:t.xd&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-d/2)}if("end"===e.overlayX&&!c||"start"===e.overlayX&&c)s=l.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!c||"end"===e.overlayX&&c)o=t.x,r=l.right-t.x;else{var h=Math.min(l.right-t.x+l.left,t.x),m=this._lastBoundingBoxSize.width;r=2*h,o=t.x-h,r>m&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-m/2)}return{top:i,left:o,bottom:a,right:s,width:r,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 a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=vn(n.height),i.top=vn(n.top),i.bottom=vn(n.bottom),i.width=vn(n.width),i.left=vn(n.left),i.right=vn(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",a&&(i.maxHeight=vn(a)),r&&(i.maxWidth=vn(r))}this._lastBoundingBoxSize=n,Ru(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){Ru(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ru(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();Ru(n,this._getExactOverlayY(e,t,o)),Ru(n,this._getExactOverlayX(e,t,o))}else n.position="static";var s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),r.maxHeight&&(i?n.maxHeight=vn(r.maxHeight):a&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=vn(r.maxWidth):a&&(n.maxWidth="")),Ru(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},a=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n));var r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=r,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(a.y+this._overlayRect.height),"px"):i.top=vn(a.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(a.x+this._overlayRect.width),"px"):i.left=vn(a.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:gu(t,n),isOriginOutsideView:pu(t,n),isOverlayClipped:gu(e,n),isOverlayOutsideView:pu(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,a=n.height,r=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==a&&"100vh"!==a||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"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=l?"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}(),Uu=((Lu=function(){function t(e,n,i,a){_classCallCheck(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=a}return _createClass(t,[{key:"global",value:function(){return new Vu}},{key:"connectedTo",value:function(t,e,n){return new Bu(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Pu(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||Lu)(a.Mc(Wc),a.Mc(ye.e),a.Mc(Sn),a.Mc(Au))},Lu.\u0275prov=Object(a.uc)({factory:function(){return new Lu(Object(a.Mc)(Wc),Object(a.Mc)(ye.e),Object(a.Mc)(Sn),Object(a.Mc)(Au))},token:Lu,providedIn:"root"}),Lu),Hu=0,qu=((ju=function(){function t(e,n,i,a,r,o,s,l,c,u){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=l,this._directionality=c,this._location=u}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),a=new _u(t);return a.direction=a.direction||this._directionality.value,new Iu(i,e,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(Hu++),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(a.g)),new au(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}()).\u0275fac=function(t){return new(t||ju)(a.Mc(yu),a.Mc(Au),a.Mc(a.n),a.Mc(Uu),a.Mc(Du),a.Mc(a.w),a.Mc(a.F),a.Mc(ye.e),a.Mc(ki),a.Mc(ye.n,8))},ju.\u0275prov=a.uc({token:ju,factory:ju.\u0275fac}),ju),Gu=[{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"}],Wu=new a.v("cdk-connected-overlay-scroll-strategy"),Qu=((zu=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||zu)(a.yc(a.q))},zu.\u0275dir=a.tc({type:zu,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),zu),Yu=((Fu=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=je.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new a.s,this.positionChange=new a.s,this.attach=new a.s,this.detach=new a.s,this.overlayKeydown=new a.s,this._templatePortal=new eu(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{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=Gu),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||Be(e)||(e.preventDefault(),t._detachOverlay())}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new _u({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,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e}},{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.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.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=fn(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=fn(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=fn(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=fn(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=fn(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}()).\u0275fac=function(t){return new(t||Fu)(a.yc(qu),a.yc(a.U),a.yc(a.X),a.yc(Wu),a.yc(ki,8))},Fu.\u0275dir=a.tc({type:Fu,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"},exportAs:["cdkConnectedOverlay"],features:[a.ic]}),Fu),$u={provide:Wu,deps:[qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Ku=((Nu=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Nu}),Nu.\u0275inj=a.vc({factory:function(t){return new(t||Nu)},providers:[qu,$u],imports:[[wi,cu,Qc],Qc]}),Nu),Xu=["underline"],Zu=["connectionContainer"],Ju=["inputContainer"],td=["label"];function ed(t,e){1&t&&(a.Bc(0),a.Dc(1,"div",14),a.zc(2,"div",15),a.zc(3,"div",16),a.zc(4,"div",17),a.Cc(),a.Dc(5,"div",18),a.zc(6,"div",15),a.zc(7,"div",16),a.zc(8,"div",17),a.Cc(),a.Ac())}function nd(t,e){1&t&&(a.Dc(0,"div",19),a.Yc(1,1),a.Cc())}function id(t,e){if(1&t&&(a.Bc(0),a.Yc(1,2),a.Dc(2,"span"),a.vd(3),a.Cc(),a.Ac()),2&t){var n=a.Uc(2);a.kc(3),a.wd(n._control.placeholder)}}function ad(t,e){1&t&&a.Yc(0,3,["*ngSwitchCase","true"])}function rd(t,e){1&t&&(a.Dc(0,"span",23),a.vd(1," *"),a.Cc())}function od(t,e){if(1&t){var n=a.Ec();a.Dc(0,"label",20,21),a.Qc("cdkObserveContent",(function(){return a.ld(n),a.Uc().updateOutlineGap()})),a.td(2,id,4,1,"ng-container",12),a.td(3,ad,1,0,void 0,12),a.td(4,rd,2,0,"span",22),a.Cc()}if(2&t){var i=a.Uc();a.oc("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),a.ad("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),a.lc("for",i._control.id)("aria-owns",i._control.id),a.kc(2),a.ad("ngSwitchCase",!1),a.kc(1),a.ad("ngSwitchCase",!0),a.kc(1),a.ad("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function sd(t,e){1&t&&(a.Dc(0,"div",24),a.Yc(1,4),a.Cc())}function ld(t,e){if(1&t&&(a.Dc(0,"div",25,26),a.zc(2,"span",27),a.Cc()),2&t){var n=a.Uc();a.kc(2),a.oc("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function cd(t,e){if(1&t&&(a.Dc(0,"div"),a.Yc(1,5),a.Cc()),2&t){var n=a.Uc();a.ad("@transitionMessages",n._subscriptAnimationState)}}function ud(t,e){if(1&t&&(a.Dc(0,"div",31),a.vd(1),a.Cc()),2&t){var n=a.Uc(2);a.ad("id",n._hintLabelId),a.kc(1),a.wd(n.hintLabel)}}function dd(t,e){if(1&t&&(a.Dc(0,"div",28),a.td(1,ud,2,2,"div",29),a.Yc(2,6),a.zc(3,"div",30),a.Yc(4,7),a.Cc()),2&t){var n=a.Uc();a.ad("@transitionMessages",n._subscriptAnimationState),a.kc(1),a.ad("ngIf",n.hintLabel)}}var hd,md,fd=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pd=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],gd=0,vd=((hd=function t(){_classCallCheck(this,t),this.id="mat-error-".concat(gd++)}).\u0275fac=function(t){return new(t||hd)},hd.\u0275dir=a.tc({type:hd,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("id",e.id)},inputs:{id:"id"}}),hd),bd={transitionMessages:o("transitionMessages",[d("enter",u({opacity:1,transform:"translateY(0%)"})),h("void => enter",[u({opacity:0,transform:"translateY(-100%)"}),s("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},yd=((md=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||md)},md.\u0275dir=a.tc({type:md}),md);function _d(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var kd,Cd,wd,xd,Sd,Od,Dd,Ed=0,Ad=((Sd=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-".concat(Ed++)}).\u0275fac=function(t){return new(t||Sd)},Sd.\u0275dir=a.tc({type:Sd,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(a.lc("id",e.id)("align",null),a.oc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),Sd),Id=((xd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||xd)},xd.\u0275dir=a.tc({type:xd,selectors:[["mat-label"]]}),xd),Td=((wd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||wd)},wd.\u0275dir=a.tc({type:wd,selectors:[["mat-placeholder"]]}),wd),Pd=((Cd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Cd)},Cd.\u0275dir=a.tc({type:Cd,selectors:[["","matPrefix",""]]}),Cd),Rd=((kd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||kd)},kd.\u0275dir=a.tc({type:kd,selectors:[["","matSuffix",""]]}),kd),Md=0,jd=zi((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Ld=new a.v("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Fd=new a.v("MatFormField"),zd=((Dd=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o,s,l,c){var u;return _classCallCheck(this,n),(u=e.call(this,t))._elementRef=t,u._changeDetectorRef=i,u._dir=r,u._defaults=o,u._platform=s,u._ngZone=l,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new Me.a,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-".concat(Md++),u._labelId="mat-form-field-label-".concat(Md++),u._labelOptions=a||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==c,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return _createClass(n,[{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(Ei(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(kc(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(kc(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object(Zl.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Ei(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Ei(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(kc(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._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(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,Jl(this._label.nativeElement,"transitionend").pipe(un(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 _d("start");t=i}else if("end"===i.align){if(e)throw _d("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,a=i.querySelectorAll(".mat-form-field-outline-start"),r=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);var s,l=this._getStartEnd(o),c=this._getStartEnd(t.children[0].getBoundingClientRect()),u=0,d=_createForOfIteratorHelper(t.children);try{for(d.s();!(s=d.n()).done;)u+=s.value.offsetWidth}catch(f){d.e(f)}finally{d.f()}e=Math.abs(c-l)-5,n=u>0?.75*u+10:0}for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:Ke,i=(e=t)instanceof Date&&!isNaN(+e)?+t-n.now():Math.abs(t);return function(t){return t.lift(new Vd(i,n))}}var Vd=function(){function t(e,n){_classCallCheck(this,t),this.delay=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ud(t,this.delay,this.scheduler))}}]),t}(),Ud=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,t)).delay=i,r.scheduler=a,r.queue=[],r.active=!1,r.errored=!1,r}return _createClass(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 Hd(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Fc.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Fc.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,a=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(a);if(n.length>0){var r=Math.max(0,n[0].time-i.now());this.schedule(t,r)}else this.unsubscribe(),e.active=!1}}]),n}(Ve.a),Hd=function t(e,n){_classCallCheck(this,t),this.time=e,this.notification=n},qd=["panel"];function Gd(t,e){if(1&t&&(a.Dc(0,"div",0,1),a.Yc(2),a.Cc()),2&t){var n=a.Uc();a.ad("id",n.id)("ngClass",n._classList)}}var Wd,Qd,Yd,$d,Kd=["*"],Xd=0,Zd=function t(e,n){_classCallCheck(this,t),this.source=e,this.option=n},Jd=Ni((function t(){_classCallCheck(this,t)})),th=new a.v("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),eh=((Qd=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._changeDetectorRef=t,o._elementRef=i,o._activeOptionChanges=je.a.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new a.s,o.opened=new a.s,o.closed=new a.s,o.optionActivated=new a.s,o._classList={},o.id="mat-autocomplete-".concat(Xd++),o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Yn(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 Zd(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=fn(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}(Jd)).\u0275fac=function(t){return new(t||Qd)(a.yc(a.j),a.yc(a.q),a.yc(th))},Qd.\u0275cmp=a.sc({type:Qd,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Ma,!0),a.qc(n,Aa,!0)),2&t&&(a.gd(i=a.Rc())&&(e.options=i),a.gd(i=a.Rc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(a.rd(a.U,!0),a.zd(qd,!0)),2&t&&(a.gd(n=a.Rc())&&(e.template=n.first),a.gd(n=a.Rc())&&(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:[a.jc([{provide:Ra,useExisting:Qd}]),a.hc],ngContentSelectors:Kd,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(a.Zc(),a.td(0,Gd,3,2,"ng-template"))},directives:[ye.q],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}),Qd),nh=((Wd=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||Wd)(a.yc(a.q))},Wd.\u0275dir=a.tc({type:Wd,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),Wd),ih=new a.v("mat-autocomplete-scroll-strategy"),ah={provide:ih,deps:[qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},rh={provide:lr,useExisting:Object(a.cb)((function(){return oh})),multi:!0},oh=(($d=function(){function t(e,n,i,a,r,o,s,l,c,u){var d=this;_classCallCheck(this,t),this._element=e,this._overlay=n,this._viewContainerRef=i,this._zone=a,this._changeDetectorRef=r,this._dir=s,this._formField=l,this._document=c,this._viewportRuler=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=je.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Me.a,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=Xl((function(){return d.autocomplete&&d.autocomplete.options?Object(Zl.a).apply(void 0,_toConsumableArray(d.autocomplete.options.map((function(t){return t.onSelectionChange})))):d._zone.onStable.asObservable().pipe(un(1),Sc((function(){return d.optionSelections})))})),this._scrollStrategy=o}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&(this._zone.runOutsideAngular((function(){e.addEventListener("blur",t._windowBlurHandler)})),this._isInsideShadowRoot=!!Tn(this._element.nativeElement))}},{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 Object(Zl.a)(Jl(this._document,"click"),Jl(this._document,"touchend")).pipe(en((function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.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=ja(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=La(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.asObservable().pipe(un(1)),n=this.autocomplete.options.changes.pipe(qe((function(){return t._positionStrategy.reapplyLastPosition()})),Bd(0));return Object(Zl.a)(e,n).pipe(Sc((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})),un(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.");var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new eu(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._viewportRuler&&(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 _u({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"},i={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};e="above"===this.position?[i]:"below"===this.position?[n]:[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=fn(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return Object(Zl.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(en((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(en((function(){return t._overlayAttached}))):Ne()).pipe(Object(rn.a)((function(t){return t instanceof Pa?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}()).\u0275fac=function(t){return new(t||$d)(a.yc(a.q),a.yc(qu),a.yc(a.X),a.yc(a.F),a.yc(a.j),a.yc(ih),a.yc(ki,8),a.yc(Fd,9),a.yc(ye.e,8),a.yc(Wc))},$d.\u0275dir=a.tc({type:$d,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&a.Qc("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&&a.lc("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:[a.jc([rh]),a.ic]}),$d),sh=((Yd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Yd}),Yd.\u0275inj=a.vc({factory:function(t){return new(t||Yd)},providers:[ah],imports:[[Ua,Ku,Li,ye.c],Ua,Li]}),Yd);function lh(t,e){}var ch=function t(){_classCallCheck(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},uh={dialogContainer:o("dialogContainer",[d("void, exit",u({opacity:0,transform:"scale(0.7)"})),d("enter",u({transform:"none"})),h("* => enter",s("150ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"none",opacity:1}))),h("* => void, * => exit",s("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",u({opacity:0})))])};function dh(){throw Error("Attempting to attach dialog content after content is already attached")}var hh,mh,fh,ph,gh,vh,bh=((hh=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s){var l;return _classCallCheck(this,n),(l=e.call(this))._elementRef=t,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=s,l._elementFocusedBeforeDialogWasOpened=null,l._state="enter",l._animationStateChanged=new a.s,l.attachDomPortal=function(t){return l._portalOutlet.hasAttached()&&dh(),l._savePreviouslyFocusedElement(),l._portalOutlet.attachDomPortal(t)},l._ariaLabelledBy=s.ariaLabelledBy||null,l._document=o,l}return _createClass(n,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&dh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&dh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_trapFocus",value:function(){var t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var e=this._document.activeElement;e===t||t.contains(e)||t.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)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))}},{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}(iu)).\u0275fac=function(t){return new(t||hh)(a.yc(a.q),a.yc(ei),a.yc(a.j),a.yc(ye.e,8),a.yc(ch))},hh.\u0275cmp=a.sc({type:hh,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&a.rd(ou,!0),2&t&&a.gd(n=a.Rc())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&a.pc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(a.lc("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),a.yd("@dialogContainer",e._state))},features:[a.hc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.td(0,lh,0,0,"ng-template",0)},directives:[ou],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:[uh.dialogContainer]}}),hh),yh=0,_h=function(){function t(e,n){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(yh++);_classCallCheck(this,t),this._overlayRef=e,this._containerInstance=n,this.id=a,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Me.a,this._afterClosed=new Me.a,this._beforeClosed=new Me.a,this._state=0,n._id=a,n._animationStateChanged.pipe(en((function(t){return"done"===t.phaseName&&"enter"===t.toState})),un(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(en((function(t){return"done"===t.phaseName&&"exit"===t.toState})),un(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._overlayRef.dispose()})),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(en((function(t){return 27===t.keyCode&&!i.disableClose&&!Be(t)}))).subscribe((function(t){t.preventDefault(),i.close()}))}return _createClass(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(en((function(t){return"start"===t.phaseName})),un(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._state=2,e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){e._overlayRef.dispose()}),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:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}(),kh=new a.v("MatDialogData"),Ch=new a.v("mat-dialog-default-options"),wh=new a.v("mat-dialog-scroll-strategy"),xh={provide:wh,deps:[qu],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},Sh=((vh=function(){function t(e,n,i,a,r,o,s){var l=this;_classCallCheck(this,t),this._overlay=e,this._injector=n,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.a,this._afterOpenedAtThisLevel=new Me.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Xl((function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(Ei(void 0))})),this._scrollStrategy=r}return _createClass(t,[{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 ch)).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),a=this._attachDialogContainer(i,e),r=this._attachDialogContent(t,a,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return n._removeOpenDialog(r)})),this.afterOpened.next(r),r}},{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 _u({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=a.w.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ch,useValue:e}]}),i=new tu(bh,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new _h(n,e,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof a.U)e.attachTemplatePortal(new eu(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),s=e.attachComponentPortal(new tu(t,i.viewContainerRef,o));r.componentInstance=s.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:bh,useValue:n},{provide:kh,useValue:t.data},{provide:_h,useValue:e}];return!t.direction||i&&i.get(ki,null)||r.push({provide:ki,useValue:{value:t.direction,change:Ne()}}),a.w.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._afterAllClosed.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}},{key:"_afterAllClosed",get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}}]),t}()).\u0275fac=function(t){return new(t||vh)(a.Mc(qu),a.Mc(a.w),a.Mc(ye.n,8),a.Mc(Ch,8),a.Mc(wh),a.Mc(vh,12),a.Mc(Au))},vh.\u0275prov=a.uc({token:vh,factory:vh.\u0275fac}),vh),Oh=0,Dh=((gh=function(){function t(e,n,i){_classCallCheck(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Th(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}]),t}()).\u0275fac=function(t){return new(t||gh)(a.yc(_h,8),a.yc(a.q),a.yc(Sh))},gh.\u0275dir=a.tc({type:gh,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&a.Qc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&a.lc("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:[a.ic]}),gh),Eh=((ph=function(){function t(e,n,i){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(Oh++)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=Th(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))}}]),t}()).\u0275fac=function(t){return new(t||ph)(a.yc(_h,8),a.yc(a.q),a.yc(Sh))},ph.\u0275dir=a.tc({type:ph,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&a.Gc("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ph),Ah=((fh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||fh)},fh.\u0275dir=a.tc({type:fh,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),fh),Ih=((mh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||mh)},mh.\u0275dir=a.tc({type:mh,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),mh);function Th(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 Ph,Rh,Mh,jh,Lh=((jh=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:jh}),jh.\u0275inj=a.vc({factory:function(t){return new(t||jh)},providers:[Sh,xh],imports:[[Ku,cu,Li],Li]}),jh),Fh=0,zh=((Mh=function(){function t(){_classCallCheck(this,t),this._stateChanges=new Me.a,this._openCloseAllActions=new Me.a,this.id="cdk-accordion-".concat(Fh++),this._multi=!1}return _createClass(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=fn(t)}}]),t}()).\u0275fac=function(t){return new(t||Mh)},Mh.\u0275dir=a.tc({type:Mh,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a.ic]}),Mh),Nh=0,Bh=((Rh=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=je.a.EMPTY,this.closed=new a.s,this.opened=new a.s,this.destroyed=new a.s,this.expandedChange=new a.s,this.id="cdk-accordion-child-".concat(Nh++),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 _createClass(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=fn(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=fn(t)}}]),t}()).\u0275fac=function(t){return new(t||Rh)(a.yc(zh,12),a.yc(a.j),a.yc(Za))},Rh.\u0275dir=a.tc({type:Rh,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a.jc([{provide:zh,useValue:void 0}])]}),Rh),Vh=((Ph=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ph}),Ph.\u0275inj=a.vc({factory:function(t){return new(t||Ph)}}),Ph),Uh=["body"];function Hh(t,e){}var qh=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Gh=["mat-expansion-panel-header","*","mat-action-row"],Wh=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Qh=function(t,e){return{value:t,params:e}};function Yh(t,e){if(1&t&&a.zc(0,"span",2),2&t){var n=a.Uc();a.ad("@indicatorRotate",n._getExpandedState())}}var $h,Kh,Xh,Zh,Jh,tm,em,nm,im,am,rm,om,sm,lm=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],cm=["mat-panel-title","mat-panel-description","*"],um=new a.v("MAT_ACCORDION"),dm={indicatorRotate:o("indicatorRotate",[d("collapsed, void",u({transform:"rotate(0deg)"})),d("expanded",u({transform:"rotate(180deg)"})),h("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[d("collapsed, void",u({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),d("expanded",u({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),h("expanded <=> collapsed, void => collapsed",l([f("@indicatorRotate",m(),{optional:!0}),s("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[d("collapsed, void",u({height:"0px",visibility:"hidden"})),d("expanded",u({height:"*",visibility:"visible"})),h("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},hm=(($h=function t(e){_classCallCheck(this,t),this._template=e}).\u0275fac=function(t){return new(t||$h)(a.yc(a.U))},$h.\u0275dir=a.tc({type:$h,selectors:[["ng-template","matExpansionPanelContent",""]]}),$h),mm=0,fm=new a.v("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pm=((em=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s,l,c){var u;return _classCallCheck(this,n),(u=e.call(this,t,i,r))._viewContainerRef=o,u._animationMode=l,u._hideToggle=!1,u.afterExpand=new a.s,u.afterCollapse=new a.s,u._inputChanges=new Me.a,u._headerId="mat-expansion-panel-header-".concat(mm++),u._bodyAnimationDone=new Me.a,u.accordion=t,u._document=s,u._bodyAnimationDone.pipe(uc((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?u.afterExpand.emit():"collapsed"===t.toState&&u.afterCollapse.emit())})),c&&(u.hideToggle=c.hideToggle),u}return _createClass(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(Ei(null),en((function(){return t.expanded&&!t._portal})),un(1)).subscribe((function(){t._portal=new eu(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(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=fn(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),n}(Bh)).\u0275fac=function(t){return new(t||em)(a.yc(um,12),a.yc(a.j),a.yc(Za),a.yc(a.X),a.yc(ye.e),a.yc(Te,8),a.yc(fm,8))},em.\u0275cmp=a.sc({type:em,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,hm,!0),2&t&&a.gd(i=a.Rc())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&a.zd(Uh,!0),2&t&&a.gd(n=a.Rc())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&a.oc("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:[a.jc([{provide:um,useValue:void 0}]),a.hc,a.ic],ngContentSelectors:Gh,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&&(a.Zc(qh),a.Yc(0),a.Dc(1,"div",0,1),a.Qc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),a.Dc(3,"div",2),a.Yc(4,1),a.td(5,Hh,0,0,"ng-template",3),a.Cc(),a.Yc(6,2),a.Cc()),2&t&&(a.kc(1),a.ad("@bodyExpansion",e._getExpandedState())("id",e.id),a.lc("aria-labelledby",e._headerId),a.kc(4),a.ad("cdkPortalOutlet",e._portal))},directives:[ou],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)}.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:[dm.bodyExpansion]},changeDetection:0}),em),gm=((tm=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||tm)},tm.\u0275dir=a.tc({type:tm,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),tm),vm=((Jh=function(){function t(e,n,i,a,r){var o=this;_classCallCheck(this,t),this.panel=e,this._element=n,this._focusMonitor=i,this._changeDetectorRef=a,this._parentChangeSubscription=je.a.EMPTY,this._animationsDisabled=!0;var s=e.accordion?e.accordion._stateChanges.pipe(en((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):ln;this._parentChangeSubscription=Object(Zl.a)(e.opened,e.closed,s,e._inputChanges.pipe(en((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),e.closed.pipe(en((function(){return e._containsFocus()}))).subscribe((function(){return i.focusVia(n,"program")})),i.monitor(n).subscribe((function(t){t&&e.accordion&&e.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return _createClass(t,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{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:"_keydown",value:function(t){switch(t.keyCode){case 32:case 13:Be(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:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),t}()).\u0275fac=function(t){return new(t||Jh)(a.yc(pm,1),a.yc(a.q),a.yc(ui),a.yc(a.j),a.yc(fm,8))},Jh.\u0275cmp=a.sc({type:Jh,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(a.pc("@expansionHeight.start",(function(){return e._animationStarted()})),a.Qc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(a.lc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),a.yd("@.disabled",e._animationsDisabled)("@expansionHeight",a.ed(16,Qh,e._getExpandedState(),a.ed(13,Wh,e.collapsedHeight,e.expandedHeight))),a.oc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:cm,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(a.Zc(lm),a.Dc(0,"span",0),a.Yc(1),a.Yc(2,1),a.Yc(3,2),a.Cc(),a.td(4,Yh,1,1,"span",1)),2&t&&(a.kc(4),a.ad("ngIf",e._showToggle()))},directives:[ye.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.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:[dm.indicatorRotate,dm.expansionHeaderHeight]},changeDetection:0}),Jh),bm=((Zh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Zh)},Zh.\u0275dir=a.tc({type:Zh,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Zh),ym=((Xh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Xh)},Xh.\u0275dir=a.tc({type:Xh,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Xh),_m=((Kh=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._ownHeaders=new a.K,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe(Ei(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new $n(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(t){var e=t.keyCode,n=this._keyManager;36===e?Be(t)||(n.setFirstItemActive(),t.preventDefault()):35===e?Be(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=fn(t)}}]),n}(zh)).\u0275fac=function(t){return km(t||Kh)},Kh.\u0275dir=a.tc({type:Kh,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,vm,!0),2&t&&a.gd(i=a.Rc())&&(e._headers=i)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a.jc([{provide:um,useExisting:Kh}]),a.hc]}),Kh),km=a.Fc(_m),Cm=((nm=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:nm}),nm.\u0275inj=a.vc({factory:function(t){return new(t||nm)},imports:[[ye.c,Vh,cu]]}),nm),wm=["*"],xm=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],Sm=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Om=new a.v("MAT_GRID_LIST"),Dm=((sm=function(){function t(e,n){_classCallCheck(this,t),this._element=e,this._gridList=n,this._rowspan=1,this._colspan=1}return _createClass(t,[{key:"_setStyle",value:function(t,e){this._element.nativeElement.style[t]=e}},{key:"rowspan",get:function(){return this._rowspan},set:function(t){this._rowspan=Math.round(pn(t))}},{key:"colspan",get:function(){return this._colspan},set:function(t){this._colspan=Math.round(pn(t))}}]),t}()).\u0275fac=function(t){return new(t||sm)(a.yc(a.q),a.yc(Om,8))},sm.\u0275cmp=a.sc({type:sm,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&a.lc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:wm,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(a.Zc(),a.Dc(0,"figure",0),a.Yc(1),a.Cc())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),sm),Em=((om=function(){function t(e){_classCallCheck(this,t),this._element=e}return _createClass(t,[{key:"ngAfterContentInit",value:function(){la(this._lines,this._element)}}]),t}()).\u0275fac=function(t){return new(t||om)(a.yc(a.q))},om.\u0275cmp=a.sc({type:om,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,sa,!0),2&t&&a.gd(i=a.Rc())&&(e._lines=i)},ngContentSelectors:Sm,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(a.Zc(xm),a.Yc(0),a.Dc(1,"div",0),a.Yc(2,1),a.Cc(),a.Yc(3,2))},encapsulation:2,changeDetection:0}),om),Am=((rm=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||rm)},rm.\u0275dir=a.tc({type:rm,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),rm),Im=((am=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||am)},am.\u0275dir=a.tc({type:am,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),am),Tm=((im=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||im)},im.\u0275dir=a.tc({type:im,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),im),Pm=function(){function t(){_classCallCheck(this,t),this.columnIndex=0,this.rowIndex=0}return _createClass(t,[{key:"update",value:function(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map((function(t){return n._trackTile(t)}))}},{key:"_trackTile",value:function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new Rm(this.rowIndex,e)}},{key:"_findMatchingGap",value:function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(t," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e))}while(n-e1?this.rowCount+t-1:this.rowCount}}]),t}(),Rm=function t(e,n){_classCallCheck(this,t),this.row=e,this.col=n},Mm=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,jm=function(){function t(){_classCallCheck(this,t),this._rows=0,this._rowspan=0}return _createClass(t,[{key:"init",value:function(t,e,n,i){this._gutterSize=Bm(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=i}},{key:"getBaseTileSize",value:function(t,e){return"(".concat(t,"% - (").concat(this._gutterSize," * ").concat(e,"))")}},{key:"getTilePosition",value:function(t,e){return 0===e?"0":Nm("(".concat(t," + ").concat(this._gutterSize,") * ").concat(e))}},{key:"getTileSize",value:function(t,e){return"(".concat(t," * ").concat(e,") + (").concat(e-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(t,e,n){var i=100/this._cols,a=(this._cols-1)/this._cols;this.setColStyles(t,n,i,a),this.setRowStyles(t,e,i,a)}},{key:"setColStyles",value:function(t,e,n,i){var a=this.getBaseTileSize(n,i);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(a,e)),t._setStyle("width",Nm(this.getTileSize(a,t.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(t){return"".concat(this._rowspan," * ").concat(this.getTileSize(t,1))}},{key:"getComputedHeight",value:function(){return null}}]),t}(),Lm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).fixedRowHeight=t,i}return _createClass(n,[{key:"init",value:function(t,e,i,a){if(_get(_getPrototypeOf(n.prototype),"init",this).call(this,t,e,i,a),this.fixedRowHeight=Bm(this.fixedRowHeight),!Mm.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",Nm(this.getTileSize(this.fixedRowHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",Nm("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),n}(jm),Fm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._parseRatio(t),i}return _createClass(n,[{key:"setRowStyles",value:function(t,e,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",Nm(this.getTileSize(this.baseTileHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",Nm("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach((function(t){t._setStyle("marginTop",null),t._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(t,'"'));this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}]),n}(jm),zm=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"setRowStyles",value:function(t,e){var n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",Nm(this.getTileSize(n,t.rowspan)))}},{key:"reset",value:function(t){t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),n}(jm);function Nm(t){return"calc(".concat(t,")")}function Bm(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var Vm,Um,Hm=((Um=function(){function t(e,n){_classCallCheck(this,t),this._element=e,this._dir=n,this._gutter="1px"}return _createClass(t,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new zm:t&&t.indexOf(":")>-1?new Fm(t):new Lm(t)}},{key:"_layoutTiles",value:function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new Pm);var e=this._tileCoordinator,n=this._tiles.filter((function(e){return!e._gridList||e._gridList===t})),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,e,this.cols,i),n.forEach((function(n,i){var a=e.positions[i];t._tileStyler.setStyle(n,a.row,a.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}},{key:"cols",get:function(){return this._cols},set:function(t){this._cols=Math.max(1,Math.round(pn(t)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(t){this._gutter="".concat(null==t?"":t)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(t){var e="".concat(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}}]),t}()).\u0275fac=function(t){return new(t||Um)(a.yc(a.q),a.yc(ki,8))},Um.\u0275cmp=a.sc({type:Um,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,Dm,!0),2&t&&a.gd(i=a.Rc())&&(e._tiles=i)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[a.jc([{provide:Om,useExisting:Um}])],ngContentSelectors:wm,decls:2,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Dc(0,"div"),a.Yc(1),a.Cc())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),Um),qm=((Vm=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Vm}),Vm.\u0275inj=a.vc({factory:function(t){return new(t||Vm)},imports:[[va,Li],va,Li]}),Vm);function Gm(t){return function(e){var n=new Wm(t),i=e.lift(n);return n.caught=i}}var Wm=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Qm(t,this.selector,this.caught))}}]),t}(),Qm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,t)).selector=i,r.caught=a,r}return _createClass(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(r){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,r)}this._unsubscribeAndRecycle();var i=new xc.a(this,void 0,void 0);this.add(i);var a=Object(fc.a)(this,e,void 0,void 0,i);a!==i&&this.add(a)}}}]),n}(mc.a);function Ym(t){return function(e){return e.lift(new $m(t))}}var $m=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Km(t,this.callback))}}]),t}(),Km=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).add(new je.a(i)),a}return n}(Ve.a),Xm=n("w1tV"),Zm=n("5+tZ");function Jm(t,e){return Object(Zm.a)(t,e,1)}var tf=function t(){_classCallCheck(this,t)},ef=function t(){_classCallCheck(this,t)},nf=function(){function t(e){var n=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),a=i.toLowerCase(),r=t.slice(e+1).trim();n.maybeSetNormalizedName(i,a),n.headers.has(a)?n.headers.get(a).push(r):n.headers.set(a,[r])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var i=e[t],a=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(a,i),n.maybeSetNormalizedName(t,a))}))}:this.headers=new Map}return _createClass(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,_toConsumableArray(n)),this.headers.set(e,i);break;case"d":var a=t.value;if(a){var r=this.headers.get(e);if(!r)return;0===(r=r.filter((function(t){return-1===a.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}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}(),af=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return rf(t)}},{key:"encodeValue",value:function(t){return rf(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function rf(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 of=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new af,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var n=new Map;return t.length>0&&t.split("&").forEach((function(t){var i=t.indexOf("="),a=_slicedToArray(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),r=a[0],o=a[1],s=n.get(r)||[];s.push(o),n.set(r,s)})),n}(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 _createClass(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)||[],a=i.indexOf(e.value);-1!==a&&i.splice(a,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function sf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function lf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function cf(t){return"undefined"!=typeof FormData&&t instanceof FormData}var uf=function(){function t(e,n,i,a){var r;if(_classCallCheck(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)||a?(this.body=void 0!==i?i:null,r=a):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new nf),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,a=e.responseType||this.responseType,r=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,l=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),c)),new t(n,i,r,{params:c,headers:l,reportProgress:s,responseType:a,withCredentials:o})}}]),t}(),df=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="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";_classCallCheck(this,t),this.headers=e.headers||new nf,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},mf=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).type=df.ResponseHeader,t}return _createClass(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),ff=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).type=df.Response,t.body=void 0!==i.body?i.body:null,t}return _createClass(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),pf=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(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 vf,bf,yf,_f,kf,Cf,wf,xf,Sf,Of=((vf=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof uf)n=t;else{var r=void 0;r=a.headers instanceof nf?a.headers:new nf(a.headers);var o=void 0;a.params&&(o=a.params instanceof of?a.params:new of({fromObject:a.params})),n=new uf(t,e,void 0!==a.body?a.body:null,{headers:r,params:o,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var s=Ne(n).pipe(Jm((function(t){return i.handler.handle(t)})));if(t instanceof uf||"events"===a.observe)return s;var l=s.pipe(en((function(t){return t instanceof ff})));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Object(rn.a)((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return l.pipe(Object(rn.a)((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return l.pipe(Object(rn.a)((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 l.pipe(Object(rn.a)((function(t){return t.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(a.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 of).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}()).\u0275fac=function(t){return new(t||vf)(a.Mc(tf))},vf.\u0275prov=a.uc({token:vf,factory:vf.\u0275fac}),vf),Df=function(){function t(e,n){_classCallCheck(this,t),this.next=e,this.interceptor=n}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),Ef=new a.v("HTTP_INTERCEPTORS"),Af=((bf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||bf)},bf.\u0275prov=a.uc({token:bf,factory:bf.\u0275fac}),bf),If=/^\)\]\}',?\n/,Tf=function t(){_classCallCheck(this,t)},Pf=((_f=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||_f)},_f.\u0275prov=a.uc({token:_f,factory:_f.\u0275fac}),_f),Rf=((yf=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(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 sn.a((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 a=t.detectContentTypeHeader();null!==a&&i.setRequestHeader("Content-Type",a)}if(t.responseType){var r=t.responseType.toLowerCase();i.responseType="json"!==r?r:"text"}var o=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",a=new nf(i.getAllResponseHeaders()),r=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 mf({headers:a,status:e,statusText:n,url:r})},c=function(){var e=l(),a=e.headers,r=e.status,o=e.statusText,s=e.url,c=null;204!==r&&(c=void 0===i.response?i.responseText:i.response),0===r&&(r=c?200:0);var u=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof c){var d=c;c=c.replace(If,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=d,u&&(u=!1,c={error:h,text:c})}}u?(n.next(new ff({body:c,headers:a,status:r,statusText:o,url:s||void 0})),n.complete()):n.error(new pf({error:c,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(t){var e=l().url,a=new pf({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(a)},d=!1,h=function(e){d||(n.next(l()),d=!0);var a={type:df.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(a.total=e.total),"text"===t.responseType&&i.responseText&&(a.partialText=i.responseText),n.next(a)},m=function(t){var e={type:df.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",c),i.addEventListener("error",u),t.reportProgress&&(i.addEventListener("progress",h),null!==o&&i.upload&&i.upload.addEventListener("progress",m)),i.send(o),n.next({type:df.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("load",c),t.reportProgress&&(i.removeEventListener("progress",h),null!==o&&i.upload&&i.upload.removeEventListener("progress",m)),i.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||yf)(a.Mc(Tf))},yf.\u0275prov=a.uc({token:yf,factory:yf.\u0275fac}),yf),Mf=new a.v("XSRF_COOKIE_NAME"),jf=new a.v("XSRF_HEADER_NAME"),Lf=function t(){_classCallCheck(this,t)},Ff=((Sf=function(){function t(e,n,i){_classCallCheck(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(ye.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||Sf)(a.Mc(ye.e),a.Mc(a.I),a.Mc(Mf))},Sf.\u0275prov=a.uc({token:Sf,factory:Sf.\u0275fac}),Sf),zf=((xf=function(){function t(e,n){_classCallCheck(this,t),this.tokenService=e,this.headerName=n}return _createClass(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}()).\u0275fac=function(t){return new(t||xf)(a.Mc(Lf),a.Mc(jf))},xf.\u0275prov=a.uc({token:xf,factory:xf.\u0275fac}),xf),Nf=((wf=function(){function t(e,n){_classCallCheck(this,t),this.backend=e,this.injector=n,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(Ef,[]);this.chain=e.reduceRight((function(t,e){return new Df(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||wf)(a.Mc(ef),a.Mc(a.w))},wf.\u0275prov=a.uc({token:wf,factory:wf.\u0275fac}),wf),Bf=((Cf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:zf,useClass:Af}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:Mf,useValue:e.cookieName}:[],e.headerName?{provide:jf,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=a.wc({type:Cf}),Cf.\u0275inj=a.vc({factory:function(t){return new(t||Cf)},providers:[zf,{provide:Ef,useExisting:zf,multi:!0},{provide:Lf,useClass:Ff},{provide:Mf,useValue:"XSRF-TOKEN"},{provide:jf,useValue:"X-XSRF-TOKEN"}]}),Cf),Vf=((kf=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:kf}),kf.\u0275inj=a.vc({factory:function(t){return new(t||kf)},providers:[Of,{provide:tf,useClass:Nf},Rf,{provide:ef,useExisting:Rf},Pf,{provide:Tf,useExisting:Pf}],imports:[[Bf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),kf),Uf=["*"];function Hf(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function qf(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function Gf(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var Wf,Qf=function t(e,n){_classCallCheck(this,t),this.options=n,e.nodeName?this.svgElement=e:this.url=e},Yf=((Wf=function(){function t(e,n,i,a){_classCallCheck(this,t),this._httpClient=e,this._sanitizer=n,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return _createClass(t,[{key:"addSvgIcon",value:function(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}},{key:"addSvgIconLiteral",value:function(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}},{key:"addSvgIconInNamespace",value:function(t,e,n,i){return this._addSvgIconConfig(t,e,new Qf(n,i))}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,n,i){var r=this._sanitizer.sanitize(a.P.HTML,n);if(!r)throw Gf(n);var o=this._createSvgElementForSingleIcon(r,i);return this._addSvgIconConfig(t,e,new Qf(o,i))}},{key:"addSvgIconSet",value:function(t,e){return this.addSvgIconSetInNamespace("",t,e)}},{key:"addSvgIconSetLiteral",value:function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}},{key:"addSvgIconSetInNamespace",value:function(t,e,n){return this._addSvgIconSetConfig(t,new Qf(e,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,n){var i=this._sanitizer.sanitize(a.P.HTML,e);if(!i)throw Gf(e);var r=this._svgElementFromString(i);return this._addSvgIconSetConfig(t,new Qf(r,n))}},{key:"registerFontClassAlias",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,n=this._sanitizer.sanitize(a.P.RESOURCE_URL,t);if(!n)throw qf(t);var i=this._cachedIconsByUrl.get(n);return i?Ne($f(i)):this._loadSvgIconFromConfig(new Qf(t)).pipe(qe((function(t){return e._cachedIconsByUrl.set(n,t)})),Object(rn.a)((function(t){return $f(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Kf(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var a=this._iconSetConfigs.get(e);return a?this._getSvgFromIconSetConfigs(t,a):Ic(Hf(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?Ne($f(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(qe((function(e){return t.svgElement=e})),Object(rn.a)((function(t){return $f(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,i=this._extractIconWithNameFromAnySet(t,e);return i?Ne(i):nr(e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(Gm((function(e){var i="Loading icon set URL: ".concat(n._sanitizer.sanitize(a.P.RESOURCE_URL,t.url)," failed: ").concat(e.message);return n._errorHandler?n._errorHandler.handleError(new Error(i)):console.error(i),Ne(null)})))}))).pipe(Object(rn.a)((function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw Hf(t);return i})))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.svgElement){var a=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchUrl(t.url).pipe(Object(rn.a)((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(t){var e=this;return t.svgElement?Ne(t.svgElement):this._fetchUrl(t.url).pipe(Object(rn.a)((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n}},{key:"_extractSvgIconFromSet",value:function(t,e,n){var i=t.querySelector('[id="'.concat(e,'"]'));if(!i)return null;var a=i.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,n);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),n);var r=this._svgElementFromString("");return r.appendChild(a),this._setSvgAttributes(r,n)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),n=t.attributes,i=0;i0&&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 a=n.placeholder;n.classList.add("cdk-textarea-autosize-measuring"),n.placeholder="",n.style.height="".concat(n.scrollHeight-4,"px"),n.classList.remove("cdk-textarea-autosize-measuring"),n.placeholder=a,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=pn(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=pn(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=fn(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}()).\u0275fac=function(t){return new(t||ep)(a.yc(a.q),a.yc(Sn),a.yc(a.F),a.yc(ye.e,8))},ep.\u0275dir=a.tc({type:ep,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&a.Qc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),ep),yp=((tp=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:tp}),tp.\u0275inj=a.vc({factory:function(t){return new(t||tp)},imports:[[On]]}),tp),_p=((Jf=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(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}(bp)).\u0275fac=function(t){return kp(t||Jf)},Jf.\u0275dir=a.tc({type:Jf,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:[a.hc]}),Jf),kp=a.Fc(_p),Cp=new a.v("MAT_INPUT_VALUE_ACCESSOR"),wp=["button","checkbox","file","hidden","image","radio","range","reset","submit"],xp=0,Sp=Vi((function t(e,n,i,a){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=a})),Op=((sp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o,s,l,c,u){var d;_classCallCheck(this,n),(d=e.call(this,s,r,o,a))._elementRef=t,d._platform=i,d.ngControl=a,d._autofillMonitor=c,d._uid="mat-input-".concat(xp++),d._isServer=!1,d._isNativeSelect=!1,d.focused=!1,d.stateChanges=new Me.a,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 En().has(t)}));var h=d._elementRef.nativeElement;return d._inputValueAccessor=l||h,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&u.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"===h.nodeName.toLowerCase(),d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _createClass(n,[{key:"ngOnInit",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()}},{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:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){if(wp.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=fn(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=fn(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&En().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=fn(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}(Sp)).\u0275fac=function(t){return new(t||sp)(a.yc(a.q),a.yc(Sn),a.yc(_r,10),a.yc(Bo,8),a.yc(ts,8),a.yc(oa),a.yc(Cp,10),a.yc(gp),a.yc(a.F))},sp.\u0275dir=a.tc({type:sp,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&&a.Qc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(a.Gc("disabled",e.disabled)("required",e.required),a.lc("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),a.oc("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:[a.jc([{provide:yd,useExisting:sp}]),a.hc,a.ic]}),sp),Dp=((op=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:op}),op.\u0275inj=a.vc({factory:function(t){return new(t||op)},providers:[oa],imports:[[yp,Nd],yp,Nd]}),op),Ep=((rp=function(){function t(){_classCallCheck(this,t),this._vertical=!1,this._inset=!1}return _createClass(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=fn(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=fn(t)}}]),t}()).\u0275fac=function(t){return new(t||rp)},rp.\u0275cmp=a.sc({type:rp,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(a.lc("aria-orientation",e.vertical?"vertical":"horizontal"),a.oc("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}),rp),Ap=((ap=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ap}),ap.\u0275inj=a.vc({factory:function(t){return new(t||ap)},imports:[[Li],Li]}),ap),Ip=["*"],Tp=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Pp=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Rp=["text"];function Mp(t,e){if(1&t&&a.zc(0,"mat-pseudo-checkbox",5),2&t){var n=a.Uc();a.ad("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var jp,Lp,Fp,zp,Np,Bp,Vp,Up,Hp,qp=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Gp=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],Wp=Fi(Ni((function t(){_classCallCheck(this,t)}))),Qp=Ni((function t(){_classCallCheck(this,t)})),Yp=((jp=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._stateChanges=new Me.a,t}return _createClass(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Wp)).\u0275fac=function(t){return $p(t||jp)},jp.\u0275cmp=a.sc({type:jp,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a.hc,a.ic],ngContentSelectors:Ip,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),jp),$p=a.Fc(Yp),Kp=((Bp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._elementRef=t,i._stateChanges=new Me.a,"action-list"===i._getListType()&&t.nativeElement.classList.add("mat-action-list"),i}return _createClass(n,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Wp)).\u0275fac=function(t){return new(t||Bp)(a.yc(a.q))},Bp.\u0275cmp=a.sc({type:Bp,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a.hc,a.ic],ngContentSelectors:Ip,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Bp),Xp=((Np=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Np)},Np.\u0275dir=a.tc({type:Np,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Np),Zp=((zp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||zp)},zp.\u0275dir=a.tc({type:zp,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),zp),Jp=((Fp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Fp)},Fp.\u0275dir=a.tc({type:Fp,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Fp),tg=((Lp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;_classCallCheck(this,n),(o=e.call(this))._element=t,o._isInteractiveList=!1,o._destroyed=new Me.a,o._disabled=!1,o._isInteractiveList=!!(a||r&&"action-list"===r._getListType()),o._list=a||r;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(kc(o._destroyed)).subscribe((function(){i.markForCheck()})),o}return _createClass(n,[{key:"ngAfterContentInit",value:function(){la(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=fn(t)}}]),n}(Qp)).\u0275fac=function(t){return new(t||Lp)(a.yc(a.q),a.yc(a.j),a.yc(Yp,8),a.yc(Kp,8))},Lp.\u0275cmp=a.sc({type:Lp,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Xp,!0),a.qc(n,Zp,!0),a.qc(n,sa,!0)),2&t&&(a.gd(i=a.Rc())&&(e._avatar=i.first),a.gd(i=a.Rc())&&(e._icon=i.first),a.gd(i=a.Rc())&&(e._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&a.oc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.hc],ngContentSelectors:Pp,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(a.Zc(Tp),a.Dc(0,"div",0),a.zc(1,"div",1),a.Yc(2),a.Dc(3,"div",2),a.Yc(4,1),a.Cc(),a.Yc(5,2),a.Cc()),2&t&&(a.kc(1),a.ad("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[wa],encapsulation:2,changeDetection:0}),Lp),eg=Ni((function t(){_classCallCheck(this,t)})),ng=Ni((function t(){_classCallCheck(this,t)})),ig={provide:lr,useExisting:Object(a.cb)((function(){return og})),multi:!0},ag=function t(e,n){_classCallCheck(this,t),this.source=e,this.option=n},rg=((Hp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this))._element=t,r._changeDetector=i,r.selectionList=a,r._selected=!1,r._disabled=!1,r._hasFocus=!1,r.checkboxPosition="after",r._inputsInitialized=!1,r}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this,e=this.selectionList;e._value&&e._value.some((function(n){return e.compareWith(n,t._value)}))&&this._setSelected(!0);var n=this._selected;Promise.resolve().then((function(){(t._selected||n)&&(t.selected=!0,t._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){la(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var t=this;this.selected&&Promise.resolve().then((function(){t.selected=!1}));var e=this._hasFocus,n=this.selectionList._removeOptionFromList(this);e&&n&&n.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(t){this._color=t}},{key:"value",get:function(){return this._value},set:function(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(t){var e=fn(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=fn(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}}]),n}(ng)).\u0275fac=function(t){return new(t||Hp)(a.yc(a.q),a.yc(a.j),a.yc(Object(a.cb)((function(){return og}))))},Hp.\u0275cmp=a.sc({type:Hp,selectors:[["mat-list-option"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Xp,!0),a.qc(n,Zp,!0),a.qc(n,sa,!0)),2&t&&(a.gd(i=a.Rc())&&(e._avatar=i.first),a.gd(i=a.Rc())&&(e._icon=i.first),a.gd(i=a.Rc())&&(e._lines=i))},viewQuery:function(t,e){var n;1&t&&a.zd(Rp,!0),2&t&&a.gd(n=a.Rc())&&(e._text=n.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&a.Qc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(a.lc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),a.oc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[a.hc],ngContentSelectors:Gp,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(a.Zc(qp),a.Dc(0,"div",0),a.zc(1,"div",1),a.td(2,Mp,1,2,"mat-pseudo-checkbox",2),a.Dc(3,"div",3,4),a.Yc(5),a.Cc(),a.Yc(6,1),a.Cc()),2&t&&(a.oc("mat-list-item-content-reverse","after"==e.checkboxPosition),a.kc(1),a.ad("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),a.kc(1),a.ad("ngIf",e.selectionList.multiple))},directives:[wa,ye.t,Sa],encapsulation:2,changeDetection:0}),Hp),og=((Up=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r){var o;return _classCallCheck(this,n),(o=e.call(this))._element=t,o._changeDetector=r,o._multiple=!0,o._contentInitialized=!1,o.selectionChange=new a.s,o.tabIndex=0,o.color="accent",o.compareWith=function(t,e){return t===e},o._disabled=!1,o.selectedOptions=new Xa(o._multiple),o._tabIndex=-1,o._onChange=function(t){},o._destroyed=new Me.a,o._onTouched=function(){},o}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._contentInitialized=!0,this._keyManager=new $n(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(kc(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(Ei(null),kc(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(kc(this._destroyed)).subscribe((function(t){if(t.added){var e,n=_createForOfIteratorHelper(t.added);try{for(n.s();!(e=n.n()).done;)e.value.selected=!0}catch(r){n.e(r)}finally{n.f()}}if(t.removed){var i,a=_createForOfIteratorHelper(t.removed);try{for(a.s();!(i=a.n()).done;)i.value.selected=!1}catch(r){a.e(r)}finally{a.f()}}}))}},{key:"ngOnChanges",value:function(t){var e=t.disableRipple,n=t.color;(e&&!e.firstChange||n&&!n.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(t){this._element.nativeElement.focus(t)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"_removeOptionFromList",value:function(t){var e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(t){var e=t.keyCode,n=this._keyManager,i=n.activeItemIndex,a=Be(t);switch(e){case 32:case 13:a||n.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:a||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&Be(t,"ctrlKey")&&!n.isTyping()?(this.options.find((function(t){return!t.selected}))?this.selectAll():this.deselectAll(),t.preventDefault()):n.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&n.activeItemIndex!==i&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}},{key:"_emitChangeEvent",value:function(t){this.selectionChange.emit(new ag(this,t))}},{key:"_onFocus",value:function(){var t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"_setOptionsFromValues",value:function(t){var e=this;this.options.forEach((function(t){return t._setSelected(!1)})),t.forEach((function(t){var n=e.options.find((function(n){return!n.selected&&e.compareWith(n.value,t)}));n&&n._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(t){return t.selected})).map((function(t){return t.value}))}},{key:"_toggleFocusedOption",value:function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}},{key:"_setAllOptionsSelected",value:function(t){var e=!1;this.options.forEach((function(n){n._setSelected(t)&&(e=!0)})),e&&this._reportValueChange()}},{key:"_isValidIndex",value:function(t){return t>=0&&t*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Up),sg=((Vp=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Vp}),Vp.\u0275inj=a.vc({factory:function(t){return new(t||Vp)},imports:[[va,xa,Li,Oa,ye.c],va,Li,Oa,Ap]}),Vp),lg=["mat-menu-item",""],cg=["*"];function ug(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",0),a.Qc("keydown",(function(t){return a.ld(n),a.Uc()._handleKeydown(t)}))("click",(function(){return a.ld(n),a.Uc().closed.emit("click")}))("@transformMenu.start",(function(t){return a.ld(n),a.Uc()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return a.ld(n),a.Uc()._onAnimationDone(t)})),a.Dc(1,"div",1),a.Yc(2),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.ad("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),a.lc("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var dg,hg,mg,fg,pg,gg,vg,bg,yg={transformMenu:o("transformMenu",[d("void",u({opacity:0,transform:"scale(0.8)"})),h("void => enter",l([f(".mat-menu-content, .mat-mdc-menu-content",s("100ms linear",u({opacity:1}))),s("120ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"scale(1)"}))])),h("* => void",s("100ms 25ms linear",u({opacity:0})))]),fadeInItems:o("fadeInItems",[d("showing",u({opacity:1})),h("void => *",[u({opacity:0}),s("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},_g=((dg=function(){function t(e,n,i,a,r,o,s){_classCallCheck(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=a,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=s,this._attached=new Me.a}return _createClass(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new eu(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new au(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}()).\u0275fac=function(t){return new(t||dg)(a.yc(a.U),a.yc(a.n),a.yc(a.g),a.yc(a.w),a.yc(a.X),a.yc(ye.e),a.yc(a.j))},dg.\u0275dir=a.tc({type:dg,selectors:[["ng-template","matMenuContent",""]]}),dg),kg=new a.v("MAT_MENU_PANEL"),Cg=Ni(Fi((function t(){_classCallCheck(this,t)}))),wg=((hg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this))._elementRef=t,o._focusMonitor=a,o._parentMenu=r,o.role="menuitem",o._hovered=new Me.a,o._focused=new Me.a,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(_assertThisInitialized(o)),o._document=i,o}return _createClass(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:"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,a=0;a0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(un(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="mat-elevation-z".concat(Math.min(4+t,24)),n=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{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(Ei(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){"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){"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=fn(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=fn(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}()).\u0275fac=function(t){return new(t||fg)(a.yc(a.q),a.yc(a.F),a.yc(xg))},fg.\u0275dir=a.tc({type:fg,contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,_g,!0),a.qc(n,wg,!0),a.qc(n,wg,!1)),2&t&&(a.gd(i=a.Rc())&&(e.lazyContent=i.first),a.gd(i=a.Rc())&&(e._allItems=i),a.gd(i=a.Rc())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&a.zd(a.U,!0),2&t&&a.gd(n=a.Rc())&&(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"}}),fg),Dg=((mg=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(Og)).\u0275fac=function(t){return Eg(t||mg)},mg.\u0275dir=a.tc({type:mg,features:[a.hc]}),mg),Eg=a.Fc(Dg),Ag=((pg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){return _classCallCheck(this,n),e.call(this,t,i,a)}return n}(Dg)).\u0275fac=function(t){return new(t||pg)(a.yc(a.q),a.yc(a.F),a.yc(xg))},pg.\u0275cmp=a.sc({type:pg,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[a.jc([{provide:kg,useExisting:Dg},{provide:Dg,useExisting:pg}]),a.hc],ngContentSelectors:cg,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&&(a.Zc(),a.td(0,ug,3,6,"ng-template"))},directives:[ye.q],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:[yg.transformMenu,yg.fadeInItems]},changeDetection:0}),pg),Ig=new a.v("mat-menu-scroll-strategy"),Tg={provide:Ig,deps:[qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Pg=An({passive:!0}),Rg=((bg=function(){function t(e,n,i,r,o,s,l,c){var u=this;_classCallCheck(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._parentMenu=o,this._menuItemInstance=s,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=je.a.EMPTY,this._hoverSubscription=je.a.EMPTY,this._menuCloseSubscription=je.a.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.s,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.s,this.onMenuClose=this.menuClosed,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pg),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return _createClass(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,Pg),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 Dg&&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 Dg?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(en((function(t){return"void"===t.toState})),un(1),kc(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(){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 _u({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",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=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],a=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),r=a[0],o=a[1],s=r,l=o,c=n,u=i,d=0;this.triggersSubmenu()?(u=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",d="bottom"===r?8:-8):this.menu.overlapTrigger||(s="top"===r?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:c,overlayY:r,offsetY:d},{originX:i,originY:s,overlayX:u,overlayY:r,offsetY:d},{originX:n,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:i,originY:l,overlayX:u,overlayY:o,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:Ne(),a=this._parentMenu?this._parentMenu._hovered().pipe(en((function(e){return e!==t._menuItemInstance})),en((function(){return t._menuOpen}))):Ne();return Object(Zl.a)(e,i,a,n)}},{key:"_handleMousedown",value:function(t){hi(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(en((function(e){return e===t._menuItemInstance&&!e.disabled})),Bd(0,cc)).subscribe((function(){t._openedBy="mouse",t.menu instanceof Dg&&t.menu._isAnimating?t.menu._animationDone.pipe(un(1),Bd(0,cc),kc(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 eu(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&&(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}()).\u0275fac=function(t){return new(t||bg)(a.yc(qu),a.yc(a.q),a.yc(a.X),a.yc(Ig),a.yc(Dg,8),a.yc(wg,10),a.yc(ki,8),a.yc(ui))},bg.\u0275dir=a.tc({type:bg,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.Qc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&a.lc("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"]}),bg),Mg=((vg=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:vg}),vg.\u0275inj=a.vc({factory:function(t){return new(t||vg)},providers:[Tg],imports:[Li]}),vg),jg=((gg=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:gg}),gg.\u0275inj=a.vc({factory:function(t){return new(t||gg)},providers:[Tg],imports:[[ye.c,Li,xa,Ku,Mg],Mg]}),gg),Lg={};function Fg(){for(var t=arguments.length,e=new Array(t),n=0;nthis.total&&this.destination.next(t)}}]),n}(Ve.a),qg=new Set,Gg=((Ng=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Wg}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!qg.has(t))try{zg||((zg=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(zg)),zg.sheet&&(zg.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),qg.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||Ng)(a.Mc(Sn))},Ng.\u0275prov=Object(a.uc)({factory:function(){return new Ng(Object(a.Mc)(Sn))},token:Ng,providedIn:"root"}),Ng);function Wg(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var Qg,Yg=((Qg=function(){function t(e,n){_classCallCheck(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new Me.a}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return $g(gn(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,n=Fg($g(gn(t)).map((function(t){return e._registerQuery(t).observable})));return(n=Di(n.pipe(un(1)),n.pipe((function(t){return t.lift(new Ug(1))}),Xe(0)))).pipe(Object(rn.a)((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 sn.a((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(Ei(n),Object(rn.a)((function(e){return{query:t,matches:e.matches}})),kc(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}()).\u0275fac=function(t){return new(t||Qg)(a.Mc(Gg),a.Mc(a.F))},Qg.\u0275prov=Object(a.uc)({factory:function(){return new Qg(Object(a.Mc)(Gg),Object(a.Mc)(a.F))},token:Qg,providedIn:"root"}),Qg);function $g(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var Kg,Xg={tooltipState:o("state",[d("initial, void, hidden",u({opacity:0,transform:"scale(0)"})),d("visible",u({transform:"scale(1)"})),h("* => visible",s("200ms cubic-bezier(0, 0, 0.2, 1)",(Kg=[u({opacity:0,transform:"scale(0)",offset:0}),u({opacity:.5,transform:"scale(0.99)",offset:.5}),u({opacity:1,transform:"scale(1)",offset:1})],{type:5,steps:Kg}))),h("* => hidden",s("100ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:0})))])},Zg=An({passive:!0});function Jg(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var tv,ev,nv,iv,av=new a.v("mat-tooltip-scroll-strategy"),rv={provide:av,deps:[qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},ov=new a.v("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),sv=((nv=function(){function t(e,n,i,a,r,o,s,l,c,u,d,h){var m=this;_classCallCheck(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=a,this._ngZone=r,this._platform=o,this._ariaDescriber=s,this._focusMonitor=l,this._dir=u,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Me.a,this._handleKeydown=function(t){m._isTooltipVisible()&&27===t.keyCode&&!Be(t)&&(t.preventDefault(),t.stopPropagation(),m._ngZone.run((function(){return m.hide(0)})))},this._scrollStrategy=c,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),l.monitor(n).pipe(kc(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return m.show()})):r.run((function(){return m.hide(0)}))})),r.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",m._handleKeydown)}))}return _createClass(t,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{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,n){t.removeEventListener(n,e,Zg)})),this._passiveListeners.clear(),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 tu(lv,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(kc(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(kc(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(kc(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 Jg(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 Jg(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(un(1),kc(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:"_setupPointerEvents",value:function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,n){t._elementRef.nativeElement.addEventListener(n,e,Zg)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this._elementRef.nativeElement,e=t.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==n&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.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=fn(t),this._disabled&&this.hide(0)}},{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._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}()).\u0275fac=function(t){return new(t||nv)(a.yc(qu),a.yc(a.q),a.yc(qc),a.yc(a.X),a.yc(a.F),a.yc(Sn),a.yc(Wn),a.yc(ui),a.yc(av),a.yc(ki,8),a.yc(ov,8),a.yc(a.q))},nv.\u0275dir=a.tc({type:nv,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),nv),lv=((ev=function(){function t(e,n){_classCallCheck(this,t),this._changeDetectorRef=e,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Me.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(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}()).\u0275fac=function(t){return new(t||ev)(a.yc(a.j),a.yc(Yg))},ev.\u0275cmp=a.sc({type:ev,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&a.Qc("click",(function(){return e._handleBodyInteraction()}),!1,a.id),2&t&&a.sd("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(a.Dc(0,"div",0),a.Qc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),a.Vc(1,"async"),a.vd(2),a.Cc()),2&t){var n,i=null==(n=a.Wc(1,5,e._isHandset))?null:n.matches;a.oc("mat-tooltip-handset",i),a.ad("ngClass",e.tooltipClass)("@state",e._visibility),a.kc(2),a.wd(e.message)}},directives:[ye.q],pipes:[ye.b],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:[Xg.tooltipState]},changeDetection:0}),ev),cv=((tv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:tv}),tv.\u0275inj=a.vc({factory:function(t){return new(t||tv)},providers:[rv],imports:[[yi,ye.c,Ku,Li],Li]}),tv),uv=["primaryValueBar"],dv=zi((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),hv=new a.v("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Object(a.db)(ye.e),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),mv=0,fv=((iv=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var s;_classCallCheck(this,n),(s=e.call(this,t))._elementRef=t,s._ngZone=i,s._animationMode=r,s._isNoopAnimation=!1,s._value=0,s._bufferValue=0,s.animationEnd=new a.s,s._animationEndSubscription=je.a.EMPTY,s.mode="determinate",s.progressbarId="mat-progress-bar-".concat(mv++);var l=o?o.getPathname().split("#")[0]:"";return s._rectangleFillValue="url('".concat(l,"#").concat(s.progressbarId,"')"),s._isNoopAnimation="NoopAnimations"===r,s}return _createClass(n,[{key:"_primaryTransform",value:function(){return{transform:"scaleX(".concat(this.value/100,")")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scaleX(".concat(this.bufferValue/100,")")}:null}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._primaryValueBar.nativeElement;t._animationEndSubscription=Jl(e,"transitionend").pipe(en((function(t){return t.target===e}))).subscribe((function(){"determinate"!==t.mode&&"buffer"!==t.mode||t._ngZone.run((function(){return t.animationEnd.next({value:t.value})}))}))}))}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}},{key:"value",get:function(){return this._value},set:function(t){this._value=pv(pn(t)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(t){this._bufferValue=pv(t||0)}}]),n}(dv)).\u0275fac=function(t){return new(t||iv)(a.yc(a.q),a.yc(a.F),a.yc(Te,8),a.yc(hv,8))},iv.\u0275cmp=a.sc({type:iv,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&a.zd(uv,!0),2&t&&a.gd(n=a.Rc())&&(e._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(a.lc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),a.oc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[a.hc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(a.Tc(),a.Dc(0,"svg",0),a.Dc(1,"defs"),a.Dc(2,"pattern",1),a.zc(3,"circle",2),a.Cc(),a.Cc(),a.zc(4,"rect",3),a.Cc(),a.Sc(),a.zc(5,"div",4),a.zc(6,"div",5,6),a.zc(8,"div",7)),2&t&&(a.kc(2),a.ad("id",e.progressbarId),a.kc(2),a.lc("fill",e._rectangleFillValue),a.kc(1),a.ad("ngStyle",e._bufferTransform()),a.kc(1),a.ad("ngStyle",e._primaryTransform()))},directives:[ye.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),iv);function pv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(e,Math.min(n,t))}var gv,vv=((gv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:gv}),gv.\u0275inj=a.vc({factory:function(t){return new(t||gv)},imports:[[ye.c,Li],Li]}),gv);function bv(t,e){if(1&t&&(a.Tc(),a.zc(0,"circle",3)),2&t){var n=a.Uc();a.sd("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),a.lc("r",n._circleRadius)}}function yv(t,e){if(1&t&&(a.Tc(),a.zc(0,"circle",3)),2&t){var n=a.Uc();a.sd("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),a.lc("r",n._circleRadius)}}function _v(t,e){if(1&t&&(a.Tc(),a.zc(0,"circle",3)),2&t){var n=a.Uc();a.sd("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),a.lc("r",n._circleRadius)}}function kv(t,e){if(1&t&&(a.Tc(),a.zc(0,"circle",3)),2&t){var n=a.Uc();a.sd("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),a.lc("r",n._circleRadius)}}var Cv,wv,xv,Sv,Ov,Dv,Ev=zi((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Av=new a.v("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Iv=((xv=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o){var s;_classCallCheck(this,n),(s=e.call(this,t))._elementRef=t,s._document=a,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var l=n._diameters;return l.has(a.head)||l.set(a.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=Tn(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,a=i.get(t);if(!a||!a.has(e)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",e+""),r.textContent=this._getAnimationText(),t.appendChild(r),a||(a=new Set,i.set(t,a)),a.add(e)}}},{key:"_getAnimationText",value:function(){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*this._strokeCircumference)).replace(/END_VALUE/g,"".concat(.2*this._strokeCircumference)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=pn(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=pn(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,pn(t)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),n}(Ev)).\u0275fac=function(t){return new(t||xv)(a.yc(a.q),a.yc(Sn),a.yc(ye.e,8),a.yc(Te,8),a.yc(Av))},xv.\u0275cmp=a.sc({type:xv,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(a.lc("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),a.sd("width",e.diameter,"px")("height",e.diameter,"px"),a.oc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[a.hc],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&&(a.Tc(),a.Dc(0,"svg",0),a.td(1,bv,1,9,"circle",1),a.td(2,yv,1,7,"circle",2),a.Cc()),2&t&&(a.sd("width",e.diameter,"px")("height",e.diameter,"px"),a.ad("ngSwitch","indeterminate"===e.mode),a.lc("viewBox",e._viewBox),a.kc(1),a.ad("ngSwitchCase",!0),a.kc(1),a.ad("ngSwitchCase",!1))},directives:[ye.x,ye.y],styles:[".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}.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"],encapsulation:2,changeDetection:0}),xv._diameters=new WeakMap,xv),Tv=((wv=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o){var s;return _classCallCheck(this,n),(s=e.call(this,t,i,a,r,o)).mode="indeterminate",s}return n}(Iv)).\u0275fac=function(t){return new(t||wv)(a.yc(a.q),a.yc(Sn),a.yc(ye.e,8),a.yc(Te,8),a.yc(Av))},wv.\u0275cmp=a.sc({type:wv,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(a.sd("width",e.diameter,"px")("height",e.diameter,"px"),a.oc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[a.hc],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&&(a.Tc(),a.Dc(0,"svg",0),a.td(1,_v,1,9,"circle",1),a.td(2,kv,1,7,"circle",2),a.Cc()),2&t&&(a.sd("width",e.diameter,"px")("height",e.diameter,"px"),a.ad("ngSwitch","indeterminate"===e.mode),a.lc("viewBox",e._viewBox),a.kc(1),a.ad("ngSwitchCase",!0),a.kc(1),a.ad("ngSwitchCase",!1))},directives:[ye.x,ye.y],styles:[".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}.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"],encapsulation:2,changeDetection:0}),wv),Pv=((Cv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Cv}),Cv.\u0275inj=a.vc({factory:function(t){return new(t||Cv)},imports:[[Li,ye.c],Li]}),Cv),Rv=["input"],Mv=function(){return{enterDuration:150}},jv=["*"],Lv=new a.v("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Fv=0,zv={provide:lr,useExisting:Object(a.cb)((function(){return Bv})),multi:!0},Nv=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},Bv=((Sv=function(){function t(e){_classCallCheck(this,t),this._changeDetector=e,this._value=null,this._name="mat-radio-group-".concat(Fv++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new a.s}return _createClass(t,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var t=this;this._radios&&this._radios.forEach((function(e){e.name=t.name,e._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var t=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(e){e.checked=t.value===e.value,e.checked&&(t._selected=e)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new Nv(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(t){return t._markForCheck()}))}},{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,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fn(t),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(t){this._required=fn(t),this._markRadiosForCheck()}}]),t}()).\u0275fac=function(t){return new(t||Sv)(a.yc(a.j))},Sv.\u0275dir=a.tc({type:Sv,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,Uv,!0),2&t&&a.gd(i=a.Rc())&&(e._radios=i)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[a.jc([zv])]}),Sv),Vv=Ni(Bi((function t(e){_classCallCheck(this,t),this._elementRef=e}))),Uv=((Dv=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s,l,c){var u;return _classCallCheck(this,n),(u=e.call(this,i))._changeDetector=r,u._focusMonitor=o,u._radioDispatcher=s,u._animationMode=l,u._providerOverride=c,u._uniqueId="mat-radio-".concat(++Fv),u.id=u._uniqueId,u.change=new a.s,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=t,u._removeUniqueSelectionListener=s.listen((function(t,e){t!==u.id&&e===u.name&&(u.checked=!1)})),u}return _createClass(n,[{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){!e&&t.radioGroup&&t.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new Nv(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"_onInputChange",value:function(t){t.stopPropagation();var e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(t){var e=fn(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(t){this._setDisabled(fn(t))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=fn(t)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(t){this._color=t}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),n}(Vv)).\u0275fac=function(t){return new(t||Dv)(a.yc(Bv,8),a.yc(a.q),a.yc(a.j),a.yc(ui),a.yc(Za),a.yc(Te,8),a.yc(Lv,8))},Dv.\u0275cmp=a.sc({type:Dv,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var n;1&t&&a.zd(Rv,!0),2&t&&a.gd(n=a.Rc())&&(e._inputElement=n.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&a.Qc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(a.lc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),a.oc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[a.hc],ngContentSelectors:jv,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(a.Zc(),a.Dc(0,"label",0,1),a.Dc(2,"div",2),a.zc(3,"div",3),a.zc(4,"div",4),a.Dc(5,"input",5,6),a.Qc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),a.Cc(),a.Dc(7,"div",7),a.zc(8,"div",8),a.Cc(),a.Cc(),a.Dc(9,"div",9),a.Dc(10,"span",10),a.vd(11,"\xa0"),a.Cc(),a.Yc(12),a.Cc(),a.Cc()),2&t){var n=a.hd(1);a.lc("for",e.inputId),a.kc(5),a.ad("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),a.lc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),a.kc(2),a.ad("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.cd(18,Mv)),a.kc(2),a.oc("mat-radio-label-before","before"==e.labelPosition)}},directives:[wa],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),Dv),Hv=((Ov=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ov}),Ov.\u0275inj=a.vc({factory:function(t){return new(t||Ov)},imports:[[xa,Li],Li]}),Ov),qv=["trigger"],Gv=["panel"];function Wv(t,e){if(1&t&&(a.Dc(0,"span",8),a.vd(1),a.Cc()),2&t){var n=a.Uc();a.kc(1),a.wd(n.placeholder||"\xa0")}}function Qv(t,e){if(1&t&&(a.Dc(0,"span"),a.vd(1),a.Cc()),2&t){var n=a.Uc(2);a.kc(1),a.wd(n.triggerValue||"\xa0")}}function Yv(t,e){1&t&&a.Yc(0,0,["*ngSwitchCase","true"])}function $v(t,e){if(1&t&&(a.Dc(0,"span",9),a.td(1,Qv,2,1,"span",10),a.td(2,Yv,1,0,void 0,11),a.Cc()),2&t){var n=a.Uc();a.ad("ngSwitch",!!n.customTrigger),a.kc(2),a.ad("ngSwitchCase",!0)}}function Kv(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",12),a.Dc(1,"div",13,14),a.Qc("@transformPanel.done",(function(t){return a.ld(n),a.Uc()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return a.ld(n),a.Uc()._handleKeydown(t)})),a.Yc(3,1),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.ad("@transformPanelWrap",void 0),a.kc(1),a.nc("mat-select-panel ",i._getPanelTheme(),""),a.sd("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),a.ad("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing")}}var Xv,Zv,Jv,tb=[[["mat-select-trigger"]],"*"],eb=["mat-select-trigger","*"],nb={transformPanelWrap:o("transformPanelWrap",[h("* => void",f("@transformPanel",[m()],{optional:!0}))]),transformPanel:o("transformPanel",[d("void",u({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d("showing",u({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d("showing-multiple",u({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),h("void => *",s("120ms cubic-bezier(0, 0, 0.2, 1)")),h("* => void",s("100ms 25ms linear",u({opacity:0})))])},ib=0,ab=new a.v("mat-select-scroll-strategy"),rb=new a.v("MAT_SELECT_CONFIG"),ob={provide:ab,deps:[qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},sb=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},lb=Ni(Bi(Fi(Vi((function t(e,n,i,a,r){_classCallCheck(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=a,this.ngControl=r}))))),cb=((Jv=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Jv)},Jv.\u0275dir=a.tc({type:Jv,selectors:[["mat-select-trigger"]]}),Jv),ub=((Zv=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s,l,c,u,d,h,m,f,p,g){var v;return _classCallCheck(this,n),(v=e.call(this,s,o,c,u,h))._viewportRuler=t,v._changeDetectorRef=i,v._ngZone=r,v._dir=l,v._parentFormField=d,v.ngControl=h,v._liveAnnouncer=p,v._panelOpen=!1,v._required=!1,v._scrollTop=0,v._multiple=!1,v._compareWith=function(t,e){return t===e},v._uid="mat-select-".concat(ib++),v._destroy=new Me.a,v._triggerFontSize=0,v._onChange=function(){},v._onTouched=function(){},v._optionIds="",v._transformOrigin="top",v._panelDoneAnimatingStream=new Me.a,v._offsetY=0,v._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],v._disableOptionCentering=!1,v._focused=!1,v.controlType="mat-select",v.ariaLabel="",v.optionSelectionChanges=Xl((function(){var t=v.options;return t?t.changes.pipe(Ei(t),Sc((function(){return Object(Zl.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.onSelectionChange}))))}))):v._ngZone.onStable.asObservable().pipe(un(1),Sc((function(){return v.optionSelectionChanges})))})),v.openedChange=new a.s,v._openedStream=v.openedChange.pipe(en((function(t){return t})),Object(rn.a)((function(){}))),v._closedStream=v.openedChange.pipe(en((function(t){return!t})),Object(rn.a)((function(){}))),v.selectionChange=new a.s,v.valueChange=new a.s,v.ngControl&&(v.ngControl.valueAccessor=_assertThisInitialized(v)),v._scrollStrategyFactory=f,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(m)||0,v.id=v.id,g&&(null!=g.disableOptionCentering&&(v.disableOptionCentering=g.disableOptionCentering),null!=g.typeaheadDebounceInterval&&(v.typeaheadDebounceInterval=g.typeaheadDebounceInterval)),v}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new Xa(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(uc(),kc(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(kc(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(kc(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(Ei(null),kc(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(un(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.options&&this._setSelectionByValue(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,a=this._keyManager;if(!a.isTyping()&&i&&!Be(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===e||35===e?(36===e?a.setFirstItemActive():a.setLastItemActive(),t.preventDefault()):a.onKeydown(t);var o=this.selected;o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=40===n||38===n,a=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(a||13!==n&&32!==n||!e.activeItem||Be(t))if(!a&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var r=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(r?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(un(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.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-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 Object(a.eb)()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new Yn(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(kc(this._destroy)).subscribe((function(){!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close()})),this._keyManager.change.pipe(kc(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=Object(Zl.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(kc(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Object(Zl.a).apply(void 0,_toConsumableArray(this.options.map((function(t){return t._stateChanges})))).pipe(kc(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(),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 sb(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=ja(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=La(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,a=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);a+=ja(a,this.options,this.optionGroups);var r=n/2;this._scrollTop=this._calculateOverlayScroll(a,r,i),this._offsetY=this._calculateOverlayOffsetY(a,r,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(),a=this.multiple?56:32;if(this.multiple)t=40;else{var r=this._selectionModel.selected[0]||this.options.first;t=r&&r.group?32:16}i||(t*=-1);var o=0-(e.left+t-(i?a:0)),s=e.right+t-n.width+(i?0:a);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,a=this._getItemHeight(),r=(a-this._triggerRect.height)/2,o=Math.floor(256/a);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*a:this._scrollTop===n?(t-(this._getItemCount()-o))*a+(a-(this._getItemCount()*a-256)%a):e-a/2,Math.round(-1*i-r))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,a=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>a?this._adjustPanelUp(o,a):r>i?this._adjustPanelDown(r,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;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"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=fn(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=fn(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=fn(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.writeValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=pn(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}(lb)).\u0275fac=function(t){return new(t||Zv)(a.yc(Wc),a.yc(a.j),a.yc(a.F),a.yc(oa),a.yc(a.q),a.yc(ki,8),a.yc(Bo,8),a.yc(ts,8),a.yc(Fd,8),a.yc(_r,10),a.Nc("tabindex"),a.yc(ab),a.yc(si),a.yc(rb,8))},Zv.\u0275cmp=a.sc({type:Zv,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,cb,!0),a.qc(n,Ma,!0),a.qc(n,Aa,!0)),2&t&&(a.gd(i=a.Rc())&&(e.customTrigger=i.first),a.gd(i=a.Rc())&&(e.options=i),a.gd(i=a.Rc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(a.zd(qv,!0),a.zd(Gv,!0),a.zd(Yu,!0)),2&t&&(a.gd(n=a.Rc())&&(e.trigger=n.first),a.gd(n=a.Rc())&&(e.panel=n.first),a.gd(n=a.Rc())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&a.Qc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(a.lc("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()),a.oc("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:[a.jc([{provide:yd,useExisting:Zv},{provide:Ra,useExisting:Zv}]),a.hc,a.ic],ngContentSelectors:eb,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&&(a.Zc(tb),a.Dc(0,"div",0,1),a.Qc("click",(function(){return e.toggle()})),a.Dc(3,"div",2),a.td(4,Wv,2,1,"span",3),a.td(5,$v,3,2,"span",4),a.Cc(),a.Dc(6,"div",5),a.zc(7,"div",6),a.Cc(),a.Cc(),a.td(8,Kv,4,10,"ng-template",7),a.Qc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=a.hd(1);a.kc(3),a.ad("ngSwitch",e.empty),a.kc(1),a.ad("ngSwitchCase",!0),a.kc(1),a.ad("ngSwitchCase",!1),a.kc(3),a.ad("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Qu,ye.x,ye.y,Yu,ye.z,ye.q],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:[nb.transformPanelWrap,nb.transformPanel]},changeDetection:0}),Zv),db=((Xv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Xv}),Xv.\u0275inj=a.vc({factory:function(t){return new(t||Xv)},providers:[ob],imports:[[ye.c,Ku,Ua,Li],Nd,Ua,Li]}),Xv),hb=["*"];function mb(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",2),a.Qc("click",(function(){return a.ld(n),a.Uc()._onBackdropClicked()})),a.Cc()}if(2&t){var i=a.Uc();a.oc("mat-drawer-shown",i._isShowingBackdrop())}}function fb(t,e){1&t&&(a.Dc(0,"mat-drawer-content"),a.Yc(1,2),a.Cc())}var pb=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],gb=["mat-drawer","mat-drawer-content","*"];function vb(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",2),a.Qc("click",(function(){return a.ld(n),a.Uc()._onBackdropClicked()})),a.Cc()}if(2&t){var i=a.Uc();a.oc("mat-drawer-shown",i._isShowingBackdrop())}}function bb(t,e){1&t&&(a.Dc(0,"mat-sidenav-content",3),a.Yc(1,2),a.Cc())}var yb=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_b=["mat-sidenav","mat-sidenav-content","*"],kb={transformDrawer:o("transform",[d("open, open-instant",u({transform:"none",visibility:"visible"})),d("void",u({"box-shadow":"none",visibility:"hidden"})),h("void => open-instant",s("0ms")),h("void <=> open, open-instant => void",s("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Cb(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var wb,xb,Sb,Ob,Db,Eb,Ab,Ib,Tb,Pb,Rb,Mb=new a.v("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),jb=new a.v("MAT_DRAWER_CONTAINER"),Lb=((Db=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o){var s;return _classCallCheck(this,n),(s=e.call(this,a,r,o))._changeDetectorRef=t,s._container=i,s}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),n}(Gc)).\u0275fac=function(t){return new(t||Db)(a.yc(a.j),a.yc(Object(a.cb)((function(){return zb}))),a.yc(a.q),a.yc(qc),a.yc(a.F))},Db.\u0275cmp=a.sc({type:Db,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.sd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.hc],ngContentSelectors:hb,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},encapsulation:2,changeDetection:0}),Db),Fb=((Ob=function(){function t(e,n,i,r,o,s,l){var c=this;_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=s,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Me.a,this._animationEnd=new Me.a,this._animationState="void",this.openedChange=new a.s(!0),this._destroyed=new Me.a,this.onPositionChanged=new a.s,this._modeChanged=new Me.a,this.openedChange.subscribe((function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Jl(c._elementRef.nativeElement,"keydown").pipe(en((function(t){return 27===t.keyCode&&!c.disableClose&&!Be(t)})),kc(c._destroyed)).subscribe((function(t){return c._ngZone.run((function(){c.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(uc((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)}))}return _createClass(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(e){t.openedChange.pipe(un(1)).subscribe((function(t){return e(t?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=fn(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=fn(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(fn(t))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(en((function(t){return t})),Object(rn.a)((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(en((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),Object(rn.a)((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(en((function(t){return!t})),Object(rn.a)((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(en((function(t){return t.fromState!==t.toState&&"void"===t.toState})),Object(rn.a)((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),t}()).\u0275fac=function(t){return new(t||Ob)(a.yc(a.q),a.yc(ei),a.yc(ui),a.yc(Sn),a.yc(a.F),a.yc(ye.e,8),a.yc(jb,8))},Ob.\u0275cmp=a.sc({type:Ob,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.pc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(a.lc("align",null),a.yd("@transform",e._animationState),a.oc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:hb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.Zc(),a.Dc(0,"div",0),a.Yc(1),a.Cc())},encapsulation:2,data:{animation:[kb.transformDrawer]},changeDetection:0}),Ob),zb=((Sb=function(){function t(e,n,i,r,o){var s=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._dir=e,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new a.K,this.backdropClick=new a.s,this._destroyed=new Me.a,this._doCheckSubject=new Me.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Me.a,e&&e.change.pipe(kc(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(kc(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=l}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Ei(this._allDrawers),kc(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Ei(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Xe(10),kc(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(t){return t.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(t){return t.close()}))}},{key:"updateContentMargins",value:function(){var t=this,e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var i=this._left._width;e+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var a=this._right._width;n+=a,e-=a}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(en((function(t){return t.fromState!==t.toState})),kc(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(kc(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(kc(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(un(1)).subscribe((function(){e._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(kc(Object(Zl.a)(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&Cb("end"),t._end=e):(null!=t._start&&Cb("start"),t._start=e)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=fn(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:fn(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||Sb)(a.yc(ki,8),a.yc(a.q),a.yc(a.F),a.yc(a.j),a.yc(Wc),a.yc(Mb),a.yc(Te,8))},Sb.\u0275cmp=a.sc({type:Sb,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Lb,!0),a.qc(n,Fb,!0)),2&t&&(a.gd(i=a.Rc())&&(e._content=i.first),a.gd(i=a.Rc())&&(e._allDrawers=i))},viewQuery:function(t,e){var n;1&t&&a.zd(Lb,!0),2&t&&a.gd(n=a.Rc())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.jc([{provide:jb,useExisting:Sb}])],ngContentSelectors:gb,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(a.Zc(pb),a.td(0,mb,1,2,"div",0),a.Yc(1),a.Yc(2,1),a.td(3,fb,2,0,"mat-drawer-content",1)),2&t&&(a.ad("ngIf",e.hasBackdrop),a.kc(3),a.ad("ngIf",!e._content))},directives:[ye.t,Lb],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Sb),Nb=((xb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o){return _classCallCheck(this,n),e.call(this,t,i,a,r,o)}return n}(Lb)).\u0275fac=function(t){return new(t||xb)(a.yc(a.j),a.yc(Object(a.cb)((function(){return Ub}))),a.yc(a.q),a.yc(qc),a.yc(a.F))},xb.\u0275cmp=a.sc({type:xb,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.sd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.hc],ngContentSelectors:hb,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},encapsulation:2,changeDetection:0}),xb),Bb=((wb=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _createClass(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=fn(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=pn(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=pn(t)}}]),n}(Fb)).\u0275fac=function(t){return Vb(t||wb)},wb.\u0275cmp=a.sc({type:wb,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.lc("align",null),a.sd("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.oc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.hc],ngContentSelectors:hb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.Zc(),a.Dc(0,"div",0),a.Yc(1),a.Cc())},encapsulation:2,data:{animation:[kb.transformDrawer]},changeDetection:0}),wb),Vb=a.Fc(Bb),Ub=((Eb=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(zb)).\u0275fac=function(t){return Hb(t||Eb)},Eb.\u0275cmp=a.sc({type:Eb,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Nb,!0),a.qc(n,Bb,!0)),2&t&&(a.gd(i=a.Rc())&&(e._content=i.first),a.gd(i=a.Rc())&&(e._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.jc([{provide:jb,useExisting:Eb}]),a.hc],ngContentSelectors:_b,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.Zc(yb),a.td(0,vb,1,2,"div",0),a.Yc(1),a.Yc(2,1),a.td(3,bb,2,0,"mat-sidenav-content",1)),2&t&&(a.ad("ngIf",e.hasBackdrop),a.kc(3),a.ad("ngIf",!e._content))},directives:[ye.t,Nb,Gc],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Eb),Hb=a.Fc(Ub),qb=((Ab=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ab}),Ab.\u0275inj=a.vc({factory:function(t){return new(t||Ab)},imports:[[ye.c,Li,Qc,On],Li]}),Ab),Gb=["thumbContainer"],Wb=["toggleBar"],Qb=["input"],Yb=function(){return{enterDuration:150}},$b=["*"],Kb=new a.v("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),Xb=0,Zb={provide:lr,useExisting:Object(a.cb)((function(){return ey})),multi:!0},Jb=function t(e,n){_classCallCheck(this,t),this.source=e,this.checked=n},ty=Bi(zi(Ni(Fi((function t(e){_classCallCheck(this,t),this._elementRef=e}))),"accent")),ey=((Ib=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o,s,l,c,u){var d;return _classCallCheck(this,n),(d=e.call(this,t))._focusMonitor=i,d._changeDetectorRef=r,d.defaults=l,d._animationMode=c,d._onChange=function(t){},d._onTouched=function(){},d._uniqueId="mat-slide-toggle-".concat(++Xb),d._required=!1,d._checked=!1,d.name=null,d.id=d._uniqueId,d.labelPosition="after",d.ariaLabel=null,d.ariaLabelledby=null,d.change=new a.s,d.toggleChange=new a.s,d.dragChange=new a.s,d.tabIndex=parseInt(o)||0,d}return _createClass(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 Jb(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=fn(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=fn(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),n}(ty)).\u0275fac=function(t){return new(t||Ib)(a.yc(a.q),a.yc(ui),a.yc(a.j),a.Nc("tabindex"),a.yc(a.F),a.yc(Kb),a.yc(Te,8),a.yc(ki,8))},Ib.\u0275cmp=a.sc({type:Ib,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(a.zd(Gb,!0),a.zd(Wb,!0),a.zd(Qb,!0)),2&t&&(a.gd(n=a.Rc())&&(e._thumbEl=n.first),a.gd(n=a.Rc())&&(e._thumbBarEl=n.first),a.gd(n=a.Rc())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(a.Gc("id",e.id),a.lc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),a.oc("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",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[a.jc([Zb]),a.hc],ngContentSelectors:$b,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&&(a.Zc(),a.Dc(0,"label",0,1),a.Dc(2,"div",2,3),a.Dc(4,"input",4,5),a.Qc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),a.Cc(),a.Dc(6,"div",6,7),a.zc(8,"div",8),a.Dc(9,"div",9),a.zc(10,"div",10),a.Cc(),a.Cc(),a.Cc(),a.Dc(11,"span",11,12),a.Qc("cdkObserveContent",(function(){return e._onLabelTextChange()})),a.Dc(13,"span",13),a.vd(14,"\xa0"),a.Cc(),a.Yc(15),a.Cc(),a.Cc()),2&t){var n=a.hd(1),i=a.hd(12);a.lc("for",e.inputId),a.kc(2),a.oc("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),a.kc(2),a.ad("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),a.lc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),a.kc(5),a.ad("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.cd(17,Yb))}},directives:[wa,zn],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}),Ib),ny={provide:Sr,useExisting:Object(a.cb)((function(){return iy})),multi:!0},iy=((Tb=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(qs)).\u0275fac=function(t){return ay(t||Tb)},Tb.\u0275dir=a.tc({type:Tb,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[a.jc([ny]),a.hc]}),Tb),ay=a.Fc(iy),ry=((Rb=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Rb}),Rb.\u0275inj=a.vc({factory:function(t){return new(t||Rb)}}),Rb),oy=((Pb=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Pb}),Pb.\u0275inj=a.vc({factory:function(t){return new(t||Pb)},imports:[[ry,xa,Li,Nn],ry,Li]}),Pb);function sy(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",1),a.Dc(1,"button",2),a.Qc("click",(function(){return a.ld(n),a.Uc().action()})),a.vd(2),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(2),a.wd(i.data.action)}}function ly(t,e){}var cy,uy,dy,hy,my,fy,py,gy=Math.pow(2,31)-1,vy=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._overlayRef=n,this._afterDismissed=new Me.a,this._afterOpened=new Me.a,this._onAction=new Me.a,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe((function(){return i.dismiss()})),e._onExit.subscribe((function(){return i._finishDismiss()}))}return _createClass(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,gy))}},{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}(),by=new a.v("MatSnackBarData"),yy=function t(){_classCallCheck(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},_y=((cy=function(){function t(e,n){_classCallCheck(this,t),this.snackBarRef=e,this.data=n}return _createClass(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}()).\u0275fac=function(t){return new(t||cy)(a.yc(vy),a.yc(by))},cy.\u0275cmp=a.sc({type:cy,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&&(a.Dc(0,"span"),a.vd(1),a.Cc(),a.td(2,sy,3,1,"div",0)),2&t&&(a.kc(1),a.wd(e.data.message),a.kc(1),a.ad("ngIf",e.hasAction))},directives:[ye.t,Ya],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}),cy),ky={snackBarState:o("state",[d("void, hidden",u({transform:"scale(0.8)",opacity:0})),d("visible",u({transform:"scale(1)",opacity:1})),h("* => visible",s("150ms cubic-bezier(0, 0, 0.2, 1)")),h("* => void, * => hidden",s("75ms cubic-bezier(0.4, 0.0, 1, 1)",u({opacity:0})))])},Cy=((dy=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this))._ngZone=t,o._elementRef=i,o._changeDetectorRef=a,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new Me.a,o._onEnter=new Me.a,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return _createClass(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.fromState,n=t.toState;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){var i=this._onEnter;this._ngZone.run((function(){i.next(),i.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(un(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}(iu)).\u0275fac=function(t){return new(t||dy)(a.yc(a.F),a.yc(a.q),a.yc(a.j),a.yc(yy))},dy.\u0275cmp=a.sc({type:dy,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&a.rd(ou,!0),2&t&&a.gd(n=a.Rc())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&a.pc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(a.lc("role",e._role),a.yd("@state",e._animationState))},features:[a.hc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.td(0,ly,0,0,"ng-template",0)},directives:[ou],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:[ky.snackBarState]}}),dy),wy=((uy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:uy}),uy.\u0275inj=a.vc({factory:function(t){return new(t||uy)},imports:[[Ku,cu,ye.c,Ka,Li],Li]}),uy),xy=new a.v("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new yy}}),Sy=((hy=function(){function t(e,n,i,a,r,o){_classCallCheck(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=a,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return _createClass(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||(i.announcementMessage=t),this.openFromComponent(_y,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 uu(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[yy,e]])),i=new tu(Cy,e.viewContainerRef,n),a=t.attach(i);return a.instance.snackBarConfig=e,a.instance}},{key:"_attach",value:function(t,e){var n=Object.assign(Object.assign(Object.assign({},new yy),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),o=new vy(r,i);if(t instanceof a.U){var s=new eu(t,null,{$implicit:n.data,snackBarRef:o});o.instance=r.attachTemplatePortal(s)}else{var l=this._createInjector(n,o),c=new tu(t,void 0,l),u=r.attachComponentPortal(c);o.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(kc(i.detachments())).subscribe((function(t){var e=i.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,n),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 _u;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,a="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,r=!a&&"center"!==t.horizontalPosition;return a?n.left("0"):r?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 uu(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[vy,e],[by,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}()).\u0275fac=function(t){return new(t||hy)(a.Mc(qu),a.Mc(si),a.Mc(a.w),a.Mc(Yg),a.Mc(hy,12),a.Mc(xy))},hy.\u0275prov=Object(a.uc)({factory:function(){return new hy(Object(a.Mc)(qu),Object(a.Mc)(si),Object(a.Mc)(a.t),Object(a.Mc)(Yg),Object(a.Mc)(hy,12),Object(a.Mc)(xy))},token:hy,providedIn:wy}),hy),Oy=["*",[["mat-toolbar-row"]]],Dy=["*","mat-toolbar-row"],Ey=zi((function t(e){_classCallCheck(this,t),this._elementRef=e})),Ay=((py=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||py)},py.\u0275dir=a.tc({type:py,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),py),Iy=((fy=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,t))._platform=i,r._document=a,r}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var t=this;Object(a.eb)()&&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}(Ey)).\u0275fac=function(t){return new(t||fy)(a.yc(a.q),a.yc(Sn),a.yc(ye.e))},fy.\u0275cmp=a.sc({type:fy,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,Ay,!0),2&t&&a.gd(i=a.Rc())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&a.oc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.hc],ngContentSelectors:Dy,decls:2,vars:0,template:function(t,e){1&t&&(a.Zc(Oy),a.Yc(0),a.Yc(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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),fy),Ty=((my=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:my}),my.\u0275inj=a.vc({factory:function(t){return new(t||my)},imports:[[Li],Li]}),my);function Py(t,e){1&t&&a.Yc(0)}var Ry=["*"];function My(t,e){}var jy=function(t){return{animationDuration:t}},Ly=function(t,e){return{value:t,params:e}},Fy=["tabBodyWrapper"],zy=["tabHeader"];function Ny(t,e){}function By(t,e){if(1&t&&a.td(0,Ny,0,0,"ng-template",9),2&t){var n=a.Uc().$implicit;a.ad("cdkPortalOutlet",n.templateLabel)}}function Vy(t,e){if(1&t&&a.vd(0),2&t){var n=a.Uc().$implicit;a.wd(n.textLabel)}}function Uy(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",6),a.Qc("click",(function(){a.ld(n);var t=e.$implicit,i=e.index,r=a.Uc(),o=a.hd(1);return r._handleClick(t,o,i)})),a.Dc(1,"div",7),a.td(2,By,1,1,"ng-template",8),a.td(3,Vy,1,1,"ng-template",8),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit,r=e.index,o=a.Uc();a.oc("mat-tab-label-active",o.selectedIndex==r),a.ad("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),a.lc("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),a.kc(2),a.ad("ngIf",i.templateLabel),a.kc(1),a.ad("ngIf",!i.templateLabel)}}function Hy(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-tab-body",10),a.Qc("_onCentered",(function(){return a.ld(n),a.Uc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return a.ld(n),a.Uc()._setTabBodyWrapperHeight(t)})),a.Cc()}if(2&t){var i=e.$implicit,r=e.index,o=a.Uc();a.oc("mat-tab-body-active",o.selectedIndex==r),a.ad("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),a.lc("aria-labelledby",o._getTabLabelId(r))}}var qy,Gy,Wy,Qy,Yy,$y,Ky,Xy,Zy,Jy,t_,e_,n_,i_,a_,r_,o_,s_,l_=["tabListContainer"],c_=["tabList"],u_=["nextPaginator"],d_=["previousPaginator"],h_=["mat-tab-nav-bar",""],m_=new a.v("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),f_=((Wy=function(){function t(e,n,i,a){_classCallCheck(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=a}return _createClass(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}()).\u0275fac=function(t){return new(t||Wy)(a.yc(a.q),a.yc(a.F),a.yc(m_),a.yc(Te,8))},Wy.\u0275dir=a.tc({type:Wy,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),Wy),p_=((Gy=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||Gy)(a.yc(a.U))},Gy.\u0275dir=a.tc({type:Gy,selectors:[["","matTabContent",""]]}),Gy),g_=((qy=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(ru)).\u0275fac=function(t){return v_(t||qy)},qy.\u0275dir=a.tc({type:qy,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.hc]}),qy),v_=a.Fc(g_),b_=Fi((function t(){_classCallCheck(this,t)})),y_=new a.v("MAT_TAB_GROUP"),__=((Qy=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this))._viewContainerRef=t,a._closestTabGroup=i,a.textLabel="",a._contentPortal=null,a._stateChanges=new Me.a,a.position=null,a.origin=null,a.isActive=!1,a}return _createClass(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 eu(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}(b_)).\u0275fac=function(t){return new(t||Qy)(a.yc(a.X),a.yc(y_,8))},Qy.\u0275cmp=a.sc({type:Qy,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,g_,!0),a.qd(n,p_,!0,a.U)),2&t&&(a.gd(i=a.Rc())&&(e.templateLabel=i.first),a.gd(i=a.Rc())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&a.rd(a.U,!0),2&t&&a.gd(n=a.Rc())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.hc,a.ic],ngContentSelectors:Ry,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.td(0,Py,1,0,"ng-template"))},encapsulation:2}),Qy),k_={translateTab:o("translateTab",[d("center, void, left-origin-center, right-origin-center",u({transform:"none"})),d("left",u({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),d("right",u({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),h("* => left, * => right, left => center, right => center",s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),h("void => left-origin-center",[u({transform:"translate3d(-100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),h("void => right-origin-center",[u({transform:"translate3d(100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},C_=((Ky=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i,r))._host=a,o._centeringSub=je.a.EMPTY,o._leavingSub=je.a.EMPTY,o}return _createClass(n,[{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Ei(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(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(ou)).\u0275fac=function(t){return new(t||Ky)(a.yc(a.n),a.yc(a.X),a.yc(Object(a.cb)((function(){return x_}))),a.yc(ye.e))},Ky.\u0275dir=a.tc({type:Ky,selectors:[["","matTabBodyHost",""]],features:[a.hc]}),Ky),w_=(($y=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=je.a.EMPTY,this._translateTabComplete=new Me.a,this._onCentering=new a.s,this._beforeCentering=new a.s,this._afterLeavingCenter=new a.s,this._onCentered=new a.s(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe((function(t){r._computePositionAnimationState(t),i.markForCheck()}))),this._translateTabComplete.pipe(uc((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 _createClass(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}()).\u0275fac=function(t){return new(t||$y)(a.yc(a.q),a.yc(ki,8),a.yc(a.j))},$y.\u0275dir=a.tc({type:$y,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),$y),x_=((Yy=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){return _classCallCheck(this,n),e.call(this,t,i,a)}return n}(w_)).\u0275fac=function(t){return new(t||Yy)(a.yc(a.q),a.yc(ki,8),a.yc(a.j))},Yy.\u0275cmp=a.sc({type:Yy,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&a.zd(su,!0),2&t&&a.gd(n=a.Rc())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[a.hc],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Dc(0,"div",0,1),a.Qc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),a.td(2,My,0,0,"ng-template",2),a.Cc()),2&t&&a.ad("@translateTab",a.ed(3,Ly,e._position,a.dd(1,jy,e.animationDuration)))},directives:[C_],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:[k_.translateTab]}}),Yy),S_=new a.v("MAT_TABS_CONFIG"),O_=0,D_=function t(){_classCallCheck(this,t)},E_=zi(Ni((function t(e){_classCallCheck(this,t),this._elementRef=e})),"primary"),A_=((Zy=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,r,o){var s;return _classCallCheck(this,n),(s=e.call(this,t))._changeDetectorRef=i,s._animationMode=o,s._tabs=new a.K,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=je.a.EMPTY,s._tabLabelSubscription=je.a.EMPTY,s._dynamicHeight=!1,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new a.s,s.focusChange=new a.s,s.animationDone=new a.s,s.selectedTabChange=new a.s(!0),s._groupId=O_++,s.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",s.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,s}return _createClass(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}),Xy),T_=Fi((function t(){_classCallCheck(this,t)})),P_=((Jy=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this)).elementRef=t,i}return _createClass(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}(T_)).\u0275fac=function(t){return new(t||Jy)(a.yc(a.q))},Jy.\u0275dir=a.tc({type:Jy,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.lc("aria-disabled",!!e.disabled),a.oc("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.hc]}),Jy),R_=An({passive:!0}),M_=((a_=function(){function t(e,n,i,r,o,s,l){var c=this;_classCallCheck(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=s,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Me.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Me.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.s,this.indexFocused=new a.s,o.runOutsideAngular((function(){Jl(e.nativeElement,"mouseleave").pipe(kc(c._destroyed)).subscribe((function(){c._stopInterval()}))}))}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this;Jl(this._previousPaginator.nativeElement,"touchstart",R_).pipe(kc(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),Jl(this._nextPaginator.nativeElement,"touchstart",R_).pipe(kc(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Ne(null),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new $n(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(Zl.a)(e,n,this._items.changes).pipe(kc(this._destroyed)).subscribe((function(){i(),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(kc(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(!Be(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.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,a=this._tabListContainer.nativeElement.offsetWidth,r=e.elementRef.nativeElement,o=r.offsetLeft,s=r.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var l=this.scrollDistance,c=this.scrollDistance+a;nc&&(this.scrollDistance+=i-c+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(),bc(650,100).pipe(kc(Object(Zl.a)(this._stopScrolling,this._destroyed))).subscribe((function(){var e=n._scrollHeader(t),i=e.maxScrollDistance,a=e.distance;(0===a||a>=i)&&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=pn(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}()).\u0275fac=function(t){return new(t||a_)(a.yc(a.q),a.yc(a.j),a.yc(Wc),a.yc(ki,8),a.yc(a.F),a.yc(Sn),a.yc(Te,8))},a_.\u0275dir=a.tc({type:a_,inputs:{disablePagination:"disablePagination"}}),a_),j_=((i_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o,s,l){var c;return _classCallCheck(this,n),(c=e.call(this,t,i,a,r,o,s,l))._disableRipple=!1,c}return _createClass(n,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=fn(t)}}]),n}(M_)).\u0275fac=function(t){return new(t||i_)(a.yc(a.q),a.yc(a.j),a.yc(Wc),a.yc(ki,8),a.yc(a.F),a.yc(Sn),a.yc(Te,8))},i_.\u0275dir=a.tc({type:i_,inputs:{disableRipple:"disableRipple"},features:[a.hc]}),i_),L_=((n_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o,s,l){return _classCallCheck(this,n),e.call(this,t,i,a,r,o,s,l)}return n}(j_)).\u0275fac=function(t){return new(t||n_)(a.yc(a.q),a.yc(a.j),a.yc(Wc),a.yc(ki,8),a.yc(a.F),a.yc(Sn),a.yc(Te,8))},n_.\u0275cmp=a.sc({type:n_,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,P_,!1),2&t&&a.gd(i=a.Rc())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(a.rd(f_,!0),a.rd(l_,!0),a.rd(c_,!0),a.zd(u_,!0),a.zd(d_,!0)),2&t&&(a.gd(n=a.Rc())&&(e._inkBar=n.first),a.gd(n=a.Rc())&&(e._tabListContainer=n.first),a.gd(n=a.Rc())&&(e._tabList=n.first),a.gd(n=a.Rc())&&(e._nextPaginator=n.first),a.gd(n=a.Rc())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.oc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.hc],ngContentSelectors:Ry,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&&(a.Zc(),a.Dc(0,"div",0,1),a.Qc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.zc(2,"div",2),a.Cc(),a.Dc(3,"div",3,4),a.Qc("keydown",(function(t){return e._handleKeydown(t)})),a.Dc(5,"div",5,6),a.Qc("cdkObserveContent",(function(){return e._onContentChanges()})),a.Dc(7,"div",7),a.Yc(8),a.Cc(),a.zc(9,"mat-ink-bar"),a.Cc(),a.Cc(),a.Dc(10,"div",8,9),a.Qc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.zc(12,"div",2),a.Cc()),2&t&&(a.oc("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.ad("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.kc(5),a.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.kc(5),a.oc("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.ad("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[wa,zn,f_],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-labels{justify-content:center}[mat-align-tabs=end] .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}),n_),F_=((e_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o,s,l){var c;return _classCallCheck(this,n),(c=e.call(this,t,r,o,i,a,s,l))._disableRipple=!1,c.color="primary",c}return _createClass(n,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var t=this;this._items.changes.pipe(Ei(null),kc(this._destroyed)).subscribe((function(){t.updateActiveLink()})),_get(_getPrototypeOf(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(t){if(this._items){for(var e=this._items.toArray(),n=0;n-1?1:1e3;return parseFloat(t)*e}function Q_(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}var Y_=An({passive:!0}),$_=An({passive:!1}),K_=function(){function t(e,n,i,a,r,o){var s=this;_classCallCheck(this,t),this._config=n,this._document=i,this._ngZone=a,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Me.a,this._pointerMoveSubscription=je.a.EMPTY,this._pointerUpSubscription=je.a.EMPTY,this._scrollSubscription=je.a.EMPTY,this._resizeSubscription=je.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Me.a,this.started=new Me.a,this.released=new Me.a,this.ended=new Me.a,this.entered=new Me.a,this.exited=new Me.a,this.dropped=new Me.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(t){if(s.beforeStarted.next(),s._handles.length){var e=s._handles.find((function(e){var n=t.target;return!!n&&(n===e||e.contains(n))}));!e||s._disabledHandles.has(e)||s.disabled||s._initializeDragSequence(e,t)}else s.disabled||s._initializeDragSequence(s._rootElement,t)},this._pointerMove=function(t){if(t.preventDefault(),s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var e=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._updatePointerDirectionDelta(e),s._dropContainer)s._updateActiveDropContainer(e);else{var n=s._activeTransform;n.x=e.x-s._pickupPositionOnPage.x+s._passiveTransform.x,n.y=e.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(n.x,n.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(n.x," ").concat(n.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:e,event:t,distance:s._getDragDistance(e),delta:s._pointerDirectionDelta})}))}else{var i=s._getPointerPositionOnPage(t);if(Math.abs(i.x-s._pickupPositionOnPage.x)+Math.abs(i.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(t)))return void s._endDragSequence(t);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(t)})))}}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e),o.registerDragItem(this)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){return this._handles=t.map((function(t){return bn(t)})),this._handles.forEach((function(t){return G_(t,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=bn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,$_),e.addEventListener("touchstart",this._pointerDown,Y_),this._initialTransform=void 0,this._rootElement=e),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?bn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return e._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&tk(this._rootElement),tk(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}},{key:"enableHandle",value:function(t){this._disabledHandles.delete(t)}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&tk(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&tk(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(t){if(this.started.next({source:this}),ek(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var e=this._rootElement,n=e.parentNode,i=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(r,e),e.style.display="none",this._document.body.appendChild(n.replaceChild(a,e)),(o=this._document,o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body).appendChild(i),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var o}},{key:"_initializeDragSequence",value:function(t,e){var n=this;e.stopPropagation();var i=this.isDragging(),a=ek(e),r=!a&&0!==e.button,o=this._rootElement,s=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(i||r||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(Ei(null)).subscribe((function(){n._scrollPosition=n._viewportRuler.getViewportScrollPosition()})),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var c=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var n=e._dropContainer,i=n.getItemIndex(e),a=e._getPointerPositionOnPage(t),r=e._getDragDistance(e._getPointerPositionOnPage(t)),o=n._isOverContainer(a.x,a.y);e.ended.next({source:e,distance:r}),e.dropped.next({item:e,currentIndex:i,previousIndex:e._initialIndex,container:n,previousContainer:e._initialContainer,isPointerOverContainer:o,distance:r}),n.drop(e,i,e._initialContainer,o,r,e._initialIndex),e._dropContainer=e._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(t){var e=this,n=t.x,i=t.y,a=this._initialContainer._getSiblingContainerFromPosition(this,n,i);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,i)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run((function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=a,e._dropContainer.enter(e,n,i,a===e._initialContainer&&a.sortingDisabled?e._initialIndex:void 0),e.entered.next({item:e,container:a,currentIndex:a.getItemIndex(e)})})),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,n,i,this._pointerDirectionDelta),this._preview.style.transform=X_(n-this._pickupPositionInElement.x,i-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,n=this.previewClass,i=e?e.template:null;if(i){var a=e.viewContainer.createEmbeddedView(i,e.context);a.detectChanges(),t=nk(a,this._document),this._previewRef=a,e.matchSize?ik(t,this._rootElement):t.style.transform=X_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;ik(t=Z_(r),r)}return q_(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),G_(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach((function(e){return t.classList.add(e)})):t.classList.add(n)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=X_(e.left,e.top);var n=function(t){var e=getComputedStyle(t),n=Q_(e,"transition-property"),i=n.find((function(t){return"transform"===t||"all"===t}));if(!i)return 0;var a=n.indexOf(i),r=Q_(e,"transition-duration"),o=Q_(e,"transition-delay");return W_(r[a])+W_(o[a])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(e){var i=function n(i){(!i||i.target===t._preview&&"transform"===i.propertyName)&&(t._preview.removeEventListener("transitionend",n),e(),clearTimeout(a))},a=setTimeout(i,1.5*n);t._preview.addEventListener("transitionend",i)}))}))}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,n=e?e.template:null;return n?(this._placeholderRef=e.viewContainer.createEmbeddedView(n,e.context),this._placeholderRef.detectChanges(),t=nk(this._placeholderRef,this._document)):t=Z_(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,a=i?i.getBoundingClientRect():n,r=ek(e)?e.targetTouches[0]:e;return{x:a.left-n.left+(r.pageX-a.left-this._scrollPosition.left),y:a.top-n.top+(r.pageY-a.top-this._scrollPosition.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=ek(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this._getPointerPositionOnPage(t),n=this.constrainPosition?this.constrainPosition(e,this):e,i=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===i?n.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==i||(n.x=this._pickupPositionOnPage.x),this._boundaryRect){var a=this._pickupPositionInElement,r=a.x,o=a.y,s=this._boundaryRect,l=this._previewRect,c=s.top+o,u=s.bottom-(l.height-o);n.x=J_(n.x,s.left+r,s.right-(l.width-r)),n.y=J_(n.y,c,u)}return n}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,n=t.y,i=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-a.x),o=Math.abs(n-a.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=e>a.x?1:-1,a.x=e),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>a.y?1:-1,a.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,G_(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,$_),t.removeEventListener("touchstart",this._pointerDown,Y_)}},{key:"_applyRootElementTransform",value:function(t,e){var n=X_(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,n=t.y;if(!(0===e&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),a=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===a.width&&0===a.height)){var r=i.left-a.left,o=a.right-i.right,s=i.top-a.top,l=a.bottom-i.bottom;i.width>a.width?(r>0&&(e+=r),o>0&&(e-=o)):e=0,i.height>a.height?(s>0&&(n+=s),l>0&&(n-=l)):n=0,e===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:ek(t)?e.touch:e?e.mouse:0}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=fn(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}}]),t}();function X_(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function Z_(t){var e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.querySelectorAll("canvas");e.removeAttribute("id");for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return(!vc(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Ke),new sn.a((function(n){return n.add(e.schedule(H_,t,{subscriber:n,counter:0,period:t})),n}))}(0,ec).pipe(kc(o._stopScrollTimers)).subscribe((function(){var t=o._scrollNode;1===o._verticalScrollDirection?hk(t,-2):2===o._verticalScrollDirection&&hk(t,2),1===o._horizontalScrollDirection?mk(t,-2):2===o._horizontalScrollDirection&&mk(t,2)}))},this.element=bn(e),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this)}return _createClass(t,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var t=this,e=bn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(e){return e._startReceiving(t)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(t,e,n,i){var a;this.start(),null==i?-1===(a=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(a=this._getItemIndexFromPointerPosition(t,e,n)):a=i;var r=this._activeDraggables,o=r.indexOf(t),s=t.getPlaceholderElement(),l=r[a];if(l===t&&(l=r[a+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){var c=l.getRootElement();c.parentElement.insertBefore(s,c),r.splice(a,0,t)}else bn(this.element).appendChild(s),r.push(t);s.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,n,i,a,r){this._reset(),null==r&&(r=n.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:n,isPointerOverContainer:i,distance:a})}},{key:"withItems",value:function(t){var e=this;return this._draggables=t,t.forEach((function(t){return t._withDropContainer(e)})),this.isDragging()&&this._cacheItems(),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=bn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getItemIndex",value:function(t){return this._isDragging?ck("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(e){return e.drag===t})):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,n,i){if(!this.sortingDisabled&&lk(this._clientRect,e,n)){var a=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,n,i);if(!(-1===r&&a.length>0)){var o="horizontal"===this._orientation,s=ck(a,(function(e){return e.drag===t})),l=a[r],c=a[s].clientRect,u=l.clientRect,d=s>r?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y;var h=this._getItemOffsetPx(c,u,d),m=this._getSiblingOffsetPx(s,a,d),f=a.slice();ak(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:t}),a.forEach((function(e,n){if(f[n]!==e){var i=e.drag===t,a=i?h:m,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),sk(e.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),sk(e.clientRect,a,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var n=this;if(!this.autoScrollDisabled){var i,a=0,r=0;if(this._parentPositions.forEach((function(o,s){var l;s!==n._document&&o.clientRect&&!i&&lk(o.clientRect,t,e)&&(l=_slicedToArray(function(t,e,n,i){var a=fk(e,i),r=pk(e,n),o=0,s=0;if(a){var l=t.scrollTop;1===a?l>0&&(o=1):t.scrollHeight-l>t.clientHeight&&(o=2)}if(r){var c=t.scrollLeft;1===r?c>0&&(s=1):t.scrollWidth-c>t.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,t,e),2),a=l[0],r=l[1],(a||r)&&(i=s))})),!a&&!r){var o=this._viewportRuler.getViewportSize(),s=o.width,l=o.height,c={width:s,height:l,top:0,right:s,bottom:l,left:0};a=fk(c,e),r=pk(c,t),i=window}!i||a===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=r,this._scrollNode=i,(a||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var t=this;this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach((function(e){var n=dk(e);e===t.element&&(t._clientRect=n),t._parentPositions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:n})}))}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(t){var e=t.getVisibleElement();return{drag:t,offset:0,clientRect:dk(e)}})).sort((function(e,n){return t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top}))}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=bn(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(t){return t.getRootElement().style.transform=""})),this._siblings.forEach((function(e){return e._stopReceiving(t)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,n){var i="horizontal"===this._orientation,a=e[t].clientRect,r=e[t+-1*n],o=a[i?"width":"height"]*n;if(r){var s=i?"left":"top",l=i?"right":"bottom";-1===n?o-=r.clientRect[s]-a[l]:o+=a[s]-r.clientRect[l]}return o}},{key:"_getItemOffsetPx",value:function(t,e,n){var i="horizontal"===this._orientation,a=i?e.left-t.left:e.top-t.top;return-1===n&&(a+=i?e.width-t.width:e.height-t.height),a}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,n,i){var a=this,r="horizontal"===this._orientation;return ck(this._itemPositions,(function(o,s,l){var c=o.drag,u=o.clientRect;if(c===t)return l.length<2;if(i){var d=r?i.x:i.y;if(c===a._previousSwap.drag&&d===a._previousSwap.delta)return!1}return r?e>=Math.floor(u.left)&&e<=Math.floor(u.right):n>=Math.floor(u.top)&&n<=Math.floor(u.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_updateAfterScroll",value:function(t,e,n){var i=this,a=t===this._document?t.documentElement:t,r=this._parentPositions.get(t).scrollPosition,o=r.top-e,s=r.left-n;this._parentPositions.forEach((function(e,n){e.clientRect&&t!==n&&a.contains(n)&&sk(e.clientRect,o,s)})),this._itemPositions.forEach((function(t){sk(t.clientRect,o,s)})),this._itemPositions.forEach((function(t){var e=t.drag;i._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})),r.top=e,r.left=n}},{key:"_isOverContainer",value:function(t,e){return uk(this._clientRect,t,e)}},{key:"_getSiblingContainerFromPosition",value:function(t,e,n){return this._siblings.find((function(i){return i._canReceive(t,e,n)}))}},{key:"_canReceive",value:function(t,e,n){if(!uk(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;var i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;var a=bn(this.element);return i===a||a.contains(i)}},{key:"_startReceiving",value:function(t){var e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){if(t.isDragging()){var n=e.target;if(t._parentPositions.get(n)){var i,a;if(n===t._document){var r=t._viewportRuler.getViewportScrollPosition();i=r.top,a=r.left}else i=n.scrollTop,a=n.scrollLeft;t._updateAfterScroll(n,i,a)}}else t.isReceiving()&&t._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=Tn(bn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}]),t}();function sk(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function lk(t,e,n){var i=t.top,a=t.right,r=t.bottom,o=t.left,s=.05*t.width,l=.05*t.height;return n>i-l&&no-s&&e=i&&n<=a&&e>=r&&e<=o}function dk(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function hk(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function mk(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function fk(t,e){var n=t.top,i=t.bottom,a=.05*t.height;return e>=n-a&&e<=n+a?1:e>=i-a&&e<=i+a?2:0}function pk(t,e){var n=t.left,i=t.right,a=.05*t.width;return e>=n-a&&e<=n+a?1:e>=i-a&&e<=i+a?2:0}var gk,vk,bk,yk,_k,kk,Ck=An({passive:!1,capture:!0}),wk=((gk=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Me.a,this.pointerUp=new Me.a,this.scroll=new Me.a,this._preventDefaultWhileDragging=function(t){i._activeDragInstances.size&&t.preventDefault()},this._document=n}return _createClass(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,Ck)}))}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,Ck)}},{key:"startDragging",value:function(t,e){var n=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var i=e.type.startsWith("touch"),a=i?"touchend":"mouseup";this._globalListeners.set(i?"touchmove":"mousemove",{handler:function(t){return n.pointerMove.next(t)},options:Ck}).set(a,{handler:function(t){return n.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return n.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ck}),this._ngZone.runOutsideAngular((function(){n._globalListeners.forEach((function(t,e){n._document.addEventListener(e,t.handler,t.options)}))}))}}},{key:"stopDragging",value:function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(t){return this._activeDragInstances.has(t)}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach((function(e){return t.removeDragItem(e)})),this._dropInstances.forEach((function(e){return t.removeDropContainer(e)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach((function(e,n){t._document.removeEventListener(n,e.handler,e.options)})),this._globalListeners.clear()}}]),t}()).\u0275fac=function(t){return new(t||gk)(a.Mc(a.F),a.Mc(ye.e))},gk.\u0275prov=Object(a.uc)({factory:function(){return new gk(Object(a.Mc)(a.F),Object(a.Mc)(ye.e))},token:gk,providedIn:"root"}),gk),xk={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Sk=((vk=function(){function t(e,n,i,a){_classCallCheck(this,t),this._document=e,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=a}return _createClass(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xk;return new K_(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new ok(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}()).\u0275fac=function(t){return new(t||vk)(a.Mc(ye.e),a.Mc(a.F),a.Mc(Wc),a.Mc(wk))},vk.\u0275prov=Object(a.uc)({factory:function(){return new vk(Object(a.Mc)(ye.e),Object(a.Mc)(a.F),Object(a.Mc)(Wc),Object(a.Mc)(wk))},token:vk,providedIn:"root"}),vk),Ok=new a.v("CDK_DRAG_PARENT"),Dk=((_k=function(){function t(e,n){_classCallCheck(this,t),this.element=e,this._stateChanges=new Me.a,this._disabled=!1,this._parentDrag=n,G_(e.nativeElement,!1)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fn(t),this._stateChanges.next(this)}}]),t}()).\u0275fac=function(t){return new(t||_k)(a.yc(a.q),a.yc(Ok,8))},_k.\u0275dir=a.tc({type:_k,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),_k),Ek=((yk=function t(e){_classCallCheck(this,t),this.templateRef=e}).\u0275fac=function(t){return new(t||yk)(a.yc(a.U))},yk.\u0275dir=a.tc({type:yk,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),yk),Ak=((bk=function(){function t(e){_classCallCheck(this,t),this.templateRef=e,this._matchSize=!1}return _createClass(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(t){this._matchSize=fn(t)}}]),t}()).\u0275fac=function(t){return new(t||bk)(a.yc(a.U))},bk.\u0275dir=a.tc({type:bk,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),bk),Ik=new a.v("CDK_DRAG_CONFIG"),Tk=new a.v("CDK_DROP_LIST"),Pk=((kk=function(){function t(e,n,i,r,o,s,l,c,u){var d=this;_classCallCheck(this,t),this.element=e,this.dropContainer=n,this._document=i,this._ngZone=r,this._viewContainerRef=o,this._dir=l,this._changeDetectorRef=u,this._destroyed=new Me.a,this.started=new a.s,this.released=new a.s,this.ended=new a.s,this.entered=new a.s,this.exited=new a.s,this.dropped=new a.s,this.moved=new sn.a((function(t){var e=d._dragRef.moved.pipe(Object(rn.a)((function(t){return{source:d,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}}))).subscribe(t);return function(){e.unsubscribe()}})),this._dragRef=c.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(un(1),kc(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(Ei(t._handles),qe((function(e){var n=e.filter((function(e){return e._parentDrag===t})).map((function(t){return t.element}));t._dragRef.withHandles(n)})),Sc((function(t){return Object(Zl.a).apply(void 0,_toConsumableArray(t.map((function(t){return t._stateChanges.pipe(Ei(t))}))))})),kc(t._destroyed)).subscribe((function(e){var n=t._dragRef,i=e.element.nativeElement;e.disabled?n.disableHandle(i):n.enableHandle(i)})),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)}))}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,n=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?Rk(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+'Currently attached to "'.concat(e.nodeName,'".'));this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return Rk(this.element.nativeElement,t);var e=bn(t);if(Object(a.eb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}},{key:"_syncInputs",value:function(t){var e=this;t.beforeStarted.subscribe((function(){if(!t.isDragging()){var n=e._dir,i=e.dragStartDelay,a=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,r=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,matchSize:e._previewTemplate.matchSize,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:pn(i),t.constrainPosition=e.constrainPosition,t.previewClass=e.previewClass,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(r),n&&t.withDirection(n.value)}}))}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe((function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()})),t.released.subscribe((function(){e.released.emit({source:e})})),t.ended.subscribe((function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:t.container.data,item:e})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,n=t.dragStartDelay,i=t.constrainPosition,a=t.previewClass,r=t.boundaryElement,o=t.draggingDisabled,s=t.rootElementSelector;this.disabled=null!=o&&o,this.dragStartDelay=n||0,e&&(this.lockAxis=e),i&&(this.constrainPosition=i),a&&(this.previewClass=a),r&&(this.boundaryElement=r),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=fn(t),this._dragRef.disabled=this._disabled}}]),t}()).\u0275fac=function(t){return new(t||kk)(a.yc(a.q),a.yc(Tk,12),a.yc(ye.e),a.yc(a.F),a.yc(a.X),a.yc(Ik,8),a.yc(ki,8),a.yc(Sk),a.yc(a.j))},kk.\u0275dir=a.tc({type:kk,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Ak,!0),a.qc(n,Ek,!0),a.qc(n,Dk,!0)),2&t&&(a.gd(i=a.Rc())&&(e._previewTemplate=i.first),a.gd(i=a.Rc())&&(e._placeholderTemplate=i.first),a.gd(i=a.Rc())&&(e._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&a.oc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a.jc([{provide:Ok,useExisting:kk}]),a.ic]}),kk);function Rk(t,e){for(var n=t.parentElement;n;){if(n.matches?n.matches(e):n.msMatchesSelector(e))return n;n=n.parentElement}return null}var Mk,jk,Lk,Fk,zk,Nk,Bk=((Lk=function(){function t(){_classCallCheck(this,t),this._items=new Set,this._disabled=!1}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fn(t)}}]),t}()).\u0275fac=function(t){return new(t||Lk)},Lk.\u0275dir=a.tc({type:Lk,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),Lk),Vk=0,Uk=((jk=function(){function t(e,n,i,r,o,s,l){var c=this;_classCallCheck(this,t),this.element=e,this._changeDetectorRef=i,this._dir=r,this._group=o,this._scrollDispatcher=s,this._destroyed=new Me.a,this.connectedTo=[],this.id="cdk-drop-list-".concat(Vk++),this.enterPredicate=function(){return!0},this.dropped=new a.s,this.entered=new a.s,this.exited=new a.s,this.sorted=new a.s,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(t,e){return c.enterPredicate(t.data,e.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}return _createClass(t,[{key:"ngAfterContentInit",value:function(){if(this._scrollDispatcher){var t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map((function(t){return t.getElementRef().nativeElement}));this._dropListRef.withScrollableParents(t)}}},{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(t,e,n,i){this._dropListRef.drop(t._dragRef,e,n._dropListRef,i,{x:0,y:0})}},{key:"enter",value:function(t,e,n){this._dropListRef.enter(t._dragRef,e,n)}},{key:"exit",value:function(t){this._dropListRef.exit(t._dragRef)}},{key:"getItemIndex",value:function(t){return this._dropListRef.getItemIndex(t._dragRef)}},{key:"_setupInputSyncSubscription",value:function(e){var n=this;this._dir&&this._dir.change.pipe(Ei(this._dir.value),kc(this._destroyed)).subscribe((function(t){return e.withDirection(t)})),e.beforeStarted.subscribe((function(){var i=gn(n.connectedTo).map((function(e){return"string"==typeof e?t._dropLists.find((function(t){return t.id===e})):e}));n._group&&n._group._items.forEach((function(t){-1===i.indexOf(t)&&i.push(t)})),e.disabled=n.disabled,e.lockAxis=n.lockAxis,e.sortingDisabled=fn(n.sortingDisabled),e.autoScrollDisabled=fn(n.autoScrollDisabled),e.connectedTo(i.filter((function(t){return t&&t!==n})).map((function(t){return t._dropListRef}))).withOrientation(n.orientation)}))}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe((function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()})),t.sorted.subscribe((function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),e._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,n=t.draggingDisabled,i=t.sortingDisabled,a=t.listAutoScrollDisabled,r=t.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=a&&a,this.orientation=r||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(t){return t._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=fn(t)}}]),t}()).\u0275fac=function(t){return new(t||jk)(a.yc(a.q),a.yc(Sk),a.yc(a.j),a.yc(ki,8),a.yc(Bk,12),a.yc(qc),a.yc(Ik,8))},jk.\u0275dir=a.tc({type:jk,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Gc("id",e.id),a.oc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a.jc([{provide:Bk,useValue:void 0},{provide:Tk,useExisting:jk}])]}),jk._dropLists=[],jk),Hk=((Mk=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Mk}),Mk.\u0275inj=a.vc({factory:function(t){return new(t||Mk)},providers:[Sk]}),Mk),qk=function(){function t(e,n){_classCallCheck(this,t),this._document=n;var i=this._textarea=this._document.createElement("textarea"),a=i.style;a.opacity="0",a.position="absolute",a.left=a.top="-999em",i.setAttribute("aria-hidden","true"),i.value=e,this._document.body.appendChild(i)}return _createClass(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(vM){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),Gk=((Fk=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),n=e.copy();return e.destroy(),n}},{key:"beginCopy",value:function(t){return new qk(t,this._document)}}]),t}()).\u0275fac=function(t){return new(t||Fk)(a.Mc(ye.e))},Fk.\u0275prov=Object(a.uc)({factory:function(){return new Fk(Object(a.Mc)(ye.e))},token:Fk,providedIn:"root"}),Fk),Wk=new a.v("CKD_COPY_TO_CLIPBOARD_CONFIG"),Qk=((Nk=function(){function t(e,n,i){_classCallCheck(this,t),this._clipboard=e,this._ngZone=n,this.text="",this.attempts=1,this.copied=new a.s,this._deprecatedCopied=this.copied,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}return _createClass(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var n=e,i=this._clipboard.beginCopy(this.text);this._pending.add(i);var a=function e(){var a=i.copy();a||!--n||t._destroyed?(t._currentTimeout=null,t._pending.delete(i),i.destroy(),t.copied.emit(a)):t._currentTimeout=t._ngZone?t._ngZone.runOutsideAngular((function(){return setTimeout(e,1)})):setTimeout(e,1)};a()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((function(t){return t.destroy()})),this._pending.clear(),this._destroyed=!0}}]),t}()).\u0275fac=function(t){return new(t||Nk)(a.yc(Gk),a.yc(a.F),a.yc(Wk,8))},Nk.\u0275dir=a.tc({type:Nk,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&a.Qc("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),Nk),Yk=((zk=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:zk}),zk.\u0275inj=a.vc({factory:function(t){return new(t||zk)}}),zk);function $k(t){return Gm(t)(this)}sn.a.prototype.map=function(t,e){return Object(rn.a)(t,e)(this)},sn.a.prototype.catch=$k,sn.a.prototype._catch=$k,sn.a.throw=Ic,sn.a.throwError=Ic;var Kk={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}},Xk=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i;return _classCallCheck(this,n),(i=e.call(this))._value=t,i}return _createClass(n,[{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(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 Bc.a;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),n}(Me.a),Zk=n("EcEN"),Jk=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}();function tC(t){return function(e){return 0===t?cn():e.lift(new eC(t))}}var eC=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new on}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new nC(t,this.total))}}]),t}(),nC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).total=i,a.ring=new Array,a.count=0,a}return _createClass(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,a=0;a0&&void 0!==arguments[0]?arguments[0]:oC;return function(e){return e.lift(new aC(t))}}var aC=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new rC(t,this.errorFactory))}}]),t}(),rC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).errorFactory=i,a.hasValue=!1,a}return _createClass(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}(Ve.a);function oC(){return new Jk}function sC(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new lC(t))}}var lC=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new cC(t,this.defaultValue))}}]),t}(),cC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).defaultValue=i,a.isEmpty=!0,a}return _createClass(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}(Ve.a),uC=n("SpAZ");function dC(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?en((function(e,n){return t(e,n,i)})):uC.a,tC(1),n?sC(e):iC((function(){return new Jk})))}}function hC(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?en((function(e,n){return t(e,n,i)})):uC.a,un(1),n?sC(e):iC((function(){return new Jk})))}}var mC=function(){function t(e,n,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=n,this.source=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new fC(t,this.predicate,this.thisArg,this.source))}}]),t}(),fC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this,t)).predicate=i,o.thisArg=a,o.source=r,o.index=0,o.thisArg=a||_assertThisInitialized(o),o}return _createClass(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}(Ve.a);function pC(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new vC(t,e,n))}}var gC,vC=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new bC(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),bC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this,t)).accumulator=i,o._seed=a,o.hasSeed=r,o.index=0,o}return _createClass(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}(Ve.a),yC=n("mCNh"),_C=function t(e,n){_classCallCheck(this,t),this.id=e,this.url=n},kC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(a=e.call(this,t,i)).navigationTrigger=r,a.restoredState=o,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(_C),CC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,t,i)).urlAfterRedirects=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(_C),wC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,t,i)).reason=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(_C),xC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a){var r;return _classCallCheck(this,n),(r=e.call(this,t,i)).error=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(_C),SC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=a,o.state=r,o}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(_C),OC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=a,o.state=r,o}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(_C),DC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r,o){var s;return _classCallCheck(this,n),(s=e.call(this,t,i)).urlAfterRedirects=a,s.state=r,s.shouldActivate=o,s}return _createClass(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}(_C),EC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=a,o.state=r,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(_C),AC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,r){var o;return _classCallCheck(this,n),(o=e.call(this,t,i)).urlAfterRedirects=a,o.state=r,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(_C),IC=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),TC=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),PC=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),RC=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),MC=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),jC=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),LC=function(){function t(e,n,i){_classCallCheck(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),FC=((gC=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||gC)},gC.\u0275cmp=a.sc({type:gC,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&a.zc(0,"router-outlet")},directives:function(){return[Yx]},encapsulation:2}),gC),zC=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return this.params.hasOwnProperty(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 NC(t){return new zC(t)}function BC(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function VC(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length1&&void 0!==arguments[1]?arguments[1]:"",n=0;n-1})):t===e}function $C(t){return Array.prototype.concat.apply([],t)}function KC(t){return t.length>0?t[t.length-1]:null}function XC(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ZC(t){return Object(a.Mb)(t)?t:Object(a.Nb)(t)?Object(er.a)(Promise.resolve(t)):Ne(t)}function JC(t,e,n){return n?function(t,e){return QC(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!iw(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 YC(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,a){if(n.segments.length>a.length)return!!iw(n.segments.slice(0,a.length),a)&&!i.hasChildren();if(n.segments.length===a.length){if(!iw(n.segments,a))return!1;for(var r in i.children){if(!n.children[r])return!1;if(!t(n.children[r],i.children[r]))return!1}return!0}var o=a.slice(0,n.segments.length),s=a.slice(n.segments.length);return!!iw(n.segments,o)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var tw=function(){function t(e,n,i){_classCallCheck(this,t),this.root=e,this.queryParams=n,this.fragment=i}return _createClass(t,[{key:"toString",value:function(){return sw.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=NC(this.queryParams)),this._queryParamMap}}]),t}(),ew=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.segments=e,this.children=n,this.parent=null,XC(n,(function(t,e){return t.parent=i}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return lw(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),nw=function(){function t(e,n){_classCallCheck(this,t),this.path=e,this.parameters=n}return _createClass(t,[{key:"toString",value:function(){return fw(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=NC(this.parameters)),this._parameterMap}}]),t}();function iw(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function aw(t,e){var n=[];return XC(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),XC(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var rw=function t(){_classCallCheck(this,t)},ow=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new yw(t);return new tw(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i;return"".concat("/".concat(function t(e,n){if(!e.hasChildren())return lw(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",a=[];return XC(e.children,(function(e,n){"primary"!==n&&a.push("".concat(n,":").concat(t(e,!1)))})),a.length>0?"".concat(i,"(").concat(a.join("//"),")"):i}var r=aw(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:["".concat(i,":").concat(t(n,!1))]}));return"".concat(lw(e),"/(").concat(r.join("//"),")")}(t.root,!0)),(n=t.queryParams,i=Object.keys(n).map((function(t){var e=n[t];return Array.isArray(e)?e.map((function(e){return"".concat(uw(t),"=").concat(uw(e))})).join("&"):"".concat(uw(t),"=").concat(uw(e))})),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),sw=new ow;function lw(t){return t.segments.map((function(t){return fw(t)})).join("/")}function cw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function uw(t){return cw(t).replace(/%3B/gi,";")}function dw(t){return cw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hw(t){return decodeURIComponent(t)}function mw(t){return hw(t.replace(/\+/g,"%20"))}function fw(t){return"".concat(dw(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(dw(t),"=").concat(dw(e[t]))})).join("")));var e}var pw=/^[^\/()?;=#]+/;function gw(t){var e=t.match(pw);return e?e[0]:""}var vw=/^[^=?&#]+/,bw=/^[^?&#]+/,yw=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ew([],{}):new ew([],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 ew(t,e)),n}},{key:"parseSegment",value:function(){var t=gw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new nw(hw(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=gw(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=gw(this.remaining);i&&(n=i,this.capture(n))}t[hw(e)]=hw(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(vw);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(bw);return e?e[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var a=mw(e),r=mw(n);if(t.hasOwnProperty(a)){var o=t[a];Array.isArray(o)||(o=[o],t[a]=o),o.push(r)}else t[a]=r}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=gw(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var a=void 0;n.indexOf(":")>-1?(a=n.substr(0,n.indexOf(":")),this.capture(a),this.capture(":")):t&&(a="primary");var r=this.parseChildren();e[a]=1===Object.keys(r).length?r.primary:new ew([],r),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}(),_w=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(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=kw(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=kw(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Cw(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 Cw(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function kw(t,e){if(t===e.value)return e;var n,i=_createForOfIteratorHelper(e.children);try{for(i.s();!(n=i.n()).done;){var a=kw(t,n.value);if(a)return a}}catch(r){i.e(r)}finally{i.f()}return null}function Cw(t,e){if(t===e.value)return[e];var n,i=_createForOfIteratorHelper(e.children);try{for(i.s();!(n=i.n()).done;){var a=Cw(t,n.value);if(a.length)return a.unshift(e),a}}catch(r){i.e(r)}finally{i.f()}return[]}var ww=function(){function t(e,n){_classCallCheck(this,t),this.value=e,this.children=n}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function xw(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Sw=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).snapshot=i,Tw(_assertThisInitialized(a),t),a}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(_w);function Ow(t,e){var n=function(t,e){var n=new Aw([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Iw("",new ww(n,[]))}(t,e),i=new Xk([new nw("",{})]),a=new Xk({}),r=new Xk({}),o=new Xk({}),s=new Xk(""),l=new Dw(i,a,o,s,r,"primary",e,n.root);return l.snapshot=n.root,new Sw(new ww(l,[]),n)}var Dw=function(){function t(e,n,i,a,r,o,s,l){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=l}return _createClass(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(Object(rn.a)((function(t){return NC(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(rn.a)((function(t){return NC(t)})))),this._queryParamMap}}]),t}();function Ew(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 a=n[i],r=n[i-1];if(a.routeConfig&&""===a.routeConfig.path)i--;else{if(r.component)break;i--}}return function(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:{}})}(n.slice(i))}var Aw=function(){function t(e,n,i,a,r,o,s,l,c,u,d){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}return _createClass(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{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=NC(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=NC(this.queryParams)),this._queryParamMap}}]),t}(),Iw=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,i)).url=t,Tw(_assertThisInitialized(a),i),a}return _createClass(n,[{key:"toString",value:function(){return Pw(this._root)}}]),n}(_w);function Tw(t,e){e.value._routerState=t,e.children.forEach((function(e){return Tw(t,e)}))}function Pw(t){var e=t.children.length>0?" { ".concat(t.children.map(Pw).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Rw(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,QC(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),QC(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&jw(i[0]))throw new Error("Root segment cannot have matrix parameters");var a=i.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(a&&a!==KC(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),zw=function t(e,n,i){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function Nw(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function Bw(t,e,n){if(t||(t=new ew([],{})),0===t.segments.length&&t.hasChildren())return Vw(t,e,n);var i=function(t,e,n){for(var i=0,a=e,r={match:!1,pathIndex:0,commandIndex:0};a=n.length)return r;var o=t.segments[a],s=Nw(n[i]),l=i0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Gw(s,l,o))return r;i+=2}else{if(!Gw(s,{},o))return r;i++}a++}return{match:!0,pathIndex:a,commandIndex:i}}(t,e,n),a=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new ew([],{primary:t}):t;return new tw(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(rn.a)((function(t){return new ew([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){var i=this;return function(n,a){if(0===Object.keys(n).length)return Ne({});var r=[],o=[],s={};return XC(n,(function(n,a){var l,c,u=(l=a,c=n,i.expandSegmentGroup(t,e,c,l)).pipe(Object(rn.a)((function(t){return s[a]=t})));"primary"===a?r.push(u):o.push(u)})),Ne.apply(null,r.concat(o)).pipe(Oi(),dC(),Object(rn.a)((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,i,a,r){var o=this;return Ne.apply(void 0,_toConsumableArray(n)).pipe(Object(rn.a)((function(s){return o.expandSegmentAgainstRoute(t,e,n,s,i,a,r).pipe(Gm((function(t){if(t instanceof Kw)return Ne(null);throw t})))})),Oi(),hC((function(t){return!!t})),Gm((function(t,n){if(t instanceof Jk||"EmptyError"===t.name){if(o.noLeftoversInUrl(e,i,a))return Ne(new ew([],{}));throw new Kw(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,a,r,o){return rx(i)!==r?Zw(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,a,r):Zw(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,a,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,a,r)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var a=this,r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Jw(r):this.lineralizeSegments(n,r).pipe(Object(Zm.a)((function(n){var r=new ew(n,{});return a.expandSegment(t,r,e,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,a,r){var o=this,s=nx(e,i,a),l=s.matched,c=s.consumedSegments,u=s.lastChild,d=s.positionalParamSegments;if(!l)return Zw(e);var h=this.applyRedirectCommands(c,i.redirectTo,d);return i.redirectTo.startsWith("/")?Jw(h):this.lineralizeSegments(i,h).pipe(Object(Zm.a)((function(i){return o.expandSegment(t,e,n,i.concat(a.slice(u)),r,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i){var a=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(rn.a)((function(t){return n._loadedConfig=t,new ew(i,{})}))):Ne(new ew(i,{}));var r=nx(e,n,i),o=r.matched,s=r.consumedSegments,l=r.lastChild;if(!o)return Zw(e);var c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(Zm.a)((function(t){var n=t.module,i=t.routes,r=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return ax(t,e,n)&&"primary"!==rx(n)}))}(t,n,i)?{segmentGroup:ix(new ew(e,function(t,e){var n={};n.primary=e;var i,a=_createForOfIteratorHelper(t);try{for(a.s();!(i=a.n()).done;){var r=i.value;""===r.path&&"primary"!==rx(r)&&(n[rx(r)]=new ew([],{}))}}catch(o){a.e(o)}finally{a.f()}return n}(i,new ew(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return ax(t,e,n)}))}(t,n,i)?{segmentGroup:ix(new ew(t.segments,function(t,e,n,i){var a,r={},o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;ax(t,e,s)&&!i[rx(s)]&&(r[rx(s)]=new ew([],{}))}}catch(l){o.e(l)}finally{o.f()}return Object.assign(Object.assign({},i),r)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,c,i),o=r.segmentGroup,l=r.slicedSegments;return 0===l.length&&o.hasChildren()?a.expandChildren(n,i,o).pipe(Object(rn.a)((function(t){return new ew(s,t)}))):0===i.length&&0===l.length?Ne(new ew(s,{})):a.expandSegment(n,o,i,l,"primary",!0).pipe(Object(rn.a)((function(t){return new ew(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Ne(new UC(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ne(e._loadedConfig):function(t,e,n){var i,a=e.canLoad;return a&&0!==a.length?Object(er.a)(a).pipe(Object(rn.a)((function(i){var a,r=t.get(i);if(function(t){return t&&Yw(t.canLoad)}(r))a=r.canLoad(e,n);else{if(!Yw(r))throw new Error("Invalid CanLoad guard");a=r(e,n)}return ZC(a)}))).pipe(Oi(),(i=function(t){return!0===t},function(t){return t.lift(new mC(i,void 0,t))})):Ne(!0)}(t.injector,e,n).pipe(Object(Zm.a)((function(n){return n?i.configLoader.load(t.injector,e).pipe(Object(rn.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new sn.a((function(e){return e.error(BC("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Ne(new UC([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Ne(n);if(i.numberOfChildren>1||!i.children.primary)return tx(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 a=this.createSegmentGroup(t,e.root,n,i);return new tw(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return XC(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var a=t.substring(1);n[i]=e[a]}else n[i]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var a=this,r=this.createSegments(t,e.segments,n,i),o={};return XC(e.children,(function(e,r){o[r]=a.createSegmentGroup(t,e,n,i)})),new ew(r,o)}},{key:"createSegments",value:function(t,e,n,i){var a=this;return e.map((function(e){return e.path.startsWith(":")?a.findPosParam(t,e,i):a.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,a=_createForOfIteratorHelper(e);try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r.path===t.path)return e.splice(i),r;i++}}catch(o){a.e(o)}finally{a.f()}return t}}]),t}();function nx(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||VC)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ix(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new ew(t.segments.concat(e.segments),e.children)}return t}function ax(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function rx(t){return t.outlet||"primary"}var ox=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},sx=function t(e,n){_classCallCheck(this,t),this.component=e,this.route=n};function lx(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 cx(t,e,n){var i=xw(t),a=t.value;XC(i,(function(t,i){cx(t,a.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new sx(a.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,a))}var ux=Symbol("INITIAL_VALUE");function dx(){return Sc((function(t){return Fg.apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(un(1),Ei(ux))})))).pipe(pC((function(t,e){var n=!1;return e.reduce((function(t,i,a){if(t!==ux)return t;if(i===ux&&(n=!0),!n){if(!1===i)return i;if(a===e.length-1||$w(i))return i}return t}),t)}),ux),en((function(t){return t!==ux})),Object(rn.a)((function(t){return $w(t)?t:!0===t})),un(1))}))}function hx(t,e){return null!==t&&e&&e(new MC(t)),Ne(!0)}function mx(t,e){return null!==t&&e&&e(new PC(t)),Ne(!0)}function fx(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Ne(i.map((function(i){return Xl((function(){var a,r=lx(i,e,n);if(function(t){return t&&Yw(t.canActivate)}(r))a=ZC(r.canActivate(e,t));else{if(!Yw(r))throw new Error("Invalid CanActivate guard");a=ZC(r(e,t))}return a.pipe(hC())}))}))).pipe(dx()):Ne(!0)}function px(t,e,n){var i=e[e.length-1],a=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 Xl((function(){return Ne(e.guards.map((function(a){var r,o=lx(a,e.node,n);if(function(t){return t&&Yw(t.canActivateChild)}(o))r=ZC(o.canActivateChild(i,t));else{if(!Yw(o))throw new Error("Invalid CanActivateChild guard");r=ZC(o(i,t))}return r.pipe(hC())}))).pipe(dx())}))}));return Ne(a).pipe(dx())}var gx=function t(){_classCallCheck(this,t)},vx=function(){function t(e,n,i,a,r,o){_classCallCheck(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return _createClass(t,[{key:"recognize",value:function(){try{var t=_x(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Aw([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ww(n,e),a=new Iw(this.url,i);return this.inheritParamsAndData(a._root),Ne(a)}catch(r){return new sn.a((function(t){return t.error(r)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=Ew(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,a=aw(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},a.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),a=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(a,"'."))}n[t.value.outlet]=t.value})),a.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),a}},{key:"processSegment",value:function(t,e,n,i){var a,r=_createForOfIteratorHelper(t);try{for(r.s();!(a=r.n()).done;){var o=a.value;try{return this.processSegmentAgainstRoute(o,e,n,i)}catch(s){if(!(s instanceof gx))throw s}}}catch(l){r.e(l)}finally{r.f()}if(this.noLeftoversInUrl(e,n,i))return[];throw new gx}},{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 gx;if((t.outlet||"primary")!==i)throw new gx;var a,r=[],o=[];if("**"===t.path){var s=n.length>0?KC(n).parameters:{};a=new Aw(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wx(t),i,t.component,t,bx(e),yx(e)+n.length,xx(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new gx;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||VC)(n,t,e);if(!i)throw new gx;var a={};XC(i.posParams,(function(t,e){a[e]=t.path}));var r=i.consumed.length>0?Object.assign(Object.assign({},a),i.consumed[i.consumed.length-1].parameters):a;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=l.consumedSegments,o=n.slice(l.lastChild),a=new Aw(r,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wx(t),i,t.component,t,bx(e),yx(e)+r.length,xx(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),u=_x(e,r,o,c,this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var m=this.processChildren(c,d);return[new ww(a,m)]}if(0===c.length&&0===h.length)return[new ww(a,[])];var f=this.processSegment(c,d,h,"primary");return[new ww(a,f)]}}]),t}();function bx(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function yx(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 _x(t,e,n,i,a){if(n.length>0&&function(t,e,n){return n.some((function(n){return kx(t,e,n)&&"primary"!==Cx(n)}))}(t,n,i)){var r=new ew(e,function(t,e,n,i){var a={};a.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var r,o=_createForOfIteratorHelper(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(""===s.path&&"primary"!==Cx(s)){var l=new ew([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,a[Cx(s)]=l}}}catch(c){o.e(c)}finally{o.f()}return a}(t,e,i,new ew(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return kx(t,e,n)}))}(t,n,i)){var o=new ew(t.segments,function(t,e,n,i,a,r){var o,s={},l=_createForOfIteratorHelper(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(kx(t,n,c)&&!a[Cx(c)]){var u=new ew([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===r?t.segments.length:e.length,s[Cx(c)]=u}}}catch(d){l.e(d)}finally{l.f()}return Object.assign(Object.assign({},a),s)}(t,e,n,i,t.children,a));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new ew(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function kx(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Cx(t){return t.outlet||"primary"}function wx(t){return t.data||{}}function xx(t){return t.resolve||{}}function Sx(t,e,n,i){var a=lx(t,e,i);return ZC(a.resolve?a.resolve(e,n):a(e,n))}function Ox(t){return function(e){return e.pipe(Sc((function(e){var n=t(e);return n?Object(er.a)(n).pipe(Object(rn.a)((function(){return e}))):Object(er.a)([e])})))}}var Dx=function(){function t(){_classCallCheck(this,t)}return _createClass(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}(),Ex=new a.v("ROUTES"),Ax=function(){function t(e,n,i,a){_classCallCheck(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=a}return _createClass(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(rn.a)((function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var a=i.create(t);return new UC($C(a.injector.get(Ex)).map(WC),a)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(er.a)(this.loader.load(t)):ZC(t()).pipe(Object(Zm.a)((function(t){return t instanceof a.B?Ne(t):Object(er.a)(e.compiler.compileModuleAsync(t))})))}}]),t}(),Ix=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Tx(t){throw t}function Px(t,e,n){return e.parse("/")}function Rx(t,e){return Ne(null)}var Mx,jx,Lx,Fx=((Lx=function(){function t(e,n,i,r,o,s,l,c){var u=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Me.a,this.errorHandler=Tx,this.malformedUriErrorHandler=Px,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Rx,afterPreactivation:Rx},this.urlHandlingStrategy=new Ix,this.routeReuseStrategy=new Dx,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(a.D),this.console=o.get(a.ib);var d=o.get(a.F);this.isNgZoneEnabled=d instanceof a.F,this.resetConfig(c),this.currentUrlTree=new tw(new ew([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ax(s,l,(function(t){return u.triggerEvent(new IC(t))}),(function(t){return u.triggerEvent(new TC(t))})),this.routerState=Ow(this.currentUrlTree,this.rootComponentType),this.transitions=new Xk({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(en((function(t){return 0!==t.id})),Object(rn.a)((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),Sc((function(t){var i,a,r,o=!1,s=!1;return Ne(t).pipe(qe((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Sc((function(t){var i,a,r,o,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ne(t).pipe(Sc((function(t){var i=e.transitions.getValue();return n.next(new kC(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?ln:[t]})),Sc((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,a=e.configLoader,r=e.urlSerializer,o=e.config,function(t){return t.pipe(Sc((function(t){return function(t,e,n,i,a){return new ex(t,e,n,i,a).apply()}(i,a,r,t.extractedUrl,o).pipe(Object(rn.a)((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),qe((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,i,a,r){return function(i){return i.pipe(Object(Zm.a)((function(i){return function(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new vx(t,e,n,i,a,r).recognize()}(t,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,e.serializeUrl(o)),a,r).pipe(Object(rn.a)((function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),qe((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),qe((function(t){var i=new SC(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 l=t.id,c=t.extractedUrl,u=t.source,d=t.restoredState,h=t.extras,m=new kC(l,e.serializeUrl(c),u,d);n.next(m);var f=Ow(c,e.rootComponentType).snapshot;return Ne(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:c,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ln})),Ox((function(t){var n=t.targetSnapshot,i=t.id,a=t.extractedUrl,r=t.rawUrl,o=t.extras,s=o.skipLocationChange,l=o.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!l})})),qe((function(t){var n=new OC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),Object(rn.a)((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,a=e.rootContexts,r=n._root,function t(e,n,i,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=xw(n);return e.children.forEach((function(e){!function(e,n,i,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,s=n?n.value:null,l=i?i.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!iw(t.url,e.url);case"pathParamsOrQueryParamsChange":return!iw(t.url,e.url)||!QC(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mw(t,e)||!QC(t.queryParams,e.queryParams);case"paramsChange":default:return!Mw(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ox(a)):(o.data=s.data,o._resolvedData=s._resolvedData),t(e,n,o.component?l?l.children:null:i,a,r),c&&r.canDeactivateChecks.push(new sx(l&&l.outlet&&l.outlet.component||null,s))}else s&&cx(n,l,r),r.canActivateChecks.push(new ox(a)),t(e,null,o.component?l?l.children:null:i,a,r)}(e,o[e.value.outlet],i,a.concat([e.value]),r),delete o[e.value.outlet]})),XC(o,(function(t,e){return cx(t,i.getContext(e),r)})),r}(r,i?i._root:null,a,[r.value]))});var n,i,a,r})),function(t,e){return function(n){return n.pipe(Object(Zm.a)((function(n){var i=n.targetSnapshot,a=n.currentSnapshot,r=n.guards,o=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===o.length?Ne(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(er.a)(t).pipe(Object(Zm.a)((function(t){return function(t,e,n,i,a){var r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Ne(r.map((function(r){var o,s=lx(r,e,a);if(function(t){return t&&Yw(t.canDeactivate)}(s))o=ZC(s.canDeactivate(t,e,n,i));else{if(!Yw(s))throw new Error("Invalid CanDeactivate guard");o=ZC(s(t,e,n,i))}return o.pipe(hC())}))).pipe(dx()):Ne(!0)}(t.component,t.route,n,e,i)})),hC((function(t){return!0!==t}),!0))}(s,i,a,t).pipe(Object(Zm.a)((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Object(er.a)(e).pipe(Jm((function(e){return Object(er.a)([mx(e.route.parent,i),hx(e.route,i),px(t,e.path,n),fx(t,e.route,n)]).pipe(Oi(),hC((function(t){return!0!==t}),!0))})),hC((function(t){return!0!==t}),!0))}(i,o,t,e):Ne(n)})),Object(rn.a)((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),qe((function(t){if($w(t.guardsResult)){var n=BC('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),qe((function(t){var n=new DC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),en((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new wC(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),Ox((function(t){if(t.guards.canActivateChecks.length)return Ne(t).pipe(qe((function(t){var n=new EC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(Object(Zm.a)((function(t){var e=t.targetSnapshot,a=t.guards.canActivateChecks;return a.length?Object(er.a)(a).pipe(Jm((function(t){return function(t,e,n,i){return function(t,e,n,i){var a=Object.keys(t);if(0===a.length)return Ne({});if(1===a.length){var r=a[0];return Sx(t[r],e,n,i).pipe(Object(rn.a)((function(t){return _defineProperty({},r,t)})))}var o={};return Object(er.a)(a).pipe(Object(Zm.a)((function(a){return Sx(t[a],e,n,i).pipe(Object(rn.a)((function(t){return o[a]=t,t})))}))).pipe(dC(),Object(rn.a)((function(){return o})))}(t._resolve,t,e,i).pipe(Object(rn.a)((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ew(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return Object(yC.a)(pC(t,e),tC(1),sC(e))(n)}:function(e){return Object(yC.a)(pC((function(e,n,i){return t(e,n,i+1)})),tC(1))(e)}}((function(t,e){return t})),Object(rn.a)((function(e){return t}))):Ne(t)})))}),qe((function(t){var n=new AC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),Ox((function(t){var n=t.targetSnapshot,i=t.id,a=t.extractedUrl,r=t.rawUrl,o=t.extras,s=o.skipLocationChange,l=o.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!l})})),Object(rn.a)((function(t){var n=function(t,e,n){var i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){var a=i.value;a._futureSnapshot=n.value;var r=function(e,n,i){return n.children.map((function(n){var a,r=_createForOfIteratorHelper(i.children);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(e.shouldReuseRoute(o.value.snapshot,n.value))return t(e,n,o)}}catch(s){r.e(s)}finally{r.f()}return t(e,n)}))}(e,n,i);return new ww(a,r)}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,o=e.preserveQueryParams,s=e.queryParamsHandling,l=e.preserveFragment;Object(a.eb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:r,d=null;if(s)switch(s){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}else d=o?this.currentUrlTree.queryParams:i||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,i,a){if(0===n.length)return Lw(e.root,e.root,e,i,a);var r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Fw(!0,0,t);var e=0,n=!1,i=t.reduce((function(t,i,a){if("object"==typeof i&&null!=i){if(i.outlets){var r={};return XC(i.outlets,(function(t,e){r[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:r}])}if(i.segmentPath)return[].concat(_toConsumableArray(t),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(t),[i]):0===a?(i.split("/").forEach((function(i,a){0==a&&"."===i||(0==a&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):[].concat(_toConsumableArray(t),[i])}),[]);return new Fw(n,e,i)}(n);if(r.toRoot())return Lw(e.root,new ew([],{}),e,i,a);var o=function(t,e,n){if(t.isAbsolute)return new zw(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new zw(n.snapshot._urlSegment,!0,0);var i=jw(t.commands[0])?0:1;return function(t,e,n){for(var i=t,a=e,r=n;r>a;){if(r-=a,!(i=i.parent))throw new Error("Invalid number of '../'");a=i.segments.length}return new zw(i,!1,a-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),s=o.processChildren?Vw(o.segmentGroup,o.index,r.commands):Bw(o.segmentGroup,o.index,r.commands);return Lw(o.segmentGroup,s,e,i,a)}(c,this.currentUrlTree,t,d,u)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(a.eb)()&&this.isNgZoneEnabled&&!a.F.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=$w(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 function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(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 _createClass(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 kC?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof CC&&(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 LC&&(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 LC(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}()).\u0275fac=function(t){a.Pc()},Hx.\u0275dir=a.tc({type:Hx}),Hx),tS=new a.v("ROUTER_CONFIGURATION"),eS=new a.v("ROUTER_FORROOT_GUARD"),nS=[ye.n,{provide:rw,useClass:ow},{provide:Fx,useFactory:function(t,e,n,i,a,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,u=new Fx(null,t,e,n,i,a,r,$C(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=Object(ye.N)();u.events.subscribe((function(t){d.logGroup("Router Event: ".concat(t.constructor.name)),d.log(t.toString()),d.log(t),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[rw,Qx,ye.n,a.w,a.C,a.k,Ex,tS,[function(){return function t(){_classCallCheck(this,t)}}(),new a.G],[function(){return function t(){_classCallCheck(this,t)}}(),new a.G]]},Qx,{provide:Dw,useFactory:function(t){return t.routerState.root},deps:[Fx]},{provide:a.C,useClass:a.R},Zx,Xx,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(Gm((function(){return Ne(null)})))}}]),t}(),{provide:tS,useValue:{enableTracing:!1}}];function iS(){return new a.E("Router",Fx)}var aS,rS=((aS=function(){function t(e,n){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[nS,cS(e),{provide:eS,useFactory:lS,deps:[[Fx,new a.G,new a.Q]]},{provide:tS,useValue:n||{}},{provide:ye.o,useFactory:sS,deps:[ye.D,[new a.u(ye.a),new a.G],tS]},{provide:Jx,useFactory:oS,deps:[Fx,ye.H,tS]},{provide:Kx,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Xx},{provide:a.E,multi:!0,useFactory:iS},[dS,{provide:a.d,multi:!0,useFactory:hS,deps:[dS]},{provide:pS,useFactory:mS,deps:[dS]},{provide:a.b,multi:!0,useExisting:pS}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[cS(e)]}}}]),t}()).\u0275mod=a.wc({type:aS}),aS.\u0275inj=a.vc({factory:function(t){return new(t||aS)(a.Mc(eS,8),a.Mc(Fx,8))}}),aS);function oS(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Jx(t,e,n)}function sS(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new ye.h(t,e):new ye.B(t,e)}function lS(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function cS(t){return[{provide:a.a,multi:!0,useValue:t},{provide:Ex,multi:!0,useValue:t}]}var uS,dS=((uS=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Me.a}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(ye.m,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(Fx),a=t.injector.get(tS);if(t.isLegacyDisabled(a)||t.isLegacyEnabled(a))e(!0);else if("disabled"===a.initialNavigation)i.setUpLocationChangeListener(),e(!0);else{if("enabled"!==a.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(a.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return t.initNavigation?Ne(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(tS),n=this.injector.get(Zx),i=this.injector.get(Jx),r=this.injector.get(Fx),o=this.injector.get(a.g);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.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}()).\u0275fac=function(t){return new(t||uS)(a.Mc(a.w))},uS.\u0275prov=a.uc({token:uS,factory:uS.\u0275fac}),uS);function hS(t){return t.appInitializer.bind(t)}function mS(t){return t.bootstrapListener.bind(t)}var fS,pS=new a.v("Router Initializer"),gS=((fS=function(){function t(e,n,i){_classCallCheck(this,t),this.http=e,this.router=n,this.document=i,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=Kk,this.settings_changed=new Xk(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.debugMode=!1,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",this.session_id=Object(Zk.v4)(),Object(a.eb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params="apiKey=".concat(this.auth_token,"&sessionID=").concat(this.session_id),this.httpOptions={params:new of({fromString:this.http_params})}}return _createClass(t,[{key:"setTheme",value:function(t){this.theme=this.THEMES_CONFIG[t]}},{key:"startHandshake",value:function(t){return this.http.get(t+"geturl")}},{key:"startHandshakeSSL",value:function(t){return this.http.get(t+"geturl")}},{key:"getVideoFolder",value:function(){return this.http.get(this.startPath+"videofolder")}},{key:"getAudioFolder",value:function(){return this.http.get(this.startPath+"audiofolder")}},{key:"makeMP3",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:n,customArgs:i,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"makeMP4",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:n,customArgs:i,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"getFileStatusMp3",value:function(t){return this.http.post(this.path+"fileStatusMp3",{name:t},this.httpOptions)}},{key:"getFileStatusMp4",value:function(t){return this.http.post(this.path+"fileStatusMp4",{name:t},this.httpOptions)}},{key:"loadNavItems",value:function(){return Object(a.eb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}},{key:"loadAsset",value:function(t){return this.http.get("./assets/".concat(t))}},{key:"setConfig",value:function(t){return this.http.post(this.path+"setConfig",{new_config_file:t},this.httpOptions)}},{key:"deleteFile",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{uid:t,blacklistMode:n},this.httpOptions)}},{key:"getMp3s",value:function(){return this.http.get(this.path+"getMp3s",this.httpOptions)}},{key:"getMp4s",value:function(){return this.http.get(this.path+"getMp4s",this.httpOptions)}},{key:"getFile",value:function(t,e){return this.http.post(this.path+"getFile",{uid:t,type:e},this.httpOptions)}},{key:"downloadFileFromServer",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:n,fullPathProvided:i,subscriptionName:a,subPlaylist:r},{responseType:"blob",params:this.httpOptions.params})}},{key:"downloadArchive",value:function(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob",params:this.httpOptions.params})}},{key:"getFileInfo",value:function(t,e,n){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:n},this.httpOptions)}},{key:"isPinSet",value:function(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}},{key:"setPin",value:function(t){return this.http.post(this.path+"setPin",{pin:t},this.httpOptions)}},{key:"checkPin",value:function(t){return this.http.post(this.path+"checkPin",{input_pin:t},this.httpOptions)}},{key:"generateNewAPIKey",value:function(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}},{key:"enableSharing",value:function(t,e,n){return this.http.post(this.path+"enableSharing",{uid:t,type:e,is_playlist:n},this.httpOptions)}},{key:"disableSharing",value:function(t,e,n){return this.http.post(this.path+"disableSharing",{uid:t,type:e,is_playlist:n},this.httpOptions)}},{key:"createPlaylist",value:function(t,e,n,i){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:n,thumbnailURL:i},this.httpOptions)}},{key:"getPlaylist",value:function(t,e){return this.http.post(this.path+"getPlaylist",{playlistID:t,type:e},this.httpOptions)}},{key:"updatePlaylist",value:function(t,e,n){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:n},this.httpOptions)}},{key:"removePlaylist",value:function(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e},this.httpOptions)}},{key:"createSubscription",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:n,streamingOnly:i},this.httpOptions)}},{key:"unsubscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e},this.httpOptions)}},{key:"deleteSubscriptionFile",value:function(t,e,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:n},this.httpOptions)}},{key:"getSubscription",value:function(t){return this.http.post(this.path+"getSubscription",{id:t},this.httpOptions)}},{key:"getAllSubscriptions",value:function(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}},{key:"getCurrentDownloads",value:function(){return this.http.get(this.path+"downloads",this.httpOptions)}},{key:"getCurrentDownload",value:function(t,e){return this.http.post(this.path+"download",{download_id:e,session_id:t},this.httpOptions)}},{key:"clearDownloads",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"clearDownloads",{delete_all:t,download_id:n,session_id:e||this.session_id},this.httpOptions)}},{key:"updateServer",value:function(t){return this.http.post(this.path+"updateServer",{tag:t},this.httpOptions)}},{key:"getUpdaterStatus",value:function(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}},{key:"getLatestGithubRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}},{key:"getAvailableRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}}]),t}()).\u0275fac=function(t){return new(t||fS)(a.Mc(Of),a.Mc(Fx),a.Mc(ye.e))},fS.\u0275prov=a.uc({token:fS,factory:fS.\u0275fac}),fS);sn.a.of=Ne;var vS=function(){function t(e){_classCallCheck(this,t),this.value=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new bS(t,this.value))}}]),t}(),bS=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).value=i,a}return _createClass(n,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),n}(Ve.a);function yS(t,e,n){return qe(t,e,n)(this)}function _S(){return Sc(uC.a)(this)}function kS(t,e){if(1&t&&(a.Dc(0,"h4",5),a.vd(1),a.Cc()),2&t){var n=a.Uc();a.kc(1),a.wd(n.dialog_title)}}function CS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-form-field",6),a.Dc(2,"input",7),a.Qc("keyup.enter",(function(){return a.ld(n),a.Uc().doAction()}))("ngModelChange",(function(t){return a.ld(n),a.Uc().input=t})),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(2),a.ad("ngModel",i.input)("placeholder",i.input_placeholder)}}function wS(t,e){1&t&&(a.Dc(0,"div",8),a.zc(1,"mat-spinner",9),a.Cc()),2&t&&(a.kc(1),a.ad("diameter",25))}sn.a.prototype.mapTo=function(t){return function(t){return function(e){return e.lift(new vS(t))}}(t)(this)},n("XypG"),sn.a.fromEvent=Jl,sn.a.prototype.filter=function(t,e){return en(t,e)(this)},sn.a.prototype.debounceTime=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return Xe(t,e)(this)},sn.a.prototype.do=yS,sn.a.prototype._do=yS,sn.a.prototype.switch=_S,sn.a.prototype._switch=_S;var xS,SS,OS,DS,ES,AS,IS,TS,PS,RS=((xS=function(){function t(e,n,i,a){_classCallCheck(this,t),this.postsService=e,this.data=n,this.dialogRef=i,this.snackBar=a,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}},{key:"isPinSet",value:function(){var t=this;this.postsService.isPinSet().subscribe((function(e){t.pinSetChecked=!0,e.is_set?t.isSetLogic():t.notSetLogic()}))}},{key:"isSetLogic",value:function(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}},{key:"notSetLogic",value:function(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}},{key:"doAction",value:function(){var t=this;this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe((function(e){e.success?t.dialogRef.close(!0):(t.dialogRef.close(!1),t.openSnackBar("Pin is incorrect!"))})):this.postsService.setPin(this.input).subscribe((function(e){e.success?(t.dialogRef.close(!0),t.openSnackBar("Pin successfully set!")):(t.dialogRef.close(!1),t.openSnackBar("Failed to set pin!"))})))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||xS)(a.yc(gS),a.yc(kh),a.yc(_h),a.yc(Sy))},xS.\u0275cmp=a.sc({type:xS,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(a.td(0,kS,2,1,"h4",0),a.Dc(1,"mat-dialog-content"),a.Dc(2,"div",1),a.td(3,CS,3,2,"div",2),a.td(4,wS,2,1,"div",3),a.Cc(),a.Cc(),a.Dc(5,"mat-dialog-actions"),a.Dc(6,"button",4),a.Qc("click",(function(){return e.doAction()})),a.vd(7),a.Cc(),a.Cc()),2&t&&(a.ad("ngIf",e.pinSetChecked),a.kc(3),a.ad("ngIf",e.pinSetChecked),a.kc(1),a.ad("ngIf",!e.pinSetChecked),a.kc(2),a.ad("disabled",0===e.input.length),a.kc(1),a.wd(e.button_label))},directives:[ye.t,Ah,Ih,Ya,Eh,zd,Op,mr,Cr,Yo,Tv],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),xS),MS={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},jS={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},LS={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]};function FS(t,e){if(1&t&&(a.Dc(0,"mat-option",20),a.zc(1,"span",21),a.Vc(2,"highlight"),a.Dc(3,"button",22),a.Dc(4,"mat-icon"),a.vd(5,"info"),a.Cc(),a.Cc(),a.Cc()),2&t){var n=e.$implicit,i=a.Uc();a.ad("value",n.key),a.kc(1),a.ad("innerHTML",a.Xc(2,3,n.key,i.stateCtrl.value),a.md),a.kc(2),a.ad("matTooltip",n.description)}}function zS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",26),a.Qc("click",(function(){a.ld(n);var t=e.$implicit;return a.Uc(2).setFirstArg(t.key)})),a.Dc(1,"div",27),a.vd(2),a.Cc(),a.vd(3,"\xa0\xa0"),a.Dc(4,"div",28),a.Dc(5,"mat-icon",29),a.vd(6,"info"),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit;a.kc(2),a.wd(i.key),a.kc(3),a.ad("matTooltip",i.description)}}function NS(t,e){if(1&t&&(a.Bc(0),a.Dc(1,"button",23),a.vd(2),a.Cc(),a.Dc(3,"mat-menu",null,24),a.td(5,zS,7,2,"button",25),a.Cc(),a.Ac()),2&t){var n=e.$implicit,i=a.hd(4),r=a.Uc();a.kc(1),a.ad("matMenuTriggerFor",i),a.kc(1),a.wd(r.argsInfo[n.key].label),a.kc(3),a.ad("ngForOf",n.value)}}SS=$localize(_templateObject()),OS=$localize(_templateObject2()),DS=$localize(_templateObject3()),ES=$localize(_templateObject4()),AS=$localize(_templateObject5()),IS=$localize(_templateObject6()),TS=$localize(_templateObject7()),PS=$localize(_templateObject8());var BS=["placeholder",$localize(_templateObject9())],VS=function(){return{standalone:!0}};function US(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-form-field",8),a.Dc(2,"input",30),a.Jc(3,BS),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().secondArg=t})),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(2),a.ad("ngModelOptions",a.cd(3,VS))("disabled",!i.secondArgEnabled)("ngModel",i.secondArg)}}var HS,qS,GS,WS,QS=((qS=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var n=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter((function(t){return t.length>0})).join("|"):void 0,i=new RegExp(n,"gi");return e?t.replace(i,(function(t){return"".concat(t,"")})):t}}]),t}()).\u0275fac=function(t){return new(t||qS)},qS.\u0275pipe=a.xc({name:"highlight",type:qS,pure:!0}),qS),YS=((HS=function(){function t(e,n,i){_classCallCheck(this,t),this.data=e,this.dialogRef=n,this.dialog=i,this.myGroup=new jo,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new jo,this.availableArgs=null,this.argsByCategory=null,this.argsInfo=null}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.data&&(this.modified_args=this.data.initial_args),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(Ei(""),Object(rn.a)((function(e){return t.filter(e)})))}},{key:"filter",value:function(t){if(this.availableArgs)return this.availableArgs.filter((function(e){return e.key.toLowerCase().includes(t.toLowerCase())}))}},{key:"addArg",value:function(){""!==this.modified_args&&(this.modified_args+=" "),this.modified_args+=this.stateCtrl.value+" "+(this.secondArgEnabled?this.secondArg:"")}},{key:"canAddArg",value:function(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}},{key:"getFirstArg",value:function(){var t=this;return new Promise((function(e){e(t.stateCtrl.value)}))}},{key:"getValueAsync",value:function(t){return new Promise((function(e){e(t)}))}},{key:"getAllPossibleArgs",value:function(){var t=LS,e=Object.keys(t).map((function(e){return t[e]})),n=[].concat.apply([],e);this.availableArgs=n,this.argsByCategory=t,this.argsInfo=jS}},{key:"setFirstArg",value:function(t){this.stateCtrl.setValue(t)}}],[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275fac=function(t){return new(t||HS)(a.yc(kh),a.yc(_h),a.yc(Sh))},HS.\u0275cmp=a.sc({type:HS,selectors:[["app-arg-modifier-dialog"]],features:[a.jc([QS])],decls:48,vars:17,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["color","accent",2,"width","100%"],["matInput","",3,"disabled"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","","mat-dialog-close",""],["mat-button","","color","accent",3,"mat-dialog-close"],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(a.Dc(0,"h4",0),a.Hc(1,SS),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"div",2),a.Dc(5,"div",3),a.Dc(6,"mat-card",4),a.Dc(7,"h6"),a.Hc(8,OS),a.Cc(),a.Dc(9,"mat-form-field",5),a.Dc(10,"textarea",6),a.vd(11),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(12,"div",3),a.Dc(13,"mat-card",7),a.Dc(14,"h6"),a.Hc(15,DS),a.Cc(),a.Dc(16,"form"),a.Dc(17,"div"),a.Dc(18,"mat-form-field",8),a.zc(19,"input",9),a.Cc(),a.Dc(20,"mat-autocomplete",null,10),a.td(22,FS,6,6,"mat-option",11),a.Vc(23,"async"),a.Cc(),a.Dc(24,"div"),a.Dc(25,"mat-menu",null,12),a.td(27,NS,6,3,"ng-container",13),a.Vc(28,"keyvalue"),a.Cc(),a.Dc(29,"button",14),a.Bc(30),a.Hc(31,ES),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(32,"div"),a.Dc(33,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return e.secondArgEnabled=t})),a.Bc(34),a.Hc(35,AS),a.Ac(),a.Cc(),a.Cc(),a.td(36,US,4,4,"div",16),a.Cc(),a.Dc(37,"div"),a.Dc(38,"button",17),a.Qc("click",(function(){return e.addArg()})),a.Bc(39),a.Hc(40,IS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(41,"mat-dialog-actions"),a.Dc(42,"button",18),a.Bc(43),a.Hc(44,TS),a.Ac(),a.Cc(),a.Dc(45,"button",19),a.Bc(46),a.Hc(47,PS),a.Ac(),a.Cc(),a.Cc()),2&t){var n=a.hd(21),i=a.hd(26);a.kc(10),a.ad("disabled",!0),a.kc(1),a.wd(e.modified_args),a.kc(8),a.ad("matAutocomplete",n)("formControl",e.stateCtrl),a.kc(3),a.ad("ngForOf",a.Wc(23,12,e.filteredOptions)),a.kc(5),a.ad("ngForOf",a.Wc(28,14,e.argsByCategory)),a.kc(2),a.ad("matMenuTriggerFor",i),a.kc(4),a.ad("ngModelOptions",a.cd(16,VS))("ngModel",e.secondArgEnabled),a.kc(3),a.ad("ngIf",e.secondArgEnabled),a.kc(2),a.ad("disabled",!e.canAddArg()),a.kc(7),a.ad("mat-dialog-close",e.modified_args)}},directives:[Eh,Ah,Pl,zd,Op,$o,wr,Bo,oh,mr,Cr,Zo,eh,ye.s,Ag,Ya,Rg,Gl,Yo,ye.t,Ih,Dh,Ma,sv,mp,wg],pipes:[ye.b,ye.l,QS],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),HS);function $S(t,e){1&t&&(a.Dc(0,"h6"),a.vd(1,"Update in progress"),a.Cc())}function KS(t,e){1&t&&(a.Dc(0,"h6"),a.vd(1,"Update failed"),a.Cc())}function XS(t,e){1&t&&(a.Dc(0,"h6"),a.vd(1,"Update succeeded!"),a.Cc())}function ZS(t,e){1&t&&a.zc(0,"mat-progress-bar",7)}function JS(t,e){1&t&&a.zc(0,"mat-progress-bar",8)}function tO(t,e){if(1&t&&(a.Dc(0,"p",9),a.vd(1),a.Cc()),2&t){var n=a.Uc(2);a.kc(1),a.wd(n.updateStatus.details)}}function eO(t,e){if(1&t&&(a.Dc(0,"div"),a.Dc(1,"div",3),a.td(2,$S,2,0,"h6",1),a.td(3,KS,2,0,"h6",1),a.td(4,XS,2,0,"h6",1),a.Cc(),a.td(5,ZS,1,0,"mat-progress-bar",4),a.td(6,JS,1,0,"mat-progress-bar",5),a.td(7,tO,2,1,"p",6),a.Cc()),2&t){var n=a.Uc();a.kc(2),a.ad("ngIf",n.updateStatus.updating),a.kc(1),a.ad("ngIf",!n.updateStatus.updating&&n.updateStatus.error),a.kc(1),a.ad("ngIf",!n.updateStatus.updating&&!n.updateStatus.error),a.kc(1),a.ad("ngIf",n.updateStatus.updating),a.kc(1),a.ad("ngIf",!n.updateStatus.updating),a.kc(1),a.ad("ngIf",n.updateStatus.details)}}GS=$localize(_templateObject10()),WS=$localize(_templateObject11());var nO,iO,aO=((nO=function(){function t(e,n){_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.updateStatus=null,this.updateInterval=250,this.errored=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.getUpdateProgress(),setInterval((function(){t.updateStatus.updating&&t.getUpdateProgress()}),250)}},{key:"getUpdateProgress",value:function(){var t=this;this.postsService.getUpdaterStatus().subscribe((function(e){e&&(t.updateStatus=e,t.updateStatus&&t.updateStatus.error&&t.openSnackBar("Update failed. Check logs for more details."))}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||nO)(a.yc(gS),a.yc(Sy))},nO.\u0275cmp=a.sc({type:nO,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,GS),a.Cc(),a.Dc(2,"mat-dialog-content"),a.td(3,eO,8,6,"div",1),a.Cc(),a.Dc(4,"mat-dialog-actions"),a.Dc(5,"button",2),a.Bc(6),a.Hc(7,WS),a.Ac(),a.Cc(),a.Cc()),2&t&&(a.kc(3),a.ad("ngIf",e.updateStatus))},directives:[Eh,Ah,ye.t,Ih,Ya,Dh,fv],styles:[""]}),nO);function rO(t,e){if(1&t&&(a.Dc(0,"mat-option",6),a.vd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Uc(2);a.ad("value",n.tag_name),a.kc(1),a.xd(" ",n.tag_name+(n===i.latestStableRelease?" - Latest Stable":"")+(n.tag_name===i.CURRENT_VERSION?" - Current Version":"")," ")}}function oO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",3),a.Dc(1,"mat-form-field"),a.Dc(2,"mat-select",4),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().selectedVersion=t})),a.td(3,rO,2,2,"mat-option",5),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(2),a.ad("ngModel",i.selectedVersion),a.kc(1),a.ad("ngForOf",i.availableVersionsFiltered)}}function sO(t,e){1&t&&(a.Bc(0),a.vd(1,"Upgrade to"),a.Ac())}function lO(t,e){1&t&&(a.Bc(0),a.vd(1,"Downgrade to"),a.Ac())}function cO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",3),a.Dc(1,"button",7),a.Qc("click",(function(){return a.ld(n),a.Uc().updateServer()})),a.Dc(2,"mat-icon"),a.vd(3,"update"),a.Cc(),a.vd(4,"\xa0\xa0 "),a.td(5,sO,2,0,"ng-container",8),a.td(6,lO,2,0,"ng-container",8),a.vd(7),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(5),a.ad("ngIf",i.selectedVersion>i.CURRENT_VERSION),a.kc(1),a.ad("ngIf",i.selectedVersion=t.versionsShowLimit)break;t.availableVersionsFiltered.push(i)}}))}},{key:"openUpdateProgressDialog",value:function(){this.dialog.open(aO,{minWidth:"300px",minHeight:"200px"})}}]),t}()).\u0275fac=function(t){return new(t||uO)(a.yc(gS),a.yc(Sh))},uO.\u0275cmp=a.sc({type:uO,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.Bc(2),a.Hc(3,iO),a.Ac(),a.Cc(),a.td(4,oO,4,2,"div",2),a.td(5,cO,8,3,"div",2),a.Cc()),2&t&&(a.kc(4),a.ad("ngIf",e.availableVersions),a.kc(1),a.ad("ngIf",e.selectedVersion&&e.selectedVersion!==e.CURRENT_VERSION))},directives:[ye.t,zd,ub,Cr,Yo,ye.s,Ma,Ya,mp],styles:[""]}),uO);dO=$localize(_templateObject13());var mO,fO,pO=["label",$localize(_templateObject14())],gO=["label",$localize(_templateObject15())],vO=["label",$localize(_templateObject16())],bO=["label",$localize(_templateObject17())];mO=$localize(_templateObject18()),fO=$localize(_templateObject19()),fO=a.Lc(fO,{VAR_SELECT:"\ufffd0\ufffd"});var yO,_O=["placeholder",$localize(_templateObject20())];yO=$localize(_templateObject21());var kO,CO,wO=["placeholder",$localize(_templateObject22())];function xO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-form-field",11),a.Dc(4,"input",12),a.Jc(5,_O),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Host.url=t})),a.Cc(),a.Dc(6,"mat-hint"),a.Bc(7),a.Hc(8,yO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(9,"div",13),a.Dc(10,"mat-form-field",11),a.Dc(11,"input",12),a.Jc(12,wO),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Host.port=t})),a.Cc(),a.Dc(13,"mat-hint"),a.Bc(14),a.Hc(15,kO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(4),a.ad("ngModel",i.new_config.Host.url),a.kc(7),a.ad("ngModel",i.new_config.Host.port)}}kO=$localize(_templateObject23()),CO=$localize(_templateObject24());var SO,OO=["placeholder",$localize(_templateObject25())],DO=["placeholder",$localize(_templateObject26())];function EO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Encryption["use-encryption"]=t})),a.Bc(4),a.Hc(5,CO),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",15),a.Dc(7,"mat-form-field",11),a.Dc(8,"input",16),a.Jc(9,OO),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Encryption["cert-file-path"]=t})),a.Cc(),a.Cc(),a.Cc(),a.Dc(10,"div",15),a.Dc(11,"mat-form-field",11),a.Dc(12,"input",16),a.Jc(13,DO),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Encryption["key-file-path"]=t})),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(3),a.ad("ngModel",i.new_config.Encryption["use-encryption"]),a.kc(5),a.ad("disabled",!i.new_config.Encryption["use-encryption"])("ngModel",i.new_config.Encryption["cert-file-path"]),a.kc(4),a.ad("disabled",!i.new_config.Encryption["use-encryption"])("ngModel",i.new_config.Encryption["key-file-path"])}}SO=$localize(_templateObject27());var AO,IO=["placeholder",$localize(_templateObject28())];AO=$localize(_templateObject29());var TO,PO,RO,MO,jO,LO,FO,zO,NO,BO,VO=["placeholder",$localize(_templateObject30())];function UO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Subscriptions.allow_subscriptions=t})),a.Bc(4),a.Hc(5,SO),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",15),a.Dc(7,"mat-form-field",11),a.Dc(8,"input",16),a.Jc(9,IO),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Subscriptions.subscriptions_base_path=t})),a.Cc(),a.Dc(10,"mat-hint"),a.Bc(11),a.Hc(12,AO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(13,"div",17),a.Dc(14,"mat-form-field",11),a.Dc(15,"input",16),a.Jc(16,VO),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Subscriptions.subscriptions_check_interval=t})),a.Cc(),a.Dc(17,"mat-hint"),a.Bc(18),a.Hc(19,TO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(20,"div",18),a.Dc(21,"mat-checkbox",19),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=t})),a.Bc(22),a.Hc(23,PO),a.Ac(),a.Cc(),a.Dc(24,"p"),a.Dc(25,"a",20),a.Bc(26),a.Hc(27,RO),a.Ac(),a.Cc(),a.vd(28,"\xa0"),a.Bc(29),a.Hc(30,MO),a.Ac(),a.Cc(),a.Dc(31,"p"),a.Bc(32),a.Hc(33,jO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(3),a.ad("ngModel",i.new_config.Subscriptions.allow_subscriptions),a.kc(5),a.ad("disabled",!i.new_config.Subscriptions.allow_subscriptions)("ngModel",i.new_config.Subscriptions.subscriptions_base_path),a.kc(7),a.ad("disabled",!i.new_config.Subscriptions.allow_subscriptions)("ngModel",i.new_config.Subscriptions.subscriptions_check_interval),a.kc(6),a.ad("disabled",!i.new_config.Subscriptions.allow_subscriptions)("ngModel",i.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function HO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-form-field"),a.Dc(4,"mat-label"),a.Bc(5),a.Hc(6,LO),a.Ac(),a.Cc(),a.Dc(7,"mat-select",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Themes.default_theme=t})),a.Dc(8,"mat-option",21),a.Bc(9),a.Hc(10,FO),a.Ac(),a.Cc(),a.Dc(11,"mat-option",22),a.Bc(12),a.Hc(13,zO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(14,"div",23),a.Dc(15,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Themes.allow_theme_change=t})),a.Bc(16),a.Hc(17,NO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(7),a.ad("ngModel",i.new_config.Themes.default_theme),a.kc(8),a.ad("ngModel",i.new_config.Themes.allow_theme_change)}}function qO(t,e){if(1&t&&(a.Dc(0,"mat-option",26),a.vd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Uc(3);a.ad("value",n),a.kc(1),a.xd(" ",i.all_locales[n].nativeName," ")}}function GO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-form-field"),a.Dc(4,"mat-label"),a.Bc(5),a.Hc(6,BO),a.Ac(),a.Cc(),a.Dc(7,"mat-select",24),a.Qc("selectionChange",(function(t){return a.ld(n),a.Uc(2).localeSelectChanged(t.value)}))("valueChange",(function(t){return a.ld(n),a.Uc(2).initialLocale=t})),a.td(8,qO,2,2,"mat-option",25),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(7),a.ad("value",i.initialLocale),a.kc(1),a.ad("ngForOf",i.supported_locales)}}function WO(t,e){if(1&t&&(a.td(0,xO,16,2,"div",7),a.zc(1,"mat-divider"),a.td(2,EO,14,5,"div",7),a.zc(3,"mat-divider"),a.td(4,UO,34,7,"div",7),a.zc(5,"mat-divider"),a.td(6,HO,18,2,"div",7),a.zc(7,"mat-divider"),a.td(8,GO,9,2,"div",7)),2&t){var n=a.Uc();a.ad("ngIf",n.new_config),a.kc(2),a.ad("ngIf",n.new_config),a.kc(2),a.ad("ngIf",n.new_config),a.kc(2),a.ad("ngIf",n.new_config),a.kc(2),a.ad("ngIf",n.new_config)}}TO=$localize(_templateObject31()),PO=$localize(_templateObject32()),RO=$localize(_templateObject33()),MO=$localize(_templateObject34()),jO=$localize(_templateObject35()),LO=$localize(_templateObject36()),FO=$localize(_templateObject37()),zO=$localize(_templateObject38()),NO=$localize(_templateObject39()),BO=$localize(_templateObject40());var QO,YO=["placeholder",$localize(_templateObject41())];QO=$localize(_templateObject42());var $O,KO=["placeholder",$localize(_templateObject43())];$O=$localize(_templateObject44());var XO,ZO,JO=["placeholder",$localize(_templateObject45())];function tD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-form-field",11),a.Dc(4,"input",12),a.Jc(5,YO),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Downloader["path-audio"]=t})),a.Cc(),a.Dc(6,"mat-hint"),a.Bc(7),a.Hc(8,QO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(9,"div",17),a.Dc(10,"mat-form-field",11),a.Dc(11,"input",12),a.Jc(12,KO),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Downloader["path-video"]=t})),a.Cc(),a.Dc(13,"mat-hint"),a.Bc(14),a.Hc(15,$O),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(16,"div",17),a.Dc(17,"mat-form-field",27),a.Dc(18,"textarea",28),a.Jc(19,JO),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Downloader.custom_args=t})),a.Cc(),a.Dc(20,"mat-hint"),a.Bc(21),a.Hc(22,XO),a.Ac(),a.Cc(),a.Dc(23,"button",29),a.Qc("click",(function(){return a.ld(n),a.Uc(2).openArgsModifierDialog()})),a.Dc(24,"mat-icon"),a.vd(25,"edit"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(26,"div",18),a.Dc(27,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Downloader.use_youtubedl_archive=t})),a.Bc(28),a.Hc(29,ZO),a.Ac(),a.Cc(),a.Dc(30,"p"),a.vd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(4),a.ad("ngModel",i.new_config.Downloader["path-audio"]),a.kc(7),a.ad("ngModel",i.new_config.Downloader["path-video"]),a.kc(7),a.ad("ngModel",i.new_config.Downloader.custom_args),a.kc(9),a.ad("ngModel",i.new_config.Downloader.use_youtubedl_archive)}}function eD(t,e){if(1&t&&a.td(0,tD,32,4,"div",7),2&t){var n=a.Uc();a.ad("ngIf",n.new_config)}}XO=$localize(_templateObject46()),ZO=$localize(_templateObject47());var nD,iD,aD,rD,oD,sD,lD,cD=["placeholder",$localize(_templateObject48())];function uD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-form-field",11),a.Dc(4,"input",12),a.Jc(5,cD),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Extra.title_top=t})),a.Cc(),a.zc(6,"mat-hint"),a.Cc(),a.Cc(),a.Dc(7,"div",15),a.Dc(8,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Extra.file_manager_enabled=t})),a.Bc(9),a.Hc(10,nD),a.Ac(),a.Cc(),a.Cc(),a.Dc(11,"div",15),a.Dc(12,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Extra.allow_quality_select=t})),a.Bc(13),a.Hc(14,iD),a.Ac(),a.Cc(),a.Cc(),a.Dc(15,"div",15),a.Dc(16,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Extra.download_only_mode=t})),a.Bc(17),a.Hc(18,aD),a.Ac(),a.Cc(),a.Cc(),a.Dc(19,"div",15),a.Dc(20,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Extra.allow_multi_download_mode=t})),a.Bc(21),a.Hc(22,rD),a.Ac(),a.Cc(),a.Cc(),a.Dc(23,"div",15),a.Dc(24,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Extra.settings_pin_required=t})),a.Bc(25),a.Hc(26,oD),a.Ac(),a.Cc(),a.Dc(27,"button",30),a.Qc("click",(function(){return a.ld(n),a.Uc(2).setNewPin()})),a.Bc(28),a.Hc(29,sD),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(4),a.ad("ngModel",i.new_config.Extra.title_top),a.kc(4),a.ad("ngModel",i.new_config.Extra.file_manager_enabled),a.kc(4),a.ad("ngModel",i.new_config.Extra.allow_quality_select),a.kc(4),a.ad("ngModel",i.new_config.Extra.download_only_mode),a.kc(4),a.ad("ngModel",i.new_config.Extra.allow_multi_download_mode),a.kc(4),a.ad("ngModel",i.new_config.Extra.settings_pin_required),a.kc(3),a.ad("disabled",!i.new_config.Extra.settings_pin_required)}}nD=$localize(_templateObject49()),iD=$localize(_templateObject50()),aD=$localize(_templateObject51()),rD=$localize(_templateObject52()),oD=$localize(_templateObject53()),sD=$localize(_templateObject54()),lD=$localize(_templateObject55());var dD,hD,mD,fD=["placeholder",$localize(_templateObject56())];function pD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.API.use_API_key=t})),a.Bc(4),a.Hc(5,lD),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",31),a.Dc(7,"div",32),a.Dc(8,"mat-form-field",11),a.Dc(9,"input",33),a.Jc(10,fD),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.API.API_key=t})),a.Cc(),a.Dc(11,"mat-hint"),a.Dc(12,"a",34),a.Bc(13),a.Hc(14,dD),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(15,"div",35),a.Dc(16,"button",36),a.Qc("click",(function(){return a.ld(n),a.Uc(2).generateAPIKey()})),a.Bc(17),a.Hc(18,hD),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(3),a.ad("ngModel",i.new_config.API.use_API_key),a.kc(6),a.ad("disabled",!i.new_config.API.use_API_key)("ngModel",i.new_config.API.API_key)}}dD=$localize(_templateObject57()),hD=$localize(_templateObject58()),mD=$localize(_templateObject59());var gD,vD,bD,yD,_D,kD,CD,wD,xD,SD,OD,DD,ED,AD=["placeholder",$localize(_templateObject60())];function ID(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.API.use_youtube_API=t})),a.Bc(4),a.Hc(5,mD),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",31),a.Dc(7,"mat-form-field",11),a.Dc(8,"input",33),a.Jc(9,AD),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.API.youtube_API_key=t})),a.Cc(),a.Dc(10,"mat-hint"),a.Dc(11,"a",37),a.Bc(12),a.Hc(13,gD),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(3),a.ad("ngModel",i.new_config.API.use_youtube_API),a.kc(5),a.ad("disabled",!i.new_config.API.use_youtube_API)("ngModel",i.new_config.API.youtube_API_key)}}function TD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"h6"),a.vd(4,"Chrome"),a.Cc(),a.Dc(5,"p"),a.Dc(6,"a",38),a.Bc(7),a.Hc(8,vD),a.Ac(),a.Cc(),a.vd(9,"\xa0"),a.Bc(10),a.Hc(11,bD),a.Ac(),a.Cc(),a.Dc(12,"p"),a.Bc(13),a.Hc(14,yD),a.Ac(),a.Cc(),a.zc(15,"mat-divider",39),a.Cc(),a.Dc(16,"div",15),a.Dc(17,"h6"),a.vd(18,"Firefox"),a.Cc(),a.Dc(19,"p"),a.Dc(20,"a",40),a.Bc(21),a.Hc(22,_D),a.Ac(),a.Cc(),a.vd(23,"\xa0"),a.Bc(24),a.Hc(25,kD),a.Ac(),a.Cc(),a.Dc(26,"p"),a.Dc(27,"a",41),a.Bc(28),a.Hc(29,CD),a.Ac(),a.Cc(),a.vd(30,"\xa0"),a.Bc(31),a.Hc(32,wD),a.Ac(),a.Cc(),a.zc(33,"mat-divider",39),a.Cc(),a.Dc(34,"div",15),a.Dc(35,"h6"),a.vd(36,"Bookmarklet"),a.Cc(),a.Dc(37,"p"),a.Bc(38),a.Hc(39,xD),a.Ac(),a.Cc(),a.Dc(40,"mat-checkbox",42),a.Qc("change",(function(t){return a.ld(n),a.Uc(2).bookmarkletAudioOnlyChanged(t)})),a.Bc(41),a.Hc(42,SD),a.Ac(),a.Cc(),a.Dc(43,"p"),a.Dc(44,"a",43),a.vd(45,"YTDL-Bookmarklet"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(44),a.ad("href",i.generated_bookmarklet_code,a.nd)}}function PD(t,e){if(1&t&&(a.td(0,uD,30,7,"div",7),a.zc(1,"mat-divider"),a.td(2,pD,19,3,"div",7),a.zc(3,"mat-divider"),a.td(4,ID,14,3,"div",7),a.zc(5,"mat-divider"),a.td(6,TD,46,1,"div",7)),2&t){var n=a.Uc();a.ad("ngIf",n.new_config),a.kc(2),a.ad("ngIf",n.new_config),a.kc(2),a.ad("ngIf",n.new_config),a.kc(2),a.ad("ngIf",n.new_config)}}function RD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",8),a.Dc(1,"div",9),a.Dc(2,"div",10),a.Dc(3,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Advanced.use_default_downloading_agent=t})),a.Bc(4),a.Hc(5,OD),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",15),a.Dc(7,"mat-form-field"),a.Dc(8,"mat-label"),a.Bc(9),a.Hc(10,DD),a.Ac(),a.Cc(),a.Dc(11,"mat-select",19),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Advanced.custom_downloading_agent=t})),a.Dc(12,"mat-option",45),a.vd(13,"aria2c"),a.Cc(),a.Dc(14,"mat-option",46),a.vd(15,"avconv"),a.Cc(),a.Dc(16,"mat-option",47),a.vd(17,"axel"),a.Cc(),a.Dc(18,"mat-option",48),a.vd(19,"curl"),a.Cc(),a.Dc(20,"mat-option",49),a.vd(21,"ffmpeg"),a.Cc(),a.Dc(22,"mat-option",50),a.vd(23,"httpie"),a.Cc(),a.Dc(24,"mat-option",51),a.vd(25,"wget"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(26,"div",31),a.Dc(27,"mat-checkbox",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).new_config.Advanced.allow_advanced_download=t})),a.Bc(28),a.Hc(29,ED),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(3),a.ad("ngModel",i.new_config.Advanced.use_default_downloading_agent),a.kc(8),a.ad("disabled",i.new_config.Advanced.use_default_downloading_agent)("ngModel",i.new_config.Advanced.custom_downloading_agent),a.kc(16),a.ad("ngModel",i.new_config.Advanced.allow_advanced_download)}}function MD(t,e){1&t&&(a.Dc(0,"div",52),a.zc(1,"app-updater"),a.Cc())}function jD(t,e){if(1&t&&(a.td(0,RD,30,4,"div",7),a.zc(1,"mat-divider"),a.td(2,MD,2,0,"div",44)),2&t){var n=a.Uc();a.ad("ngIf",n.new_config),a.kc(2),a.ad("ngIf",n.new_config)}}gD=$localize(_templateObject61()),vD=$localize(_templateObject62()),bD=$localize(_templateObject63()),yD=$localize(_templateObject64()),_D=$localize(_templateObject65()),kD=$localize(_templateObject66()),CD=$localize(_templateObject67()),wD=$localize(_templateObject68()),xD=$localize(_templateObject69()),SD=$localize(_templateObject70()),OD=$localize(_templateObject71()),DD=$localize(_templateObject72()),ED=$localize(_templateObject73());var LD,FD,zD,ND,BD,VD,UD,HD,qD,GD,WD,QD=((LD=function(){function t(e,n,i,a){_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.sanitizer=i,this.dialog=a,this.all_locales=MS,this.supported_locales=["en","es"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v3.6"}return _createClass(t,[{key:"ngOnInit",value:function(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}},{key:"getConfig",value:function(){var t=this;this.loading_config=!0,this.postsService.loadNavItems().subscribe((function(e){t.loading_config=!1,t.initial_config=t.postsService.debugMode?e.YoutubeDLMaterial:e.config_file.YoutubeDLMaterial,t.new_config=JSON.parse(JSON.stringify(t.initial_config))}))}},{key:"settingsSame",value:function(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}},{key:"saveSettings",value:function(){var t=this;this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe((function(e){e.success&&(t.postsService.settings_changed.next(!0),t.initial_config=JSON.parse(JSON.stringify(t.new_config)))}),(function(t){console.error("Failed to save config!")}))}},{key:"setNewPin",value:function(){this.dialog.open(RS,{data:{resetMode:!0}})}},{key:"generateAPIKey",value:function(){var t=this;this.postsService.generateNewAPIKey().subscribe((function(e){e.new_api_key&&(t.initial_config.API.API_key=e.new_api_key,t.new_config.API.API_key=e.new_api_key)}))}},{key:"localeSelectChanged",value:function(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}},{key:"generateBookmarklet",value:function(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}},{key:"generateBookmarkletCode",value:function(){return"javascript:(function()%7Bwindow.open('".concat(window.location.href.split("#")[0]+"#/home;url=","' + encodeURIComponent(window.location) + ';audioOnly=").concat(this.bookmarkletAudioOnly,"')%7D)()")}},{key:"bookmarkletAudioOnlyChanged",value:function(t){this.bookmarkletAudioOnly=t.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}},{key:"bookmarksite",value:function(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){var n=document.createElement("a");n.setAttribute("href",e),n.setAttribute("title",t),n.setAttribute("rel","sidebar"),n.click()}}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(YS,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe((function(e){e&&(t.new_config.Downloader.custom_args=e)}))}},{key:"getLatestGithubRelease",value:function(){var t=this;this.postsService.getLatestGithubRelease().subscribe((function(e){t.latestGithubRelease=e}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}},{key:"settingsAreTheSame",get:function(){return this._settingsSame=this.settingsSame(),this._settingsSame},set:function(t){this._settingsSame=t}}]),t}()).\u0275fac=function(t){return new(t||LD)(a.yc(gS),a.yc(Sy),a.yc(i.b),a.yc(Sh))},LD.\u0275cmp=a.sc({type:LD,selectors:[["app-settings"]],decls:30,vars:3,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"container-fluid","mt-1"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,dO),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"mat-tab-group"),a.Dc(4,"mat-tab",1),a.Jc(5,pO),a.td(6,WO,9,5,"ng-template",2),a.Cc(),a.Dc(7,"mat-tab",1),a.Jc(8,gO),a.td(9,eD,1,1,"ng-template",3),a.Cc(),a.Dc(10,"mat-tab",1),a.Jc(11,vO),a.td(12,PD,7,4,"ng-template",3),a.Cc(),a.Dc(13,"mat-tab",1),a.Jc(14,bO),a.td(15,jD,3,2,"ng-template",3),a.Cc(),a.Cc(),a.Cc(),a.Dc(16,"mat-dialog-actions"),a.Dc(17,"div",4),a.Dc(18,"button",5),a.Qc("click",(function(){return e.saveSettings()})),a.Dc(19,"mat-icon"),a.vd(20,"done"),a.Cc(),a.vd(21,"\xa0\xa0 "),a.Bc(22),a.Hc(23,mO),a.Ac(),a.Cc(),a.Dc(24,"button",6),a.Dc(25,"mat-icon"),a.vd(26,"cancel"),a.Cc(),a.vd(27,"\xa0\xa0 "),a.Dc(28,"span"),a.Hc(29,fO),a.Cc(),a.Cc(),a.Cc(),a.Cc()),2&t&&(a.kc(18),a.ad("disabled",e.settingsSame()),a.kc(6),a.ad("mat-dialog-close",!1),a.kc(5),a.Kc(e.settingsAreTheSame+""),a.Ic(29))},directives:[Eh,Ah,I_,__,p_,Ih,Ya,mp,Dh,ye.t,Ep,zd,Op,mr,Hs,Cr,Yo,Ad,Gl,Id,ub,Ma,ye.s,sv,hO],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}"]}),LD);function YD(t,e){1&t&&(a.Dc(0,"span",12),a.zc(1,"mat-spinner",13),a.vd(2,"\xa0"),a.Bc(3),a.Hc(4,GD),a.Ac(),a.Cc()),2&t&&(a.kc(1),a.ad("diameter",22))}function $D(t,e){1&t&&(a.Dc(0,"mat-icon",14),a.vd(1,"done"),a.Cc())}function KD(t,e){if(1&t&&(a.Dc(0,"a",2),a.Bc(1),a.Hc(2,WD),a.Ac(),a.vd(3),a.Cc()),2&t){var n=a.Uc();a.ad("href",n.latestUpdateLink,a.nd),a.kc(3),a.xd(" - ",n.latestGithubRelease.tag_name,"")}}function XD(t,e){1&t&&(a.Dc(0,"span"),a.vd(1,"You are up to date."),a.Cc())}FD=$localize(_templateObject74()),zD=$localize(_templateObject75()),ND=$localize(_templateObject76()),BD=$localize(_templateObject77()),VD=$localize(_templateObject78()),UD=$localize(_templateObject79()),HD=$localize(_templateObject80()),qD=$localize(_templateObject81()),GD=$localize(_templateObject82()),WD=$localize(_templateObject83());var ZD,JD,tE,eE,nE,iE,aE,rE=((ZD=function(){function t(e){_classCallCheck(this,t),this.postsService=e,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v3.6"}return _createClass(t,[{key:"ngOnInit",value:function(){this.getLatestGithubRelease()}},{key:"getLatestGithubRelease",value:function(){var t=this;this.postsService.getLatestGithubRelease().subscribe((function(e){t.checking_for_updates=!1,t.latestGithubRelease=e}))}}]),t}()).\u0275fac=function(t){return new(t||ZD)(a.yc(gS))},ZD.\u0275cmp=a.sc({type:ZD,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Bc(1),a.Hc(2,FD),a.Ac(),a.Dc(3,"span",1),a.Dc(4,"a",2),a.zc(5,"img",3),a.Cc(),a.zc(6,"img",4),a.Cc(),a.Cc(),a.Dc(7,"mat-dialog-content"),a.Dc(8,"div",5),a.Dc(9,"p"),a.Dc(10,"i"),a.vd(11,"YoutubeDL-Material"),a.Cc(),a.vd(12,"\xa0"),a.Bc(13),a.Hc(14,zD),a.Ac(),a.Cc(),a.Dc(15,"p"),a.Dc(16,"i"),a.vd(17,"YoutubeDL-Material"),a.Cc(),a.vd(18,"\xa0"),a.Bc(19),a.Hc(20,ND),a.Ac(),a.Cc(),a.zc(21,"mat-divider"),a.Dc(22,"h5",6),a.vd(23,"Installation details:"),a.Cc(),a.Dc(24,"p"),a.Bc(25),a.Hc(26,BD),a.Ac(),a.vd(27),a.td(28,YD,5,1,"span",7),a.td(29,$D,2,0,"mat-icon",8),a.vd(30,"\xa0\xa0"),a.td(31,KD,4,2,"a",9),a.vd(32,". "),a.Bc(33),a.Hc(34,VD),a.Ac(),a.td(35,XD,2,0,"span",10),a.Cc(),a.Dc(36,"p"),a.Bc(37),a.Hc(38,UD),a.Ac(),a.vd(39,"\xa0"),a.Dc(40,"a",2),a.Bc(41),a.Hc(42,HD),a.Ac(),a.Cc(),a.vd(43,"\xa0"),a.Bc(44),a.Hc(45,qD),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(46,"mat-dialog-actions"),a.Dc(47,"button",11),a.vd(48,"Close"),a.Cc(),a.Cc()),2&t&&(a.kc(4),a.ad("href",e.projectLink,a.nd),a.kc(23),a.xd("\xa0",e.current_version_tag," - "),a.kc(1),a.ad("ngIf",e.checking_for_updates),a.kc(1),a.ad("ngIf",!e.checking_for_updates),a.kc(2),a.ad("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name!==e.current_version_tag),a.kc(4),a.ad("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name===e.current_version_tag),a.kc(5),a.ad("href",e.issuesLink,a.nd))},directives:[Eh,Ah,Ep,ye.t,Ih,Ya,Dh,Tv,mp],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),ZD),oE=["sidenav"],sE=["hamburgerMenu"];function lE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",20,21),a.Qc("click",(function(){return a.ld(n),a.Uc().toggleSidenav()})),a.Dc(2,"mat-icon"),a.vd(3,"menu"),a.Cc(),a.Cc()}}function cE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",22),a.Qc("click",(function(){return a.ld(n),a.Uc().goBack()})),a.Dc(1,"mat-icon"),a.vd(2,"arrow_back"),a.Cc(),a.Cc()}}function uE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",13),a.Qc("click",(function(t){return a.ld(n),a.Uc().themeMenuItemClicked(t)})),a.Dc(1,"mat-icon"),a.vd(2),a.Cc(),a.Dc(3,"span"),a.Hc(4,iE),a.Cc(),a.zc(5,"mat-slide-toggle",23),a.Cc()}if(2&t){var i=a.Uc();a.kc(2),a.wd("default"===i.postsService.theme.key?"brightness_5":"brightness_2"),a.kc(3),a.ad("checked","dark"===i.postsService.theme.key)}}function dE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"a",24),a.Qc("click",(function(){return a.ld(n),a.Uc(),a.hd(30).close()})),a.Bc(1),a.Hc(2,aE),a.Ac(),a.Cc()}}JD=$localize(_templateObject84()),tE=$localize(_templateObject85()),eE=$localize(_templateObject86()),nE=$localize(_templateObject87()),iE=$localize(_templateObject88()),aE=$localize(_templateObject89());var hE,mE=((hE=function(){function t(e,n,i,a,r,o){var s=this;_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.dialog=i,this.router=a,this.overlayContainer=r,this.elementRef=o,this.THEMES_CONFIG=Kk,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe((function(t){t instanceof kC?s.navigator=localStorage.getItem("player_navigator"):t instanceof CC&&s.hamburgerMenuButton&&s.hamburgerMenuButton.nativeElement&&s.hamburgerMenuButton.nativeElement.blur()})),this.loadConfig(),this.postsService.settings_changed.subscribe((function(t){t&&s.loadConfig()}))}return _createClass(t,[{key:"toggleSidenav",value:function(){this.sidenav.toggle()}},{key:"loadConfig",value:function(){var t=this;this.postsService.loadNavItems().subscribe((function(e){var n=t.postsService.debugMode?e:e.config_file;t.topBarTitle=n.YoutubeDLMaterial.Extra.title_top,t.settingsPinRequired=n.YoutubeDLMaterial.Extra.settings_pin_required;var i=n.YoutubeDLMaterial.Themes;t.defaultTheme=i?n.YoutubeDLMaterial.Themes.default_theme:"default",t.allowThemeChange=!i||n.YoutubeDLMaterial.Themes.allow_theme_change,t.allowSubscriptions=n.YoutubeDLMaterial.Subscriptions.allow_subscriptions,localStorage.getItem("theme")||t.setTheme(i?t.defaultTheme:"default")}),(function(t){console.log(t)}))}},{key:"setTheme",value:function(t){var e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}},{key:"onSetTheme",value:function(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}},{key:"flipTheme",value:function(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}},{key:"themeMenuItemClicked",value:function(t){this.flipTheme(),t.stopPropagation()}},{key:"ngOnInit",value:function(){localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme"))}},{key:"goBack",value:function(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}},{key:"openSettingsDialog",value:function(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}},{key:"actuallyOpenSettingsDialog",value:function(){this.dialog.open(QD,{width:"80vw"})}},{key:"openPinDialog",value:function(){var t=this;this.dialog.open(RS,{}).afterClosed().subscribe((function(e){e&&t.actuallyOpenSettingsDialog()}))}},{key:"openAboutDialog",value:function(){this.dialog.open(rE,{width:"80vw"})}}]),t}()).\u0275fac=function(t){return new(t||hE)(a.yc(gS),a.yc(Sy),a.yc(Sh),a.yc(Fx),a.yc(Au),a.yc(a.q))},hE.\u0275cmp=a.sc({type:hE,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(a.zd(oE,!0),a.zd(sE,!0,a.q)),2&t&&(a.gd(n=a.Rc())&&(e.sidenav=n.first),a.gd(n=a.Rc())&&(e.hamburgerMenuButton=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&a.mc(e.componentCssClass)},decls:41,vars:10,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/subscriptions",3,"click"]],template:function(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",0),a.Dc(1,"div",1),a.Dc(2,"mat-toolbar",2),a.Dc(3,"div",3),a.Dc(4,"div",4),a.td(5,lE,4,0,"button",5),a.td(6,cE,3,0,"button",6),a.Cc(),a.Dc(7,"div",7),a.Dc(8,"div",8),a.vd(9),a.Cc(),a.Cc(),a.Dc(10,"div",9),a.Dc(11,"button",10),a.Dc(12,"mat-icon"),a.vd(13,"more_vert"),a.Cc(),a.Cc(),a.Dc(14,"mat-menu",null,11),a.td(16,uE,6,2,"button",12),a.Dc(17,"button",13),a.Qc("click",(function(){return e.openSettingsDialog()})),a.Dc(18,"mat-icon"),a.vd(19,"settings"),a.Cc(),a.Dc(20,"span"),a.Hc(21,JD),a.Cc(),a.Cc(),a.Dc(22,"button",13),a.Qc("click",(function(){return e.openAboutDialog()})),a.Dc(23,"mat-icon"),a.vd(24,"info"),a.Cc(),a.Dc(25,"span"),a.Hc(26,tE),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(27,"div",14),a.Dc(28,"mat-sidenav-container",15),a.Dc(29,"mat-sidenav",null,16),a.Dc(31,"mat-nav-list"),a.Dc(32,"a",17),a.Qc("click",(function(){return a.ld(n),a.hd(30).close()})),a.Bc(33),a.Hc(34,eE),a.Ac(),a.Cc(),a.td(35,dE,3,0,"a",18),a.Dc(36,"a",19),a.Qc("click",(function(){return a.ld(n),a.hd(30).close()})),a.Bc(37),a.Hc(38,nE),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(39,"mat-sidenav-content"),a.zc(40,"router-outlet"),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.hd(15);a.sd("background",e.postsService.theme?e.postsService.theme.background_color:null,a.rc),a.kc(5),a.ad("ngIf","/player"!==e.router.url.split(";")[0]),a.kc(1),a.ad("ngIf","/player"===e.router.url.split(";")[0]),a.kc(3),a.xd(" ",e.topBarTitle," "),a.kc(2),a.ad("matMenuTriggerFor",i),a.kc(5),a.ad("ngIf",e.allowThemeChange),a.kc(19),a.ad("ngIf",e.allowSubscriptions),a.kc(4),a.sd("background",e.postsService.theme?e.postsService.theme.background_color:null,a.rc)}},directives:[Iy,ye.t,Ya,Rg,mp,Ag,wg,Ub,Bb,Yp,tg,Nx,Nb,Yx,ey],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),hE);function fE(t,e,n,i){return new(n||(n=Promise))((function(a,r){function o(t){try{l(i.next(t))}catch(e){r(e)}}function s(t){try{l(i.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))}var pE,gE,vE=n("Iab2"),bE=function t(e){_classCallCheck(this,t),this.id=e&&e.id||null,this.title=e&&e.title||null,this.desc=e&&e.desc||null,this.thumbnailUrl=e&&e.thumbnailUrl||null,this.uploaded=e&&e.uploaded||null,this.videoUrl=e&&e.videoUrl||"https://www.youtube.com/watch?v=".concat(this.id),this.uploaded=function(t){var e,n=new Date(t),i=_E(n.getMonth()+1),a=_E(n.getDate()),r=n.getFullYear();e=n.getHours();var o=_E(n.getMinutes()),s="AM",l=parseInt(e,10);return l>12?(s="PM",e=l-12):0===l&&(e="12"),i+"-"+a+"-"+r+" "+(e=_E(e))+":"+o+" "+s}(Date.parse(this.uploaded))},yE=((pE=function(){function t(e){_classCallCheck(this,t),this.http=e,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}return _createClass(t,[{key:"initializeAPI",value:function(t){this.key=t}},{key:"search",value:function(t){if(this.ValidURL(t))return new sn.a;var e=["q=".concat(t),"key=".concat(this.key),"part=snippet","type=video","maxResults=5"].join("&");return this.http.get("".concat(this.url,"?").concat(e)).map((function(t){return t.items.map((function(t){return new bE({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})}))}))}},{key:"ValidURL",value:function(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}]),t}()).\u0275fac=function(t){return new(t||pE)(a.Mc(Of))},pE.\u0275prov=a.uc({token:pE,factory:pE.\u0275fac,providedIn:"root"}),pE);function _E(t){return t<10?"0"+t:t}gE=$localize(_templateObject90());var kE,CE,wE=["placeholder",$localize(_templateObject91())];function xE(t,e){1&t&&(a.Dc(0,"mat-label"),a.Bc(1),a.Hc(2,kE),a.Ac(),a.Cc())}function SE(t,e){1&t&&(a.Dc(0,"mat-label"),a.Bc(1),a.Hc(2,CE),a.Ac(),a.Cc())}function OE(t,e){if(1&t&&(a.Dc(0,"mat-option",8),a.vd(1),a.Cc()),2&t){var n=e.$implicit;a.ad("value",n.id),a.kc(1),a.wd(n.id)}}function DE(t,e){1&t&&(a.Dc(0,"div",9),a.zc(1,"mat-spinner",10),a.Cc()),2&t&&(a.kc(1),a.ad("diameter",25))}kE=$localize(_templateObject92()),CE=$localize(_templateObject93());var EE,AE,IE,TE,PE,RE,ME=function(){return{standalone:!0}},jE=((EE=function(){function t(e,n,i){_classCallCheck(this,t),this.data=e,this.postsService=n,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new jo,this.name="",this.create_in_progress=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}},{key:"createPlaylist",value:function(){var t=this,e=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,e).subscribe((function(e){t.create_in_progress=!1,t.dialogRef.close(!!e.success)}))}},{key:"getThumbnailURL",value:function(){for(var t=0;t1?"first-result-card":"",r===o.results.length-1&&o.results.length>1?"last-result-card":"",1===o.results.length?"only-result-card":"")),a.kc(2),a.xd(" ",i.title," "),a.kc(2),a.xd(" ",i.uploaded," ")}}function JE(t,e){if(1&t&&(a.Dc(0,"div",34),a.td(1,ZE,12,7,"span",28),a.Cc()),2&t){var n=a.Uc();a.kc(1),a.ad("ngForOf",n.results)}}function tA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-checkbox",40),a.Qc("change",(function(t){return a.ld(n),a.Uc().multiDownloadModeChanged(t)}))("ngModelChange",(function(t){return a.ld(n),a.Uc().multiDownloadMode=t})),a.Bc(1),a.Hc(2,QE),a.Ac(),a.Cc()}if(2&t){var i=a.Uc();a.ad("disabled",i.current_download)("ngModel",i.multiDownloadMode)}}function eA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",41),a.Qc("click",(function(){return a.ld(n),a.Uc().cancelDownload()})),a.Bc(1),a.Hc(2,YE),a.Ac(),a.Cc()}}QE=$localize(_templateObject101()),YE=$localize(_templateObject102()),$E=$localize(_templateObject103()),KE=$localize(_templateObject104());var nA,iA,aA=["placeholder",$localize(_templateObject105())];nA=$localize(_templateObject106()),iA=$localize(_templateObject107());var rA,oA,sA,lA,cA=["placeholder",$localize(_templateObject108())];function uA(t,e){if(1&t&&(a.Dc(0,"p"),a.Bc(1),a.Hc(2,sA),a.Ac(),a.vd(3," \xa0"),a.Dc(4,"i"),a.vd(5),a.Cc(),a.Cc()),2&t){var n=a.Uc(2);a.kc(5),a.wd(n.simulatedOutput)}}rA=$localize(_templateObject109()),oA=$localize(_templateObject110()),sA=$localize(_templateObject111()),lA=$localize(_templateObject112());var dA=["placeholder",$localize(_templateObject113())];function hA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",52),a.Dc(1,"mat-checkbox",46),a.Qc("change",(function(t){return a.ld(n),a.Uc(2).youtubeAuthEnabledChanged(t)}))("ngModelChange",(function(t){return a.ld(n),a.Uc(2).youtubeAuthEnabled=t})),a.Bc(2),a.Hc(3,lA),a.Ac(),a.Cc(),a.Dc(4,"mat-form-field",53),a.Dc(5,"input",49),a.Jc(6,dA),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).youtubeUsername=t})),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(1),a.ad("disabled",i.current_download)("ngModel",i.youtubeAuthEnabled)("ngModelOptions",a.cd(6,GE)),a.kc(4),a.ad("ngModel",i.youtubeUsername)("ngModelOptions",a.cd(7,GE))("disabled",!i.youtubeAuthEnabled)}}var mA,fA,pA,gA,vA,bA,yA,_A,kA=["placeholder",$localize(_templateObject114())];function CA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",52),a.Dc(1,"mat-form-field",54),a.Dc(2,"input",55),a.Jc(3,kA),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc(2).youtubePassword=t})),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(2),a.ad("ngModel",i.youtubePassword)("ngModelOptions",a.cd(3,GE))("disabled",!i.youtubeAuthEnabled)}}function wA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",0),a.Dc(1,"form",42),a.Dc(2,"mat-expansion-panel",43),a.Dc(3,"mat-expansion-panel-header"),a.Dc(4,"mat-panel-title"),a.Bc(5),a.Hc(6,$E),a.Ac(),a.Cc(),a.Cc(),a.td(7,uA,6,1,"p",10),a.Dc(8,"div",44),a.Dc(9,"div",5),a.Dc(10,"div",45),a.Dc(11,"mat-checkbox",46),a.Qc("change",(function(t){return a.ld(n),a.Uc().customArgsEnabledChanged(t)}))("ngModelChange",(function(t){return a.ld(n),a.Uc().customArgsEnabled=t})),a.Bc(12),a.Hc(13,KE),a.Ac(),a.Cc(),a.Dc(14,"button",47),a.Qc("click",(function(){return a.ld(n),a.Uc().openArgsModifierDialog()})),a.Dc(15,"mat-icon"),a.vd(16,"edit"),a.Cc(),a.Cc(),a.Dc(17,"mat-form-field",48),a.Dc(18,"input",49),a.Jc(19,aA),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().customArgs=t})),a.Cc(),a.Dc(20,"mat-hint"),a.Bc(21),a.Hc(22,nA),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(23,"div",45),a.Dc(24,"mat-checkbox",46),a.Qc("change",(function(t){return a.ld(n),a.Uc().customOutputEnabledChanged(t)}))("ngModelChange",(function(t){return a.ld(n),a.Uc().customOutputEnabled=t})),a.Bc(25),a.Hc(26,iA),a.Ac(),a.Cc(),a.Dc(27,"mat-form-field",48),a.Dc(28,"input",49),a.Jc(29,cA),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().customOutput=t})),a.Cc(),a.Dc(30,"mat-hint"),a.Dc(31,"a",50),a.Bc(32),a.Hc(33,rA),a.Ac(),a.Cc(),a.vd(34,". "),a.Bc(35),a.Hc(36,oA),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.td(37,hA,7,8,"div",51),a.td(38,CA,4,4,"div",51),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(7),a.ad("ngIf",i.simulatedOutput),a.kc(4),a.ad("disabled",i.current_download)("ngModel",i.customArgsEnabled)("ngModelOptions",a.cd(15,GE)),a.kc(7),a.ad("ngModel",i.customArgs)("ngModelOptions",a.cd(16,GE))("disabled",!i.customArgsEnabled),a.kc(6),a.ad("disabled",i.current_download)("ngModel",i.customOutputEnabled)("ngModelOptions",a.cd(17,GE)),a.kc(4),a.ad("ngModel",i.customOutput)("ngModelOptions",a.cd(18,GE))("disabled",!i.customOutputEnabled),a.kc(9),a.ad("ngIf",!i.youtubeAuthDisabledOverride),a.kc(1),a.ad("ngIf",!i.youtubeAuthDisabledOverride)}}function xA(t,e){1&t&&a.zc(0,"mat-divider",2)}function SA(t,e){if(1&t){var n=a.Ec();a.Bc(0),a.Dc(1,"app-download-item",60),a.Qc("cancelDownload",(function(t){return a.ld(n),a.Uc(3).cancelDownload(t)})),a.Cc(),a.td(2,xA,1,0,"mat-divider",61),a.Ac()}if(2&t){var i=a.Uc(),r=i.$implicit,o=i.index,s=a.Uc(2);a.kc(1),a.ad("download",r)("queueNumber",o+1),a.kc(1),a.ad("ngIf",o!==s.downloads.length-1)}}function OA(t,e){if(1&t&&(a.Dc(0,"div",5),a.td(1,SA,3,3,"ng-container",10),a.Cc()),2&t){var n=e.$implicit,i=a.Uc(2);a.kc(1),a.ad("ngIf",i.current_download!==n&&n.downloading)}}function DA(t,e){if(1&t&&(a.Dc(0,"div",56),a.Dc(1,"mat-card",57),a.Dc(2,"div",58),a.td(3,OA,2,1,"div",59),a.Cc(),a.Cc(),a.Cc()),2&t){var n=a.Uc();a.kc(3),a.ad("ngForOf",n.downloads)}}function EA(t,e){if(1&t&&(a.Dc(0,"div",67),a.zc(1,"mat-progress-bar",68),a.zc(2,"br"),a.Cc()),2&t){var n=a.Uc(2);a.ad("ngClass",n.percentDownloaded>15&&100===n.percentDownloaded?"make-room-for-spinner":"equal-sizes"),a.kc(1),a.bd("value",n.percentDownloaded)}}function AA(t,e){1&t&&(a.Dc(0,"div",69),a.zc(1,"mat-spinner",33),a.Cc()),2&t&&(a.kc(1),a.ad("diameter",25))}function IA(t,e){1&t&&a.zc(0,"mat-progress-bar",70)}function TA(t,e){if(1&t&&(a.Dc(0,"div",62),a.Dc(1,"div",63),a.td(2,EA,3,2,"div",64),a.td(3,AA,2,1,"div",65),a.td(4,IA,1,0,"ng-template",null,66,a.ud),a.Cc(),a.zc(6,"br"),a.Cc()),2&t){var n=a.hd(5),i=a.Uc();a.kc(2),a.ad("ngIf",i.current_download.percent_complete&&i.current_download.percent_complete>15)("ngIfElse",n),a.kc(1),a.ad("ngIf",100===i.percentDownloaded)}}function PA(t,e){}function RA(t,e){1&t&&a.zc(0,"mat-progress-bar",82)}function MA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",79,80),a.Qc("removeFile",(function(t){return a.ld(n),a.Uc(3).removeFromMp3(t)})),a.Cc(),a.td(3,RA,1,0,"mat-progress-bar",81),a.Cc()}if(2&t){var i=e.$implicit,r=a.Uc(3);a.kc(1),a.ad("file",i)("title",i.title)("name",i.id)("uid",i.uid)("thumbnailURL",i.thumbnailURL)("length",i.duration)("isAudio",!0)("use_youtubedl_archive",r.use_youtubedl_archive),a.kc(2),a.ad("ngIf",r.downloading_content.audio[i.id])}}function jA(t,e){1&t&&a.zc(0,"mat-progress-bar",82)}function LA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",84,80),a.Qc("removeFile",(function(){a.ld(n);var t=e.$implicit,i=e.index;return a.Uc(4).removePlaylistMp3(t.id,i)})),a.Cc(),a.td(3,jA,1,0,"mat-progress-bar",81),a.Cc()}if(2&t){var i=e.$implicit,r=a.Uc(4);a.kc(1),a.ad("title",i.name)("name",i.id)("thumbnailURL",r.playlist_thumbnails[i.id])("length",null)("isAudio",!0)("isPlaylist",!0)("count",i.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.kc(2),a.ad("ngIf",r.downloading_content.audio[i.id])}}function FA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-list",83),a.Qc("resize",(function(t){return a.ld(n),a.Uc(3).onResize(t)}),!1,a.kd),a.td(1,LA,4,9,"mat-grid-tile",28),a.Cc()}if(2&t){var i=a.Uc(3);a.ad("cols",i.files_cols),a.kc(1),a.ad("ngForOf",i.playlists.audio)}}function zA(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,bA),a.Ac(),a.Cc())}function NA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-grid-list",74),a.Qc("resize",(function(t){return a.ld(n),a.Uc(2).onResize(t)}),!1,a.kd),a.td(2,MA,4,9,"mat-grid-tile",28),a.Cc(),a.zc(3,"mat-divider"),a.Dc(4,"div",75),a.Dc(5,"h6"),a.Hc(6,vA),a.Cc(),a.Cc(),a.td(7,FA,2,2,"mat-grid-list",76),a.Dc(8,"div",77),a.Dc(9,"button",78),a.Qc("click",(function(){return a.ld(n),a.Uc(2).openCreatePlaylistDialog("audio")})),a.Dc(10,"mat-icon"),a.vd(11,"add"),a.Cc(),a.Cc(),a.Cc(),a.td(12,zA,3,0,"div",10),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(1),a.ad("cols",i.files_cols),a.kc(1),a.ad("ngForOf",i.mp3s),a.kc(5),a.ad("ngIf",i.playlists.audio.length>0),a.kc(5),a.ad("ngIf",0===i.playlists.audio.length)}}function BA(t,e){1&t&&a.zc(0,"mat-progress-bar",82)}function VA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",79,85),a.Qc("removeFile",(function(t){return a.ld(n),a.Uc(3).removeFromMp4(t)})),a.Cc(),a.td(3,BA,1,0,"mat-progress-bar",81),a.Cc()}if(2&t){var i=e.$implicit,r=a.Uc(3);a.kc(1),a.ad("file",i)("title",i.title)("name",i.id)("uid",i.uid)("thumbnailURL",i.thumbnailURL)("length",i.duration)("isAudio",!1)("use_youtubedl_archive",r.use_youtubedl_archive),a.kc(2),a.ad("ngIf",r.downloading_content.video[i.id])}}function UA(t,e){1&t&&a.zc(0,"mat-progress-bar",82)}function HA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",84,85),a.Qc("removeFile",(function(){a.ld(n);var t=e.$implicit,i=e.index;return a.Uc(4).removePlaylistMp4(t.id,i)})),a.Cc(),a.td(3,UA,1,0,"mat-progress-bar",81),a.Cc()}if(2&t){var i=e.$implicit,r=a.Uc(4);a.kc(1),a.ad("title",i.name)("name",i.id)("thumbnailURL",r.playlist_thumbnails[i.id])("length",null)("isAudio",!1)("isPlaylist",!0)("count",i.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.kc(2),a.ad("ngIf",r.downloading_content.video[i.id])}}function qA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-list",83),a.Qc("resize",(function(t){return a.ld(n),a.Uc(3).onResize(t)}),!1,a.kd),a.td(1,HA,4,9,"mat-grid-tile",28),a.Cc()}if(2&t){var i=a.Uc(3);a.ad("cols",i.files_cols),a.kc(1),a.ad("ngForOf",i.playlists.video)}}function GA(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,_A),a.Ac(),a.Cc())}function WA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-grid-list",74),a.Qc("resize",(function(t){return a.ld(n),a.Uc(2).onResize(t)}),!1,a.kd),a.td(2,VA,4,9,"mat-grid-tile",28),a.Cc(),a.zc(3,"mat-divider"),a.Dc(4,"div",75),a.Dc(5,"h6"),a.Hc(6,yA),a.Cc(),a.Cc(),a.td(7,qA,2,2,"mat-grid-list",76),a.Dc(8,"div",77),a.Dc(9,"button",78),a.Qc("click",(function(){return a.ld(n),a.Uc(2).openCreatePlaylistDialog("video")})),a.Dc(10,"mat-icon"),a.vd(11,"add"),a.Cc(),a.Cc(),a.Cc(),a.td(12,GA,3,0,"div",10),a.Cc()}if(2&t){var i=a.Uc(2);a.kc(1),a.ad("cols",i.files_cols),a.kc(1),a.ad("ngForOf",i.mp4s),a.kc(5),a.ad("ngIf",i.playlists.video.length>0),a.kc(5),a.ad("ngIf",0===i.playlists.video.length)}}function QA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",71),a.Dc(1,"mat-accordion"),a.Dc(2,"mat-expansion-panel",72),a.Qc("opened",(function(){return a.ld(n),a.Uc().accordionOpened("audio")}))("closed",(function(){return a.ld(n),a.Uc().accordionClosed("audio")}))("mouseleave",(function(){return a.ld(n),a.Uc().accordionLeft("audio")}))("mouseenter",(function(){return a.ld(n),a.Uc().accordionEntered("audio")})),a.Dc(3,"mat-expansion-panel-header"),a.Dc(4,"mat-panel-title"),a.Bc(5),a.Hc(6,mA),a.Ac(),a.Cc(),a.Dc(7,"mat-panel-description"),a.Bc(8),a.Hc(9,fA),a.Ac(),a.Cc(),a.Cc(),a.td(10,NA,13,4,"div",73),a.Cc(),a.Dc(11,"mat-expansion-panel",72),a.Qc("opened",(function(){return a.ld(n),a.Uc().accordionOpened("video")}))("closed",(function(){return a.ld(n),a.Uc().accordionClosed("video")}))("mouseleave",(function(){return a.ld(n),a.Uc().accordionLeft("video")}))("mouseenter",(function(){return a.ld(n),a.Uc().accordionEntered("video")})),a.Dc(12,"mat-expansion-panel-header"),a.Dc(13,"mat-panel-title"),a.Bc(14),a.Hc(15,pA),a.Ac(),a.Cc(),a.Dc(16,"mat-panel-description"),a.Bc(17),a.Hc(18,gA),a.Ac(),a.Cc(),a.Cc(),a.td(19,WA,13,4,"div",73),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc(),r=a.hd(39),o=a.hd(41);a.kc(10),a.ad("ngIf",i.mp3s.length>0)("ngIfElse",r),a.kc(9),a.ad("ngIf",i.mp4s.length>0)("ngIfElse",o)}}function YA(t,e){}function $A(t,e){}mA=$localize(_templateObject115()),fA=$localize(_templateObject116()),pA=$localize(_templateObject117()),gA=$localize(_templateObject118()),vA=$localize(_templateObject119()),bA=$localize(_templateObject120()),yA=$localize(_templateObject121()),_A=$localize(_templateObject122());var KA,XA=!1,ZA=!1,JA=!1,tI=!1,eI=((KA=function(){function t(e,n,i,a,r,o,s){_classCallCheck(this,t),this.postsService=e,this.youtubeSearch=n,this.snackBar=i,this.router=a,this.dialog=r,this.platform=o,this.route=s,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new jo("",[Er.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}return _createClass(t,[{key:"configLoad",value:function(){return fE(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadConfig();case 2:this.autoStartDownload&&this.downloadClicked(),setInterval((function(){return e.getSimulatedOutput()}),1e3);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"loadConfig",value:function(){return fE(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.postsService.loadNavItems().subscribe((function(t){var n=e.postsService.debugMode?t:t.config_file;if(e.fileManagerEnabled=n.YoutubeDLMaterial.Extra.file_manager_enabled,e.downloadOnlyMode=n.YoutubeDLMaterial.Extra.download_only_mode,e.allowMultiDownloadMode=n.YoutubeDLMaterial.Extra.allow_multi_download_mode,e.audioFolderPath=n.YoutubeDLMaterial.Downloader["path-audio"],e.videoFolderPath=n.YoutubeDLMaterial.Downloader["path-video"],e.use_youtubedl_archive=n.YoutubeDLMaterial.Downloader.use_youtubedl_archive,e.globalCustomArgs=n.YoutubeDLMaterial.Downloader.custom_args,e.youtubeSearchEnabled=n.YoutubeDLMaterial.API&&n.YoutubeDLMaterial.API.use_youtube_API&&n.YoutubeDLMaterial.API.youtube_API_key,e.youtubeAPIKey=e.youtubeSearchEnabled?n.YoutubeDLMaterial.API.youtube_API_key:null,e.allowQualitySelect=n.YoutubeDLMaterial.Extra.allow_quality_select,e.allowAdvancedDownload=n.YoutubeDLMaterial.Advanced.allow_advanced_download,e.useDefaultDownloadingAgent=n.YoutubeDLMaterial.Advanced.use_default_downloading_agent,e.customDownloadingAgent=n.YoutubeDLMaterial.Advanced.custom_downloading_agent,e.fileManagerEnabled&&(e.getMp3s(),e.getMp4s()),e.youtubeSearchEnabled&&e.youtubeAPIKey&&(e.youtubeSearch.initializeAPI(e.youtubeAPIKey),e.attachToInput()),e.allowAdvancedDownload){null!==localStorage.getItem("customArgsEnabled")&&(e.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(e.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(e.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled"));var i=localStorage.getItem("customArgs"),a=localStorage.getItem("customOutput"),r=localStorage.getItem("youtubeUsername");i&&"null"!==i&&(e.customArgs=i),a&&"null"!==a&&(e.customOutput=a),r&&"null"!==r&&(e.youtubeUsername=r)}return setInterval((function(){e.current_download&&e.getCurrentDownload()}),500),!0}),(function(t){return console.log(t),!1}));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"ngOnInit",value:function(){var t=this;this.configLoad(),this.postsService.settings_changed.subscribe((function(e){e&&t.loadConfig()})),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}},{key:"getMp3s",value:function(){var t=this;this.postsService.getMp3s().subscribe((function(e){var n=e.mp3s,i=e.playlists;JSON.stringify(t.mp3s)!==JSON.stringify(n)&&(t.mp3s=n),t.playlists.audio=i;for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(this.downloadingfile=!1,this.multiDownloadMode&&!this.downloadOnlyMode);else if(!1===a&&this.downloadOnlyMode&&!this.iOS)if(i){var o=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",o)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{fileNames:t,type:"audio",uid:e}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp3s(),setTimeout((function(){n.audioFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadHelperMp4",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(this.downloadingfile=!1,this.multiDownloadMode&&!this.downloadOnlyMode);else if(!1===a&&this.downloadOnlyMode)if(i){var o=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",o)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{fileNames:t,type:"video",uid:e}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp4s(),setTimeout((function(){n.videoFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadClicked",value:function(){var t=this;if(this.ValidURL(this.url)){this.urlError=!1,this.path="";var e=this.customArgsEnabled?this.customArgs:null,n=this.customOutputEnabled?this.customOutput:null,i=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,a=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(e&&localStorage.setItem("customArgs",e),n&&localStorage.setItem("customOutput",n),i&&localStorage.setItem("youtubeUsername",i)),this.audioOnly){var r={uid:Object(Zk.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(r),this.current_download||this.multiDownloadMode||(this.current_download=r),this.downloadingfile=!0;var o=null;""!==this.selectedQuality&&(o=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,o,e,n,i,a,r.uid).subscribe((function(e){r.downloading=!1,r.percent_complete=100;var n=!!e.file_names;t.path=n?e.file_names:e.audiopathEncoded,t.current_download=null,"-1"!==t.path&&t.downloadHelperMp3(t.path,e.uid,n,!1,r)}),(function(e){t.downloadingfile=!1,t.current_download=null,r.downloading=!1;var n=t.downloads.indexOf(r);-1!==n&&t.downloads.splice(n),t.openSnackBar("Download failed!","OK.")}))}else{var s={uid:Object(Zk.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;var l=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,l,e,n,i,a,s.uid).subscribe((function(e){s.downloading=!1,s.percent_complete=100;var n=!!e.file_names;t.path=n?e.file_names:e.videopathEncoded,t.current_download=null,"-1"!==t.path&&t.downloadHelperMp4(t.path,e.uid,n,!1,s)}),(function(e){t.downloadingfile=!1,t.current_download=null,s.downloading=!1;var n=t.downloads.indexOf(s);-1!==n&&t.downloads.splice(n),t.openSnackBar("Download failed!","OK.")}))}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}},{key:"cancelDownload",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}},{key:"getSelectedAudioFormat",value:function(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}},{key:"getSelectedVideoFormat",value:function(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){var t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}},{key:"getDownloadByUID",value:function(t){var e=this.downloads.findIndex((function(e){return e.uid===t}));return-1!==e?this.downloads[e]:null}},{key:"removeDownloadFromCurrentDownloads",value:function(t){this.current_download===t&&(this.current_download=null);var e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}},{key:"downloadAudioFile",value:function(t){var e=this;this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe((function(n){e.downloading_content.audio[t]=!1;var i=n;Object(vE.saveAs)(i,decodeURIComponent(t)+".mp3"),e.fileManagerEnabled||e.postsService.deleteFile(t,!0).subscribe((function(t){e.getMp3s()}))}))}},{key:"downloadVideoFile",value:function(t){var e=this;this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe((function(n){e.downloading_content.video[t]=!1;var i=n;Object(vE.saveAs)(i,decodeURIComponent(t)+".mp4"),e.fileManagerEnabled||e.postsService.deleteFile(t,!1).subscribe((function(t){e.getMp4s()}))}))}},{key:"downloadPlaylist",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.postsService.downloadFileFromServer(t,e,i).subscribe((function(t){a&&(n.downloading_content[e][a]=!1);var r=t;Object(vE.saveAs)(r,i+".zip")}))}},{key:"clearInput",value:function(){this.url="",this.results_showing=!1}},{key:"onInputBlur",value:function(){this.results_showing=!1}},{key:"visitURL",value:function(t){window.open(t)}},{key:"useURL",value:function(t){this.results_showing=!1,this.url=t}},{key:"inputChanged",value:function(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}},{key:"ValidURL",value:function(t){var e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}},{key:"getURLInfo",value:function(t){var e=this;t.includes("playlist")||(this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe((function(n){e.cachedAvailableFormats[t].formats_loading=!1;var i=n.result;if(i&&i.formats){var a=e.getAudioAndVideoFormats(i.formats);e.cachedAvailableFormats[t].formats={audio:a[0],video:a[1]}}else e.errorFormats(t)}),(function(n){e.errorFormats(t)}))))}},{key:"getSimulatedOutput",value:function(){var t,e,n=this.globalCustomArgs&&""!==this.globalCustomArgs,i=[],a=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=a.join(" ")+" "+this.customArgs,this.simulatedOutput;(t=i).push.apply(t,a);var r=this.audioOnly?this.audioFolderPath:this.videoFolderPath,o=this.audioOnly?".mp3":".mp4",s=["-o",r+"%(title)s"+o];if(this.customOutputEnabled&&this.customOutput&&(s=["-o",r+this.customOutput+o]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||i.push("--external-downloader","aria2c"),(e=i).push.apply(e,_toConsumableArray(s)),this.audioOnly){var l,c=[],u=this.getSelectedAudioFormat();u?c.push("-f",u):this.selectedQuality&&c.push("--audio-quality",this.selectedQuality),(l=i).splice.apply(l,[2,0].concat(c)),i.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{var d,h=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"],m=this.getSelectedVideoFormat();m?h=["-f",m]:this.selectedQuality&&(h=["bestvideo[height=".concat(this.selectedQuality,"]+bestaudio/best[height=").concat(this.selectedQuality,"]")]),(d=i).splice.apply(d,[2,0].concat(_toConsumableArray(h))),i.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&i.push("--download-archive","archive.txt"),n&&(i=i.concat(this.globalCustomArgs.split(" "))),this.simulatedOutput=i.join(" "),this.simulatedOutput}},{key:"errorFormats",value:function(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}},{key:"attachToInput",value:function(){var t=this;sn.a.fromEvent(this.urlInput.nativeElement,"keyup").map((function(t){return t.target.value})).filter((function(t){return t.length>1})).debounceTime(250).do((function(){return t.results_loading=!0})).map((function(e){return t.youtubeSearch.search(e)})).switch().subscribe((function(e){t.results_loading=!1,""!==t.url&&e&&e.length>0?(t.results=e,t.results_showing=!0):t.results_showing=!1}),(function(e){console.log(e),t.results_loading=!1,t.results_showing=!1}),(function(){t.results_loading=!1}))}},{key:"onResize",value:function(t){this.setCols()}},{key:"videoModeChanged",value:function(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}},{key:"multiDownloadModeChanged",value:function(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}},{key:"customArgsEnabledChanged",value:function(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}},{key:"customOutputEnabledChanged",value:function(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"youtubeAuthEnabledChanged",value:function(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"getAudioAndVideoFormats",value:function(t){for(var e={},n={},i=0;in&&(e=r.format_id,n=r.bitrate)}return e}},{key:"accordionEntered",value:function(t){"audio"===t?(XA=!0,this.audioFileCards.forEach((function(t){t.onHoverResponse()}))):"video"===t&&(ZA=!0,this.videoFileCards.forEach((function(t){t.onHoverResponse()})))}},{key:"accordionLeft",value:function(t){"audio"===t?XA=!1:"video"===t&&(ZA=!1)}},{key:"accordionOpened",value:function(t){"audio"===t?JA=!0:"video"===t&&(tI=!0)}},{key:"accordionClosed",value:function(t){"audio"===t?JA=!1:"video"===t&&(tI=!1)}},{key:"openCreatePlaylistDialog",value:function(t){var e=this;this.dialog.open(jE,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe((function(n){n?("audio"===t&&e.getMp3s(),"video"===t&&e.getMp4s(),e.openSnackBar("Successfully created playlist!","")):!1===n&&e.openSnackBar("ERROR: failed to create playlist!","")}))}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(YS,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(e){e&&(t.customArgs=e)}))}},{key:"getCurrentDownload",value:function(){var t=this;this.postsService.getCurrentDownload(this.postsService.session_id,this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid).subscribe((function(e){var n=t.current_download.ui_uid?t.current_download.ui_uid:t.current_download.uid;e.download?(console.log("got new download"),n===e.download.ui_uid&&(t.current_download=e.download,t.percentDownloaded=t.current_download.percent_complete,console.log(t.percentDownloaded))):console.log("failed to get new download")}))}}]),t}()).\u0275fac=function(t){return new(t||KA)(a.yc(gS),a.yc(yE),a.yc(Sy),a.yc(Fx),a.yc(Sh),a.yc(Sn),a.yc(Dw))},KA.\u0275cmp=a.sc({type:KA,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(a.zd(LE,!0,a.q),a.zd(FE,!0),a.zd(zE,!0)),2&t&&(a.gd(n=a.Rc())&&(e.urlInput=n.first),a.gd(n=a.Rc())&&(e.audioFileCards=n),a.gd(n=a.Rc())&&(e.videoFileCards=n))},decls:42,vars:18,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url","required","",2,"padding-right","25px",3,"ngModel","placeholder","formControl","ngModelChange"],["urlinput",""],[4,"ngIf"],["mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","isPlaylist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(a.zc(0,"br"),a.Dc(1,"div",0),a.Dc(2,"mat-card",1),a.Dc(3,"mat-card-title"),a.Bc(4),a.Hc(5,AE),a.Ac(),a.Cc(),a.Dc(6,"mat-card-content"),a.Dc(7,"div",2),a.Dc(8,"form",3),a.Dc(9,"div",4),a.Dc(10,"div",5),a.Dc(11,"div",6),a.Dc(12,"mat-form-field",7),a.Dc(13,"input",8,9),a.Qc("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),a.Cc(),a.td(15,NE,3,0,"mat-error",10),a.Dc(16,"button",11),a.Qc("click",(function(){return e.clearInput()})),a.Dc(17,"mat-icon"),a.vd(18,"clear"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.td(19,WE,8,5,"div",12),a.Cc(),a.Cc(),a.td(20,JE,2,1,"div",13),a.Cc(),a.zc(21,"br"),a.Dc(22,"mat-checkbox",14),a.Qc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),a.Bc(23),a.Hc(24,IE),a.Ac(),a.Cc(),a.td(25,tA,3,2,"mat-checkbox",15),a.Cc(),a.Cc(),a.Dc(26,"mat-card-actions"),a.Dc(27,"button",16),a.Qc("click",(function(){return e.downloadClicked()})),a.Bc(28),a.Hc(29,TE),a.Ac(),a.Cc(),a.td(30,eA,3,0,"button",17),a.Cc(),a.Cc(),a.Cc(),a.td(31,wA,39,19,"div",18),a.td(32,DA,4,1,"div",19),a.zc(33,"br"),a.td(34,TA,7,3,"div",20),a.td(35,PA,0,0,"ng-template",null,21,a.ud),a.td(37,QA,20,4,"div",22),a.td(38,YA,0,0,"ng-template",null,23,a.ud),a.td(40,$A,0,0,"ng-template",null,24,a.ud)),2&t){var n=a.hd(36);a.kc(2),a.ad("ngClass",e.allowAdvancedDownload?"no-border-radius-bottom":null),a.kc(9),a.ad("ngClass",e.allowQualitySelect?"col-sm-9":null),a.kc(2),a.ad("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":""))("formControl",e.urlForm),a.kc(2),a.ad("ngIf",e.urlError||e.urlForm.invalid),a.kc(4),a.ad("ngIf",e.allowQualitySelect),a.kc(1),a.ad("ngIf",e.results_showing),a.kc(2),a.ad("disabled",e.current_download)("ngModel",e.audioOnly),a.kc(3),a.ad("ngIf",e.allowMultiDownloadMode),a.kc(2),a.ad("disabled",e.downloadingfile),a.kc(3),a.ad("ngIf",!!e.current_download),a.kc(1),a.ad("ngIf",e.allowAdvancedDownload),a.kc(1),a.ad("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),a.kc(2),a.ad("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",n),a.kc(3),a.ad("ngIf",e.fileManagerEnabled)}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:-10px;top:5px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),KA);sn.a.merge=Zl.a;var nI,iI,aI,rI,oI,sI,lI,cI=n("zuWl"),uI=n.n(cI);nI=$localize(_templateObject123()),iI=$localize(_templateObject124()),aI=$localize(_templateObject125()),rI=$localize(_templateObject126()),oI=$localize(_templateObject127()),sI=$localize(_templateObject128()),lI=$localize(_templateObject129());var dI,hI=((dI=function(){function t(e){_classCallCheck(this,t),this.data=e}return _createClass(t,[{key:"ngOnInit",value:function(){this.filesize=uI.a,this.data&&(this.file=this.data.file)}}]),t}()).\u0275fac=function(t){return new(t||dI)(a.yc(kh))},dI.\u0275cmp=a.sc({type:dI,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.vd(1),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"div",2),a.Dc(5,"strong"),a.Bc(6),a.Hc(7,nI),a.Ac(),a.vd(8,"\xa0"),a.Cc(),a.Cc(),a.Dc(9,"div",3),a.vd(10),a.Cc(),a.Cc(),a.Dc(11,"div",1),a.Dc(12,"div",2),a.Dc(13,"strong"),a.Bc(14),a.Hc(15,iI),a.Ac(),a.vd(16,"\xa0"),a.Cc(),a.Cc(),a.Dc(17,"div",3),a.Dc(18,"a",4),a.vd(19),a.Cc(),a.Cc(),a.Cc(),a.Dc(20,"div",1),a.Dc(21,"div",2),a.Dc(22,"strong"),a.Bc(23),a.Hc(24,aI),a.Ac(),a.vd(25,"\xa0"),a.Cc(),a.Cc(),a.Dc(26,"div",3),a.vd(27),a.Cc(),a.Cc(),a.Dc(28,"div",1),a.Dc(29,"div",2),a.Dc(30,"strong"),a.Bc(31),a.Hc(32,rI),a.Ac(),a.vd(33,"\xa0"),a.Cc(),a.Cc(),a.Dc(34,"div",3),a.vd(35),a.Cc(),a.Cc(),a.Dc(36,"div",1),a.Dc(37,"div",2),a.Dc(38,"strong"),a.Bc(39),a.Hc(40,oI),a.Ac(),a.vd(41,"\xa0"),a.Cc(),a.Cc(),a.Dc(42,"div",3),a.vd(43),a.Cc(),a.Cc(),a.Dc(44,"div",1),a.Dc(45,"div",2),a.Dc(46,"strong"),a.Bc(47),a.Hc(48,sI),a.Ac(),a.vd(49,"\xa0"),a.Cc(),a.Cc(),a.Dc(50,"div",3),a.vd(51),a.Cc(),a.Cc(),a.Cc(),a.Dc(52,"mat-dialog-actions"),a.Dc(53,"button",5),a.Bc(54),a.Hc(55,lI),a.Ac(),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.wd(e.file.title),a.kc(9),a.wd(e.file.title),a.kc(8),a.ad("href",e.file.url,a.nd),a.kc(1),a.wd(e.file.url),a.kc(8),a.wd(e.file.uploader?e.file.uploader:"N/A"),a.kc(8),a.wd(e.file.size?e.filesize(e.file.size):"N/A"),a.kc(8),a.wd(e.file.path?e.file.path:"N/A"),a.kc(8),a.wd(e.file.upload_date?e.file.upload_date:"N/A"))},directives:[Eh,Ah,Ih,Ya,Dh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),dI),mI=new sn.a(Ue.a);function fI(t,e){t.className=t.className.replace(e,"")}function pI(t,e){t.className.includes(e)||(t.className+=" ".concat(e))}function gI(){return"undefined"!=typeof window?window.navigator:void 0}function vI(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function bI(t){return"img"===t.nodeName.toLowerCase()}function yI(t,e,n){return bI(t)?n&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage="url('".concat(e,"')"),t}function _I(t){return function(e){for(var n=e.parentElement.getElementsByTagName("source"),i=0;i1&&void 0!==arguments[1]?arguments[1]:VI;return t.customObservable?t.customObservable:e(t)}}),HI=Object.assign({},EI,{isVisible:function(){return!0},getObservable:function(){return Ne("load")},loadImage:function(t){return[t.imagePath]}}),qI=((PI=function(){function t(e,n,i,r){_classCallCheck(this,t),this.onStateChange=new a.s,this.onLoad=new a.s,this.elementRef=e,this.ngZone=n,this.propertyChanges$=new Uc,this.platformId=i,this.hooks=function(t,e){var n=UI,i=e&&e.isBot?e.isBot:n.isBot;if(i(gI(),t))return Object.assign(HI,{isBot:i});if(!e)return n;var a={};return Object.assign(a,e.preset?e.preset:n),Object.keys(e).filter((function(t){return"preset"!==t})).forEach((function(t){a[t]=e[t]})),a}(i,r)}return _createClass(t,[{key:"ngOnChanges",value:function(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe((function(t){return console.log(t)}))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}},{key:"ngAfterContentInit",value:function(){var t=this;if(Object(ye.J)(this.platformId)&&!this.hooks.isBot(gI(),this.platformId))return null;this.ngZone.runOutsideAngular((function(){t.loadSubscription=t.propertyChanges$.pipe(qe((function(t){return t.onStateChange.emit({reason:"setup"})})),qe((function(e){return t.hooks.setup(e)})),Sc((function(e){return e.imagePath?t.hooks.getObservable(e).pipe(function(t,e){return function(n){return n.pipe(qe((function(t){return e.onStateChange.emit({reason:"observer-emit",data:t})})),en((function(n){return t.isVisible({element:e.element,event:n,offset:e.offset,scrollContainer:e.scrollContainer})})),un(1),qe((function(){return e.onStateChange.emit({reason:"start-loading"})})),Object(Zm.a)((function(){return t.loadImage(e)})),qe((function(){return e.onStateChange.emit({reason:"mount-image"})})),qe((function(n){return t.setLoadedImage({element:e.element,imagePath:n,useSrcset:e.useSrcset})})),qe((function(){return e.onStateChange.emit({reason:"loading-succeeded"})})),Object(rn.a)((function(){return!0})),Gm((function(n){return e.onStateChange.emit({reason:"loading-failed",data:n}),t.setErrorImage(e),Ne(!1)})),qe((function(){e.onStateChange.emit({reason:"finally"}),t.finally(e)})))}}(t.hooks,e)):mI}))).subscribe((function(e){return t.onLoad.emit(e)}))}))}},{key:"ngOnDestroy",value:function(){var t,e;null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||PI)(a.yc(a.q),a.yc(a.F),a.yc(a.I),a.yc("options",8))},PI.\u0275dir=a.tc({type:PI,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[a.ic]}),PI),GI=((MI=RI=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(t){return{ngModule:RI,providers:[{provide:"options",useValue:t}]}}}]),t}()).\u0275mod=a.wc({type:MI}),MI.\u0275inj=a.vc({factory:function(t){return new(t||MI)}}),MI);function WI(t,e){if(1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,zI),a.Ac(),a.vd(3),a.Cc()),2&t){var n=a.Uc();a.kc(3),a.xd("\xa0",n.count,"")}}function QI(t,e){1&t&&a.zc(0,"span")}function YI(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",12),a.Dc(1,"img",13),a.Qc("error",(function(t){return a.ld(n),a.Uc().onImgError(t)}))("onLoad",(function(t){return a.ld(n),a.Uc().imageLoaded(t)})),a.Cc(),a.td(2,QI,1,0,"span",5),a.Cc()}if(2&t){var i=a.Uc();a.kc(1),a.ad("id",i.type)("lazyLoad",i.thumbnailURL)("customObservable",i.scrollAndLoad),a.kc(1),a.ad("ngIf",!i.image_loaded)}}function $I(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",14),a.Qc("click",(function(){return a.ld(n),a.Uc().deleteFile()})),a.Dc(1,"mat-icon"),a.vd(2,"delete_forever"),a.Cc(),a.Cc()}}function KI(t,e){if(1&t&&(a.Dc(0,"button",15),a.Dc(1,"mat-icon"),a.vd(2,"more_vert"),a.Cc(),a.Cc()),2&t){a.Uc();var n=a.hd(16);a.ad("matMenuTriggerFor",n)}}function XI(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",10),a.Qc("click",(function(){return a.ld(n),a.Uc().deleteFile(!0)})),a.Dc(1,"mat-icon"),a.vd(2,"delete_forever"),a.Cc(),a.Bc(3),a.Hc(4,NI),a.Ac(),a.Cc()}}jI=$localize(_templateObject130()),LI=$localize(_templateObject131()),FI=$localize(_templateObject132()),zI=$localize(_templateObject133()),NI=$localize(_templateObject134());var ZI,JI=((ZI=function(){function t(e,n,i,r){_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.mainComponent=i,this.dialog=r,this.isAudio=!0,this.removeFile=new a.s,this.isPlaylist=!1,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Me.a,this.scrollAndLoad=sn.a.merge(sn.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(t,[{key:"ngOnInit",value:function(){this.type=this.isAudio?"audio":"video"}},{key:"deleteFile",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isPlaylist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,e).subscribe((function(e){e?(t.openSnackBar("Delete success!","OK."),t.removeFile.emit(t.name)):t.openSnackBar("Delete failed!","OK.")}),(function(e){t.openSnackBar("Delete failed!","OK.")}))}},{key:"openVideoInfoDialog",value:function(){this.dialog.open(hI,{data:{file:this.file},minWidth:"50vw"})}},{key:"onImgError",value:function(t){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(t){this.image_loaded=!0}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||ZI)(a.yc(gS),a.yc(Sy),a.yc(eI),a.yc(Sh))},ZI.\u0275cmp=a.sc({type:ZI,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",isPlaylist:"isPlaylist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:28,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"click",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"click"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(a.Dc(0,"mat-card",0),a.Dc(1,"div",1),a.Dc(2,"div",2),a.Dc(3,"div"),a.Dc(4,"b"),a.Dc(5,"a",3),a.Qc("click",(function(){return e.isPlaylist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio,e.uid)})),a.vd(6),a.Cc(),a.Cc(),a.Cc(),a.Dc(7,"span",4),a.Bc(8),a.Hc(9,jI),a.Ac(),a.vd(10),a.Cc(),a.td(11,WI,4,1,"div",5),a.Cc(),a.td(12,YI,3,4,"div",6),a.Cc(),a.td(13,$I,3,0,"button",7),a.td(14,KI,3,1,"button",8),a.Dc(15,"mat-menu",null,9),a.Dc(17,"button",10),a.Qc("click",(function(){return e.openVideoInfoDialog()})),a.Dc(18,"mat-icon"),a.vd(19,"info"),a.Cc(),a.Bc(20),a.Hc(21,LI),a.Ac(),a.Cc(),a.Dc(22,"button",10),a.Qc("click",(function(){return e.deleteFile()})),a.Dc(23,"mat-icon"),a.vd(24,"delete"),a.Cc(),a.Bc(25),a.Hc(26,FI),a.Ac(),a.Cc(),a.td(27,XI,5,0,"button",11),a.Cc(),a.Cc()),2&t&&(a.kc(6),a.wd(e.title),a.kc(4),a.xd("\xa0",e.name,""),a.kc(1),a.ad("ngIf",e.isPlaylist),a.kc(1),a.ad("ngIf",!e.image_errored&&e.thumbnailURL),a.kc(1),a.ad("ngIf",e.isPlaylist),a.kc(1),a.ad("ngIf",!e.isPlaylist),a.kc(13),a.ad("ngIf",e.use_youtubedl_archive))},directives:[Pl,ye.t,Ag,wg,mp,qI,Ya,Rg],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),ZI);function tT(t,e){1&t&&(a.Dc(0,"div",6),a.zc(1,"mat-spinner",7),a.Cc()),2&t&&(a.kc(1),a.ad("diameter",25))}var eT,nT,iT,aT,rT,oT,sT,lT=((eT=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.data=n,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}},{key:"enterPressed",value:function(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}]),t}()).\u0275fac=function(t){return new(t||eT)(a.yc(_h),a.yc(kh))},eT.\u0275cmp=a.sc({type:eT,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.vd(1),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div"),a.Dc(4,"mat-form-field",1),a.Dc(5,"input",2),a.Qc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(6,"mat-dialog-actions"),a.Dc(7,"button",3),a.vd(8,"Cancel"),a.Cc(),a.Dc(9,"button",4),a.Qc("click",(function(){return e.enterPressed()})),a.vd(10),a.Cc(),a.td(11,tT,2,1,"div",5),a.Cc()),2&t&&(a.kc(1),a.wd(e.inputTitle),a.kc(4),a.ad("ngModel",e.inputText)("placeholder",e.inputPlaceholder),a.kc(4),a.ad("disabled",!e.inputText),a.kc(1),a.wd(e.submitText),a.kc(1),a.ad("ngIf",e.inputSubmitted))},directives:[Eh,Ah,zd,Op,mr,Cr,Yo,Ih,Ya,Dh,ye.t,Tv],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),eT);function cT(t,e){1&t&&(a.Bc(0),a.Hc(1,rT),a.Ac())}function uT(t,e){1&t&&(a.Bc(0),a.Hc(1,oT),a.Ac())}function dT(t,e){1&t&&(a.Bc(0),a.Hc(1,sT),a.Ac())}nT=$localize(_templateObject135()),iT=$localize(_templateObject136()),aT=$localize(_templateObject137()),rT=$localize(_templateObject138()),oT=$localize(_templateObject139()),sT=$localize(_templateObject140());var hT,mT=((hT=function(){function t(e,n,i,a){_classCallCheck(this,t),this.data=e,this.router=n,this.snackBar=i,this.postsService=a,this.type=null,this.uid=null,this.share_url=null,this.sharing_enabled=null,this.is_playlist=null}return _createClass(t,[{key:"ngOnInit",value:function(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist;var t=this.is_playlist?";id=":";uid=";this.share_url=window.location.href.split(";")[0]+t+this.uid}}},{key:"copiedToClipboard",value:function(){this.openSnackBar("Copied to clipboard!")}},{key:"sharingChanged",value:function(t){var e=this;t.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe((function(t){t.success?(e.openSnackBar("Sharing enabled."),e.sharing_enabled=!0):e.openSnackBar("Failed to enable sharing.")}),(function(t){e.openSnackBar("Failed to enable sharing - server error.")})):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe((function(t){t.success?(e.openSnackBar("Sharing disabled."),e.sharing_enabled=!1):e.openSnackBar("Failed to disable sharing.")}),(function(t){e.openSnackBar("Failed to disable sharing - server error.")}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||hT)(a.yc(kh),a.yc(Fx),a.yc(Sy),a.yc(gS))},hT.\u0275cmp=a.sc({type:hT,selectors:[["app-share-media-dialog"]],decls:21,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.td(1,cT,2,0,"ng-container",1),a.td(2,uT,2,0,"ng-container",1),a.td(3,dT,2,0,"ng-container",1),a.Cc(),a.Dc(4,"mat-dialog-content"),a.Dc(5,"div"),a.Dc(6,"div"),a.Dc(7,"mat-checkbox",2),a.Qc("change",(function(t){return e.sharingChanged(t)})),a.Bc(8),a.Hc(9,nT),a.Ac(),a.Cc(),a.Cc(),a.Dc(10,"div"),a.Dc(11,"mat-form-field",3),a.zc(12,"input",4),a.Cc(),a.Cc(),a.Dc(13,"div",5),a.Dc(14,"button",6),a.Qc("click",(function(){return e.copiedToClipboard()})),a.Bc(15),a.Hc(16,iT),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(17,"mat-dialog-actions"),a.Dc(18,"button",7),a.Bc(19),a.Hc(20,aT),a.Ac(),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.ad("ngIf",e.is_playlist),a.kc(1),a.ad("ngIf",!e.is_playlist&&"video"===e.type),a.kc(1),a.ad("ngIf",!e.is_playlist&&"audio"===e.type),a.kc(4),a.ad("checked",e.sharing_enabled),a.kc(5),a.ad("disabled",!e.sharing_enabled)("readonly",!0)("value",e.share_url),a.kc(2),a.ad("disabled",!e.sharing_enabled)("cdkCopyToClipboard",e.share_url))},directives:[Eh,ye.t,Ah,Gl,zd,Op,Ya,Qk,Ih,Dh],styles:[""]}),hT),fT=["*"],pT=["volumeBar"],gT=function(t){return{dragging:t}};function vT(t,e){if(1&t&&a.zc(0,"span",2),2&t){var n=e.$implicit;a.sd("width",null==n.$$style?null:n.$$style.width)("left",null==n.$$style?null:n.$$style.left)}}function bT(t,e){1&t&&a.zc(0,"span",2)}function yT(t,e){1&t&&(a.Dc(0,"span"),a.vd(1,"LIVE"),a.Cc())}function _T(t,e){if(1&t&&(a.Dc(0,"span"),a.vd(1),a.Vc(2,"vgUtc"),a.Cc()),2&t){var n=a.Uc();a.kc(1),a.wd(a.Xc(2,1,n.getTime(),n.vgFormat))}}function kT(t,e){if(1&t&&(a.Dc(0,"option",4),a.vd(1),a.Cc()),2&t){var n=e.$implicit;a.ad("value",n.id)("selected",!0===n.selected),a.kc(1),a.xd(" ",n.label," ")}}function CT(t,e){if(1&t&&(a.Dc(0,"option",4),a.vd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Uc();a.ad("value",n.qualityIndex.toString())("selected",n.qualityIndex===(null==i.bitrateSelected?null:i.bitrateSelected.qualityIndex)),a.kc(1),a.xd(" ",n.label," ")}}var wT,xT,ST,OT,DT,ET,AT,IT,TT,PT,RT,MT,jT,LT,FT,zT,NT,BT,VT,UT,HT,qT,GT,WT,QT,YT,$T,KT,XT,ZT,JT=((XT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||XT)},XT.\u0275prov=a.uc({token:XT,factory:XT.\u0275fac}),XT.VG_ENDED="ended",XT.VG_PAUSED="paused",XT.VG_PLAYING="playing",XT.VG_LOADING="waiting",XT),tP=((KT=function(){function t(){_classCallCheck(this,t),this.medias={},this.playerReadyEvent=new a.s(!0),this.isPlayerReady=!1}return _createClass(t,[{key:"onPlayerReady",value:function(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}},{key:"getDefaultMedia",value:function(){for(var t in this.medias)if(this.medias[t])return this.medias[t]}},{key:"getMasterMedia",value:function(){var t;for(var e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}},{key:"isMasterDefined",value:function(){var t=!1;for(var e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}},{key:"getMediaById",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.medias[t];return t&&"*"!==t||(e=this),e}},{key:"play",value:function(){for(var t in this.medias)this.medias[t]&&this.medias[t].play()}},{key:"pause",value:function(){for(var t in this.medias)this.medias[t]&&this.medias[t].pause()}},{key:"seekTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var n in this.medias)this.medias[n]&&this.$$seek(this.medias[n],t,e)}},{key:"$$seek",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.duration;i?(this.isMasterDefined()&&(a=this.getMasterMedia().duration),n=e*a/100):n=e,t.currentTime=n}},{key:"addTextTrack",value:function(t,e,n){for(var i in this.medias)this.medias[i]&&this.$$addTextTrack(this.medias[i],t,e,n)}},{key:"$$addTextTrack",value:function(t,e,n,i){t.addTextTrack(e,n,i)}},{key:"$$getAllProperties",value:function(t){var e,n={};for(var i in this.medias)this.medias[i]&&(n[i]=this.medias[i]);switch(Object.keys(n).length){case 0:switch(t){case"state":e=JT.VG_PAUSED;break;case"playbackRate":case"volume":e=1;break;case"time":e={current:0,total:0,left:0}}break;case 1:e=n[Object.keys(n)[0]][t];break;default:e=n[this.getMasterMedia().id][t]}return e}},{key:"$$setAllProperties",value:function(t,e){for(var n in this.medias)this.medias[n]&&(this.medias[n][t]=e)}},{key:"registerElement",value:function(t){this.videogularElement=t}},{key:"registerMedia",value:function(t){this.medias[t.id]=t}},{key:"unregisterMedia",value:function(t){delete this.medias[t.id]}},{key:"duration",get:function(){return this.$$getAllProperties("duration")}},{key:"currentTime",set:function(t){this.$$setAllProperties("currentTime",t)},get:function(){return this.$$getAllProperties("currentTime")}},{key:"state",set:function(t){this.$$setAllProperties("state",t)},get:function(){return this.$$getAllProperties("state")}},{key:"volume",set:function(t){this.$$setAllProperties("volume",t)},get:function(){return this.$$getAllProperties("volume")}},{key:"playbackRate",set:function(t){this.$$setAllProperties("playbackRate",t)},get:function(){return this.$$getAllProperties("playbackRate")}},{key:"canPlay",get:function(){return this.$$getAllProperties("canPlay")}},{key:"canPlayThrough",get:function(){return this.$$getAllProperties("canPlayThrough")}},{key:"isMetadataLoaded",get:function(){return this.$$getAllProperties("isMetadataLoaded")}},{key:"isWaiting",get:function(){return this.$$getAllProperties("isWaiting")}},{key:"isCompleted",get:function(){return this.$$getAllProperties("isCompleted")}},{key:"isLive",get:function(){return this.$$getAllProperties("isLive")}},{key:"isMaster",get:function(){return this.$$getAllProperties("isMaster")}},{key:"time",get:function(){return this.$$getAllProperties("time")}},{key:"buffer",get:function(){return this.$$getAllProperties("buffer")}},{key:"buffered",get:function(){return this.$$getAllProperties("buffered")}},{key:"subscriptions",get:function(){return this.$$getAllProperties("subscriptions")}},{key:"textTracks",get:function(){return this.$$getAllProperties("textTracks")}}]),t}()).\u0275fac=function(t){return new(t||KT)},KT.\u0275prov=a.uc({token:KT,factory:KT.\u0275fac}),KT),eP=(($T=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){var t=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(e){return t.onUpdateBuffer(e)})))}},{key:"onUpdateBuffer",value:function(t){this.isBuffering=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||$T)(a.yc(a.q),a.yc(tP))},$T.\u0275cmp=a.sc({type:$T,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.zc(2,"div",2),a.Cc(),a.Cc())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),$T),nP=((YT=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:YT}),YT.\u0275inj=a.vc({factory:function(t){return new(t||YT)},imports:[[ye.c]]}),YT),iP=((QT=function(){function t(){_classCallCheck(this,t),this.isHiddenSubject=new Me.a,this.isHidden=this.isHiddenSubject.asObservable()}return _createClass(t,[{key:"state",value:function(t){this.isHiddenSubject.next(t)}}]),t}()).\u0275fac=function(t){return new(t||QT)},QT.\u0275prov=a.uc({token:QT,factory:QT.\u0275fac}),QT),aP=((WT=function(){function t(e,n,i){_classCallCheck(this,t),this.API=e,this.ref=n,this.hidden=i,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=n.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.mouseMove$=Jl(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=Jl(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}},{key:"ngAfterViewInit",value:function(){this.vgAutohide?this.hide():this.show()}},{key:"onPlay",value:function(){this.vgAutohide&&this.hide()}},{key:"onPause",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}},{key:"onStartAds",value:function(){this.isAdsPlaying="none"}},{key:"onEndAds",value:function(){this.isAdsPlaying="initial"}},{key:"hide",value:function(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}},{key:"show",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}},{key:"hideAsync",value:function(){var t=this;this.API.state===JT.VG_PLAYING&&(this.timer=setTimeout((function(){t.hideControls=!0,t.hidden.state(!0)}),1e3*this.vgAutohideTime))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||WT)(a.yc(tP),a.yc(a.q),a.yc(iP))},WT.\u0275cmp=a.sc({type:WT,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(a.sd("pointer-events",e.isAdsPlaying),a.oc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:fT,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),WT),rP=((GT=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"getZIndex",value:function(){for(var t,e=1,n=document.getElementsByTagName("*"),i=0,a=n.length;ie&&(e=t+1);return e}},{key:"isMobileDevice",value:function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}},{key:"isiOSDevice",value:function(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}},{key:"isCordova",value:function(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}}]),t}()).\u0275fac=function(t){return new(t||GT)},GT.\u0275prov=Object(a.uc)({factory:function(){return new GT},token:GT,providedIn:"root"}),GT),oP=((qT=function(){function t(){_classCallCheck(this,t),this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new a.s}return _createClass(t,[{key:"init",value:function(t,e){var n=this;this.videogularElement=t,this.medias=e;var i={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(var a in i)if(i[a].enabled in document){this.polyfill=i[a];break}if(rP.isiOSDevice()&&(this.polyfill=i.ios),this.isAvailable=null!=this.polyfill,null!=this.polyfill){var r;switch(this.polyfill.onchange){case"mozfullscreenchange":r=document;break;case"webkitendfullscreen":r=this.medias.toArray()[0].elem;break;default:r=t}this.fsChangeSubscription=Jl(r,this.polyfill.onchange).subscribe((function(){n.onFullscreenChange()}))}}},{key:"onFullscreenChange",value:function(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}},{key:"toggleFullscreen",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isFullscreen?this.exit():this.request(t)}},{key:"request",value:function(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(rP.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||rP.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}},{key:"enterElementInFullScreen",value:function(t){t[this.polyfill.request]()}},{key:"exit",value:function(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}}]),t}()).\u0275fac=function(t){return new(t||qT)},qT.\u0275prov=a.uc({token:qT,factory:qT.\u0275fac}),qT),sP=((HT=function(){function t(e,n,i){_classCallCheck(this,t),this.API=n,this.fsAPI=i,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=e.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onChangeFullscreen",value:function(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}},{key:"onClick",value:function(){this.changeFullscreenState()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}},{key:"changeFullscreenState",value:function(){var t=this.target;this.target instanceof tP&&(t=null),this.fsAPI.toggleFullscreen(t)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||HT)(a.yc(a.q),a.yc(tP),a.yc(oP))},HT.\u0275cmp=a.sc({type:HT,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&a.Qc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&a.zc(0,"div",0),2&t&&(a.oc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),a.lc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),HT),lP=((UT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.ariaValue="unmuted",this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}},{key:"onClick",value:function(){this.changeMuteState()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}},{key:"changeMuteState",value:function(){var t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}},{key:"getVolume",value:function(){var t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||UT)(a.yc(a.q),a.yc(tP))},UT.\u0275cmp=a.sc({type:UT,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&a.Qc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&a.zc(0,"div",0),2&t&&(a.oc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),a.lc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),UT),cP=((VT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.elem=e.nativeElement,this.isDragging=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}},{key:"onClick",value:function(t){this.setVolume(this.calculateVolume(t.clientX))}},{key:"onMouseDown",value:function(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}},{key:"onDrag",value:function(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}},{key:"onStopDrag",value:function(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}},{key:"arrowAdjustVolume",value:function(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}},{key:"calculateVolume",value:function(t){var e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}},{key:"setVolume",value:function(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}},{key:"getVolume",value:function(){return this.target?this.target.volume:0}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||VT)(a.yc(a.q),a.yc(tP))},VT.\u0275cmp=a.sc({type:VT,selectors:[["vg-volume"]],viewQuery:function(t,e){var n;1&t&&a.rd(pT,!0),2&t&&a.gd(n=a.Rc())&&(e.volumeBarRef=n.first)},hostBindings:function(t,e){1&t&&a.Qc("mousemove",(function(t){return e.onDrag(t)}),!1,a.jd)("mouseup",(function(t){return e.onStopDrag(t)}),!1,a.jd)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(a.Dc(0,"div",0,1),a.Qc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),a.Dc(2,"div",2),a.zc(3,"div",3),a.zc(4,"div",4),a.Cc(),a.Cc()),2&t&&(a.lc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),a.kc(2),a.ad("ngClass",a.dd(7,gT,e.isDragging)),a.kc(1),a.sd("width",85*e.getVolume()+"%"),a.kc(1),a.sd("left",85*e.getVolume()+"%"))},directives:[ye.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),VT),uP=((BT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.ariaValue=JT.VG_PAUSED,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.playPause()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}},{key:"playPause",value:function(){switch(this.getState()){case JT.VG_PLAYING:this.target.pause();break;case JT.VG_PAUSED:case JT.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){return this.ariaValue=this.target?this.target.state:JT.VG_PAUSED,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||BT)(a.yc(a.q),a.yc(tP))},BT.\u0275cmp=a.sc({type:BT,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&a.Qc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&a.zc(0,"div",0),2&t&&(a.oc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),a.lc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),BT),dP=((NT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.ariaValue=1,this.elem=e.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.updatePlaybackSpeed()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}},{key:"updatePlaybackSpeed",value:function(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof tP?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}},{key:"getPlaybackRate",value:function(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||NT)(a.yc(a.q),a.yc(tP))},NT.\u0275cmp=a.sc({type:NT,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&a.Qc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(a.Dc(0,"span",0),a.vd(1),a.Cc()),2&t&&(a.lc("aria-valuetext",e.ariaValue),a.kc(1),a.xd(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),NT),hP=((zT=function(){function t(e,n,i){var a=this;_classCallCheck(this,t),this.API=n,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=e.nativeElement,this.subscriptions.push(i.isHidden.subscribe((function(t){return a.onHideScrubBar(t)})))}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"seekStart",value:function(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===JT.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}},{key:"seekMove",value:function(t){if(this.isSeeking){var e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}},{key:"seekEnd",value:function(t){if(this.isSeeking=!1,this.target.canPlay){var e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}},{key:"touchEnd",value:function(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}},{key:"getTouchOffset",value:function(t){for(var e=0,n=t.target;n;)e+=n.offsetLeft,n=n.offsetParent;return t.touches[0].pageX-e}},{key:"onMouseDownScrubBar",value:function(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}},{key:"onMouseMoveScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}},{key:"onMouseUpScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}},{key:"onTouchStartScrubBar",value:function(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}},{key:"onTouchMoveScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}},{key:"onTouchCancelScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"onTouchEndScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"arrowAdjustVolume",value:function(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"onHideScrubBar",value:function(t){this.hideScrubBar=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||zT)(a.yc(a.q),a.yc(tP),a.yc(iP))},zT.\u0275cmp=a.sc({type:zT,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&a.Qc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,a.jd)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,a.jd)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,a.jd)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,a.jd)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,a.jd)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&a.oc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:fT,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(a.Zc(),a.Dc(0,"div",0),a.Yc(1),a.Cc()),2&t&&a.lc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),zT),mP=((FT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getBufferTime",value:function(){var t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||FT)(a.yc(a.q),a.yc(tP))},FT.\u0275cmp=a.sc({type:FT,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&a.zc(0,"div",0),2&t&&a.sd("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),FT),fP=((LT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}},{key:"onLoadedMetadata",value:function(){if(this.vgCuePoints){this.cuePoints=[];for(var t=0,e=this.vgCuePoints.length;t=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime),i="0",a="0";"number"==typeof n&&this.target.time.total&&(a=100*n/this.target.time.total+"%",i=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:a,left:i},this.cuePoints.push(this.vgCuePoints[t])}}}},{key:"updateCuePoints",value:function(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}},{key:"ngOnChanges",value:function(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}},{key:"ngDoCheck",value:function(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||LT)(a.yc(a.q),a.yc(tP))},LT.\u0275cmp=a.sc({type:LT,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[a.ic],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.td(1,vT,1,4,"span",1),a.Cc()),2&t&&(a.kc(1),a.ad("ngForOf",e.cuePoints))},directives:[ye.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),LT),pP=((jT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.vgSlider=!1,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||jT)(a.yc(a.q),a.yc(tP))},jT.\u0275cmp=a.sc({type:jT,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(a.zc(0,"div",0),a.td(1,bT,1,0,"span",1)),2&t&&(a.sd("width",e.getPercentage()),a.kc(1),a.ad("ngIf",e.vgSlider))},directives:[ye.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),jT),gP=((MT=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var n=new Date(t),i=e,a=n.getUTCSeconds(),r=n.getUTCMinutes(),o=n.getUTCHours();return a<10&&(a="0"+a),r<10&&(r="0"+r),o<10&&(o="0"+o),i=(i=(i=i.replace(/ss/g,a)).replace(/mm/g,r)).replace(/hh/g,o)}}]),t}()).\u0275fac=function(t){return new(t||MT)},MT.\u0275pipe=a.xc({name:"vgUtc",type:MT,pure:!0}),MT),vP=((RT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getTime",value:function(){var t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||RT)(a.yc(a.q),a.yc(tP))},RT.\u0275cmp=a.sc({type:RT,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:fT,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(a.Zc(),a.td(0,yT,2,0,"span",0),a.td(1,_T,3,4,"span",0),a.Yc(2)),2&t&&(a.ad("ngIf",null==e.target?null:e.target.isLive),a.kc(1),a.ad("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[ye.t],pipes:[gP],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),RT),bP=((PT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor);var t=Array.from(this.API.getMasterMedia().elem.children).filter((function(t){return"TRACK"===t.tagName})).filter((function(t){return"subtitles"===t.kind})).map((function(t){return{label:t.label,selected:!0===t.default,id:t.srclang}}));this.tracks=[].concat(_toConsumableArray(t),[{id:null,label:"Off",selected:t.every((function(t){return!1===t.selected}))}]);var e=this.tracks.filter((function(t){return!0===t.selected}))[0];this.trackSelected=e.id,this.ariaValue=e.label}},{key:"selectTrack",value:function(t){var e=this;this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach((function(n){n.language===t?(e.ariaValue=n.label,n.mode="showing"):n.mode="hidden"}))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||PT)(a.yc(a.q),a.yc(tP))},PT.\u0275cmp=a.sc({type:PT,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.vd(2),a.Cc(),a.Dc(3,"select",2),a.Qc("change",(function(t){return e.selectTrack(t.target.value)})),a.td(4,kT,2,3,"option",3),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.oc("vg-icon-closed_caption",!e.trackSelected),a.kc(1),a.xd(" ",e.trackSelected||""," "),a.kc(1),a.lc("aria-valuetext",e.ariaValue),a.kc(1),a.ad("ngForOf",e.tracks))},directives:[ye.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),PT),yP=((TT=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.onBitrateChange=new a.s,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach((function(t){return t.label=(t.label||Math.round(t.bitrate/1e3)).toString()}))}},{key:"selectBitrate",value:function(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||TT)(a.yc(a.q),a.yc(tP))},TT.\u0275cmp=a.sc({type:TT,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[a.ic],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.vd(2),a.Cc(),a.Dc(3,"select",2),a.Qc("change",(function(t){return e.selectBitrate(t.target.value)})),a.td(4,CT,2,3,"option",3),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.oc("vg-icon-hd",!e.bitrateSelected),a.kc(1),a.xd(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),a.kc(1),a.lc("aria-valuetext",e.ariaValue),a.kc(1),a.ad("ngForOf",e.bitrates))},directives:[ye.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),TT),_P=((IT=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:IT}),IT.\u0275inj=a.vc({factory:function(t){return new(t||IT)},providers:[iP],imports:[[ye.c]]}),IT),kP=((AT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||AT)},AT.\u0275prov=a.uc({token:AT,factory:AT.\u0275fac}),AT.VG_ABORT="abort",AT.VG_CAN_PLAY="canplay",AT.VG_CAN_PLAY_THROUGH="canplaythrough",AT.VG_DURATION_CHANGE="durationchange",AT.VG_EMPTIED="emptied",AT.VG_ENCRYPTED="encrypted",AT.VG_ENDED="ended",AT.VG_ERROR="error",AT.VG_LOADED_DATA="loadeddata",AT.VG_LOADED_METADATA="loadedmetadata",AT.VG_LOAD_START="loadstart",AT.VG_PAUSE="pause",AT.VG_PLAY="play",AT.VG_PLAYING="playing",AT.VG_PROGRESS="progress",AT.VG_RATE_CHANGE="ratechange",AT.VG_SEEK="seek",AT.VG_SEEKED="seeked",AT.VG_SEEKING="seeking",AT.VG_STALLED="stalled",AT.VG_SUSPEND="suspend",AT.VG_TIME_UPDATE="timeupdate",AT.VG_VOLUME_CHANGE="volumechange",AT.VG_WAITING="waiting",AT.VG_LOAD="load",AT.VG_ENTER="enter",AT.VG_EXIT="exit",AT.VG_START_ADS="startads",AT.VG_END_ADS="endads",AT),CP=((ET=function(){function t(e,n){_classCallCheck(this,t),this.api=e,this.ref=n,this.state=JT.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Me.a}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:Jl(this.elem,kP.VG_ABORT),canPlay:Jl(this.elem,kP.VG_CAN_PLAY),canPlayThrough:Jl(this.elem,kP.VG_CAN_PLAY_THROUGH),durationChange:Jl(this.elem,kP.VG_DURATION_CHANGE),emptied:Jl(this.elem,kP.VG_EMPTIED),encrypted:Jl(this.elem,kP.VG_ENCRYPTED),ended:Jl(this.elem,kP.VG_ENDED),error:Jl(this.elem,kP.VG_ERROR),loadedData:Jl(this.elem,kP.VG_LOADED_DATA),loadedMetadata:Jl(this.elem,kP.VG_LOADED_METADATA),loadStart:Jl(this.elem,kP.VG_LOAD_START),pause:Jl(this.elem,kP.VG_PAUSE),play:Jl(this.elem,kP.VG_PLAY),playing:Jl(this.elem,kP.VG_PLAYING),progress:Jl(this.elem,kP.VG_PROGRESS),rateChange:Jl(this.elem,kP.VG_RATE_CHANGE),seeked:Jl(this.elem,kP.VG_SEEKED),seeking:Jl(this.elem,kP.VG_SEEKING),stalled:Jl(this.elem,kP.VG_STALLED),suspend:Jl(this.elem,kP.VG_SUSPEND),timeUpdate:Jl(this.elem,kP.VG_TIME_UPDATE),volumeChange:Jl(this.elem,kP.VG_VOLUME_CHANGE),waiting:Jl(this.elem,kP.VG_WAITING),startAds:Jl(this.elem,kP.VG_START_ADS),endAds:Jl(this.elem,kP.VG_END_ADS),mutation:new sn.a((function(e){var n=new MutationObserver((function(t){e.next(t)}));return n.observe(t.elem,{childList:!0,attributes:!0}),function(){n.disconnect()}})),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe((function(){t.prepareSync()}))}},{key:"prepareSync",value:function(){var t=this,e=[];for(var n in this.api.medias)this.api.medias[n]&&e.push(this.api.medias[n].subscriptions.canPlay);this.canPlayAllSubscription=Fg(e).pipe(Object(rn.a)((function(){for(var e=arguments.length,n=new Array(e),i=0;i.3?(t.playAtferSync=t.state===JT.VG_PLAYING,t.pause(),t.api.medias[e].pause(),t.api.medias[e].currentTime=t.currentTime):t.playAtferSync&&(t.play(),t.api.medias[e].play(),t.playAtferSync=!1)}}))}},{key:"onMutation",value:function(t){for(var e=0,n=t.length;e0&&i.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===i.type&&i.removedNodes.length&&"source"===i.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}},{key:"loadMedia",value:function(){var t=this;this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout((function(){return t.vgMedia.load()}),10)}},{key:"play",value:function(){var t=this;if(!(this.playPromise||this.state!==JT.VG_PAUSED&&this.state!==JT.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then((function(){t.playPromise=null})).catch((function(){t.playPromise=null})),this.playPromise}},{key:"pause",value:function(){var t=this;this.playPromise?this.playPromise.then((function(){t.vgMedia.pause()})):this.vgMedia.pause()}},{key:"onCanPlay",value:function(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}},{key:"onCanPlayThrough",value:function(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}},{key:"onLoadMetadata",value:function(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=JT.VG_PAUSED;var e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}},{key:"onWait",value:function(t){this.isWaiting=!0,this.ref.detectChanges()}},{key:"onComplete",value:function(t){this.isCompleted=!0,this.state=JT.VG_ENDED,this.ref.detectChanges()}},{key:"onStartPlaying",value:function(t){this.state=JT.VG_PLAYING,this.ref.detectChanges()}},{key:"onPlay",value:function(t){this.state=JT.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}},{key:"onPause",value:function(t){this.state=JT.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}},{key:"onTimeUpdate",value:function(t){var e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}},{key:"onProgress",value:function(t){var e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}},{key:"onVolumeChange",value:function(t){this.ref.detectChanges()}},{key:"onError",value:function(t){this.ref.detectChanges()}},{key:"bufferCheck",value:function(){var t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}},{key:"startBufferCheck",value:function(){var t=this;this.checkBufferSubscription=bc(0,this.checkInterval).subscribe((function(){t.bufferCheck()}))}},{key:"stopBufferCheck",value:function(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}},{key:"seekTime",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=n?t*this.duration/100:t,this.currentTime=e}},{key:"addTextTrack",value:function(t,e,n,i){var a=this.vgMedia.addTextTrack(t,e,n);return i&&(a.mode=i),a}},{key:"ngOnDestroy",value:function(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}},{key:"id",get:function(){var t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}},{key:"duration",get:function(){return this.vgMedia.duration}},{key:"currentTime",set:function(t){this.vgMedia.currentTime=t},get:function(){return this.vgMedia.currentTime}},{key:"volume",set:function(t){this.vgMedia.volume=t},get:function(){return this.vgMedia.volume}},{key:"playbackRate",set:function(t){this.vgMedia.playbackRate=t},get:function(){return this.vgMedia.playbackRate}},{key:"buffered",get:function(){return this.vgMedia.buffered}},{key:"textTracks",get:function(){return this.vgMedia.textTracks}}]),t}()).\u0275fac=function(t){return new(t||ET)(a.yc(tP),a.yc(a.j))},ET.\u0275dir=a.tc({type:ET,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),ET),wP=((DT=function(){function t(e){_classCallCheck(this,t),this.ref=e,this.onEnterCuePoint=new a.s,this.onUpdateCuePoint=new a.s,this.onExitCuePoint=new a.s,this.onCompleteCuePoint=new a.s,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}return _createClass(t,[{key:"ngOnInit",value:function(){this.onLoad$=Jl(this.ref.nativeElement,kP.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}},{key:"onLoad",value:function(t){if(t.target&&t.target.track){var e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){var n=t.target.textTracks[0].cues;this.ref.nativeElement.cues=n,this.updateCuePoints(n)}}},{key:"updateCuePoints",value:function(t){this.cuesSubscriptions.forEach((function(t){return t.unsubscribe()}));for(var e=0,n=t.length;e1),a.kc(1),a.ad("ngIf",1===r.playlist.length)}}ZT=$localize(_templateObject141());var NP,BP,VP=((NP=function(){function t(e,n,i,a,r){_classCallCheck(this,t),this.postsService=e,this.route=n,this.dialog=i,this.router=a,this.snackBar=r,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.url=null,this.name=null,this.downloading=!1}return _createClass(t,[{key:"onResize",value:function(t){this.innerWidth=window.innerWidth}},{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.postsService.loadNavItems().subscribe((function(e){var n=t.postsService.debugMode?e:e.config_file;t.baseStreamPath=t.postsService.path,t.audioFolderPath=n.YoutubeDLMaterial.Downloader["path-audio"],t.videoFolderPath=n.YoutubeDLMaterial.Downloader["path-video"],t.subscriptionFolderPath=n.YoutubeDLMaterial.Subscriptions.subscriptions_base_path,t.fileNames=t.route.snapshot.paramMap.get("fileNames")?t.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,t.fileNames||(t.is_shared=!0),t.uid&&!t.id?t.getFile():t.id&&t.getPlaylistFiles(),t.url?(t.playlist=[],t.playlist.push({title:t.name,label:t.name,src:t.url,type:"video/mp4"}),t.currentItem=t.playlist[0],t.currentIndex=0,t.show_player=!0):("subscription"===t.type||t.fileNames)&&(t.show_player=!0,t.parseFileNames())}))}},{key:"getFile",value:function(){var t=this,e=!!this.fileNames;this.postsService.getFile(this.uid,null).subscribe((function(n){t.db_file=n.file,t.db_file?(t.fileNames||t.id||(t.fileNames=[t.db_file.id],t.type=t.db_file.isAudio?"audio":"video",e||t.parseFileNames()),t.db_file.sharingEnabled?t.show_player=!0:e||t.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):t.openSnackBar("Failed to get file information from the server.","Dismiss")}))}},{key:"getPlaylistFiles",value:function(){var t=this;this.postsService.getPlaylist(this.id,null).subscribe((function(e){t.db_playlist=e.playlist,t.fileNames=t.db_playlist.fileNames,t.type=e.type,t.show_player=!0,t.parseFileNames()}))}},{key:"parseFileNames",value:function(){var t=null;"audio"===this.type?t="audio/mp3":"video"===this.type||"subscription"===this.type?t="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(var e=0;e0&&e.show_player)},directives:[ye.t,ye.q,xP,CP,dl,Uk,ye.s,ml,Pk,Ya,mp,Tv],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),NP);BP=$localize(_templateObject142());var UP,HP=["placeholder",$localize(_templateObject143())];UP=$localize(_templateObject144());var qP,GP,WP,QP,YP,$P=["placeholder",$localize(_templateObject145())];function KP(t,e){if(1&t&&(a.Dc(0,"mat-option",17),a.vd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Uc(2);a.ad("value",n+(1===i.timerange_amount?"":"s")),a.kc(1),a.xd(" ",n+(1===i.timerange_amount?"":"s")," ")}}function XP(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",3),a.Bc(1),a.Hc(2,YP),a.Ac(),a.Dc(3,"mat-form-field",13),a.Dc(4,"input",14),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().timerange_amount=t})),a.Cc(),a.Cc(),a.Dc(5,"mat-select",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().timerange_unit=t})),a.td(6,KP,2,2,"mat-option",16),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(4),a.ad("ngModel",i.timerange_amount),a.kc(1),a.ad("ngModel",i.timerange_unit),a.kc(1),a.ad("ngForOf",i.time_units)}}function ZP(t,e){1&t&&(a.Dc(0,"div",18),a.zc(1,"mat-spinner",19),a.Cc()),2&t&&(a.kc(1),a.ad("diameter",25))}qP=$localize(_templateObject146()),GP=$localize(_templateObject147()),WP=$localize(_templateObject148()),QP=$localize(_templateObject149()),YP=$localize(_templateObject150());var JP,tR,eR,nR,iR,aR,rR,oR,sR=((JP=function(){function t(e,n,i){_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.dialogRef=i,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.time_units=["day","week","month","year"]}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"subscribeClicked",value:function(){var t=this;if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;var e=null;this.download_all||(e="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,e,this.streamingOnlyMode).subscribe((function(e){t.subscribing=!1,e.new_sub?t.dialogRef.close(e.new_sub):(e.error&&t.openSnackBar("ERROR: "+e.error),t.dialogRef.close())}))}}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||JP)(a.yc(gS),a.yc(Sy),a.yc(_h))},JP.\u0275cmp=a.sc({type:JP,selectors:[["app-subscribe-dialog"]],decls:36,vars:7,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,BP),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"div",2),a.Dc(5,"div",3),a.Dc(6,"mat-form-field",4),a.Dc(7,"input",5),a.Jc(8,HP),a.Qc("ngModelChange",(function(t){return e.url=t})),a.Cc(),a.Dc(9,"mat-hint"),a.Bc(10),a.Hc(11,UP),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(12,"div",3),a.Dc(13,"mat-form-field",4),a.Dc(14,"input",6),a.Jc(15,$P),a.Qc("ngModelChange",(function(t){return e.name=t})),a.Cc(),a.Dc(16,"mat-hint"),a.Bc(17),a.Hc(18,qP),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(19,"div",7),a.Dc(20,"mat-checkbox",8),a.Qc("ngModelChange",(function(t){return e.download_all=t})),a.Bc(21),a.Hc(22,GP),a.Ac(),a.Cc(),a.Cc(),a.td(23,XP,7,3,"div",9),a.Dc(24,"div",3),a.Dc(25,"div"),a.Dc(26,"mat-checkbox",8),a.Qc("ngModelChange",(function(t){return e.streamingOnlyMode=t})),a.vd(27,"Streaming-only mode"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(28,"mat-dialog-actions"),a.Dc(29,"button",10),a.Bc(30),a.Hc(31,WP),a.Ac(),a.Cc(),a.Dc(32,"button",11),a.Qc("click",(function(){return e.subscribeClicked()})),a.Bc(33),a.Hc(34,QP),a.Ac(),a.Cc(),a.td(35,ZP,2,1,"div",12),a.Cc()),2&t&&(a.kc(7),a.ad("ngModel",e.url),a.kc(7),a.ad("ngModel",e.name),a.kc(6),a.ad("ngModel",e.download_all),a.kc(3),a.ad("ngIf",!e.download_all),a.kc(3),a.ad("ngModel",e.streamingOnlyMode),a.kc(6),a.ad("disabled",!e.url),a.kc(3),a.ad("ngIf",e.subscribing))},directives:[Eh,Ah,zd,Op,mr,Hs,Cr,Yo,Ad,Gl,ye.t,Ih,Ya,Dh,Nr,ub,ye.s,Ma,Tv],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),JP);function lR(t,e){if(1&t&&(a.Dc(0,"div",1),a.Dc(1,"strong"),a.Bc(2),a.Hc(3,oR),a.Ac(),a.vd(4,"\xa0"),a.Cc(),a.Dc(5,"span",2),a.vd(6),a.Cc(),a.Cc()),2&t){var n=a.Uc();a.kc(6),a.wd(n.sub.archive)}}tR=$localize(_templateObject151()),eR=$localize(_templateObject152()),nR=$localize(_templateObject153()),iR=$localize(_templateObject154()),aR=$localize(_templateObject155()),rR=$localize(_templateObject156()),oR=$localize(_templateObject157());var cR,uR,dR,hR,mR,fR,pR,gR,vR=((cR=function(){function t(e,n,i){_classCallCheck(this,t),this.dialogRef=e,this.data=n,this.postsService=i,this.sub=null,this.unsubbedEmitter=null}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}},{key:"unsubscribe",value:function(){var t=this;this.postsService.unsubscribe(this.sub,!0).subscribe((function(e){t.unsubbedEmitter.emit(!0),t.dialogRef.close()}))}},{key:"downloadArchive",value:function(){this.postsService.downloadArchive(this.sub).subscribe((function(t){saveAs(t,"archive.txt")}))}}]),t}()).\u0275fac=function(t){return new(t||cR)(a.yc(_h),a.yc(kh),a.yc(gS))},cR.\u0275cmp=a.sc({type:cR,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.vd(1),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"strong"),a.Bc(5),a.Hc(6,tR),a.Ac(),a.vd(7,"\xa0"),a.Cc(),a.Dc(8,"span",2),a.vd(9),a.Cc(),a.Cc(),a.Dc(10,"div",1),a.Dc(11,"strong"),a.Bc(12),a.Hc(13,eR),a.Ac(),a.vd(14,"\xa0"),a.Cc(),a.Dc(15,"span",2),a.vd(16),a.Cc(),a.Cc(),a.Dc(17,"div",1),a.Dc(18,"strong"),a.Bc(19),a.Hc(20,nR),a.Ac(),a.vd(21,"\xa0"),a.Cc(),a.Dc(22,"span",2),a.vd(23),a.Cc(),a.Cc(),a.td(24,lR,7,1,"div",3),a.Cc(),a.Dc(25,"mat-dialog-actions"),a.Dc(26,"button",4),a.Bc(27),a.Hc(28,iR),a.Ac(),a.Cc(),a.Dc(29,"button",5),a.Qc("click",(function(){return e.downloadArchive()})),a.Bc(30),a.Hc(31,aR),a.Ac(),a.Cc(),a.zc(32,"span",6),a.Dc(33,"button",7),a.Qc("click",(function(){return e.unsubscribe()})),a.Bc(34),a.Hc(35,rR),a.Ac(),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.wd(e.sub.name),a.kc(8),a.wd(e.sub.isPlaylist?"Playlist":"Channel"),a.kc(7),a.wd(e.sub.url),a.kc(7),a.wd(e.sub.id),a.kc(1),a.ad("ngIf",e.sub.archive))},directives:[Eh,Ah,ye.t,Ih,Ya,Dh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),cR);function bR(t,e){if(1&t&&(a.Dc(0,"strong"),a.vd(1),a.Cc()),2&t){var n=a.Uc().$implicit;a.kc(1),a.wd(n.name)}}function yR(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,mR),a.Ac(),a.Cc())}function _R(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-list-item"),a.Dc(1,"a",9),a.Qc("click",(function(){a.ld(n);var t=e.$implicit;return a.Uc().goToSubscription(t)})),a.td(2,bR,2,1,"strong",10),a.td(3,yR,3,0,"div",10),a.Cc(),a.Dc(4,"button",11),a.Qc("click",(function(){a.ld(n);var t=e.$implicit;return a.Uc().showSubInfo(t)})),a.Dc(5,"mat-icon"),a.vd(6,"info"),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit;a.kc(2),a.ad("ngIf",i.name),a.kc(1),a.ad("ngIf",!i.name)}}function kR(t,e){1&t&&(a.Dc(0,"div",12),a.Dc(1,"p"),a.Hc(2,fR),a.Cc(),a.Cc())}function CR(t,e){1&t&&(a.Dc(0,"div",14),a.Bc(1),a.Hc(2,pR),a.Ac(),a.Cc())}function wR(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-list-item"),a.Dc(1,"a",9),a.Qc("click",(function(){a.ld(n);var t=e.$implicit;return a.Uc().goToSubscription(t)})),a.Dc(2,"strong"),a.vd(3),a.Cc(),a.td(4,CR,3,0,"div",13),a.Cc(),a.Dc(5,"button",11),a.Qc("click",(function(){a.ld(n);var t=e.$implicit;return a.Uc().showSubInfo(t)})),a.Dc(6,"mat-icon"),a.vd(7,"info"),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit;a.kc(3),a.wd(i.name),a.kc(1),a.ad("ngIf",!i.name)}}function xR(t,e){1&t&&(a.Dc(0,"div",12),a.Dc(1,"p"),a.Hc(2,gR),a.Cc(),a.Cc())}function SR(t,e){1&t&&(a.Dc(0,"div",15),a.zc(1,"mat-progress-bar",16),a.Cc())}uR=$localize(_templateObject158()),dR=$localize(_templateObject159()),hR=$localize(_templateObject160()),mR=$localize(_templateObject161()),fR=$localize(_templateObject162()),pR=$localize(_templateObject163()),gR=$localize(_templateObject164());var OR,DR,ER,AR,IR,TR=((OR=function(){function t(e,n,i,a){_classCallCheck(this,t),this.dialog=e,this.postsService=n,this.router=i,this.snackBar=a,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.getSubscriptions()}},{key:"getSubscriptions",value:function(){var t=this;this.subscriptions_loading=!0,this.subscriptions=null,this.channel_subscriptions=[],this.playlist_subscriptions=[],this.postsService.getAllSubscriptions().subscribe((function(e){if(t.subscriptions_loading=!1,t.subscriptions=e.subscriptions,t.subscriptions)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||OR)(a.yc(Sh),a.yc(gS),a.yc(Fx),a.yc(Sy))},OR.\u0275cmp=a.sc({type:OR,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(a.zc(0,"br"),a.Dc(1,"h2",0),a.Hc(2,uR),a.Cc(),a.zc(3,"mat-divider",1),a.zc(4,"br"),a.Dc(5,"h4",2),a.Hc(6,dR),a.Cc(),a.Dc(7,"mat-nav-list",3),a.td(8,_R,7,2,"mat-list-item",4),a.Cc(),a.td(9,kR,3,0,"div",5),a.Dc(10,"h4",6),a.Hc(11,hR),a.Cc(),a.Dc(12,"mat-nav-list",3),a.td(13,wR,8,2,"mat-list-item",4),a.Cc(),a.td(14,xR,3,0,"div",5),a.td(15,SR,2,0,"div",7),a.Dc(16,"button",8),a.Qc("click",(function(){return e.openSubscribeDialog()})),a.Dc(17,"mat-icon"),a.vd(18,"add"),a.Cc(),a.Cc()),2&t&&(a.kc(8),a.ad("ngForOf",e.channel_subscriptions),a.kc(1),a.ad("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),a.kc(4),a.ad("ngForOf",e.playlist_subscriptions),a.kc(1),a.ad("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),a.kc(1),a.ad("ngIf",e.subscriptions_loading))},directives:[Ep,Yp,ye.s,ye.t,Ya,mp,tg,sa,fv],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),OR);function PR(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",4),a.Qc("click",(function(){return a.ld(n),a.Uc().deleteForever()})),a.Dc(1,"mat-icon"),a.vd(2,"delete_forever"),a.Cc(),a.Bc(3),a.Hc(4,IR),a.Ac(),a.Cc()}}function RR(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",10),a.Dc(1,"img",11),a.Qc("error",(function(t){return a.ld(n),a.Uc().onImgError(t)})),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(1),a.ad("src",i.file.thumbnailURL,a.nd)}}DR=$localize(_templateObject165()),ER=$localize(_templateObject166()),AR=$localize(_templateObject167()),IR=$localize(_templateObject168());var MR,jR,LR=((MR=function(){function t(e,n,i){_classCallCheck(this,t),this.snackBar=e,this.postsService=n,this.dialog=i,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new a.s,this.reloadSubscription=new a.s,this.scrollSubject=new Me.a,this.scrollAndLoad=sn.a.merge(sn.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(t,[{key:"ngOnInit",value:function(){var t,e,n,i,a;this.file.duration&&(this.formattedDuration=(t=this.file.duration,n=~~(t%3600/60),a="",(e=~~(t/3600))>0&&(a+=e+":"+(n<10?"0":"")),a+=n+":"+((i=~~t%60)<10?"0":""),a+=""+i))}},{key:"onImgError",value:function(t){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(t){this.image_loaded=!0}},{key:"goToFile",value:function(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}},{key:"openSubscriptionInfoDialog",value:function(){this.dialog.open(hI,{data:{file:this.file},minWidth:"50vw"})}},{key:"deleteAndRedownload",value:function(){var t=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1).subscribe((function(e){t.reloadSubscription.emit(!0),t.openSnackBar("Successfully deleted file: '".concat(t.file.id,"'"),"Dismiss.")}))}},{key:"deleteForever",value:function(){var t=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0).subscribe((function(e){t.reloadSubscription.emit(!0),t.openSnackBar("Successfully deleted file: '".concat(t.file.id,"'"),"Dismiss.")}))}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||MR)(a.yc(Sy),a.yc(gS),a.yc(Sh))},MR.\u0275cmp=a.sc({type:MR,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.Bc(2),a.Hc(3,DR),a.Ac(),a.vd(4),a.Cc(),a.Dc(5,"button",2),a.Dc(6,"mat-icon"),a.vd(7,"more_vert"),a.Cc(),a.Cc(),a.Dc(8,"mat-menu",null,3),a.Dc(10,"button",4),a.Qc("click",(function(){return e.openSubscriptionInfoDialog()})),a.Dc(11,"mat-icon"),a.vd(12,"info"),a.Cc(),a.Bc(13),a.Hc(14,ER),a.Ac(),a.Cc(),a.Dc(15,"button",4),a.Qc("click",(function(){return e.deleteAndRedownload()})),a.Dc(16,"mat-icon"),a.vd(17,"restore"),a.Cc(),a.Bc(18),a.Hc(19,AR),a.Ac(),a.Cc(),a.td(20,PR,5,0,"button",5),a.Cc(),a.Dc(21,"mat-card",6),a.Qc("click",(function(){return e.goToFile()})),a.Dc(22,"div",7),a.td(23,RR,2,1,"div",8),a.Dc(24,"span",9),a.Dc(25,"strong"),a.vd(26),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()),2&t){var n=a.hd(9);a.kc(4),a.xd("\xa0",e.formattedDuration," "),a.kc(1),a.ad("matMenuTriggerFor",n),a.kc(15),a.ad("ngIf",e.sub.archive&&e.use_youtubedl_archive),a.kc(3),a.ad("ngIf",!e.image_errored&&e.file.thumbnailURL),a.kc(3),a.wd(e.file.title)}},directives:[Ya,Rg,mp,Ag,wg,ye.t,Pl,wa],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),MR);function FR(t,e){if(1&t&&(a.Dc(0,"h2",9),a.vd(1),a.Cc()),2&t){var n=a.Uc();a.kc(1),a.xd(" ",n.subscription.name," ")}}jR=$localize(_templateObject169());var zR=["placeholder",$localize(_templateObject170())];function NR(t,e){if(1&t&&(a.Dc(0,"mat-option",25),a.vd(1),a.Cc()),2&t){var n=e.$implicit;a.ad("value",n.value),a.kc(1),a.xd(" ",n.value.label," ")}}function BR(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",26),a.Dc(1,"app-subscription-file-card",27),a.Qc("reloadSubscription",(function(){return a.ld(n),a.Uc(2).getSubscription()}))("goToFileEmit",(function(t){return a.ld(n),a.Uc(2).goToFile(t)})),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit,r=a.Uc(2);a.kc(1),a.ad("file",i)("sub",r.subscription)("use_youtubedl_archive",r.use_youtubedl_archive)}}function VR(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"div",12),a.Dc(4,"mat-select",13),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().filterProperty=t}))("selectionChange",(function(t){return a.ld(n),a.Uc().filterOptionChanged(t.value)})),a.td(5,NR,2,2,"mat-option",14),a.Vc(6,"keyvalue"),a.Cc(),a.Cc(),a.Dc(7,"div",12),a.Dc(8,"button",15),a.Qc("click",(function(){return a.ld(n),a.Uc().toggleModeChange()})),a.Dc(9,"mat-icon"),a.vd(10),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.zc(11,"div",16),a.Dc(12,"div",16),a.Dc(13,"h4",17),a.Hc(14,jR),a.Cc(),a.Cc(),a.Dc(15,"div",18),a.Dc(16,"mat-form-field",19),a.Dc(17,"input",20),a.Jc(18,zR),a.Qc("focus",(function(){return a.ld(n),a.Uc().searchIsFocused=!0}))("blur",(function(){return a.ld(n),a.Uc().searchIsFocused=!1}))("ngModelChange",(function(t){return a.ld(n),a.Uc().search_text=t}))("ngModelChange",(function(t){return a.ld(n),a.Uc().onSearchInputChanged(t)})),a.Cc(),a.Dc(19,"mat-icon",21),a.vd(20,"search"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(21,"div",22),a.Dc(22,"div",23),a.td(23,BR,2,3,"div",24),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(4),a.ad("ngModel",i.filterProperty),a.kc(1),a.ad("ngForOf",a.Wc(6,6,i.filterProperties)),a.kc(5),a.wd(i.descendingMode?"arrow_downward":"arrow_upward"),a.kc(6),a.ad("ngClass",i.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),a.kc(1),a.ad("ngModel",i.search_text),a.kc(6),a.ad("ngForOf",i.filtered_files)}}function UR(t,e){1&t&&a.zc(0,"mat-spinner",28),2&t&&a.ad("diameter",50)}var HR,qR,GR=((HR=function(){function t(e,n,i){_classCallCheck(this,t),this.postsService=e,this.route=n,this.router=i,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.getSubscription(),this.getConfig());var t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}},{key:"goBack",value:function(){this.router.navigate(["/subscriptions"])}},{key:"getSubscription",value:function(){var t=this;this.postsService.getSubscription(this.id).subscribe((function(e){t.subscription=e.subscription,t.files=e.files,t.search_mode?t.filterFiles(t.search_text):t.filtered_files=t.files,t.filterByProperty(t.filterProperty.property)}))}},{key:"getConfig",value:function(){var t=this;this.postsService.loadNavItems().subscribe((function(e){t.use_youtubedl_archive=(t.postsService.debugMode?e:e.config_file).YoutubeDLMaterial.Subscriptions.subscriptions_use_youtubedl_archive}))}},{key:"goToFile",value:function(t){var e=t.name,n=t.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:e,url:n}]:["/player",{fileNames:e,type:"subscription",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist}])}},{key:"onSearchInputChanged",value:function(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}},{key:"filterFiles",value:function(t){var e=t.toLowerCase();this.filtered_files=this.files.filter((function(t){return t.id.toLowerCase().includes(e)}))}},{key:"filterByProperty",value:function(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?function(e,n){return e[t]>n[t]?-1:1}:function(e,n){return e[t]>n[t]?1:-1})}},{key:"filterOptionChanged",value:function(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}},{key:"toggleModeChange",value:function(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}},{key:"downloadContent",value:function(){for(var t=this,e=[],n=0;n0)}}function rM(t,e){1&t&&(a.Dc(0,"div"),a.Dc(1,"h4",4),a.Hc(2,ZR),a.Cc(),a.Cc())}KR=$localize(_templateObject172()),XR=$localize(_templateObject173()),ZR=$localize(_templateObject174());var oM,sM,lM,cM=((sM=function(){function t(e){_classCallCheck(this,t),this.postsService=e,this.downloads_check_interval=500,this.downloads={},this.keys=Object.keys,this.valid_sessions_length=0}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.getCurrentDownloads(),setInterval((function(){t.getCurrentDownloads()}),this.downloads_check_interval)}},{key:"getCurrentDownloads",value:function(){var t=this;this.postsService.getCurrentDownloads().subscribe((function(e){e.downloads&&t.assignNewValues(e.downloads)}))}},{key:"clearDownload",value:function(t,e){var n=this;this.postsService.clearDownloads(!1,t,e).subscribe((function(t){t.success&&(n.downloads=t.downloads)}))}},{key:"clearDownloads",value:function(t){var e=this;this.postsService.clearDownloads(!1,t).subscribe((function(t){t.success&&(e.downloads=t.downloads)}))}},{key:"clearAllDownloads",value:function(){var t=this;this.postsService.clearDownloads(!0).subscribe((function(e){e.success&&(t.downloads=e.downloads)}))}},{key:"assignNewValues",value:function(t){for(var e=Object.keys(t),n=0;n0){t=!0;break}return t}}]),t}()).\u0275fac=function(t){return new(t||sM)(a.yc(gS))},sM.\u0275cmp=a.sc({type:sM,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.td(1,aM,2,1,"div",1),a.Vc(2,"keyvalue"),a.td(3,rM,3,0,"div",2),a.Cc()),2&t&&(a.kc(1),a.ad("ngForOf",a.Wc(2,2,e.downloads)),a.kc(2),a.ad("ngIf",e.downloads&&!e.downloadsValid()))},directives:[ye.s,ye.t,Pl,JR],pipes:[ye.l],styles:[""],data:{animation:[o("list",[h(":enter",[f("@items",(oM=m(),{type:12,timings:100,animation:oM}),{optional:!0})])]),o("items",[h(":enter",[u({transform:"scale(0.5)",opacity:0}),s("500ms cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(1)",opacity:1}))]),h(":leave",[u({transform:"scale(1)",opacity:1,height:"*"}),s("1s cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),sM),uM=[{path:"home",component:eI},{path:"player",component:VP},{path:"subscriptions",component:TR},{path:"subscription",component:GR},{path:"downloads",component:cM},{path:"",redirectTo:"/home",pathMatch:"full"}],dM=((lM=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:lM}),lM.\u0275inj=a.vc({factory:function(t){return new(t||lM)},imports:[[rS.forRoot(uM,{useHash:!0})],rS]}),lM),hM=n("2Yyj"),mM=n.n(hM);function fM(t){return"video"===t.element.id?ZA||tI:XA||JA}Object(ye.K)(mM.a,"es");var pM,gM=((pM=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:pM,bootstrap:[mE]}),pM.\u0275inj=a.vc({factory:function(t){return new(t||pM)},providers:[gS],imports:[[ye.c,i.a,Re,ra,Hv,nl,Dp,db,il,Vf,Ty,jl,wy,Ka,Kl,qb,fp,sg,qm,Cm,vv,Pv,fl,xa,jg,Lh,oy,jg,sh,U_,cv,Hk,Yk,SP,_P,DP,nP,GI.forRoot({isVisible:fM}),rS,dM]]}),pM);a.od(eI,[ye.q,ye.r,ye.s,ye.t,ye.A,ye.w,ye.x,ye.y,ye.z,ye.u,ye.v,Bv,Uv,Ci,$o,to,oo,mr,Nr,qr,ur,Jr,ro,Ur,Cr,wr,Hs,$s,Xs,Js,qs,Qs,Yo,Go,Bo,vp,bp,vd,zd,Ad,Id,Td,Pd,Rd,Op,_p,ub,cb,Ma,Aa,Zo,ts,Bs,ns,as,Iy,Ay,Pl,Rl,Ml,kl,Cl,wl,xl,Sl,Dl,El,Al,Ol,Il,Tl,Cy,Ya,$a,Gl,Ql,Fb,zb,Lb,Bb,Ub,Nb,mp,Kp,Yp,tg,Xp,sa,Zp,Jp,Sa,og,rg,Ep,Hm,Dm,Em,Im,Tm,Am,_m,pm,gm,vm,ym,bm,hm,fv,Iv,Tv,dl,ml,wa,Ag,wg,Rg,_g,bh,Dh,Eh,Ah,Ih,iy,ey,eh,oh,nh,I_,g_,__,z_,V_,p_,sv,lv,Uk,Bk,Pk,Dk,Ak,Ek,Qk,CP,wP,xP,aP,sP,lP,cP,uP,dP,hP,mP,fP,pP,vP,bP,yP,OP,eP,qI,Yx,zx,Nx,Gx,FC,mE,JI,eI,VP,lT,jE,JR,TR,sR,GR,LR,vR,QD,RS,rE,hI,YS,hO,aO,mT,cM],[ye.b,ye.G,ye.p,ye.k,ye.E,ye.g,ye.C,ye.F,ye.d,ye.f,ye.i,ye.j,ye.l,gP,QS])},xDdU:function(t,e,n){var i,a,r=n("4fRq"),o=n("I2ZF"),s=0,l=0;t.exports=function(t,e,n){var c=e&&n||0,u=e||[],d=(t=t||{}).node||i,h=void 0!==t.clockseq?t.clockseq:a;if(null==d||null==h){var m=r();null==d&&(d=i=[1|m[0],m[1],m[2],m[3],m[4],m[5]]),null==h&&(h=a=16383&(m[6]<<8|m[7]))}var f=void 0!==t.msecs?t.msecs:(new Date).getTime(),p=void 0!==t.nsecs?t.nsecs:l+1,g=f-s+(p-l)/1e4;if(g<0&&void 0===t.clockseq&&(h=h+1&16383),(g<0||f>s)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,l=p,a=h;var v=(1e4*(268435455&(f+=122192928e5))+p)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var b=f/4294967296*1e4&268435455;u[c++]=b>>>8&255,u[c++]=255&b,u[c++]=b>>>24&15|16,u[c++]=b>>>16&255,u[c++]=h>>>8|128,u[c++]=255&h;for(var y=0;y<6;++y)u[c+y]=d[y];return e||o(u)}},xk4V:function(t,e,n){var i=n("4fRq"),a=n("I2ZF");t.exports=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var s=0;s<16;++s)e[r+s]=o[s];return e||a(o)}},zuWl:function(t,e,n){"use strict";!function(e){var n=/^(b|B)$/,i={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},a={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function r(t){var e,r,o,s,l,c,u,d,h,m,f,p,g,v,b,y=1=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,r=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){o=!0,a=t},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw a}}}}function _createSuper(t){return function(){var e,i=_getPrototypeOf(t);if(_isNativeReflectConstruct()){var n=_getPrototypeOf(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return _possibleConstructorReturn(this,e)}}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){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 _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _inherits(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&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(c){a=!0,r=c}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i>>((3&e)<<3)&255;return a}}},"6BPK":function(t,e,i){var n,a;!function(r,o,s){"use strict";"undefined"!=typeof window&&i("PDX0")?void 0===(a="function"==typeof(n=s)?n.call(e,i,e,t):n)||(t.exports=a):t.exports?t.exports=s():o.exports?o.exports=s():o.Fingerprint2=s()}(0,this,(function(){"use strict";var t=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]+(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]+e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]+e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]+e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},e=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]*(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]*e[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=t[3]*e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]*e[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[2]*e[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[3]*e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},i=function(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:[t[1]<<(e-=32)|t[0]>>>32-e,t[0]<>>32-e]},n=function(t,e){return 0==(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=e(t,[4283543511,3981806797]),t=a(t,[0,t[0]>>>1]),t=e(t,[3301882366,444984403]),a(t,[0,t[0]>>>1])},o=function(o,s){for(var c=(o=o||"").length%16,l=o.length-c,u=[0,s=s||0],d=[0,s],h=[0,0],f=[0,0],m=[2277735313,289559509],p=[1291169091,658871167],g=0;g>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)},s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},c=function(t,e){if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach)t.forEach(e);else if(t.length===+t.length)for(var i=0,n=t.length;ie.name?1:t.name=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0||e.indexOf("cros")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(i.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(i.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===t))return!0}return n.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t}())}},{key:"hasLiedBrowser",getData:function(t){t(function(){var t,e=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"==(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==i)return!0;var n,a=eval.toString().length;if(37===a&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===a&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===a&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(r){try{r.toSource(),n=!0}catch(o){n=!1}}return n&&"Firefox"!==t&&"Other"!==t}())}},{key:"touchSupport",getData:function(t){t(function(){var t,e=0;void 0!==navigator.maxTouchPoints?e=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(i){t=!1}return[e,t,"ontouchstart"in window]}())}},{key:"fonts",getData:function(t,e){var i=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];e.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(e.fonts.userDefinedFonts)).filter((function(t,e){return n.indexOf(t)===e}));var a=document.getElementsByTagName("body")[0],r=document.createElement("div"),o=document.createElement("div"),s={},c={},l=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.fontStyle="normal",t.style.fontWeight="normal",t.style.letterSpacing="normal",t.style.lineBreak="auto",t.style.lineHeight="normal",t.style.textTransform="none",t.style.textAlign="left",t.style.textDecoration="none",t.style.textShadow="none",t.style.whiteSpace="normal",t.style.wordBreak="normal",t.style.wordSpacing="normal",t.innerHTML="mmmmmmmmmmlli",t},u=function(t,e){var i=l();return i.style.fontFamily="'"+t+"',"+e,i},d=function(t){for(var e=!1,n=0;n=t.components.length)e(i.data);else{var o=t.components[n];if(t.excludes[o.key])a(!1);else{if(!r&&o.pauseBefore)return n-=1,void setTimeout((function(){a(!0)}),1);try{o.getData((function(t){i.addPreprocessedComponent(o.key,t),a(!1)}),t)}catch(s){i.addPreprocessedComponent(o.key,String(s)),a(!1)}}}}(!1)},g.getPromise=function(t){return new Promise((function(e,i){g.get(t,e)}))},g.getV18=function(t,e){return null==e&&(e=t,t={}),g.get(t,(function(i){for(var n=[],a=0;a=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,r,o){var s=a.URL||a.webkitURL,c=document.createElement("a");c.download=r=r||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,r,o):n(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){n(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,r){if(a=a||t.name||"download","string"!=typeof t)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(["\ufeff",t],{type:t.type}):t}(t,r),a);else if(i(t))e(t,a,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){n(o)}))}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=r.saveAs=r,t.exports=r})?n.apply(e,[]):n)||(t.exports=a)},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},XypG:function(t,e){},ZAI4:function(t,e,i){"use strict";i.r(e),i.d(e,"isVisible",(function(){return wj})),i.d(e,"AppModule",(function(){return xj}));var n=i("jhN1"),a=i("fXoL"),r=function t(){_classCallCheck(this,t)};function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function d(t,e,i){return{type:0,name:t,styles:e,options:i}}function h(t){return{type:5,steps:t}}function f(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:i}}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function p(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:i}}function g(t){Promise.resolve(null).then(t)}var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+i}return _createClass(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;g((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}(),b=function(){function t(e){var i=this;_classCallCheck(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 n=0,a=0,r=0,o=this.players.length;0==o?g((function(){return i._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++n==o&&i._onFinish()})),t.onDestroy((function(){++a==o&&i._onDestroy()})),t.onStart((function(){++r==o&&i._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return _createClass(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 i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var i=e.getPosition();t=Math.min(i,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 _(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(t){switch(t.length){case 0:return new v;case 1:return t[0];default:return new b(t)}}function k(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],c=-1,l=null;if(n.forEach((function(t){var i=t.offset,n=i==c,u=n&&l||{};Object.keys(t).forEach((function(i){var n=i,s=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),s){case"!":s=a[i];break;case"*":s=r[i];break;default:s=e.normalizeStyleValue(i,n,s,o)}u[n]=s})),n||s.push(u),l=u,c=i})),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function w(t,e,i,n){switch(e){case"start":t.onStart((function(){return n(i&&C(i,"start",t))}));break;case"done":t.onDone((function(){return n(i&&C(i,"done",t))}));break;case"destroy":t.onDestroy((function(){return n(i&&C(i,"destroy",t))}))}}function C(t,e,i){var n=i.totalTime,a=x(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(a._data=r),a}function x(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:i,toState:n,phaseName:a,totalTime:r,disabled:!!o}}function S(t,e,i){var n;return t instanceof Map?(n=t.get(e))||t.set(e,n=i):(n=t[e])||(n=t[e]=i),n}function E(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var O=function(t,e){return!1},A=function(t,e){return!1},T=function(t,e,i){return[]},D=_();(D||"undefined"!=typeof Element)&&(O=function(t,e){return t.contains(e)},A=function(){if(D||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,i){return e.apply(t,[i])}:A}(),T=function(t,e,i){var n=[];if(i)n.push.apply(n,_toConsumableArray(t.querySelectorAll(e)));else{var a=t.querySelector(e);a&&n.push(a)}return n});var I=null,P=!1;function F(t){I||(I=("undefined"!=typeof document?document.body:null)||{},P=!!I.style&&"WebkitAppearance"in I.style);var e=!0;return I.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in I.style)&&P)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in I.style),e}var R=A,M=O,z=T;function L(t){var e={};return Object.keys(t).forEach((function(i){var n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]})),e}var j,N=((j=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return F(t)}},{key:"matchesElement",value:function(t,e){return R(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,i){return z(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return i||""}},{key:"animate",value:function(t,e,i,n,a){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new v(i,n)}}]),t}()).\u0275fac=function(t){return new(t||j)},j.\u0275prov=a.vc({token:j,factory:j.\u0275fac}),j),B=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new N,t}();function V(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:U(parseFloat(e[1]),e[2])}function U(t,e){switch(e){case"s":return 1e3*t;default:return t}}function W(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){var n,a=0,r="";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:""};n=U(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(a=U(parseFloat(s),o[4]));var c=o[5];c&&(r=c)}else n=t;if(!i){var l=!1,u=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),a<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(u,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:n,delay:a,easing:r}}(t,e,i)}function H(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(i){e[i]=t[i]})),e}function G(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var n in t)i[n]=t[n];else H(t,i);return i}function q(t,e,i){return i?e+":"+i+";":""}function $(t){for(var e="",i=0;i *";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,i);if("function"==typeof n)return void e.push(n);t=n}var a=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return i.push('The provided transition expression "'.concat(t,'" is not supported')),e;var r=a[1],o=a[2],s=a[3];e.push(lt(r,s)),"<"!=o[0]||"*"==r&&"*"==s||e.push(lt(s,r))}(t,a,n)})):a.push(i),a),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:pt(t.options)}}},{key:"visitSequence",value:function(t,e){var i=this;return{type:2,steps:t.steps.map((function(t){return rt(i,t,e)})),options:pt(t.options)}}},{key:"visitGroup",value:function(t,e){var i=this,n=e.currentTime,a=0,r=t.steps.map((function(t){e.currentTime=n;var r=rt(i,t,e);return a=Math.max(a,e.currentTime),r}));return e.currentTime=a,{type:3,steps:r,options:pt(t.options)}}},{key:"visitAnimate",value:function(t,e){var i,n=function(t,e){var i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return gt(W(t,e).duration,0,"");var n=t;if(n.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var a=gt(0,0,"");return a.dynamic=!0,a.strValue=n,a}return gt((i=i||W(n,e)).duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var a=t.styles?t.styles:u({});if(5==a.type)i=this.visitKeyframes(a,e);else{var r=t.styles,o=!1;if(!r){o=!0;var s={};n.easing&&(s.easing=n.easing),r=u(s)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(r,e);c.isEmptyStep=o,i=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}},{key:"_makeStyleAst",value:function(t,e){var i=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?i.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):i.push(t)})):i.push(t.styles);var n=!1,a=null;return i.forEach((function(t){if(mt(t)){var e=t,i=e.easing;if(i&&(a=i,delete e.easing),!n)for(var r in e)if(e[r].toString().indexOf("{{")>=0){n=!0;break}}})),{type:6,styles:i,easing:a,offset:t.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(t,e){var i=this,n=e.currentAnimateTimings,a=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(n){if(i._driver.validateStyleProperty(n)){var o,s,c,l,u,d=e.collectedStyles[e.currentQuerySelector],h=d[n],f=!0;h&&(r!=a&&r>=h.startTime&&a<=h.endTime&&(e.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),f=!1),r=h.startTime),f&&(d[n]={startTime:r,endTime:a}),e.options&&(o=t[n],s=e.options,c=e.errors,l=s.params||{},(u=Z(o)).length&&u.forEach((function(t){l.hasOwnProperty(t)||c.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(n,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var i=this,n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;var a=0,r=[],o=!1,s=!1,c=0,l=t.steps.map((function(t){var n=i._makeStyleAst(t,e),l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(mt(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}}));else if(mt(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}return e}(n.styles),u=0;return null!=l&&(a++,u=n.offset=l),s=s||u<0||u>1,o=o||u0&&a0?a==h?1:d*a:r[a],s=o*p;e.currentTime=f+m.delay+s,m.duration=s,i._validateStyleAst(t,e),t.offset=o,n.styles.push(t)})),n}},{key:"visitReference",value:function(t,e){return{type:8,animation:rt(this,X(t.animation),e),options:pt(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:pt(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:pt(t.options)}}},{key:"visitQuery",value:function(t,e){var i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;var a=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(ut,"")),[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),r=a[0],o=a[1];e.currentQuerySelector=i.length?i+" "+r:r,S(e.collectedStyles,e.currentQuerySelector,{});var s=rt(this,X(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:pt(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:W(t.timings,e.errors,!0);return{type:12,animation:rt(this,X(t.animation),e),timings:i,options:null}}}]),t}(),ft=function t(e){_classCallCheck(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 mt(t){return!Array.isArray(t)&&"object"==typeof t}function pt(t){var e;return t?(t=H(t)).params&&(t.params=(e=t.params)?H(e):null):t={},t}function gt(t,e,i){return{duration:t,delay:e,easing:i}}function vt(t,e,i,n,a,r){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:i,postStyleProps:n,duration:a,delay:r,totalTime:a+r,easing:o,subTimeline:s}}var bt=function(){function t(){_classCallCheck(this,t),this._map=new Map}return _createClass(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 i,n=this._map.get(t);n||this._map.set(t,n=[]),(i=n).push.apply(i,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),_t=new RegExp(":enter","g"),yt=new RegExp(":leave","g");function kt(t,e,i,n,a){var r=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,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new wt).buildKeyframes(t,e,i,n,a,r,o,s,c,l)}var wt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,i,n,a,r,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new bt;var u=new xt(t,e,c,n,a,l,[]);u.options=s,u.currentTimeline.setStyles([r],null,u.errors,s),rt(this,i,u);var d=u.timelines.filter((function(t){return t.containsAnimation()}));if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,u.errors,s)}return d.length?d.map((function(t){return t.buildKeyframes()})):[vt(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 i=e.subInstructions.consume(e.element);if(i){var n=e.createSubContext(t.options),a=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);a!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,i){var n=e.currentTimeline.currentTime,a=null!=i.duration?V(i.duration):null,r=null!=i.delay?V(i.delay):null;return 0!==a&&t.forEach((function(t){var i=e.appendInstructionToTimeline(t,a,r);n=Math.max(n,i.duration+i.delay)})),n}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),rt(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var i=this,n=e.subContextCount,a=e,r=t.options;if(r&&(r.params||r.delay)&&((a=e.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Ct);var o=V(r.delay);a.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return rt(i,t,a)})),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>n&&a.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var i=this,n=[],a=e.currentTimeline.currentTime,r=t.options&&t.options.delay?V(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);r&&s.delayNextStep(r),rt(i,o,s),a=Math.max(a,s.currentTimeline.currentTime),n.push(s.currentTimeline)})),n.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(a),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var i=t.strValue;return W(e.params?Q(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());var a=t.style;5==a.type?this.visitKeyframes(a,e):(e.incrementTime(i.duration),this.visitStyle(a,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var a=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(a):i.setStyles(t.styles,a,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var i=e.currentAnimateTimings,n=e.currentTimeline.duration,a=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach((function(t){r.forwardTime((t.offset||0)*a),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+a),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var i=this,n=e.currentTimeline.currentTime,a=t.options||{},r=a.delay?V(a.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ct);var o=n,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach((function(n,a){e.currentQueryIndex=a;var s=e.createSubContext(t.options,n);r&&s.delayNextStep(r),n===e.element&&(c=s.currentTimeline),rt(i,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var i=e.parentContext,n=e.currentTimeline,a=t.timings,r=Math.abs(a.duration),o=r*(e.currentQueryTotal-1),s=r*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":s=o-s;break;case"full":s=i.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var l=c.currentTime;rt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-l+(n.startTime-i.currentTimeline.startTime)}}]),t}(),Ct={},xt=function(){function t(e,i,n,a,r,o,s,c){_classCallCheck(this,t),this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=a,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new St(this._driver,i,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"updateOptions",value:function(t,e){var i=this;if(t){var n=t,a=this.options;null!=n.duration&&(a.duration=V(n.duration)),null!=n.delay&&(a.delay=V(n.delay));var r=n.params;if(r){var o=a.params;o||(o=this.options.params={}),Object.keys(r).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=Q(r[t],o,i.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var i=t.params={};Object.keys(e).forEach((function(t){i[t]=e[t]}))}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=i||this.element,r=new t(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Ct,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,i){var n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},a=new Et(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(a),n}},{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,i,n,a,r){var o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(_t,"."+this._enterClassName)).replace(yt,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=i);0!==i&&(s=i<0?s.slice(s.length+i,s.length):s.slice(0,i)),o.push.apply(o,_toConsumableArray(s))}return a||0!=o.length||r.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}(),St=function(){function t(e,i,n,a){_classCallCheck(this,t),this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=a,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(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(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,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||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,i,n){var a=this;e&&(this._previousKeyframe.easing=e);var r=n&&n.params||{},o=function(t,e){var i,n={};return t.forEach((function(t){"*"===t?(i=i||Object.keys(e)).forEach((function(t){n[t]="*"})):G(t,!1,n)})),n}(t,this._globalTimelineStyles);Object.keys(o).forEach((function(t){var e=Q(o[t],r,i);a._pendingStyles[t]=e,a._localTimelineStyles.hasOwnProperty(t)||(a._backFill[t]=a._globalTimelineStyles.hasOwnProperty(t)?a._globalTimelineStyles[t]:"*"),a._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,i=Object.keys(e);0!=i.length&&(this._pendingStyles={},i.forEach((function(i){t._currentKeyframe[i]=e[i]})),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 i=t._localTimelineStyles[e];t._pendingStyles[e]=i,t._updateStyle(e,i)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(i){var n=e._styleSummary[i],a=t._styleSummary[i];(!n||a.time>n.time)&&e._updateStyle(i,a.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,a=[];this._keyframes.forEach((function(r,o){var s=G(r,!0);Object.keys(s).forEach((function(t){var n=s[t];"!"==n?e.add(t):"*"==n&&i.add(t)})),n||(s.offset=o/t.duration),a.push(s)}));var r=e.size?tt(e.values()):[],o=i.size?tt(i.values()):[];if(n){var s=a[0],c=H(s);s.offset=0,c.offset=1,a=[s,c]}return vt(this.element,a,r,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}(),Et=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s){var c,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,i),(c=e.call(this,t,n,s.delay)).element=n,c.keyframes=a,c.preStyleProps=r,c.postStyleProps=o,c._stretchStartingKeyframe=l,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,i=e.delay,n=e.duration,a=e.easing;if(this._stretchStartingKeyframe&&i){var r=[],o=n+i,s=i/o,c=G(t[0],!1);c.offset=0,r.push(c);var l=G(t[0],!1);l.offset=Ot(s),r.push(l);for(var u=t.length-1,d=1;d<=u;d++){var h=G(t[d],!1);h.offset=Ot((i+h.offset*n)/o),r.push(h)}n=o,i=0,a="",t=r}return vt(this.element,t,this.preStyleProps,this.postStyleProps,n,i,a,!0)}}]),i}(St);function Ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,e-1);return Math.round(t*i)/i}var At=function t(){_classCallCheck(this,t)},Tt=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"normalizePropertyName",value:function(t,e){return it(t)}},{key:"normalizeStyleValue",value:function(t,e,i,n){var a="",r=i.toString().trim();if(Dt[e]&&0!==i&&"0"!==i)if("number"==typeof i)a="px";else{var o=i.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&n.push("Please provide a CSS unit value for ".concat(t,":").concat(i))}return r+a}}]),i}(At),Dt=function(t){var e={};return t.forEach((function(t){return e[t]=!0})),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function It(t,e,i,n,a,r,o,s,c,l,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:a,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}var Pt={},Ft=function(){function t(e,i,n){_classCallCheck(this,t),this._triggerName=e,this.ast=i,this._stateStyles=n}return _createClass(t,[{key:"match",value:function(t,e,i,n){return function(t,e,i,n,a){return t.some((function(t){return t(e,i,n,a)}))}(this.ast.matchers,t,e,i,n)}},{key:"buildStyles",value:function(t,e,i){var n=this._stateStyles["*"],a=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return a?a.buildStyles(e,i):r}},{key:"build",value:function(t,e,i,n,a,r,o,s,c,l){var u=[],d=this.ast.options&&this.ast.options.params||Pt,h=this.buildStyles(i,o&&o.params||Pt,u),f=s&&s.params||Pt,m=this.buildStyles(n,f,u),p=new Set,g=new Map,v=new Map,b="void"===n,_={params:Object.assign(Object.assign({},d),f)},y=l?[]:kt(t,e,this.ast.animation,a,r,h,m,_,c,u),k=0;if(y.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),u.length)return It(e,this._triggerName,i,n,b,h,m,[],[],g,v,k,u);y.forEach((function(t){var i=t.element,n=S(g,i,{});t.preStyleProps.forEach((function(t){return n[t]=!0}));var a=S(v,i,{});t.postStyleProps.forEach((function(t){return a[t]=!0})),i!==e&&p.add(i)}));var w=tt(p.values());return It(e,this._triggerName,i,n,b,h,m,y,w,g,v,k)}}]),t}(),Rt=function(){function t(e,i){_classCallCheck(this,t),this.styles=e,this.defaultParams=i}return _createClass(t,[{key:"buildStyles",value:function(t,e){var i={},n=H(this.defaultParams);return Object.keys(t).forEach((function(e){var i=t[e];null!=i&&(n[e]=i)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var a=t;Object.keys(a).forEach((function(t){var r=a[t];r.length>1&&(r=Q(r,n,e)),i[t]=r}))}})),i}}]),t}(),Mt=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.name=e,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach((function(t){n.states[t.name]=new Rt(t.style,t.options&&t.options.params||{})})),zt(this.states,"true","1"),zt(this.states,"false","0"),i.transitions.forEach((function(t){n.transitionFactories.push(new Ft(e,t,n.states))})),this.fallbackTransition=new Ft(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"matchTransition",value:function(t,e,i,n){return this.transitionFactories.find((function(a){return a.match(t,e,i,n)}))||null}},{key:"matchStyles",value:function(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function zt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}var Lt=new bt,jt=function(){function t(e,i,n){_classCallCheck(this,t),this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var i=[],n=dt(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[t]=n}},{key:"_buildPlayer",value:function(t,e,i){var n=t.element,a=k(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,a,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=this._animations[t],s=new Map;if(o?(i=kt(this._driver,e,o,"ng-enter","ng-leave",{},{},a,Lt,r)).forEach((function(t){var e=S(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: ".concat(r.join("\n")));s.forEach((function(t,e){Object.keys(t).forEach((function(i){t[i]=n._driver.computeStyle(e,i,"*")}))}));var c=y(i.map((function(t){var e=s.get(t.element);return n._buildPlayer(t,{},e)})));return this._playersById[t]=c,c.onDestroy((function(){return n.destroy(t)})),this.players.push(c),c}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var i=this.players.indexOf(e);i>=0&&this.players.splice(i,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,i,n){var a=x(e,"","","");return w(this._getPlayer(t),i,a,n),function(){}}},{key:"command",value:function(t,e,i,n){if("register"!=i)if("create"!=i){var a=this._getPlayer(t);switch(i){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,n[0]||{});else this.register(t,n[0])}}]),t}(),Nt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=i;var n,a=e&&e.hasOwnProperty("value");if(this.value=null!=(n=a?e.value:e)?n:null,a){var r=H(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var i=this.options.params;Object.keys(e).forEach((function(t){null==i[t]&&(i[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),Wt=new Ut("void"),Ht=function(){function t(e,i,n){_classCallCheck(this,t),this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Jt(i,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,i,n){var a,r=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(a=i)&&"done"!=a)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(e,'" is not supported!'));var o=S(this._elementListeners,t,[]),s={name:e,phase:i,callback:n};o.push(s);var c=S(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),c[e]=Wt),function(){r._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),r._triggers[e]||delete c[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,i){var n=this,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this._getTrigger(e),o=new qt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],l=new Ut(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s[e]=l,c||(c=Wt),"void"===l.value||c.value!==l.value){var u=S(this._engine.playersByElement,t,[]);u.forEach((function(t){t.namespaceId==n.id&&t.triggerName==e&&t.queued&&t.destroy()}));var d=r.matchTransition(c.value,l.value,t,l.params),h=!1;if(!d){if(!a)return;d=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:c,toState:l,player:o,isFallbackTransition:h}),h||(Jt(t,"ng-animate-queued"),o.onStart((function(){Zt(t,"ng-animate-queued")}))),o.onDone((function(){var e=n.players.indexOf(o);e>=0&&n.players.splice(e,1);var i=n._engine.playersByElement.get(t);if(i){var a=i.indexOf(o);a>=0&&i.splice(a,1)}})),this.players.push(o),u.push(o),o}if(!function(t,e){var i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(var a=0;a=0){for(var n=!1,a=i;a>=0;a--)if(this.driver.containsElement(this._namespaceList[a].hostElement,e)){this._namespaceList.splice(a+1,0,t),n=!0;break}n||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 i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}},{key:"registerTrigger",value:function(t,e,i){var n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var i=this;if(t){var n=this._fetchNamespace(t);this.afterFlush((function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[t];var e=i._namespaceList.indexOf(n);e>=0&&i._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return n.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,i=this.statesByElement.get(t);if(i)for(var n=Object.keys(i),a=0;a=0&&this.collectedLeaveElements.splice(r,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,i)}n&&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),Jt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,i,n){if($t(e)){var a=t?this._fetchNamespace(t):null;if(a?a.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){var r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,n)}}else this._onRemovalComplete(e,n)}},{key:"markElementAsRemoved",value:function(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,i,n,a){return $t(e)?this._fetchNamespace(t).listen(e,i,n,a):function(){}}},{key:"_buildInstruction",value:function(t,e,i,n,a){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,a)}},{key:"destroyInnerAnimations",value:function(t){var e=this,i=this.driver.query(t,".ng-trigger",!0);i.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(i=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 y(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,i=t.__ng_removed;if(i&&i.setForRemoval){if(t.__ng_removed=Bt,i.namespaceId){this.destroyInnerAnimations(t);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.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,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,i){return t._balanceNamespaceList(e,i)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach((function(t){var e=t.player,r=t.element;if(E.push(e),i.collectedEnterElements.length){var u=r.__ng_removed;if(u&&u.setForMove)return void e.destroy()}var h=!d||!i.driver.containsElement(d,r),f=C.get(r),p=m.get(r),g=i._buildInstruction(t,n,p,f,h);if(!g.errors||!g.errors.length)return h||t.isFallbackTransition?(e.onStart((function(){return K(r,g.fromStyles)})),e.onDestroy((function(){return Y(r,g.toStyles)})),void a.push(e)):(g.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),n.append(r,g.timelines),o.push({instruction:g,player:e,element:r}),g.queriedElements.forEach((function(t){return S(s,t,[]).push(e)})),g.preStyleProps.forEach((function(t,e){var i=Object.keys(t);if(i.length){var n=c.get(e);n||c.set(e,n=new Set),i.forEach((function(t){return n.add(t)}))}})),void g.postStyleProps.forEach((function(t,e){var i=Object.keys(t),n=l.get(e);n||l.set(e,n=new Set),i.forEach((function(t){return n.add(t)}))})));O.push(g)}));if(O.length){var T=[];O.forEach((function(t){T.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return T.push("- ".concat(t,"\n"))}))})),E.forEach((function(t){return t.destroy()})),this.reportError(T)}var D=new Map,I=new Map;o.forEach((function(t){var e=t.element;n.has(e)&&(I.set(e,e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,D))})),a.forEach((function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){S(D,e,[]).push(t),t.destroy()}))}));var P=g.filter((function(t){return te(t,c,l)})),F=new Map;Kt(F,this.driver,b,l,"*").forEach((function(t){te(t,c,l)&&P.push(t)}));var R=new Map;f.forEach((function(t,e){Kt(R,i.driver,new Set(t),c,"!")})),P.forEach((function(t){var e=F.get(t),i=R.get(t);F.set(t,Object.assign(Object.assign({},e),i))}));var M=[],z=[],L={};o.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(n.has(e)){if(u.has(e))return o.onDestroy((function(){return Y(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void a.push(o);var c=L;if(I.size>1){for(var l=e,d=[];l=l.parentNode;){var h=I.get(l);if(h){c=h;break}d.push(l)}d.forEach((function(t){return I.set(t,c)}))}var f=i._buildAnimation(o.namespaceId,s,D,r,R,F);if(o.setRealPlayer(f),c===L)M.push(o);else{var m=i.playersByElement.get(c);m&&m.length&&(o.parentPlayer=y(m)),a.push(o)}}else K(e,s.fromStyles),o.onDestroy((function(){return Y(e,s.toStyles)})),z.push(o),u.has(e)&&a.push(o)})),z.forEach((function(t){var e=r.get(t.element);if(e&&e.length){var i=y(e);t.setRealPlayer(i)}})),a.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var j=0;j0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new v(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}(),qt=function(){function t(e,i,n){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new v,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(i){e._queuedCallbacks[i].forEach((function(e){return w(t,i,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,i=this._player;i.triggerCallback&&t.onStart((function(){return i.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){S(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 $t(t){return t&&1===t.nodeType}function Yt(t,e){var i=t.style.display;return t.style.display=null!=e?e:"none",i}function Kt(t,e,i,n,a){var r=[];i.forEach((function(t){return r.push(Yt(t))}));var o=[];n.forEach((function(i,n){var r={};i.forEach((function(t){var i=r[t]=e.computeStyle(n,t,a);i&&0!=i.length||(n.__ng_removed=Vt,o.push(n))})),t.set(n,r)}));var s=0;return i.forEach((function(t){return Yt(t,r[s++])})),o}function Xt(t,e){var i=new Map;if(t.forEach((function(t){return i.set(t,[])})),0==e.length)return i;var n=new Set(e),a=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var r=a.get(e);if(r)return r;var o=e.parentNode;return r=i.has(o)?o:n.has(o)?1:t(o),a.set(e,r),r}(t);1!==e&&i.get(e).push(t)})),i}function Jt(t,e){if(t.classList)t.classList.add(e);else{var i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Zt(t,e){if(t.classList)t.classList.remove(e);else{var i=t.$$classes;i&&delete i[e]}}function Qt(t,e,i){y(i).onDone((function(){return t.processLeaveNode(e)}))}function te(t,e,i){var n=i.get(t);if(!n)return!1;var a=e.get(t);return a?n.forEach((function(t){return a.add(t)})):e.set(t,n),i.delete(t),!0}var ee=function(){function t(e,i,n){var a=this;_classCallCheck(this,t),this.bodyNode=e,this._driver=i,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Gt(e,i,n),this._timelineEngine=new jt(e,i,n),this._transitionEngine.onRemovalComplete=function(t,e){return a.onRemovalComplete(t,e)}}return _createClass(t,[{key:"registerTrigger",value:function(t,e,i,n,a){var r=t+"-"+n,o=this._triggerCache[r];if(!o){var s=[],c=dt(this._driver,a,s);if(s.length)throw new Error('The animation trigger "'.concat(n,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(t,e){return new Mt(t,e)}(n,c),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}},{key:"onRemove",value:function(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,i,n){if("@"==i.charAt(0)){var a=_slicedToArray(E(i),2),r=a[0],o=a[1];this._timelineEngine.command(r,e,o,n)}else this._transitionEngine.trigger(t,e,i,n)}},{key:"listen",value:function(t,e,i,n,a){if("@"==i.charAt(0)){var r=_slicedToArray(E(i),2),o=r[0],s=r[1];return this._timelineEngine.listen(o,e,s,a)}return this._transitionEngine.listen(t,e,i,n,a)}},{key:"flush",value:function(){var t=arguments.length>0&&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 ie(t,e){var i=null,n=null;return Array.isArray(e)&&e.length?(i=ae(e[0]),e.length>1&&(n=ae(e[e.length-1]))):e&&(i=ae(e)),i||n?new ne(t,i,n):null}var ne=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;var a=t.initialStylesByElement.get(e);a||t.initialStylesByElement.set(e,a={}),this._initialStyles=a}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Y(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Y(this._element,this._initialStyles),this._endStyles&&(Y(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&&(K(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),Y(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function ae(t){for(var e=null,i=Object.keys(t),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ue(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,i,n;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,i=he(t,"").split(","),(n=le(i,e))>=0&&(i.splice(n,1),de(t,"",i.join(","))))}}]),t}();function se(t,e,i){de(t,"PlayState",i,ce(t,e))}function ce(t,e){var i=he(t,"");return i.indexOf(",")>0?le(i.split(","),e):le([i],e)}function le(t,e){for(var i=0;i=0)return i;return-1}function ue(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function de(t,e,i,n){var a="animation"+e;if(null!=n){var r=t.style[a];if(r.length){var o=r.split(",");o[n]=i,i=o.join(",")}}t.style[a]=i}function he(t,e){return t.style["animation"+e]}var fe=function(){function t(e,i,n,a,r,o,s,c){_classCallCheck(this,t),this.element=e,this.keyframes=i,this.animationName=n,this._duration=a,this._delay=r,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=a+r,this._buildStyler()}return _createClass(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 oe(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 i=this._state>=3;Object.keys(this._finalStyles).forEach((function(n){"offset"!=n&&(e[n]=i?t._finalStyles[n]:ot(t.element,n))}))}this.currentSnapshot=e}}]),t}(),me=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this)).element=t,a._startingStyles={},a.__initialized=!1,a._styles=L(n),a}return _createClass(i,[{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]})),_get(_getPrototypeOf(i.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])})),_get(_getPrototypeOf(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var i=t._startingStyles[e];i?t.element.style.setProperty(e,i):t.element.style.removeProperty(e)})),this._startingStyles=null,_get(_getPrototypeOf(i.prototype),"destroy",this).call(this))}}]),i}(v),pe=function(){function t(){_classCallCheck(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return F(t)}},{key:"matchesElement",value:function(t,e){return R(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,i){return z(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,i){i=i.map((function(t){return L(t)}));var n="@keyframes ".concat(e," {\n"),a="";i.forEach((function(t){a=" ";var e=parseFloat(t.offset);n+="".concat(a).concat(100*e,"% {\n"),a+=" ",Object.keys(t).forEach((function(e){var i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+="".concat(a,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(a).concat(e,": ").concat(i,";\n"))}})),n+="".concat(a,"}\n")})),n+="}\n";var r=document.createElement("style");return r.innerHTML=n,r}},{key:"animate",value:function(t,e,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=r.filter((function(t){return t instanceof fe})),c={};nt(i,n)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(i){"offset"!=i&&"easing"!=i&&(e[i]=t[i])}))})),e}(e=at(t,e,c));if(0==i)return new me(t,l);var u="gen_css_kf_".concat(this._count++),d=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(d);var h=ie(t,e),f=new fe(t,e,u,i,n,a,l,h);return f.onDestroy((function(){var t;(t=d).parentNode.removeChild(t)})),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}(),ge=function(){function t(e,i,n,a){_classCallCheck(this,t),this.element=e,this.keyframes=i,this.options=n,this._specialStyles=a,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return _createClass(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,i){return t.animate(e,i)}},{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(i){"offset"!=i&&(e[i]=t._finished?t._finalKeyframe[i]:ot(t.element,i))})),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}(),ve=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(be().toString()),this._cssKeyframesDriver=new pe}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return F(t)}},{key:"matchesElement",value:function(t,e){return R(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,i){return z(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,a,r);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};a&&(s.easing=a);var c={},l=r.filter((function(t){return t instanceof ge}));nt(i,n)&&l.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var u=ie(t,e=at(t,e=e.map((function(t){return G(t,!1)})),c));return new ge(t,e,s,u)}}]),t}();function be(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var _e,ye=i("ofXK"),ke=((_e=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:a.Z.None,styles:[],data:{animation:[]}}),r}return _createClass(i,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(t)?l(t):t;return xe(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}]),i}(r)).\u0275fac=function(t){return new(t||_e)(a.Oc(a.N),a.Oc(ye.e))},_e.\u0275prov=a.vc({token:_e,factory:_e.\u0275fac}),_e),we=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this))._id=t,a._renderer=n,a}return _createClass(i,[{key:"create",value:function(t,e){return new Ce(this._id,t,e||{},this._renderer)}}]),i}(function(){return function t(){_classCallCheck(this,t)}}()),Ce=function(){function t(e,i,n,a){_classCallCheck(this,t),this.id=e,this.element=i,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return _createClass(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,i=new Array(e>1?e-1:0),n=1;n=0&&t1?e-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),i)}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!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 i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var i=!1,n=void 0;try{this.work(t)}catch(a){i=!0,n=!!a&&a||new Error(a)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),i}(function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this)}return _createClass(i,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),i}(ze.a)),Ke=function(){var t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=i}return _createClass(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(i,e)}}]),t}();return t.now=function(){return Date.now()},t}(),Xe=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke.now;return _classCallCheck(this,i),(n=e.call(this,t,(function(){return i.delegate&&i.delegate!==_assertThisInitialized(n)?i.delegate.now():a()}))).actions=[],n.active=!1,n.scheduled=void 0,n}return _createClass(i,[{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 i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,n):_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,t,e,n)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}}]),i}(Ke),Je=new Xe(Ye);function Ze(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je;return function(i){return i.lift(new Qe(t,e))}}var Qe=function(){function t(e,i){_classCallCheck(this,t),this.dueTime=e,this.scheduler=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new ti(t,this.dueTime,this.scheduler))}}]),t}(),ti=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).dueTime=n,r.scheduler=a,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ei,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)}}]),i}(Ue.a);function ei(t){t.debouncedNext()}function ii(t,e){return function(i){return i.lift(new ni(t,e))}}var ni=function(){function t(e,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new ai(t,this.predicate,this.thisArg))}}]),t}(),ai=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).predicate=n,r.thisArg=a,r.count=0,r}return _createClass(i,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}]),i}(Ue.a),ri=i("lJxs"),oi=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),si=i("HDdC"),ci=new si.a((function(t){return t.complete()}));function li(t){return t?function(t){return new si.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):ci}function ui(t){return function(e){return 0===t?li():e.lift(new hi(t))}}var di,hi=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new oi}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new fi(t,this.total))}}]),t}(),fi=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).total=n,a.count=0,a}return _createClass(i,[{key:"_next",value:function(t){var e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}]),i}(Ue.a);function mi(t){return null!=t&&"false"!=="".concat(t)}function pi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gi(t)?Number(t):e}function gi(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function vi(t){return Array.isArray(t)?t:[t]}function bi(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function _i(t){return t instanceof a.q?t.nativeElement:t}try{di="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Sj){di=!1}var yi,ki,wi,Ci,xi,Si,Ei=((wi=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(ye.I)(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&&!di)&&"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}).\u0275fac=function(t){return new(t||wi)(a.Oc(a.J,8))},wi.\u0275prov=Object(a.vc)({factory:function(){return new wi(Object(a.Oc)(a.J,8))},token:wi,providedIn:"root"}),wi),Oi=((ki=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:ki}),ki.\u0275inj=a.wc({factory:function(t){return new(t||ki)}}),ki),Ai=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ti(){if(yi)return yi;if("object"!=typeof document||!document)return yi=new Set(Ai);var t=document.createElement("input");return yi=new Set(Ai.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function Di(t){return function(){if(null==Ci&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ci=!0}}))}finally{Ci=Ci||!1}return Ci}()?t:!!t.capture}function Ii(){if("object"!=typeof document||!document)return 0;if(null==xi){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),xi=0,0===t.scrollLeft&&(t.scrollLeft=1,xi=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return xi}function Pi(t){if(function(){if(null==Si){var t="undefined"!=typeof document?document.head:null;Si=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Si}()){var e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}var Fi,Ri,Mi,zi,Li=((zi=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}()).\u0275fac=function(t){return new(t||zi)},zi.\u0275prov=Object(a.vc)({factory:function(){return new zi},token:zi,providedIn:"root"}),zi),ji=((Mi=function(){function t(e){_classCallCheck(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach((function(e,i){return t._cleanupObserver(i)}))}},{key:"observe",value:function(t){var e=this,i=_i(t);return new si.a((function(t){var n=e._observeElement(i).subscribe(t);return function(){n.unsubscribe(),e._unobserveElement(i)}}))}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new Me.a,i=this._mutationObserverFactory.create((function(t){return e.next(t)}));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,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),i=e.observer,n=e.stream;i&&i.disconnect(),n.complete(),this._observedElements.delete(t)}}}]),t}()).\u0275fac=function(t){return new(t||Mi)(a.Oc(Li))},Mi.\u0275prov=Object(a.vc)({factory:function(){return new Mi(Object(a.Oc)(Li))},token:Mi,providedIn:"root"}),Mi),Ni=((Ri=function(){function t(e,i,n){_classCallCheck(this,t),this._contentObserver=e,this._elementRef=i,this._ngZone=n,this.event=new a.t,this._disabled=!1,this._currentSubscription=null}return _createClass(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(Ze(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=mi(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=pi(t),this._subscribe()}}]),t}()).\u0275fac=function(t){return new(t||Ri)(a.zc(ji),a.zc(a.q),a.zc(a.G))},Ri.\u0275dir=a.uc({type:Ri,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Ri),Bi=((Fi=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Fi}),Fi.\u0275inj=a.wc({factory:function(t){return new(t||Fi)},providers:[Li]}),Fi);function Vi(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Ui,Wi,Hi=0,Gi=new Map,qi=null,$i=((Ui=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Gi.set(e,{messageElement:e,referenceCount:0})):Gi.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var i=Gi.get(e);i&&0===i.referenceCount&&this._deleteMessageElement(e)}qi&&0===qi.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==i._activeItemIndex&&(i._activeItemIndex=e)}}))}return _createClass(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(Ge((function(e){return t._pressedLetters.push(e)})),Ze(e),ii((function(){return t._pressedLetters.length>0})),Object(ri.a)((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var i=t._getItemsArray(),n=1;n-1}));switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Ve(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}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(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),i=1;i<=e.length;i++){var n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof a.L?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),Ki=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}(Yi),Xi=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._origin="program",t}return _createClass(i,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}(Yi),Ji=((Wi=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(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,i=function(t){try{return t.frameElement}catch(Sj){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(i){var n=i&&i.nodeName.toLowerCase();if(-1===Qi(i))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(i))return!1}var a=t.nodeName.toLowerCase(),r=Qi(t);if(t.hasAttribute("contenteditable"))return-1!==r;if("iframe"===a)return!1;if("audio"===a){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===a){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==a||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}},{key:"isFocusable",value:function(t){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")||Zi(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}]),t}()).\u0275fac=function(t){return new(t||Wi)(a.Oc(Ei))},Wi.\u0275prov=Object(a.vc)({factory:function(){return new Wi(Object(a.Oc)(Ei))},token:Wi,providedIn:"root"}),Wi);function Zi(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 Qi(t){if(!Zi(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var tn,en=function(){function t(e,i,n,a){var r=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=i,this._ngZone=n,this._document=a,this._hasAttached=!1,this.startAnchorListener=function(){return r.focusLastTabbableElement()},this.endAnchorListener=function(){return r.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(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}},{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,"]")),i=0;i=0;i--){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(n)return n}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(ui(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}(),nn=((tn=function(){function t(e,i,n){_classCallCheck(this,t),this._checker=e,this._ngZone=i,this._document=n}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new en(t,this._checker,this._ngZone,this._document,e)}}]),t}()).\u0275fac=function(t){return new(t||tn)(a.Oc(Ji),a.Oc(a.G),a.Oc(ye.e))},tn.\u0275prov=Object(a.vc)({factory:function(){return new tn(Object(a.Oc)(Ji),Object(a.Oc)(a.G),Object(a.Oc)(ye.e))},token:tn,providedIn:"root"}),tn);"undefined"!=typeof Element&∈var an,rn,on,sn=new a.w("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),cn=new a.w("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),ln=((an=function(){function t(e,i,n,a){_classCallCheck(this,t),this._ngZone=i,this._defaultOptions=a,this._document=n,this._liveElement=e||this._createLiveElement()}return _createClass(t,[{key:"announce",value:function(t){for(var e,i,n,a=this,r=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Be(null);var n=_i(t);if(this._elementInfo.has(n)){var a=this._elementInfo.get(n);return a.checkChildren=i,a.subject.asObservable()}var r={unlisten:function(){},checkChildren:i,subject:new Me.a};this._elementInfo.set(n,r),this._incrementMonitoredElementCount();var o=function(t){return e._onFocus(t,n)},s=function(t){return e._onBlur(t,n)};return this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",o,!0),n.addEventListener("blur",s,!0)})),r.unlisten=function(){n.removeEventListener("focus",o,!0),n.removeEventListener("blur",s,!0)},r.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=_i(t),i=this._elementInfo.get(e);i&&(i.unlisten(),i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}},{key:"focusVia",value:function(t,e,i){var n=_i(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,i){return t.stopMonitoring(i)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,i){i?t.classList.add(e):t.classList.remove(e)}},{key:"_setClasses",value:function(t,e){this._elementInfo.get(t)&&(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=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var i=this._elementInfo.get(e);if(i&&(i.checkChildren||e===t.target)){var n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}}},{key:"_onBlur",value:function(t,e){var i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_incrementMonitoredElementCount",value:function(){var t=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),i=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,dn),e.addEventListener("mousedown",t._documentMousedownListener,dn),e.addEventListener("touchstart",t._documentTouchstartListener,dn),i.addEventListener("focus",t._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){if(!--this._monitoredElementCount){var t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,dn),t.removeEventListener("mousedown",this._documentMousedownListener,dn),t.removeEventListener("touchstart",this._documentTouchstartListener,dn),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}()).\u0275fac=function(t){return new(t||on)(a.Oc(a.G),a.Oc(Ei),a.Oc(ye.e,8),a.Oc(un,8))},on.\u0275prov=Object(a.vc)({factory:function(){return new on(Object(a.Oc)(a.G),Object(a.Oc)(Ei),Object(a.Oc)(ye.e,8),Object(a.Oc)(un,8))},token:on,providedIn:"root"}),on),fn=((rn=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new a.t,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return n.cdkFocusChange.emit(t)}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||rn)(a.zc(a.q),a.zc(hn))},rn.\u0275dir=a.uc({type:rn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),rn);function mn(t){return 0===t.buttons}var pn,gn,vn,bn,_n,yn=((gn=function(){function t(e,i){_classCallCheck(this,t),this._platform=e,this._document=i}return _createClass(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.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){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}()).\u0275fac=function(t){return new(t||gn)(a.Oc(Ei),a.Oc(ye.e))},gn.\u0275prov=Object(a.vc)({factory:function(){return new gn(Object(a.Oc)(Ei),Object(a.Oc)(ye.e))},token:gn,providedIn:"root"}),gn),kn=((pn=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()}).\u0275mod=a.xc({type:pn}),pn.\u0275inj=a.wc({factory:function(t){return new(t||pn)(a.Oc(yn))},imports:[[Oi,Bi]]}),pn),wn=new a.w("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(a.eb)(ye.e)}}),Cn=((_n=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new a.t,e){var i=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||i;this.value="ltr"===n||"rtl"===n?n:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}()).\u0275fac=function(t){return new(t||_n)(a.Oc(wn,8))},_n.\u0275prov=Object(a.vc)({factory:function(){return new _n(Object(a.Oc)(wn,8))},token:_n,providedIn:"root"}),_n),xn=((bn=function(){function t(){_classCallCheck(this,t),this._dir="ltr",this._isInitialized=!1,this.change=new a.t}return _createClass(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,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),t}()).\u0275fac=function(t){return new(t||bn)},bn.\u0275dir=a.uc({type:bn,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.mc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[a.kc([{provide:Cn,useExisting:bn}])]}),bn),Sn=((vn=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:vn}),vn.\u0275inj=a.wc({factory:function(t){return new(t||vn)}}),vn),En=new a.X("9.2.0"),On=i("bHdf");function An(){return Object(On.a)(1)}function Tn(){return An()(Be.apply(void 0,arguments))}function Dn(){for(var t=arguments.length,e=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(t){_inherits(n,t);var i=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var a=arguments.length,r=new Array(a),o=0;o0?i:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),Xn=new a.w("mat-date-formats");try{$n="undefined"!=typeof Intl}catch(Sj){$n=!1}var Jn={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"]},Zn=ea(31,(function(t){return String(t+1)})),Qn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ta=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ea(t,e){for(var i=Array(t),n=0;n11)throw Error('Invalid month index "'.concat(e,'". Month index has to be between 0 and 11.'));if(i<1)throw Error('Invalid date "'.concat(i,'". Date has to be greater than 0.'));var n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error('Invalid date "'.concat(i,'" for month with index "').concat(e,'".'));return n}},{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($n){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 i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,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 i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{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(ta.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return _get(_getPrototypeOf(i.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,i){var n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}},{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 i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}]),i}(Kn)).\u0275fac=function(t){return new(t||na)(a.Oc(Yn,8),a.Oc(Ei))},na.\u0275prov=a.vc({token:na,factory:na.\u0275fac}),na),ca=((ia=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:ia}),ia.\u0275inj=a.wc({factory:function(t){return new(t||ia)},providers:[{provide:Kn,useClass:sa}],imports:[[Oi]]}),ia),la={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"}}},ua=((oa=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:oa}),oa.\u0275inj=a.wc({factory:function(t){return new(t||oa)},providers:[{provide:Xn,useValue:la}],imports:[[ca]]}),oa),da=((ra=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}()).\u0275fac=function(t){return new(t||ra)},ra.\u0275prov=Object(a.vc)({factory:function(){return new ra},token:ra,providedIn:"root"}),ra),ha=((aa=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||aa)},aa.\u0275dir=a.uc({type:aa,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),aa);function fa(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(Dn(t)).subscribe((function(t){var n=t.length;ma(e,"".concat(i,"-2-line"),!1),ma(e,"".concat(i,"-3-line"),!1),ma(e,"".concat(i,"-multi-line"),!1),2===n||3===n?ma(e,"".concat(i,"-").concat(n,"-line"),!0):n>3&&ma(e,"".concat(i,"-multi-line"),!0)}))}function ma(t,e,i){var n=t.nativeElement.classList;i?n.add(e):n.remove(e)}var pa,ga,va,ba,_a,ya,ka,wa=((pa=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:pa}),pa.\u0275inj=a.wc({factory:function(t){return new(t||pa)},imports:[[Bn],Bn]}),pa),Ca=function(){function t(e,i,n){_classCallCheck(this,t),this._renderer=e,this.element=i,this.config=n,this.state=3}return _createClass(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),xa={enterDuration:450,exitDuration:400},Sa=Di({passive:!0}),Ea=function(){function t(e,i,n,a){var r=this;_classCallCheck(this,t),this._target=e,this._ngZone=i,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=function(t){var e=mn(t),i=r._lastTouchStartEvent&&Date.now()2&&void 0!==arguments[2]?arguments[2]:{},a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},xa),n.animation);n.centered&&(t=a.left+a.width/2,e=a.top+a.height/2);var o=n.radius||function(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),a=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+a*a)}(t,e,a),s=t-a.left,c=e-a.top,l=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-o,"px"),u.style.top="".concat(c-o,"px"),u.style.height="".concat(2*o,"px"),u.style.width="".concat(2*o,"px"),null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var d=new Ca(this,u,n);return d.state=0,this._activeRipples.add(d),n.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone((function(){var t=d===i._mostRecentTransientRipple;d.state=1,n.persistent||t&&i._isPointerDown||d.fadeOut()}),l),d}},{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 i=t.element,n=Object.assign(Object.assign({},xa),t.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,i.parentNode.removeChild(i)}),n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))}},{key:"setupTriggerEvents",value:function(t){var e=this,i=_i(t);i&&i!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){e._triggerEvents.forEach((function(t,e){i.addEventListener(e,t,Sa)}))})),this._triggerElement=i)}},{key:"_runTimeoutOutsideZone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&this._triggerEvents.forEach((function(e,i){t._triggerElement.removeEventListener(i,e,Sa)}))}}]),t}(),Oa=new a.w("mat-ripple-global-options"),Aa=((_a=function(){function t(e,i,n,a,r){_classCallCheck(this,t),this._elementRef=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Ea(this,i,e,n),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return _createClass(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,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):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({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||_a)(a.zc(a.q),a.zc(a.G),a.zc(Ei),a.zc(Oa,8),a.zc(Pe,8))},_a.\u0275dir=a.uc({type:_a,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&a.pc("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"]}),_a),Ta=((ba=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:ba}),ba.\u0275inj=a.wc({factory:function(t){return new(t||ba)},imports:[[Bn,Oi],Bn]}),ba),Da=((va=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||va)(a.zc(Pe,8))},va.\u0275cmp=a.tc({type:va,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&a.pc("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}),va),Ia=((ga=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:ga}),ga.\u0275inj=a.wc({factory:function(t){return new(t||ga)}}),ga),Pa=Vn((function t(){_classCallCheck(this,t)})),Fa=0,Ra=((ya=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-".concat(Fa++),t}return i}(Pa)).\u0275fac=function(t){return Ma(t||ya)},ya.\u0275cmp=a.tc({type:ya,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(a.mc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),a.pc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[a.ic],ngContentSelectors:Pn,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(a.bd(In),a.Fc(0,"label",0),a.xd(1),a.ad(2),a.Ec(),a.ad(3,1)),2&t&&(a.cd("id",e._labelId),a.lc(1),a.zd("",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}),ya),Ma=a.Hc(Ra),za=0,La=function t(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=i},ja=new a.w("MAT_OPTION_PARENT_COMPONENT"),Na=((ka=function(){function t(e,i,n,r){_classCallCheck(this,t),this._element=e,this._changeDetectorRef=i,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(za++),this.onSelectionChange=new a.t,this._stateChanges=new Me.a}return _createClass(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 i=this._getHostElement();"function"==typeof i.focus&&i.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||Ve(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 La(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=mi(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}()).\u0275fac=function(t){return new(t||ka)(a.zc(a.q),a.zc(a.j),a.zc(ja,8),a.zc(Ra,8))},ka.\u0275cmp=a.tc({type:ka,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(a.Ic("id",e.id),a.mc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),a.pc("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Mn,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&&(a.bd(),a.vd(0,Fn,1,2,"mat-pseudo-checkbox",0),a.Fc(1,"span",1),a.ad(2),a.Ec(),a.Ac(3,"div",2)),2&t&&(a.cd("ngIf",e.multiple),a.lc(3),a.cd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ye.t,Aa,Da],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}),ka);function Ba(t,e,i){if(i.length){for(var n=e.toArray(),a=i.toArray(),r=0,o=0;oi+n?Math.max(0,a-n+e):i}var Ua,Wa,Ha,Ga,qa=((Ua=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Ua}),Ua.\u0275inj=a.wc({factory:function(t){return new(t||Ua)},imports:[[Ta,ye.c,Ia]]}),Ua),$a=new a.w("mat-label-global-options"),Ya=["mat-button",""],Ka=["*"],Xa=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Ja=Un(Vn(Wn((function t(e){_classCallCheck(this,t),this._elementRef=e})))),Za=((Ga=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;_classCallCheck(this,i),(r=e.call(this,t))._focusMonitor=n,r._animationMode=a,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(Xa);try{for(s.s();!(o=s.n()).done;){var c=o.value;r._hasHostAttributes(c)&&r._getHostElement().classList.add(c)}}catch(l){s.e(l)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),r._focusMonitor.monitor(r._elementRef,!0),r.isRoundButton&&(r.color="accent"),r}return _createClass(i,[{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,i=new Array(e),n=0;n*,.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"],encapsulation:2,changeDetection:0}),Ga),Qa=((Ha=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){return _classCallCheck(this,i),e.call(this,n,t,a)}return _createClass(i,[{key:"_haltDisabledEvents",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}]),i}(Za)).\u0275fac=function(t){return new(t||Ha)(a.zc(hn),a.zc(a.q),a.zc(Pe,8))},Ha.\u0275cmp=a.tc({type:Ha,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&a.Sc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(a.mc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),a.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[a.ic],attrs:Ya,ngContentSelectors:Ka,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(a.bd(),a.Fc(0,"span",0),a.ad(1),a.Ec(),a.Ac(2,"div",1),a.Ac(3,"div",2)),2&t&&(a.lc(2),a.pc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),a.cd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Aa],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .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[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-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[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[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[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"],encapsulation:2,changeDetection:0}),Ha),tr=((Wa=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Wa}),Wa.\u0275inj=a.wc({factory:function(t){return new(t||Wa)},imports:[[Ta,Bn],Bn]}),Wa);function er(t){return t&&"function"==typeof t.connect}var ir,nr=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this._multiple=i,this._emitChanges=a,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Me.a,n&&n.length&&(i?n.forEach((function(t){return e._markSelected(t)})):this._markSelected(n[0]),this._selectedToEmit.length=0)}return _createClass(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n1&&!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}(),ar=((ir=function(){function t(){_classCallCheck(this,t),this._listeners=[]}return _createClass(t,[{key:"notify",value:function(t,e){var i,n=_createForOfIteratorHelper(this._listeners);try{for(n.s();!(i=n.n()).done;)(0,i.value)(t,e)}catch(a){n.e(a)}finally{n.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}()).\u0275fac=function(t){return new(t||ir)},ir.\u0275prov=Object(a.vc)({factory:function(){return new ir},token:ir,providedIn:"root"}),ir),rr=i("DH7j"),or=i("XoHu"),sr=i("Cfvw");function cr(){for(var t=arguments.length,e=new Array(t),i=0;it?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return Dr(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return Dr(t.value)||Fr.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(Dr(e.value))return null;var i=e.value?e.value.length:0;return it?{maxlength:{requiredLength:t,actualLength:i}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),i=new RegExp(n)):(n=e.toString(),i=e),function(t){if(Dr(t.value))return null;var e=t.value;return i.test(e)?null:{pattern:{requiredPattern:n,actualValue:e}}}):t.nullValidator;var i,n}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(Mr);return 0==e.length?null:function(t){return Lr(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(Mr);return 0==e.length?null:function(t){return cr(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(zr)).pipe(Object(ri.a)(Lr))}}}]),t}();function Mr(t){return null!=t}function zr(t){var e=Object(a.Ob)(t)?Object(sr.a)(t):t;if(!Object(a.Nb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Lr(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function jr(t){return t.validate?function(e){return t.validate(e)}:t}function Nr(t){return t.validate?function(e){return t.validate(e)}:t}var Br,Vr,Ur,Wr,Hr={provide:mr,useExisting:Object(a.db)((function(){return Gr})),multi:!0},Gr=((Br=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":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}()).\u0275fac=function(t){return new(t||Br)(a.zc(a.M),a.zc(a.q))},Br.\u0275dir=a.uc({type:Br,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&a.Sc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[a.kc([Hr])]}),Br),qr={provide:mr,useExisting:Object(a.db)((function(){return Yr})),multi:!0},$r=((Ur=function(){function t(){_classCallCheck(this,t),this._accessors=[]}return _createClass(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=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(i){e._isSameGroup(i,t)&&i[1]!==t&&i[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}()).\u0275fac=function(t){return new(t||Ur)},Ur.\u0275prov=a.vc({token:Ur,factory:Ur.\u0275fac}),Ur),Yr=((Vr=function(){function t(e,i,n,a){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this._registry=n,this._injector=a,this.onChange=function(){},this.onTouched=function(){}}return _createClass(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Er),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}()).\u0275fac=function(t){return new(t||Vr)(a.zc(a.M),a.zc(a.q),a.zc($r),a.zc(a.x))},Vr.\u0275dir=a.uc({type:Vr,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&a.Sc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[a.kc([qr])]}),Vr),Kr={provide:mr,useExisting:Object(a.db)((function(){return Xr})),multi:!0},Xr=((Wr=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(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}()).\u0275fac=function(t){return new(t||Wr)(a.zc(a.M),a.zc(a.q))},Wr.\u0275dir=a.uc({type:Wr,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&a.Sc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[a.kc([Kr])]}),Wr),Jr='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Zr='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Qr='\n
\n
\n \n
\n
',to=function(){function t(){_classCallCheck(this,t)}return _createClass(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(Jr))}},{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(Zr,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(Qr))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(Jr))}},{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(Zr))}},{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 \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 Angular v7.\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}(),eo={provide:mr,useExisting:Object(a.db)((function(){return ro})),multi:!0};function io(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var no,ao,ro=((ao=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=a.Pb}return _createClass(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 i=io(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){e.value=e._getOptionValue(i),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,i=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(i){var n=[];if(i.hasOwnProperty("selectedOptions"))for(var a=i.selectedOptions,r=0;r1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(i))}function yo(t){return null!=t?Rr.compose(t.map(jr)):null}function ko(t){return null!=t?Rr.composeAsync(t.map(Nr)):null}function wo(t,e){if(!t.hasOwnProperty("model"))return!1;var i=t.model;return!!i.isFirstChange()||!Object(a.Pb)(e,i.currentValue)}var Co=[gr,Xr,Gr,ro,ho,Yr];function xo(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 So(t,e){if(!e)return null;Array.isArray(e)||_o(t,"Value accessor was not provided as an array for form control with");var i=void 0,n=void 0,a=void 0;return e.forEach((function(e){var r;e.constructor===_r?i=e:(r=e,Co.some((function(t){return r.constructor===t}))?(n&&_o(t,"More than one built-in value accessor matches form control with"),n=e):(a&&_o(t,"More than one custom value accessor matches form control with"),a=e))})),a||n||i||(_o(t,"No valid value accessor for form control with"),null)}function Eo(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}function Oo(t,e,i,n){Object(a.fb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(to.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Ao(t){var e=Do(t)?t.validators:t;return Array.isArray(e)?yo(e):e||null}function To(t,e){var i=Do(e)?e.asyncValidators:t;return Array.isArray(i)?ko(i):i||null}function Do(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Io,Po,Fo,Ro,Mo,zo,Lo,jo,No,Bo=function(){function t(e,i){_classCallCheck(this,t),this.validator=e,this.asyncValidator=i,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(t,[{key:"setValidators",value:function(t){this.validator=Ao(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=To(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 i=zr(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe((function(i){return e.setErrors(i,{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,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var n=t;return e.forEach((function(t){n=n instanceof Uo?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Wo&&n.at(t)||null})),n}(this,t)}},{key:"getError",value:function(t,e){var i=e?this.get(e):this;return i&&i.errors?i.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 a.t,this.statusChanges=new a.t}},{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){Do(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}(),Vo=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(t=e.call(this,Ao(a),To(r,a)))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(a),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _createClass(i,[{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==i.emitViewToModelChange)})),this.updateValueAndValidity(i)}},{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}}]),i}(Bo),Uo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,Ao(n),To(a,n))).controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(i,[{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,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(n){e._throwIfControlMissing(n),e.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){e.controls[n]&&e.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{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(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,i){return t[i]=e instanceof Vo?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(i){return t(e.controls[i],i)}))}},{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){var e=this,i=!1;return this._forEachChild((function(n,a){i=i||e.contains(a)&&t(n)})),i}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},(function(e,i,n){return(i.enabled||t.disabled)&&(e[n]=i.value),e}))}},{key:"_reduceChildren",value:function(t,e){var i=t;return this._forEachChild((function(t,n){i=e(i,t,n)})),i}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))}))}}]),i}(Bo),Wo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,Ao(n),To(a,n))).controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(i,[{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,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,n){e._throwIfControlMissing(n),e.at(n).setValue(t,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,n){e.at(n)&&e.at(n).patchValue(t,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{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(i,n){i.reset(t[n],{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 Vo?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,i){t(e,i)}))}},{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,i){if(void 0===t[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=_createForOfIteratorHelper(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(i){e.e(i)}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}}]),i}(Bo),Ho={provide:kr,useExisting:Object(a.db)((function(){return qo}))},Go=Promise.resolve(null),qo=((Po=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new a.t,r.form=new Uo({},yo(t),ko(n)),r}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;Go.then((function(){var i=e._findContainer(t.path);t.control=i.registerControl(t.name,t.control),po(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;Go.then((function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name),Eo(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;Go.then((function(){var i=e._findContainer(t.path),n=new Uo({});vo(n,t),i.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;Go.then((function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var i=this;Go.then((function(){i.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,xo(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){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}}]),i}(kr)).\u0275fac=function(t){return new(t||Po)(a.zc(Ir,10),a.zc(Pr,10))},Po.\u0275dir=a.uc({type:Po,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&a.Sc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.kc([Ho]),a.ic]}),Po),$o=((Io=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{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 mo(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 yo(this._validators)}},{key:"asyncValidator",get:function(){return ko(this._asyncValidators)}}]),i}(kr)).\u0275fac=function(t){return Yo(t||Io)},Io.\u0275dir=a.uc({type:Io,features:[a.ic]}),Io),Yo=a.Hc($o),Ko=function(){function t(){_classCallCheck(this,t)}return _createClass(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(Jr,'\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 \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(Zr,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(Qr))}},{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(Zr,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(Qr))}}]),t}(),Xo={provide:kr,useExisting:Object(a.db)((function(){return Jo}))},Jo=((Fo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this))._parent=t,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"_checkParentType",value:function(){this._parent instanceof i||this._parent instanceof qo||Ko.modelGroupParentException()}}]),i}($o)).\u0275fac=function(t){return new(t||Fo)(a.zc(kr,5),a.zc(Ir,10),a.zc(Pr,10))},Fo.\u0275dir=a.uc({type:Fo,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a.kc([Xo]),a.ic]}),Fo),Zo={provide:Er,useExisting:Object(a.db)((function(){return ts}))},Qo=Promise.resolve(null),ts=((Mo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;return _classCallCheck(this,i),(s=e.call(this)).control=new Vo,s._registered=!1,s.update=new a.t,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=So(_assertThisInitialized(s),o),s}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),wo(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(){po(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 Jo)&&this._parent instanceof $o?Ko.formGroupNameException():this._parent instanceof Jo||this._parent instanceof qo||Ko.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ko.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;Qo.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,i=t.isDisabled.currentValue,n=""===i||i&&"false"!==i;Qo.then((function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?mo(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}}]),i}(Er)).\u0275fac=function(t){return new(t||Mo)(a.zc(kr,9),a.zc(Ir,10),a.zc(Pr,10),a.zc(mr,10))},Mo.\u0275dir=a.uc({type:Mo,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a.kc([Zo]),a.ic,a.jc]}),Mo),es=((Ro=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ro)},Ro.\u0275dir=a.uc({type:Ro,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ro),is=new a.w("NgModelWithFormControlWarning"),ns={provide:Er,useExisting:Object(a.db)((function(){return as}))},as=((zo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;return _classCallCheck(this,i),(s=e.call(this))._ngModelWarningConfig=o,s.update=new a.t,s._ngModelWarningSent=!1,s._rawValidators=t||[],s._rawAsyncValidators=n||[],s.valueAccessor=So(_assertThisInitialized(s),r),s}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(po(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),wo(t,this.viewModel)&&(Oo("formControl",i,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){to.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),i}(Er)).\u0275fac=function(t){return new(t||zo)(a.zc(Ir,10),a.zc(Pr,10),a.zc(mr,10),a.zc(is,8))},zo.\u0275dir=a.uc({type:zo,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.kc([ns]),a.ic,a.jc]}),zo._ngModelWarningSentOnce=!1,zo),rs={provide:kr,useExisting:Object(a.db)((function(){return os}))},os=((Lo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new a.t,r}return _createClass(i,[{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 po(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){Eo(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);vo(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);vo(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,xo(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var i=t.form.get(e.path);e.control!==i&&(function(t,e){e.valueAccessor.registerOnChange((function(){return bo(e)})),e.valueAccessor.registerOnTouched((function(){return bo(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),i&&po(i,e),e.control=i)})),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=yo(this._validators);this.form.validator=Rr.compose([this.form.validator,t]);var e=ko(this._asyncValidators);this.form.asyncValidator=Rr.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||to.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),i}(kr)).\u0275fac=function(t){return new(t||Lo)(a.zc(Ir,10),a.zc(Pr,10))},Lo.\u0275dir=a.uc({type:Lo,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&a.Sc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.kc([rs]),a.ic,a.jc]}),Lo),ss={provide:kr,useExisting:Object(a.db)((function(){return cs}))},cs=((jo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this))._parent=t,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"_checkParentType",value:function(){ds(this._parent)&&to.groupParentException()}}]),i}($o)).\u0275fac=function(t){return new(t||jo)(a.zc(kr,13),a.zc(Ir,10),a.zc(Pr,10))},jo.\u0275dir=a.uc({type:jo,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a.kc([ss]),a.ic]}),jo),ls={provide:kr,useExisting:Object(a.db)((function(){return us}))},us=((No=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this))._parent=t,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){ds(this._parent)&&to.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 mo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return yo(this._validators)}},{key:"asyncValidator",get:function(){return ko(this._asyncValidators)}}]),i}(kr)).\u0275fac=function(t){return new(t||No)(a.zc(kr,13),a.zc(Ir,10),a.zc(Pr,10))},No.\u0275dir=a.uc({type:No,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a.kc([ls]),a.ic]}),No);function ds(t){return!(t instanceof cs||t instanceof os||t instanceof us)}var hs,fs,ms,ps,gs,vs,bs,_s,ys,ks,ws,Cs,xs,Ss,Es,Os,As,Ts,Ds,Is,Ps,Fs,Rs,Ms,zs,Ls,js,Ns,Bs,Vs,Us,Ws,Hs,Gs={provide:Er,useExisting:Object(a.db)((function(){return qs}))},qs=((hs=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s){var c;return _classCallCheck(this,i),(c=e.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new a.t,c._ngModelWarningSent=!1,c._parent=t,c._rawValidators=n||[],c._rawAsyncValidators=r||[],c.valueAccessor=So(_assertThisInitialized(c),o),c}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),wo(t,this.viewModel)&&(Oo("formControlName",i,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 cs)&&this._parent instanceof $o?to.ngModelGroupException():this._parent instanceof cs||this._parent instanceof os||this._parent instanceof us||to.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){to.disabledAttrWarning()}},{key:"path",get:function(){return mo(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 yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}}]),i}(Er)).\u0275fac=function(t){return new(t||hs)(a.zc(kr,13),a.zc(Ir,10),a.zc(Pr,10),a.zc(mr,10),a.zc(is,8))},hs.\u0275dir=a.uc({type:hs,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.kc([Gs]),a.ic,a.jc]}),hs._ngModelWarningSentOnce=!1,hs),$s={provide:Ir,useExisting:Object(a.db)((function(){return Ks})),multi:!0},Ys={provide:Ir,useExisting:Object(a.db)((function(){return Xs})),multi:!0},Ks=((ms=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this.required?Rr.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}()).\u0275fac=function(t){return new(t||ms)},ms.\u0275dir=a.uc({type:ms,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&a.mc("required",e.required?"":null)},inputs:{required:"required"},features:[a.kc([$s])]}),ms),Xs=((fs=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"validate",value:function(t){return this.required?Rr.requiredTrue(t):null}}]),i}(Ks)).\u0275fac=function(t){return Js(t||fs)},fs.\u0275dir=a.uc({type:fs,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.mc("required",e.required?"":null)},features:[a.kc([Ys]),a.ic]}),fs),Js=a.Hc(Xs),Zs={provide:Ir,useExisting:Object(a.db)((function(){return Qs})),multi:!0},Qs=((ps=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this._enabled?Rr.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}()).\u0275fac=function(t){return new(t||ps)},ps.\u0275dir=a.uc({type:ps,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a.kc([Zs])]}),ps),tc={provide:Ir,useExisting:Object(a.db)((function(){return ec})),multi:!0},ec=((gs=function(){function t(){_classCallCheck(this,t)}return _createClass(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=Rr.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}()).\u0275fac=function(t){return new(t||gs)},gs.\u0275dir=a.uc({type:gs,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.mc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[a.kc([tc]),a.jc]}),gs),ic={provide:Ir,useExisting:Object(a.db)((function(){return nc})),multi:!0},nc=((vs=function(){function t(){_classCallCheck(this,t)}return _createClass(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=Rr.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}()).\u0275fac=function(t){return new(t||vs)},vs.\u0275dir=a.uc({type:vs,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.mc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a.kc([ic]),a.jc]}),vs),ac={provide:Ir,useExisting:Object(a.db)((function(){return rc})),multi:!0},rc=((ws=function(){function t(){_classCallCheck(this,t)}return _createClass(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=Rr.pattern(this.pattern)}}]),t}()).\u0275fac=function(t){return new(t||ws)},ws.\u0275dir=a.uc({type:ws,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.mc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[a.kc([ac]),a.jc]}),ws),oc=((ks=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:ks}),ks.\u0275inj=a.wc({factory:function(t){return new(t||ks)}}),ks),sc=((ys=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(t),n=null,a=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,a=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,a=null!=e.asyncValidator?e.asyncValidator:null)),new Uo(i,{asyncValidators:a,updateOn:r,validators:n})}},{key:"control",value:function(t,e,i){return new Vo(t,e,i)}},{key:"array",value:function(t,e,i){var n=this,a=t.map((function(t){return n._createControl(t)}));return new Wo(a,e,i)}},{key:"_reduceControls",value:function(t){var e=this,i={};return Object.keys(t).forEach((function(n){i[n]=e._createControl(t[n])})),i}},{key:"_createControl",value:function(t){return t instanceof Vo||t instanceof Uo||t instanceof Wo?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}()).\u0275fac=function(t){return new(t||ys)},ys.\u0275prov=a.vc({token:ys,factory:ys.\u0275fac}),ys),cc=((_s=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:_s}),_s.\u0275inj=a.wc({factory:function(t){return new(t||_s)},providers:[$r],imports:[oc]}),_s),lc=((bs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:is,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}()).\u0275mod=a.xc({type:bs}),bs.\u0275inj=a.wc({factory:function(t){return new(t||bs)},providers:[sc,$r],imports:[oc]}),bs),uc=["button"],dc=["*"],hc=new a.w("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),fc={provide:mr,useExisting:Object(a.db)((function(){return vc})),multi:!0},mc=function t(){_classCallCheck(this,t)},pc=0,gc=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},vc=((Cs=function(){function t(e,i){_classCallCheck(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(pc++),this.valueChange=new a.t,this.change=new a.t,this.appearance=i&&i.appearance?i.appearance:"standard"}return _createClass(t,[{key:"ngOnInit",value:function(){this._selectionModel=new nr(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var t;(t=this._selectionModel).select.apply(t,_toConsumableArray(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,i=new gc(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}},{key:"_syncButtonToggle",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=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):a=!0,a?Promise.resolve((function(){return i._updateModelValue(n)})):this._updateModelValue(n)}},{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=mi(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=mi(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mi(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))}}]),t}()).\u0275fac=function(t){return new(t||Cs)(a.zc(a.j),a.zc(hc,8))},Cs.\u0275dir=a.uc({type:Cs,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&a.rc(i,_c,!0),2&t&&a.id(n=a.Tc())&&(e._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(a.mc("aria-disabled",e.disabled),a.pc("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:[a.kc([fc,{provide:mc,useExisting:Cs}])]}),Cs),bc=Wn((function t(){_classCallCheck(this,t)})),_c=((Ss=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c){var l;_classCallCheck(this,i),(l=e.call(this))._changeDetectorRef=n,l._elementRef=r,l._focusMonitor=o,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new a.t;var u=Number(s);return l.tabIndex=u||0===u?u:null,l.buttonToggleGroup=t,l.appearance=c&&c.appearance?c.appearance:"standard",l}return _createClass(i,[{key:"ngOnInit",value:function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-".concat(pc++),this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),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 gc(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=mi(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=mi(t)}}]),i}(bc)).\u0275fac=function(t){return new(t||Ss)(a.zc(vc,8),a.zc(a.j),a.zc(a.q),a.zc(hn),a.Pc("tabindex"),a.zc(hc,8))},Ss.\u0275cmp=a.tc({type:Ss,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&a.Bd(uc,!0),2&t&&a.id(i=a.Tc())&&(e._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&a.Sc("focus",(function(){return e.focus()})),2&t&&(a.mc("tabindex",-1)("id",e.id)("name",null),a.pc("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:[a.ic],ngContentSelectors:dc,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&&(a.bd(),a.Fc(0,"button",0,1),a.Sc("click",(function(){return e._onButtonClick()})),a.Fc(2,"div",2),a.ad(3),a.Ec(),a.Ec(),a.Ac(4,"div",3),a.Ac(5,"div",4)),2&t){var i=a.jd(1);a.cd("id",e.buttonId)("disabled",e.disabled||null),a.mc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),a.lc(5),a.cd("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[Aa],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{line-height:48px;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 48px}.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}),Ss),yc=((xs=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:xs}),xs.\u0275inj=a.wc({factory:function(t){return new(t||xs)},imports:[[Bn,Ta],Bn]}),xs),kc=["*",[["mat-card-footer"]]],wc=["*","mat-card-footer"],Cc=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],xc=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Sc=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Ec=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],Oc=((Bs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Bs)},Bs.\u0275dir=a.uc({type:Bs,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Bs),Ac=((Ns=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ns)},Ns.\u0275dir=a.uc({type:Ns,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Ns),Tc=((js=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||js)},js.\u0275dir=a.uc({type:js,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),js),Dc=((Ls=function t(){_classCallCheck(this,t),this.align="start"}).\u0275fac=function(t){return new(t||Ls)},Ls.\u0275dir=a.uc({type:Ls,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&a.pc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Ls),Ic=((zs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||zs)},zs.\u0275dir=a.uc({type:zs,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),zs),Pc=((Ms=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ms)},Ms.\u0275dir=a.uc({type:Ms,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Ms),Fc=((Rs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Rs)},Rs.\u0275dir=a.uc({type:Rs,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Rs),Rc=((Fs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Fs)},Fs.\u0275dir=a.uc({type:Fs,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Fs),Mc=((Ps=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ps)},Ps.\u0275dir=a.uc({type:Ps,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),Ps),zc=((Is=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Is)},Is.\u0275dir=a.uc({type:Is,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),Is),Lc=((Ds=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ds)},Ds.\u0275dir=a.uc({type:Ds,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),Ds),jc=((Ts=function t(e){_classCallCheck(this,t),this._animationMode=e}).\u0275fac=function(t){return new(t||Ts)(a.zc(Pe,8))},Ts.\u0275cmp=a.tc({type:Ts,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&a.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:wc,decls:2,vars:0,template:function(t,e){1&t&&(a.bd(kc),a.ad(0),a.ad(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),Ts),Nc=((As=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||As)},As.\u0275cmp=a.tc({type:As,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:xc,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(a.bd(Cc),a.ad(0),a.Fc(1,"div",0),a.ad(2,1),a.Ec(),a.ad(3,2))},encapsulation:2,changeDetection:0}),As),Bc=((Os=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Os)},Os.\u0275cmp=a.tc({type:Os,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:Ec,decls:4,vars:0,template:function(t,e){1&t&&(a.bd(Sc),a.Fc(0,"div"),a.ad(1),a.Ec(),a.ad(2,1),a.ad(3,2))},encapsulation:2,changeDetection:0}),Os),Vc=((Es=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Es}),Es.\u0275inj=a.wc({factory:function(t){return new(t||Es)},imports:[[Bn],Bn]}),Es),Uc=["input"],Wc=function(){return{enterDuration:150}},Hc=["*"],Gc=new a.w("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),qc=new a.w("mat-checkbox-click-action"),$c=0,Yc={provide:mr,useExisting:Object(a.db)((function(){return Jc})),multi:!0},Kc=function t(){_classCallCheck(this,t)},Xc=Hn(Un(Wn(Vn((function t(e){_classCallCheck(this,t),this._elementRef=e}))))),Jc=((Vs=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=e.call(this,t))._changeDetectorRef=n,d._focusMonitor=r,d._ngZone=o,d._clickAction=c,d._animationMode=l,d._options=u,d.ariaLabel="",d.ariaLabelledby=null,d._uniqueId="mat-checkbox-".concat(++$c),d.id=d._uniqueId,d.labelPosition="after",d.name=null,d.change=new a.t,d.indeterminateChange=new a.t,d._onTouched=function(){},d._currentAnimationClass="",d._currentCheckState=0,d._controlValueAccessorChangeFn=function(){},d._checked=!1,d._disabled=!1,d._indeterminate=!1,d._options=d._options||{},d._options.color&&(d.color=d._options.color),d.tabIndex=parseInt(s)||0,d._focusMonitor.monitor(t,!0).subscribe((function(t){t||Promise.resolve().then((function(){d._onTouched(),n.markForCheck()}))})),d._clickAction=d._clickAction||d._options.clickAction,d}return _createClass(i,[{key:"ngAfterViewInit",value:function(){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,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){i.classList.remove(n)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var t=new Kc;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 i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(i)}},{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=mi(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=mi(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=mi(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),i}(Xc)).\u0275fac=function(t){return new(t||Vs)(a.zc(a.q),a.zc(a.j),a.zc(hn),a.zc(a.G),a.Pc("tabindex"),a.zc(qc,8),a.zc(Pe,8),a.zc(Gc,8))},Vs.\u0275cmp=a.tc({type:Vs,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(a.Bd(Uc,!0),a.Bd(Aa,!0)),2&t&&(a.id(i=a.Tc())&&(e._inputElement=i.first),a.id(i=a.Tc())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(a.Ic("id",e.id),a.mc("tabindex",null),a.pc("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",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a.kc([Yc]),a.ic],ngContentSelectors:Hc,decls:17,vars:19,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&&(a.bd(),a.Fc(0,"label",0,1),a.Fc(2,"div",2),a.Fc(3,"input",3,4),a.Sc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),a.Ec(),a.Fc(5,"div",5),a.Ac(6,"div",6),a.Ec(),a.Ac(7,"div",7),a.Fc(8,"div",8),a.Vc(),a.Fc(9,"svg",9),a.Ac(10,"path",10),a.Ec(),a.Uc(),a.Ac(11,"div",11),a.Ec(),a.Ec(),a.Fc(12,"span",12,13),a.Sc("cdkObserveContent",(function(){return e._onLabelTextChange()})),a.Fc(14,"span",14),a.xd(15,"\xa0"),a.Ec(),a.ad(16),a.Ec(),a.Ec()),2&t){var i=a.jd(1),n=a.jd(13);a.mc("for",e.inputId),a.lc(2),a.pc("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),a.lc(1),a.cd("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),a.mc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),a.lc(2),a.cd("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.ed(18,Wc))}},directives:[Aa,Ni],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}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .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}),Vs),Zc={provide:Ir,useExisting:Object(a.db)((function(){return Qc})),multi:!0},Qc=((Us=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Xs)).\u0275fac=function(t){return tl(t||Us)},Us.\u0275dir=a.uc({type:Us,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[a.kc([Zc]),a.ic]}),Us),tl=a.Hc(Qc),el=((Hs=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Hs}),Hs.\u0275inj=a.wc({factory:function(t){return new(t||Hs)}}),Hs),il=((Ws=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Ws}),Ws.\u0275inj=a.wc({factory:function(t){return new(t||Ws)},imports:[[Ta,Bn,Bi,el],Bn,el]}),Ws);function nl(t){return new si.a((function(e){var i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(sr.a)(i):li()).subscribe(e)}))}var al=i("VRyK");function rl(t,e,i,n){return Object(He.a)(i)&&(n=i,i=void 0),n?rl(t,e,i).pipe(Object(ri.a)((function(t){return Object(rr.a)(t)?n.apply(void 0,_toConsumableArray(t)):n(t)}))):new si.a((function(n){!function t(e,i,n,a,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(i,n,r),o=function(){return s.removeEventListener(i,n,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(i,n),o=function(){return c.off(i,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(i,n),o=function(){return l.removeListener(i,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,d=e.length;u1?Array.prototype.slice.call(arguments):t)}),n,i)}))}var ol=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).scheduler=t,a.work=n,a}return _createClass(i,[{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),i}(Ye),sl=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,a=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=hl(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,t,e,n);0===t.actions.length&&(fl(e),t.scheduled=void 0)}}]),i}(Ye),pl=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,a=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n=0}function xl(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=-1;return Cl(e)?n=Number(e)<1?1:Number(e):Object(Le.a)(e)&&(i=e),Object(Le.a)(i)||(i=Je),new si.a((function(e){var a=Cl(t)?t:+t-i.now();return i.schedule(Sl,a,{index:0,period:n,subscriber:e})}))}function Sl(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function El(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je;return e=function(){return xl(t,i)},function(t){return t.lift(new kl(e))}}function Ol(t){return function(e){return e.lift(new Al(t))}}var Al=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var i=new Tl(t),n=Object(yl.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}]),t}(),Tl=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t)).seenValue=!1,n}return _createClass(i,[{key:"notifyNext",value:function(t,e,i,n,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),i}(_l.a),Dl=i("51Dv");function Il(t,e){return"function"==typeof e?function(i){return i.pipe(Il((function(i,n){return Object(sr.a)(t(i,n)).pipe(Object(ri.a)((function(t,a){return e(i,t,n,a)})))})))}:function(e){return e.lift(new Pl(t))}}var Pl=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Fl(t,this.project))}}]),t}(),Fl=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).project=n,a.index=0,a}return _createClass(i,[{key:"_next",value:function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}},{key:"_innerSub",value:function(t,e,i){var n=this.innerSubscription;n&&n.unsubscribe();var a=new Dl.a(this,e,i),r=this.destination;r.add(a),this.innerSubscription=Object(yl.a)(this,t,void 0,void 0,a),this.innerSubscription!==a&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(i.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(i.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,i,n,a){this.destination.next(e)}}]),i}(_l.a),Rl=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).scheduler=t,a.work=n,a}return _createClass(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>0?_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?_get(_getPrototypeOf(i.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0||null===n&&this.delay>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):t.flush(this)}}]),i}(Ye),Ml=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Xe))(Rl);function zl(t,e){return new si.a(e?function(i){return e.schedule(Ll,0,{error:t,subscriber:i})}:function(e){return e.error(t)})}function Ll(t){var e=t.error;t.subscriber.error(e)}var jl,Nl,Bl,Vl,Ul,Wl=((jl=function(){function t(e,i,n){_classCallCheck(this,t),this.kind=e,this.value=i,this.error=n,this.hasValue="N"===e}return _createClass(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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}},{key:"accept",value:function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Be(this.value);case"E":return zl(this.error);case"C":return li()}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}()).completeNotification=new jl("C"),jl.undefinedValueNotification=new jl("N",void 0),jl),Hl=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,i),(a=e.call(this,t)).scheduler=n,a.delay=r,a}return _createClass(i,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new Gl(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(Wl.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(Wl.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Wl.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,i=t.destination;e.observe(i),this.unsubscribe()}}]),i}(Ue.a),Gl=function t(e,i){_classCallCheck(this,t),this.notification=e,this.destination=i},ql=i("9ppp"),$l=i("Ylt2"),Yl=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(t=e.call(this)).scheduler=r,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _createClass(i,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new Kl(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,r=n.length;if(this.closed)throw new ql.a;if(this.isStopped||this.hasError?e=ze.a.EMPTY:(this.observers.push(t),e=new $l.a(this,t)),a&&t.add(t=new Hl(t,a)),i)for(var o=0;oe&&(r=Math.max(r,a-e)),r>0&&n.splice(0,r),n}}]),i}(Me.a),Kl=function t(e,i){_classCallCheck(this,t),this.time=e,this.value=i},Xl=((Ul=function(){function t(e,i,n){_classCallCheck(this,t),this._ngZone=e,this._platform=i,this._scrolled=new Me.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return _createClass(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 si.a((function(i){t._globalSubscription||t._addGlobalListener();var n=e>0?t._scrolled.pipe(El(e)).subscribe(i):t._scrolled.subscribe(i);return t._scrolledCount++,function(){n.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Be()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,i){return t.deregister(i)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(ii((function(t){return!t||i.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,i=[];return this.scrollContainers.forEach((function(n,a){e._scrollableContainsElement(a,t)&&i.push(a)})),i}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return rl(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||Ul)(a.Oc(a.G),a.Oc(Ei),a.Oc(ye.e,8))},Ul.\u0275prov=Object(a.vc)({factory:function(){return new Ul(Object(a.Oc)(a.G),Object(a.Oc)(Ei),Object(a.Oc)(ye.e,8))},token:Ul,providedIn:"root"}),Ul),Jl=((Vl=function(){function t(e,i,n,a){var r=this;_classCallCheck(this,t),this.elementRef=e,this.scrollDispatcher=i,this.ngZone=n,this.dir=a,this._destroyed=new Me.a,this._elementScrolled=new si.a((function(t){return r.ngZone.runOutsideAngular((function(){return rl(r.elementRef.nativeElement,"scroll").pipe(Ol(r._destroyed)).subscribe(t)}))}))}return _createClass(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,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Ii()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Ii()?t.left=t.right:1==Ii()&&(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 i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Ii()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Ii()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||Vl)(a.zc(a.q),a.zc(Xl),a.zc(a.G),a.zc(Cn,8))},Vl.\u0275dir=a.uc({type:Vl,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Vl),Zl=((Bl=function(){function t(e,i,n){var a=this;_classCallCheck(this,t),this._platform=e,this._document=n,i.runOutsideAngular((function(){var t=a._getWindow();a._change=e.isBrowser?Object(al.a)(rl(t,"resize"),rl(t,"orientationchange")):Be(),a._invalidateCache=a.change().subscribe((function(){return a._updateViewportSize()}))}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{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(),i=e.width,n=e.height;return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(El(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}()).\u0275fac=function(t){return new(t||Bl)(a.Oc(Ei),a.Oc(a.G),a.Oc(ye.e,8))},Bl.\u0275prov=Object(a.vc)({factory:function(){return new Bl(Object(a.Oc)(Ei),Object(a.Oc)(a.G),Object(a.Oc)(ye.e,8))},token:Bl,providedIn:"root"}),Bl),Ql=((Nl=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Nl}),Nl.\u0275inj=a.wc({factory:function(t){return new(t||Nl)},imports:[[Sn,Oi],Sn]}),Nl);function tu(){throw Error("Host already has a portal attached")}var eu,iu,nu,au,ru=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&tu(),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}(),ou=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this)).component=t,o.viewContainerRef=n,o.injector=a,o.componentFactoryResolver=r,o}return i}(ru),su=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this)).templateRef=t,r.viewContainerRef=n,r.context=a,r}return _createClass(i,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,_get(_getPrototypeOf(i.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(i.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),i}(ru),cu=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).element=t instanceof a.q?t.nativeElement:t,n}return i}(ru),lu=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(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()&&tu(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof ou?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof su?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof cu?(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}(),uu=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this)).outletElement=t,s._componentFactoryResolver=n,s._appRef=a,s._defaultInjector=r,s.attachDomPortal=function(t){if(!s._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 n=s._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),s.outletElement.appendChild(e),_get(_getPrototypeOf(i.prototype),"setDisposeFn",_assertThisInitialized(s)).call(_assertThisInitialized(s),(function(){n.parentNode&&n.parentNode.replaceChild(e,n)}))},s._document=o,s}return _createClass(i,[{key:"attachComponentPortal",value:function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){i._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=i.indexOf(n);-1!==t&&i.remove(t)})),n}},{key:"dispose",value:function(){_get(_getPrototypeOf(i.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]}}]),i}(lu),du=((nu=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this,t,n)}return i}(su)).\u0275fac=function(t){return new(t||nu)(a.zc(a.V),a.zc(a.Y))},nu.\u0275dir=a.uc({type:nu,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[a.ic]}),nu),hu=((iu=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._componentFactoryResolver=t,o._viewContainerRef=n,o._isInitialized=!1,o.attached=new a.t,o.attachDomPortal=function(t){if(!o._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 n=o._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(o)),e.parentNode.insertBefore(n,e),o._getRootNode().appendChild(e),_get(_getPrototypeOf(i.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){n.parentNode&&n.parentNode.replaceChild(e,n)}))},o._document=r,o}return _createClass(i,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.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,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}},{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()&&_get(_getPrototypeOf(i.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(i.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),i}(lu)).\u0275fac=function(t){return new(t||iu)(a.zc(a.n),a.zc(a.Y),a.zc(ye.e))},iu.\u0275dir=a.uc({type:iu,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.ic]}),iu),fu=((eu=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(hu)).\u0275fac=function(t){return mu(t||eu)},eu.\u0275dir=a.uc({type:eu,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[a.kc([{provide:hu,useExisting:eu}]),a.ic]}),eu),mu=a.Hc(fu),pu=((au=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:au}),au.\u0275inj=a.wc({factory:function(t){return new(t||au)}}),au),gu=function(){function t(e,i){_classCallCheck(this,t),this._parentInjector=e,this._customTokens=i}return _createClass(t,[{key:"get",value:function(t,e){var i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}]),t}(),vu=function(){function t(e,i){_classCallCheck(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}return _createClass(t,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=bi(-this._previousScrollPosition.left),t.style.top=bi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",a=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=a}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}]),t}();function bu(){return Error("Scroll strategy has already been attached.")}var _u=function(){function t(e,i,n,a){var r=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=a,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw bu();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}(),yu=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function ku(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function wu(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var Cu,xu=function(){function t(e,i,n,a){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=a,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw bu();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(),i=t._viewportRuler.getViewportSize(),n=i.width,a=i.height;ku(e,[{width:n,height:a,bottom:a,right:n,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}(),Su=((Cu=function t(e,i,n,a){var r=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new yu},this.close=function(t){return new _u(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new vu(r._viewportRuler,r._document)},this.reposition=function(t){return new xu(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=a}).\u0275fac=function(t){return new(t||Cu)(a.Oc(Xl),a.Oc(Zl),a.Oc(a.G),a.Oc(ye.e))},Cu.\u0275prov=Object(a.vc)({factory:function(){return new Cu(Object(a.Oc)(Xl),Object(a.Oc)(Zl),Object(a.Oc)(a.G),Object(a.Oc)(ye.e))},token:Cu,providedIn:"root"}),Cu),Eu=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new yu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var i=0,n=Object.keys(e);i-1;n--)if(e[n]._keydownEventSubscriptions>0){e[n]._keydownEvents.next(t);break}},this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),t}()).\u0275fac=function(t){return new(t||Iu)(a.Oc(ye.e))},Iu.\u0275prov=Object(a.vc)({factory:function(){return new Iu(Object(a.Oc)(ye.e))},token:Iu,providedIn:"root"}),Iu),Ru=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Mu=((Pu=function(){function t(e,i){_classCallCheck(this,t),this._platform=i,this._document=e}return _createClass(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||Ru)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),i=0;if&&(f=g,h=p)}}catch(v){m.e(v)}finally{m.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.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&&Nu(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 i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i="start"==e.originX?n:a}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,i){var n,a;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,a="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+a}}},{key:"_getOverlayFit",value:function(t,e,i,n){var a=t.x,r=t.y,o=this._getOffset(n,"x"),s=this._getOffset(n,"y");o&&(a+=o),s&&(r+=s);var c=0-r,l=r+e.height-i.height,u=this._subtractOverflows(e.width,0-a,a+e.width-i.width),d=this._subtractOverflows(e.height,c,l),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:e.width*e.height===h,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:u==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,a=i.right-e.x,r=Bu(this._overlayRef.getConfig().minHeight),o=Bu(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=o&&o<=a;return(t.fitsInViewportVertically||null!=r&&r<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,a,r=this._viewportRect,o=Math.max(t.x+e.width-r.right,0),s=Math.max(t.y+e.height-r.bottom,0),c=Math.max(r.top-i.top-t.y,0),l=Math.max(r.left-i.left-t.x,0);return n=e.width<=r.width?l||-o:t.xd&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-d/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)s=c.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)o=t.x,r=c.right-t.x;else{var h=Math.min(c.right-t.x+c.left,t.x),f=this._lastBoundingBoxSize.width;r=2*h,o=t.x-h,r>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/2)}return{top:n,left:o,bottom:a,right:s,width:r,height:i}}},{key:"_setBoundingBoxStyles",value:function(t,e){var i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=bi(i.height),n.top=bi(i.top),n.bottom=bi(i.bottom),n.width=bi(i.width),n.left=bi(i.left),n.right=bi(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",a&&(n.maxHeight=bi(a)),r&&(n.maxWidth=bi(r))}this._lastBoundingBoxSize=i,Nu(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){Nu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Nu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var i={},n=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){var o=this._viewportRuler.getViewportScrollPosition();Nu(i,this._getExactOverlayY(e,t,o)),Nu(i,this._getExactOverlayX(e,t,o))}else i.position="static";var s="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(s+="translateX(".concat(c,"px) ")),l&&(s+="translateY(".concat(l,"px)")),i.transform=s.trim(),r.maxHeight&&(n?i.maxHeight=bi(r.maxHeight):a&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=bi(r.maxWidth):a&&(i.maxWidth="")),Nu(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,e,i){var n={top:"",bottom:""},a=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i));var r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=r,"bottom"===t.overlayY?n.bottom="".concat(this._document.documentElement.clientHeight-(a.y+this._overlayRect.height),"px"):n.top=bi(a.y),n}},{key:"_getExactOverlayX",value:function(t,e,i){var n={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right="".concat(this._document.documentElement.clientWidth-(a.x+this._overlayRect.width),"px"):n.left=bi(a.x),n}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:wu(t,i),isOriginOutsideView:ku(t,i),isOverlayClipped:wu(e,i),isOverlayOutsideView:ku(e,i)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&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,i=this._overlayRef.getConfig(),n=i.width,a=i.height,r=i.maxWidth,o=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==a&&"100vh"!==a||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"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=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),Yu=((Uu=function(){function t(e,i,n,a){_classCallCheck(this,t),this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=a}return _createClass(t,[{key:"global",value:function(){return new $u}},{key:"connectedTo",value:function(t,e,i){return new qu(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new ju(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||Uu)(a.Oc(Zl),a.Oc(ye.e),a.Oc(Ei),a.Oc(Mu))},Uu.\u0275prov=Object(a.vc)({factory:function(){return new Uu(Object(a.Oc)(Zl),Object(a.Oc)(ye.e),Object(a.Oc)(Ei),Object(a.Oc)(Mu))},token:Uu,providedIn:"root"}),Uu),Ku=0,Xu=((Vu=function(){function t(e,i,n,a,r,o,s,c,l,u){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=a,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=c,this._directionality=l,this._location=u}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),a=new Eu(t);return a.direction=a.direction||this._directionality.value,new zu(n,e,i,a,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(Ku++),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(a.g)),new uu(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}()).\u0275fac=function(t){return new(t||Vu)(a.Oc(Su),a.Oc(Mu),a.Oc(a.n),a.Oc(Yu),a.Oc(Fu),a.Oc(a.x),a.Oc(a.G),a.Oc(ye.e),a.Oc(Cn),a.Oc(ye.n,8))},Vu.\u0275prov=a.vc({token:Vu,factory:Vu.\u0275fac}),Vu),Ju=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Zu=new a.w("cdk-connected-overlay-scroll-strategy"),Qu=((Hu=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||Hu)(a.zc(a.q))},Hu.\u0275dir=a.uc({type:Hu,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Hu),td=((Wu=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ze.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new a.t,this.positionChange=new a.t,this.attach=new a.t,this.detach=new a.t,this.overlayKeydown=new a.t,this._templatePortal=new su(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{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=Ju),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||Ve(e)||(e.preventDefault(),t._detachOverlay())}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Eu({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,i=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(i).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,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e}},{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.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.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=mi(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=mi(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=mi(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=mi(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=mi(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}()).\u0275fac=function(t){return new(t||Wu)(a.zc(Xu),a.zc(a.V),a.zc(a.Y),a.zc(Zu),a.zc(Cn,8))},Wu.\u0275dir=a.uc({type:Wu,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"},exportAs:["cdkConnectedOverlay"],features:[a.jc]}),Wu),ed={provide:Zu,deps:[Xu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},id=((Gu=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Gu}),Gu.\u0275inj=a.wc({factory:function(t){return new(t||Gu)},providers:[Xu,ed],imports:[[Sn,pu,Ql],Ql]}),Gu),nd=["underline"],ad=["connectionContainer"],rd=["inputContainer"],od=["label"];function sd(t,e){1&t&&(a.Dc(0),a.Fc(1,"div",14),a.Ac(2,"div",15),a.Ac(3,"div",16),a.Ac(4,"div",17),a.Ec(),a.Fc(5,"div",18),a.Ac(6,"div",15),a.Ac(7,"div",16),a.Ac(8,"div",17),a.Ec(),a.Cc())}function cd(t,e){1&t&&(a.Fc(0,"div",19),a.ad(1,1),a.Ec())}function ld(t,e){if(1&t&&(a.Dc(0),a.ad(1,2),a.Fc(2,"span"),a.xd(3),a.Ec(),a.Cc()),2&t){var i=a.Wc(2);a.lc(3),a.yd(i._control.placeholder)}}function ud(t,e){1&t&&a.ad(0,3,["*ngSwitchCase","true"])}function dd(t,e){1&t&&(a.Fc(0,"span",23),a.xd(1," *"),a.Ec())}function hd(t,e){if(1&t){var i=a.Gc();a.Fc(0,"label",20,21),a.Sc("cdkObserveContent",(function(){return a.nd(i),a.Wc().updateOutlineGap()})),a.vd(2,ld,4,1,"ng-container",12),a.vd(3,ud,1,0,void 0,12),a.vd(4,dd,2,0,"span",22),a.Ec()}if(2&t){var n=a.Wc();a.pc("mat-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),a.cd("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),a.mc("for",n._control.id)("aria-owns",n._control.id),a.lc(2),a.cd("ngSwitchCase",!1),a.lc(1),a.cd("ngSwitchCase",!0),a.lc(1),a.cd("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function fd(t,e){1&t&&(a.Fc(0,"div",24),a.ad(1,4),a.Ec())}function md(t,e){if(1&t&&(a.Fc(0,"div",25,26),a.Ac(2,"span",27),a.Ec()),2&t){var i=a.Wc();a.lc(2),a.pc("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function pd(t,e){if(1&t&&(a.Fc(0,"div"),a.ad(1,5),a.Ec()),2&t){var i=a.Wc();a.cd("@transitionMessages",i._subscriptAnimationState)}}function gd(t,e){if(1&t&&(a.Fc(0,"div",31),a.xd(1),a.Ec()),2&t){var i=a.Wc(2);a.cd("id",i._hintLabelId),a.lc(1),a.yd(i.hintLabel)}}function vd(t,e){if(1&t&&(a.Fc(0,"div",28),a.vd(1,gd,2,2,"div",29),a.ad(2,6),a.Ac(3,"div",30),a.ad(4,7),a.Ec()),2&t){var i=a.Wc();a.cd("@transitionMessages",i._subscriptAnimationState),a.lc(1),a.cd("ngIf",i.hintLabel)}}var bd,_d,yd=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],kd=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],wd=0,Cd=((bd=function t(){_classCallCheck(this,t),this.id="mat-error-".concat(wd++)}).\u0275fac=function(t){return new(t||bd)},bd.\u0275dir=a.uc({type:bd,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&a.mc("id",e.id)},inputs:{id:"id"}}),bd),xd={transitionMessages:o("transitionMessages",[d("enter",u({opacity:1,transform:"translateY(0%)"})),f("void => enter",[u({opacity:0,transform:"translateY(-100%)"}),s("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Sd=((_d=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||_d)},_d.\u0275dir=a.uc({type:_d}),_d);function Ed(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var Od,Ad,Td,Dd,Id,Pd,Fd,Rd=0,Md=((Id=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-".concat(Rd++)}).\u0275fac=function(t){return new(t||Id)},Id.\u0275dir=a.uc({type:Id,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(a.mc("id",e.id)("align",null),a.pc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),Id),zd=((Dd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Dd)},Dd.\u0275dir=a.uc({type:Dd,selectors:[["mat-label"]]}),Dd),Ld=((Td=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Td)},Td.\u0275dir=a.uc({type:Td,selectors:[["mat-placeholder"]]}),Td),jd=((Ad=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ad)},Ad.\u0275dir=a.uc({type:Ad,selectors:[["","matPrefix",""]]}),Ad),Nd=((Od=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Od)},Od.\u0275dir=a.uc({type:Od,selectors:[["","matSuffix",""]]}),Od),Bd=0,Vd=Un((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Ud=new a.w("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Wd=new a.w("MatFormField"),Hd=((Fd=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=e.call(this,t))._elementRef=t,u._changeDetectorRef=n,u._dir=r,u._defaults=o,u._platform=s,u._ngZone=c,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new Me.a,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-".concat(Bd++),u._labelId="mat-form-field-label-".concat(Bd++),u._labelOptions=a||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==l,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return _createClass(i,[{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(Dn(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ol(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Ol(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object(al.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Dn(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Dn(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Ol(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._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(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,rl(this._label.nativeElement,"transitionend").pipe(ui(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,i=this;this._hintChildren&&this._hintChildren.forEach((function(n){if("start"===n.align){if(t||i.hintLabel)throw Ed("start");t=n}else if("end"===n.align){if(e)throw Ed("end");e=n}}))}},{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,i=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.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,i=0,n=this._connectionContainerRef.nativeElement,a=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=n.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,c=this._getStartEnd(o),l=this._getStartEnd(t.children[0].getBoundingClientRect()),u=0,d=_createForOfIteratorHelper(t.children);try{for(d.s();!(s=d.n()).done;)u+=s.value.offsetWidth}catch(m){d.e(m)}finally{d.f()}e=Math.abs(l-c)-5,i=u>0?.75*u+10:0}for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:Je,n=(e=t)instanceof Date&&!isNaN(+e)?+t-i.now():Math.abs(t);return function(t){return t.lift(new $d(n,i))}}var $d=function(){function t(e,i){_classCallCheck(this,t),this.delay=e,this.scheduler=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Yd(t,this.delay,this.scheduler))}}]),t}(),Yd=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).delay=n,r.scheduler=a,r.queue=[],r.active=!1,r.errored=!1,r}return _createClass(i,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,i=new Kd(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Wl.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Wl.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,i=e.queue,n=t.scheduler,a=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(a);if(i.length>0){var r=Math.max(0,i[0].time-n.now());this.schedule(t,r)}else this.unsubscribe(),e.active=!1}}]),i}(Ue.a),Kd=function t(e,i){_classCallCheck(this,t),this.time=e,this.notification=i},Xd=["panel"];function Jd(t,e){if(1&t&&(a.Fc(0,"div",0,1),a.ad(2),a.Ec()),2&t){var i=a.Wc();a.cd("id",i.id)("ngClass",i._classList)}}var Zd,Qd,th,eh,ih=["*"],nh=0,ah=function t(e,i){_classCallCheck(this,t),this.source=e,this.option=i},rh=Wn((function t(){_classCallCheck(this,t)})),oh=new a.w("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),sh=((Qd=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._changeDetectorRef=t,o._elementRef=n,o._activeOptionChanges=ze.a.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new a.t,o.opened=new a.t,o.closed=new a.t,o.optionActivated=new a.t,o._classList={},o.id="mat-autocomplete-".concat(nh++),o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Ki(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 ah(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=mi(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=""}}]),i}(rh)).\u0275fac=function(t){return new(t||Qd)(a.zc(a.j),a.zc(a.q),a.zc(oh))},Qd.\u0275cmp=a.tc({type:Qd,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,Na,!0),a.rc(i,Ra,!0)),2&t&&(a.id(n=a.Tc())&&(e.options=n),a.id(n=a.Tc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(a.td(a.V,!0),a.Bd(Xd,!0)),2&t&&(a.id(i=a.Tc())&&(e.template=i.first),a.id(i=a.Tc())&&(e.panel=i.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:[a.kc([{provide:ja,useExisting:Qd}]),a.ic],ngContentSelectors:ih,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(a.bd(),a.vd(0,Jd,3,2,"ng-template"))},directives:[ye.q],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}),Qd),ch=((Zd=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||Zd)(a.zc(a.q))},Zd.\u0275dir=a.uc({type:Zd,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),Zd),lh=new a.w("mat-autocomplete-scroll-strategy"),uh={provide:lh,deps:[Xu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},dh={provide:mr,useExisting:Object(a.db)((function(){return hh})),multi:!0},hh=((eh=function(){function t(e,i,n,a,r,o,s,c,l,u){var d=this;_classCallCheck(this,t),this._element=e,this._overlay=i,this._viewContainerRef=n,this._zone=a,this._changeDetectorRef=r,this._dir=s,this._formField=c,this._document=l,this._viewportRuler=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=ze.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Me.a,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=nl((function(){return d.autocomplete&&d.autocomplete.options?Object(al.a).apply(void 0,_toConsumableArray(d.autocomplete.options.map((function(t){return t.onSelectionChange})))):d._zone.onStable.asObservable().pipe(ui(1),Il((function(){return d.optionSelections})))})),this._scrollStrategy=o}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&(this._zone.runOutsideAngular((function(){e.addEventListener("blur",t._windowBlurHandler)})),this._isInsideShadowRoot=!!Pi(this._element.nativeElement))}},{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 Object(al.a)(rl(this._document,"click"),rl(this._document,"touchend")).pipe(ii((function(e){var i=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,n=t._formField?t._formField._elementRef.nativeElement:null;return t._overlayAttached&&i!==t._element.nativeElement&&(!n||!n.contains(i))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(i)})))}},{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 i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}},{key:"_handleInput",value:function(t){var e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),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=Ba(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var i=Va(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.asObservable().pipe(ui(1)),i=this.autocomplete.options.changes.pipe(Ge((function(){return t._positionStrategy.reapplyLastPosition()})),qd(0));return Object(al.a)(e,i).pipe(Il((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})),ui(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,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{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.");var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new su(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._viewportRuler&&(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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new Eu({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,i={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},n={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};e="above"===this.position?[n]:"below"===this.position?[i]:[i,n],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=mi(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return Object(al.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ii((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ii((function(){return t._overlayAttached}))):Be()).pipe(Object(ri.a)((function(t){return t instanceof La?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}()).\u0275fac=function(t){return new(t||eh)(a.zc(a.q),a.zc(Xu),a.zc(a.Y),a.zc(a.G),a.zc(a.j),a.zc(lh),a.zc(Cn,8),a.zc(Wd,9),a.zc(ye.e,8),a.zc(Zl))},eh.\u0275dir=a.uc({type:eh,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&a.Sc("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&&a.mc("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:[a.kc([dh]),a.jc]}),eh),fh=((th=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:th}),th.\u0275inj=a.wc({factory:function(t){return new(t||th)},providers:[uh],imports:[[qa,id,Bn,ye.c],qa,Bn]}),th);function mh(t,e){}var ph=function t(){_classCallCheck(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},gh={dialogContainer:o("dialogContainer",[d("void, exit",u({opacity:0,transform:"scale(0.7)"})),d("enter",u({transform:"none"})),f("* => enter",s("150ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"none",opacity:1}))),f("* => void, * => exit",s("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",u({opacity:0})))])};function vh(){throw Error("Attempting to attach dialog content after content is already attached")}var bh,_h,yh,kh,wh,Ch,xh=((bh=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s){var c;return _classCallCheck(this,i),(c=e.call(this))._elementRef=t,c._focusTrapFactory=n,c._changeDetectorRef=r,c._config=s,c._elementFocusedBeforeDialogWasOpened=null,c._state="enter",c._animationStateChanged=new a.t,c.attachDomPortal=function(t){return c._portalOutlet.hasAttached()&&vh(),c._savePreviouslyFocusedElement(),c._portalOutlet.attachDomPortal(t)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=o,c}return _createClass(i,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&vh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&vh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_trapFocus",value:function(){var t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))}},{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()}}]),i}(lu)).\u0275fac=function(t){return new(t||bh)(a.zc(a.q),a.zc(nn),a.zc(a.j),a.zc(ye.e,8),a.zc(ph))},bh.\u0275cmp=a.tc({type:bh,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&a.td(hu,!0),2&t&&a.id(i=a.Tc())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&a.qc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(a.mc("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),a.Ad("@dialogContainer",e._state))},features:[a.ic],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.vd(0,mh,0,0,"ng-template",0)},directives:[hu],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:[gh.dialogContainer]}}),bh),Sh=0,Eh=function(){function t(e,i){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(Sh++);_classCallCheck(this,t),this._overlayRef=e,this._containerInstance=i,this.id=a,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Me.a,this._afterClosed=new Me.a,this._beforeClosed=new Me.a,this._state=0,i._id=a,i._animationStateChanged.pipe(ii((function(t){return"done"===t.phaseName&&"enter"===t.toState})),ui(1)).subscribe((function(){n._afterOpened.next(),n._afterOpened.complete()})),i._animationStateChanged.pipe(ii((function(t){return"done"===t.phaseName&&"exit"===t.toState})),ui(1)).subscribe((function(){clearTimeout(n._closeFallbackTimeout),n._overlayRef.dispose()})),e.detachments().subscribe((function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()})),e.keydownEvents().pipe(ii((function(t){return 27===t.keyCode&&!n.disableClose&&!Ve(t)}))).subscribe((function(t){t.preventDefault(),n.close()}))}return _createClass(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(ii((function(t){return"start"===t.phaseName})),ui(1)).subscribe((function(i){e._beforeClosed.next(t),e._beforeClosed.complete(),e._state=2,e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){e._overlayRef.dispose()}),i.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:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}(),Oh=new a.w("MatDialogData"),Ah=new a.w("mat-dialog-default-options"),Th=new a.w("mat-dialog-scroll-strategy"),Dh={provide:Th,deps:[Xu],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},Ih=((Ch=function(){function t(e,i,n,a,r,o,s){var c=this;_classCallCheck(this,t),this._overlay=e,this._injector=i,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.a,this._afterOpenedAtThisLevel=new Me.a,this._ariaHiddenElements=new Map,this.afterAllClosed=nl((function(){return c.openDialogs.length?c._afterAllClosed:c._afterAllClosed.pipe(Dn(void 0))})),this._scrollStrategy=r}return _createClass(t,[{key:"open",value:function(t,e){var i=this;if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new ph)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'.concat(e.id,'" exists already. The dialog id must be unique.'));var n=this._createOverlay(e),a=this._attachDialogContainer(n,e),r=this._attachDialogContent(t,a,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return i._removeOpenDialog(r)})),this.afterOpened.next(r),r}},{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 Eu({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 i=a.x.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ph,useValue:e}]}),n=new ou(xh,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}},{key:"_attachDialogContent",value:function(t,e,i,n){var r=new Eh(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof a.V)e.attachTemplatePortal(new su(t,null,{$implicit:n.data,dialogRef:r}));else{var o=this._createInjector(n,r,e),s=e.attachComponentPortal(new ou(t,n.viewContainerRef,o));r.componentInstance=s.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}},{key:"_createInjector",value:function(t,e,i){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:xh,useValue:i},{provide:Oh,useValue:t.data},{provide:Eh,useValue:e}];return!t.direction||n&&n.get(Cn,null)||r.push({provide:Cn,useValue:{value:t.direction,change:Be()}}),a.x.create({parent:n||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._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,i=e.length-1;i>-1;i--){var n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.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}},{key:"_afterAllClosed",get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}}]),t}()).\u0275fac=function(t){return new(t||Ch)(a.Oc(Xu),a.Oc(a.x),a.Oc(ye.n,8),a.Oc(Ah,8),a.Oc(Th),a.Oc(Ch,12),a.Oc(Mu))},Ch.\u0275prov=a.vc({token:Ch,factory:Ch.\u0275fac}),Ch),Ph=0,Fh=((wh=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this._elementRef=i,this._dialog=n,this.type="button"}return _createClass(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Lh(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}]),t}()).\u0275fac=function(t){return new(t||wh)(a.zc(Eh,8),a.zc(a.q),a.zc(Ih))},wh.\u0275dir=a.uc({type:wh,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&a.mc("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:[a.jc]}),wh),Rh=((kh=function(){function t(e,i,n){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-".concat(Ph++)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=Lh(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))}}]),t}()).\u0275fac=function(t){return new(t||kh)(a.zc(Eh,8),a.zc(a.q),a.zc(Ih))},kh.\u0275dir=a.uc({type:kh,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&a.Ic("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),kh),Mh=((yh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||yh)},yh.\u0275dir=a.uc({type:yh,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),yh),zh=((_h=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||_h)},_h.\u0275dir=a.uc({type:_h,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),_h);function Lh(t,e){for(var i=t.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find((function(t){return t.id===i.id})):null}var jh,Nh,Bh,Vh,Uh=((Vh=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Vh}),Vh.\u0275inj=a.wc({factory:function(t){return new(t||Vh)},providers:[Ih,Dh],imports:[[id,pu,Bn],Bn]}),Vh),Wh=0,Hh=((Bh=function(){function t(){_classCallCheck(this,t),this._stateChanges=new Me.a,this._openCloseAllActions=new Me.a,this.id="cdk-accordion-".concat(Wh++),this._multi=!1}return _createClass(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=mi(t)}}]),t}()).\u0275fac=function(t){return new(t||Bh)},Bh.\u0275dir=a.uc({type:Bh,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a.jc]}),Bh),Gh=0,qh=((Nh=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=n,this._openCloseAllSubscription=ze.a.EMPTY,this.closed=new a.t,this.opened=new a.t,this.destroyed=new a.t,this.expandedChange=new a.t,this.id="cdk-accordion-child-".concat(Gh++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.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 _createClass(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=mi(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=mi(t)}}]),t}()).\u0275fac=function(t){return new(t||Nh)(a.zc(Hh,12),a.zc(a.j),a.zc(ar))},Nh.\u0275dir=a.uc({type:Nh,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a.kc([{provide:Hh,useValue:void 0}])]}),Nh),$h=((jh=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:jh}),jh.\u0275inj=a.wc({factory:function(t){return new(t||jh)}}),jh),Yh=["body"];function Kh(t,e){}var Xh=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Jh=["mat-expansion-panel-header","*","mat-action-row"],Zh=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Qh=function(t,e){return{value:t,params:e}};function tf(t,e){if(1&t&&a.Ac(0,"span",2),2&t){var i=a.Wc();a.cd("@indicatorRotate",i._getExpandedState())}}var ef,nf,af,rf,of,sf,cf,lf,uf,df,hf,ff,mf,pf=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],gf=["mat-panel-title","mat-panel-description","*"],vf=new a.w("MAT_ACCORDION"),bf={indicatorRotate:o("indicatorRotate",[d("collapsed, void",u({transform:"rotate(0deg)"})),d("expanded",u({transform:"rotate(180deg)"})),f("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[d("collapsed, void",u({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),d("expanded",u({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),f("expanded <=> collapsed, void => collapsed",c([p("@indicatorRotate",m(),{optional:!0}),s("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[d("collapsed, void",u({height:"0px",visibility:"hidden"})),d("expanded",u({height:"*",visibility:"visible"})),f("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},_f=((ef=function t(e){_classCallCheck(this,t),this._template=e}).\u0275fac=function(t){return new(t||ef)(a.zc(a.V))},ef.\u0275dir=a.uc({type:ef,selectors:[["ng-template","matExpansionPanelContent",""]]}),ef),yf=0,kf=new a.w("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),wf=((cf=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=e.call(this,t,n,r))._viewContainerRef=o,u._animationMode=c,u._hideToggle=!1,u.afterExpand=new a.t,u.afterCollapse=new a.t,u._inputChanges=new Me.a,u._headerId="mat-expansion-panel-header-".concat(yf++),u._bodyAnimationDone=new Me.a,u.accordion=t,u._document=s,u._bodyAnimationDone.pipe(gl((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?u.afterExpand.emit():"collapsed"===t.toState&&u.afterCollapse.emit())})),l&&(u.hideToggle=l.hideToggle),u}return _createClass(i,[{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(Dn(null),ii((function(){return t.expanded&&!t._portal})),ui(1)).subscribe((function(){t._portal=new su(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.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=mi(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),i}(qh)).\u0275fac=function(t){return new(t||cf)(a.zc(vf,12),a.zc(a.j),a.zc(ar),a.zc(a.Y),a.zc(ye.e),a.zc(Pe,8),a.zc(kf,8))},cf.\u0275cmp=a.tc({type:cf,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&a.rc(i,_f,!0),2&t&&a.id(n=a.Tc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&a.Bd(Yh,!0),2&t&&a.id(i=a.Tc())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&a.pc("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:[a.kc([{provide:vf,useValue:void 0}]),a.ic,a.jc],ngContentSelectors:Jh,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&&(a.bd(Xh),a.ad(0),a.Fc(1,"div",0,1),a.Sc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),a.Fc(3,"div",2),a.ad(4,1),a.vd(5,Kh,0,0,"ng-template",3),a.Ec(),a.ad(6,2),a.Ec()),2&t&&(a.lc(1),a.cd("@bodyExpansion",e._getExpandedState())("id",e.id),a.mc("aria-labelledby",e._headerId),a.lc(4),a.cd("cdkPortalOutlet",e._portal))},directives:[hu],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)}.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:[bf.bodyExpansion]},changeDetection:0}),cf),Cf=((sf=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||sf)},sf.\u0275dir=a.uc({type:sf,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),sf),xf=((of=function(){function t(e,i,n,a,r){var o=this;_classCallCheck(this,t),this.panel=e,this._element=i,this._focusMonitor=n,this._changeDetectorRef=a,this._parentChangeSubscription=ze.a.EMPTY,this._animationsDisabled=!0;var s=e.accordion?e.accordion._stateChanges.pipe(ii((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):ci;this._parentChangeSubscription=Object(al.a)(e.opened,e.closed,s,e._inputChanges.pipe(ii((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),e.closed.pipe(ii((function(){return e._containsFocus()}))).subscribe((function(){return n.focusVia(i,"program")})),n.monitor(i).subscribe((function(t){t&&e.accordion&&e.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return _createClass(t,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{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:"_keydown",value:function(t){switch(t.keyCode){case 32:case 13:Ve(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:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),t}()).\u0275fac=function(t){return new(t||of)(a.zc(wf,1),a.zc(a.q),a.zc(hn),a.zc(a.j),a.zc(kf,8))},of.\u0275cmp=a.tc({type:of,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(a.qc("@expansionHeight.start",(function(){return e._animationStarted()})),a.Sc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(a.mc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),a.Ad("@.disabled",e._animationsDisabled)("@expansionHeight",a.gd(16,Qh,e._getExpandedState(),a.gd(13,Zh,e.collapsedHeight,e.expandedHeight))),a.pc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:gf,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(a.bd(pf),a.Fc(0,"span",0),a.ad(1),a.ad(2,1),a.ad(3,2),a.Ec(),a.vd(4,tf,1,1,"span",1)),2&t&&(a.lc(4),a.cd("ngIf",e._showToggle()))},directives:[ye.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.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:[bf.indicatorRotate,bf.expansionHeaderHeight]},changeDetection:0}),of),Sf=((rf=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||rf)},rf.\u0275dir=a.uc({type:rf,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),rf),Ef=((af=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||af)},af.\u0275dir=a.uc({type:af,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),af),Of=((nf=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._ownHeaders=new a.L,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe(Dn(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new Xi(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(t){var e=t.keyCode,i=this._keyManager;36===e?Ve(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?Ve(t)||(i.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=mi(t)}}]),i}(Hh)).\u0275fac=function(t){return Af(t||nf)},nf.\u0275dir=a.uc({type:nf,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&a.rc(i,xf,!0),2&t&&a.id(n=a.Tc())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&a.pc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a.kc([{provide:vf,useExisting:nf}]),a.ic]}),nf),Af=a.Hc(Of),Tf=((lf=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:lf}),lf.\u0275inj=a.wc({factory:function(t){return new(t||lf)},imports:[[ye.c,$h,pu]]}),lf),Df=["*"],If=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],Pf=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Ff=new a.w("MAT_GRID_LIST"),Rf=((mf=function(){function t(e,i){_classCallCheck(this,t),this._element=e,this._gridList=i,this._rowspan=1,this._colspan=1}return _createClass(t,[{key:"_setStyle",value:function(t,e){this._element.nativeElement.style[t]=e}},{key:"rowspan",get:function(){return this._rowspan},set:function(t){this._rowspan=Math.round(pi(t))}},{key:"colspan",get:function(){return this._colspan},set:function(t){this._colspan=Math.round(pi(t))}}]),t}()).\u0275fac=function(t){return new(t||mf)(a.zc(a.q),a.zc(Ff,8))},mf.\u0275cmp=a.tc({type:mf,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&a.mc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Df,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(a.bd(),a.Fc(0,"figure",0),a.ad(1),a.Ec())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),mf),Mf=((ff=function(){function t(e){_classCallCheck(this,t),this._element=e}return _createClass(t,[{key:"ngAfterContentInit",value:function(){fa(this._lines,this._element)}}]),t}()).\u0275fac=function(t){return new(t||ff)(a.zc(a.q))},ff.\u0275cmp=a.tc({type:ff,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,i){var n;1&t&&a.rc(i,ha,!0),2&t&&a.id(n=a.Tc())&&(e._lines=n)},ngContentSelectors:Pf,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(a.bd(If),a.ad(0),a.Fc(1,"div",0),a.ad(2,1),a.Ec(),a.ad(3,2))},encapsulation:2,changeDetection:0}),ff),zf=((hf=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||hf)},hf.\u0275dir=a.uc({type:hf,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),hf),Lf=((df=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||df)},df.\u0275dir=a.uc({type:df,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),df),jf=((uf=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||uf)},uf.\u0275dir=a.uc({type:uf,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),uf),Nf=function(){function t(){_classCallCheck(this,t),this.columnIndex=0,this.rowIndex=0}return _createClass(t,[{key:"update",value:function(t,e){var i=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map((function(t){return i._trackTile(t)}))}},{key:"_trackTile",value:function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new Bf(this.rowIndex,e)}},{key:"_findMatchingGap",value:function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(t," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e))}while(i-e1?this.rowCount+t-1:this.rowCount}}]),t}(),Bf=function t(e,i){_classCallCheck(this,t),this.row=e,this.col=i},Vf=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Uf=function(){function t(){_classCallCheck(this,t),this._rows=0,this._rowspan=0}return _createClass(t,[{key:"init",value:function(t,e,i,n){this._gutterSize=$f(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=i,this._direction=n}},{key:"getBaseTileSize",value:function(t,e){return"(".concat(t,"% - (").concat(this._gutterSize," * ").concat(e,"))")}},{key:"getTilePosition",value:function(t,e){return 0===e?"0":qf("(".concat(t," + ").concat(this._gutterSize,") * ").concat(e))}},{key:"getTileSize",value:function(t,e){return"(".concat(t," * ").concat(e,") + (").concat(e-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(t,e,i){var n=100/this._cols,a=(this._cols-1)/this._cols;this.setColStyles(t,i,n,a),this.setRowStyles(t,e,n,a)}},{key:"setColStyles",value:function(t,e,i,n){var a=this.getBaseTileSize(i,n);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(a,e)),t._setStyle("width",qf(this.getTileSize(a,t.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(t){return"".concat(this._rowspan," * ").concat(this.getTileSize(t,1))}},{key:"getComputedHeight",value:function(){return null}}]),t}(),Wf=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).fixedRowHeight=t,n}return _createClass(i,[{key:"init",value:function(t,e,n,a){if(_get(_getPrototypeOf(i.prototype),"init",this).call(this,t,e,n,a),this.fixedRowHeight=$f(this.fixedRowHeight),!Vf.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",qf(this.getTileSize(this.fixedRowHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",qf("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),i}(Uf),Hf=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._parseRatio(t),n}return _createClass(i,[{key:"setRowStyles",value:function(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",qf(this.getTileSize(this.baseTileHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",qf("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach((function(t){t._setStyle("marginTop",null),t._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(t,'"'));this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}]),i}(Uf),Gf=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"setRowStyles",value:function(t,e){var i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",qf(this.getTileSize(i,t.rowspan)))}},{key:"reset",value:function(t){t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),i}(Uf);function qf(t){return"calc(".concat(t,")")}function $f(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var Yf,Kf,Xf=((Kf=function(){function t(e,i){_classCallCheck(this,t),this._element=e,this._dir=i,this._gutter="1px"}return _createClass(t,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new Gf:t&&t.indexOf(":")>-1?new Hf(t):new Wf(t)}},{key:"_layoutTiles",value:function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new Nf);var e=this._tileCoordinator,i=this._tiles.filter((function(e){return!e._gridList||e._gridList===t})),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,i),this._tileStyler.init(this.gutterSize,e,this.cols,n),i.forEach((function(i,n){var a=e.positions[n];t._tileStyler.setStyle(i,a.row,a.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}},{key:"cols",get:function(){return this._cols},set:function(t){this._cols=Math.max(1,Math.round(pi(t)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(t){this._gutter="".concat(null==t?"":t)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(t){var e="".concat(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}}]),t}()).\u0275fac=function(t){return new(t||Kf)(a.zc(a.q),a.zc(Cn,8))},Kf.\u0275cmp=a.tc({type:Kf,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&a.rc(i,Rf,!0),2&t&&a.id(n=a.Tc())&&(e._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&a.mc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[a.kc([{provide:Ff,useExisting:Kf}])],ngContentSelectors:Df,decls:2,vars:0,template:function(t,e){1&t&&(a.bd(),a.Fc(0,"div"),a.ad(1),a.Ec())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),Kf),Jf=((Yf=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Yf}),Yf.\u0275inj=a.wc({factory:function(t){return new(t||Yf)},imports:[[wa,Bn],wa,Bn]}),Yf);function Zf(t){return function(e){var i=new Qf(t),n=e.lift(i);return i.caught=n}}var Qf=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new tm(t,this.selector,this.caught))}}]),t}(),tm=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).selector=n,r.caught=a,r}return _createClass(i,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(r){return void _get(_getPrototypeOf(i.prototype),"error",this).call(this,r)}this._unsubscribeAndRecycle();var n=new Dl.a(this,void 0,void 0);this.add(n);var a=Object(yl.a)(this,e,void 0,void 0,n);a!==n&&this.add(a)}}}]),i}(_l.a);function em(t){return function(e){return e.lift(new im(t))}}var im=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new nm(t,this.callback))}}]),t}(),nm=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).add(new ze.a(n)),a}return i}(Ue.a),am=i("w1tV"),rm=i("5+tZ");function om(t,e){return Object(rm.a)(t,e,1)}var sm=function t(){_classCallCheck(this,t)},cm=function t(){_classCallCheck(this,t)},lm=function(){function t(e){var i=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){i.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),a=n.toLowerCase(),r=t.slice(e+1).trim();i.maybeSetNormalizedName(n,a),i.headers.has(a)?i.headers.get(a).push(r):i.headers.set(a,[r])}}))}:function(){i.headers=new Map,Object.keys(e).forEach((function(t){var n=e[t],a=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(a,n),i.maybeSetNormalizedName(t,a))}))}:this.headers=new Map}return _createClass(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(i){e.headers.set(i,t.headers.get(i)),e.normalizedNames.set(i,t.normalizedNames.get(i))}))}},{key:"clone",value:function(e){var i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);var n=("a"===t.op?this.headers.get(e):void 0)||[];n.push.apply(n,_toConsumableArray(i)),this.headers.set(e,n);break;case"d":var a=t.value;if(a){var r=this.headers.get(e);if(!r)return;0===(r=r.filter((function(t){return-1===a.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}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(i){return t(e.normalizedNames.get(i),e.headers.get(i))}))}}]),t}(),um=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return dm(t)}},{key:"encodeValue",value:function(t){return dm(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function dm(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 hm=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new um,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var i=new Map;return t.length>0&&t.split("&").forEach((function(t){var n=t.indexOf("="),a=_slicedToArray(-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],2),r=a[0],o=a[1],s=i.get(r)||[];s.push(o),i.set(r,s)})),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach((function(t){var n=i.fromObject[t];e.map.set(t,Array.isArray(n)?n:[n])}))):this.map=null}return _createClass(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 i=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return i+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat([e]),i}},{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 i=("a"===e.op?t.map.get(e.param):void 0)||[];i.push(e.value),t.map.set(e.param,i);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var n=t.map.get(e.param)||[],a=n.indexOf(e.value);-1!==a&&n.splice(a,1),n.length>0?t.map.set(e.param,n):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function fm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function mm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function pm(t){return"undefined"!=typeof FormData&&t instanceof FormData}var gm=function(){function t(e,i,n,a){var r;if(_classCallCheck(this,t),this.url=i,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)||a?(this.body=void 0!==n?n:null,r=a):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new lm),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=e.method||this.method,n=e.url||this.url,a=e.responseType||this.responseType,r=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,c=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((function(t,i){return t.set(i,e.setHeaders[i])}),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((function(t,i){return t.set(i,e.setParams[i])}),l)),new t(i,n,r,{params:l,headers:c,reportProgress:s,responseType:a,withCredentials:o})}}]),t}(),vm=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}(),bm=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new lm,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},_m=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=vm.ResponseHeader,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({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})}}]),i}(bm),ym=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=vm.Response,t.body=void 0!==n.body?n.body:null,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({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})}}]),i}(bm),km=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.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),n.error=t.error||null,n}return i}(bm);function wm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Cm,xm,Sm,Em,Om,Am,Tm,Dm,Im,Pm=((Cm=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof gm)i=t;else{var r=void 0;r=a.headers instanceof lm?a.headers:new lm(a.headers);var o=void 0;a.params&&(o=a.params instanceof hm?a.params:new hm({fromObject:a.params})),i=new gm(t,e,void 0!==a.body?a.body:null,{headers:r,params:o,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var s=Be(i).pipe(om((function(t){return n.handler.handle(t)})));if(t instanceof gm||"events"===a.observe)return s;var c=s.pipe(ii((function(t){return t instanceof ym})));switch(a.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(Object(ri.a)((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return c.pipe(Object(ri.a)((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return c.pipe(Object(ri.a)((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 c.pipe(Object(ri.a)((function(t){return t.body})))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(a.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 hm).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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,wm(i,e))}},{key:"post",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,wm(i,e))}},{key:"put",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,wm(i,e))}}]),t}()).\u0275fac=function(t){return new(t||Cm)(a.Oc(sm))},Cm.\u0275prov=a.vc({token:Cm,factory:Cm.\u0275fac}),Cm),Fm=function(){function t(e,i){_classCallCheck(this,t),this.next=e,this.interceptor=i}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),Rm=new a.w("HTTP_INTERCEPTORS"),Mm=((xm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||xm)},xm.\u0275prov=a.vc({token:xm,factory:xm.\u0275fac}),xm),zm=/^\)\]\}',?\n/,Lm=function t(){_classCallCheck(this,t)},jm=((Em=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||Em)},Em.\u0275prov=a.vc({token:Em,factory:Em.\u0275fac}),Em),Nm=((Sm=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(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 si.a((function(i){var n=e.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((function(t,e){return n.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var a=t.detectContentTypeHeader();null!==a&&n.setRequestHeader("Content-Type",a)}if(t.responseType){var r=t.responseType.toLowerCase();n.responseType="json"!==r?r:"text"}var o=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===n.status?204:n.status,i=n.statusText||"OK",a=new lm(n.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new _m({headers:a,status:e,statusText:i,url:r})},l=function(){var e=c(),a=e.headers,r=e.status,o=e.statusText,s=e.url,l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);var u=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){var d=l;l=l.replace(zm,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=d,u&&(u=!1,l={error:h,text:l})}}u?(i.next(new ym({body:l,headers:a,status:r,statusText:o,url:s||void 0})),i.complete()):i.error(new km({error:l,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(t){var e=c().url,a=new km({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:e||void 0});i.error(a)},d=!1,h=function(e){d||(i.next(c()),d=!0);var a={type:vm.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(a.total=e.total),"text"===t.responseType&&n.responseText&&(a.partialText=n.responseText),i.next(a)},f=function(t){var e={type:vm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),i.next(e)};return n.addEventListener("load",l),n.addEventListener("error",u),t.reportProgress&&(n.addEventListener("progress",h),null!==o&&n.upload&&n.upload.addEventListener("progress",f)),n.send(o),i.next({type:vm.Sent}),function(){n.removeEventListener("error",u),n.removeEventListener("load",l),t.reportProgress&&(n.removeEventListener("progress",h),null!==o&&n.upload&&n.upload.removeEventListener("progress",f)),n.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||Sm)(a.Oc(Lm))},Sm.\u0275prov=a.vc({token:Sm,factory:Sm.\u0275fac}),Sm),Bm=new a.w("XSRF_COOKIE_NAME"),Vm=new a.w("XSRF_HEADER_NAME"),Um=function t(){_classCallCheck(this,t)},Wm=((Im=function(){function t(e,i,n){_classCallCheck(this,t),this.doc=e,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(ye.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||Im)(a.Oc(ye.e),a.Oc(a.J),a.Oc(Bm))},Im.\u0275prov=a.vc({token:Im,factory:Im.\u0275fac}),Im),Hm=((Dm=function(){function t(e,i){_classCallCheck(this,t),this.tokenService=e,this.headerName=i}return _createClass(t,[{key:"intercept",value:function(t,e){var i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);var n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||Dm)(a.Oc(Um),a.Oc(Vm))},Dm.\u0275prov=a.vc({token:Dm,factory:Dm.\u0275fac}),Dm),Gm=((Tm=function(){function t(e,i){_classCallCheck(this,t),this.backend=e,this.injector=i,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(Rm,[]);this.chain=e.reduceRight((function(t,e){return new Fm(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||Tm)(a.Oc(cm),a.Oc(a.x))},Tm.\u0275prov=a.vc({token:Tm,factory:Tm.\u0275fac}),Tm),qm=((Am=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Hm,useClass:Mm}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:Bm,useValue:e.cookieName}:[],e.headerName?{provide:Vm,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=a.xc({type:Am}),Am.\u0275inj=a.wc({factory:function(t){return new(t||Am)},providers:[Hm,{provide:Rm,useExisting:Hm,multi:!0},{provide:Um,useClass:Wm},{provide:Bm,useValue:"XSRF-TOKEN"},{provide:Vm,useValue:"X-XSRF-TOKEN"}]}),Am),$m=((Om=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Om}),Om.\u0275inj=a.wc({factory:function(t){return new(t||Om)},providers:[Pm,{provide:sm,useClass:Gm},Nm,{provide:cm,useExisting:Nm},jm,{provide:Lm,useExisting:jm}],imports:[[qm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Om),Ym=["*"];function Km(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Xm(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function Jm(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var Zm,Qm=function t(e,i){_classCallCheck(this,t),this.options=i,e.nodeName?this.svgElement=e:this.url=e},tp=((Zm=function(){function t(e,i,n,a){_classCallCheck(this,t),this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return _createClass(t,[{key:"addSvgIcon",value:function(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}},{key:"addSvgIconLiteral",value:function(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}},{key:"addSvgIconInNamespace",value:function(t,e,i,n){return this._addSvgIconConfig(t,e,new Qm(i,n))}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,i,n){var r=this._sanitizer.sanitize(a.Q.HTML,i);if(!r)throw Jm(i);var o=this._createSvgElementForSingleIcon(r,n);return this._addSvgIconConfig(t,e,new Qm(o,n))}},{key:"addSvgIconSet",value:function(t,e){return this.addSvgIconSetInNamespace("",t,e)}},{key:"addSvgIconSetLiteral",value:function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}},{key:"addSvgIconSetInNamespace",value:function(t,e,i){return this._addSvgIconSetConfig(t,new Qm(e,i))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,i){var n=this._sanitizer.sanitize(a.Q.HTML,e);if(!n)throw Jm(e);var r=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new Qm(r,i))}},{key:"registerFontClassAlias",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,i=this._sanitizer.sanitize(a.Q.RESOURCE_URL,t);if(!i)throw Xm(t);var n=this._cachedIconsByUrl.get(i);return n?Be(ep(n)):this._loadSvgIconFromConfig(new Qm(t)).pipe(Ge((function(t){return e._cachedIconsByUrl.set(i,t)})),Object(ri.a)((function(t){return ep(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=ip(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);var a=this._iconSetConfigs.get(e);return a?this._getSvgFromIconSetConfigs(t,a):zl(Km(i))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?Be(ep(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Ge((function(e){return t.svgElement=e})),Object(ri.a)((function(t){return ep(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var i=this,n=this._extractIconWithNameFromAnySet(t,e);return n?Be(n):cr(e.filter((function(t){return!t.svgElement})).map((function(t){return i._loadSvgIconSetFromConfig(t).pipe(Zf((function(e){var n="Loading icon set URL: ".concat(i._sanitizer.sanitize(a.Q.RESOURCE_URL,t.url)," failed: ").concat(e.message);return i._errorHandler?i._errorHandler.handleError(new Error(n)):console.error(n),Be(null)})))}))).pipe(Object(ri.a)((function(){var n=i._extractIconWithNameFromAnySet(t,e);if(!n)throw Km(t);return n})))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.svgElement){var a=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchUrl(t.url).pipe(Object(ri.a)((function(i){return e._createSvgElementForSingleIcon(i,t.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(t){var e=this;return t.svgElement?Be(t.svgElement):this._fetchUrl(t.url).pipe(Object(ri.a)((function(i){return t.svgElement||(t.svgElement=e._svgElementFromString(i)),t.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(t,e){var i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}},{key:"_extractSvgIconFromSet",value:function(t,e,i){var n=t.querySelector('[id="'.concat(e,'"]'));if(!n)return null;var a=n.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,i);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),i);var r=this._svgElementFromString("");return r.appendChild(a),this._setSvgAttributes(r,i)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),i=t.attributes,n=0;n0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(e||this._minRows!==this._previousMinRows||n!==this._previousValue){var a=i.placeholder;i.classList.add("cdk-textarea-autosize-measuring"),i.placeholder="",i.style.height="".concat(i.scrollHeight-4,"px"),i.classList.remove("cdk-textarea-autosize-measuring"),i.placeholder=a,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return t._scrollToCaretPosition(i)})):setTimeout((function(){return t._scrollToCaretPosition(i)}))})),this._previousValue=n,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,i=t.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}},{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=pi(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=pi(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=mi(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}()).\u0275fac=function(t){return new(t||sp)(a.zc(a.q),a.zc(Ei),a.zc(a.G),a.zc(ye.e,8))},sp.\u0275dir=a.uc({type:sp,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&a.Sc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),sp),Sp=((op=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:op}),op.\u0275inj=a.wc({factory:function(t){return new(t||op)},imports:[[Oi]]}),op),Ep=((rp=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{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}}]),i}(xp)).\u0275fac=function(t){return Op(t||rp)},rp.\u0275dir=a.uc({type:rp,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:[a.ic]}),rp),Op=a.Hc(Ep),Ap=new a.w("MAT_INPUT_VALUE_ACCESSOR"),Tp=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Dp=0,Ip=Gn((function t(e,i,n,a){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),Pp=((fp=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c,l,u){var d;_classCallCheck(this,i),(d=e.call(this,s,r,o,a))._elementRef=t,d._platform=n,d.ngControl=a,d._autofillMonitor=l,d._uid="mat-input-".concat(Dp++),d._isServer=!1,d._isNativeSelect=!1,d.focused=!1,d.stateChanges=new Me.a,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 Ti().has(t)}));var h=d._elementRef.nativeElement;return d._inputValueAccessor=c||h,d._previousNativeValue=d.value,d.id=d.id,n.IOS&&u.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"===h.nodeName.toLowerCase(),d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _createClass(i,[{key:"ngOnInit",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()}},{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:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){if(Tp.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=mi(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=mi(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&Ti().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=mi(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}}]),i}(Ip)).\u0275fac=function(t){return new(t||fp)(a.zc(a.q),a.zc(Ei),a.zc(Er,10),a.zc(qo,8),a.zc(os,8),a.zc(da),a.zc(Ap,10),a.zc(wp),a.zc(a.G))},fp.\u0275dir=a.uc({type:fp,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&&a.Sc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(a.Ic("disabled",e.disabled)("required",e.required),a.mc("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),a.pc("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:[a.kc([{provide:Sd,useExisting:fp}]),a.ic,a.jc]}),fp),Fp=((hp=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:hp}),hp.\u0275inj=a.wc({factory:function(t){return new(t||hp)},providers:[da],imports:[[Sp,Gd],Sp,Gd]}),hp),Rp=((dp=function(){function t(){_classCallCheck(this,t),this._vertical=!1,this._inset=!1}return _createClass(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=mi(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=mi(t)}}]),t}()).\u0275fac=function(t){return new(t||dp)},dp.\u0275cmp=a.tc({type:dp,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(a.mc("aria-orientation",e.vertical?"vertical":"horizontal"),a.pc("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}),dp),Mp=((up=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:up}),up.\u0275inj=a.wc({factory:function(t){return new(t||up)},imports:[[Bn],Bn]}),up),zp=["*"],Lp=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],jp=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Np=["text"];function Bp(t,e){if(1&t&&a.Ac(0,"mat-pseudo-checkbox",5),2&t){var i=a.Wc();a.cd("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var Vp,Up,Wp,Hp,Gp,qp,$p,Yp,Kp,Xp=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Jp=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],Zp=Vn(Wn((function t(){_classCallCheck(this,t)}))),Qp=Wn((function t(){_classCallCheck(this,t)})),tg=((Vp=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._stateChanges=new Me.a,t}return _createClass(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Zp)).\u0275fac=function(t){return eg(t||Vp)},Vp.\u0275cmp=a.tc({type:Vp,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a.ic,a.jc],ngContentSelectors:zp,decls:1,vars:0,template:function(t,e){1&t&&(a.bd(),a.ad(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Vp),eg=a.Hc(tg),ig=((qp=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._elementRef=t,n._stateChanges=new Me.a,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return _createClass(i,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Zp)).\u0275fac=function(t){return new(t||qp)(a.zc(a.q))},qp.\u0275cmp=a.tc({type:qp,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a.ic,a.jc],ngContentSelectors:zp,decls:1,vars:0,template:function(t,e){1&t&&(a.bd(),a.ad(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),qp),ng=((Gp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Gp)},Gp.\u0275dir=a.uc({type:Gp,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Gp),ag=((Hp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Hp)},Hp.\u0275dir=a.uc({type:Hp,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Hp),rg=((Wp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Wp)},Wp.\u0275dir=a.uc({type:Wp,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Wp),og=((Up=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;_classCallCheck(this,i),(o=e.call(this))._element=t,o._isInteractiveList=!1,o._destroyed=new Me.a,o._disabled=!1,o._isInteractiveList=!!(a||r&&"action-list"===r._getListType()),o._list=a||r;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Ol(o._destroyed)).subscribe((function(){n.markForCheck()})),o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){fa(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=mi(t)}}]),i}(Qp)).\u0275fac=function(t){return new(t||Up)(a.zc(a.q),a.zc(a.j),a.zc(tg,8),a.zc(ig,8))},Up.\u0275cmp=a.tc({type:Up,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,ng,!0),a.rc(i,ag,!0),a.rc(i,ha,!0)),2&t&&(a.id(n=a.Tc())&&(e._avatar=n.first),a.id(n=a.Tc())&&(e._icon=n.first),a.id(n=a.Tc())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&a.pc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.ic],ngContentSelectors:jp,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(a.bd(Lp),a.Fc(0,"div",0),a.Ac(1,"div",1),a.ad(2),a.Fc(3,"div",2),a.ad(4,1),a.Ec(),a.ad(5,2),a.Ec()),2&t&&(a.lc(1),a.cd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Aa],encapsulation:2,changeDetection:0}),Up),sg=Wn((function t(){_classCallCheck(this,t)})),cg=Wn((function t(){_classCallCheck(this,t)})),lg={provide:mr,useExisting:Object(a.db)((function(){return hg})),multi:!0},ug=function t(e,i){_classCallCheck(this,t),this.source=e,this.option=i},dg=((Kp=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this))._element=t,r._changeDetector=n,r.selectionList=a,r._selected=!1,r._disabled=!1,r._hasFocus=!1,r.checkboxPosition="after",r._inputsInitialized=!1,r}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this,e=this.selectionList;e._value&&e._value.some((function(i){return e.compareWith(i,t._value)}))&&this._setSelected(!0);var i=this._selected;Promise.resolve().then((function(){(t._selected||i)&&(t.selected=!0,t._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){fa(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var t=this;this.selected&&Promise.resolve().then((function(){t.selected=!1}));var e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(t){this._color=t}},{key:"value",get:function(){return this._value},set:function(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(t){var e=mi(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=mi(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}}]),i}(cg)).\u0275fac=function(t){return new(t||Kp)(a.zc(a.q),a.zc(a.j),a.zc(Object(a.db)((function(){return hg}))))},Kp.\u0275cmp=a.tc({type:Kp,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,ng,!0),a.rc(i,ag,!0),a.rc(i,ha,!0)),2&t&&(a.id(n=a.Tc())&&(e._avatar=n.first),a.id(n=a.Tc())&&(e._icon=n.first),a.id(n=a.Tc())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&a.Bd(Np,!0),2&t&&a.id(i=a.Tc())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&a.Sc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(a.mc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),a.pc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[a.ic],ngContentSelectors:Jp,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(a.bd(Xp),a.Fc(0,"div",0),a.Ac(1,"div",1),a.vd(2,Bp,1,2,"mat-pseudo-checkbox",2),a.Fc(3,"div",3,4),a.ad(5),a.Ec(),a.ad(6,1),a.Ec()),2&t&&(a.pc("mat-list-item-content-reverse","after"==e.checkboxPosition),a.lc(1),a.cd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),a.lc(1),a.cd("ngIf",e.selectionList.multiple))},directives:[Aa,ye.t,Da],encapsulation:2,changeDetection:0}),Kp),hg=((Yp=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._element=t,o._changeDetector=r,o._multiple=!0,o._contentInitialized=!1,o.selectionChange=new a.t,o.tabIndex=0,o.color="accent",o.compareWith=function(t,e){return t===e},o._disabled=!1,o.selectedOptions=new nr(o._multiple),o._tabIndex=-1,o._onChange=function(t){},o._destroyed=new Me.a,o._onTouched=function(){},o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._contentInitialized=!0,this._keyManager=new Xi(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Ol(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(Dn(null),Ol(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(Ol(this._destroyed)).subscribe((function(t){if(t.added){var e,i=_createForOfIteratorHelper(t.added);try{for(i.s();!(e=i.n()).done;)e.value.selected=!0}catch(r){i.e(r)}finally{i.f()}}if(t.removed){var n,a=_createForOfIteratorHelper(t.removed);try{for(a.s();!(n=a.n()).done;)n.value.selected=!1}catch(r){a.e(r)}finally{a.f()}}}))}},{key:"ngOnChanges",value:function(t){var e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(t){this._element.nativeElement.focus(t)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"_removeOptionFromList",value:function(t){var e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(t){var e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,a=Ve(t);switch(e){case 32:case 13:a||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:a||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&Ve(t,"ctrlKey")&&!i.isTyping()?(this.options.find((function(t){return!t.selected}))?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}},{key:"_emitChangeEvent",value:function(t){this.selectionChange.emit(new ug(this,t))}},{key:"_onFocus",value:function(){var t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"_setOptionsFromValues",value:function(t){var e=this;this.options.forEach((function(t){return t._setSelected(!1)})),t.forEach((function(t){var i=e.options.find((function(i){return!i.selected&&e.compareWith(i.value,t)}));i&&i._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(t){return t.selected})).map((function(t){return t.value}))}},{key:"_toggleFocusedOption",value:function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}},{key:"_setAllOptionsSelected",value:function(t){var e=!1;this.options.forEach((function(i){i._setSelected(t)&&(e=!0)})),e&&this._reportValueChange()}},{key:"_isValidIndex",value:function(t){return t>=0&&t*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Yp),fg=(($p=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:$p}),$p.\u0275inj=a.wc({factory:function(t){return new(t||$p)},imports:[[wa,Ta,Bn,Ia,ye.c],wa,Bn,Ia,Mp]}),$p),mg=["mat-menu-item",""],pg=["*"];function gg(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",0),a.Sc("keydown",(function(t){return a.nd(i),a.Wc()._handleKeydown(t)}))("click",(function(){return a.nd(i),a.Wc().closed.emit("click")}))("@transformMenu.start",(function(t){return a.nd(i),a.Wc()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return a.nd(i),a.Wc()._onAnimationDone(t)})),a.Fc(1,"div",1),a.ad(2),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.cd("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),a.mc("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var vg,bg,_g,yg,kg,wg,Cg,xg,Sg={transformMenu:o("transformMenu",[d("void",u({opacity:0,transform:"scale(0.8)"})),f("void => enter",c([p(".mat-menu-content, .mat-mdc-menu-content",s("100ms linear",u({opacity:1}))),s("120ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"scale(1)"}))])),f("* => void",s("100ms 25ms linear",u({opacity:0})))]),fadeInItems:o("fadeInItems",[d("showing",u({opacity:1})),f("void => *",[u({opacity:0}),s("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Eg=((vg=function(){function t(e,i,n,a,r,o,s){_classCallCheck(this,t),this._template=e,this._componentFactoryResolver=i,this._appRef=n,this._injector=a,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=s,this._attached=new Me.a}return _createClass(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new su(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new uu(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}()).\u0275fac=function(t){return new(t||vg)(a.zc(a.V),a.zc(a.n),a.zc(a.g),a.zc(a.x),a.zc(a.Y),a.zc(ye.e),a.zc(a.j))},vg.\u0275dir=a.uc({type:vg,selectors:[["ng-template","matMenuContent",""]]}),vg),Og=new a.w("MAT_MENU_PANEL"),Ag=Wn(Vn((function t(){_classCallCheck(this,t)}))),Tg=((bg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this))._elementRef=t,o._focusMonitor=a,o._parentMenu=r,o.role="menuitem",o._hovered=new Me.a,o._focused=new Me.a,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(_assertThisInitialized(o)),o._document=n,o}return _createClass(i,[{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:"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,i="";if(t.childNodes)for(var n=t.childNodes.length,a=0;a0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(ui(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 i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),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[e]=!0,this._previousElevation=e)}},{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,i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["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(Dn(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){"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){"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=mi(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=mi(t)}},{key:"panelClass",set:function(t){var e=this,i=this._previousPanelClass;i&&i.length&&i.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}()).\u0275fac=function(t){return new(t||yg)(a.zc(a.q),a.zc(a.G),a.zc(Dg))},yg.\u0275dir=a.uc({type:yg,contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,Eg,!0),a.rc(i,Tg,!0),a.rc(i,Tg,!1)),2&t&&(a.id(n=a.Tc())&&(e.lazyContent=n.first),a.id(n=a.Tc())&&(e._allItems=n),a.id(n=a.Tc())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&a.Bd(a.V,!0),2&t&&a.id(i=a.Tc())&&(e.templateRef=i.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"}}),yg),Fg=((_g=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Pg)).\u0275fac=function(t){return Rg(t||_g)},_g.\u0275dir=a.uc({type:_g,features:[a.ic]}),_g),Rg=a.Hc(Fg),Mg=((kg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){return _classCallCheck(this,i),e.call(this,t,n,a)}return i}(Fg)).\u0275fac=function(t){return new(t||kg)(a.zc(a.q),a.zc(a.G),a.zc(Dg))},kg.\u0275cmp=a.tc({type:kg,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[a.kc([{provide:Og,useExisting:Fg},{provide:Fg,useExisting:kg}]),a.ic],ngContentSelectors:pg,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&&(a.bd(),a.vd(0,gg,3,6,"ng-template"))},directives:[ye.q],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:[Sg.transformMenu,Sg.fadeInItems]},changeDetection:0}),kg),zg=new a.w("mat-menu-scroll-strategy"),Lg={provide:zg,deps:[Xu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},jg=Di({passive:!0}),Ng=((xg=function(){function t(e,i,n,r,o,s,c,l){var u=this;_classCallCheck(this,t),this._overlay=e,this._element=i,this._viewContainerRef=n,this._parentMenu=o,this._menuItemInstance=s,this._dir=c,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ze.a.EMPTY,this._hoverSubscription=ze.a.EMPTY,this._menuCloseSubscription=ze.a.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.t,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.t,this.onMenuClose=this.menuClosed,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,jg),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return _createClass(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,jg),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(),i=e.getConfig();this._setPosition(i.positionStrategy),i.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 Fg&&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 Fg?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(ii((function(t){return"void"===t.toState})),ui(1),Ol(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(){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 Eu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",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=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=e[0],n=e[1],a=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),r=a[0],o=a[1],s=r,c=o,l=i,u=n,d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",n=l="end"===i?"start":"end",d="bottom"===r?8:-8):this.menu.overlapTrigger||(s="top"===r?"bottom":"top",c="top"===o?"bottom":"top"),t.withPositions([{originX:i,originY:s,overlayX:l,overlayY:r,offsetY:d},{originX:n,originY:s,overlayX:u,overlayY:r,offsetY:d},{originX:i,originY:c,overlayX:l,overlayY:o,offsetY:-d},{originX:n,originY:c,overlayX:u,overlayY:o,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Be(),a=this._parentMenu?this._parentMenu._hovered().pipe(ii((function(e){return e!==t._menuItemInstance})),ii((function(){return t._menuOpen}))):Be();return Object(al.a)(e,n,a,i)}},{key:"_handleMousedown",value:function(t){mn(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(ii((function(e){return e===t._menuItemInstance&&!e.disabled})),qd(0,pl)).subscribe((function(){t._openedBy="mouse",t.menu instanceof Fg&&t.menu._isAnimating?t.menu._animationDone.pipe(ui(1),qd(0,pl),Ol(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 su(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&&(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}()).\u0275fac=function(t){return new(t||xg)(a.zc(Xu),a.zc(a.q),a.zc(a.Y),a.zc(zg),a.zc(Fg,8),a.zc(Tg,10),a.zc(Cn,8),a.zc(hn))},xg.\u0275dir=a.uc({type:xg,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.Sc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&a.mc("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"]}),xg),Bg=((Cg=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Cg}),Cg.\u0275inj=a.wc({factory:function(t){return new(t||Cg)},providers:[Lg],imports:[Bn]}),Cg),Vg=((wg=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:wg}),wg.\u0275inj=a.wc({factory:function(t){return new(t||wg)},providers:[Lg],imports:[[ye.c,Bn,Ta,id,Bg],Bg]}),wg),Ug={};function Wg(){for(var t=arguments.length,e=new Array(t),i=0;ithis.total&&this.destination.next(t)}}]),i}(Ue.a),Xg=new Set,Jg=((Gg=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Zg}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!Xg.has(t))try{Hg||((Hg=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Hg)),Hg.sheet&&(Hg.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),Xg.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||Gg)(a.Oc(Ei))},Gg.\u0275prov=Object(a.vc)({factory:function(){return new Gg(Object(a.Oc)(Ei))},token:Gg,providedIn:"root"}),Gg);function Zg(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var Qg,tv=((Qg=function(){function t(e,i){_classCallCheck(this,t),this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Me.a}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return ev(vi(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,i=Wg(ev(vi(t)).map((function(t){return e._registerQuery(t).observable})));return(i=Tn(i.pipe(ui(1)),i.pipe((function(t){return t.lift(new Yg(1))}),Ze(0)))).pipe(Object(ri.a)((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 i=this._mediaMatcher.matchMedia(t),n={observable:new si.a((function(t){var n=function(i){return e._zone.run((function(){return t.next(i)}))};return i.addListener(n),function(){i.removeListener(n)}})).pipe(Dn(i),Object(ri.a)((function(e){return{query:t,matches:e.matches}})),Ol(this._destroySubject)),mql:i};return this._queries.set(t,n),n}}]),t}()).\u0275fac=function(t){return new(t||Qg)(a.Oc(Jg),a.Oc(a.G))},Qg.\u0275prov=Object(a.vc)({factory:function(){return new Qg(Object(a.Oc)(Jg),Object(a.Oc)(a.G))},token:Qg,providedIn:"root"}),Qg);function ev(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var iv={tooltipState:o("state",[d("initial, void, hidden",u({opacity:0,transform:"scale(0)"})),d("visible",u({transform:"scale(1)"})),f("* => visible",s("200ms cubic-bezier(0, 0, 0.2, 1)",h([u({opacity:0,transform:"scale(0)",offset:0}),u({opacity:.5,transform:"scale(0.99)",offset:.5}),u({opacity:1,transform:"scale(1)",offset:1})]))),f("* => hidden",s("100ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:0})))])},nv=Di({passive:!0});function av(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var rv,ov,sv,cv,lv=new a.w("mat-tooltip-scroll-strategy"),uv={provide:lv,deps:[Xu],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},dv=new a.w("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),hv=((sv=function(){function t(e,i,n,a,r,o,s,c,l,u,d,h){var f=this;_classCallCheck(this,t),this._overlay=e,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=a,this._ngZone=r,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=u,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Me.a,this._handleKeydown=function(t){f._isTooltipVisible()&&27===t.keyCode&&!Ve(t)&&(t.preventDefault(),t.stopPropagation(),f._ngZone.run((function(){return f.hide(0)})))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),c.monitor(i).pipe(Ol(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return f.show()})):r.run((function(){return f.hide(0)}))})),r.runOutsideAngular((function(){i.nativeElement.addEventListener("keydown",f._handleKeydown)}))}return _createClass(t,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{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,i){t.removeEventListener(i,e,nv)})),this._passiveListeners.clear(),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 i=this._createOverlay();this._detach(),this._portal=this._portal||new ou(fv,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ol(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),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return i.positionChanges.pipe(Ol(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:i,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Ol(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(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i||"below"==i)t={originX:"center",originY:"above"==i?"top":"bottom"};else if("before"==i||"left"==i&&e||"right"==i&&!e)t={originX:"start",originY:"center"};else{if(!("after"==i||"right"==i&&e||"left"==i&&!e))throw av(i);t={originX:"end",originY:"center"}}var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i)t={overlayX:"center",overlayY:"bottom"};else if("below"==i)t={overlayX:"center",overlayY:"top"};else if("before"==i||"left"==i&&e||"right"==i&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==i||"right"==i&&e||"left"==i&&!e))throw av(i);t={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1),Ol(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:"_setupPointerEvents",value:function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,i){t._elementRef.nativeElement.addEventListener(i,e,nv)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.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=mi(t),this._disabled&&this.hide(0)}},{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._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}()).\u0275fac=function(t){return new(t||sv)(a.zc(Xu),a.zc(a.q),a.zc(Xl),a.zc(a.Y),a.zc(a.G),a.zc(Ei),a.zc($i),a.zc(hn),a.zc(lv),a.zc(Cn,8),a.zc(dv,8),a.zc(a.q))},sv.\u0275dir=a.uc({type:sv,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),sv),fv=((ov=function(){function t(e,i){_classCallCheck(this,t),this._changeDetectorRef=e,this._breakpointObserver=i,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Me.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(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}()).\u0275fac=function(t){return new(t||ov)(a.zc(a.j),a.zc(tv))},ov.\u0275cmp=a.tc({type:ov,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e._handleBodyInteraction()}),!1,a.kd),2&t&&a.ud("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(a.Fc(0,"div",0),a.Sc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),a.Xc(1,"async"),a.xd(2),a.Ec()),2&t){var i,n=null==(i=a.Yc(1,5,e._isHandset))?null:i.matches;a.pc("mat-tooltip-handset",n),a.cd("ngClass",e.tooltipClass)("@state",e._visibility),a.lc(2),a.yd(e.message)}},directives:[ye.q],pipes:[ye.b],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:[iv.tooltipState]},changeDetection:0}),ov),mv=((rv=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:rv}),rv.\u0275inj=a.wc({factory:function(t){return new(t||rv)},providers:[uv],imports:[[kn,ye.c,id,Bn],Bn]}),rv),pv=["primaryValueBar"],gv=Un((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),vv=new a.w("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Object(a.eb)(ye.e),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),bv=0,_v=((cv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;_classCallCheck(this,i),(s=e.call(this,t))._elementRef=t,s._ngZone=n,s._animationMode=r,s._isNoopAnimation=!1,s._value=0,s._bufferValue=0,s.animationEnd=new a.t,s._animationEndSubscription=ze.a.EMPTY,s.mode="determinate",s.progressbarId="mat-progress-bar-".concat(bv++);var c=o?o.getPathname().split("#")[0]:"";return s._rectangleFillValue="url('".concat(c,"#").concat(s.progressbarId,"')"),s._isNoopAnimation="NoopAnimations"===r,s}return _createClass(i,[{key:"_primaryTransform",value:function(){return{transform:"scaleX(".concat(this.value/100,")")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scaleX(".concat(this.bufferValue/100,")")}:null}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._primaryValueBar.nativeElement;t._animationEndSubscription=rl(e,"transitionend").pipe(ii((function(t){return t.target===e}))).subscribe((function(){"determinate"!==t.mode&&"buffer"!==t.mode||t._ngZone.run((function(){return t.animationEnd.next({value:t.value})}))}))}))}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}},{key:"value",get:function(){return this._value},set:function(t){this._value=yv(pi(t)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(t){this._bufferValue=yv(t||0)}}]),i}(gv)).\u0275fac=function(t){return new(t||cv)(a.zc(a.q),a.zc(a.G),a.zc(Pe,8),a.zc(vv,8))},cv.\u0275cmp=a.tc({type:cv,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&a.Bd(pv,!0),2&t&&a.id(i=a.Tc())&&(e._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(a.mc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),a.pc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[a.ic],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(a.Vc(),a.Fc(0,"svg",0),a.Fc(1,"defs"),a.Fc(2,"pattern",1),a.Ac(3,"circle",2),a.Ec(),a.Ec(),a.Ac(4,"rect",3),a.Ec(),a.Uc(),a.Ac(5,"div",4),a.Ac(6,"div",5,6),a.Ac(8,"div",7)),2&t&&(a.lc(2),a.cd("id",e.progressbarId),a.lc(2),a.mc("fill",e._rectangleFillValue),a.lc(1),a.cd("ngStyle",e._bufferTransform()),a.lc(1),a.cd("ngStyle",e._primaryTransform()))},directives:[ye.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),cv);function yv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(e,Math.min(i,t))}var kv,wv=((kv=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:kv}),kv.\u0275inj=a.wc({factory:function(t){return new(t||kv)},imports:[[ye.c,Bn],Bn]}),kv);function Cv(t,e){if(1&t&&(a.Vc(),a.Ac(0,"circle",3)),2&t){var i=a.Wc();a.ud("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.mc("r",i._circleRadius)}}function xv(t,e){if(1&t&&(a.Vc(),a.Ac(0,"circle",3)),2&t){var i=a.Wc();a.ud("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.mc("r",i._circleRadius)}}function Sv(t,e){if(1&t&&(a.Vc(),a.Ac(0,"circle",3)),2&t){var i=a.Wc();a.ud("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.mc("r",i._circleRadius)}}function Ev(t,e){if(1&t&&(a.Vc(),a.Ac(0,"circle",3)),2&t){var i=a.Wc();a.ud("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.mc("r",i._circleRadius)}}var Ov,Av,Tv,Dv,Iv,Pv,Fv=Un((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Rv=new a.w("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Mv=((Tv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;_classCallCheck(this,i),(s=e.call(this,t))._elementRef=t,s._document=a,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=i._diameters;return c.has(a.head)||c.set(a.head,new Set([100])),s._fallbackAnimation=n.EDGE||n.TRIDENT,s._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=Pi(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,n=i._diameters,a=n.get(t);if(!a||!a.has(e)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",e+""),r.textContent=this._getAnimationText(),t.appendChild(r),a||(a=new Set,n.set(t,a)),a.add(e)}}},{key:"_getAnimationText",value:function(){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*this._strokeCircumference)).replace(/END_VALUE/g,"".concat(.2*this._strokeCircumference)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=pi(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=pi(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,pi(t)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),i}(Fv)).\u0275fac=function(t){return new(t||Tv)(a.zc(a.q),a.zc(Ei),a.zc(ye.e,8),a.zc(Pe,8),a.zc(Rv))},Tv.\u0275cmp=a.tc({type:Tv,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(a.mc("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),a.ud("width",e.diameter,"px")("height",e.diameter,"px"),a.pc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[a.ic],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&&(a.Vc(),a.Fc(0,"svg",0),a.vd(1,Cv,1,9,"circle",1),a.vd(2,xv,1,7,"circle",2),a.Ec()),2&t&&(a.ud("width",e.diameter,"px")("height",e.diameter,"px"),a.cd("ngSwitch","indeterminate"===e.mode),a.mc("viewBox",e._viewBox),a.lc(1),a.cd("ngSwitchCase",!0),a.lc(1),a.cd("ngSwitchCase",!1))},directives:[ye.x,ye.y],styles:[".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}.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"],encapsulation:2,changeDetection:0}),Tv._diameters=new WeakMap,Tv),zv=((Av=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,t,n,a,r,o)).mode="indeterminate",s}return i}(Mv)).\u0275fac=function(t){return new(t||Av)(a.zc(a.q),a.zc(Ei),a.zc(ye.e,8),a.zc(Pe,8),a.zc(Rv))},Av.\u0275cmp=a.tc({type:Av,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(a.ud("width",e.diameter,"px")("height",e.diameter,"px"),a.pc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[a.ic],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&&(a.Vc(),a.Fc(0,"svg",0),a.vd(1,Sv,1,9,"circle",1),a.vd(2,Ev,1,7,"circle",2),a.Ec()),2&t&&(a.ud("width",e.diameter,"px")("height",e.diameter,"px"),a.cd("ngSwitch","indeterminate"===e.mode),a.mc("viewBox",e._viewBox),a.lc(1),a.cd("ngSwitchCase",!0),a.lc(1),a.cd("ngSwitchCase",!1))},directives:[ye.x,ye.y],styles:[".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}.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"],encapsulation:2,changeDetection:0}),Av),Lv=((Ov=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Ov}),Ov.\u0275inj=a.wc({factory:function(t){return new(t||Ov)},imports:[[Bn,ye.c],Bn]}),Ov),jv=["input"],Nv=function(){return{enterDuration:150}},Bv=["*"],Vv=new a.w("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Uv=0,Wv={provide:mr,useExisting:Object(a.db)((function(){return Gv})),multi:!0},Hv=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},Gv=((Dv=function(){function t(e){_classCallCheck(this,t),this._changeDetector=e,this._value=null,this._name="mat-radio-group-".concat(Uv++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new a.t}return _createClass(t,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var t=this;this._radios&&this._radios.forEach((function(e){e.name=t.name,e._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var t=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(e){e.checked=t.value===e.value,e.checked&&(t._selected=e)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new Hv(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(t){return t._markForCheck()}))}},{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,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mi(t),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mi(t),this._markRadiosForCheck()}}]),t}()).\u0275fac=function(t){return new(t||Dv)(a.zc(a.j))},Dv.\u0275dir=a.uc({type:Dv,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&a.rc(i,$v,!0),2&t&&a.id(n=a.Tc())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[a.kc([Wv])]}),Dv),qv=Wn(Hn((function t(e){_classCallCheck(this,t),this._elementRef=e}))),$v=((Pv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=e.call(this,n))._changeDetector=r,u._focusMonitor=o,u._radioDispatcher=s,u._animationMode=c,u._providerOverride=l,u._uniqueId="mat-radio-".concat(++Uv),u.id=u._uniqueId,u.change=new a.t,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=t,u._removeUniqueSelectionListener=s.listen((function(t,e){t!==u.id&&e===u.name&&(u.checked=!1)})),u}return _createClass(i,[{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){!e&&t.radioGroup&&t.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new Hv(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"_onInputChange",value:function(t){t.stopPropagation();var e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(t){var e=mi(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(t){this._setDisabled(mi(t))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=mi(t)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(t){this._color=t}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),i}(qv)).\u0275fac=function(t){return new(t||Pv)(a.zc(Gv,8),a.zc(a.q),a.zc(a.j),a.zc(hn),a.zc(ar),a.zc(Pe,8),a.zc(Vv,8))},Pv.\u0275cmp=a.tc({type:Pv,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&a.Bd(jv,!0),2&t&&a.id(i=a.Tc())&&(e._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&a.Sc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(a.mc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),a.pc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[a.ic],ngContentSelectors:Bv,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(a.bd(),a.Fc(0,"label",0,1),a.Fc(2,"div",2),a.Ac(3,"div",3),a.Ac(4,"div",4),a.Fc(5,"input",5,6),a.Sc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),a.Ec(),a.Fc(7,"div",7),a.Ac(8,"div",8),a.Ec(),a.Ec(),a.Fc(9,"div",9),a.Fc(10,"span",10),a.xd(11,"\xa0"),a.Ec(),a.ad(12),a.Ec(),a.Ec()),2&t){var i=a.jd(1);a.mc("for",e.inputId),a.lc(5),a.cd("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),a.mc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),a.lc(2),a.cd("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.ed(18,Nv)),a.lc(2),a.pc("mat-radio-label-before","before"==e.labelPosition)}},directives:[Aa],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),Pv),Yv=((Iv=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Iv}),Iv.\u0275inj=a.wc({factory:function(t){return new(t||Iv)},imports:[[Ta,Bn],Bn]}),Iv),Kv=["trigger"],Xv=["panel"];function Jv(t,e){if(1&t&&(a.Fc(0,"span",8),a.xd(1),a.Ec()),2&t){var i=a.Wc();a.lc(1),a.yd(i.placeholder||"\xa0")}}function Zv(t,e){if(1&t&&(a.Fc(0,"span"),a.xd(1),a.Ec()),2&t){var i=a.Wc(2);a.lc(1),a.yd(i.triggerValue||"\xa0")}}function Qv(t,e){1&t&&a.ad(0,0,["*ngSwitchCase","true"])}function tb(t,e){if(1&t&&(a.Fc(0,"span",9),a.vd(1,Zv,2,1,"span",10),a.vd(2,Qv,1,0,void 0,11),a.Ec()),2&t){var i=a.Wc();a.cd("ngSwitch",!!i.customTrigger),a.lc(2),a.cd("ngSwitchCase",!0)}}function eb(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",12),a.Fc(1,"div",13,14),a.Sc("@transformPanel.done",(function(t){return a.nd(i),a.Wc()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return a.nd(i),a.Wc()._handleKeydown(t)})),a.ad(3,1),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.cd("@transformPanelWrap",void 0),a.lc(1),a.oc("mat-select-panel ",n._getPanelTheme(),""),a.ud("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),a.cd("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing")}}var ib,nb,ab,rb=[[["mat-select-trigger"]],"*"],ob=["mat-select-trigger","*"],sb={transformPanelWrap:o("transformPanelWrap",[f("* => void",p("@transformPanel",[m()],{optional:!0}))]),transformPanel:o("transformPanel",[d("void",u({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d("showing",u({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d("showing-multiple",u({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),f("void => *",s("120ms cubic-bezier(0, 0, 0.2, 1)")),f("* => void",s("100ms 25ms linear",u({opacity:0})))])},cb=0,lb=new a.w("mat-select-scroll-strategy"),ub=new a.w("MAT_SELECT_CONFIG"),db={provide:lb,deps:[Xu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},hb=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},fb=Wn(Hn(Vn(Gn((function t(e,i,n,a,r){_classCallCheck(this,t),this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=a,this.ngControl=r}))))),mb=((ab=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ab)},ab.\u0275dir=a.uc({type:ab,selectors:[["mat-select-trigger"]]}),ab),pb=((nb=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l,u,d,h,f,m,p,g){var v;return _classCallCheck(this,i),(v=e.call(this,s,o,l,u,h))._viewportRuler=t,v._changeDetectorRef=n,v._ngZone=r,v._dir=c,v._parentFormField=d,v.ngControl=h,v._liveAnnouncer=p,v._panelOpen=!1,v._required=!1,v._scrollTop=0,v._multiple=!1,v._compareWith=function(t,e){return t===e},v._uid="mat-select-".concat(cb++),v._destroy=new Me.a,v._triggerFontSize=0,v._onChange=function(){},v._onTouched=function(){},v._optionIds="",v._transformOrigin="top",v._panelDoneAnimatingStream=new Me.a,v._offsetY=0,v._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],v._disableOptionCentering=!1,v._focused=!1,v.controlType="mat-select",v.ariaLabel="",v.optionSelectionChanges=nl((function(){var t=v.options;return t?t.changes.pipe(Dn(t),Il((function(){return Object(al.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.onSelectionChange}))))}))):v._ngZone.onStable.asObservable().pipe(ui(1),Il((function(){return v.optionSelectionChanges})))})),v.openedChange=new a.t,v._openedStream=v.openedChange.pipe(ii((function(t){return t})),Object(ri.a)((function(){}))),v._closedStream=v.openedChange.pipe(ii((function(t){return!t})),Object(ri.a)((function(){}))),v.selectionChange=new a.t,v.valueChange=new a.t,v.ngControl&&(v.ngControl.valueAccessor=_assertThisInitialized(v)),v._scrollStrategyFactory=m,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(f)||0,v.id=v.id,g&&(null!=g.disableOptionCentering&&(v.disableOptionCentering=g.disableOptionCentering),null!=g.typeaheadDebounceInterval&&(v.typeaheadDebounceInterval=g.typeaheadDebounceInterval)),v}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new nr(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(gl(),Ol(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(Ol(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(Ol(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(Dn(null),Ol(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(ui(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.options&&this._setSelectionByValue(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,i=40===e||38===e||37===e||39===e,n=13===e||32===e,a=this._keyManager;if(!a.isTyping()&&n&&!Ve(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===e||35===e?(36===e?a.setFirstItemActive():a.setLastItemActive(),t.preventDefault()):a.onKeydown(t);var o=this.selected;o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,i=t.keyCode,n=40===i||38===i,a=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(a||13!==i&&32!==i||!e.activeItem||Ve(t))if(!a&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();var r=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(r?t.select():t.deselect())}))}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&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(ui(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 i=this._selectValue(t);i?this._keyManager.setActiveItem(i):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,i=this.options.find((function(i){try{return null!=i.value&&e._compareWith(i.value,t)}catch(n){return Object(a.fb)()&&console.warn(n),!1}}));return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new Ki(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ol(this._destroy)).subscribe((function(){!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close()})),this._keyManager.change.pipe(Ol(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=Object(al.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ol(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Object(al.a).apply(void 0,_toConsumableArray(this.options.map((function(t){return t._stateChanges})))).pipe(Ol(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(t,e){var i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==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(),this._propagateChanges(t.value)),i!==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(i,n){return t.sortComparator?t.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)})),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 hb(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=Ba(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Va(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,i,n){return void 0!==e?e:t===i?n:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i,a=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);a+=Ba(a,this.options,this.optionGroups);var r=i/2;this._scrollTop=this._calculateOverlayScroll(a,r,n),this._offsetY=this._calculateOverlayOffsetY(a,r,n),this._checkOverlayWithinViewport(n)}},{key:"_calculateOverlayScroll",value:function(t,e,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}},{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(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),a=this.multiple?56:32;if(this.multiple)t=40;else{var r=this._selectionModel.selected[0]||this.options.first;t=r&&r.group?32:16}n||(t*=-1);var o=0-(e.left+t-(n?a:0)),s=e.right+t-i.width+(n?0:a);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,i){var n,a=this._getItemHeight(),r=(a-this._triggerRect.height)/2,o=Math.floor(256/a);return this._disableOptionCentering?0:(n=0===this._scrollTop?t*a:this._scrollTop===i?(t-(this._getItemCount()-o))*a+(a-(this._getItemCount()*a-256)%a):e-a/2,Math.round(-1*n-r))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,a=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>a?this._adjustPanelUp(o,a):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,i){var n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"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=mi(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=mi(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=mi(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.writeValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=pi(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}}]),i}(fb)).\u0275fac=function(t){return new(t||nb)(a.zc(Zl),a.zc(a.j),a.zc(a.G),a.zc(da),a.zc(a.q),a.zc(Cn,8),a.zc(qo,8),a.zc(os,8),a.zc(Wd,8),a.zc(Er,10),a.Pc("tabindex"),a.zc(lb),a.zc(ln),a.zc(ub,8))},nb.\u0275cmp=a.tc({type:nb,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,mb,!0),a.rc(i,Na,!0),a.rc(i,Ra,!0)),2&t&&(a.id(n=a.Tc())&&(e.customTrigger=n.first),a.id(n=a.Tc())&&(e.options=n),a.id(n=a.Tc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(a.Bd(Kv,!0),a.Bd(Xv,!0),a.Bd(td,!0)),2&t&&(a.id(i=a.Tc())&&(e.trigger=i.first),a.id(i=a.Tc())&&(e.panel=i.first),a.id(i=a.Tc())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&a.Sc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(a.mc("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()),a.pc("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:[a.kc([{provide:Sd,useExisting:nb},{provide:ja,useExisting:nb}]),a.ic,a.jc],ngContentSelectors:ob,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&&(a.bd(rb),a.Fc(0,"div",0,1),a.Sc("click",(function(){return e.toggle()})),a.Fc(3,"div",2),a.vd(4,Jv,2,1,"span",3),a.vd(5,tb,3,2,"span",4),a.Ec(),a.Fc(6,"div",5),a.Ac(7,"div",6),a.Ec(),a.Ec(),a.vd(8,eb,4,10,"ng-template",7),a.Sc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var i=a.jd(1);a.lc(3),a.cd("ngSwitch",e.empty),a.lc(1),a.cd("ngSwitchCase",!0),a.lc(1),a.cd("ngSwitchCase",!1),a.lc(3),a.cd("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Qu,ye.x,ye.y,td,ye.z,ye.q],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:[sb.transformPanelWrap,sb.transformPanel]},changeDetection:0}),nb),gb=((ib=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:ib}),ib.\u0275inj=a.wc({factory:function(t){return new(t||ib)},providers:[db],imports:[[ye.c,id,qa,Bn],Gd,qa,Bn]}),ib),vb=["*"];function bb(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",2),a.Sc("click",(function(){return a.nd(i),a.Wc()._onBackdropClicked()})),a.Ec()}if(2&t){var n=a.Wc();a.pc("mat-drawer-shown",n._isShowingBackdrop())}}function _b(t,e){1&t&&(a.Fc(0,"mat-drawer-content"),a.ad(1,2),a.Ec())}var yb=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],kb=["mat-drawer","mat-drawer-content","*"];function wb(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",2),a.Sc("click",(function(){return a.nd(i),a.Wc()._onBackdropClicked()})),a.Ec()}if(2&t){var n=a.Wc();a.pc("mat-drawer-shown",n._isShowingBackdrop())}}function Cb(t,e){1&t&&(a.Fc(0,"mat-sidenav-content",3),a.ad(1,2),a.Ec())}var xb=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Sb=["mat-sidenav","mat-sidenav-content","*"],Eb={transformDrawer:o("transform",[d("open, open-instant",u({transform:"none",visibility:"visible"})),d("void",u({"box-shadow":"none",visibility:"hidden"})),f("void => open-instant",s("0ms")),f("void <=> open, open-instant => void",s("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Ob(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var Ab,Tb,Db,Ib,Pb,Fb,Rb,Mb,zb,Lb,jb,Nb=new a.w("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Bb=new a.w("MAT_DRAWER_CONTAINER"),Vb=((Pb=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,a,r,o))._changeDetectorRef=t,s._container=n,s}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),i}(Jl)).\u0275fac=function(t){return new(t||Pb)(a.zc(a.j),a.zc(Object(a.db)((function(){return Wb}))),a.zc(a.q),a.zc(Xl),a.zc(a.G))},Pb.\u0275cmp=a.tc({type:Pb,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.ud("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.ic],ngContentSelectors:vb,decls:1,vars:0,template:function(t,e){1&t&&(a.bd(),a.ad(0))},encapsulation:2,changeDetection:0}),Pb),Ub=((Ib=function(){function t(e,i,n,r,o,s,c){var l=this;_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Me.a,this._animationEnd=new Me.a,this._animationState="void",this.openedChange=new a.t(!0),this._destroyed=new Me.a,this.onPositionChanged=new a.t,this._modeChanged=new Me.a,this.openedChange.subscribe((function(t){t?(l._doc&&(l._elementFocusedBeforeDrawerWasOpened=l._doc.activeElement),l._takeFocus()):l._restoreFocus()})),this._ngZone.runOutsideAngular((function(){rl(l._elementRef.nativeElement,"keydown").pipe(ii((function(t){return 27===t.keyCode&&!l.disableClose&&!Ve(t)})),Ol(l._destroyed)).subscribe((function(t){return l._ngZone.run((function(){l.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(gl((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,i=t.toState;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&l.openedChange.emit(l._opened)}))}return _createClass(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(e){t.openedChange.pipe(ui(1)).subscribe((function(t){return e(t?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=mi(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=mi(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(mi(t))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(ii((function(t){return t})),Object(ri.a)((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(ii((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),Object(ri.a)((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(ii((function(t){return!t})),Object(ri.a)((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(ii((function(t){return t.fromState!==t.toState&&"void"===t.toState})),Object(ri.a)((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),t}()).\u0275fac=function(t){return new(t||Ib)(a.zc(a.q),a.zc(nn),a.zc(hn),a.zc(Ei),a.zc(a.G),a.zc(ye.e,8),a.zc(Bb,8))},Ib.\u0275cmp=a.tc({type:Ib,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.qc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(a.mc("align",null),a.Ad("@transform",e._animationState),a.pc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:vb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.bd(),a.Fc(0,"div",0),a.ad(1),a.Ec())},encapsulation:2,data:{animation:[Eb.transformDrawer]},changeDetection:0}),Ib),Wb=((Db=function(){function t(e,i,n,r,o){var s=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._dir=e,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new a.L,this.backdropClick=new a.t,this._destroyed=new Me.a,this._doCheckSubject=new Me.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Me.a,e&&e.change.pipe(Ol(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(Ol(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=c}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Dn(this._allDrawers),Ol(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Dn(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Ze(10),Ol(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(t){return t.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(t){return t.close()}))}},{key:"updateContentMargins",value:function(){var t=this,e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var n=this._left._width;e+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._width;else if("push"==this._right.mode){var a=this._right._width;i+=a,e-=a}i=i||null,(e=e||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:e,right:i},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(ii((function(t){return t.fromState!==t.toState})),Ol(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(Ol(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(Ol(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1)).subscribe((function(){e._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(Ol(Object(al.a)(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&Ob("end"),t._end=e):(null!=t._start&&Ob("start"),t._start=e)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=mi(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:mi(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||Db)(a.zc(Cn,8),a.zc(a.q),a.zc(a.G),a.zc(a.j),a.zc(Zl),a.zc(Nb),a.zc(Pe,8))},Db.\u0275cmp=a.tc({type:Db,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,Vb,!0),a.rc(i,Ub,!0)),2&t&&(a.id(n=a.Tc())&&(e._content=n.first),a.id(n=a.Tc())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&a.Bd(Vb,!0),2&t&&a.id(i=a.Tc())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.pc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.kc([{provide:Bb,useExisting:Db}])],ngContentSelectors:kb,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(a.bd(yb),a.vd(0,bb,1,2,"div",0),a.ad(1),a.ad(2,1),a.vd(3,_b,2,0,"mat-drawer-content",1)),2&t&&(a.cd("ngIf",e.hasBackdrop),a.lc(3),a.cd("ngIf",!e._content))},directives:[ye.t,Vb],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Db),Hb=((Tb=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){return _classCallCheck(this,i),e.call(this,t,n,a,r,o)}return i}(Vb)).\u0275fac=function(t){return new(t||Tb)(a.zc(a.j),a.zc(Object(a.db)((function(){return $b}))),a.zc(a.q),a.zc(Xl),a.zc(a.G))},Tb.\u0275cmp=a.tc({type:Tb,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.ud("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.ic],ngContentSelectors:vb,decls:1,vars:0,template:function(t,e){1&t&&(a.bd(),a.ad(0))},encapsulation:2,changeDetection:0}),Tb),Gb=((Ab=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _createClass(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=mi(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=pi(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=pi(t)}}]),i}(Ub)).\u0275fac=function(t){return qb(t||Ab)},Ab.\u0275cmp=a.tc({type:Ab,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.mc("align",null),a.ud("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.pc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.ic],ngContentSelectors:vb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.bd(),a.Fc(0,"div",0),a.ad(1),a.Ec())},encapsulation:2,data:{animation:[Eb.transformDrawer]},changeDetection:0}),Ab),qb=a.Hc(Gb),$b=((Fb=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Wb)).\u0275fac=function(t){return Yb(t||Fb)},Fb.\u0275cmp=a.tc({type:Fb,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,Hb,!0),a.rc(i,Gb,!0)),2&t&&(a.id(n=a.Tc())&&(e._content=n.first),a.id(n=a.Tc())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.pc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.kc([{provide:Bb,useExisting:Fb}]),a.ic],ngContentSelectors:Sb,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.bd(xb),a.vd(0,wb,1,2,"div",0),a.ad(1),a.ad(2,1),a.vd(3,Cb,2,0,"mat-sidenav-content",1)),2&t&&(a.cd("ngIf",e.hasBackdrop),a.lc(3),a.cd("ngIf",!e._content))},directives:[ye.t,Hb,Jl],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Fb),Yb=a.Hc($b),Kb=((Rb=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Rb}),Rb.\u0275inj=a.wc({factory:function(t){return new(t||Rb)},imports:[[ye.c,Bn,Ql,Oi],Bn]}),Rb),Xb=["thumbContainer"],Jb=["toggleBar"],Zb=["input"],Qb=function(){return{enterDuration:150}},t_=["*"],e_=new a.w("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),i_=0,n_={provide:mr,useExisting:Object(a.db)((function(){return o_})),multi:!0},a_=function t(e,i){_classCallCheck(this,t),this.source=e,this.checked=i},r_=Hn(Un(Wn(Vn((function t(e){_classCallCheck(this,t),this._elementRef=e}))),"accent")),o_=((Mb=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=e.call(this,t))._focusMonitor=n,d._changeDetectorRef=r,d.defaults=c,d._animationMode=l,d._onChange=function(t){},d._onTouched=function(){},d._uniqueId="mat-slide-toggle-".concat(++i_),d._required=!1,d._checked=!1,d.name=null,d.id=d._uniqueId,d.labelPosition="after",d.ariaLabel=null,d.ariaLabelledby=null,d.change=new a.t,d.toggleChange=new a.t,d.dragChange=new a.t,d.tabIndex=parseInt(o)||0,d}return _createClass(i,[{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 a_(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mi(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=mi(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),i}(r_)).\u0275fac=function(t){return new(t||Mb)(a.zc(a.q),a.zc(hn),a.zc(a.j),a.Pc("tabindex"),a.zc(a.G),a.zc(e_),a.zc(Pe,8),a.zc(Cn,8))},Mb.\u0275cmp=a.tc({type:Mb,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(a.Bd(Xb,!0),a.Bd(Jb,!0),a.Bd(Zb,!0)),2&t&&(a.id(i=a.Tc())&&(e._thumbEl=i.first),a.id(i=a.Tc())&&(e._thumbBarEl=i.first),a.id(i=a.Tc())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(a.Ic("id",e.id),a.mc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),a.pc("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",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[a.kc([n_]),a.ic],ngContentSelectors:t_,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&&(a.bd(),a.Fc(0,"label",0,1),a.Fc(2,"div",2,3),a.Fc(4,"input",4,5),a.Sc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),a.Ec(),a.Fc(6,"div",6,7),a.Ac(8,"div",8),a.Fc(9,"div",9),a.Ac(10,"div",10),a.Ec(),a.Ec(),a.Ec(),a.Fc(11,"span",11,12),a.Sc("cdkObserveContent",(function(){return e._onLabelTextChange()})),a.Fc(13,"span",13),a.xd(14,"\xa0"),a.Ec(),a.ad(15),a.Ec(),a.Ec()),2&t){var i=a.jd(1),n=a.jd(12);a.mc("for",e.inputId),a.lc(2),a.pc("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),a.lc(2),a.cd("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),a.mc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),a.lc(5),a.cd("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.ed(17,Qb))}},directives:[Aa,Ni],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}),Mb),s_={provide:Ir,useExisting:Object(a.db)((function(){return c_})),multi:!0},c_=((zb=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Xs)).\u0275fac=function(t){return l_(t||zb)},zb.\u0275dir=a.uc({type:zb,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[a.kc([s_]),a.ic]}),zb),l_=a.Hc(c_),u_=((jb=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:jb}),jb.\u0275inj=a.wc({factory:function(t){return new(t||jb)}}),jb),d_=((Lb=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Lb}),Lb.\u0275inj=a.wc({factory:function(t){return new(t||Lb)},imports:[[u_,Ta,Bn,Bi],u_,Bn]}),Lb);function h_(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",1),a.Fc(1,"button",2),a.Sc("click",(function(){return a.nd(i),a.Wc().action()})),a.xd(2),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(2),a.yd(n.data.action)}}function f_(t,e){}var m_,p_,g_,v_,b_,__,y_,k_=Math.pow(2,31)-1,w_=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._overlayRef=i,this._afterDismissed=new Me.a,this._afterOpened=new Me.a,this._onAction=new Me.a,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe((function(){return n.dismiss()})),e._onExit.subscribe((function(){return n._finishDismiss()}))}return _createClass(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,k_))}},{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}(),C_=new a.w("MatSnackBarData"),x_=function t(){_classCallCheck(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},S_=((m_=function(){function t(e,i){_classCallCheck(this,t),this.snackBarRef=e,this.data=i}return _createClass(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}()).\u0275fac=function(t){return new(t||m_)(a.zc(w_),a.zc(C_))},m_.\u0275cmp=a.tc({type:m_,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&&(a.Fc(0,"span"),a.xd(1),a.Ec(),a.vd(2,h_,3,1,"div",0)),2&t&&(a.lc(1),a.yd(e.data.message),a.lc(1),a.cd("ngIf",e.hasAction))},directives:[ye.t,Za],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}),m_),E_={snackBarState:o("state",[d("void, hidden",u({transform:"scale(0.8)",opacity:0})),d("visible",u({transform:"scale(1)",opacity:1})),f("* => visible",s("150ms cubic-bezier(0, 0, 0.2, 1)")),f("* => void, * => hidden",s("75ms cubic-bezier(0.4, 0.0, 1, 1)",u({opacity:0})))])},O_=((g_=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this))._ngZone=t,o._elementRef=n,o._changeDetectorRef=a,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new Me.a,o._onEnter=new Me.a,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return _createClass(i,[{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.fromState,i=t.toState;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){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(ui(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")}}]),i}(lu)).\u0275fac=function(t){return new(t||g_)(a.zc(a.G),a.zc(a.q),a.zc(a.j),a.zc(x_))},g_.\u0275cmp=a.tc({type:g_,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&a.td(hu,!0),2&t&&a.id(i=a.Tc())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&a.qc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(a.mc("role",e._role),a.Ad("@state",e._animationState))},features:[a.ic],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.vd(0,f_,0,0,"ng-template",0)},directives:[hu],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:[E_.snackBarState]}}),g_),A_=((p_=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:p_}),p_.\u0275inj=a.wc({factory:function(t){return new(t||p_)},imports:[[id,pu,ye.c,tr,Bn],Bn]}),p_),T_=new a.w("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new x_}}),D_=((v_=function(){function t(e,i,n,a,r,o){_classCallCheck(this,t),this._overlay=e,this._live=i,this._injector=n,this._breakpointObserver=a,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return _createClass(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]:"",i=arguments.length>2?arguments[2]:void 0,n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage||(n.announcementMessage=t),this.openFromComponent(S_,n)}},{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 i=new gu(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[x_,e]])),n=new ou(O_,e.viewContainerRef,i),a=t.attach(n);return a.instance.snackBarConfig=e,a.instance}},{key:"_attach",value:function(t,e){var i=Object.assign(Object.assign(Object.assign({},new x_),this._defaultConfig),e),n=this._createOverlay(i),r=this._attachSnackBarContainer(n,i),o=new w_(r,n);if(t instanceof a.V){var s=new su(t,null,{$implicit:i.data,snackBarRef:o});o.instance=r.attachTemplatePortal(s)}else{var c=this._createInjector(i,o),l=new ou(t,void 0,c),u=r.attachComponentPortal(l);o.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Ol(n.detachments())).subscribe((function(t){var e=n.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var i=this;t.afterDismissed().subscribe((function(){i._openedSnackBarRef==t&&(i._openedSnackBarRef=null),e.announcementMessage&&i._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 Eu;e.direction=t.direction;var i=this._overlay.position().global(),n="rtl"===t.direction,a="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!n||"end"===t.horizontalPosition&&n,r=!a&&"center"!==t.horizontalPosition;return a?i.left("0"):r?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return new gu(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[w_,e],[C_,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}()).\u0275fac=function(t){return new(t||v_)(a.Oc(Xu),a.Oc(ln),a.Oc(a.x),a.Oc(tv),a.Oc(v_,12),a.Oc(T_))},v_.\u0275prov=Object(a.vc)({factory:function(){return new v_(Object(a.Oc)(Xu),Object(a.Oc)(ln),Object(a.Oc)(a.u),Object(a.Oc)(tv),Object(a.Oc)(v_,12),Object(a.Oc)(T_))},token:v_,providedIn:A_}),v_),I_=["*",[["mat-toolbar-row"]]],P_=["*","mat-toolbar-row"],F_=Un((function t(e){_classCallCheck(this,t),this._elementRef=e})),R_=((y_=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||y_)},y_.\u0275dir=a.uc({type:y_,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),y_),M_=((__=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t))._platform=n,r._document=a,r}return _createClass(i,[{key:"ngAfterViewInit",value:function(){var t=this;Object(a.fb)()&&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.")}()}}]),i}(F_)).\u0275fac=function(t){return new(t||__)(a.zc(a.q),a.zc(Ei),a.zc(ye.e))},__.\u0275cmp=a.tc({type:__,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){var n;1&t&&a.rc(i,R_,!0),2&t&&a.id(n=a.Tc())&&(e._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&a.pc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.ic],ngContentSelectors:P_,decls:2,vars:0,template:function(t,e){1&t&&(a.bd(I_),a.ad(0),a.ad(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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),__),z_=((b_=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:b_}),b_.\u0275inj=a.wc({factory:function(t){return new(t||b_)},imports:[[Bn],Bn]}),b_);function L_(t,e){1&t&&a.ad(0)}var j_=["*"];function N_(t,e){}var B_=function(t){return{animationDuration:t}},V_=function(t,e){return{value:t,params:e}},U_=["tabBodyWrapper"],W_=["tabHeader"];function H_(t,e){}function G_(t,e){if(1&t&&a.vd(0,H_,0,0,"ng-template",9),2&t){var i=a.Wc().$implicit;a.cd("cdkPortalOutlet",i.templateLabel)}}function q_(t,e){if(1&t&&a.xd(0),2&t){var i=a.Wc().$implicit;a.yd(i.textLabel)}}function $_(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",6),a.Sc("click",(function(){a.nd(i);var t=e.$implicit,n=e.index,r=a.Wc(),o=a.jd(1);return r._handleClick(t,o,n)})),a.Fc(1,"div",7),a.vd(2,G_,1,1,"ng-template",8),a.vd(3,q_,1,1,"ng-template",8),a.Ec(),a.Ec()}if(2&t){var n=e.$implicit,r=e.index,o=a.Wc();a.pc("mat-tab-label-active",o.selectedIndex==r),a.cd("id",o._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||o.disableRipple),a.mc("tabIndex",o._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),a.lc(2),a.cd("ngIf",n.templateLabel),a.lc(1),a.cd("ngIf",!n.templateLabel)}}function Y_(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-tab-body",10),a.Sc("_onCentered",(function(){return a.nd(i),a.Wc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return a.nd(i),a.Wc()._setTabBodyWrapperHeight(t)})),a.Ec()}if(2&t){var n=e.$implicit,r=e.index,o=a.Wc();a.pc("mat-tab-body-active",o.selectedIndex==r),a.cd("id",o._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",o.animationDuration),a.mc("aria-labelledby",o._getTabLabelId(r))}}var K_,X_,J_,Z_,Q_,ty,ey,iy,ny,ay,ry,oy,sy,cy,ly,uy,dy,hy,fy=["tabListContainer"],my=["tabList"],py=["nextPaginator"],gy=["previousPaginator"],vy=["mat-tab-nav-bar",""],by=new a.w("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),_y=((J_=function(){function t(e,i,n,a){_classCallCheck(this,t),this._elementRef=e,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=a}return _createClass(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),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}]),t}()).\u0275fac=function(t){return new(t||J_)(a.zc(a.q),a.zc(a.G),a.zc(by),a.zc(Pe,8))},J_.\u0275dir=a.uc({type:J_,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),J_),yy=((X_=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||X_)(a.zc(a.V))},X_.\u0275dir=a.uc({type:X_,selectors:[["","matTabContent",""]]}),X_),ky=((K_=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(du)).\u0275fac=function(t){return wy(t||K_)},K_.\u0275dir=a.uc({type:K_,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.ic]}),K_),wy=a.Hc(ky),Cy=Vn((function t(){_classCallCheck(this,t)})),xy=new a.w("MAT_TAB_GROUP"),Sy=((Z_=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this))._viewContainerRef=t,a._closestTabGroup=n,a.textLabel="",a._contentPortal=null,a._stateChanges=new Me.a,a.position=null,a.origin=null,a.isActive=!1,a}return _createClass(i,[{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 su(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}}]),i}(Cy)).\u0275fac=function(t){return new(t||Z_)(a.zc(a.Y),a.zc(xy,8))},Z_.\u0275cmp=a.tc({type:Z_,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,ky,!0),a.sd(i,yy,!0,a.V)),2&t&&(a.id(n=a.Tc())&&(e.templateLabel=n.first),a.id(n=a.Tc())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;1&t&&a.td(a.V,!0),2&t&&a.id(i=a.Tc())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.ic,a.jc],ngContentSelectors:j_,decls:1,vars:0,template:function(t,e){1&t&&(a.bd(),a.vd(0,L_,1,0,"ng-template"))},encapsulation:2}),Z_),Ey={translateTab:o("translateTab",[d("center, void, left-origin-center, right-origin-center",u({transform:"none"})),d("left",u({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),d("right",u({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),f("* => left, * => right, left => center, right => center",s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),f("void => left-origin-center",[u({transform:"translate3d(-100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),f("void => right-origin-center",[u({transform:"translate3d(100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Oy=((ey=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n,r))._host=a,o._centeringSub=ze.a.EMPTY,o._leavingSub=ze.a.EMPTY,o}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Dn(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(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(hu)).\u0275fac=function(t){return new(t||ey)(a.zc(a.n),a.zc(a.Y),a.zc(Object(a.db)((function(){return Ty}))),a.zc(ye.e))},ey.\u0275dir=a.uc({type:ey,selectors:[["","matTabBodyHost",""]],features:[a.ic]}),ey),Ay=((ty=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this._elementRef=e,this._dir=i,this._dirChangeSubscription=ze.a.EMPTY,this._translateTabComplete=new Me.a,this._onCentering=new a.t,this._beforeCentering=new a.t,this._afterLeavingCenter=new a.t,this._onCentered=new a.t(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe((function(t){r._computePositionAnimationState(t),n.markForCheck()}))),this._translateTabComplete.pipe(gl((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 _createClass(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}()).\u0275fac=function(t){return new(t||ty)(a.zc(a.q),a.zc(Cn,8),a.zc(a.j))},ty.\u0275dir=a.uc({type:ty,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ty),Ty=((Q_=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){return _classCallCheck(this,i),e.call(this,t,n,a)}return i}(Ay)).\u0275fac=function(t){return new(t||Q_)(a.zc(a.q),a.zc(Cn,8),a.zc(a.j))},Q_.\u0275cmp=a.tc({type:Q_,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&a.Bd(fu,!0),2&t&&a.id(i=a.Tc())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[a.ic],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Fc(0,"div",0,1),a.Sc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),a.vd(2,N_,0,0,"ng-template",2),a.Ec()),2&t&&a.cd("@translateTab",a.gd(3,V_,e._position,a.fd(1,B_,e.animationDuration)))},directives:[Oy],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:[Ey.translateTab]}}),Q_),Dy=new a.w("MAT_TABS_CONFIG"),Iy=0,Py=function t(){_classCallCheck(this,t)},Fy=Un(Wn((function t(e){_classCallCheck(this,t),this._elementRef=e})),"primary"),Ry=((ny=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,t))._changeDetectorRef=n,s._animationMode=o,s._tabs=new a.L,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=ze.a.EMPTY,s._tabLabelSubscription=ze.a.EMPTY,s._dynamicHeight=!1,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new a.t,s.focusChange=new a.t,s.animationDone=new a.t,s.selectedTabChange=new a.t(!0),s._groupId=Iy++,s.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",s.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,s}return _createClass(i,[{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var i=null==this._selectedIndex;i||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,i){return t.isActive=i===e})),i||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(i,n){i.position=n-e,null==t._selectedIndex||0!=i.position||i.origin||(i.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(),i=0;i.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}),iy),zy=Vn((function t(){_classCallCheck(this,t)})),Ly=((ay=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).elementRef=t,n}return _createClass(i,[{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}}]),i}(zy)).\u0275fac=function(t){return new(t||ay)(a.zc(a.q))},ay.\u0275dir=a.uc({type:ay,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.mc("aria-disabled",!!e.disabled),a.pc("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.ic]}),ay),jy=Di({passive:!0}),Ny=((ly=function(){function t(e,i,n,r,o,s,c){var l=this;_classCallCheck(this,t),this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Me.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Me.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.t,this.indexFocused=new a.t,o.runOutsideAngular((function(){rl(e.nativeElement,"mouseleave").pipe(Ol(l._destroyed)).subscribe((function(){l._stopInterval()}))}))}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this;rl(this._previousPaginator.nativeElement,"touchstart",jy).pipe(Ol(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),rl(this._nextPaginator.nativeElement,"touchstart",jy).pipe(Ol(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Be(null),i=this._viewportRuler.change(150),n=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new Xi(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(al.a)(e,i,this._items.changes).pipe(Ol(this._destroyed)).subscribe((function(){n(),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(Ol(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(!Ve(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.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,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?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,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(i),"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 i,n,a=this._tabListContainer.nativeElement.offsetWidth,r=e.elementRef.nativeElement,o=r.offsetLeft,s=r.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=o)+s:i=(n=this._tabList.nativeElement.offsetWidth-o)-s;var c=this.scrollDistance,l=this.scrollDistance+a;il&&(this.scrollDistance+=n-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 i=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),xl(650,100).pipe(Ol(Object(al.a)(this._stopScrolling,this._destroyed))).subscribe((function(){var e=i._scrollHeader(t),n=e.maxScrollDistance,a=e.distance;(0===a||a>=n)&&i._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=pi(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}()).\u0275fac=function(t){return new(t||ly)(a.zc(a.q),a.zc(a.j),a.zc(Zl),a.zc(Cn,8),a.zc(a.G),a.zc(Ei),a.zc(Pe,8))},ly.\u0275dir=a.uc({type:ly,inputs:{disablePagination:"disablePagination"}}),ly),By=((cy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c){var l;return _classCallCheck(this,i),(l=e.call(this,t,n,a,r,o,s,c))._disableRipple=!1,l}return _createClass(i,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=mi(t)}}]),i}(Ny)).\u0275fac=function(t){return new(t||cy)(a.zc(a.q),a.zc(a.j),a.zc(Zl),a.zc(Cn,8),a.zc(a.G),a.zc(Ei),a.zc(Pe,8))},cy.\u0275dir=a.uc({type:cy,inputs:{disableRipple:"disableRipple"},features:[a.ic]}),cy),Vy=((sy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c){return _classCallCheck(this,i),e.call(this,t,n,a,r,o,s,c)}return i}(By)).\u0275fac=function(t){return new(t||sy)(a.zc(a.q),a.zc(a.j),a.zc(Zl),a.zc(Cn,8),a.zc(a.G),a.zc(Ei),a.zc(Pe,8))},sy.\u0275cmp=a.tc({type:sy,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;1&t&&a.rc(i,Ly,!1),2&t&&a.id(n=a.Tc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(a.td(_y,!0),a.td(fy,!0),a.td(my,!0),a.Bd(py,!0),a.Bd(gy,!0)),2&t&&(a.id(i=a.Tc())&&(e._inkBar=i.first),a.id(i=a.Tc())&&(e._tabListContainer=i.first),a.id(i=a.Tc())&&(e._tabList=i.first),a.id(i=a.Tc())&&(e._nextPaginator=i.first),a.id(i=a.Tc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.pc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.ic],ngContentSelectors:j_,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&&(a.bd(),a.Fc(0,"div",0,1),a.Sc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Ac(2,"div",2),a.Ec(),a.Fc(3,"div",3,4),a.Sc("keydown",(function(t){return e._handleKeydown(t)})),a.Fc(5,"div",5,6),a.Sc("cdkObserveContent",(function(){return e._onContentChanges()})),a.Fc(7,"div",7),a.ad(8),a.Ec(),a.Ac(9,"mat-ink-bar"),a.Ec(),a.Ec(),a.Fc(10,"div",8,9),a.Sc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Ac(12,"div",2),a.Ec()),2&t&&(a.pc("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.cd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.lc(5),a.pc("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.lc(5),a.pc("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.cd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Aa,Ni,_y],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-labels{justify-content:center}[mat-align-tabs=end] .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}),sy),Uy=((oy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c){var l;return _classCallCheck(this,i),(l=e.call(this,t,r,o,n,a,s,c))._disableRipple=!1,l.color="primary",l}return _createClass(i,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var t=this;this._items.changes.pipe(Dn(null),Ol(this._destroyed)).subscribe((function(){t.updateActiveLink()})),_get(_getPrototypeOf(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(t){if(this._items){for(var e=this._items.toArray(),i=0;i1),a.lc(1),a.cd("ngIf",i._displayedPageSizeOptions.length<=1)}}function Zy(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",21),a.Sc("click",(function(){return a.nd(i),a.Wc().firstPage()})),a.Vc(),a.Fc(1,"svg",7),a.Ac(2,"path",22),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.cd("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),a.mc("aria-label",n._intl.firstPageLabel)}}function Qy(t,e){if(1&t){var i=a.Gc();a.Vc(),a.Uc(),a.Fc(0,"button",23),a.Sc("click",(function(){return a.nd(i),a.Wc().lastPage()})),a.Vc(),a.Fc(1,"svg",7),a.Ac(2,"path",24),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.cd("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),a.mc("aria-label",n._intl.lastPageLabel)}}var tk,ek,ik,nk=((tk=function t(){_classCallCheck(this,t),this.changes=new Me.a,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,i){if(0==i||0==e)return"0 of ".concat(i);var n=t*e;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+e,i):n+e," of ").concat(i)}}).\u0275fac=function(t){return new(t||tk)},tk.\u0275prov=Object(a.vc)({factory:function(){return new tk},token:tk,providedIn:"root"}),tk),ak={provide:nk,deps:[[new a.H,new a.R,nk]],useFactory:function(t){return t||new nk}},rk=new a.w("MAT_PAGINATOR_DEFAULT_OPTIONS"),ok=Vn(qn((function t(){_classCallCheck(this,t)}))),sk=((ik=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;if(_classCallCheck(this,i),(o=e.call(this))._intl=t,o._changeDetectorRef=n,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new a.t,o._intlChanges=t.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),r){var s=r.pageSize,c=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=c&&(o._pageSizeOptions=c),null!=l&&(o._hidePageSize=l),null!=u&&(o._showFirstLastButtons=u)}return _possibleConstructorReturn(o)}return _createClass(i,[{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=a.length&&(r=0),a[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(Object(a.fb)()&&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=mi(t)}}]),i}(gk)).\u0275fac=function(t){return bk(t||dk)},dk.\u0275dir=a.uc({type:dk,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:[a.ic,a.jc]}),dk),bk=a.Hc(vk),_k=Ln.ENTERING+" "+zn.STANDARD_CURVE,yk={indicator:o("indicator",[d("active-asc, asc",u({transform:"translateY(0px)"})),d("active-desc, desc",u({transform:"translateY(10px)"})),f("active-asc <=> active-desc",s(_k))]),leftPointer:o("leftPointer",[d("active-asc, asc",u({transform:"rotate(-45deg)"})),d("active-desc, desc",u({transform:"rotate(45deg)"})),f("active-asc <=> active-desc",s(_k))]),rightPointer:o("rightPointer",[d("active-asc, asc",u({transform:"rotate(45deg)"})),d("active-desc, desc",u({transform:"rotate(-45deg)"})),f("active-asc <=> active-desc",s(_k))]),arrowOpacity:o("arrowOpacity",[d("desc-to-active, asc-to-active, active",u({opacity:1})),d("desc-to-hint, asc-to-hint, hint",u({opacity:.54})),d("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",u({opacity:0})),f("* => asc, * => desc, * => active, * => hint, * => void",s("0ms")),f("* <=> *",s(_k))]),arrowPosition:o("arrowPosition",[f("* => desc-to-hint, * => desc-to-active",s(_k,h([u({transform:"translateY(-25%)"}),u({transform:"translateY(0)"})]))),f("* => hint-to-desc, * => active-to-desc",s(_k,h([u({transform:"translateY(0)"}),u({transform:"translateY(25%)"})]))),f("* => asc-to-hint, * => asc-to-active",s(_k,h([u({transform:"translateY(25%)"}),u({transform:"translateY(0)"})]))),f("* => hint-to-asc, * => active-to-asc",s(_k,h([u({transform:"translateY(0)"}),u({transform:"translateY(-25%)"})]))),d("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",u({transform:"translateY(0)"})),d("hint-to-desc, active-to-desc, desc",u({transform:"translateY(-25%)"})),d("hint-to-asc, active-to-asc, asc",u({transform:"translateY(25%)"}))]),allowChildren:o("allowChildren",[f("* <=> *",[p("@*",m(),{optional:!0})])])},kk=((hk=function t(){_classCallCheck(this,t),this.changes=new Me.a,this.sortButtonLabel=function(t){return"Change sorting for ".concat(t)}}).\u0275fac=function(t){return new(t||hk)},hk.\u0275prov=Object(a.vc)({factory:function(){return new hk},token:hk,providedIn:"root"}),hk),wk={provide:kk,deps:[[new a.H,new a.R,kk]],useFactory:function(t){return t||new kk}},Ck=Vn((function t(){_classCallCheck(this,t)})),xk=((mk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s){var c;if(_classCallCheck(this,i),(c=e.call(this))._intl=t,c._sort=a,c._columnDef=r,c._focusMonitor=o,c._elementRef=s,c._showIndicatorHint=!1,c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",!a)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return c._rerenderSubscription=Object(al.a)(a.sortChange,a._stateChanges,t.changes).subscribe((function(){c._isSorted()&&c._updateArrowDirection(),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),n.markForCheck()})),o&&s&&o.monitor(s,!0).subscribe((function(t){return c._setIndicatorHintVisible(!!t)})),_possibleConstructorReturn(c)}return _createClass(i,[{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:"ngOnDestroy",value:function(){this._focusMonitor&&this._elementRef&&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:"_handleClick",value:function(){if(!this._isDisabled()){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:"_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":null}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=mi(t)}}]),i}(Ck)).\u0275fac=function(t){return new(t||mk)(a.zc(kk),a.zc(a.j),a.zc(vk,8),a.zc("MAT_SORT_HEADER_COLUMN_DEF",8),a.zc(hn),a.zc(a.q))},mk.\u0275cmp=a.tc({type:mk,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(a.mc("aria-sort",e._getAriaSortAttribute()),a.pc("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[a.ic],attrs:lk,ngContentSelectors:pk,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["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&&(a.bd(),a.Fc(0,"div",0),a.Fc(1,"button",1),a.ad(2),a.Ec(),a.vd(3,uk,6,6,"div",2),a.Ec()),2&t&&(a.pc("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),a.lc(1),a.mc("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),a.lc(2),a.cd("ngIf",e._renderArrow()))},directives:[ye.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.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:[yk.indicator,yk.leftPointer,yk.rightPointer,yk.arrowOpacity,yk.arrowPosition,yk.allowChildren]},changeDetection:0}),mk),Sk=((fk=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:fk}),fk.\u0275inj=a.wc({factory:function(t){return new(t||fk)},providers:[wk],imports:[[ye.c]]}),fk),Ek=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._value=t,n}return _createClass(i,[{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(i.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 ql.a;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(i.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),i}(Me.a),Ok=[[["caption"]]],Ak=["caption"];function Tk(t,e){if(1&t&&(a.Fc(0,"th",3),a.xd(1),a.Ec()),2&t){var i=a.Wc();a.ud("text-align",i.justify),a.lc(1),a.zd(" ",i.headerText," ")}}function Dk(t,e){if(1&t&&(a.Fc(0,"td",4),a.xd(1),a.Ec()),2&t){var i=e.$implicit,n=a.Wc();a.ud("text-align",n.justify),a.lc(1),a.zd(" ",n.dataAccessor(i,n.name)," ")}}function Ik(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,a=new Array(n),r=0;r3&&void 0!==arguments[3])||arguments[3];_classCallCheck(this,t),this._isNativeHtmlTable=e,this._stickCellCss=i,this.direction=n,this._isBrowser=a}return _createClass(t,[{key:"clearStickyPositioning",value:function(t,e){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){this._removeStickyStyle(a,e);for(var r=0;r0;a--)e[a]&&(i[a]=n,n+=t[a]);return i}}]),t}();function gw(t){return Error('Could not find column with id "'.concat(t,'".'))}var vw,bw,_w,yw,kw=((yw=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||yw)(a.zc(a.Y),a.zc(a.q))},yw.\u0275dir=a.uc({type:yw,selectors:[["","rowOutlet",""]]}),yw),ww=((_w=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||_w)(a.zc(a.Y),a.zc(a.q))},_w.\u0275dir=a.uc({type:_w,selectors:[["","headerRowOutlet",""]]}),_w),Cw=((bw=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||bw)(a.zc(a.Y),a.zc(a.q))},bw.\u0275dir=a.uc({type:bw,selectors:[["","footerRowOutlet",""]]}),bw),xw=((vw=function(){function t(e,i,n,a,r,o,s){_classCallCheck(this,t),this._differs=e,this._changeDetectorRef=i,this._elementRef=n,this._dir=r,this._platform=s,this._onDestroy=new Me.a,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._multiTemplateDataRows=!1,this.viewChange=new Ek({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,i){return t.trackBy?t.trackBy(i.dataIndex,i.data):i}))}},{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.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),er(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 i=this._rowOutlet.viewContainer;e.forEachOperation((function(e,n,a){if(null==e.previousIndex)t._insertRow(e.item,a);else if(null==a)i.remove(n);else{var r=i.get(n);i.move(r,a)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){i.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}},{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 i=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"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 i=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(e),_toConsumableArray(i),_toConsumableArray(n)),["left","right"]),e.forEach((function(e,i){t._addStickyColumnStyles([e],t._headerRowDefs[i])})),this._rowDefs.forEach((function(e){for(var n=[],a=0;a1)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()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(t){this._data=[],er(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=this;if(this.dataSource){var e,i;if(er(this.dataSource)?e=this.dataSource.connect(this):(i=this.dataSource)&&(i instanceof si.a||"function"==typeof i.lift&&"function"==typeof i.subscribe)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Be(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(Ol(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,i){return t._renderRow(t._headerRowOutlet,e,i)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,i){return t._renderRow(t._footerRowOutlet,e,i)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var i=this,n=Array.from(e.columns||[]).map((function(t){var e=i._columnDefsByName.get(t);if(!e)throw gw(t);return e})),a=n.map((function(t){return t.sticky})),r=n.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,a,r)}},{key:"_getRenderedRows",value:function(t){for(var e=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{};t.viewContainer.createEmbeddedView(e.template,n,i);var a,r=_createForOfIteratorHelper(this._getCellTemplates(e));try{for(r.s();!(a=r.n()).done;){var o=a.value;uw.mostRecentCellOutlet&&uw.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n)}}catch(s){r.e(s)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,i=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,i),(t=e.call(this))._renderData=new Ek([]),t._filter=new Ek(""),t._internalPageChanges=new Me.a,t._renderChangesSubscription=ze.a.EMPTY,t.sortingDataAccessor=function(t,e){var i=t[e];if(gi(i)){var n=Number(i);return n<9007199254740991?n:i}return i},t.sortData=function(e,i){var n=i.active,a=i.direction;return n&&""!=a?e.sort((function(e,i){var r=t.sortingDataAccessor(e,n),o=t.sortingDataAccessor(i,n),s=0;return null!=r&&null!=o?r>o?s=1:r0)){var n=Math.ceil(i.length/i.pageSize)-1||0,a=Math.min(i.pageIndex,n);a!==i.pageIndex&&(i.pageIndex=a,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()}}]),i}(function(){return function t(){_classCallCheck(this,t)}}());function SC(t){var e=t.subscriber,i=t.counter,n=t.period;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function EC(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function OC(t,e){var i=e?"":"none";EC(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function AC(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function TC(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}var DC=Di({passive:!0}),IC=Di({passive:!1}),PC=function(){function t(e,i,n,a,r,o){var s=this;_classCallCheck(this,t),this._config=i,this._document=n,this._ngZone=a,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Me.a,this._pointerMoveSubscription=ze.a.EMPTY,this._pointerUpSubscription=ze.a.EMPTY,this._scrollSubscription=ze.a.EMPTY,this._resizeSubscription=ze.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Me.a,this.started=new Me.a,this.released=new Me.a,this.ended=new Me.a,this.entered=new Me.a,this.exited=new Me.a,this.dropped=new Me.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(t){if(s.beforeStarted.next(),s._handles.length){var e=s._handles.find((function(e){var i=t.target;return!!i&&(i===e||e.contains(i))}));!e||s._disabledHandles.has(e)||s.disabled||s._initializeDragSequence(e,t)}else s.disabled||s._initializeDragSequence(s._rootElement,t)},this._pointerMove=function(t){if(t.preventDefault(),s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var e=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._updatePointerDirectionDelta(e),s._dropContainer)s._updateActiveDropContainer(e);else{var i=s._activeTransform;i.x=e.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=e.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:e,event:t,distance:s._getDragDistance(e),delta:s._pointerDirectionDelta})}))}else{var n=s._getPointerPositionOnPage(t);if(Math.abs(n.x-s._pickupPositionOnPage.x)+Math.abs(n.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(t)))return void s._endDragSequence(t);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(t)})))}}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e),o.registerDragItem(this)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){return this._handles=t.map((function(t){return _i(t)})),this._handles.forEach((function(t){return OC(t,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=_i(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,IC),e.addEventListener("touchstart",this._pointerDown,DC),this._initialTransform=void 0,this._rootElement=e),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?_i(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return e._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&zC(this._rootElement),zC(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}},{key:"enableHandle",value:function(t){this._disabledHandles.delete(t)}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&zC(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&zC(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(t){if(this.started.next({source:this}),LC(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var e=this._rootElement,i=e.parentNode,n=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(r,e),e.style.display="none",this._document.body.appendChild(i.replaceChild(a,e)),(o=this._document,o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body).appendChild(n),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var o}},{key:"_initializeDragSequence",value:function(t,e){var i=this;e.stopPropagation();var n=this.isDragging(),a=LC(e),r=!a&&0!==e.button,o=this._rootElement,s=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(n||r||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(Dn(null)).subscribe((function(){i._scrollPosition=i._viewportRuler.getViewportScrollPosition()})),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var i=e._dropContainer,n=i.getItemIndex(e),a=e._getPointerPositionOnPage(t),r=e._getDragDistance(e._getPointerPositionOnPage(t)),o=i._isOverContainer(a.x,a.y);e.ended.next({source:e,distance:r}),e.dropped.next({item:e,currentIndex:n,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:o,distance:r}),i.drop(e,n,e._initialContainer,o,r,e._initialIndex),e._dropContainer=e._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(t){var e=this,i=t.x,n=t.y,a=this._initialContainer._getSiblingContainerFromPosition(this,i,n);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,n)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run((function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=a,e._dropContainer.enter(e,i,n,a===e._initialContainer&&a.sortingDisabled?e._initialIndex:void 0),e.entered.next({item:e,container:a,currentIndex:a.getItemIndex(e)})})),this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,i,n,this._pointerDirectionDelta),this._preview.style.transform=FC(i-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,i=this.previewClass,n=e?e.template:null;if(n){var a=e.viewContainer.createEmbeddedView(n,e.context);a.detectChanges(),t=jC(a,this._document),this._previewRef=a,e.matchSize?NC(t,this._rootElement):t.style.transform=FC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;NC(t=RC(r),r)}return EC(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),OC(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach((function(e){return t.classList.add(e)})):t.classList.add(i)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=FC(e.left,e.top);var i=function(t){var e=getComputedStyle(t),i=TC(e,"transition-property"),n=i.find((function(t){return"transform"===t||"all"===t}));if(!n)return 0;var a=i.indexOf(n),r=TC(e,"transition-duration"),o=TC(e,"transition-delay");return AC(r[a])+AC(o[a])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(e){var n=function i(n){(!n||n.target===t._preview&&"transform"===n.propertyName)&&(t._preview.removeEventListener("transitionend",i),e(),clearTimeout(a))},a=setTimeout(n,1.5*i);t._preview.addEventListener("transitionend",n)}))}))}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),t=jC(this._placeholderRef,this._document)):t=RC(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,a=n?n.getBoundingClientRect():i,r=LC(e)?e.targetTouches[0]:e;return{x:a.left-i.left+(r.pageX-a.left-this._scrollPosition.left),y:a.top-i.top+(r.pageY-a.top-this._scrollPosition.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=LC(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){var a=this._pickupPositionInElement,r=a.x,o=a.y,s=this._boundaryRect,c=this._previewRect,l=s.top+o,u=s.bottom-(c.height-o);i.x=MC(i.x,s.left+r,s.right-(c.width-r)),i.y=MC(i.y,l,u)}return i}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,i=t.y,n=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-a.x),o=Math.abs(i-a.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>a.x?1:-1,a.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>a.y?1:-1,a.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,OC(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,IC),t.removeEventListener("touchstart",this._pointerDown,DC)}},{key:"_applyRootElementTransform",value:function(t,e){var i=FC(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),a=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===a.width&&0===a.height)){var r=n.left-a.left,o=a.right-n.right,s=n.top-a.top,c=a.bottom-n.bottom;n.width>a.width?(r>0&&(e+=r),o>0&&(e-=o)):e=0,n.height>a.height?(s>0&&(i+=s),c>0&&(i-=c)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:LC(t)?e.touch:e?e.mouse:0}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=mi(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}}]),t}();function FC(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function RC(t){var e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je;return(!Cl(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Je),new si.a((function(i){return i.add(e.schedule(SC,t,{subscriber:i,counter:0,period:t})),i}))}(0,sl).pipe(Ol(o._stopScrollTimers)).subscribe((function(){var t=o._scrollNode;1===o._verticalScrollDirection?YC(t,-2):2===o._verticalScrollDirection&&YC(t,2),1===o._horizontalScrollDirection?KC(t,-2):2===o._horizontalScrollDirection&&KC(t,2)}))},this.element=_i(e),this._document=n,this.withScrollableParents([this.element]),i.registerDropContainer(this)}return _createClass(t,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var t=this,e=_i(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(e){return e._startReceiving(t)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(t,e,i,n){var a;this.start(),null==n?-1===(a=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(a=this._getItemIndexFromPointerPosition(t,e,i)):a=n;var r=this._activeDraggables,o=r.indexOf(t),s=t.getPlaceholderElement(),c=r[a];if(c===t&&(c=r[a+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(s,l),r.splice(a,0,t)}else _i(this.element).appendChild(s),r.push(t);s.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,i,n,a,r){this._reset(),null==r&&(r=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:i,isPointerOverContainer:n,distance:a})}},{key:"withItems",value:function(t){var e=this;return this._draggables=t,t.forEach((function(t){return t._withDropContainer(e)})),this.isDragging()&&this._cacheItems(),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=_i(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getItemIndex",value:function(t){return this._isDragging?GC("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(e){return e.drag===t})):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,i,n){if(!this.sortingDisabled&&HC(this._clientRect,e,i)){var a=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(!(-1===r&&a.length>0)){var o="horizontal"===this._orientation,s=GC(a,(function(e){return e.drag===t})),c=a[r],l=a[s].clientRect,u=c.clientRect,d=s>r?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y;var h=this._getItemOffsetPx(l,u,d),f=this._getSiblingOffsetPx(s,a,d),m=a.slice();BC(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:t}),a.forEach((function(e,i){if(m[i]!==e){var n=e.drag===t,a=n?h:f,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),WC(e.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),WC(e.clientRect,a,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var i=this;if(!this.autoScrollDisabled){var n,a=0,r=0;if(this._parentPositions.forEach((function(o,s){var c;s!==i._document&&o.clientRect&&!n&&HC(o.clientRect,t,e)&&(c=_slicedToArray(function(t,e,i,n){var a=XC(e,n),r=JC(e,i),o=0,s=0;if(a){var c=t.scrollTop;1===a?c>0&&(o=1):t.scrollHeight-c>t.clientHeight&&(o=2)}if(r){var l=t.scrollLeft;1===r?l>0&&(s=1):t.scrollWidth-l>t.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,t,e),2),a=c[0],r=c[1],(a||r)&&(n=s))})),!a&&!r){var o=this._viewportRuler.getViewportSize(),s=o.width,c=o.height,l={width:s,height:c,top:0,right:s,bottom:c,left:0};a=XC(l,e),r=JC(l,t),n=window}!n||a===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=r,this._scrollNode=n,(a||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var t=this;this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach((function(e){var i=$C(e);e===t.element&&(t._clientRect=i),t._parentPositions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:i})}))}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(t){var e=t.getVisibleElement();return{drag:t,offset:0,clientRect:$C(e)}})).sort((function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top}))}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=_i(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(t){return t.getRootElement().style.transform=""})),this._siblings.forEach((function(e){return e._stopReceiving(t)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,a=e[t].clientRect,r=e[t+-1*i],o=a[n?"width":"height"]*i;if(r){var s=n?"left":"top",c=n?"right":"bottom";-1===i?o-=r.clientRect[s]-a[c]:o+=a[s]-r.clientRect[c]}return o}},{key:"_getItemOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,a=n?e.left-t.left:e.top-t.top;return-1===i&&(a+=n?e.width-t.width:e.height-t.height),a}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,i,n){var a=this,r="horizontal"===this._orientation;return GC(this._itemPositions,(function(o,s,c){var l=o.drag,u=o.clientRect;if(l===t)return c.length<2;if(n){var d=r?n.x:n.y;if(l===a._previousSwap.drag&&d===a._previousSwap.delta)return!1}return r?e>=Math.floor(u.left)&&e<=Math.floor(u.right):i>=Math.floor(u.top)&&i<=Math.floor(u.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_updateAfterScroll",value:function(t,e,i){var n=this,a=t===this._document?t.documentElement:t,r=this._parentPositions.get(t).scrollPosition,o=r.top-e,s=r.left-i;this._parentPositions.forEach((function(e,i){e.clientRect&&t!==i&&a.contains(i)&&WC(e.clientRect,o,s)})),this._itemPositions.forEach((function(t){WC(t.clientRect,o,s)})),this._itemPositions.forEach((function(t){var e=t.drag;n._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})),r.top=e,r.left=i}},{key:"_isOverContainer",value:function(t,e){return qC(this._clientRect,t,e)}},{key:"_getSiblingContainerFromPosition",value:function(t,e,i){return this._siblings.find((function(n){return n._canReceive(t,e,i)}))}},{key:"_canReceive",value:function(t,e,i){if(!qC(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;var n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;var a=_i(this.element);return n===a||a.contains(n)}},{key:"_startReceiving",value:function(t){var e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){if(t.isDragging()){var i=e.target;if(t._parentPositions.get(i)){var n,a;if(i===t._document){var r=t._viewportRuler.getViewportScrollPosition();n=r.top,a=r.left}else n=i.scrollTop,a=i.scrollLeft;t._updateAfterScroll(i,n,a)}}else t.isReceiving()&&t._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=Pi(_i(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}]),t}();function WC(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function HC(t,e,i){var n=t.top,a=t.right,r=t.bottom,o=t.left,s=.05*t.width,c=.05*t.height;return i>n-c&&io-s&&e=n&&i<=a&&e>=r&&e<=o}function $C(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function YC(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function KC(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function XC(t,e){var i=t.top,n=t.bottom,a=.05*t.height;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}function JC(t,e){var i=t.left,n=t.right,a=.05*t.width;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}var ZC,QC,tx,ex,ix,nx,ax=Di({passive:!1,capture:!0}),rx=((ZC=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Me.a,this.pointerUp=new Me.a,this.scroll=new Me.a,this._preventDefaultWhileDragging=function(t){n._activeDragInstances.size&&t.preventDefault()},this._document=i}return _createClass(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,ax)}))}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,ax)}},{key:"startDragging",value:function(t,e){var i=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var n=e.type.startsWith("touch"),a=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:function(t){return i.pointerMove.next(t)},options:ax}).set(a,{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ax}),this._ngZone.runOutsideAngular((function(){i._globalListeners.forEach((function(t,e){i._document.addEventListener(e,t.handler,t.options)}))}))}}},{key:"stopDragging",value:function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(t){return this._activeDragInstances.has(t)}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach((function(e){return t.removeDragItem(e)})),this._dropInstances.forEach((function(e){return t.removeDropContainer(e)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach((function(e,i){t._document.removeEventListener(i,e.handler,e.options)})),this._globalListeners.clear()}}]),t}()).\u0275fac=function(t){return new(t||ZC)(a.Oc(a.G),a.Oc(ye.e))},ZC.\u0275prov=Object(a.vc)({factory:function(){return new ZC(Object(a.Oc)(a.G),Object(a.Oc)(ye.e))},token:ZC,providedIn:"root"}),ZC),ox={dragStartThreshold:5,pointerDirectionChangeThreshold:5},sx=((QC=function(){function t(e,i,n,a){_classCallCheck(this,t),this._document=e,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=a}return _createClass(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ox;return new PC(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new UC(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}()).\u0275fac=function(t){return new(t||QC)(a.Oc(ye.e),a.Oc(a.G),a.Oc(Zl),a.Oc(rx))},QC.\u0275prov=Object(a.vc)({factory:function(){return new QC(Object(a.Oc)(ye.e),Object(a.Oc)(a.G),Object(a.Oc)(Zl),Object(a.Oc)(rx))},token:QC,providedIn:"root"}),QC),cx=new a.w("CDK_DRAG_PARENT"),lx=((ix=function(){function t(e,i){_classCallCheck(this,t),this.element=e,this._stateChanges=new Me.a,this._disabled=!1,this._parentDrag=i,OC(e.nativeElement,!1)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mi(t),this._stateChanges.next(this)}}]),t}()).\u0275fac=function(t){return new(t||ix)(a.zc(a.q),a.zc(cx,8))},ix.\u0275dir=a.uc({type:ix,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),ix),ux=((ex=function t(e){_classCallCheck(this,t),this.templateRef=e}).\u0275fac=function(t){return new(t||ex)(a.zc(a.V))},ex.\u0275dir=a.uc({type:ex,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),ex),dx=((tx=function(){function t(e){_classCallCheck(this,t),this.templateRef=e,this._matchSize=!1}return _createClass(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(t){this._matchSize=mi(t)}}]),t}()).\u0275fac=function(t){return new(t||tx)(a.zc(a.V))},tx.\u0275dir=a.uc({type:tx,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),tx),hx=new a.w("CDK_DRAG_CONFIG"),fx=new a.w("CDK_DROP_LIST"),mx=((nx=function(){function t(e,i,n,r,o,s,c,l,u){var d=this;_classCallCheck(this,t),this.element=e,this.dropContainer=i,this._document=n,this._ngZone=r,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=u,this._destroyed=new Me.a,this.started=new a.t,this.released=new a.t,this.ended=new a.t,this.entered=new a.t,this.exited=new a.t,this.dropped=new a.t,this.moved=new si.a((function(t){var e=d._dragRef.moved.pipe(Object(ri.a)((function(t){return{source:d,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}}))).subscribe(t);return function(){e.unsubscribe()}})),this._dragRef=l.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(ui(1),Ol(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(Dn(t._handles),Ge((function(e){var i=e.filter((function(e){return e._parentDrag===t})).map((function(t){return t.element}));t._dragRef.withHandles(i)})),Il((function(t){return Object(al.a).apply(void 0,_toConsumableArray(t.map((function(t){return t._stateChanges.pipe(Dn(t))}))))})),Ol(t._destroyed)).subscribe((function(e){var i=t._dragRef,n=e.element.nativeElement;e.disabled?i.disableHandle(n):i.enableHandle(n)})),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)}))}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?px(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+'Currently attached to "'.concat(e.nodeName,'".'));this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return px(this.element.nativeElement,t);var e=_i(t);if(Object(a.fb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}},{key:"_syncInputs",value:function(t){var e=this;t.beforeStarted.subscribe((function(){if(!t.isDragging()){var i=e._dir,n=e.dragStartDelay,a=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,r=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,matchSize:e._previewTemplate.matchSize,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:pi(n),t.constrainPosition=e.constrainPosition,t.previewClass=e.previewClass,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(r),i&&t.withDirection(i.value)}}))}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe((function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()})),t.released.subscribe((function(){e.released.emit({source:e})})),t.ended.subscribe((function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:t.container.data,item:e})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.dragStartDelay,n=t.constrainPosition,a=t.previewClass,r=t.boundaryElement,o=t.draggingDisabled,s=t.rootElementSelector;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),a&&(this.previewClass=a),r&&(this.boundaryElement=r),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=mi(t),this._dragRef.disabled=this._disabled}}]),t}()).\u0275fac=function(t){return new(t||nx)(a.zc(a.q),a.zc(fx,12),a.zc(ye.e),a.zc(a.G),a.zc(a.Y),a.zc(hx,8),a.zc(Cn,8),a.zc(sx),a.zc(a.j))},nx.\u0275dir=a.uc({type:nx,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(a.rc(i,dx,!0),a.rc(i,ux,!0),a.rc(i,lx,!0)),2&t&&(a.id(n=a.Tc())&&(e._previewTemplate=n.first),a.id(n=a.Tc())&&(e._placeholderTemplate=n.first),a.id(n=a.Tc())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&a.pc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a.kc([{provide:cx,useExisting:nx}]),a.jc]}),nx);function px(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}var gx,vx,bx,_x,yx,kx,wx=((bx=function(){function t(){_classCallCheck(this,t),this._items=new Set,this._disabled=!1}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mi(t)}}]),t}()).\u0275fac=function(t){return new(t||bx)},bx.\u0275dir=a.uc({type:bx,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),bx),Cx=0,xx=((vx=function(){function t(e,i,n,r,o,s,c){var l=this;_classCallCheck(this,t),this.element=e,this._changeDetectorRef=n,this._dir=r,this._group=o,this._scrollDispatcher=s,this._destroyed=new Me.a,this.connectedTo=[],this.id="cdk-drop-list-".concat(Cx++),this.enterPredicate=function(){return!0},this.dropped=new a.t,this.entered=new a.t,this.exited=new a.t,this.sorted=new a.t,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=function(t,e){return l.enterPredicate(t.data,e.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}return _createClass(t,[{key:"ngAfterContentInit",value:function(){if(this._scrollDispatcher){var t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map((function(t){return t.getElementRef().nativeElement}));this._dropListRef.withScrollableParents(t)}}},{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}},{key:"enter",value:function(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}},{key:"exit",value:function(t){this._dropListRef.exit(t._dragRef)}},{key:"getItemIndex",value:function(t){return this._dropListRef.getItemIndex(t._dragRef)}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe(Dn(this._dir.value),Ol(this._destroyed)).subscribe((function(t){return e.withDirection(t)})),e.beforeStarted.subscribe((function(){var n=vi(i.connectedTo).map((function(e){return"string"==typeof e?t._dropLists.find((function(t){return t.id===e})):e}));i._group&&i._group._items.forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=mi(i.sortingDisabled),e.autoScrollDisabled=mi(i.autoScrollDisabled),e.connectedTo(n.filter((function(t){return t&&t!==i})).map((function(t){return t._dropListRef}))).withOrientation(i.orientation)}))}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe((function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()})),t.sorted.subscribe((function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),e._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.draggingDisabled,n=t.sortingDisabled,a=t.listAutoScrollDisabled,r=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=a&&a,this.orientation=r||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(t){return t._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=mi(t)}}]),t}()).\u0275fac=function(t){return new(t||vx)(a.zc(a.q),a.zc(sx),a.zc(a.j),a.zc(Cn,8),a.zc(wx,12),a.zc(Xl),a.zc(hx,8))},vx.\u0275dir=a.uc({type:vx,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Ic("id",e.id),a.pc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a.kc([{provide:wx,useValue:void 0},{provide:fx,useExisting:vx}])]}),vx._dropLists=[],vx),Sx=((gx=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:gx}),gx.\u0275inj=a.wc({factory:function(t){return new(t||gx)},providers:[sx]}),gx),Ex=function(){function t(e,i){_classCallCheck(this,t),this._document=i;var n=this._textarea=this._document.createElement("textarea"),a=n.style;a.opacity="0",a.position="absolute",a.left=a.top="-999em",n.setAttribute("aria-hidden","true"),n.value=e,this._document.body.appendChild(n)}return _createClass(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(Sj){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),Ox=((_x=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),i=e.copy();return e.destroy(),i}},{key:"beginCopy",value:function(t){return new Ex(t,this._document)}}]),t}()).\u0275fac=function(t){return new(t||_x)(a.Oc(ye.e))},_x.\u0275prov=Object(a.vc)({factory:function(){return new _x(Object(a.Oc)(ye.e))},token:_x,providedIn:"root"}),_x),Ax=new a.w("CKD_COPY_TO_CLIPBOARD_CONFIG"),Tx=((kx=function(){function t(e,i,n){_classCallCheck(this,t),this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new a.t,this._deprecatedCopied=this.copied,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return _createClass(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var i=e,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var a=function e(){var a=n.copy();a||!--i||t._destroyed?(t._currentTimeout=null,t._pending.delete(n),n.destroy(),t.copied.emit(a)):t._currentTimeout=t._ngZone?t._ngZone.runOutsideAngular((function(){return setTimeout(e,1)})):setTimeout(e,1)};a()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((function(t){return t.destroy()})),this._pending.clear(),this._destroyed=!0}}]),t}()).\u0275fac=function(t){return new(t||kx)(a.zc(Ox),a.zc(a.G),a.zc(Ax,8))},kx.\u0275dir=a.uc({type:kx,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),kx),Dx=((yx=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:yx}),yx.\u0275inj=a.wc({factory:function(t){return new(t||yx)}}),yx);function Ix(t){return Zf(t)(this)}si.a.prototype.map=function(t,e){return Object(ri.a)(t,e)(this)},si.a.prototype.catch=Ix,si.a.prototype._catch=Ix,si.a.throw=zl,si.a.throwError=zl;var Px={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}},Fx=i("6BPK"),Rx=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}();function Mx(t){return function(e){return 0===t?li():e.lift(new zx(t))}}var zx=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new oi}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Lx(t,this.total))}}]),t}(),Lx=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).total=n,a.ring=new Array,a.count=0,a}return _createClass(i,[{key:"_next",value:function(t){var e=this.ring,i=this.total,n=this.count++;e.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,a=0;a0&&void 0!==arguments[0]?arguments[0]:Vx;return function(e){return e.lift(new Nx(t))}}var Nx=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Bx(t,this.errorFactory))}}]),t}(),Bx=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).errorFactory=n,a.hasValue=!1,a}return _createClass(i,[{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)}}]),i}(Ue.a);function Vx(){return new Rx}function Ux(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Wx(t))}}var Wx=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Hx(t,this.defaultValue))}}]),t}(),Hx=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).defaultValue=n,a.isEmpty=!0,a}return _createClass(i,[{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()}}]),i}(Ue.a),Gx=i("SpAZ");function qx(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?ii((function(e,i){return t(e,i,n)})):Gx.a,Mx(1),i?Ux(e):jx((function(){return new Rx})))}}function $x(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?ii((function(e,i){return t(e,i,n)})):Gx.a,ui(1),i?Ux(e):jx((function(){return new Rx})))}}var Yx=function(){function t(e,i,n){_classCallCheck(this,t),this.predicate=e,this.thisArg=i,this.source=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Kx(t,this.predicate,this.thisArg,this.source))}}]),t}(),Kx=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).predicate=n,o.thisArg=a,o.source=r,o.index=0,o.thisArg=a||_assertThisInitialized(o),o}return _createClass(i,[{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(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),i}(Ue.a);function Xx(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Zx(t,e,i))}}var Jx,Zx=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=i,this.hasSeed=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Qx(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Qx=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).accumulator=n,o._seed=a,o.hasSeed=r,o.index=0,o}return _createClass(i,[{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,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),i}(Ue.a),tS=i("mCNh"),eS=function t(e,i){_classCallCheck(this,t),this.id=e,this.url=i},iS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,i),(a=e.call(this,t,n)).navigationTrigger=r,a.restoredState=o,a}return _createClass(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(eS),nS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).urlAfterRedirects=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(eS),aS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).reason=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(eS),rS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).error=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(eS),oS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(eS),sS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(eS),cS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,t,n)).urlAfterRedirects=a,s.state=r,s.shouldActivate=o,s}return _createClass(i,[{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,")")}}]),i}(eS),lS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(eS),uS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(eS),dS=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),hS=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),fS=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),mS=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),pS=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),gS=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),vS=function(){function t(e,i,n){_classCallCheck(this,t),this.routerEvent=e,this.position=i,this.anchor=n}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),bS=((Jx=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Jx)},Jx.\u0275cmp=a.tc({type:Jx,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&a.Ac(0,"router-outlet")},directives:function(){return[TO]},encapsulation:2}),Jx),_S=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return this.params.hasOwnProperty(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 yS(t){return new _S(t)}function kS(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function wS(t,e,i){var n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length1&&void 0!==arguments[1]?arguments[1]:"",i=0;i-1})):t===e}function DS(t){return Array.prototype.concat.apply([],t)}function IS(t){return t.length>0?t[t.length-1]:null}function PS(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function FS(t){return Object(a.Nb)(t)?t:Object(a.Ob)(t)?Object(sr.a)(Promise.resolve(t)):Be(t)}function RS(t,e,i){return i?function(t,e){return AS(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!jS(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(var n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))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(i){return TS(t[i],e[i])}))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,a){if(i.segments.length>a.length)return!!jS(i.segments.slice(0,a.length),a)&&!n.hasChildren();if(i.segments.length===a.length){if(!jS(i.segments,a))return!1;for(var r in n.children){if(!i.children[r])return!1;if(!t(i.children[r],n.children[r]))return!1}return!0}var o=a.slice(0,i.segments.length),s=a.slice(i.segments.length);return!!jS(i.segments,o)&&!!i.children.primary&&e(i.children.primary,n,s)}(e,i,i.segments)}(t.root,e.root)}var MS=function(){function t(e,i,n){_classCallCheck(this,t),this.root=e,this.queryParams=i,this.fragment=n}return _createClass(t,[{key:"toString",value:function(){return US.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=yS(this.queryParams)),this._queryParamMap}}]),t}(),zS=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.segments=e,this.children=i,this.parent=null,PS(i,(function(t,e){return t.parent=n}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return WS(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),LS=function(){function t(e,i){_classCallCheck(this,t),this.path=e,this.parameters=i}return _createClass(t,[{key:"toString",value:function(){return KS(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=yS(this.parameters)),this._parameterMap}}]),t}();function jS(t,e){return t.length===e.length&&t.every((function(t,i){return t.path===e[i].path}))}function NS(t,e){var i=[];return PS(t.children,(function(t,n){"primary"===n&&(i=i.concat(e(t,n)))})),PS(t.children,(function(t,n){"primary"!==n&&(i=i.concat(e(t,n)))})),i}var BS=function t(){_classCallCheck(this,t)},VS=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new tE(t);return new MS(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,i,n;return"".concat("/".concat(function t(e,i){if(!e.hasChildren())return WS(e);if(i){var n=e.children.primary?t(e.children.primary,!1):"",a=[];return PS(e.children,(function(e,i){"primary"!==i&&a.push("".concat(i,":").concat(t(e,!1)))})),a.length>0?"".concat(n,"(").concat(a.join("//"),")"):n}var r=NS(e,(function(i,n){return"primary"===n?[t(e.children.primary,!1)]:["".concat(n,":").concat(t(i,!1))]}));return"".concat(WS(e),"/(").concat(r.join("//"),")")}(t.root,!0)),(i=t.queryParams,n=Object.keys(i).map((function(t){var e=i[t];return Array.isArray(e)?e.map((function(e){return"".concat(GS(t),"=").concat(GS(e))})).join("&"):"".concat(GS(t),"=").concat(GS(e))})),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),US=new VS;function WS(t){return t.segments.map((function(t){return KS(t)})).join("/")}function HS(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function GS(t){return HS(t).replace(/%3B/gi,";")}function qS(t){return HS(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $S(t){return decodeURIComponent(t)}function YS(t){return $S(t.replace(/\+/g,"%20"))}function KS(t){return"".concat(qS(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(qS(t),"=").concat(qS(e[t]))})).join("")));var e}var XS=/^[^\/()?;=#]+/;function JS(t){var e=t.match(XS);return e?e[0]:""}var ZS=/^[^=?&#]+/,QS=/^[^?&#]+/,tE=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new zS([],{}):new zS([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new zS(t,e)),i}},{key:"parseSegment",value:function(){var t=JS(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new LS($S(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=JS(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=JS(this.remaining);n&&(i=n,this.capture(i))}t[$S(e)]=$S(i)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(ZS);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=function(t){var e=t.match(QS);return e?e[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var a=YS(e),r=YS(i);if(t.hasOwnProperty(a)){var o=t[a];Array.isArray(o)||(o=[o],t[a]=o),o.push(r)}else t[a]=r}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=JS(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var a=void 0;i.indexOf(":")>-1?(a=i.substr(0,i.indexOf(":")),this.capture(a),this.capture(":")):t&&(a="primary");var r=this.parseChildren();e[a]=1===Object.keys(r).length?r.primary:new zS([],r),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}(),eE=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(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=iE(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=iE(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=nE(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 nE(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function iE(t,e){if(t===e.value)return e;var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var a=iE(t,i.value);if(a)return a}}catch(r){n.e(r)}finally{n.f()}return null}function nE(t,e){if(t===e.value)return[e];var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var a=nE(t,i.value);if(a.length)return a.unshift(e),a}}catch(r){n.e(r)}finally{n.f()}return[]}var aE=function(){function t(e,i){_classCallCheck(this,t),this.value=e,this.children=i}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function rE(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var oE=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).snapshot=n,hE(_assertThisInitialized(a),t),a}return _createClass(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(eE);function sE(t,e){var i=function(t,e){var i=new uE([],{},{},"",{},"primary",e,null,t.root,-1,{});return new dE("",new aE(i,[]))}(t,e),n=new Ek([new LS("",{})]),a=new Ek({}),r=new Ek({}),o=new Ek({}),s=new Ek(""),c=new cE(n,a,o,s,r,"primary",e,i.root);return c.snapshot=i.root,new oE(new aE(c,[]),i)}var cE=function(){function t(e,i,n,a,r,o,s,c){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=c}return _createClass(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(Object(ri.a)((function(t){return yS(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ri.a)((function(t){return yS(t)})))),this._queryParamMap}}]),t}();function lE(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=t.pathFromRoot,n=0;if("always"!==e)for(n=i.length-1;n>=1;){var a=i[n],r=i[n-1];if(a.routeConfig&&""===a.routeConfig.path)n--;else{if(r.component)break;n--}}return function(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:{}})}(i.slice(n))}var uE=function(){function t(e,i,n,a,r,o,s,c,l,u,d){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=d}return _createClass(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{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=yS(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=yS(this.queryParams)),this._queryParamMap}}]),t}(),dE=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,n)).url=t,hE(_assertThisInitialized(a),n),a}return _createClass(i,[{key:"toString",value:function(){return fE(this._root)}}]),i}(eE);function hE(t,e){e.value._routerState=t,e.children.forEach((function(e){return hE(t,e)}))}function fE(t){var e=t.children.length>0?" { ".concat(t.children.map(fE).join(", ")," } "):"";return"".concat(t.value).concat(e)}function mE(t){if(t.snapshot){var e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,AS(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),AS(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(var i=0;i0&&gE(n[0]))throw new Error("Root segment cannot have matrix parameters");var a=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(a&&a!==IS(n))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),_E=function t(e,i,n){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=i,this.index=n};function yE(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function kE(t,e,i){if(t||(t=new zS([],{})),0===t.segments.length&&t.hasChildren())return wE(t,e,i);var n=function(t,e,i){for(var n=0,a=e,r={match:!1,pathIndex:0,commandIndex:0};a=i.length)return r;var o=t.segments[a],s=yE(i[n]),c=n0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!EE(s,c,o))return r;n+=2}else{if(!EE(s,{},o))return r;n++}a++}return{match:!0,pathIndex:a,commandIndex:n}}(t,e,i),a=i.slice(n.commandIndex);if(n.match&&n.pathIndex0?new zS([],{primary:t}):t;return new MS(n,e,i)}},{key:"expandSegmentGroup",value:function(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(ri.a)((function(t){return new zS([],t)}))):this.expandSegment(t,i,e,i.segments,n,!0)}},{key:"expandChildren",value:function(t,e,i){var n=this;return function(i,a){if(0===Object.keys(i).length)return Be({});var r=[],o=[],s={};return PS(i,(function(i,a){var c,l,u=(c=a,l=i,n.expandSegmentGroup(t,e,l,c)).pipe(Object(ri.a)((function(t){return s[a]=t})));"primary"===a?r.push(u):o.push(u)})),Be.apply(null,r.concat(o)).pipe(An(),qx(),Object(ri.a)((function(){return s})))}(i.children)}},{key:"expandSegment",value:function(t,e,i,n,a,r){var o=this;return Be.apply(void 0,_toConsumableArray(i)).pipe(Object(ri.a)((function(s){return o.expandSegmentAgainstRoute(t,e,i,s,n,a,r).pipe(Zf((function(t){if(t instanceof IE)return Be(null);throw t})))})),An(),$x((function(t){return!!t})),Zf((function(t,i){if(t instanceof Rx||"EmptyError"===t.name){if(o.noLeftoversInUrl(e,n,a))return Be(new zS([],{}));throw new IE(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,i){return 0===e.length&&!t.children[i]}},{key:"expandSegmentAgainstRoute",value:function(t,e,i,n,a,r,o){return BE(n)!==r?FE(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,a,r):FE(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,a,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,a,r)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,i,n){var a=this,r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?RE(r):this.lineralizeSegments(i,r).pipe(Object(rm.a)((function(i){var r=new zS(i,{});return a.expandSegment(t,r,e,i,n,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,a,r){var o=this,s=LE(e,n,a),c=s.matched,l=s.consumedSegments,u=s.lastChild,d=s.positionalParamSegments;if(!c)return FE(e);var h=this.applyRedirectCommands(l,n.redirectTo,d);return n.redirectTo.startsWith("/")?RE(h):this.lineralizeSegments(n,h).pipe(Object(rm.a)((function(n){return o.expandSegment(t,e,i,n.concat(a.slice(u)),r,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,i,n){var a=this;if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(ri.a)((function(t){return i._loadedConfig=t,new zS(n,{})}))):Be(new zS(n,{}));var r=LE(e,i,n),o=r.matched,s=r.consumedSegments,c=r.lastChild;if(!o)return FE(e);var l=n.slice(c);return this.getChildConfig(t,i,n).pipe(Object(rm.a)((function(t){var i=t.module,n=t.routes,r=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some((function(i){return NE(t,e,i)&&"primary"!==BE(i)}))}(t,i,n)?{segmentGroup:jE(new zS(e,function(t,e){var i={};i.primary=e;var n,a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var r=n.value;""===r.path&&"primary"!==BE(r)&&(i[BE(r)]=new zS([],{}))}}catch(o){a.e(o)}finally{a.f()}return i}(n,new zS(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some((function(i){return NE(t,e,i)}))}(t,i,n)?{segmentGroup:jE(new zS(t.segments,function(t,e,i,n){var a,r={},o=_createForOfIteratorHelper(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;NE(t,e,s)&&!n[BE(s)]&&(r[BE(s)]=new zS([],{}))}}catch(c){o.e(c)}finally{o.f()}return Object.assign(Object.assign({},n),r)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,s,l,n),o=r.segmentGroup,c=r.slicedSegments;return 0===c.length&&o.hasChildren()?a.expandChildren(i,n,o).pipe(Object(ri.a)((function(t){return new zS(s,t)}))):0===n.length&&0===c.length?Be(new zS(s,{})):a.expandSegment(i,o,n,c,"primary",!0).pipe(Object(ri.a)((function(t){return new zS(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,i){var n=this;return e.children?Be(new CS(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Be(e._loadedConfig):function(t,e,i){var n,a=e.canLoad;return a&&0!==a.length?Object(sr.a)(a).pipe(Object(ri.a)((function(n){var a,r=t.get(n);if(function(t){return t&&TE(t.canLoad)}(r))a=r.canLoad(e,i);else{if(!TE(r))throw new Error("Invalid CanLoad guard");a=r(e,i)}return FS(a)}))).pipe(An(),(n=function(t){return!0===t},function(t){return t.lift(new Yx(n,void 0,t))})):Be(!0)}(t.injector,e,i).pipe(Object(rm.a)((function(i){return i?n.configLoader.load(t.injector,e).pipe(Object(ri.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new si.a((function(e){return e.error(kS("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Be(new CS([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var i=[],n=e.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Be(i);if(n.numberOfChildren>1||!n.children.primary)return ME(t.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,i,n){var a=this.createSegmentGroup(t,e.root,i,n);return new MS(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var i={};return PS(t,(function(t,n){if("string"==typeof t&&t.startsWith(":")){var a=t.substring(1);i[n]=e[a]}else i[n]=t})),i}},{key:"createSegmentGroup",value:function(t,e,i,n){var a=this,r=this.createSegments(t,e.segments,i,n),o={};return PS(e.children,(function(e,r){o[r]=a.createSegmentGroup(t,e,i,n)})),new zS(r,o)}},{key:"createSegments",value:function(t,e,i,n){var a=this;return e.map((function(e){return e.path.startsWith(":")?a.findPosParam(t,e,n):a.findOrReturn(e,i)}))}},{key:"findPosParam",value:function(t,e,i){var n=i[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return n}},{key:"findOrReturn",value:function(t,e){var i,n=0,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(r.path===t.path)return e.splice(n),r;n++}}catch(o){a.e(o)}finally{a.f()}return t}}]),t}();function LE(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||wS)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function jE(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new zS(t.segments.concat(e.segments),e.children)}return t}function NE(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function BE(t){return t.outlet||"primary"}var VE=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},UE=function t(e,i){_classCallCheck(this,t),this.component=e,this.route=i};function WE(t,e,i){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function HE(t,e,i){var n=rE(t),a=t.value;PS(n,(function(t,n){HE(t,a.component?e?e.children.getContext(n):null:e,i)})),i.canDeactivateChecks.push(new UE(a.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,a))}var GE=Symbol("INITIAL_VALUE");function qE(){return Il((function(t){return Wg.apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(ui(1),Dn(GE))})))).pipe(Xx((function(t,e){var i=!1;return e.reduce((function(t,n,a){if(t!==GE)return t;if(n===GE&&(i=!0),!i){if(!1===n)return n;if(a===e.length-1||DE(n))return n}return t}),t)}),GE),ii((function(t){return t!==GE})),Object(ri.a)((function(t){return DE(t)?t:!0===t})),ui(1))}))}function $E(t,e){return null!==t&&e&&e(new pS(t)),Be(!0)}function YE(t,e){return null!==t&&e&&e(new fS(t)),Be(!0)}function KE(t,e,i){var n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Be(n.map((function(n){return nl((function(){var a,r=WE(n,e,i);if(function(t){return t&&TE(t.canActivate)}(r))a=FS(r.canActivate(e,t));else{if(!TE(r))throw new Error("Invalid CanActivate guard");a=FS(r(e,t))}return a.pipe($x())}))}))).pipe(qE()):Be(!0)}function XE(t,e,i){var n=e[e.length-1],a=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 nl((function(){return Be(e.guards.map((function(a){var r,o=WE(a,e.node,i);if(function(t){return t&&TE(t.canActivateChild)}(o))r=FS(o.canActivateChild(n,t));else{if(!TE(o))throw new Error("Invalid CanActivateChild guard");r=FS(o(n,t))}return r.pipe($x())}))).pipe(qE())}))}));return Be(a).pipe(qE())}var JE=function t(){_classCallCheck(this,t)},ZE=function(){function t(e,i,n,a,r,o){_classCallCheck(this,t),this.rootComponentType=e,this.config=i,this.urlTree=n,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return _createClass(t,[{key:"recognize",value:function(){try{var t=eO(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new uE([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new aE(i,e),a=new dE(this.url,n);return this.inheritParamsAndData(a._root),Be(a)}catch(r){return new si.a((function(t){return t.error(r)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,i=t.value,n=lE(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}},{key:"processChildren",value:function(t,e){var i,n=this,a=NS(e,(function(e,i){return n.processSegmentGroup(t,e,i)}));return i={},a.forEach((function(t){var e=i[t.value.outlet];if(e){var n=e.url.map((function(t){return t.toString()})).join("/"),a=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(n,"' and '").concat(a,"'."))}i[t.value.outlet]=t.value})),a.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),a}},{key:"processSegment",value:function(t,e,i,n){var a,r=_createForOfIteratorHelper(t);try{for(r.s();!(a=r.n()).done;){var o=a.value;try{return this.processSegmentAgainstRoute(o,e,i,n)}catch(s){if(!(s instanceof JE))throw s}}}catch(c){r.e(c)}finally{r.f()}if(this.noLeftoversInUrl(e,i,n))return[];throw new JE}},{key:"noLeftoversInUrl",value:function(t,e,i){return 0===e.length&&!t.children[i]}},{key:"processSegmentAgainstRoute",value:function(t,e,i,n){if(t.redirectTo)throw new JE;if((t.outlet||"primary")!==n)throw new JE;var a,r=[],o=[];if("**"===t.path){var s=i.length>0?IS(i).parameters:{};a=new uE(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,aO(t),n,t.component,t,QE(e),tO(e)+i.length,rO(t))}else{var c=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new JE;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||wS)(i,t,e);if(!n)throw new JE;var a={};PS(n.posParams,(function(t,e){a[e]=t.path}));var r=n.consumed.length>0?Object.assign(Object.assign({},a),n.consumed[n.consumed.length-1].parameters):a;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:r}}(e,t,i);r=c.consumedSegments,o=i.slice(c.lastChild),a=new uE(r,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,aO(t),n,t.component,t,QE(e),tO(e)+r.length,rO(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),u=eO(e,r,o,l,this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(l,d);return[new aE(a,f)]}if(0===l.length&&0===h.length)return[new aE(a,[])];var m=this.processSegment(l,d,h,"primary");return[new aE(a,m)]}}]),t}();function QE(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function tO(t){for(var e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)i+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return i-1}function eO(t,e,i,n,a){if(i.length>0&&function(t,e,i){return i.some((function(i){return iO(t,e,i)&&"primary"!==nO(i)}))}(t,i,n)){var r=new zS(e,function(t,e,i,n){var a={};a.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;var r,o=_createForOfIteratorHelper(i);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(""===s.path&&"primary"!==nO(s)){var c=new zS([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,a[nO(s)]=c}}}catch(l){o.e(l)}finally{o.f()}return a}(t,e,n,new zS(i,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some((function(i){return iO(t,e,i)}))}(t,i,n)){var o=new zS(t.segments,function(t,e,i,n,a,r){var o,s={},c=_createForOfIteratorHelper(n);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(iO(t,i,l)&&!a[nO(l)]){var u=new zS([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===r?t.segments.length:e.length,s[nO(l)]=u}}}catch(d){c.e(d)}finally{c.f()}return Object.assign(Object.assign({},a),s)}(t,e,i,n,t.children,a));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}var s=new zS(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function iO(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function nO(t){return t.outlet||"primary"}function aO(t){return t.data||{}}function rO(t){return t.resolve||{}}function oO(t,e,i,n){var a=WE(t,e,n);return FS(a.resolve?a.resolve(e,i):a(e,i))}function sO(t){return function(e){return e.pipe(Il((function(e){var i=t(e);return i?Object(sr.a)(i).pipe(Object(ri.a)((function(){return e}))):Object(sr.a)([e])})))}}var cO=function(){function t(){_classCallCheck(this,t)}return _createClass(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}(),lO=new a.w("ROUTES"),uO=function(){function t(e,i,n,a){_classCallCheck(this,t),this.loader=e,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=a}return _createClass(t,[{key:"load",value:function(t,e){var i=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(ri.a)((function(n){i.onLoadEndListener&&i.onLoadEndListener(e);var a=n.create(t);return new CS(DS(a.injector.get(lO)).map(OS),a)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(sr.a)(this.loader.load(t)):FS(t()).pipe(Object(rm.a)((function(t){return t instanceof a.C?Be(t):Object(sr.a)(e.compiler.compileModuleAsync(t))})))}}]),t}(),dO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function hO(t){throw t}function fO(t,e,i){return e.parse("/")}function mO(t,e){return Be(null)}var pO,gO,vO,bO=((vO=function(){function t(e,i,n,r,o,s,c,l){var u=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Me.a,this.errorHandler=hO,this.malformedUriErrorHandler=fO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mO,afterPreactivation:mO},this.urlHandlingStrategy=new dO,this.routeReuseStrategy=new cO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(a.E),this.console=o.get(a.jb);var d=o.get(a.G);this.isNgZoneEnabled=d instanceof a.G,this.resetConfig(l),this.currentUrlTree=new MS(new zS([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new uO(s,c,(function(t){return u.triggerEvent(new dS(t))}),(function(t){return u.triggerEvent(new hS(t))})),this.routerState=sE(this.currentUrlTree,this.rootComponentType),this.transitions=new Ek({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,i=this.events;return t.pipe(ii((function(t){return 0!==t.id})),Object(ri.a)((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),Il((function(t){var n,a,r,o=!1,s=!1;return Be(t).pipe(Ge((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Il((function(t){var n,a,r,o,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Be(t).pipe(Il((function(t){var n=e.transitions.getValue();return i.next(new iS(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==e.transitions.getValue()?ci:[t]})),Il((function(t){return Promise.resolve(t)})),(n=e.ngModule.injector,a=e.configLoader,r=e.urlSerializer,o=e.config,function(t){return t.pipe(Il((function(t){return function(t,e,i,n,a){return new zE(t,e,i,n,a).apply()}(n,a,r,t.extractedUrl,o).pipe(Object(ri.a)((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),Ge((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,i,n,a,r){return function(n){return n.pipe(Object(rm.a)((function(n){return function(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new ZE(t,e,i,n,a,r).recognize()}(t,i,n.urlAfterRedirects,(o=n.urlAfterRedirects,e.serializeUrl(o)),a,r).pipe(Object(ri.a)((function(t){return Object.assign(Object.assign({},n),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Ge((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Ge((function(t){var n=new oS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);i.next(n)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.id,l=t.extractedUrl,u=t.source,d=t.restoredState,h=t.extras,f=new iS(c,e.serializeUrl(l),u,d);i.next(f);var m=sE(l,e.rootComponentType).snapshot;return Be(Object.assign(Object.assign({},t),{targetSnapshot:m,urlAfterRedirects:l,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ci})),sO((function(t){var i=t.targetSnapshot,n=t.id,a=t.extractedUrl,r=t.rawUrl,o=t.extras,s=o.skipLocationChange,c=o.replaceUrl;return e.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})})),Ge((function(t){var i=new sS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})),Object(ri.a)((function(t){return Object.assign(Object.assign({},t),{guards:(i=t.targetSnapshot,n=t.currentSnapshot,a=e.rootContexts,r=i._root,function t(e,i,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=rE(i);return e.children.forEach((function(e){!function(e,i,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,s=i?i.value:null,c=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!jS(t.url,e.url);case"pathParamsOrQueryParamsChange":return!jS(t.url,e.url)||!AS(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pE(t,e)||!AS(t.queryParams,e.queryParams);case"paramsChange":default:return!pE(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new VE(a)):(o.data=s.data,o._resolvedData=s._resolvedData),t(e,i,o.component?c?c.children:null:n,a,r),l&&r.canDeactivateChecks.push(new UE(c&&c.outlet&&c.outlet.component||null,s))}else s&&HE(i,c,r),r.canActivateChecks.push(new VE(a)),t(e,null,o.component?c?c.children:null:n,a,r)}(e,o[e.value.outlet],n,a.concat([e.value]),r),delete o[e.value.outlet]})),PS(o,(function(t,e){return HE(t,n.getContext(e),r)})),r}(r,n?n._root:null,a,[r.value]))});var i,n,a,r})),function(t,e){return function(i){return i.pipe(Object(rm.a)((function(i){var n=i.targetSnapshot,a=i.currentSnapshot,r=i.guards,o=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===o.length?Be(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(sr.a)(t).pipe(Object(rm.a)((function(t){return function(t,e,i,n,a){var r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Be(r.map((function(r){var o,s=WE(r,e,a);if(function(t){return t&&TE(t.canDeactivate)}(s))o=FS(s.canDeactivate(t,e,i,n));else{if(!TE(s))throw new Error("Invalid CanDeactivate guard");o=FS(s(t,e,i,n))}return o.pipe($x())}))).pipe(qE()):Be(!0)}(t.component,t.route,i,e,n)})),$x((function(t){return!0!==t}),!0))}(s,n,a,t).pipe(Object(rm.a)((function(i){return i&&"boolean"==typeof i?function(t,e,i,n){return Object(sr.a)(e).pipe(om((function(e){return Object(sr.a)([YE(e.route.parent,n),$E(e.route,n),XE(t,e.path,i),KE(t,e.route,i)]).pipe(An(),$x((function(t){return!0!==t}),!0))})),$x((function(t){return!0!==t}),!0))}(n,o,t,e):Be(i)})),Object(ri.a)((function(t){return Object.assign(Object.assign({},i),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Ge((function(t){if(DE(t.guardsResult)){var i=kS('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw i.url=t.guardsResult,i}})),Ge((function(t){var i=new cS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)})),ii((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var n=new aS(t.id,e.serializeUrl(t.extractedUrl),"");return i.next(n),t.resolve(!1),!1}return!0})),sO((function(t){if(t.guards.canActivateChecks.length)return Be(t).pipe(Ge((function(t){var i=new lS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})),(i=e.paramsInheritanceStrategy,n=e.ngModule.injector,function(t){return t.pipe(Object(rm.a)((function(t){var e=t.targetSnapshot,a=t.guards.canActivateChecks;return a.length?Object(sr.a)(a).pipe(om((function(t){return function(t,e,i,n){return function(t,e,i,n){var a=Object.keys(t);if(0===a.length)return Be({});if(1===a.length){var r=a[0];return oO(t[r],e,i,n).pipe(Object(ri.a)((function(t){return _defineProperty({},r,t)})))}var o={};return Object(sr.a)(a).pipe(Object(rm.a)((function(a){return oO(t[a],e,i,n).pipe(Object(ri.a)((function(t){return o[a]=t,t})))}))).pipe(qx(),Object(ri.a)((function(){return o})))}(t._resolve,t,e,n).pipe(Object(ri.a)((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),lE(t,i).resolve),null})))}(t.route,e,i,n)})),function(t,e){return arguments.length>=2?function(i){return Object(tS.a)(Xx(t,e),Mx(1),Ux(e))(i)}:function(e){return Object(tS.a)(Xx((function(e,i,n){return t(e,i,n+1)})),Mx(1))(e)}}((function(t,e){return t})),Object(ri.a)((function(e){return t}))):Be(t)})))}),Ge((function(t){var i=new uS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})));var i,n})),sO((function(t){var i=t.targetSnapshot,n=t.id,a=t.extractedUrl,r=t.rawUrl,o=t.extras,s=o.skipLocationChange,c=o.replaceUrl;return e.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})})),Object(ri.a)((function(t){var i=function(t,e,i){var n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){var a=n.value;a._futureSnapshot=i.value;var r=function(e,i,n){return i.children.map((function(i){var a,r=_createForOfIteratorHelper(n.children);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(e.shouldReuseRoute(o.value.snapshot,i.value))return t(e,i,o)}}catch(s){r.e(s)}finally{r.f()}return t(e,i)}))}(e,i,n);return new aE(a,r)}var o=e.retrieve(i.value);if(o){var s=o.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=e.relativeTo,n=e.queryParams,r=e.fragment,o=e.preserveQueryParams,s=e.queryParamsHandling,c=e.preserveFragment;Object(a.fb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=i||this.routerState.root,u=c?this.currentUrlTree.fragment:r,d=null;if(s)switch(s){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=n||null}else d=o?this.currentUrlTree.queryParams:n||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,i,n,a){if(0===i.length)return vE(e.root,e.root,e,n,a);var r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new bE(!0,0,t);var e=0,i=!1,n=t.reduce((function(t,n,a){if("object"==typeof n&&null!=n){if(n.outlets){var r={};return PS(n.outlets,(function(t,e){r[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:r}])}if(n.segmentPath)return[].concat(_toConsumableArray(t),[n.segmentPath])}return"string"!=typeof n?[].concat(_toConsumableArray(t),[n]):0===a?(n.split("/").forEach((function(n,a){0==a&&"."===n||(0==a&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))})),t):[].concat(_toConsumableArray(t),[n])}),[]);return new bE(i,e,n)}(i);if(r.toRoot())return vE(e.root,new zS([],{}),e,n,a);var o=function(t,e,i){if(t.isAbsolute)return new _E(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new _E(i.snapshot._urlSegment,!0,0);var n=gE(t.commands[0])?0:1;return function(t,e,i){for(var n=t,a=e,r=i;r>a;){if(r-=a,!(n=n.parent))throw new Error("Invalid number of '../'");a=n.segments.length}return new _E(n,!1,a-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),s=o.processChildren?wE(o.segmentGroup,o.index,r.commands):kE(o.segmentGroup,o.index,r.commands);return vE(o.segmentGroup,s,e,n,a)}(l,this.currentUrlTree,t,d,u)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(a.fb)()&&this.isNgZoneEnabled&&!a.G.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var i=DE(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return _createClass(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 iS?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof nS&&(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 vS&&(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 vS(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}()).\u0275fac=function(t){a.Rc()},xO.\u0275dir=a.uc({type:xO}),xO),MO=new a.w("ROUTER_CONFIGURATION"),zO=new a.w("ROUTER_FORROOT_GUARD"),LO=[ye.n,{provide:BS,useClass:VS},{provide:bO,useFactory:function(t,e,i,n,a,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,u=new bO(null,t,e,i,n,a,r,DS(o));if(c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=Object(ye.N)();u.events.subscribe((function(t){d.logGroup("Router Event: ".concat(t.constructor.name)),d.log(t.toString()),d.log(t),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[BS,AO,ye.n,a.x,a.D,a.k,lO,MO,[function(){return function t(){_classCallCheck(this,t)}}(),new a.H],[function(){return function t(){_classCallCheck(this,t)}}(),new a.H]]},AO,{provide:cE,useFactory:function(t){return t.routerState.root},deps:[bO]},{provide:a.D,useClass:a.S},FO,PO,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(Zf((function(){return Be(null)})))}}]),t}(),{provide:MO,useValue:{enableTracing:!1}}];function jO(){return new a.F("Router",bO)}var NO,BO=((NO=function(){function t(e,i){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[LO,HO(e),{provide:zO,useFactory:WO,deps:[[bO,new a.H,new a.R]]},{provide:MO,useValue:i||{}},{provide:ye.o,useFactory:UO,deps:[ye.D,[new a.v(ye.a),new a.H],MO]},{provide:RO,useFactory:VO,deps:[bO,ye.H,MO]},{provide:IO,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:PO},{provide:a.F,multi:!0,useFactory:jO},[qO,{provide:a.d,multi:!0,useFactory:$O,deps:[qO]},{provide:XO,useFactory:YO,deps:[qO]},{provide:a.b,multi:!0,useExisting:XO}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[HO(e)]}}}]),t}()).\u0275mod=a.xc({type:NO}),NO.\u0275inj=a.wc({factory:function(t){return new(t||NO)(a.Oc(zO,8),a.Oc(bO,8))}}),NO);function VO(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new RO(t,e,i)}function UO(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new ye.h(t,e):new ye.B(t,e)}function WO(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function HO(t){return[{provide:a.a,multi:!0,useValue:t},{provide:lO,multi:!0,useValue:t}]}var GO,qO=((GO=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Me.a}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(ye.m,Promise.resolve(null)).then((function(){var e=null,i=new Promise((function(t){return e=t})),n=t.injector.get(bO),a=t.injector.get(MO);if(t.isLegacyDisabled(a)||t.isLegacyEnabled(a))e(!0);else if("disabled"===a.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==a.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(a.initialNavigation,"'"));n.hooks.afterPreactivation=function(){return t.initNavigation?Be(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return i}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(MO),i=this.injector.get(FO),n=this.injector.get(RO),r=this.injector.get(bO),o=this.injector.get(a.g);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),r.resetRootComponentType(o.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}()).\u0275fac=function(t){return new(t||GO)(a.Oc(a.x))},GO.\u0275prov=a.vc({token:GO,factory:GO.\u0275fac}),GO);function $O(t){return t.appInitializer.bind(t)}function YO(t){return t.bootstrapListener.bind(t)}var KO,XO=new a.w("Router Initializer"),JO=((KO=function(){function t(e,i,n,r){var o=this;_classCallCheck(this,t),this.http=e,this.router=i,this.document=n,this.snackBar=r,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=Px,this.settings_changed=new Ek(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.unauthorized=!1,this.debugMode=!1,this.isLoggedIn=!1,this.token=null,this.user=null,this.permissions=null,this.available_permissions=null,this.reload_config=new Ek(!1),this.config_reloaded=new Ek(!1),this.service_initialized=new Ek(!1),this.initialized=!1,this.open_create_default_admin_dialog=new Ek(!1),this.config=null,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(a.fb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params="apiKey=".concat(this.auth_token),this.httpOptions={params:new hm({fromString:this.http_params})},Fx.get((function(t){o.session_id=Fx.x64hash128(t.map((function(t){return t.value})).join(),31),o.httpOptions.params=o.httpOptions.params.set("sessionID",o.session_id)})),this.loadNavItems().subscribe((function(t){var e=o.debugMode?t:t.config_file;e&&(o.config=e.YoutubeDLMaterial,o.config.Advanced.multi_user_mode?localStorage.getItem("jwt_token")?(o.token=localStorage.getItem("jwt_token"),o.httpOptions.params=o.httpOptions.params.set("jwt",o.token),o.jwtAuth()):o.sendToLogin():o.setInitialized())})),this.reload_config.subscribe((function(t){t&&o.reloadConfig()}))}return _createClass(t,[{key:"canActivate",value:function(t,e){return new Promise((function(t){t(!0)}))}},{key:"setTheme",value:function(t){this.theme=this.THEMES_CONFIG[t]}},{key:"startHandshake",value:function(t){return this.http.get(t+"geturl")}},{key:"startHandshakeSSL",value:function(t){return this.http.get(t+"geturl")}},{key:"reloadConfig",value:function(){var t=this;this.loadNavItems().subscribe((function(e){var i=t.debugMode?e:e.config_file;i&&(t.config=i.YoutubeDLMaterial,t.config_reloaded.next(!0))}))}},{key:"getVideoFolder",value:function(){return this.http.get(this.startPath+"videofolder")}},{key:"getAudioFolder",value:function(){return this.http.get(this.startPath+"audiofolder")}},{key:"makeMP3",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"makeMP4",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"getFileStatusMp3",value:function(t){return this.http.post(this.path+"fileStatusMp3",{name:t},this.httpOptions)}},{key:"getFileStatusMp4",value:function(t){return this.http.post(this.path+"fileStatusMp4",{name:t},this.httpOptions)}},{key:"loadNavItems",value:function(){return Object(a.fb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}},{key:"loadAsset",value:function(t){return this.http.get("./assets/".concat(t))}},{key:"setConfig",value:function(t){return this.http.post(this.path+"setConfig",{new_config_file:t},this.httpOptions)}},{key:"deleteFile",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{uid:t,blacklistMode:i},this.httpOptions)}},{key:"getMp3s",value:function(){return this.http.get(this.path+"getMp3s",this.httpOptions)}},{key:"getMp4s",value:function(){return this.http.get(this.path+"getMp4s",this.httpOptions)}},{key:"getFile",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"getFile",{uid:t,type:e,uuid:i},this.httpOptions)}},{key:"downloadFileFromServer",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n,subscriptionName:a,subPlaylist:r,uuid:s,uid:o},{responseType:"blob",params:this.httpOptions.params})}},{key:"downloadArchive",value:function(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob",params:this.httpOptions.params})}},{key:"getFileInfo",value:function(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i},this.httpOptions)}},{key:"isPinSet",value:function(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}},{key:"setPin",value:function(t){return this.http.post(this.path+"setPin",{pin:t},this.httpOptions)}},{key:"checkPin",value:function(t){return this.http.post(this.path+"checkPin",{input_pin:t},this.httpOptions)}},{key:"generateNewAPIKey",value:function(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}},{key:"enableSharing",value:function(t,e,i){return this.http.post(this.path+"enableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}},{key:"disableSharing",value:function(t,e,i){return this.http.post(this.path+"disableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}},{key:"createPlaylist",value:function(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n},this.httpOptions)}},{key:"getPlaylist",value:function(t,e){return this.http.post(this.path+"getPlaylist",{playlistID:t,type:e},this.httpOptions)}},{key:"updatePlaylist",value:function(t,e,i){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:i},this.httpOptions)}},{key:"removePlaylist",value:function(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e},this.httpOptions)}},{key:"createSubscription",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i,streamingOnly:n},this.httpOptions)}},{key:"unsubscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e},this.httpOptions)}},{key:"deleteSubscriptionFile",value:function(t,e,i){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i},this.httpOptions)}},{key:"getSubscription",value:function(t){return this.http.post(this.path+"getSubscription",{id:t},this.httpOptions)}},{key:"getAllSubscriptions",value:function(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}},{key:"getCurrentDownloads",value:function(){return this.http.get(this.path+"downloads",this.httpOptions)}},{key:"getCurrentDownload",value:function(t,e){return this.http.post(this.path+"download",{download_id:e,session_id:t},this.httpOptions)}},{key:"clearDownloads",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"clearDownloads",{delete_all:t,download_id:i,session_id:e||this.session_id},this.httpOptions)}},{key:"updateServer",value:function(t){return this.http.post(this.path+"updateServer",{tag:t},this.httpOptions)}},{key:"getUpdaterStatus",value:function(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}},{key:"getLatestGithubRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}},{key:"getAvailableRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}},{key:"afterLogin",value:function(t,e,i,n){this.isLoggedIn=!0,this.user=t,this.permissions=i,this.available_permissions=n,this.token=e,localStorage.setItem("jwt_token",this.token),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.config_reloaded.next(!0),"/login"===this.router.url&&this.router.navigate(["/home"])}},{key:"login",value:function(t,e){var i=this,n=this.http.post(this.path+"auth/login",{userid:t,password:e},this.httpOptions);return n.subscribe((function(t){t.token&&i.afterLogin(t.user,t.token,t.permissions,t.available_permissions)})),n}},{key:"jwtAuth",value:function(){var t=this,e=this.http.post(this.path+"auth/jwtAuth",{},this.httpOptions);return e.subscribe((function(e){e.token&&(t.afterLogin(e.user,e.token,e.permissions,e.available_permissions),t.setInitialized())}),(function(e){401===e.status&&t.sendToLogin()})),e}},{key:"logout",value:function(){this.user=null,this.permissions=null,this.isLoggedIn=!1,localStorage.setItem("jwt_token",null),"/login"!==this.router.url&&this.router.navigate(["/login"]),this.http_params="apiKey=".concat(this.auth_token,"&sessionID=").concat(this.session_id),this.httpOptions={params:new hm({fromString:this.http_params})}}},{key:"register",value:function(t,e){return this.http.post(this.path+"auth/register",{userid:t,username:t,password:e},this.httpOptions)}},{key:"sendToLogin",value:function(){this.checkAdminCreationStatus(),"/login"!==this.router.url&&(this.router.navigate(["/login"]),this.openSnackBar("You must log in to access this page!"))}},{key:"setInitialized",value:function(){this.service_initialized.next(!0),this.initialized=!0,this.config_reloaded.next(!0)}},{key:"adminExists",value:function(){return this.http.post(this.path+"auth/adminExists",{},this.httpOptions)}},{key:"createAdminAccount",value:function(t){return this.http.post(this.path+"auth/register",{userid:"admin",username:"admin",password:t},this.httpOptions)}},{key:"checkAdminCreationStatus",value:function(){var t=this;this.config.Advanced.multi_user_mode&&this.adminExists().subscribe((function(e){e.exists||t.open_create_default_admin_dialog.next(!0)}))}},{key:"changeUser",value:function(t){return this.http.post(this.path+"changeUser",{change_object:t},this.httpOptions)}},{key:"deleteUser",value:function(t){return this.http.post(this.path+"deleteUser",{uid:t},this.httpOptions)}},{key:"changeUserPassword",value:function(t,e){return this.http.post(this.path+"auth/changePassword",{user_uid:t,new_password:e},this.httpOptions)}},{key:"getUsers",value:function(){return this.http.post(this.path+"getUsers",{},this.httpOptions)}},{key:"getRoles",value:function(){return this.http.post(this.path+"getRoles",{},this.httpOptions)}},{key:"setUserPermission",value:function(t,e,i){return this.http.post(this.path+"changeUserPermissions",{user_uid:t,permission:e,new_value:i},this.httpOptions)}},{key:"setRolePermission",value:function(t,e,i){return this.http.post(this.path+"changeRolePermissions",{role:t,permission:e,new_value:i},this.httpOptions)}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||KO)(a.Oc(Pm),a.Oc(bO),a.Oc(ye.e),a.Oc(D_))},KO.\u0275prov=a.vc({token:KO,factory:KO.\u0275fac}),KO);si.a.of=Be;var ZO=function(){function t(e){_classCallCheck(this,t),this.value=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new QO(t,this.value))}}]),t}(),QO=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).value=n,a}return _createClass(i,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),i}(Ue.a);function tA(t,e,i){return Ge(t,e,i)(this)}function eA(){return Il(Gx.a)(this)}function iA(t,e){if(1&t&&(a.Fc(0,"h4",5),a.xd(1),a.Ec()),2&t){var i=a.Wc();a.lc(1),a.yd(i.dialog_title)}}function nA(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div"),a.Fc(1,"mat-form-field",6),a.Fc(2,"input",7),a.Sc("keyup.enter",(function(){return a.nd(i),a.Wc().doAction()}))("ngModelChange",(function(t){return a.nd(i),a.Wc().input=t})),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(2),a.cd("ngModel",n.input)("placeholder",n.input_placeholder)}}function aA(t,e){1&t&&(a.Fc(0,"div",8),a.Ac(1,"mat-spinner",9),a.Ec()),2&t&&(a.lc(1),a.cd("diameter",25))}si.a.prototype.mapTo=function(t){return function(t){return function(e){return e.lift(new ZO(t))}}(t)(this)},i("XypG"),si.a.fromEvent=rl,si.a.prototype.filter=function(t,e){return ii(t,e)(this)},si.a.prototype.debounceTime=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je;return Ze(t,e)(this)},si.a.prototype.do=tA,si.a.prototype._do=tA,si.a.prototype.switch=eA,si.a.prototype._switch=eA;var rA,oA,sA,cA,lA,uA,dA,hA,fA,mA=((rA=function(){function t(e,i,n,a){_classCallCheck(this,t),this.postsService=e,this.data=i,this.dialogRef=n,this.snackBar=a,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}},{key:"isPinSet",value:function(){var t=this;this.postsService.isPinSet().subscribe((function(e){t.pinSetChecked=!0,e.is_set?t.isSetLogic():t.notSetLogic()}))}},{key:"isSetLogic",value:function(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}},{key:"notSetLogic",value:function(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}},{key:"doAction",value:function(){var t=this;this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe((function(e){e.success?t.dialogRef.close(!0):(t.dialogRef.close(!1),t.openSnackBar("Pin is incorrect!"))})):this.postsService.setPin(this.input).subscribe((function(e){e.success?(t.dialogRef.close(!0),t.openSnackBar("Pin successfully set!")):(t.dialogRef.close(!1),t.openSnackBar("Failed to set pin!"))})))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||rA)(a.zc(JO),a.zc(Oh),a.zc(Eh),a.zc(D_))},rA.\u0275cmp=a.tc({type:rA,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(a.vd(0,iA,2,1,"h4",0),a.Fc(1,"mat-dialog-content"),a.Fc(2,"div",1),a.vd(3,nA,3,2,"div",2),a.vd(4,aA,2,1,"div",3),a.Ec(),a.Ec(),a.Fc(5,"mat-dialog-actions"),a.Fc(6,"button",4),a.Sc("click",(function(){return e.doAction()})),a.xd(7),a.Ec(),a.Ec()),2&t&&(a.cd("ngIf",e.pinSetChecked),a.lc(3),a.cd("ngIf",e.pinSetChecked),a.lc(1),a.cd("ngIf",!e.pinSetChecked),a.lc(2),a.cd("disabled",0===e.input.length),a.lc(1),a.yd(e.button_label))},directives:[ye.t,Mh,zh,Za,Rh,Hd,Pp,_r,Ar,ts,zv],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),rA),pA={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},gA={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},vA={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]};function bA(t,e){if(1&t&&(a.Fc(0,"mat-option",20),a.Ac(1,"span",21),a.Xc(2,"highlight"),a.Fc(3,"button",22),a.Fc(4,"mat-icon"),a.xd(5,"info"),a.Ec(),a.Ec(),a.Ec()),2&t){var i=e.$implicit,n=a.Wc();a.cd("value",i.key),a.lc(1),a.cd("innerHTML",a.Zc(2,3,i.key,n.stateCtrl.value),a.od),a.lc(2),a.cd("matTooltip",i.description)}}function _A(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",26),a.Sc("click",(function(){a.nd(i);var t=e.$implicit;return a.Wc(2).setFirstArg(t.key)})),a.Fc(1,"div",27),a.xd(2),a.Ec(),a.xd(3,"\xa0\xa0"),a.Fc(4,"div",28),a.Fc(5,"mat-icon",29),a.xd(6,"info"),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=e.$implicit;a.lc(2),a.yd(n.key),a.lc(3),a.cd("matTooltip",n.description)}}function yA(t,e){if(1&t&&(a.Dc(0),a.Fc(1,"button",23),a.xd(2),a.Ec(),a.Fc(3,"mat-menu",null,24),a.vd(5,_A,7,2,"button",25),a.Ec(),a.Cc()),2&t){var i=e.$implicit,n=a.jd(4),r=a.Wc();a.lc(1),a.cd("matMenuTriggerFor",n),a.lc(1),a.yd(r.argsInfo[i.key].label),a.lc(3),a.cd("ngForOf",i.value)}}oA=$localize(_templateObject()),sA=$localize(_templateObject2()),cA=$localize(_templateObject3()),lA=$localize(_templateObject4()),uA=$localize(_templateObject5()),dA=$localize(_templateObject6()),hA=$localize(_templateObject7()),fA=$localize(_templateObject8());var kA=["placeholder",$localize(_templateObject9())],wA=function(){return{standalone:!0}};function CA(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div"),a.Fc(1,"mat-form-field",8),a.Fc(2,"input",30),a.Lc(3,kA),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc().secondArg=t})),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(2),a.cd("ngModelOptions",a.ed(3,wA))("disabled",!n.secondArgEnabled)("ngModel",n.secondArg)}}var xA,SA,EA,OA,AA=((SA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var i=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter((function(t){return t.length>0})).join("|"):void 0,n=new RegExp(i,"gi");return e?t.replace(n,(function(t){return"".concat(t,"")})):t}}]),t}()).\u0275fac=function(t){return new(t||SA)},SA.\u0275pipe=a.yc({name:"highlight",type:SA,pure:!0}),SA),TA=((xA=function(){function t(e,i,n){_classCallCheck(this,t),this.data=e,this.dialogRef=i,this.dialog=n,this.myGroup=new Vo,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Vo,this.availableArgs=null,this.argsByCategory=null,this.argsInfo=null}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.data&&(this.modified_args=this.data.initial_args),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(Dn(""),Object(ri.a)((function(e){return t.filter(e)})))}},{key:"filter",value:function(t){if(this.availableArgs)return this.availableArgs.filter((function(e){return e.key.toLowerCase().includes(t.toLowerCase())}))}},{key:"addArg",value:function(){""!==this.modified_args&&(this.modified_args+=" "),this.modified_args+=this.stateCtrl.value+" "+(this.secondArgEnabled?this.secondArg:"")}},{key:"canAddArg",value:function(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}},{key:"getFirstArg",value:function(){var t=this;return new Promise((function(e){e(t.stateCtrl.value)}))}},{key:"getValueAsync",value:function(t){return new Promise((function(e){e(t)}))}},{key:"getAllPossibleArgs",value:function(){var t=vA,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e);this.availableArgs=i,this.argsByCategory=t,this.argsInfo=gA}},{key:"setFirstArg",value:function(t){this.stateCtrl.setValue(t)}}],[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275fac=function(t){return new(t||xA)(a.zc(Oh),a.zc(Eh),a.zc(Ih))},xA.\u0275cmp=a.tc({type:xA,selectors:[["app-arg-modifier-dialog"]],features:[a.kc([AA])],decls:48,vars:17,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["color","accent",2,"width","100%"],["matInput","",3,"disabled"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","","mat-dialog-close",""],["mat-button","","color","accent",3,"mat-dialog-close"],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(a.Fc(0,"h4",0),a.Jc(1,oA),a.Ec(),a.Fc(2,"mat-dialog-content"),a.Fc(3,"div",1),a.Fc(4,"div",2),a.Fc(5,"div",3),a.Fc(6,"mat-card",4),a.Fc(7,"h6"),a.Jc(8,sA),a.Ec(),a.Fc(9,"mat-form-field",5),a.Fc(10,"textarea",6),a.xd(11),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(12,"div",3),a.Fc(13,"mat-card",7),a.Fc(14,"h6"),a.Jc(15,cA),a.Ec(),a.Fc(16,"form"),a.Fc(17,"div"),a.Fc(18,"mat-form-field",8),a.Ac(19,"input",9),a.Ec(),a.Fc(20,"mat-autocomplete",null,10),a.vd(22,bA,6,6,"mat-option",11),a.Xc(23,"async"),a.Ec(),a.Fc(24,"div"),a.Fc(25,"mat-menu",null,12),a.vd(27,yA,6,3,"ng-container",13),a.Xc(28,"keyvalue"),a.Ec(),a.Fc(29,"button",14),a.Dc(30),a.Jc(31,lA),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(32,"div"),a.Fc(33,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return e.secondArgEnabled=t})),a.Dc(34),a.Jc(35,uA),a.Cc(),a.Ec(),a.Ec(),a.vd(36,CA,4,4,"div",16),a.Ec(),a.Fc(37,"div"),a.Fc(38,"button",17),a.Sc("click",(function(){return e.addArg()})),a.Dc(39),a.Jc(40,dA),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(41,"mat-dialog-actions"),a.Fc(42,"button",18),a.Dc(43),a.Jc(44,hA),a.Cc(),a.Ec(),a.Fc(45,"button",19),a.Dc(46),a.Jc(47,fA),a.Cc(),a.Ec(),a.Ec()),2&t){var i=a.jd(21),n=a.jd(26);a.lc(10),a.cd("disabled",!0),a.lc(1),a.yd(e.modified_args),a.lc(8),a.cd("matAutocomplete",i)("formControl",e.stateCtrl),a.lc(3),a.cd("ngForOf",a.Yc(23,12,e.filteredOptions)),a.lc(5),a.cd("ngForOf",a.Yc(28,14,e.argsByCategory)),a.lc(2),a.cd("matMenuTriggerFor",n),a.lc(4),a.cd("ngModelOptions",a.ed(16,wA))("ngModel",e.secondArgEnabled),a.lc(3),a.cd("ngIf",e.secondArgEnabled),a.lc(2),a.cd("disabled",!e.canAddArg()),a.lc(7),a.cd("mat-dialog-close",e.modified_args)}},directives:[Rh,Mh,jc,Hd,Pp,es,Tr,qo,hh,_r,Ar,as,sh,ye.s,Mg,Za,Ng,Jc,ts,ye.t,zh,Fh,Na,hv,_p,Tg],pipes:[ye.b,ye.l,AA],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),xA);function DA(t,e){1&t&&(a.Fc(0,"h6"),a.xd(1,"Update in progress"),a.Ec())}function IA(t,e){1&t&&(a.Fc(0,"h6"),a.xd(1,"Update failed"),a.Ec())}function PA(t,e){1&t&&(a.Fc(0,"h6"),a.xd(1,"Update succeeded!"),a.Ec())}function FA(t,e){1&t&&a.Ac(0,"mat-progress-bar",7)}function RA(t,e){1&t&&a.Ac(0,"mat-progress-bar",8)}function MA(t,e){if(1&t&&(a.Fc(0,"p",9),a.xd(1),a.Ec()),2&t){var i=a.Wc(2);a.lc(1),a.yd(i.updateStatus.details)}}function zA(t,e){if(1&t&&(a.Fc(0,"div"),a.Fc(1,"div",3),a.vd(2,DA,2,0,"h6",1),a.vd(3,IA,2,0,"h6",1),a.vd(4,PA,2,0,"h6",1),a.Ec(),a.vd(5,FA,1,0,"mat-progress-bar",4),a.vd(6,RA,1,0,"mat-progress-bar",5),a.vd(7,MA,2,1,"p",6),a.Ec()),2&t){var i=a.Wc();a.lc(2),a.cd("ngIf",i.updateStatus.updating),a.lc(1),a.cd("ngIf",!i.updateStatus.updating&&i.updateStatus.error),a.lc(1),a.cd("ngIf",!i.updateStatus.updating&&!i.updateStatus.error),a.lc(1),a.cd("ngIf",i.updateStatus.updating),a.lc(1),a.cd("ngIf",!i.updateStatus.updating),a.lc(1),a.cd("ngIf",i.updateStatus.details)}}EA=$localize(_templateObject10()),OA=$localize(_templateObject11());var LA,jA,NA=((LA=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.updateStatus=null,this.updateInterval=250,this.errored=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.getUpdateProgress(),setInterval((function(){t.updateStatus.updating&&t.getUpdateProgress()}),250)}},{key:"getUpdateProgress",value:function(){var t=this;this.postsService.getUpdaterStatus().subscribe((function(e){e&&(t.updateStatus=e,t.updateStatus&&t.updateStatus.error&&t.openSnackBar("Update failed. Check logs for more details."))}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||LA)(a.zc(JO),a.zc(D_))},LA.\u0275cmp=a.tc({type:LA,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.Jc(1,EA),a.Ec(),a.Fc(2,"mat-dialog-content"),a.vd(3,zA,8,6,"div",1),a.Ec(),a.Fc(4,"mat-dialog-actions"),a.Fc(5,"button",2),a.Dc(6),a.Jc(7,OA),a.Cc(),a.Ec(),a.Ec()),2&t&&(a.lc(3),a.cd("ngIf",e.updateStatus))},directives:[Rh,Mh,ye.t,zh,Za,Fh,_v],styles:[""]}),LA);function BA(t,e){if(1&t&&(a.Fc(0,"mat-option",6),a.xd(1),a.Ec()),2&t){var i=e.$implicit,n=a.Wc(2);a.cd("value",i.tag_name),a.lc(1),a.zd(" ",i.tag_name+(i===n.latestStableRelease?" - Latest Stable":"")+(i.tag_name===n.CURRENT_VERSION?" - Current Version":"")," ")}}function VA(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",3),a.Fc(1,"mat-form-field"),a.Fc(2,"mat-select",4),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc().selectedVersion=t})),a.vd(3,BA,2,2,"mat-option",5),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(2),a.cd("ngModel",n.selectedVersion),a.lc(1),a.cd("ngForOf",n.availableVersionsFiltered)}}function UA(t,e){1&t&&(a.Dc(0),a.xd(1,"Upgrade to"),a.Cc())}function WA(t,e){1&t&&(a.Dc(0),a.xd(1,"Downgrade to"),a.Cc())}function HA(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",3),a.Fc(1,"button",7),a.Sc("click",(function(){return a.nd(i),a.Wc().updateServer()})),a.Fc(2,"mat-icon"),a.xd(3,"update"),a.Ec(),a.xd(4,"\xa0\xa0 "),a.vd(5,UA,2,0,"ng-container",8),a.vd(6,WA,2,0,"ng-container",8),a.xd(7),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(5),a.cd("ngIf",n.selectedVersion>n.CURRENT_VERSION),a.lc(1),a.cd("ngIf",n.selectedVersion=t.versionsShowLimit)break;t.availableVersionsFiltered.push(n)}}))}},{key:"openUpdateProgressDialog",value:function(){this.dialog.open(NA,{minWidth:"300px",minHeight:"200px"})}}]),t}()).\u0275fac=function(t){return new(t||GA)(a.zc(JO),a.zc(Ih))},GA.\u0275cmp=a.tc({type:GA,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(t,e){1&t&&(a.Fc(0,"div",0),a.Fc(1,"div",1),a.Dc(2),a.Jc(3,jA),a.Cc(),a.Ec(),a.vd(4,VA,4,2,"div",2),a.vd(5,HA,8,3,"div",2),a.Ec()),2&t&&(a.lc(4),a.cd("ngIf",e.availableVersions),a.lc(1),a.cd("ngIf",e.selectedVersion&&e.selectedVersion!==e.CURRENT_VERSION))},directives:[ye.t,Hd,pb,Ar,ts,ye.s,Na,Za,_p],styles:[""]}),GA);qA=$localize(_templateObject13()),$A=$localize(_templateObject14()),YA=$localize(_templateObject15());var XA,JA,ZA,QA,tT=((XA=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.dialogRef=i,this.usernameInput="",this.passwordInput=""}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"createUser",value:function(){var t=this;this.postsService.register(this.usernameInput,this.passwordInput).subscribe((function(e){t.dialogRef.close(e.user?e.user:{error:"Unknown error"})}),(function(e){t.dialogRef.close({error:e})}))}}]),t}()).\u0275fac=function(t){return new(t||XA)(a.zc(JO),a.zc(Eh))},XA.\u0275cmp=a.tc({type:XA,selectors:[["app-add-user-dialog"]],decls:16,vars:2,consts:[["mat-dialog-title",""],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["matInput","","placeholder","Password","type","password",3,"ngModel","ngModelChange"],["color","accent","mat-raised-button","",3,"click"],["mat-dialog-close","","mat-button",""]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.Jc(1,qA),a.Ec(),a.Fc(2,"mat-dialog-content"),a.Fc(3,"div"),a.Fc(4,"mat-form-field"),a.Fc(5,"input",1),a.Sc("ngModelChange",(function(t){return e.usernameInput=t})),a.Ec(),a.Ec(),a.Ec(),a.Fc(6,"div"),a.Fc(7,"mat-form-field"),a.Fc(8,"input",2),a.Sc("ngModelChange",(function(t){return e.passwordInput=t})),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(9,"mat-dialog-actions"),a.Fc(10,"button",3),a.Sc("click",(function(){return e.createUser()})),a.Dc(11),a.Jc(12,$A),a.Cc(),a.Ec(),a.Fc(13,"button",4),a.Dc(14),a.Jc(15,YA),a.Cc(),a.Ec(),a.Ec()),2&t&&(a.lc(5),a.cd("ngModel",e.usernameInput),a.lc(3),a.cd("ngModel",e.passwordInput))},directives:[Rh,Mh,Hd,Pp,_r,Ar,ts,zh,Za,Fh],styles:[""]}),XA);function eT(t,e){if(1&t&&(a.Fc(0,"h4",3),a.Dc(1),a.Jc(2,ZA),a.Cc(),a.xd(3),a.Ec()),2&t){var i=a.Wc();a.lc(3),a.zd("\xa0-\xa0",i.user.name,"")}}JA=$localize(_templateObject16()),ZA=$localize(_templateObject17()),QA=$localize(_templateObject18());var iT,nT,aT,rT,oT=["placeholder",$localize(_templateObject19())];function sT(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-list-item",8),a.Fc(1,"h3",9),a.xd(2),a.Ec(),a.Fc(3,"span",9),a.Fc(4,"mat-radio-group",10),a.Sc("change",(function(t){a.nd(i);var n=e.$implicit;return a.Wc(2).changeUserPermissions(t,n)}))("ngModelChange",(function(t){a.nd(i);var n=e.$implicit;return a.Wc(2).permissions[n]=t})),a.Fc(5,"mat-radio-button",11),a.Dc(6),a.Jc(7,nT),a.Cc(),a.Ec(),a.Fc(8,"mat-radio-button",12),a.Dc(9),a.Jc(10,aT),a.Cc(),a.Ec(),a.Fc(11,"mat-radio-button",13),a.Dc(12),a.Jc(13,rT),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=e.$implicit,r=a.Wc(2);a.lc(2),a.yd(r.permissionToLabel[n]?r.permissionToLabel[n]:n),a.lc(2),a.cd("disabled","settings"===n&&r.postsService.user.uid===r.user.uid)("ngModel",r.permissions[n]),a.mc("aria-label","Give user permission for "+n)}}function cT(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-dialog-content"),a.Fc(1,"p"),a.Dc(2),a.Jc(3,QA),a.Cc(),a.xd(4),a.Ec(),a.Fc(5,"div"),a.Fc(6,"mat-form-field",4),a.Fc(7,"input",5),a.Lc(8,oT),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc().newPasswordInput=t})),a.Ec(),a.Ec(),a.Fc(9,"button",6),a.Sc("click",(function(){return a.nd(i),a.Wc().setNewPassword()})),a.Dc(10),a.Jc(11,iT),a.Cc(),a.Ec(),a.Ec(),a.Fc(12,"div"),a.Fc(13,"mat-list"),a.vd(14,sT,14,4,"mat-list-item",7),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(4),a.zd("\xa0",n.user.uid,""),a.lc(3),a.cd("ngModel",n.newPasswordInput),a.lc(2),a.cd("disabled",0===n.newPasswordInput.length),a.lc(5),a.cd("ngForOf",n.available_permissions)}}iT=$localize(_templateObject20()),nT=$localize(_templateObject21()),aT=$localize(_templateObject22()),rT=$localize(_templateObject23());var lT,uT,dT,hT,fT,mT=((lT=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.data=i,this.user=null,this.newPasswordInput="",this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.settingNewPassword=!1,this.data&&(this.user=this.data.user,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"parsePermissions",value:function(){this.permissions={};for(var t=0;t-1){var e=this.indexOfUser(t);this.editObject=this.users[e],this.constructedObject.name=this.users[e].name,this.constructedObject.uid=this.users[e].uid,this.constructedObject.role=this.users[e].role}}},{key:"disableEditMode",value:function(){this.editObject=null}},{key:"uidInUserList",value:function(t){for(var e=0;et.name}));for(var t=[],e=0;e1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||VT)(a.zc(JO),a.zc(D_),a.zc(Ih),a.zc(Eh))},VT.\u0275cmp=a.tc({type:VT,selectors:[["app-modify-users"]],viewQuery:function(t,e){var i;1&t&&(a.Bd(sk,!0),a.Bd(vk,!0)),2&t&&(a.id(i=a.Tc())&&(e.paginator=i.first),a.id(i=a.Tc())&&(e.sort=i.first))},inputs:{pageSize:"pageSize"},decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],[1,"centered",2,"position","absolute"],["loading",""],[2,"padding","15px"],[1,"row"],[1,"table","table-responsive","p-5"],[1,"example-header"],["matInput","","placeholder","Search",3,"keyup"],[1,"example-container","mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","role"],["matColumnDef","actions"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["paginator",""],["color","primary","mat-raised-button","",2,"float","left","top","-45px","left","15px",3,"disabled","click"],["color","primary","mat-raised-button","",1,"edit-role",3,"matMenuTriggerFor"],["edit_roles_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-sort-header",""],["noteditingname",""],[2,"width","80%"],["matInput","","type","text",2,"font-size","12px",3,"ngModel","ngModelChange"],["noteditingemail",""],[3,"ngModel","ngModelChange"],["value","admin"],["value","user"],["notediting",""],["mat-icon-button","","matTooltip","Manage user",3,"disabled","click"],["mat-icon-button","","matTooltip","Delete user",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Finish editing user",3,"click"],["mat-icon-button","","matTooltip","Cancel editing user",3,"click"],["mat-icon-button","","matTooltip","Edit user",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(a.vd(0,NT,31,9,"div",0),a.Fc(1,"div",1),a.vd(2,BT,1,0,"ng-template",null,2,a.wd),a.Ec()),2&t){var i=a.jd(3);a.cd("ngIf",e.dataSource)("ngIfElse",i)}},directives:[ye.t,Hd,Pp,Xw,vk,aC,tC,Zw,lC,fC,sk,Za,Ng,Mg,ye.s,oC,xk,cC,_r,Ar,ts,pb,Na,hv,_p,pC,_C,Tg,zv],styles:[".edit-role[_ngcontent-%COMP%]{position:relative;top:-80px;left:35px}"]}),VT);function HT(t){return null===t||null!==t.match(/^ *$/)}UT=$localize(_templateObject32());var GT,qT,$T=["label",$localize(_templateObject33())],YT=["label",$localize(_templateObject34())],KT=["label",$localize(_templateObject35())],XT=["label",$localize(_templateObject36())];GT=$localize(_templateObject37()),qT=$localize(_templateObject38()),qT=a.Nc(qT,{VAR_SELECT:"\ufffd0\ufffd"});var JT,ZT=["placeholder",$localize(_templateObject39())];JT=$localize(_templateObject40());var QT,tD,eD=["placeholder",$localize(_templateObject41())];function iD(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-form-field",12),a.Fc(4,"input",13),a.Lc(5,ZT),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Host.url=t})),a.Ec(),a.Fc(6,"mat-hint"),a.Dc(7),a.Jc(8,JT),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(9,"div",14),a.Fc(10,"mat-form-field",12),a.Fc(11,"input",13),a.Lc(12,eD),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Host.port=t})),a.Ec(),a.Fc(13,"mat-hint"),a.Dc(14),a.Jc(15,QT),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(4),a.cd("ngModel",n.new_config.Host.url),a.lc(7),a.cd("ngModel",n.new_config.Host.port)}}QT=$localize(_templateObject42()),tD=$localize(_templateObject43());var nD,aD=["placeholder",$localize(_templateObject44())],rD=["placeholder",$localize(_templateObject45())];function oD(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Encryption["use-encryption"]=t})),a.Dc(4),a.Jc(5,tD),a.Cc(),a.Ec(),a.Ec(),a.Fc(6,"div",16),a.Fc(7,"mat-form-field",12),a.Fc(8,"input",17),a.Lc(9,aD),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Encryption["cert-file-path"]=t})),a.Ec(),a.Ec(),a.Ec(),a.Fc(10,"div",16),a.Fc(11,"mat-form-field",12),a.Fc(12,"input",17),a.Lc(13,rD),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Encryption["key-file-path"]=t})),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(3),a.cd("ngModel",n.new_config.Encryption["use-encryption"]),a.lc(5),a.cd("disabled",!n.new_config.Encryption["use-encryption"])("ngModel",n.new_config.Encryption["cert-file-path"]),a.lc(4),a.cd("disabled",!n.new_config.Encryption["use-encryption"])("ngModel",n.new_config.Encryption["key-file-path"])}}nD=$localize(_templateObject46());var sD,cD=["placeholder",$localize(_templateObject47())];sD=$localize(_templateObject48());var lD,uD,dD,hD,fD,mD,pD,gD,vD,bD,_D=["placeholder",$localize(_templateObject49())];function yD(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Subscriptions.allow_subscriptions=t})),a.Dc(4),a.Jc(5,nD),a.Cc(),a.Ec(),a.Ec(),a.Fc(6,"div",16),a.Fc(7,"mat-form-field",12),a.Fc(8,"input",17),a.Lc(9,cD),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Subscriptions.subscriptions_base_path=t})),a.Ec(),a.Fc(10,"mat-hint"),a.Dc(11),a.Jc(12,sD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(13,"div",18),a.Fc(14,"mat-form-field",12),a.Fc(15,"input",17),a.Lc(16,_D),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Subscriptions.subscriptions_check_interval=t})),a.Ec(),a.Fc(17,"mat-hint"),a.Dc(18),a.Jc(19,lD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(20,"div",19),a.Fc(21,"mat-checkbox",20),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=t})),a.Dc(22),a.Jc(23,uD),a.Cc(),a.Ec(),a.Fc(24,"p"),a.Fc(25,"a",21),a.Dc(26),a.Jc(27,dD),a.Cc(),a.Ec(),a.xd(28,"\xa0"),a.Dc(29),a.Jc(30,hD),a.Cc(),a.Ec(),a.Fc(31,"p"),a.Dc(32),a.Jc(33,fD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(3),a.cd("ngModel",n.new_config.Subscriptions.allow_subscriptions),a.lc(5),a.cd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_base_path),a.lc(7),a.cd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_check_interval),a.lc(6),a.cd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function kD(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-form-field"),a.Fc(4,"mat-label"),a.Dc(5),a.Jc(6,mD),a.Cc(),a.Ec(),a.Fc(7,"mat-select",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Themes.default_theme=t})),a.Fc(8,"mat-option",22),a.Dc(9),a.Jc(10,pD),a.Cc(),a.Ec(),a.Fc(11,"mat-option",23),a.Dc(12),a.Jc(13,gD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(14,"div",24),a.Fc(15,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Themes.allow_theme_change=t})),a.Dc(16),a.Jc(17,vD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(7),a.cd("ngModel",n.new_config.Themes.default_theme),a.lc(8),a.cd("ngModel",n.new_config.Themes.allow_theme_change)}}function wD(t,e){if(1&t&&(a.Fc(0,"mat-option",27),a.xd(1),a.Ec()),2&t){var i=e.$implicit,n=a.Wc(3);a.cd("value",i),a.lc(1),a.zd(" ",n.all_locales[i].nativeName," ")}}function CD(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-form-field"),a.Fc(4,"mat-label"),a.Dc(5),a.Jc(6,bD),a.Cc(),a.Ec(),a.Fc(7,"mat-select",25),a.Sc("selectionChange",(function(t){return a.nd(i),a.Wc(2).localeSelectChanged(t.value)}))("valueChange",(function(t){return a.nd(i),a.Wc(2).initialLocale=t})),a.vd(8,wD,2,2,"mat-option",26),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(7),a.cd("value",n.initialLocale),a.lc(1),a.cd("ngForOf",n.supported_locales)}}function xD(t,e){if(1&t&&(a.vd(0,iD,16,2,"div",8),a.Ac(1,"mat-divider"),a.vd(2,oD,14,5,"div",8),a.Ac(3,"mat-divider"),a.vd(4,yD,34,7,"div",8),a.Ac(5,"mat-divider"),a.vd(6,kD,18,2,"div",8),a.Ac(7,"mat-divider"),a.vd(8,CD,9,2,"div",8)),2&t){var i=a.Wc();a.cd("ngIf",i.new_config),a.lc(2),a.cd("ngIf",i.new_config),a.lc(2),a.cd("ngIf",i.new_config),a.lc(2),a.cd("ngIf",i.new_config),a.lc(2),a.cd("ngIf",i.new_config)}}lD=$localize(_templateObject50()),uD=$localize(_templateObject51()),dD=$localize(_templateObject52()),hD=$localize(_templateObject53()),fD=$localize(_templateObject54()),mD=$localize(_templateObject55()),pD=$localize(_templateObject56()),gD=$localize(_templateObject57()),vD=$localize(_templateObject58()),bD=$localize(_templateObject59());var SD,ED=["placeholder",$localize(_templateObject60())];SD=$localize(_templateObject61());var OD,AD=["placeholder",$localize(_templateObject62())];OD=$localize(_templateObject63());var TD,DD,ID=["placeholder",$localize(_templateObject64())];function PD(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-form-field",12),a.Fc(4,"input",13),a.Lc(5,ED),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Downloader["path-audio"]=t})),a.Ec(),a.Fc(6,"mat-hint"),a.Dc(7),a.Jc(8,SD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(9,"div",18),a.Fc(10,"mat-form-field",12),a.Fc(11,"input",13),a.Lc(12,AD),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Downloader["path-video"]=t})),a.Ec(),a.Fc(13,"mat-hint"),a.Dc(14),a.Jc(15,OD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(16,"div",18),a.Fc(17,"mat-form-field",28),a.Fc(18,"textarea",29),a.Lc(19,ID),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Downloader.custom_args=t})),a.Ec(),a.Fc(20,"mat-hint"),a.Dc(21),a.Jc(22,TD),a.Cc(),a.Ec(),a.Fc(23,"button",30),a.Sc("click",(function(){return a.nd(i),a.Wc(2).openArgsModifierDialog()})),a.Fc(24,"mat-icon"),a.xd(25,"edit"),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(26,"div",19),a.Fc(27,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Downloader.use_youtubedl_archive=t})),a.Dc(28),a.Jc(29,DD),a.Cc(),a.Ec(),a.Fc(30,"p"),a.xd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(4),a.cd("ngModel",n.new_config.Downloader["path-audio"]),a.lc(7),a.cd("ngModel",n.new_config.Downloader["path-video"]),a.lc(7),a.cd("ngModel",n.new_config.Downloader.custom_args),a.lc(9),a.cd("ngModel",n.new_config.Downloader.use_youtubedl_archive)}}function FD(t,e){if(1&t&&a.vd(0,PD,32,4,"div",8),2&t){var i=a.Wc();a.cd("ngIf",i.new_config)}}TD=$localize(_templateObject65()),DD=$localize(_templateObject66());var RD,MD,zD,LD,jD,ND,BD,VD=["placeholder",$localize(_templateObject67())];function UD(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-form-field",12),a.Fc(4,"input",13),a.Lc(5,VD),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Extra.title_top=t})),a.Ec(),a.Ac(6,"mat-hint"),a.Ec(),a.Ec(),a.Fc(7,"div",16),a.Fc(8,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Extra.file_manager_enabled=t})),a.Dc(9),a.Jc(10,RD),a.Cc(),a.Ec(),a.Ec(),a.Fc(11,"div",16),a.Fc(12,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Extra.allow_quality_select=t})),a.Dc(13),a.Jc(14,MD),a.Cc(),a.Ec(),a.Ec(),a.Fc(15,"div",16),a.Fc(16,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Extra.download_only_mode=t})),a.Dc(17),a.Jc(18,zD),a.Cc(),a.Ec(),a.Ec(),a.Fc(19,"div",16),a.Fc(20,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Extra.allow_multi_download_mode=t})),a.Dc(21),a.Jc(22,LD),a.Cc(),a.Ec(),a.Ec(),a.Fc(23,"div",16),a.Fc(24,"mat-checkbox",20),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Extra.settings_pin_required=t})),a.Dc(25),a.Jc(26,jD),a.Cc(),a.Ec(),a.Fc(27,"button",31),a.Sc("click",(function(){return a.nd(i),a.Wc(2).setNewPin()})),a.Dc(28),a.Jc(29,ND),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(4),a.cd("ngModel",n.new_config.Extra.title_top),a.lc(4),a.cd("ngModel",n.new_config.Extra.file_manager_enabled),a.lc(4),a.cd("ngModel",n.new_config.Extra.allow_quality_select),a.lc(4),a.cd("ngModel",n.new_config.Extra.download_only_mode),a.lc(4),a.cd("ngModel",n.new_config.Extra.allow_multi_download_mode),a.lc(4),a.cd("disabled",n.new_config.Advanced.multi_user_mode)("ngModel",n.new_config.Extra.settings_pin_required),a.lc(3),a.cd("disabled",!n.new_config.Extra.settings_pin_required)}}RD=$localize(_templateObject68()),MD=$localize(_templateObject69()),zD=$localize(_templateObject70()),LD=$localize(_templateObject71()),jD=$localize(_templateObject72()),ND=$localize(_templateObject73()),BD=$localize(_templateObject74());var WD,HD,GD,qD=["placeholder",$localize(_templateObject75())];function $D(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.API.use_API_key=t})),a.Dc(4),a.Jc(5,BD),a.Cc(),a.Ec(),a.Ec(),a.Fc(6,"div",32),a.Fc(7,"div",33),a.Fc(8,"mat-form-field",12),a.Fc(9,"input",34),a.Lc(10,qD),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.API.API_key=t})),a.Ec(),a.Fc(11,"mat-hint"),a.Fc(12,"a",35),a.Dc(13),a.Jc(14,WD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(15,"div",36),a.Fc(16,"button",37),a.Sc("click",(function(){return a.nd(i),a.Wc(2).generateAPIKey()})),a.Dc(17),a.Jc(18,HD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(3),a.cd("ngModel",n.new_config.API.use_API_key),a.lc(6),a.cd("disabled",!n.new_config.API.use_API_key)("ngModel",n.new_config.API.API_key)}}WD=$localize(_templateObject76()),HD=$localize(_templateObject77()),GD=$localize(_templateObject78());var YD,KD,XD,JD,ZD,QD,tI,eI,iI,nI,aI,rI,oI,sI,cI=["placeholder",$localize(_templateObject79())];function lI(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.API.use_youtube_API=t})),a.Dc(4),a.Jc(5,GD),a.Cc(),a.Ec(),a.Ec(),a.Fc(6,"div",32),a.Fc(7,"mat-form-field",12),a.Fc(8,"input",34),a.Lc(9,cI),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.API.youtube_API_key=t})),a.Ec(),a.Fc(10,"mat-hint"),a.Fc(11,"a",38),a.Dc(12),a.Jc(13,YD),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(3),a.cd("ngModel",n.new_config.API.use_youtube_API),a.lc(5),a.cd("disabled",!n.new_config.API.use_youtube_API)("ngModel",n.new_config.API.youtube_API_key)}}function uI(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"h6"),a.xd(4,"Chrome"),a.Ec(),a.Fc(5,"p"),a.Fc(6,"a",39),a.Dc(7),a.Jc(8,KD),a.Cc(),a.Ec(),a.xd(9,"\xa0"),a.Dc(10),a.Jc(11,XD),a.Cc(),a.Ec(),a.Fc(12,"p"),a.Dc(13),a.Jc(14,JD),a.Cc(),a.Ec(),a.Ac(15,"mat-divider",40),a.Ec(),a.Fc(16,"div",16),a.Fc(17,"h6"),a.xd(18,"Firefox"),a.Ec(),a.Fc(19,"p"),a.Fc(20,"a",41),a.Dc(21),a.Jc(22,ZD),a.Cc(),a.Ec(),a.xd(23,"\xa0"),a.Dc(24),a.Jc(25,QD),a.Cc(),a.Ec(),a.Fc(26,"p"),a.Fc(27,"a",42),a.Dc(28),a.Jc(29,tI),a.Cc(),a.Ec(),a.xd(30,"\xa0"),a.Dc(31),a.Jc(32,eI),a.Cc(),a.Ec(),a.Ac(33,"mat-divider",40),a.Ec(),a.Fc(34,"div",16),a.Fc(35,"h6"),a.xd(36,"Bookmarklet"),a.Ec(),a.Fc(37,"p"),a.Dc(38),a.Jc(39,iI),a.Cc(),a.Ec(),a.Fc(40,"mat-checkbox",43),a.Sc("change",(function(t){return a.nd(i),a.Wc(2).bookmarkletAudioOnlyChanged(t)})),a.Dc(41),a.Jc(42,nI),a.Cc(),a.Ec(),a.Fc(43,"p"),a.Fc(44,"a",44),a.xd(45,"YTDL-Bookmarklet"),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(44),a.cd("href",n.generated_bookmarklet_code,a.pd)}}function dI(t,e){if(1&t&&(a.vd(0,UD,30,8,"div",8),a.Ac(1,"mat-divider"),a.vd(2,$D,19,3,"div",8),a.Ac(3,"mat-divider"),a.vd(4,lI,14,3,"div",8),a.Ac(5,"mat-divider"),a.vd(6,uI,46,1,"div",8)),2&t){var i=a.Wc();a.cd("ngIf",i.new_config),a.lc(2),a.cd("ngIf",i.new_config),a.lc(2),a.cd("ngIf",i.new_config),a.lc(2),a.cd("ngIf",i.new_config)}}function hI(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",9),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Advanced.use_default_downloading_agent=t})),a.Dc(4),a.Jc(5,aI),a.Cc(),a.Ec(),a.Ec(),a.Fc(6,"div",16),a.Fc(7,"mat-form-field"),a.Fc(8,"mat-label"),a.Dc(9),a.Jc(10,rI),a.Cc(),a.Ec(),a.Fc(11,"mat-select",20),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Advanced.custom_downloading_agent=t})),a.Fc(12,"mat-option",46),a.xd(13,"aria2c"),a.Ec(),a.Fc(14,"mat-option",47),a.xd(15,"avconv"),a.Ec(),a.Fc(16,"mat-option",48),a.xd(17,"axel"),a.Ec(),a.Fc(18,"mat-option",49),a.xd(19,"curl"),a.Ec(),a.Fc(20,"mat-option",50),a.xd(21,"ffmpeg"),a.Ec(),a.Fc(22,"mat-option",51),a.xd(23,"httpie"),a.Ec(),a.Fc(24,"mat-option",52),a.xd(25,"wget"),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(26,"div",16),a.Fc(27,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Advanced.allow_advanced_download=t})),a.Dc(28),a.Jc(29,oI),a.Cc(),a.Ec(),a.Ec(),a.Fc(30,"div",53),a.Fc(31,"mat-checkbox",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).new_config.Advanced.multi_user_mode=t})),a.Dc(32),a.Jc(33,sI),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(3),a.cd("ngModel",n.new_config.Advanced.use_default_downloading_agent),a.lc(8),a.cd("disabled",n.new_config.Advanced.use_default_downloading_agent)("ngModel",n.new_config.Advanced.custom_downloading_agent),a.lc(16),a.cd("ngModel",n.new_config.Advanced.allow_advanced_download),a.lc(4),a.cd("ngModel",n.new_config.Advanced.multi_user_mode)}}function fI(t,e){1&t&&(a.Fc(0,"div",54),a.Ac(1,"app-updater"),a.Ec())}function mI(t,e){if(1&t&&(a.vd(0,hI,34,5,"div",8),a.Ac(1,"mat-divider"),a.vd(2,fI,2,0,"div",45)),2&t){var i=a.Wc();a.cd("ngIf",i.new_config),a.lc(2),a.cd("ngIf",i.new_config)}}YD=$localize(_templateObject80()),KD=$localize(_templateObject81()),XD=$localize(_templateObject82()),JD=$localize(_templateObject83()),ZD=$localize(_templateObject84()),QD=$localize(_templateObject85()),tI=$localize(_templateObject86()),eI=$localize(_templateObject87()),iI=$localize(_templateObject88()),nI=$localize(_templateObject89()),aI=$localize(_templateObject90()),rI=$localize(_templateObject91()),oI=$localize(_templateObject92()),sI=$localize(_templateObject93());var pI=["label",$localize(_templateObject94())];function gI(t,e){1&t&&(a.Fc(0,"mat-tab",1),a.Lc(1,pI),a.Ac(2,"app-modify-users"),a.Ec())}var vI,bI,_I,yI,kI,wI,CI,xI,SI,EI,OI,AI=((vI=function(){function t(e,i,n,a){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.sanitizer=n,this.dialog=a,this.all_locales=pA,this.supported_locales=["en","es"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v3.6"}return _createClass(t,[{key:"ngOnInit",value:function(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}},{key:"getConfig",value:function(){this.initial_config=this.postsService.config,this.new_config=JSON.parse(JSON.stringify(this.initial_config))}},{key:"settingsSame",value:function(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}},{key:"saveSettings",value:function(){var t=this;this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe((function(e){e.success&&(!t.initial_config.Advanced.multi_user_mode&&t.new_config.Advanced.multi_user_mode&&t.postsService.checkAdminCreationStatus(),t.initial_config=JSON.parse(JSON.stringify(t.new_config)),t.postsService.reload_config.next(!0))}),(function(t){console.error("Failed to save config!")}))}},{key:"setNewPin",value:function(){this.dialog.open(mA,{data:{resetMode:!0}})}},{key:"generateAPIKey",value:function(){var t=this;this.postsService.generateNewAPIKey().subscribe((function(e){e.new_api_key&&(t.initial_config.API.API_key=e.new_api_key,t.new_config.API.API_key=e.new_api_key)}))}},{key:"localeSelectChanged",value:function(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}},{key:"generateBookmarklet",value:function(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}},{key:"generateBookmarkletCode",value:function(){return"javascript:(function()%7Bwindow.open('".concat(window.location.href.split("#")[0]+"#/home;url=","' + encodeURIComponent(window.location) + ';audioOnly=").concat(this.bookmarkletAudioOnly,"')%7D)()")}},{key:"bookmarkletAudioOnlyChanged",value:function(t){this.bookmarkletAudioOnly=t.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}},{key:"bookmarksite",value:function(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){var i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("title",t),i.setAttribute("rel","sidebar"),i.click()}}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(TA,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe((function(e){e&&(t.new_config.Downloader.custom_args=e)}))}},{key:"getLatestGithubRelease",value:function(){var t=this;this.postsService.getLatestGithubRelease().subscribe((function(e){t.latestGithubRelease=e}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}},{key:"settingsAreTheSame",get:function(){return this._settingsSame=this.settingsSame(),this._settingsSame},set:function(t){this._settingsSame=t}}]),t}()).\u0275fac=function(t){return new(t||vI)(a.zc(JO),a.zc(D_),a.zc(n.b),a.zc(Ih))},vI.\u0275cmp=a.tc({type:vI,selectors:[["app-settings"]],decls:31,vars:4,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],["label","Users",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mb-3","mt-3"],[1,"container-fluid","mt-1"]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.Jc(1,UT),a.Ec(),a.Fc(2,"mat-dialog-content"),a.Fc(3,"mat-tab-group"),a.Fc(4,"mat-tab",1),a.Lc(5,$T),a.vd(6,xD,9,5,"ng-template",2),a.Ec(),a.Fc(7,"mat-tab",1),a.Lc(8,YT),a.vd(9,FD,1,1,"ng-template",3),a.Ec(),a.Fc(10,"mat-tab",1),a.Lc(11,KT),a.vd(12,dI,7,4,"ng-template",3),a.Ec(),a.Fc(13,"mat-tab",1),a.Lc(14,XT),a.vd(15,mI,3,2,"ng-template",3),a.Ec(),a.vd(16,gI,3,0,"mat-tab",4),a.Ec(),a.Ec(),a.Fc(17,"mat-dialog-actions"),a.Fc(18,"div",5),a.Fc(19,"button",6),a.Sc("click",(function(){return e.saveSettings()})),a.Fc(20,"mat-icon"),a.xd(21,"done"),a.Ec(),a.xd(22,"\xa0\xa0 "),a.Dc(23),a.Jc(24,GT),a.Cc(),a.Ec(),a.Fc(25,"button",7),a.Fc(26,"mat-icon"),a.xd(27,"cancel"),a.Ec(),a.xd(28,"\xa0\xa0 "),a.Fc(29,"span"),a.Jc(30,qT),a.Ec(),a.Ec(),a.Ec(),a.Ec()),2&t&&(a.lc(16),a.cd("ngIf",e.postsService.config&&e.postsService.config.Advanced.multi_user_mode),a.lc(3),a.cd("disabled",e.settingsSame()),a.lc(6),a.cd("mat-dialog-close",!1),a.lc(5),a.Mc(e.settingsAreTheSame+""),a.Kc(30))},directives:[Rh,Mh,My,Sy,yy,ye.t,zh,Za,_p,Fh,Rp,Hd,Pp,_r,Ks,Ar,ts,Md,Jc,zd,pb,Na,ye.s,hv,KA,WT],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}"]}),vI);function TI(t,e){1&t&&(a.Fc(0,"span",12),a.Ac(1,"mat-spinner",13),a.xd(2,"\xa0"),a.Dc(3),a.Jc(4,EI),a.Cc(),a.Ec()),2&t&&(a.lc(1),a.cd("diameter",22))}function DI(t,e){1&t&&(a.Fc(0,"mat-icon",14),a.xd(1,"done"),a.Ec())}function II(t,e){if(1&t&&(a.Fc(0,"a",2),a.Dc(1),a.Jc(2,OI),a.Cc(),a.xd(3),a.Ec()),2&t){var i=a.Wc();a.cd("href",i.latestUpdateLink,a.pd),a.lc(3),a.zd(" - ",i.latestGithubRelease.tag_name,"")}}function PI(t,e){1&t&&(a.Fc(0,"span"),a.xd(1,"You are up to date."),a.Ec())}bI=$localize(_templateObject95()),_I=$localize(_templateObject96()),yI=$localize(_templateObject97()),kI=$localize(_templateObject98()),wI=$localize(_templateObject99()),CI=$localize(_templateObject100()),xI=$localize(_templateObject101()),SI=$localize(_templateObject102()),EI=$localize(_templateObject103()),OI=$localize(_templateObject104());var FI,RI,MI,zI,LI,jI,NI,BI,VI,UI=((FI=function(){function t(e){_classCallCheck(this,t),this.postsService=e,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v3.6"}return _createClass(t,[{key:"ngOnInit",value:function(){this.getLatestGithubRelease()}},{key:"getLatestGithubRelease",value:function(){var t=this;this.postsService.getLatestGithubRelease().subscribe((function(e){t.checking_for_updates=!1,t.latestGithubRelease=e}))}}]),t}()).\u0275fac=function(t){return new(t||FI)(a.zc(JO))},FI.\u0275cmp=a.tc({type:FI,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.Dc(1),a.Jc(2,bI),a.Cc(),a.Fc(3,"span",1),a.Fc(4,"a",2),a.Ac(5,"img",3),a.Ec(),a.Ac(6,"img",4),a.Ec(),a.Ec(),a.Fc(7,"mat-dialog-content"),a.Fc(8,"div",5),a.Fc(9,"p"),a.Fc(10,"i"),a.xd(11,"YoutubeDL-Material"),a.Ec(),a.xd(12,"\xa0"),a.Dc(13),a.Jc(14,_I),a.Cc(),a.Ec(),a.Fc(15,"p"),a.Fc(16,"i"),a.xd(17,"YoutubeDL-Material"),a.Ec(),a.xd(18,"\xa0"),a.Dc(19),a.Jc(20,yI),a.Cc(),a.Ec(),a.Ac(21,"mat-divider"),a.Fc(22,"h5",6),a.xd(23,"Installation details:"),a.Ec(),a.Fc(24,"p"),a.Dc(25),a.Jc(26,kI),a.Cc(),a.xd(27),a.vd(28,TI,5,1,"span",7),a.vd(29,DI,2,0,"mat-icon",8),a.xd(30,"\xa0\xa0"),a.vd(31,II,4,2,"a",9),a.xd(32,". "),a.Dc(33),a.Jc(34,wI),a.Cc(),a.vd(35,PI,2,0,"span",10),a.Ec(),a.Fc(36,"p"),a.Dc(37),a.Jc(38,CI),a.Cc(),a.xd(39,"\xa0"),a.Fc(40,"a",2),a.Dc(41),a.Jc(42,xI),a.Cc(),a.Ec(),a.xd(43,"\xa0"),a.Dc(44),a.Jc(45,SI),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(46,"mat-dialog-actions"),a.Fc(47,"button",11),a.xd(48,"Close"),a.Ec(),a.Ec()),2&t&&(a.lc(4),a.cd("href",e.projectLink,a.pd),a.lc(23),a.zd("\xa0",e.current_version_tag," - "),a.lc(1),a.cd("ngIf",e.checking_for_updates),a.lc(1),a.cd("ngIf",!e.checking_for_updates),a.lc(2),a.cd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name!==e.current_version_tag),a.lc(4),a.cd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name===e.current_version_tag),a.lc(5),a.cd("href",e.issuesLink,a.pd))},directives:[Rh,Mh,Rp,ye.t,zh,Za,Fh,zv,_p],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),FI);function WI(t,e){if(1&t&&(a.Fc(0,"div"),a.Fc(1,"div"),a.Fc(2,"strong"),a.Dc(3),a.Jc(4,LI),a.Cc(),a.Ec(),a.xd(5),a.Ec(),a.Fc(6,"div"),a.Fc(7,"strong"),a.Dc(8),a.Jc(9,jI),a.Cc(),a.Ec(),a.xd(10),a.Ec(),a.Fc(11,"div"),a.Fc(12,"strong"),a.Dc(13),a.Jc(14,NI),a.Cc(),a.Ec(),a.xd(15),a.Xc(16,"date"),a.Ec(),a.Ac(17,"div",6),a.Ec()),2&t){var i=a.Wc();a.lc(5),a.zd("\xa0",i.postsService.user.name," "),a.lc(5),a.zd("\xa0",i.postsService.user.uid," "),a.lc(5),a.zd("\xa0",i.postsService.user.created?a.Yc(16,3,i.postsService.user.created):"N/A"," ")}}function HI(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div"),a.Fc(1,"h5"),a.Fc(2,"mat-icon"),a.xd(3,"warn"),a.Ec(),a.Dc(4),a.Jc(5,BI),a.Cc(),a.Ec(),a.Fc(6,"button",7),a.Sc("click",(function(){return a.nd(i),a.Wc().loginClicked()})),a.Dc(7),a.Jc(8,VI),a.Cc(),a.Ec(),a.Ec()}}RI=$localize(_templateObject105()),MI=$localize(_templateObject106()),zI=$localize(_templateObject107()),LI=$localize(_templateObject108()),jI=$localize(_templateObject109()),NI=$localize(_templateObject110()),BI=$localize(_templateObject111()),VI=$localize(_templateObject112());var GI,qI,$I,YI=((GI=function(){function t(e,i,n){_classCallCheck(this,t),this.postsService=e,this.router=i,this.dialogRef=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"loginClicked",value:function(){this.router.navigate(["/login"]),this.dialogRef.close()}},{key:"logoutClicked",value:function(){this.postsService.logout(),this.dialogRef.close()}}]),t}()).\u0275fac=function(t){return new(t||GI)(a.zc(JO),a.zc(bO),a.zc(Eh))},GI.\u0275cmp=a.tc({type:GI,selectors:[["app-user-profile-dialog"]],decls:14,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],[2,"width","100%"],[2,"position","relative"],["mat-stroked-button","","mat-dialog-close","","color","primary"],["mat-stroked-button","","color","warn",2,"position","absolute","right","0px",3,"click"],[2,"margin-top","20px"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.Jc(1,RI),a.Ec(),a.Fc(2,"mat-dialog-content"),a.vd(3,WI,18,5,"div",1),a.vd(4,HI,9,0,"div",1),a.Ec(),a.Fc(5,"mat-dialog-actions"),a.Fc(6,"div",2),a.Fc(7,"div",3),a.Fc(8,"button",4),a.Dc(9),a.Jc(10,MI),a.Cc(),a.Ec(),a.Fc(11,"button",5),a.Sc("click",(function(){return e.logoutClicked()})),a.Dc(12),a.Jc(13,zI),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec()),2&t&&(a.lc(3),a.cd("ngIf",e.postsService.isLoggedIn&&e.postsService.user),a.lc(1),a.cd("ngIf",!e.postsService.isLoggedIn||!e.postsService.user))},directives:[Rh,Mh,ye.t,zh,Za,Fh,_p],pipes:[ye.f],styles:[""]}),GI);qI=$localize(_templateObject113()),$I=$localize(_templateObject114());var KI,XI=["placeholder",$localize(_templateObject115())];function JI(t,e){1&t&&a.Ac(0,"mat-spinner",7),2&t&&a.cd("diameter",25)}KI=$localize(_templateObject116());var ZI,QI,tP,eP,iP,nP,aP,rP,oP=((ZI=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.dialogRef=i,this.creating=!1,this.input=""}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"create",value:function(){var t=this;this.creating=!0,this.postsService.createAdminAccount(this.input).subscribe((function(e){t.creating=!1,t.dialogRef.close(!!e.success)}),(function(e){console.log(e),t.dialogRef.close(!1)}))}}]),t}()).\u0275fac=function(t){return new(t||ZI)(a.zc(JO),a.zc(Eh))},ZI.\u0275cmp=a.tc({type:ZI,selectors:[["app-set-default-admin-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],[2,"position","relative"],["color","accent"],["type","password","matInput","",3,"ngModel","keyup.enter","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],[3,"diameter"]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.Dc(1),a.Jc(2,qI),a.Cc(),a.Ec(),a.Fc(3,"mat-dialog-content"),a.Fc(4,"div"),a.Fc(5,"p"),a.Jc(6,$I),a.Ec(),a.Ec(),a.Fc(7,"div",1),a.Fc(8,"div"),a.Fc(9,"mat-form-field",2),a.Fc(10,"input",3),a.Lc(11,XI),a.Sc("keyup.enter",(function(){return e.create()}))("ngModelChange",(function(t){return e.input=t})),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(12,"mat-dialog-actions"),a.Fc(13,"button",4),a.Sc("click",(function(){return e.create()})),a.Dc(14),a.Jc(15,KI),a.Cc(),a.Ec(),a.Fc(16,"div",5),a.vd(17,JI,1,1,"mat-spinner",6),a.Ec(),a.Ec()),2&t&&(a.lc(10),a.cd("ngModel",e.input),a.lc(3),a.cd("disabled",0===e.input.length),a.lc(4),a.cd("ngIf",e.creating))},directives:[Rh,Mh,Hd,Pp,_r,Ar,ts,zh,Za,ye.t,zv],styles:[".spinner-div[_ngcontent-%COMP%]{position:relative;left:10px;bottom:5px}"]}),ZI),sP=["sidenav"],cP=["hamburgerMenu"];function lP(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",20,21),a.Sc("click",(function(){return a.nd(i),a.Wc().toggleSidenav()})),a.Fc(2,"mat-icon"),a.xd(3,"menu"),a.Ec(),a.Ec()}}function uP(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",22),a.Sc("click",(function(){return a.nd(i),a.Wc().goBack()})),a.Fc(1,"mat-icon"),a.xd(2,"arrow_back"),a.Ec(),a.Ec()}}function dP(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",13),a.Sc("click",(function(){return a.nd(i),a.Wc().openProfileDialog()})),a.Fc(1,"mat-icon"),a.xd(2,"person"),a.Ec(),a.Fc(3,"span"),a.Jc(4,eP),a.Ec(),a.Ec()}}function hP(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",13),a.Sc("click",(function(t){return a.nd(i),a.Wc().themeMenuItemClicked(t)})),a.Fc(1,"mat-icon"),a.xd(2),a.Ec(),a.Fc(3,"span"),a.Jc(4,iP),a.Ec(),a.Ac(5,"mat-slide-toggle",23),a.Ec()}if(2&t){var n=a.Wc();a.lc(2),a.yd("default"===n.postsService.theme.key?"brightness_5":"brightness_2"),a.lc(3),a.cd("checked","dark"===n.postsService.theme.key)}}function fP(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",13),a.Sc("click",(function(){return a.nd(i),a.Wc().openSettingsDialog()})),a.Fc(1,"mat-icon"),a.xd(2,"settings"),a.Ec(),a.Fc(3,"span"),a.Jc(4,nP),a.Ec(),a.Ec()}}function mP(t,e){if(1&t){var i=a.Gc();a.Fc(0,"a",24),a.Sc("click",(function(){return a.nd(i),a.Wc(),a.jd(27).close()})),a.Dc(1),a.Jc(2,aP),a.Cc(),a.Ec()}}function pP(t,e){if(1&t){var i=a.Gc();a.Fc(0,"a",25),a.Sc("click",(function(){return a.nd(i),a.Wc(),a.jd(27).close()})),a.Dc(1),a.Jc(2,rP),a.Cc(),a.Ec()}}QI=$localize(_templateObject117()),tP=$localize(_templateObject118()),eP=$localize(_templateObject119()),iP=$localize(_templateObject120()),nP=$localize(_templateObject121()),aP=$localize(_templateObject122()),rP=$localize(_templateObject123());var gP,vP=((gP=function(){function t(e,i,n,a,r,o){var s=this;_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.dialog=n,this.router=a,this.overlayContainer=r,this.elementRef=o,this.THEMES_CONFIG=Px,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe((function(t){t instanceof iS?s.navigator=localStorage.getItem("player_navigator"):t instanceof nS&&s.hamburgerMenuButton&&s.hamburgerMenuButton.nativeElement&&s.hamburgerMenuButton.nativeElement.blur()})),this.postsService.config_reloaded.subscribe((function(t){t&&s.loadConfig()}))}return _createClass(t,[{key:"toggleSidenav",value:function(){this.sidenav.toggle()}},{key:"loadConfig",value:function(){this.topBarTitle=this.postsService.config.Extra.title_top,this.settingsPinRequired=this.postsService.config.Extra.settings_pin_required;var t=this.postsService.config.Themes;this.defaultTheme=t?this.postsService.config.Themes.default_theme:"default",this.allowThemeChange=!t||this.postsService.config.Themes.allow_theme_change,this.allowSubscriptions=this.postsService.config.Subscriptions.allow_subscriptions,localStorage.getItem("theme")||this.setTheme(t?this.defaultTheme:"default")}},{key:"setTheme",value:function(t){var e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}},{key:"onSetTheme",value:function(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}},{key:"flipTheme",value:function(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}},{key:"themeMenuItemClicked",value:function(t){this.flipTheme(),t.stopPropagation()}},{key:"ngOnInit",value:function(){var t=this;localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme")),this.postsService.open_create_default_admin_dialog.subscribe((function(e){e&&t.dialog.open(oP).afterClosed().subscribe((function(e){e?"/login"!==t.router.url&&t.router.navigate(["/login"]):console.error("Failed to create default admin account. See logs for details.")}))}))}},{key:"goBack",value:function(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}},{key:"openSettingsDialog",value:function(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}},{key:"actuallyOpenSettingsDialog",value:function(){this.dialog.open(AI,{width:"80vw"})}},{key:"openPinDialog",value:function(){var t=this;this.dialog.open(mA,{}).afterClosed().subscribe((function(e){e&&t.actuallyOpenSettingsDialog()}))}},{key:"openAboutDialog",value:function(){this.dialog.open(UI,{width:"80vw"})}},{key:"openProfileDialog",value:function(){this.dialog.open(YI,{width:"60vw"})}}]),t}()).\u0275fac=function(t){return new(t||gP)(a.zc(JO),a.zc(D_),a.zc(Ih),a.zc(bO),a.zc(Mu),a.zc(a.q))},gP.\u0275cmp=a.tc({type:gP,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(a.Bd(sP,!0),a.Bd(cP,!0,a.q)),2&t&&(a.id(i=a.Tc())&&(e.sidenav=i.first),a.id(i=a.Tc())&&(e.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&a.nc(e.componentCssClass)},decls:36,vars:13,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-list-item","","routerLink","/downloads",3,"click"]],template:function(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",0),a.Fc(1,"div",1),a.Fc(2,"mat-toolbar",2),a.Fc(3,"div",3),a.Fc(4,"div",4),a.vd(5,lP,4,0,"button",5),a.vd(6,uP,3,0,"button",6),a.Ec(),a.Fc(7,"div",7),a.Fc(8,"div",8),a.xd(9),a.Ec(),a.Ec(),a.Fc(10,"div",9),a.Fc(11,"button",10),a.Fc(12,"mat-icon"),a.xd(13,"more_vert"),a.Ec(),a.Ec(),a.Fc(14,"mat-menu",null,11),a.vd(16,dP,5,0,"button",12),a.vd(17,hP,6,2,"button",12),a.vd(18,fP,5,0,"button",12),a.Fc(19,"button",13),a.Sc("click",(function(){return e.openAboutDialog()})),a.Fc(20,"mat-icon"),a.xd(21,"info"),a.Ec(),a.Fc(22,"span"),a.Jc(23,QI),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(24,"div",14),a.Fc(25,"mat-sidenav-container",15),a.Fc(26,"mat-sidenav",null,16),a.Fc(28,"mat-nav-list"),a.Fc(29,"a",17),a.Sc("click",(function(){return a.nd(i),a.jd(27).close()})),a.Dc(30),a.Jc(31,tP),a.Cc(),a.Ec(),a.vd(32,mP,3,0,"a",18),a.vd(33,pP,3,0,"a",19),a.Ec(),a.Ec(),a.Fc(34,"mat-sidenav-content"),a.Ac(35,"router-outlet"),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.jd(15);a.ud("background",e.postsService.theme?e.postsService.theme.background_color:null,a.sc),a.lc(5),a.cd("ngIf","/player"!==e.router.url.split(";")[0]),a.lc(1),a.cd("ngIf","/player"===e.router.url.split(";")[0]),a.lc(3),a.zd(" ",e.topBarTitle," "),a.lc(2),a.cd("matMenuTriggerFor",n),a.lc(5),a.cd("ngIf",e.postsService.isLoggedIn),a.lc(1),a.cd("ngIf",e.allowThemeChange),a.lc(1),a.cd("ngIf",!e.postsService.isLoggedIn||e.postsService.permissions.includes("settings")),a.lc(14),a.cd("ngIf",e.allowSubscriptions&&(!e.postsService.isLoggedIn||e.postsService.permissions.includes("subscriptions"))),a.lc(1),a.cd("ngIf",!e.postsService.isLoggedIn||e.postsService.permissions.includes("downloads_manager")),a.lc(1),a.ud("background",e.postsService.theme?e.postsService.theme.background_color:null,a.sc)}},directives:[M_,ye.t,Za,Ng,_p,Mg,Tg,$b,Gb,tg,og,yO,Hb,TO,o_],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),gP);function bP(t,e,i,n){return new(i||(i=Promise))((function(a,r){function o(t){try{c(n.next(t))}catch(e){r(e)}}function s(t){try{c(n.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,s)}c((n=n.apply(t,e||[])).next())}))}var _P,yP,kP=i("Iab2"),wP=function t(e){_classCallCheck(this,t),this.id=e&&e.id||null,this.title=e&&e.title||null,this.desc=e&&e.desc||null,this.thumbnailUrl=e&&e.thumbnailUrl||null,this.uploaded=e&&e.uploaded||null,this.videoUrl=e&&e.videoUrl||"https://www.youtube.com/watch?v=".concat(this.id),this.uploaded=function(t){var e,i=new Date(t),n=xP(i.getMonth()+1),a=xP(i.getDate()),r=i.getFullYear();e=i.getHours();var o=xP(i.getMinutes()),s="AM",c=parseInt(e,10);return c>12?(s="PM",e=c-12):0===c&&(e="12"),n+"-"+a+"-"+r+" "+(e=xP(e))+":"+o+" "+s}(Date.parse(this.uploaded))},CP=((_P=function(){function t(e){_classCallCheck(this,t),this.http=e,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}return _createClass(t,[{key:"initializeAPI",value:function(t){this.key=t}},{key:"search",value:function(t){if(this.ValidURL(t))return new si.a;var e=["q=".concat(t),"key=".concat(this.key),"part=snippet","type=video","maxResults=5"].join("&");return this.http.get("".concat(this.url,"?").concat(e)).map((function(t){return t.items.map((function(t){return new wP({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})}))}))}},{key:"ValidURL",value:function(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}]),t}()).\u0275fac=function(t){return new(t||_P)(a.Oc(Pm))},_P.\u0275prov=a.vc({token:_P,factory:_P.\u0275fac,providedIn:"root"}),_P);function xP(t){return t<10?"0"+t:t}yP=$localize(_templateObject124());var SP,EP,OP=["placeholder",$localize(_templateObject125())];function AP(t,e){1&t&&(a.Fc(0,"mat-label"),a.Dc(1),a.Jc(2,SP),a.Cc(),a.Ec())}function TP(t,e){1&t&&(a.Fc(0,"mat-label"),a.Dc(1),a.Jc(2,EP),a.Cc(),a.Ec())}function DP(t,e){if(1&t&&(a.Fc(0,"mat-option",8),a.xd(1),a.Ec()),2&t){var i=e.$implicit;a.cd("value",i.id),a.lc(1),a.yd(i.id)}}function IP(t,e){1&t&&(a.Fc(0,"div",9),a.Ac(1,"mat-spinner",10),a.Ec()),2&t&&(a.lc(1),a.cd("diameter",25))}SP=$localize(_templateObject126()),EP=$localize(_templateObject127());var PP,FP,RP,MP,zP,LP,jP=function(){return{standalone:!0}},NP=((PP=function(){function t(e,i,n){_classCallCheck(this,t),this.data=e,this.postsService=i,this.dialogRef=n,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Vo,this.name="",this.create_in_progress=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}},{key:"createPlaylist",value:function(){var t=this,e=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,e).subscribe((function(e){t.create_in_progress=!1,t.dialogRef.close(!!e.success)}))}},{key:"getThumbnailURL",value:function(){for(var t=0;t1?"first-result-card":"",r===o.results.length-1&&o.results.length>1?"last-result-card":"",1===o.results.length?"only-result-card":"")),a.lc(2),a.zd(" ",n.title," "),a.lc(2),a.zd(" ",n.uploaded," ")}}function aF(t,e){if(1&t&&(a.Fc(0,"div",34),a.vd(1,nF,12,7,"span",28),a.Ec()),2&t){var i=a.Wc();a.lc(1),a.cd("ngForOf",i.results)}}function rF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-checkbox",40),a.Sc("change",(function(t){return a.nd(i),a.Wc().multiDownloadModeChanged(t)}))("ngModelChange",(function(t){return a.nd(i),a.Wc().multiDownloadMode=t})),a.Dc(1),a.Jc(2,ZP),a.Cc(),a.Ec()}if(2&t){var n=a.Wc();a.cd("disabled",n.current_download)("ngModel",n.multiDownloadMode)}}function oF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",41),a.Sc("click",(function(){return a.nd(i),a.Wc().cancelDownload()})),a.Dc(1),a.Jc(2,QP),a.Cc(),a.Ec()}}ZP=$localize(_templateObject135()),QP=$localize(_templateObject136()),tF=$localize(_templateObject137()),eF=$localize(_templateObject138());var sF,cF,lF=["placeholder",$localize(_templateObject139())];sF=$localize(_templateObject140()),cF=$localize(_templateObject141());var uF,dF,hF,fF,mF=["placeholder",$localize(_templateObject142())];function pF(t,e){if(1&t&&(a.Fc(0,"p"),a.Dc(1),a.Jc(2,hF),a.Cc(),a.xd(3," \xa0"),a.Fc(4,"i"),a.xd(5),a.Ec(),a.Ec()),2&t){var i=a.Wc(2);a.lc(5),a.yd(i.simulatedOutput)}}uF=$localize(_templateObject143()),dF=$localize(_templateObject144()),hF=$localize(_templateObject145()),fF=$localize(_templateObject146());var gF=["placeholder",$localize(_templateObject147())];function vF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",52),a.Fc(1,"mat-checkbox",46),a.Sc("change",(function(t){return a.nd(i),a.Wc(2).youtubeAuthEnabledChanged(t)}))("ngModelChange",(function(t){return a.nd(i),a.Wc(2).youtubeAuthEnabled=t})),a.Dc(2),a.Jc(3,fF),a.Cc(),a.Ec(),a.Fc(4,"mat-form-field",53),a.Fc(5,"input",49),a.Lc(6,gF),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).youtubeUsername=t})),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(1),a.cd("disabled",n.current_download)("ngModel",n.youtubeAuthEnabled)("ngModelOptions",a.ed(6,XP)),a.lc(4),a.cd("ngModel",n.youtubeUsername)("ngModelOptions",a.ed(7,XP))("disabled",!n.youtubeAuthEnabled)}}var bF,_F,yF,kF,wF,CF,xF,SF,EF=["placeholder",$localize(_templateObject148())];function OF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",52),a.Fc(1,"mat-form-field",54),a.Fc(2,"input",55),a.Lc(3,EF),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc(2).youtubePassword=t})),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(2),a.cd("ngModel",n.youtubePassword)("ngModelOptions",a.ed(3,XP))("disabled",!n.youtubeAuthEnabled)}}function AF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",0),a.Fc(1,"form",42),a.Fc(2,"mat-expansion-panel",43),a.Fc(3,"mat-expansion-panel-header"),a.Fc(4,"mat-panel-title"),a.Dc(5),a.Jc(6,tF),a.Cc(),a.Ec(),a.Ec(),a.vd(7,pF,6,1,"p",10),a.Fc(8,"div",44),a.Fc(9,"div",5),a.Fc(10,"div",45),a.Fc(11,"mat-checkbox",46),a.Sc("change",(function(t){return a.nd(i),a.Wc().customArgsEnabledChanged(t)}))("ngModelChange",(function(t){return a.nd(i),a.Wc().customArgsEnabled=t})),a.Dc(12),a.Jc(13,eF),a.Cc(),a.Ec(),a.Fc(14,"button",47),a.Sc("click",(function(){return a.nd(i),a.Wc().openArgsModifierDialog()})),a.Fc(15,"mat-icon"),a.xd(16,"edit"),a.Ec(),a.Ec(),a.Fc(17,"mat-form-field",48),a.Fc(18,"input",49),a.Lc(19,lF),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc().customArgs=t})),a.Ec(),a.Fc(20,"mat-hint"),a.Dc(21),a.Jc(22,sF),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(23,"div",45),a.Fc(24,"mat-checkbox",46),a.Sc("change",(function(t){return a.nd(i),a.Wc().customOutputEnabledChanged(t)}))("ngModelChange",(function(t){return a.nd(i),a.Wc().customOutputEnabled=t})),a.Dc(25),a.Jc(26,cF),a.Cc(),a.Ec(),a.Fc(27,"mat-form-field",48),a.Fc(28,"input",49),a.Lc(29,mF),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc().customOutput=t})),a.Ec(),a.Fc(30,"mat-hint"),a.Fc(31,"a",50),a.Dc(32),a.Jc(33,uF),a.Cc(),a.Ec(),a.xd(34,". "),a.Dc(35),a.Jc(36,dF),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.vd(37,vF,7,8,"div",51),a.vd(38,OF,4,4,"div",51),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(7),a.cd("ngIf",n.simulatedOutput),a.lc(4),a.cd("disabled",n.current_download)("ngModel",n.customArgsEnabled)("ngModelOptions",a.ed(15,XP)),a.lc(7),a.cd("ngModel",n.customArgs)("ngModelOptions",a.ed(16,XP))("disabled",!n.customArgsEnabled),a.lc(6),a.cd("disabled",n.current_download)("ngModel",n.customOutputEnabled)("ngModelOptions",a.ed(17,XP)),a.lc(4),a.cd("ngModel",n.customOutput)("ngModelOptions",a.ed(18,XP))("disabled",!n.customOutputEnabled),a.lc(9),a.cd("ngIf",!n.youtubeAuthDisabledOverride),a.lc(1),a.cd("ngIf",!n.youtubeAuthDisabledOverride)}}function TF(t,e){1&t&&a.Ac(0,"mat-divider",2)}function DF(t,e){if(1&t){var i=a.Gc();a.Dc(0),a.Fc(1,"app-download-item",60),a.Sc("cancelDownload",(function(t){return a.nd(i),a.Wc(3).cancelDownload(t)})),a.Ec(),a.vd(2,TF,1,0,"mat-divider",61),a.Cc()}if(2&t){var n=a.Wc(),r=n.$implicit,o=n.index,s=a.Wc(2);a.lc(1),a.cd("download",r)("queueNumber",o+1),a.lc(1),a.cd("ngIf",o!==s.downloads.length-1)}}function IF(t,e){if(1&t&&(a.Fc(0,"div",5),a.vd(1,DF,3,3,"ng-container",10),a.Ec()),2&t){var i=e.$implicit,n=a.Wc(2);a.lc(1),a.cd("ngIf",n.current_download!==i&&i.downloading)}}function PF(t,e){if(1&t&&(a.Fc(0,"div",56),a.Fc(1,"mat-card",57),a.Fc(2,"div",58),a.vd(3,IF,2,1,"div",59),a.Ec(),a.Ec(),a.Ec()),2&t){var i=a.Wc();a.lc(3),a.cd("ngForOf",i.downloads)}}function FF(t,e){if(1&t&&(a.Fc(0,"div",67),a.Ac(1,"mat-progress-bar",68),a.Ac(2,"br"),a.Ec()),2&t){var i=a.Wc(2);a.cd("ngClass",i.percentDownloaded>15&&100===i.percentDownloaded?"make-room-for-spinner":"equal-sizes"),a.lc(1),a.dd("value",i.percentDownloaded)}}function RF(t,e){1&t&&(a.Fc(0,"div",69),a.Ac(1,"mat-spinner",33),a.Ec()),2&t&&(a.lc(1),a.cd("diameter",25))}function MF(t,e){1&t&&a.Ac(0,"mat-progress-bar",70)}function zF(t,e){if(1&t&&(a.Fc(0,"div",62),a.Fc(1,"div",63),a.vd(2,FF,3,2,"div",64),a.vd(3,RF,2,1,"div",65),a.vd(4,MF,1,0,"ng-template",null,66,a.wd),a.Ec(),a.Ac(6,"br"),a.Ec()),2&t){var i=a.jd(5),n=a.Wc();a.lc(2),a.cd("ngIf",n.current_download.percent_complete&&n.current_download.percent_complete>15)("ngIfElse",i),a.lc(1),a.cd("ngIf",100===n.percentDownloaded)}}function LF(t,e){}function jF(t,e){1&t&&a.Ac(0,"mat-progress-bar",82)}function NF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-grid-tile"),a.Fc(1,"app-file-card",79,80),a.Sc("removeFile",(function(t){return a.nd(i),a.Wc(3).removeFromMp3(t)})),a.Ec(),a.vd(3,jF,1,0,"mat-progress-bar",81),a.Ec()}if(2&t){var n=e.$implicit,r=a.Wc(3);a.lc(1),a.cd("file",n)("title",n.title)("name",n.id)("uid",n.uid)("thumbnailURL",n.thumbnailURL)("length",n.duration)("isAudio",!0)("use_youtubedl_archive",r.use_youtubedl_archive),a.lc(2),a.cd("ngIf",r.downloading_content.audio[n.id])}}function BF(t,e){1&t&&a.Ac(0,"mat-progress-bar",82)}function VF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-grid-tile"),a.Fc(1,"app-file-card",84,80),a.Sc("removeFile",(function(){a.nd(i);var t=e.$implicit,n=e.index;return a.Wc(4).removePlaylistMp3(t.id,n)})),a.Ec(),a.vd(3,BF,1,0,"mat-progress-bar",81),a.Ec()}if(2&t){var n=e.$implicit,r=a.Wc(4);a.lc(1),a.cd("title",n.name)("name",n.id)("thumbnailURL",r.playlist_thumbnails[n.id])("length",null)("isAudio",!0)("isPlaylist",!0)("count",n.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.lc(2),a.cd("ngIf",r.downloading_content.audio[n.id])}}function UF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-grid-list",83),a.Sc("resize",(function(t){return a.nd(i),a.Wc(3).onResize(t)}),!1,a.md),a.vd(1,VF,4,9,"mat-grid-tile",28),a.Ec()}if(2&t){var n=a.Wc(3);a.cd("cols",n.files_cols),a.lc(1),a.cd("ngForOf",n.playlists.audio)}}function WF(t,e){1&t&&(a.Fc(0,"div"),a.Dc(1),a.Jc(2,CF),a.Cc(),a.Ec())}function HF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div"),a.Fc(1,"mat-grid-list",74),a.Sc("resize",(function(t){return a.nd(i),a.Wc(2).onResize(t)}),!1,a.md),a.vd(2,NF,4,9,"mat-grid-tile",28),a.Ec(),a.Ac(3,"mat-divider"),a.Fc(4,"div",75),a.Fc(5,"h6"),a.Jc(6,wF),a.Ec(),a.Ec(),a.vd(7,UF,2,2,"mat-grid-list",76),a.Fc(8,"div",77),a.Fc(9,"button",78),a.Sc("click",(function(){return a.nd(i),a.Wc(2).openCreatePlaylistDialog("audio")})),a.Fc(10,"mat-icon"),a.xd(11,"add"),a.Ec(),a.Ec(),a.Ec(),a.vd(12,WF,3,0,"div",10),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(1),a.cd("cols",n.files_cols),a.lc(1),a.cd("ngForOf",n.mp3s),a.lc(5),a.cd("ngIf",n.playlists.audio.length>0),a.lc(5),a.cd("ngIf",0===n.playlists.audio.length)}}function GF(t,e){1&t&&a.Ac(0,"mat-progress-bar",82)}function qF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-grid-tile"),a.Fc(1,"app-file-card",79,85),a.Sc("removeFile",(function(t){return a.nd(i),a.Wc(3).removeFromMp4(t)})),a.Ec(),a.vd(3,GF,1,0,"mat-progress-bar",81),a.Ec()}if(2&t){var n=e.$implicit,r=a.Wc(3);a.lc(1),a.cd("file",n)("title",n.title)("name",n.id)("uid",n.uid)("thumbnailURL",n.thumbnailURL)("length",n.duration)("isAudio",!1)("use_youtubedl_archive",r.use_youtubedl_archive),a.lc(2),a.cd("ngIf",r.downloading_content.video[n.id])}}function $F(t,e){1&t&&a.Ac(0,"mat-progress-bar",82)}function YF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-grid-tile"),a.Fc(1,"app-file-card",84,85),a.Sc("removeFile",(function(){a.nd(i);var t=e.$implicit,n=e.index;return a.Wc(4).removePlaylistMp4(t.id,n)})),a.Ec(),a.vd(3,$F,1,0,"mat-progress-bar",81),a.Ec()}if(2&t){var n=e.$implicit,r=a.Wc(4);a.lc(1),a.cd("title",n.name)("name",n.id)("thumbnailURL",r.playlist_thumbnails[n.id])("length",null)("isAudio",!1)("isPlaylist",!0)("count",n.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.lc(2),a.cd("ngIf",r.downloading_content.video[n.id])}}function KF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-grid-list",83),a.Sc("resize",(function(t){return a.nd(i),a.Wc(3).onResize(t)}),!1,a.md),a.vd(1,YF,4,9,"mat-grid-tile",28),a.Ec()}if(2&t){var n=a.Wc(3);a.cd("cols",n.files_cols),a.lc(1),a.cd("ngForOf",n.playlists.video)}}function XF(t,e){1&t&&(a.Fc(0,"div"),a.Dc(1),a.Jc(2,SF),a.Cc(),a.Ec())}function JF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div"),a.Fc(1,"mat-grid-list",74),a.Sc("resize",(function(t){return a.nd(i),a.Wc(2).onResize(t)}),!1,a.md),a.vd(2,qF,4,9,"mat-grid-tile",28),a.Ec(),a.Ac(3,"mat-divider"),a.Fc(4,"div",75),a.Fc(5,"h6"),a.Jc(6,xF),a.Ec(),a.Ec(),a.vd(7,KF,2,2,"mat-grid-list",76),a.Fc(8,"div",77),a.Fc(9,"button",78),a.Sc("click",(function(){return a.nd(i),a.Wc(2).openCreatePlaylistDialog("video")})),a.Fc(10,"mat-icon"),a.xd(11,"add"),a.Ec(),a.Ec(),a.Ec(),a.vd(12,XF,3,0,"div",10),a.Ec()}if(2&t){var n=a.Wc(2);a.lc(1),a.cd("cols",n.files_cols),a.lc(1),a.cd("ngForOf",n.mp4s),a.lc(5),a.cd("ngIf",n.playlists.video.length>0),a.lc(5),a.cd("ngIf",0===n.playlists.video.length)}}function ZF(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",71),a.Fc(1,"mat-accordion"),a.Fc(2,"mat-expansion-panel",72),a.Sc("opened",(function(){return a.nd(i),a.Wc().accordionOpened("audio")}))("closed",(function(){return a.nd(i),a.Wc().accordionClosed("audio")}))("mouseleave",(function(){return a.nd(i),a.Wc().accordionLeft("audio")}))("mouseenter",(function(){return a.nd(i),a.Wc().accordionEntered("audio")})),a.Fc(3,"mat-expansion-panel-header"),a.Fc(4,"mat-panel-title"),a.Dc(5),a.Jc(6,bF),a.Cc(),a.Ec(),a.Fc(7,"mat-panel-description"),a.Dc(8),a.Jc(9,_F),a.Cc(),a.Ec(),a.Ec(),a.vd(10,HF,13,4,"div",73),a.Ec(),a.Fc(11,"mat-expansion-panel",72),a.Sc("opened",(function(){return a.nd(i),a.Wc().accordionOpened("video")}))("closed",(function(){return a.nd(i),a.Wc().accordionClosed("video")}))("mouseleave",(function(){return a.nd(i),a.Wc().accordionLeft("video")}))("mouseenter",(function(){return a.nd(i),a.Wc().accordionEntered("video")})),a.Fc(12,"mat-expansion-panel-header"),a.Fc(13,"mat-panel-title"),a.Dc(14),a.Jc(15,yF),a.Cc(),a.Ec(),a.Fc(16,"mat-panel-description"),a.Dc(17),a.Jc(18,kF),a.Cc(),a.Ec(),a.Ec(),a.vd(19,JF,13,4,"div",73),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(),r=a.jd(39),o=a.jd(41);a.lc(10),a.cd("ngIf",n.mp3s.length>0)("ngIfElse",r),a.lc(9),a.cd("ngIf",n.mp4s.length>0)("ngIfElse",o)}}function QF(t,e){}function tR(t,e){}bF=$localize(_templateObject149()),_F=$localize(_templateObject150()),yF=$localize(_templateObject151()),kF=$localize(_templateObject152()),wF=$localize(_templateObject153()),CF=$localize(_templateObject154()),xF=$localize(_templateObject155()),SF=$localize(_templateObject156());var eR,iR=!1,nR=!1,aR=!1,rR=!1,oR=((eR=function(){function t(e,i,n,a,r,o,s){_classCallCheck(this,t),this.postsService=e,this.youtubeSearch=i,this.snackBar=n,this.router=a,this.dialog=r,this.platform=o,this.route=s,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Vo("",[Rr.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}return _createClass(t,[{key:"configLoad",value:function(){return bP(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadConfig();case 2:this.autoStartDownload&&this.downloadClicked(),setInterval((function(){return e.getSimulatedOutput()}),1e3);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"loadConfig",value:function(){return bP(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,i,n,a=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.fileManagerEnabled=this.postsService.config.Extra.file_manager_enabled,this.downloadOnlyMode=this.postsService.config.Extra.download_only_mode,this.allowMultiDownloadMode=this.postsService.config.Extra.allow_multi_download_mode,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.use_youtubedl_archive=this.postsService.config.Downloader.use_youtubedl_archive,this.globalCustomArgs=this.postsService.config.Downloader.custom_args,this.youtubeSearchEnabled=this.postsService.config.API&&this.postsService.config.API.use_youtube_API&&this.postsService.config.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?this.postsService.config.API.youtube_API_key:null,this.allowQualitySelect=this.postsService.config.Extra.allow_quality_select,this.allowAdvancedDownload=this.postsService.config.Advanced.allow_advanced_download&&(!this.postsService.isLoggedIn||this.postsService.permissions.includes("advanced_download")),this.useDefaultDownloadingAgent=this.postsService.config.Advanced.use_default_downloading_agent,this.customDownloadingAgent=this.postsService.config.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload&&(null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled")),e=localStorage.getItem("customArgs"),i=localStorage.getItem("customOutput"),n=localStorage.getItem("youtubeUsername"),e&&"null"!==e&&(this.customArgs=e),i&&"null"!==i&&(this.customOutput=i),n&&"null"!==n&&(this.youtubeUsername=n)),t.abrupt("return",(setInterval((function(){a.current_download&&a.getCurrentDownload()}),500),!0));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"ngOnInit",value:function(){var t=this;this.postsService.initialized?this.configLoad():this.postsService.service_initialized.subscribe((function(e){e&&t.configLoad()})),this.postsService.config_reloaded.subscribe((function(e){e&&t.loadConfig()})),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}},{key:"getMp3s",value:function(){var t=this;this.postsService.getMp3s().subscribe((function(e){var i=e.mp3s,n=e.playlists;JSON.stringify(t.mp3s)!==JSON.stringify(i)&&(t.mp3s=i),t.playlists.audio=n;for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||o)if(!1===a&&this.downloadOnlyMode&&!this.iOS)if(n){var s=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",s)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{fileNames:t,type:"audio",uid:e}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp3s(),setTimeout((function(){i.audioFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadHelperMp4",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||o)if(!1===a&&this.downloadOnlyMode)if(n){var s=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",s)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{fileNames:t,type:"video",uid:e}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp4s(),setTimeout((function(){i.videoFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadClicked",value:function(){var t=this;if(this.ValidURL(this.url)){this.urlError=!1,this.path="";var e=this.customArgsEnabled?this.customArgs:null,i=this.customOutputEnabled?this.customOutput:null,n=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,a=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(e&&localStorage.setItem("customArgs",e),i&&localStorage.setItem("customOutput",i),n&&localStorage.setItem("youtubeUsername",n)),this.audioOnly){var r={uid:Object(BP.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(r),this.current_download||this.multiDownloadMode||(this.current_download=r),this.downloadingfile=!0;var o=null;""!==this.selectedQuality&&(o=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,o,e,i,n,a,r.uid).subscribe((function(e){r.downloading=!1,r.percent_complete=100;var i=!!e.file_names;t.path=i?e.file_names:e.audiopathEncoded,t.current_download=null,"-1"!==t.path&&t.downloadHelperMp3(t.path,e.uid,i,!1,r)}),(function(e){t.downloadingfile=!1,t.current_download=null,r.downloading=!1;var i=t.downloads.indexOf(r);-1!==i&&t.downloads.splice(i),t.openSnackBar("Download failed!","OK.")}))}else{var s={uid:Object(BP.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;var c=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,c,e,i,n,a,s.uid).subscribe((function(e){s.downloading=!1,s.percent_complete=100;var i=!!e.file_names;t.path=i?e.file_names:e.videopathEncoded,t.current_download=null,"-1"!==t.path&&t.downloadHelperMp4(t.path,e.uid,i,!1,s)}),(function(e){t.downloadingfile=!1,t.current_download=null,s.downloading=!1;var i=t.downloads.indexOf(s);-1!==i&&t.downloads.splice(i),t.openSnackBar("Download failed!","OK.")}))}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}},{key:"cancelDownload",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}},{key:"getSelectedAudioFormat",value:function(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}},{key:"getSelectedVideoFormat",value:function(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){var t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}},{key:"getDownloadByUID",value:function(t){var e=this.downloads.findIndex((function(e){return e.uid===t}));return-1!==e?this.downloads[e]:null}},{key:"removeDownloadFromCurrentDownloads",value:function(t){this.current_download===t&&(this.current_download=null);var e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}},{key:"downloadAudioFile",value:function(t){var e=this;this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe((function(i){e.downloading_content.audio[t]=!1;var n=i;Object(kP.saveAs)(n,decodeURIComponent(t)+".mp3"),e.fileManagerEnabled||e.postsService.deleteFile(t,!0).subscribe((function(t){e.getMp3s()}))}))}},{key:"downloadVideoFile",value:function(t){var e=this;this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe((function(i){e.downloading_content.video[t]=!1;var n=i;Object(kP.saveAs)(n,decodeURIComponent(t)+".mp4"),e.fileManagerEnabled||e.postsService.deleteFile(t,!1).subscribe((function(t){e.getMp4s()}))}))}},{key:"downloadPlaylist",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.postsService.downloadFileFromServer(t,e,n).subscribe((function(t){a&&(i.downloading_content[e][a]=!1);var r=t;Object(kP.saveAs)(r,n+".zip")}))}},{key:"clearInput",value:function(){this.url="",this.results_showing=!1}},{key:"onInputBlur",value:function(){this.results_showing=!1}},{key:"visitURL",value:function(t){window.open(t)}},{key:"useURL",value:function(t){this.results_showing=!1,this.url=t}},{key:"inputChanged",value:function(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}},{key:"ValidURL",value:function(t){var e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}},{key:"getURLInfo",value:function(t){var e=this;t.includes("playlist")||(this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe((function(i){e.cachedAvailableFormats[t].formats_loading=!1;var n=i.result;if(n&&n.formats){var a=e.getAudioAndVideoFormats(n.formats);e.cachedAvailableFormats[t].formats={audio:a[0],video:a[1]}}else e.errorFormats(t)}),(function(i){e.errorFormats(t)}))))}},{key:"getSimulatedOutput",value:function(){var t,e,i=this.globalCustomArgs&&""!==this.globalCustomArgs,n=[],a=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=a.join(" ")+" "+this.customArgs,this.simulatedOutput;(t=n).push.apply(t,a);var r=this.audioOnly?this.audioFolderPath:this.videoFolderPath,o=this.audioOnly?".mp3":".mp4",s=["-o",r+"%(title)s"+o];if(this.customOutputEnabled&&this.customOutput&&(s=["-o",r+this.customOutput+o]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||n.push("--external-downloader","aria2c"),(e=n).push.apply(e,_toConsumableArray(s)),this.audioOnly){var c,l=[],u=this.getSelectedAudioFormat();u?l.push("-f",u):this.selectedQuality&&l.push("--audio-quality",this.selectedQuality),(c=n).splice.apply(c,[2,0].concat(l)),n.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{var d,h=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"],f=this.getSelectedVideoFormat();f?h=["-f",f]:this.selectedQuality&&(h=["bestvideo[height=".concat(this.selectedQuality,"]+bestaudio/best[height=").concat(this.selectedQuality,"]")]),(d=n).splice.apply(d,[2,0].concat(_toConsumableArray(h))),n.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&n.push("--download-archive","archive.txt"),i&&(n=n.concat(this.globalCustomArgs.split(" "))),this.simulatedOutput=n.join(" "),this.simulatedOutput}},{key:"errorFormats",value:function(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}},{key:"attachToInput",value:function(){var t=this;si.a.fromEvent(this.urlInput.nativeElement,"keyup").map((function(t){return t.target.value})).filter((function(t){return t.length>1})).debounceTime(250).do((function(){return t.results_loading=!0})).map((function(e){return t.youtubeSearch.search(e)})).switch().subscribe((function(e){t.results_loading=!1,""!==t.url&&e&&e.length>0?(t.results=e,t.results_showing=!0):t.results_showing=!1}),(function(e){console.log(e),t.results_loading=!1,t.results_showing=!1}),(function(){t.results_loading=!1}))}},{key:"onResize",value:function(t){this.setCols()}},{key:"videoModeChanged",value:function(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}},{key:"multiDownloadModeChanged",value:function(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}},{key:"customArgsEnabledChanged",value:function(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}},{key:"customOutputEnabledChanged",value:function(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"youtubeAuthEnabledChanged",value:function(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"getAudioAndVideoFormats",value:function(t){for(var e={},i={},n=0;ni&&(e=r.format_id,i=r.bitrate)}return e}},{key:"accordionEntered",value:function(t){"audio"===t?(iR=!0,this.audioFileCards.forEach((function(t){t.onHoverResponse()}))):"video"===t&&(nR=!0,this.videoFileCards.forEach((function(t){t.onHoverResponse()})))}},{key:"accordionLeft",value:function(t){"audio"===t?iR=!1:"video"===t&&(nR=!1)}},{key:"accordionOpened",value:function(t){"audio"===t?aR=!0:"video"===t&&(rR=!0)}},{key:"accordionClosed",value:function(t){"audio"===t?aR=!1:"video"===t&&(rR=!1)}},{key:"openCreatePlaylistDialog",value:function(t){var e=this;this.dialog.open(NP,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe((function(i){i?("audio"===t&&e.getMp3s(),"video"===t&&e.getMp4s(),e.openSnackBar("Successfully created playlist!","")):!1===i&&e.openSnackBar("ERROR: failed to create playlist!","")}))}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(TA,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(e){e&&(t.customArgs=e)}))}},{key:"getCurrentDownload",value:function(){var t=this;if(this.current_download){var e=this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid;this.postsService.getCurrentDownload(this.postsService.session_id,e).subscribe((function(i){i.download&&e===i.download.ui_uid&&(t.current_download=i.download,t.percentDownloaded=t.current_download.percent_complete)}))}}}]),t}()).\u0275fac=function(t){return new(t||eR)(a.zc(JO),a.zc(CP),a.zc(D_),a.zc(bO),a.zc(Ih),a.zc(Ei),a.zc(cE))},eR.\u0275cmp=a.tc({type:eR,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(a.Bd(VP,!0,a.q),a.Bd(UP,!0),a.Bd(WP,!0)),2&t&&(a.id(i=a.Tc())&&(e.urlInput=i.first),a.id(i=a.Tc())&&(e.audioFileCards=i),a.id(i=a.Tc())&&(e.videoFileCards=i))},decls:42,vars:18,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url","required","",2,"padding-right","25px",3,"ngModel","placeholder","formControl","ngModelChange"],["urlinput",""],[4,"ngIf"],["mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","isPlaylist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(a.Ac(0,"br"),a.Fc(1,"div",0),a.Fc(2,"mat-card",1),a.Fc(3,"mat-card-title"),a.Dc(4),a.Jc(5,FP),a.Cc(),a.Ec(),a.Fc(6,"mat-card-content"),a.Fc(7,"div",2),a.Fc(8,"form",3),a.Fc(9,"div",4),a.Fc(10,"div",5),a.Fc(11,"div",6),a.Fc(12,"mat-form-field",7),a.Fc(13,"input",8,9),a.Sc("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),a.Ec(),a.vd(15,HP,3,0,"mat-error",10),a.Fc(16,"button",11),a.Sc("click",(function(){return e.clearInput()})),a.Fc(17,"mat-icon"),a.xd(18,"clear"),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.vd(19,JP,8,5,"div",12),a.Ec(),a.Ec(),a.vd(20,aF,2,1,"div",13),a.Ec(),a.Ac(21,"br"),a.Fc(22,"mat-checkbox",14),a.Sc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),a.Dc(23),a.Jc(24,RP),a.Cc(),a.Ec(),a.vd(25,rF,3,2,"mat-checkbox",15),a.Ec(),a.Ec(),a.Fc(26,"mat-card-actions"),a.Fc(27,"button",16),a.Sc("click",(function(){return e.downloadClicked()})),a.Dc(28),a.Jc(29,MP),a.Cc(),a.Ec(),a.vd(30,oF,3,0,"button",17),a.Ec(),a.Ec(),a.Ec(),a.vd(31,AF,39,19,"div",18),a.vd(32,PF,4,1,"div",19),a.Ac(33,"br"),a.vd(34,zF,7,3,"div",20),a.vd(35,LF,0,0,"ng-template",null,21,a.wd),a.vd(37,ZF,20,4,"div",22),a.vd(38,QF,0,0,"ng-template",null,23,a.wd),a.vd(40,tR,0,0,"ng-template",null,24,a.wd)),2&t){var i=a.jd(36);a.lc(2),a.cd("ngClass",e.allowAdvancedDownload?"no-border-radius-bottom":null),a.lc(9),a.cd("ngClass",e.allowQualitySelect?"col-sm-9":null),a.lc(2),a.cd("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":""))("formControl",e.urlForm),a.lc(2),a.cd("ngIf",e.urlError||e.urlForm.invalid),a.lc(4),a.cd("ngIf",e.allowQualitySelect),a.lc(1),a.cd("ngIf",e.results_showing),a.lc(2),a.cd("disabled",e.current_download)("ngModel",e.audioOnly),a.lc(3),a.cd("ngIf",e.allowMultiDownloadMode),a.lc(2),a.cd("disabled",e.downloadingfile),a.lc(3),a.cd("ngIf",!!e.current_download),a.lc(1),a.cd("ngIf",e.allowAdvancedDownload),a.lc(1),a.cd("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),a.lc(2),a.cd("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",i),a.lc(3),a.cd("ngIf",e.fileManagerEnabled&&(!e.postsService.isLoggedIn||e.postsService.permissions.includes("filemanager")))}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:-10px;top:5px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),eR);si.a.merge=al.a;var sR,cR,lR,uR,dR,hR,fR,mR=i("zuWl"),pR=i.n(mR);sR=$localize(_templateObject157()),cR=$localize(_templateObject158()),lR=$localize(_templateObject159()),uR=$localize(_templateObject160()),dR=$localize(_templateObject161()),hR=$localize(_templateObject162()),fR=$localize(_templateObject163());var gR,vR=((gR=function(){function t(e){_classCallCheck(this,t),this.data=e}return _createClass(t,[{key:"ngOnInit",value:function(){this.filesize=pR.a,this.data&&(this.file=this.data.file)}}]),t}()).\u0275fac=function(t){return new(t||gR)(a.zc(Oh))},gR.\u0275cmp=a.tc({type:gR,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.xd(1),a.Ec(),a.Fc(2,"mat-dialog-content"),a.Fc(3,"div",1),a.Fc(4,"div",2),a.Fc(5,"strong"),a.Dc(6),a.Jc(7,sR),a.Cc(),a.xd(8,"\xa0"),a.Ec(),a.Ec(),a.Fc(9,"div",3),a.xd(10),a.Ec(),a.Ec(),a.Fc(11,"div",1),a.Fc(12,"div",2),a.Fc(13,"strong"),a.Dc(14),a.Jc(15,cR),a.Cc(),a.xd(16,"\xa0"),a.Ec(),a.Ec(),a.Fc(17,"div",3),a.Fc(18,"a",4),a.xd(19),a.Ec(),a.Ec(),a.Ec(),a.Fc(20,"div",1),a.Fc(21,"div",2),a.Fc(22,"strong"),a.Dc(23),a.Jc(24,lR),a.Cc(),a.xd(25,"\xa0"),a.Ec(),a.Ec(),a.Fc(26,"div",3),a.xd(27),a.Ec(),a.Ec(),a.Fc(28,"div",1),a.Fc(29,"div",2),a.Fc(30,"strong"),a.Dc(31),a.Jc(32,uR),a.Cc(),a.xd(33,"\xa0"),a.Ec(),a.Ec(),a.Fc(34,"div",3),a.xd(35),a.Ec(),a.Ec(),a.Fc(36,"div",1),a.Fc(37,"div",2),a.Fc(38,"strong"),a.Dc(39),a.Jc(40,dR),a.Cc(),a.xd(41,"\xa0"),a.Ec(),a.Ec(),a.Fc(42,"div",3),a.xd(43),a.Ec(),a.Ec(),a.Fc(44,"div",1),a.Fc(45,"div",2),a.Fc(46,"strong"),a.Dc(47),a.Jc(48,hR),a.Cc(),a.xd(49,"\xa0"),a.Ec(),a.Ec(),a.Fc(50,"div",3),a.xd(51),a.Ec(),a.Ec(),a.Ec(),a.Fc(52,"mat-dialog-actions"),a.Fc(53,"button",5),a.Dc(54),a.Jc(55,fR),a.Cc(),a.Ec(),a.Ec()),2&t&&(a.lc(1),a.yd(e.file.title),a.lc(9),a.yd(e.file.title),a.lc(8),a.cd("href",e.file.url,a.pd),a.lc(1),a.yd(e.file.url),a.lc(8),a.yd(e.file.uploader?e.file.uploader:"N/A"),a.lc(8),a.yd(e.file.size?e.filesize(e.file.size):"N/A"),a.lc(8),a.yd(e.file.path?e.file.path:"N/A"),a.lc(8),a.yd(e.file.upload_date?e.file.upload_date:"N/A"))},directives:[Rh,Mh,zh,Za,Fh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),gR),bR=new si.a(We.a);function _R(t,e){t.className=t.className.replace(e,"")}function yR(t,e){t.className.includes(e)||(t.className+=" ".concat(e))}function kR(){return"undefined"!=typeof window?window.navigator:void 0}function wR(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function CR(t){return"img"===t.nodeName.toLowerCase()}function xR(t,e,i){return CR(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage="url('".concat(e,"')"),t}function SR(t){return function(e){for(var i=e.parentElement.getElementsByTagName("source"),n=0;n1&&void 0!==arguments[1]?arguments[1]:qR;return t.customObservable?t.customObservable:e(t)}}),YR=Object.assign({},FR,{isVisible:function(){return!0},getObservable:function(){return Be("load")},loadImage:function(t){return[t.imagePath]}}),KR=((LR=function(){function t(e,i,n,r){_classCallCheck(this,t),this.onStateChange=new a.t,this.onLoad=new a.t,this.elementRef=e,this.ngZone=i,this.propertyChanges$=new Yl,this.platformId=n,this.hooks=function(t,e){var i=$R,n=e&&e.isBot?e.isBot:i.isBot;if(n(kR(),t))return Object.assign(YR,{isBot:n});if(!e)return i;var a={};return Object.assign(a,e.preset?e.preset:i),Object.keys(e).filter((function(t){return"preset"!==t})).forEach((function(t){a[t]=e[t]})),a}(n,r)}return _createClass(t,[{key:"ngOnChanges",value:function(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe((function(t){return console.log(t)}))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}},{key:"ngAfterContentInit",value:function(){var t=this;if(Object(ye.J)(this.platformId)&&!this.hooks.isBot(kR(),this.platformId))return null;this.ngZone.runOutsideAngular((function(){t.loadSubscription=t.propertyChanges$.pipe(Ge((function(t){return t.onStateChange.emit({reason:"setup"})})),Ge((function(e){return t.hooks.setup(e)})),Il((function(e){return e.imagePath?t.hooks.getObservable(e).pipe(function(t,e){return function(i){return i.pipe(Ge((function(t){return e.onStateChange.emit({reason:"observer-emit",data:t})})),ii((function(i){return t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})})),ui(1),Ge((function(){return e.onStateChange.emit({reason:"start-loading"})})),Object(rm.a)((function(){return t.loadImage(e)})),Ge((function(){return e.onStateChange.emit({reason:"mount-image"})})),Ge((function(i){return t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})})),Ge((function(){return e.onStateChange.emit({reason:"loading-succeeded"})})),Object(ri.a)((function(){return!0})),Zf((function(i){return e.onStateChange.emit({reason:"loading-failed",data:i}),t.setErrorImage(e),Be(!1)})),Ge((function(){e.onStateChange.emit({reason:"finally"}),t.finally(e)})))}}(t.hooks,e)):bR}))).subscribe((function(e){return t.onLoad.emit(e)}))}))}},{key:"ngOnDestroy",value:function(){var t,e;null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||LR)(a.zc(a.q),a.zc(a.G),a.zc(a.J),a.zc("options",8))},LR.\u0275dir=a.uc({type:LR,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[a.jc]}),LR),XR=((NR=jR=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(t){return{ngModule:jR,providers:[{provide:"options",useValue:t}]}}}]),t}()).\u0275mod=a.xc({type:NR}),NR.\u0275inj=a.wc({factory:function(t){return new(t||NR)}}),NR);function JR(t,e){if(1&t&&(a.Fc(0,"div"),a.Dc(1),a.Jc(2,WR),a.Cc(),a.xd(3),a.Ec()),2&t){var i=a.Wc();a.lc(3),a.zd("\xa0",i.count,"")}}function ZR(t,e){1&t&&a.Ac(0,"span")}function QR(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",12),a.Fc(1,"img",13),a.Sc("error",(function(t){return a.nd(i),a.Wc().onImgError(t)}))("onLoad",(function(t){return a.nd(i),a.Wc().imageLoaded(t)})),a.Ec(),a.vd(2,ZR,1,0,"span",5),a.Ec()}if(2&t){var n=a.Wc();a.lc(1),a.cd("id",n.type)("lazyLoad",n.thumbnailURL)("customObservable",n.scrollAndLoad),a.lc(1),a.cd("ngIf",!n.image_loaded)}}function tM(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",14),a.Sc("click",(function(){return a.nd(i),a.Wc().deleteFile()})),a.Fc(1,"mat-icon"),a.xd(2,"delete_forever"),a.Ec(),a.Ec()}}function eM(t,e){if(1&t&&(a.Fc(0,"button",15),a.Fc(1,"mat-icon"),a.xd(2,"more_vert"),a.Ec(),a.Ec()),2&t){a.Wc();var i=a.jd(16);a.cd("matMenuTriggerFor",i)}}function iM(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",10),a.Sc("click",(function(){return a.nd(i),a.Wc().deleteFile(!0)})),a.Fc(1,"mat-icon"),a.xd(2,"delete_forever"),a.Ec(),a.Dc(3),a.Jc(4,HR),a.Cc(),a.Ec()}}BR=$localize(_templateObject164()),VR=$localize(_templateObject165()),UR=$localize(_templateObject166()),WR=$localize(_templateObject167()),HR=$localize(_templateObject168());var nM,aM=((nM=function(){function t(e,i,n,r){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.mainComponent=n,this.dialog=r,this.isAudio=!0,this.removeFile=new a.t,this.isPlaylist=!1,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Me.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(t,[{key:"ngOnInit",value:function(){this.type=this.isAudio?"audio":"video"}},{key:"deleteFile",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isPlaylist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,e).subscribe((function(e){e?(t.openSnackBar("Delete success!","OK."),t.removeFile.emit(t.name)):t.openSnackBar("Delete failed!","OK.")}),(function(e){t.openSnackBar("Delete failed!","OK.")}))}},{key:"openVideoInfoDialog",value:function(){this.dialog.open(vR,{data:{file:this.file},minWidth:"50vw"})}},{key:"onImgError",value:function(t){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(t){this.image_loaded=!0}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||nM)(a.zc(JO),a.zc(D_),a.zc(oR),a.zc(Ih))},nM.\u0275cmp=a.tc({type:nM,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",isPlaylist:"isPlaylist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:28,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"click",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"click"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(a.Fc(0,"mat-card",0),a.Fc(1,"div",1),a.Fc(2,"div",2),a.Fc(3,"div"),a.Fc(4,"b"),a.Fc(5,"a",3),a.Sc("click",(function(){return e.isPlaylist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio,e.uid)})),a.xd(6),a.Ec(),a.Ec(),a.Ec(),a.Fc(7,"span",4),a.Dc(8),a.Jc(9,BR),a.Cc(),a.xd(10),a.Ec(),a.vd(11,JR,4,1,"div",5),a.Ec(),a.vd(12,QR,3,4,"div",6),a.Ec(),a.vd(13,tM,3,0,"button",7),a.vd(14,eM,3,1,"button",8),a.Fc(15,"mat-menu",null,9),a.Fc(17,"button",10),a.Sc("click",(function(){return e.openVideoInfoDialog()})),a.Fc(18,"mat-icon"),a.xd(19,"info"),a.Ec(),a.Dc(20),a.Jc(21,VR),a.Cc(),a.Ec(),a.Fc(22,"button",10),a.Sc("click",(function(){return e.deleteFile()})),a.Fc(23,"mat-icon"),a.xd(24,"delete"),a.Ec(),a.Dc(25),a.Jc(26,UR),a.Cc(),a.Ec(),a.vd(27,iM,5,0,"button",11),a.Ec(),a.Ec()),2&t&&(a.lc(6),a.yd(e.title),a.lc(4),a.zd("\xa0",e.name,""),a.lc(1),a.cd("ngIf",e.isPlaylist),a.lc(1),a.cd("ngIf",!e.image_errored&&e.thumbnailURL),a.lc(1),a.cd("ngIf",e.isPlaylist),a.lc(1),a.cd("ngIf",!e.isPlaylist),a.lc(13),a.cd("ngIf",e.use_youtubedl_archive))},directives:[jc,ye.t,Mg,Tg,_p,KR,Za,Ng],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),nM);function rM(t,e){1&t&&(a.Fc(0,"div",6),a.Ac(1,"mat-spinner",7),a.Ec()),2&t&&(a.lc(1),a.cd("diameter",25))}var oM,sM,cM,lM,uM,dM,hM,fM=((oM=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}},{key:"enterPressed",value:function(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}]),t}()).\u0275fac=function(t){return new(t||oM)(a.zc(Eh),a.zc(Oh))},oM.\u0275cmp=a.tc({type:oM,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.xd(1),a.Ec(),a.Fc(2,"mat-dialog-content"),a.Fc(3,"div"),a.Fc(4,"mat-form-field",1),a.Fc(5,"input",2),a.Sc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(6,"mat-dialog-actions"),a.Fc(7,"button",3),a.xd(8,"Cancel"),a.Ec(),a.Fc(9,"button",4),a.Sc("click",(function(){return e.enterPressed()})),a.xd(10),a.Ec(),a.vd(11,rM,2,1,"div",5),a.Ec()),2&t&&(a.lc(1),a.yd(e.inputTitle),a.lc(4),a.cd("ngModel",e.inputText)("placeholder",e.inputPlaceholder),a.lc(4),a.cd("disabled",!e.inputText),a.lc(1),a.yd(e.submitText),a.lc(1),a.cd("ngIf",e.inputSubmitted))},directives:[Rh,Mh,Hd,Pp,_r,Ar,ts,zh,Za,Fh,ye.t,zv],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),oM);function mM(t,e){1&t&&(a.Dc(0),a.Jc(1,uM),a.Cc())}function pM(t,e){1&t&&(a.Dc(0),a.Jc(1,dM),a.Cc())}function gM(t,e){1&t&&(a.Dc(0),a.Jc(1,hM),a.Cc())}sM=$localize(_templateObject169()),cM=$localize(_templateObject170()),lM=$localize(_templateObject171()),uM=$localize(_templateObject172()),dM=$localize(_templateObject173()),hM=$localize(_templateObject174());var vM,bM=((vM=function(){function t(e,i,n,a){_classCallCheck(this,t),this.data=e,this.router=i,this.snackBar=n,this.postsService=a,this.type=null,this.uid=null,this.uuid=null,this.share_url=null,this.sharing_enabled=null,this.is_playlist=null}return _createClass(t,[{key:"ngOnInit",value:function(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.uuid=this.data.uuid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist;var t=this.is_playlist?";id=":";uid=";this.share_url=window.location.href.split(";")[0]+t+this.uid,this.uuid&&(this.share_url+=";uuid="+this.uuid)}}},{key:"copiedToClipboard",value:function(){this.openSnackBar("Copied to clipboard!")}},{key:"sharingChanged",value:function(t){var e=this;t.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe((function(t){t.success?(e.openSnackBar("Sharing enabled."),e.sharing_enabled=!0):e.openSnackBar("Failed to enable sharing.")}),(function(t){e.openSnackBar("Failed to enable sharing - server error.")})):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe((function(t){t.success?(e.openSnackBar("Sharing disabled."),e.sharing_enabled=!1):e.openSnackBar("Failed to disable sharing.")}),(function(t){e.openSnackBar("Failed to disable sharing - server error.")}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||vM)(a.zc(Oh),a.zc(bO),a.zc(D_),a.zc(JO))},vM.\u0275cmp=a.tc({type:vM,selectors:[["app-share-media-dialog"]],decls:21,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.vd(1,mM,2,0,"ng-container",1),a.vd(2,pM,2,0,"ng-container",1),a.vd(3,gM,2,0,"ng-container",1),a.Ec(),a.Fc(4,"mat-dialog-content"),a.Fc(5,"div"),a.Fc(6,"div"),a.Fc(7,"mat-checkbox",2),a.Sc("change",(function(t){return e.sharingChanged(t)})),a.Dc(8),a.Jc(9,sM),a.Cc(),a.Ec(),a.Ec(),a.Fc(10,"div"),a.Fc(11,"mat-form-field",3),a.Ac(12,"input",4),a.Ec(),a.Ec(),a.Fc(13,"div",5),a.Fc(14,"button",6),a.Sc("click",(function(){return e.copiedToClipboard()})),a.Dc(15),a.Jc(16,cM),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(17,"mat-dialog-actions"),a.Fc(18,"button",7),a.Dc(19),a.Jc(20,lM),a.Cc(),a.Ec(),a.Ec()),2&t&&(a.lc(1),a.cd("ngIf",e.is_playlist),a.lc(1),a.cd("ngIf",!e.is_playlist&&"video"===e.type),a.lc(1),a.cd("ngIf",!e.is_playlist&&"audio"===e.type),a.lc(4),a.cd("checked",e.sharing_enabled),a.lc(5),a.cd("disabled",!e.sharing_enabled)("readonly",!0)("value",e.share_url),a.lc(2),a.cd("disabled",!e.sharing_enabled)("cdkCopyToClipboard",e.share_url))},directives:[Rh,ye.t,Mh,Jc,Hd,Pp,Za,Tx,zh,Fh],styles:[""]}),vM),_M=["*"],yM=["volumeBar"],kM=function(t){return{dragging:t}};function wM(t,e){if(1&t&&a.Ac(0,"span",2),2&t){var i=e.$implicit;a.ud("width",null==i.$$style?null:i.$$style.width)("left",null==i.$$style?null:i.$$style.left)}}function CM(t,e){1&t&&a.Ac(0,"span",2)}function xM(t,e){1&t&&(a.Fc(0,"span"),a.xd(1,"LIVE"),a.Ec())}function SM(t,e){if(1&t&&(a.Fc(0,"span"),a.xd(1),a.Xc(2,"vgUtc"),a.Ec()),2&t){var i=a.Wc();a.lc(1),a.yd(a.Zc(2,1,i.getTime(),i.vgFormat))}}function EM(t,e){if(1&t&&(a.Fc(0,"option",4),a.xd(1),a.Ec()),2&t){var i=e.$implicit;a.cd("value",i.id)("selected",!0===i.selected),a.lc(1),a.zd(" ",i.label," ")}}function OM(t,e){if(1&t&&(a.Fc(0,"option",4),a.xd(1),a.Ec()),2&t){var i=e.$implicit,n=a.Wc();a.cd("value",i.qualityIndex.toString())("selected",i.qualityIndex===(null==n.bitrateSelected?null:n.bitrateSelected.qualityIndex)),a.lc(1),a.zd(" ",i.label," ")}}var AM,TM,DM,IM,PM,FM,RM,MM,zM,LM,jM,NM,BM,VM,UM,WM,HM,GM,qM,$M,YM,KM,XM,JM,ZM,QM,tz,ez,iz,nz,az=((iz=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||iz)},iz.\u0275prov=a.vc({token:iz,factory:iz.\u0275fac}),iz.VG_ENDED="ended",iz.VG_PAUSED="paused",iz.VG_PLAYING="playing",iz.VG_LOADING="waiting",iz),rz=((ez=function(){function t(){_classCallCheck(this,t),this.medias={},this.playerReadyEvent=new a.t(!0),this.isPlayerReady=!1}return _createClass(t,[{key:"onPlayerReady",value:function(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}},{key:"getDefaultMedia",value:function(){for(var t in this.medias)if(this.medias[t])return this.medias[t]}},{key:"getMasterMedia",value:function(){var t;for(var e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}},{key:"isMasterDefined",value:function(){var t=!1;for(var e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}},{key:"getMediaById",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.medias[t];return t&&"*"!==t||(e=this),e}},{key:"play",value:function(){for(var t in this.medias)this.medias[t]&&this.medias[t].play()}},{key:"pause",value:function(){for(var t in this.medias)this.medias[t]&&this.medias[t].pause()}},{key:"seekTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],t,e)}},{key:"$$seek",value:function(t,e){var i,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.duration;n?(this.isMasterDefined()&&(a=this.getMasterMedia().duration),i=e*a/100):i=e,t.currentTime=i}},{key:"addTextTrack",value:function(t,e,i){for(var n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],t,e,i)}},{key:"$$addTextTrack",value:function(t,e,i,n){t.addTextTrack(e,i,n)}},{key:"$$getAllProperties",value:function(t){var e,i={};for(var n in this.medias)this.medias[n]&&(i[n]=this.medias[n]);switch(Object.keys(i).length){case 0:switch(t){case"state":e=az.VG_PAUSED;break;case"playbackRate":case"volume":e=1;break;case"time":e={current:0,total:0,left:0}}break;case 1:e=i[Object.keys(i)[0]][t];break;default:e=i[this.getMasterMedia().id][t]}return e}},{key:"$$setAllProperties",value:function(t,e){for(var i in this.medias)this.medias[i]&&(this.medias[i][t]=e)}},{key:"registerElement",value:function(t){this.videogularElement=t}},{key:"registerMedia",value:function(t){this.medias[t.id]=t}},{key:"unregisterMedia",value:function(t){delete this.medias[t.id]}},{key:"duration",get:function(){return this.$$getAllProperties("duration")}},{key:"currentTime",set:function(t){this.$$setAllProperties("currentTime",t)},get:function(){return this.$$getAllProperties("currentTime")}},{key:"state",set:function(t){this.$$setAllProperties("state",t)},get:function(){return this.$$getAllProperties("state")}},{key:"volume",set:function(t){this.$$setAllProperties("volume",t)},get:function(){return this.$$getAllProperties("volume")}},{key:"playbackRate",set:function(t){this.$$setAllProperties("playbackRate",t)},get:function(){return this.$$getAllProperties("playbackRate")}},{key:"canPlay",get:function(){return this.$$getAllProperties("canPlay")}},{key:"canPlayThrough",get:function(){return this.$$getAllProperties("canPlayThrough")}},{key:"isMetadataLoaded",get:function(){return this.$$getAllProperties("isMetadataLoaded")}},{key:"isWaiting",get:function(){return this.$$getAllProperties("isWaiting")}},{key:"isCompleted",get:function(){return this.$$getAllProperties("isCompleted")}},{key:"isLive",get:function(){return this.$$getAllProperties("isLive")}},{key:"isMaster",get:function(){return this.$$getAllProperties("isMaster")}},{key:"time",get:function(){return this.$$getAllProperties("time")}},{key:"buffer",get:function(){return this.$$getAllProperties("buffer")}},{key:"buffered",get:function(){return this.$$getAllProperties("buffered")}},{key:"subscriptions",get:function(){return this.$$getAllProperties("subscriptions")}},{key:"textTracks",get:function(){return this.$$getAllProperties("textTracks")}}]),t}()).\u0275fac=function(t){return new(t||ez)},ez.\u0275prov=a.vc({token:ez,factory:ez.\u0275fac}),ez),oz=((tz=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){var t=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(e){return t.onUpdateBuffer(e)})))}},{key:"onUpdateBuffer",value:function(t){this.isBuffering=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||tz)(a.zc(a.q),a.zc(rz))},tz.\u0275cmp=a.tc({type:tz,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&a.pc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(a.Fc(0,"div",0),a.Fc(1,"div",1),a.Ac(2,"div",2),a.Ec(),a.Ec())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),tz),sz=((QM=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:QM}),QM.\u0275inj=a.wc({factory:function(t){return new(t||QM)},imports:[[ye.c]]}),QM),cz=((ZM=function(){function t(){_classCallCheck(this,t),this.isHiddenSubject=new Me.a,this.isHidden=this.isHiddenSubject.asObservable()}return _createClass(t,[{key:"state",value:function(t){this.isHiddenSubject.next(t)}}]),t}()).\u0275fac=function(t){return new(t||ZM)},ZM.\u0275prov=a.vc({token:ZM,factory:ZM.\u0275fac}),ZM),lz=((JM=function(){function t(e,i,n){_classCallCheck(this,t),this.API=e,this.ref=i,this.hidden=n,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=i.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.mouseMove$=rl(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=rl(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}},{key:"ngAfterViewInit",value:function(){this.vgAutohide?this.hide():this.show()}},{key:"onPlay",value:function(){this.vgAutohide&&this.hide()}},{key:"onPause",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}},{key:"onStartAds",value:function(){this.isAdsPlaying="none"}},{key:"onEndAds",value:function(){this.isAdsPlaying="initial"}},{key:"hide",value:function(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}},{key:"show",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}},{key:"hideAsync",value:function(){var t=this;this.API.state===az.VG_PLAYING&&(this.timer=setTimeout((function(){t.hideControls=!0,t.hidden.state(!0)}),1e3*this.vgAutohideTime))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||JM)(a.zc(rz),a.zc(a.q),a.zc(cz))},JM.\u0275cmp=a.tc({type:JM,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(a.ud("pointer-events",e.isAdsPlaying),a.pc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:_M,decls:1,vars:0,template:function(t,e){1&t&&(a.bd(),a.ad(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),JM),uz=((XM=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"getZIndex",value:function(){for(var t,e=1,i=document.getElementsByTagName("*"),n=0,a=i.length;ne&&(e=t+1);return e}},{key:"isMobileDevice",value:function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}},{key:"isiOSDevice",value:function(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}},{key:"isCordova",value:function(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}}]),t}()).\u0275fac=function(t){return new(t||XM)},XM.\u0275prov=Object(a.vc)({factory:function(){return new XM},token:XM,providedIn:"root"}),XM),dz=((KM=function(){function t(){_classCallCheck(this,t),this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new a.t}return _createClass(t,[{key:"init",value:function(t,e){var i=this;this.videogularElement=t,this.medias=e;var n={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(var a in n)if(n[a].enabled in document){this.polyfill=n[a];break}if(uz.isiOSDevice()&&(this.polyfill=n.ios),this.isAvailable=null!=this.polyfill,null!=this.polyfill){var r;switch(this.polyfill.onchange){case"mozfullscreenchange":r=document;break;case"webkitendfullscreen":r=this.medias.toArray()[0].elem;break;default:r=t}this.fsChangeSubscription=rl(r,this.polyfill.onchange).subscribe((function(){i.onFullscreenChange()}))}}},{key:"onFullscreenChange",value:function(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}},{key:"toggleFullscreen",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isFullscreen?this.exit():this.request(t)}},{key:"request",value:function(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(uz.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||uz.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}},{key:"enterElementInFullScreen",value:function(t){t[this.polyfill.request]()}},{key:"exit",value:function(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}}]),t}()).\u0275fac=function(t){return new(t||KM)},KM.\u0275prov=a.vc({token:KM,factory:KM.\u0275fac}),KM),hz=((YM=function(){function t(e,i,n){_classCallCheck(this,t),this.API=i,this.fsAPI=n,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=e.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onChangeFullscreen",value:function(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}},{key:"onClick",value:function(){this.changeFullscreenState()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}},{key:"changeFullscreenState",value:function(){var t=this.target;this.target instanceof rz&&(t=null),this.fsAPI.toggleFullscreen(t)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||YM)(a.zc(a.q),a.zc(rz),a.zc(dz))},YM.\u0275cmp=a.tc({type:YM,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&a.Ac(0,"div",0),2&t&&(a.pc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),a.mc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),YM),fz=(($M=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.ariaValue="unmuted",this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}},{key:"onClick",value:function(){this.changeMuteState()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}},{key:"changeMuteState",value:function(){var t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}},{key:"getVolume",value:function(){var t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||$M)(a.zc(a.q),a.zc(rz))},$M.\u0275cmp=a.tc({type:$M,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&a.Ac(0,"div",0),2&t&&(a.pc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),a.mc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),$M),mz=((qM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.elem=e.nativeElement,this.isDragging=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}},{key:"onClick",value:function(t){this.setVolume(this.calculateVolume(t.clientX))}},{key:"onMouseDown",value:function(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}},{key:"onDrag",value:function(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}},{key:"onStopDrag",value:function(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}},{key:"arrowAdjustVolume",value:function(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}},{key:"calculateVolume",value:function(t){var e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}},{key:"setVolume",value:function(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}},{key:"getVolume",value:function(){return this.target?this.target.volume:0}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||qM)(a.zc(a.q),a.zc(rz))},qM.\u0275cmp=a.tc({type:qM,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&a.td(yM,!0),2&t&&a.id(i=a.Tc())&&(e.volumeBarRef=i.first)},hostBindings:function(t,e){1&t&&a.Sc("mousemove",(function(t){return e.onDrag(t)}),!1,a.ld)("mouseup",(function(t){return e.onStopDrag(t)}),!1,a.ld)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(a.Fc(0,"div",0,1),a.Sc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),a.Fc(2,"div",2),a.Ac(3,"div",3),a.Ac(4,"div",4),a.Ec(),a.Ec()),2&t&&(a.mc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),a.lc(2),a.cd("ngClass",a.fd(7,kM,e.isDragging)),a.lc(1),a.ud("width",85*e.getVolume()+"%"),a.lc(1),a.ud("left",85*e.getVolume()+"%"))},directives:[ye.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),qM),pz=((GM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.ariaValue=az.VG_PAUSED,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.playPause()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}},{key:"playPause",value:function(){switch(this.getState()){case az.VG_PLAYING:this.target.pause();break;case az.VG_PAUSED:case az.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){return this.ariaValue=this.target?this.target.state:az.VG_PAUSED,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||GM)(a.zc(a.q),a.zc(rz))},GM.\u0275cmp=a.tc({type:GM,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&a.Ac(0,"div",0),2&t&&(a.pc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),a.mc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),GM),gz=((HM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.ariaValue=1,this.elem=e.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.updatePlaybackSpeed()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}},{key:"updatePlaybackSpeed",value:function(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof rz?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}},{key:"getPlaybackRate",value:function(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||HM)(a.zc(a.q),a.zc(rz))},HM.\u0275cmp=a.tc({type:HM,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&a.Sc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(a.Fc(0,"span",0),a.xd(1),a.Ec()),2&t&&(a.mc("aria-valuetext",e.ariaValue),a.lc(1),a.zd(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),HM),vz=((WM=function(){function t(e,i,n){var a=this;_classCallCheck(this,t),this.API=i,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=e.nativeElement,this.subscriptions.push(n.isHidden.subscribe((function(t){return a.onHideScrubBar(t)})))}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"seekStart",value:function(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===az.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}},{key:"seekMove",value:function(t){if(this.isSeeking){var e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}},{key:"seekEnd",value:function(t){if(this.isSeeking=!1,this.target.canPlay){var e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}},{key:"touchEnd",value:function(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}},{key:"getTouchOffset",value:function(t){for(var e=0,i=t.target;i;)e+=i.offsetLeft,i=i.offsetParent;return t.touches[0].pageX-e}},{key:"onMouseDownScrubBar",value:function(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}},{key:"onMouseMoveScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}},{key:"onMouseUpScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}},{key:"onTouchStartScrubBar",value:function(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}},{key:"onTouchMoveScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}},{key:"onTouchCancelScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"onTouchEndScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"arrowAdjustVolume",value:function(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"onHideScrubBar",value:function(t){this.hideScrubBar=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||WM)(a.zc(a.q),a.zc(rz),a.zc(cz))},WM.\u0275cmp=a.tc({type:WM,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&a.Sc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,a.ld)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,a.ld)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,a.ld)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,a.ld)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,a.ld)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&a.pc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:_M,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(a.bd(),a.Fc(0,"div",0),a.ad(1),a.Ec()),2&t&&a.mc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),WM),bz=((UM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getBufferTime",value:function(){var t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||UM)(a.zc(a.q),a.zc(rz))},UM.\u0275cmp=a.tc({type:UM,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&a.Ac(0,"div",0),2&t&&a.ud("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),UM),_z=((VM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}},{key:"onLoadedMetadata",value:function(){if(this.vgCuePoints){this.cuePoints=[];for(var t=0,e=this.vgCuePoints.length;t=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime),n="0",a="0";"number"==typeof i&&this.target.time.total&&(a=100*i/this.target.time.total+"%",n=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:a,left:n},this.cuePoints.push(this.vgCuePoints[t])}}}},{key:"updateCuePoints",value:function(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}},{key:"ngOnChanges",value:function(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}},{key:"ngDoCheck",value:function(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||VM)(a.zc(a.q),a.zc(rz))},VM.\u0275cmp=a.tc({type:VM,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[a.jc],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(a.Fc(0,"div",0),a.vd(1,wM,1,4,"span",1),a.Ec()),2&t&&(a.lc(1),a.cd("ngForOf",e.cuePoints))},directives:[ye.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),VM),yz=((BM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.vgSlider=!1,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||BM)(a.zc(a.q),a.zc(rz))},BM.\u0275cmp=a.tc({type:BM,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(a.Ac(0,"div",0),a.vd(1,CM,1,0,"span",1)),2&t&&(a.ud("width",e.getPercentage()),a.lc(1),a.cd("ngIf",e.vgSlider))},directives:[ye.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),BM),kz=((NM=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var i=new Date(t),n=e,a=i.getUTCSeconds(),r=i.getUTCMinutes(),o=i.getUTCHours();return a<10&&(a="0"+a),r<10&&(r="0"+r),o<10&&(o="0"+o),n=(n=(n=n.replace(/ss/g,a)).replace(/mm/g,r)).replace(/hh/g,o)}}]),t}()).\u0275fac=function(t){return new(t||NM)},NM.\u0275pipe=a.yc({name:"vgUtc",type:NM,pure:!0}),NM),wz=((jM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getTime",value:function(){var t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||jM)(a.zc(a.q),a.zc(rz))},jM.\u0275cmp=a.tc({type:jM,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:_M,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(a.bd(),a.vd(0,xM,2,0,"span",0),a.vd(1,SM,3,4,"span",0),a.ad(2)),2&t&&(a.cd("ngIf",null==e.target?null:e.target.isLive),a.lc(1),a.cd("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[ye.t],pipes:[kz],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),jM),Cz=((LM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor);var t=Array.from(this.API.getMasterMedia().elem.children).filter((function(t){return"TRACK"===t.tagName})).filter((function(t){return"subtitles"===t.kind})).map((function(t){return{label:t.label,selected:!0===t.default,id:t.srclang}}));this.tracks=[].concat(_toConsumableArray(t),[{id:null,label:"Off",selected:t.every((function(t){return!1===t.selected}))}]);var e=this.tracks.filter((function(t){return!0===t.selected}))[0];this.trackSelected=e.id,this.ariaValue=e.label}},{key:"selectTrack",value:function(t){var e=this;this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach((function(i){i.language===t?(e.ariaValue=i.label,i.mode="showing"):i.mode="hidden"}))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||LM)(a.zc(a.q),a.zc(rz))},LM.\u0275cmp=a.tc({type:LM,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(a.Fc(0,"div",0),a.Fc(1,"div",1),a.xd(2),a.Ec(),a.Fc(3,"select",2),a.Sc("change",(function(t){return e.selectTrack(t.target.value)})),a.vd(4,EM,2,3,"option",3),a.Ec(),a.Ec()),2&t&&(a.lc(1),a.pc("vg-icon-closed_caption",!e.trackSelected),a.lc(1),a.zd(" ",e.trackSelected||""," "),a.lc(1),a.mc("aria-valuetext",e.ariaValue),a.lc(1),a.cd("ngForOf",e.tracks))},directives:[ye.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),LM),xz=((zM=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.onBitrateChange=new a.t,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach((function(t){return t.label=(t.label||Math.round(t.bitrate/1e3)).toString()}))}},{key:"selectBitrate",value:function(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||zM)(a.zc(a.q),a.zc(rz))},zM.\u0275cmp=a.tc({type:zM,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[a.jc],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(a.Fc(0,"div",0),a.Fc(1,"div",1),a.xd(2),a.Ec(),a.Fc(3,"select",2),a.Sc("change",(function(t){return e.selectBitrate(t.target.value)})),a.vd(4,OM,2,3,"option",3),a.Ec(),a.Ec()),2&t&&(a.lc(1),a.pc("vg-icon-hd",!e.bitrateSelected),a.lc(1),a.zd(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),a.lc(1),a.mc("aria-valuetext",e.ariaValue),a.lc(1),a.cd("ngForOf",e.bitrates))},directives:[ye.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),zM),Sz=((MM=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:MM}),MM.\u0275inj=a.wc({factory:function(t){return new(t||MM)},providers:[cz],imports:[[ye.c]]}),MM),Ez=((RM=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||RM)},RM.\u0275prov=a.vc({token:RM,factory:RM.\u0275fac}),RM.VG_ABORT="abort",RM.VG_CAN_PLAY="canplay",RM.VG_CAN_PLAY_THROUGH="canplaythrough",RM.VG_DURATION_CHANGE="durationchange",RM.VG_EMPTIED="emptied",RM.VG_ENCRYPTED="encrypted",RM.VG_ENDED="ended",RM.VG_ERROR="error",RM.VG_LOADED_DATA="loadeddata",RM.VG_LOADED_METADATA="loadedmetadata",RM.VG_LOAD_START="loadstart",RM.VG_PAUSE="pause",RM.VG_PLAY="play",RM.VG_PLAYING="playing",RM.VG_PROGRESS="progress",RM.VG_RATE_CHANGE="ratechange",RM.VG_SEEK="seek",RM.VG_SEEKED="seeked",RM.VG_SEEKING="seeking",RM.VG_STALLED="stalled",RM.VG_SUSPEND="suspend",RM.VG_TIME_UPDATE="timeupdate",RM.VG_VOLUME_CHANGE="volumechange",RM.VG_WAITING="waiting",RM.VG_LOAD="load",RM.VG_ENTER="enter",RM.VG_EXIT="exit",RM.VG_START_ADS="startads",RM.VG_END_ADS="endads",RM),Oz=((FM=function(){function t(e,i){_classCallCheck(this,t),this.api=e,this.ref=i,this.state=az.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Me.a}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:rl(this.elem,Ez.VG_ABORT),canPlay:rl(this.elem,Ez.VG_CAN_PLAY),canPlayThrough:rl(this.elem,Ez.VG_CAN_PLAY_THROUGH),durationChange:rl(this.elem,Ez.VG_DURATION_CHANGE),emptied:rl(this.elem,Ez.VG_EMPTIED),encrypted:rl(this.elem,Ez.VG_ENCRYPTED),ended:rl(this.elem,Ez.VG_ENDED),error:rl(this.elem,Ez.VG_ERROR),loadedData:rl(this.elem,Ez.VG_LOADED_DATA),loadedMetadata:rl(this.elem,Ez.VG_LOADED_METADATA),loadStart:rl(this.elem,Ez.VG_LOAD_START),pause:rl(this.elem,Ez.VG_PAUSE),play:rl(this.elem,Ez.VG_PLAY),playing:rl(this.elem,Ez.VG_PLAYING),progress:rl(this.elem,Ez.VG_PROGRESS),rateChange:rl(this.elem,Ez.VG_RATE_CHANGE),seeked:rl(this.elem,Ez.VG_SEEKED),seeking:rl(this.elem,Ez.VG_SEEKING),stalled:rl(this.elem,Ez.VG_STALLED),suspend:rl(this.elem,Ez.VG_SUSPEND),timeUpdate:rl(this.elem,Ez.VG_TIME_UPDATE),volumeChange:rl(this.elem,Ez.VG_VOLUME_CHANGE),waiting:rl(this.elem,Ez.VG_WAITING),startAds:rl(this.elem,Ez.VG_START_ADS),endAds:rl(this.elem,Ez.VG_END_ADS),mutation:new si.a((function(e){var i=new MutationObserver((function(t){e.next(t)}));return i.observe(t.elem,{childList:!0,attributes:!0}),function(){i.disconnect()}})),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe((function(){t.prepareSync()}))}},{key:"prepareSync",value:function(){var t=this,e=[];for(var i in this.api.medias)this.api.medias[i]&&e.push(this.api.medias[i].subscriptions.canPlay);this.canPlayAllSubscription=Wg(e).pipe(Object(ri.a)((function(){for(var e=arguments.length,i=new Array(e),n=0;n.3?(t.playAtferSync=t.state===az.VG_PLAYING,t.pause(),t.api.medias[e].pause(),t.api.medias[e].currentTime=t.currentTime):t.playAtferSync&&(t.play(),t.api.medias[e].play(),t.playAtferSync=!1)}}))}},{key:"onMutation",value:function(t){for(var e=0,i=t.length;e0&&n.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===n.type&&n.removedNodes.length&&"source"===n.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}},{key:"loadMedia",value:function(){var t=this;this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout((function(){return t.vgMedia.load()}),10)}},{key:"play",value:function(){var t=this;if(!(this.playPromise||this.state!==az.VG_PAUSED&&this.state!==az.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then((function(){t.playPromise=null})).catch((function(){t.playPromise=null})),this.playPromise}},{key:"pause",value:function(){var t=this;this.playPromise?this.playPromise.then((function(){t.vgMedia.pause()})):this.vgMedia.pause()}},{key:"onCanPlay",value:function(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}},{key:"onCanPlayThrough",value:function(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}},{key:"onLoadMetadata",value:function(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=az.VG_PAUSED;var e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}},{key:"onWait",value:function(t){this.isWaiting=!0,this.ref.detectChanges()}},{key:"onComplete",value:function(t){this.isCompleted=!0,this.state=az.VG_ENDED,this.ref.detectChanges()}},{key:"onStartPlaying",value:function(t){this.state=az.VG_PLAYING,this.ref.detectChanges()}},{key:"onPlay",value:function(t){this.state=az.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}},{key:"onPause",value:function(t){this.state=az.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}},{key:"onTimeUpdate",value:function(t){var e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}},{key:"onProgress",value:function(t){var e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}},{key:"onVolumeChange",value:function(t){this.ref.detectChanges()}},{key:"onError",value:function(t){this.ref.detectChanges()}},{key:"bufferCheck",value:function(){var t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}},{key:"startBufferCheck",value:function(){var t=this;this.checkBufferSubscription=xl(0,this.checkInterval).subscribe((function(){t.bufferCheck()}))}},{key:"stopBufferCheck",value:function(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}},{key:"seekTime",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=i?t*this.duration/100:t,this.currentTime=e}},{key:"addTextTrack",value:function(t,e,i,n){var a=this.vgMedia.addTextTrack(t,e,i);return n&&(a.mode=n),a}},{key:"ngOnDestroy",value:function(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}},{key:"id",get:function(){var t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}},{key:"duration",get:function(){return this.vgMedia.duration}},{key:"currentTime",set:function(t){this.vgMedia.currentTime=t},get:function(){return this.vgMedia.currentTime}},{key:"volume",set:function(t){this.vgMedia.volume=t},get:function(){return this.vgMedia.volume}},{key:"playbackRate",set:function(t){this.vgMedia.playbackRate=t},get:function(){return this.vgMedia.playbackRate}},{key:"buffered",get:function(){return this.vgMedia.buffered}},{key:"textTracks",get:function(){return this.vgMedia.textTracks}}]),t}()).\u0275fac=function(t){return new(t||FM)(a.zc(rz),a.zc(a.j))},FM.\u0275dir=a.uc({type:FM,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),FM),Az=((PM=function(){function t(e){_classCallCheck(this,t),this.ref=e,this.onEnterCuePoint=new a.t,this.onUpdateCuePoint=new a.t,this.onExitCuePoint=new a.t,this.onCompleteCuePoint=new a.t,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}return _createClass(t,[{key:"ngOnInit",value:function(){this.onLoad$=rl(this.ref.nativeElement,Ez.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}},{key:"onLoad",value:function(t){if(t.target&&t.target.track){var e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){var i=t.target.textTracks[0].cues;this.ref.nativeElement.cues=i,this.updateCuePoints(i)}}},{key:"updateCuePoints",value:function(t){this.cuesSubscriptions.forEach((function(t){return t.unsubscribe()}));for(var e=0,i=t.length;e1),a.lc(1),a.cd("ngIf",1===r.playlist.length)}}nz=$localize(_templateObject175());var Hz,Gz,qz=((Hz=function(){function t(e,i,n,a,r){_classCallCheck(this,t),this.postsService=e,this.route=i,this.dialog=n,this.router=a,this.snackBar=r,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.uuid=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.sharingEnabled=null,this.url=null,this.name=null,this.downloading=!1}return _createClass(t,[{key:"onResize",value:function(t){this.innerWidth=window.innerWidth}},{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.uuid=this.route.snapshot.paramMap.get("uuid"),this.postsService.initialized?this.processConfig():this.postsService.service_initialized.subscribe((function(e){e&&t.processConfig()}))}},{key:"processConfig",value:function(){this.baseStreamPath=this.postsService.path,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.subscriptionFolderPath=this.postsService.config.Subscriptions.subscriptions_base_path,this.fileNames=this.route.snapshot.paramMap.get("fileNames")?this.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,this.fileNames||(this.is_shared=!0),this.uid&&!this.id?this.getFile():this.id&&this.getPlaylistFiles(),this.url?(this.playlist=[],this.playlist.push({title:this.name,label:this.name,src:this.url,type:"video/mp4"}),this.currentItem=this.playlist[0],this.currentIndex=0,this.show_player=!0):("subscription"===this.type||this.fileNames)&&(this.show_player=!0,this.parseFileNames())}},{key:"getFile",value:function(){var t=this,e=!!this.fileNames;this.postsService.getFile(this.uid,null,this.uuid).subscribe((function(i){t.db_file=i.file,t.db_file?(t.sharingEnabled=t.db_file.sharingEnabled,t.fileNames||t.id||(t.fileNames=[t.db_file.id],t.type=t.db_file.isAudio?"audio":"video",e||t.parseFileNames()),t.db_file.sharingEnabled?t.show_player=!0:e||t.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):t.openSnackBar("Failed to get file information from the server.","Dismiss")}))}},{key:"getPlaylistFiles",value:function(){var t=this;this.postsService.getPlaylist(this.id,null).subscribe((function(e){t.db_playlist=e.playlist,t.fileNames=t.db_playlist.fileNames,t.type=e.type,t.show_player=!0,t.parseFileNames()}))}},{key:"parseFileNames",value:function(){var t=null;"audio"===this.type?t="audio/mp3":"video"===this.type||"subscription"===this.type?t="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(var e=0;e0&&e.show_player)},directives:[ye.t,ye.q,Tz,Oz,vc,xx,ye.s,_c,mx,Za,_p,zv],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),Hz);Gz=$localize(_templateObject176());var $z,Yz=["placeholder",$localize(_templateObject177())];$z=$localize(_templateObject178());var Kz,Xz,Jz,Zz,Qz,tL=["placeholder",$localize(_templateObject179())];function eL(t,e){if(1&t&&(a.Fc(0,"mat-option",17),a.xd(1),a.Ec()),2&t){var i=e.$implicit,n=a.Wc(2);a.cd("value",i+(1===n.timerange_amount?"":"s")),a.lc(1),a.zd(" ",i+(1===n.timerange_amount?"":"s")," ")}}function iL(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",3),a.Dc(1),a.Jc(2,Qz),a.Cc(),a.Fc(3,"mat-form-field",13),a.Fc(4,"input",14),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc().timerange_amount=t})),a.Ec(),a.Ec(),a.Fc(5,"mat-select",15),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc().timerange_unit=t})),a.vd(6,eL,2,2,"mat-option",16),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(4),a.cd("ngModel",n.timerange_amount),a.lc(1),a.cd("ngModel",n.timerange_unit),a.lc(1),a.cd("ngForOf",n.time_units)}}function nL(t,e){1&t&&(a.Fc(0,"div",18),a.Ac(1,"mat-spinner",19),a.Ec()),2&t&&(a.lc(1),a.cd("diameter",25))}Kz=$localize(_templateObject180()),Xz=$localize(_templateObject181()),Jz=$localize(_templateObject182()),Zz=$localize(_templateObject183()),Qz=$localize(_templateObject184());var aL,rL,oL,sL,cL,lL,uL,dL,hL=((aL=function(){function t(e,i,n){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.dialogRef=n,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.time_units=["day","week","month","year"]}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"subscribeClicked",value:function(){var t=this;if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;var e=null;this.download_all||(e="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,e,this.streamingOnlyMode).subscribe((function(e){t.subscribing=!1,e.new_sub?t.dialogRef.close(e.new_sub):(e.error&&t.openSnackBar("ERROR: "+e.error),t.dialogRef.close())}))}}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||aL)(a.zc(JO),a.zc(D_),a.zc(Eh))},aL.\u0275cmp=a.tc({type:aL,selectors:[["app-subscribe-dialog"]],decls:36,vars:7,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.Jc(1,Gz),a.Ec(),a.Fc(2,"mat-dialog-content"),a.Fc(3,"div",1),a.Fc(4,"div",2),a.Fc(5,"div",3),a.Fc(6,"mat-form-field",4),a.Fc(7,"input",5),a.Lc(8,Yz),a.Sc("ngModelChange",(function(t){return e.url=t})),a.Ec(),a.Fc(9,"mat-hint"),a.Dc(10),a.Jc(11,$z),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(12,"div",3),a.Fc(13,"mat-form-field",4),a.Fc(14,"input",6),a.Lc(15,tL),a.Sc("ngModelChange",(function(t){return e.name=t})),a.Ec(),a.Fc(16,"mat-hint"),a.Dc(17),a.Jc(18,Kz),a.Cc(),a.Ec(),a.Ec(),a.Ec(),a.Fc(19,"div",7),a.Fc(20,"mat-checkbox",8),a.Sc("ngModelChange",(function(t){return e.download_all=t})),a.Dc(21),a.Jc(22,Xz),a.Cc(),a.Ec(),a.Ec(),a.vd(23,iL,7,3,"div",9),a.Fc(24,"div",3),a.Fc(25,"div"),a.Fc(26,"mat-checkbox",8),a.Sc("ngModelChange",(function(t){return e.streamingOnlyMode=t})),a.xd(27,"Streaming-only mode"),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(28,"mat-dialog-actions"),a.Fc(29,"button",10),a.Dc(30),a.Jc(31,Jz),a.Cc(),a.Ec(),a.Fc(32,"button",11),a.Sc("click",(function(){return e.subscribeClicked()})),a.Dc(33),a.Jc(34,Zz),a.Cc(),a.Ec(),a.vd(35,nL,2,1,"div",12),a.Ec()),2&t&&(a.lc(7),a.cd("ngModel",e.url),a.lc(7),a.cd("ngModel",e.name),a.lc(6),a.cd("ngModel",e.download_all),a.lc(3),a.cd("ngIf",!e.download_all),a.lc(3),a.cd("ngModel",e.streamingOnlyMode),a.lc(6),a.cd("disabled",!e.url),a.lc(3),a.cd("ngIf",e.subscribing))},directives:[Rh,Mh,Hd,Pp,_r,Ks,Ar,ts,Md,Jc,ye.t,zh,Za,Fh,Gr,pb,ye.s,Na,zv],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),aL);function fL(t,e){if(1&t&&(a.Fc(0,"div",1),a.Fc(1,"strong"),a.Dc(2),a.Jc(3,dL),a.Cc(),a.xd(4,"\xa0"),a.Ec(),a.Fc(5,"span",2),a.xd(6),a.Ec(),a.Ec()),2&t){var i=a.Wc();a.lc(6),a.yd(i.sub.archive)}}rL=$localize(_templateObject185()),oL=$localize(_templateObject186()),sL=$localize(_templateObject187()),cL=$localize(_templateObject188()),lL=$localize(_templateObject189()),uL=$localize(_templateObject190()),dL=$localize(_templateObject191());var mL,pL,gL,vL,bL,_L,yL,kL,wL=((mL=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.postsService=n,this.sub=null,this.unsubbedEmitter=null}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}},{key:"unsubscribe",value:function(){var t=this;this.postsService.unsubscribe(this.sub,!0).subscribe((function(e){t.unsubbedEmitter.emit(!0),t.dialogRef.close()}))}},{key:"downloadArchive",value:function(){this.postsService.downloadArchive(this.sub).subscribe((function(t){saveAs(t,"archive.txt")}))}}]),t}()).\u0275fac=function(t){return new(t||mL)(a.zc(Eh),a.zc(Oh),a.zc(JO))},mL.\u0275cmp=a.tc({type:mL,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(a.Fc(0,"h4",0),a.xd(1),a.Ec(),a.Fc(2,"mat-dialog-content"),a.Fc(3,"div",1),a.Fc(4,"strong"),a.Dc(5),a.Jc(6,rL),a.Cc(),a.xd(7,"\xa0"),a.Ec(),a.Fc(8,"span",2),a.xd(9),a.Ec(),a.Ec(),a.Fc(10,"div",1),a.Fc(11,"strong"),a.Dc(12),a.Jc(13,oL),a.Cc(),a.xd(14,"\xa0"),a.Ec(),a.Fc(15,"span",2),a.xd(16),a.Ec(),a.Ec(),a.Fc(17,"div",1),a.Fc(18,"strong"),a.Dc(19),a.Jc(20,sL),a.Cc(),a.xd(21,"\xa0"),a.Ec(),a.Fc(22,"span",2),a.xd(23),a.Ec(),a.Ec(),a.vd(24,fL,7,1,"div",3),a.Ec(),a.Fc(25,"mat-dialog-actions"),a.Fc(26,"button",4),a.Dc(27),a.Jc(28,cL),a.Cc(),a.Ec(),a.Fc(29,"button",5),a.Sc("click",(function(){return e.downloadArchive()})),a.Dc(30),a.Jc(31,lL),a.Cc(),a.Ec(),a.Ac(32,"span",6),a.Fc(33,"button",7),a.Sc("click",(function(){return e.unsubscribe()})),a.Dc(34),a.Jc(35,uL),a.Cc(),a.Ec(),a.Ec()),2&t&&(a.lc(1),a.yd(e.sub.name),a.lc(8),a.yd(e.sub.isPlaylist?"Playlist":"Channel"),a.lc(7),a.yd(e.sub.url),a.lc(7),a.yd(e.sub.id),a.lc(1),a.cd("ngIf",e.sub.archive))},directives:[Rh,Mh,ye.t,zh,Za,Fh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),mL);function CL(t,e){if(1&t&&(a.Fc(0,"strong"),a.xd(1),a.Ec()),2&t){var i=a.Wc().$implicit;a.lc(1),a.yd(i.name)}}function xL(t,e){1&t&&(a.Fc(0,"div"),a.Dc(1),a.Jc(2,bL),a.Cc(),a.Ec())}function SL(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-list-item"),a.Fc(1,"a",9),a.Sc("click",(function(){a.nd(i);var t=e.$implicit;return a.Wc().goToSubscription(t)})),a.vd(2,CL,2,1,"strong",10),a.vd(3,xL,3,0,"div",10),a.Ec(),a.Fc(4,"button",11),a.Sc("click",(function(){a.nd(i);var t=e.$implicit;return a.Wc().showSubInfo(t)})),a.Fc(5,"mat-icon"),a.xd(6,"info"),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=e.$implicit;a.lc(2),a.cd("ngIf",n.name),a.lc(1),a.cd("ngIf",!n.name)}}function EL(t,e){1&t&&(a.Fc(0,"div",12),a.Fc(1,"p"),a.Jc(2,_L),a.Ec(),a.Ec())}function OL(t,e){1&t&&(a.Fc(0,"div",14),a.Dc(1),a.Jc(2,yL),a.Cc(),a.Ec())}function AL(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-list-item"),a.Fc(1,"a",9),a.Sc("click",(function(){a.nd(i);var t=e.$implicit;return a.Wc().goToSubscription(t)})),a.Fc(2,"strong"),a.xd(3),a.Ec(),a.vd(4,OL,3,0,"div",13),a.Ec(),a.Fc(5,"button",11),a.Sc("click",(function(){a.nd(i);var t=e.$implicit;return a.Wc().showSubInfo(t)})),a.Fc(6,"mat-icon"),a.xd(7,"info"),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=e.$implicit;a.lc(3),a.yd(n.name),a.lc(1),a.cd("ngIf",!n.name)}}function TL(t,e){1&t&&(a.Fc(0,"div",12),a.Fc(1,"p"),a.Jc(2,kL),a.Ec(),a.Ec())}function DL(t,e){1&t&&(a.Fc(0,"div",15),a.Ac(1,"mat-progress-bar",16),a.Ec())}pL=$localize(_templateObject192()),gL=$localize(_templateObject193()),vL=$localize(_templateObject194()),bL=$localize(_templateObject195()),_L=$localize(_templateObject196()),yL=$localize(_templateObject197()),kL=$localize(_templateObject198());var IL,PL,FL,RL,ML,zL=((IL=function(){function t(e,i,n,a){_classCallCheck(this,t),this.dialog=e,this.postsService=i,this.router=n,this.snackBar=a,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.postsService.initialized&&this.getSubscriptions(),this.postsService.service_initialized.subscribe((function(e){e&&t.getSubscriptions()}))}},{key:"getSubscriptions",value:function(){var t=this;this.subscriptions_loading=!0,this.subscriptions=null,this.postsService.getAllSubscriptions().subscribe((function(e){if(t.channel_subscriptions=[],t.playlist_subscriptions=[],t.subscriptions_loading=!1,t.subscriptions=e.subscriptions,t.subscriptions)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||IL)(a.zc(Ih),a.zc(JO),a.zc(bO),a.zc(D_))},IL.\u0275cmp=a.tc({type:IL,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(a.Ac(0,"br"),a.Fc(1,"h2",0),a.Jc(2,pL),a.Ec(),a.Ac(3,"mat-divider",1),a.Ac(4,"br"),a.Fc(5,"h4",2),a.Jc(6,gL),a.Ec(),a.Fc(7,"mat-nav-list",3),a.vd(8,SL,7,2,"mat-list-item",4),a.Ec(),a.vd(9,EL,3,0,"div",5),a.Fc(10,"h4",6),a.Jc(11,vL),a.Ec(),a.Fc(12,"mat-nav-list",3),a.vd(13,AL,8,2,"mat-list-item",4),a.Ec(),a.vd(14,TL,3,0,"div",5),a.vd(15,DL,2,0,"div",7),a.Fc(16,"button",8),a.Sc("click",(function(){return e.openSubscribeDialog()})),a.Fc(17,"mat-icon"),a.xd(18,"add"),a.Ec(),a.Ec()),2&t&&(a.lc(8),a.cd("ngForOf",e.channel_subscriptions),a.lc(1),a.cd("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),a.lc(4),a.cd("ngForOf",e.playlist_subscriptions),a.lc(1),a.cd("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),a.lc(1),a.cd("ngIf",e.subscriptions_loading))},directives:[Rp,tg,ye.s,ye.t,Za,_p,og,ha,_v],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),IL);function LL(t,e){if(1&t){var i=a.Gc();a.Fc(0,"button",4),a.Sc("click",(function(){return a.nd(i),a.Wc().deleteForever()})),a.Fc(1,"mat-icon"),a.xd(2,"delete_forever"),a.Ec(),a.Dc(3),a.Jc(4,ML),a.Cc(),a.Ec()}}function jL(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",10),a.Fc(1,"img",11),a.Sc("error",(function(t){return a.nd(i),a.Wc().onImgError(t)})),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(1),a.cd("src",n.file.thumbnailURL,a.pd)}}PL=$localize(_templateObject199()),FL=$localize(_templateObject200()),RL=$localize(_templateObject201()),ML=$localize(_templateObject202());var NL,BL,VL=((NL=function(){function t(e,i,n){_classCallCheck(this,t),this.snackBar=e,this.postsService=i,this.dialog=n,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new a.t,this.reloadSubscription=new a.t,this.scrollSubject=new Me.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(t,[{key:"ngOnInit",value:function(){var t,e,i,n,a;this.file.duration&&(this.formattedDuration=(t=this.file.duration,i=~~(t%3600/60),a="",(e=~~(t/3600))>0&&(a+=e+":"+(i<10?"0":"")),a+=i+":"+((n=~~t%60)<10?"0":""),a+=""+n))}},{key:"onImgError",value:function(t){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(t){this.image_loaded=!0}},{key:"goToFile",value:function(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}},{key:"openSubscriptionInfoDialog",value:function(){this.dialog.open(vR,{data:{file:this.file},minWidth:"50vw"})}},{key:"deleteAndRedownload",value:function(){var t=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1).subscribe((function(e){t.reloadSubscription.emit(!0),t.openSnackBar("Successfully deleted file: '".concat(t.file.id,"'"),"Dismiss.")}))}},{key:"deleteForever",value:function(){var t=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0).subscribe((function(e){t.reloadSubscription.emit(!0),t.openSnackBar("Successfully deleted file: '".concat(t.file.id,"'"),"Dismiss.")}))}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||NL)(a.zc(D_),a.zc(JO),a.zc(Ih))},NL.\u0275cmp=a.tc({type:NL,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(a.Fc(0,"div",0),a.Fc(1,"div",1),a.Dc(2),a.Jc(3,PL),a.Cc(),a.xd(4),a.Ec(),a.Fc(5,"button",2),a.Fc(6,"mat-icon"),a.xd(7,"more_vert"),a.Ec(),a.Ec(),a.Fc(8,"mat-menu",null,3),a.Fc(10,"button",4),a.Sc("click",(function(){return e.openSubscriptionInfoDialog()})),a.Fc(11,"mat-icon"),a.xd(12,"info"),a.Ec(),a.Dc(13),a.Jc(14,FL),a.Cc(),a.Ec(),a.Fc(15,"button",4),a.Sc("click",(function(){return e.deleteAndRedownload()})),a.Fc(16,"mat-icon"),a.xd(17,"restore"),a.Ec(),a.Dc(18),a.Jc(19,RL),a.Cc(),a.Ec(),a.vd(20,LL,5,0,"button",5),a.Ec(),a.Fc(21,"mat-card",6),a.Sc("click",(function(){return e.goToFile()})),a.Fc(22,"div",7),a.vd(23,jL,2,1,"div",8),a.Fc(24,"span",9),a.Fc(25,"strong"),a.xd(26),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ec()),2&t){var i=a.jd(9);a.lc(4),a.zd("\xa0",e.formattedDuration," "),a.lc(1),a.cd("matMenuTriggerFor",i),a.lc(15),a.cd("ngIf",e.sub.archive&&e.use_youtubedl_archive),a.lc(3),a.cd("ngIf",!e.image_errored&&e.file.thumbnailURL),a.lc(3),a.yd(e.file.title)}},directives:[Za,Ng,_p,Mg,Tg,ye.t,jc,Aa],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),NL);function UL(t,e){if(1&t&&(a.Fc(0,"h2",9),a.xd(1),a.Ec()),2&t){var i=a.Wc();a.lc(1),a.zd(" ",i.subscription.name," ")}}BL=$localize(_templateObject203());var WL=["placeholder",$localize(_templateObject204())];function HL(t,e){if(1&t&&(a.Fc(0,"mat-option",25),a.xd(1),a.Ec()),2&t){var i=e.$implicit;a.cd("value",i.value),a.lc(1),a.zd(" ",i.value.label," ")}}function GL(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div",26),a.Fc(1,"app-subscription-file-card",27),a.Sc("reloadSubscription",(function(){return a.nd(i),a.Wc(2).getSubscription()}))("goToFileEmit",(function(t){return a.nd(i),a.Wc(2).goToFile(t)})),a.Ec(),a.Ec()}if(2&t){var n=e.$implicit,r=a.Wc(2);a.lc(1),a.cd("file",n)("sub",r.subscription)("use_youtubedl_archive",r.use_youtubedl_archive)}}function qL(t,e){if(1&t){var i=a.Gc();a.Fc(0,"div"),a.Fc(1,"div",10),a.Fc(2,"div",11),a.Fc(3,"div",12),a.Fc(4,"mat-select",13),a.Sc("ngModelChange",(function(t){return a.nd(i),a.Wc().filterProperty=t}))("selectionChange",(function(t){return a.nd(i),a.Wc().filterOptionChanged(t.value)})),a.vd(5,HL,2,2,"mat-option",14),a.Xc(6,"keyvalue"),a.Ec(),a.Ec(),a.Fc(7,"div",12),a.Fc(8,"button",15),a.Sc("click",(function(){return a.nd(i),a.Wc().toggleModeChange()})),a.Fc(9,"mat-icon"),a.xd(10),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Ac(11,"div",16),a.Fc(12,"div",16),a.Fc(13,"h4",17),a.Jc(14,BL),a.Ec(),a.Ec(),a.Fc(15,"div",18),a.Fc(16,"mat-form-field",19),a.Fc(17,"input",20),a.Lc(18,WL),a.Sc("focus",(function(){return a.nd(i),a.Wc().searchIsFocused=!0}))("blur",(function(){return a.nd(i),a.Wc().searchIsFocused=!1}))("ngModelChange",(function(t){return a.nd(i),a.Wc().search_text=t}))("ngModelChange",(function(t){return a.nd(i),a.Wc().onSearchInputChanged(t)})),a.Ec(),a.Fc(19,"mat-icon",21),a.xd(20,"search"),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.Fc(21,"div",22),a.Fc(22,"div",23),a.vd(23,GL,2,3,"div",24),a.Ec(),a.Ec(),a.Ec()}if(2&t){var n=a.Wc();a.lc(4),a.cd("ngModel",n.filterProperty),a.lc(1),a.cd("ngForOf",a.Yc(6,6,n.filterProperties)),a.lc(5),a.yd(n.descendingMode?"arrow_downward":"arrow_upward"),a.lc(6),a.cd("ngClass",n.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),a.lc(1),a.cd("ngModel",n.search_text),a.lc(6),a.cd("ngForOf",n.filtered_files)}}function $L(t,e){1&t&&a.Ac(0,"mat-spinner",28),2&t&&a.cd("diameter",50)}var YL,KL=((YL=function(){function t(e,i,n){_classCallCheck(this,t),this.postsService=e,this.route=i,this.router=n,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.postsService.service_initialized.subscribe((function(e){e&&(t.getConfig(),t.getSubscription())})));var e=localStorage.getItem("filter_property");e&&this.filterProperties[e]&&(this.filterProperty=this.filterProperties[e])}},{key:"goBack",value:function(){this.router.navigate(["/subscriptions"])}},{key:"getSubscription",value:function(){var t=this;this.postsService.getSubscription(this.id).subscribe((function(e){t.subscription=e.subscription,t.files=e.files,t.search_mode?t.filterFiles(t.search_text):t.filtered_files=t.files,t.filterByProperty(t.filterProperty.property)}))}},{key:"getConfig",value:function(){this.use_youtubedl_archive=this.postsService.config.Subscriptions.subscriptions_use_youtubedl_archive}},{key:"goToFile",value:function(t){var e=t.name,i=t.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:e,url:i}]:["/player",{fileNames:e,type:"subscription",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist,uuid:this.postsService.user?this.postsService.user.uid:null}])}},{key:"onSearchInputChanged",value:function(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}},{key:"filterFiles",value:function(t){var e=t.toLowerCase();this.filtered_files=this.files.filter((function(t){return t.id.toLowerCase().includes(e)}))}},{key:"filterByProperty",value:function(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?function(e,i){return e[t]>i[t]?-1:1}:function(e,i){return e[t]>i[t]?1:-1})}},{key:"filterOptionChanged",value:function(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}},{key:"toggleModeChange",value:function(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}},{key:"downloadContent",value:function(){for(var t=this,e=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||JL)(a.zc(JO),a.zc(D_),a.zc(bO))},JL.\u0275cmp=a.tc({type:JL,selectors:[["app-login"]],decls:13,vars:5,consts:[[1,"login-card"],[3,"selectedIndex","selectedIndexChange"],["label","Login"],[2,"margin-top","10px"],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange","keyup.enter"],[2,"margin-bottom","10px","margin-top","10px"],["color","primary","mat-raised-button","",3,"disabled","click"],["label","Register",4,"ngIf"],["label","Register"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Confirm Password",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(a.Fc(0,"mat-card",0),a.Fc(1,"mat-tab-group",1),a.Sc("selectedIndexChange",(function(t){return e.selectedTabIndex=t})),a.Fc(2,"mat-tab",2),a.Fc(3,"div",3),a.Fc(4,"mat-form-field"),a.Fc(5,"input",4),a.Sc("ngModelChange",(function(t){return e.loginUsernameInput=t})),a.Ec(),a.Ec(),a.Ec(),a.Fc(6,"div"),a.Fc(7,"mat-form-field"),a.Fc(8,"input",5),a.Sc("ngModelChange",(function(t){return e.loginPasswordInput=t}))("keyup.enter",(function(){return e.login()})),a.Ec(),a.Ec(),a.Ec(),a.Fc(9,"div",6),a.Fc(10,"button",7),a.Sc("click",(function(){return e.login()})),a.xd(11,"Login"),a.Ec(),a.Ec(),a.Ec(),a.vd(12,XL,13,4,"mat-tab",8),a.Ec(),a.Ec()),2&t&&(a.lc(1),a.cd("selectedIndex",e.selectedTabIndex),a.lc(4),a.cd("ngModel",e.loginUsernameInput),a.lc(3),a.cd("ngModel",e.loginPasswordInput),a.lc(2),a.cd("disabled",e.loggingIn),a.lc(2),a.cd("ngIf",e.registrationEnabled))},directives:[jc,My,Sy,Hd,Pp,_r,Ar,ts,Za,ye.t],styles:[".login-card[_ngcontent-%COMP%]{max-width:600px;width:80%;margin:20px auto 0}"]}),JL);function tj(t,e){1&t&&(a.Fc(0,"mat-icon",10),a.xd(1,"done"),a.Ec())}function ej(t,e){1&t&&(a.Fc(0,"mat-icon",11),a.xd(1,"error"),a.Ec())}function ij(t,e){if(1&t&&(a.Fc(0,"mat-expansion-panel",12),a.Fc(1,"mat-expansion-panel-header"),a.xd(2," Error "),a.Ec(),a.xd(3),a.Ec()),2&t){var i=a.Wc();a.lc(3),a.zd(" ",i.download.error," ")}}ZL=$localize(_templateObject205());var nj,aj,rj,oj,sj=((nj=function(){function t(){_classCallCheck(this,t),this.download={uid:null,type:"audio",percent_complete:0,complete:!1,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.cancelDownload=new a.t,this.queueNumber=null,this.url_id=null}return _createClass(t,[{key:"ngOnInit",value:function(){if(this.download&&this.download.url&&this.download.url.includes("youtube")){var t=this.download.is_playlist?6:3,e=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+t;this.url_id=this.download.url.substring(e,this.download.url.length)}}},{key:"cancelTheDownload",value:function(){this.cancelDownload.emit(this.download)}}]),t}()).\u0275fac=function(t){return new(t||nj)},nj.\u0275cmp=a.tc({type:nj,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:17,vars:11,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","text-align","center","width","100%"],[1,"shorten"],[3,"value","mode"],["style","margin-left: 25px; cursor: default","matTooltip","The download is complete","matTooltip-i18n","",4,"ngIf"],["style","margin-left: 25px; cursor: default","matTooltip","An error has occurred","matTooltip-i18n","",4,"ngIf"],["mat-icon-button","","color","warn",2,"margin-bottom","2px",3,"click"],["fontSet","material-icons-outlined"],["class","ignore-margin",4,"ngIf"],["matTooltip","The download is complete","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],["matTooltip","An error has occurred","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],[1,"ignore-margin"]],template:function(t,e){1&t&&(a.Fc(0,"div"),a.Fc(1,"mat-grid-list",0),a.Fc(2,"mat-grid-tile",1),a.Fc(3,"div",2),a.Fc(4,"span",3),a.Dc(5),a.Jc(6,ZL),a.Cc(),a.xd(7),a.Ec(),a.Ec(),a.Ec(),a.Fc(8,"mat-grid-tile",1),a.Ac(9,"mat-progress-bar",4),a.vd(10,tj,2,0,"mat-icon",5),a.vd(11,ej,2,0,"mat-icon",6),a.Ec(),a.Fc(12,"mat-grid-tile",1),a.Fc(13,"button",7),a.Sc("click",(function(){return e.cancelTheDownload()})),a.Fc(14,"mat-icon",8),a.xd(15,"cancel"),a.Ec(),a.Ec(),a.Ec(),a.Ec(),a.vd(16,ij,4,1,"mat-expansion-panel",9),a.Ec()),2&t&&(a.lc(1),a.cd("rowHeight",50)("cols",24),a.lc(1),a.cd("colspan",7),a.lc(5),a.zd("\xa0",e.url_id?e.url_id:e.download.uid,""),a.lc(1),a.cd("colspan",13),a.lc(1),a.cd("value",e.download.complete||e.download.error?100:e.download.percent_complete)("mode",e.download.complete||0!==e.download.percent_complete||e.download.error?"determinate":"indeterminate"),a.lc(1),a.cd("ngIf",e.download.complete),a.lc(1),a.cd("ngIf",e.download.error),a.lc(1),a.cd("colspan",4),a.lc(4),a.cd("ngIf",e.download.error))},directives:[Xf,Rf,_v,ye.t,Za,_p,hv,wf,xf],styles:[".shorten[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.ignore-margin[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;margin-bottom:-15px}"]}),nj);function cj(t,e){1&t&&(a.Fc(0,"span"),a.xd(1,"\xa0"),a.Dc(2),a.Jc(3,rj),a.Cc(),a.Ec())}function lj(t,e){if(1&t){var i=a.Gc();a.Fc(0,"mat-card",10),a.Fc(1,"app-download-item",11),a.Sc("cancelDownload",(function(){a.nd(i);var t=a.Wc().$implicit,e=a.Wc(2).$implicit;return a.Wc().clearDownload(e.key,t.value.uid)})),a.Ec(),a.Ec()}if(2&t){var n=a.Wc(),r=n.$implicit,o=n.index;a.lc(1),a.cd("download",r.value)("queueNumber",o+1)}}function uj(t,e){if(1&t&&(a.Fc(0,"div",8),a.vd(1,lj,2,2,"mat-card",9),a.Ec()),2&t){var i=e.$implicit;a.lc(1),a.cd("ngIf",i.value)}}function dj(t,e){if(1&t&&(a.Dc(0),a.Fc(1,"mat-card",3),a.Fc(2,"h4",4),a.Dc(3),a.Jc(4,aj),a.Cc(),a.xd(5),a.vd(6,cj,4,0,"span",2),a.Ec(),a.Fc(7,"div",5),a.Fc(8,"div",6),a.vd(9,uj,2,1,"div",7),a.Xc(10,"keyvalue"),a.Ec(),a.Ec(),a.Ec(),a.Cc()),2&t){var i=a.Wc().$implicit,n=a.Wc();a.lc(5),a.zd("\xa0",i.key," "),a.lc(1),a.cd("ngIf",i.key===n.postsService.session_id),a.lc(3),a.cd("ngForOf",a.Yc(10,3,i.value))}}function hj(t,e){if(1&t&&(a.Fc(0,"div"),a.vd(1,dj,11,5,"ng-container",2),a.Ec()),2&t){var i=e.$implicit,n=a.Wc();a.lc(1),a.cd("ngIf",n.keys(i.value).length>0)}}function fj(t,e){1&t&&(a.Fc(0,"div"),a.Fc(1,"h4",4),a.Jc(2,oj),a.Ec(),a.Ec())}aj=$localize(_templateObject206()),rj=$localize(_templateObject207()),oj=$localize(_templateObject208());var mj,pj,gj,vj=((pj=function(){function t(e){_classCallCheck(this,t),this.postsService=e,this.downloads_check_interval=500,this.downloads={},this.keys=Object.keys,this.valid_sessions_length=0}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.getCurrentDownloads(),setInterval((function(){t.getCurrentDownloads()}),this.downloads_check_interval)}},{key:"getCurrentDownloads",value:function(){var t=this;this.postsService.getCurrentDownloads().subscribe((function(e){e.downloads&&t.assignNewValues(e.downloads)}))}},{key:"clearDownload",value:function(t,e){var i=this;this.postsService.clearDownloads(!1,t,e).subscribe((function(t){t.success&&(i.downloads=t.downloads)}))}},{key:"clearDownloads",value:function(t){var e=this;this.postsService.clearDownloads(!1,t).subscribe((function(t){t.success&&(e.downloads=t.downloads)}))}},{key:"clearAllDownloads",value:function(){var t=this;this.postsService.clearDownloads(!0).subscribe((function(e){e.success&&(t.downloads=e.downloads)}))}},{key:"assignNewValues",value:function(t){for(var e=Object.keys(t),i=0;i0){t=!0;break}return t}}]),t}()).\u0275fac=function(t){return new(t||pj)(a.zc(JO))},pj.\u0275cmp=a.tc({type:pj,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(t,e){1&t&&(a.Fc(0,"div",0),a.vd(1,hj,2,1,"div",1),a.Xc(2,"keyvalue"),a.vd(3,fj,3,0,"div",2),a.Ec()),2&t&&(a.lc(1),a.cd("ngForOf",a.Yc(2,2,e.downloads)),a.lc(2),a.cd("ngIf",e.downloads&&!e.downloadsValid()))},directives:[ye.s,ye.t,jc,sj],pipes:[ye.l],styles:[""],data:{animation:[o("list",[f(":enter",[p("@items",(mj=m(),{type:12,timings:100,animation:mj}),{optional:!0})])]),o("items",[f(":enter",[u({transform:"scale(0.5)",opacity:0}),s("500ms cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(1)",opacity:1}))]),f(":leave",[u({transform:"scale(1)",opacity:1,height:"*"}),s("1s cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),pj),bj=[{path:"home",component:oR,canActivate:[JO]},{path:"player",component:qz,canActivate:[JO]},{path:"subscriptions",component:zL,canActivate:[JO]},{path:"subscription",component:KL,canActivate:[JO]},{path:"login",component:QL},{path:"downloads",component:vj},{path:"",redirectTo:"/home",pathMatch:"full"}],_j=((gj=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:gj}),gj.\u0275inj=a.wc({factory:function(t){return new(t||gj)},imports:[[BO.forRoot(bj,{useHash:!0})],BO]}),gj),yj=i("2Yyj"),kj=i.n(yj);function wj(t){return"video"===t.element.id?nR||rR:iR||aR}Object(ye.K)(kj.a,"es");var Cj,xj=((Cj=function t(){_classCallCheck(this,t)}).\u0275mod=a.xc({type:Cj,bootstrap:[vP]}),Cj.\u0275inj=a.wc({factory:function(t){return new(t||Cj)},providers:[JO],imports:[[ye.c,n.a,Re,ua,Yv,cc,Fp,gb,lc,$m,z_,Vc,A_,tr,il,Kb,yp,fg,Jf,Tf,wv,Lv,yc,Ta,Vg,Uh,d_,Vg,fh,$y,mv,ck,Sk,CC,Sx,Dx,Dz,Sz,Pz,sz,XR.forRoot({isVisible:wj}),BO,_j]]}),Cj);a.qd(oR,[ye.q,ye.r,ye.s,ye.t,ye.A,ye.w,ye.x,ye.y,ye.z,ye.u,ye.v,Gv,$v,xn,es,oo,fo,_r,Gr,Xr,gr,ro,ho,Yr,Ar,Tr,Ks,ec,nc,rc,Xs,Qs,ts,Jo,qo,Cp,xp,Cd,Hd,Md,zd,Ld,jd,Nd,Pp,Ep,pb,mb,Na,Ra,as,os,qs,cs,us,M_,R_,jc,Nc,Bc,Oc,Ac,Tc,Dc,Ic,Fc,Rc,Mc,Pc,zc,Lc,O_,Za,Qa,Jc,Qc,Ub,Wb,Vb,Gb,$b,Hb,_p,ig,tg,og,ng,ha,ag,rg,Da,hg,dg,Rp,Xf,Rf,Mf,Lf,jf,zf,Of,wf,Cf,xf,Ef,Sf,_f,_v,Mv,zv,vc,_c,Aa,Mg,Tg,Ng,Eg,xh,Fh,Rh,Mh,zh,c_,o_,sh,hh,ch,My,ky,Sy,Wy,qy,yy,hv,fv,sk,vk,xk,Xw,tC,lC,aC,Zw,fC,iC,dC,oC,cC,sC,pC,_C,vC,kC,xx,wx,mx,lx,dx,ux,Tx,Oz,Az,Tz,lz,hz,fz,mz,pz,gz,vz,bz,_z,yz,wz,Cz,xz,Iz,oz,KR,TO,_O,yO,EO,bS,vP,aM,oR,qz,fM,NP,sj,zL,hL,KL,VL,wL,AI,mA,UI,vR,TA,KA,NA,bM,QL,vj,YI,oP,WT,tT,mT,CT],[ye.b,ye.G,ye.p,ye.k,ye.E,ye.g,ye.C,ye.F,ye.d,ye.f,ye.i,ye.j,ye.l,kz,AA])},xDdU:function(t,e,i){var n,a,r=i("4fRq"),o=i("I2ZF"),s=0,c=0;t.exports=function(t,e,i){var l=e&&i||0,u=e||[],d=(t=t||{}).node||n,h=void 0!==t.clockseq?t.clockseq:a;if(null==d||null==h){var f=r();null==d&&(d=n=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==h&&(h=a=16383&(f[6]<<8|f[7]))}var m=void 0!==t.msecs?t.msecs:(new Date).getTime(),p=void 0!==t.nsecs?t.nsecs:c+1,g=m-s+(p-c)/1e4;if(g<0&&void 0===t.clockseq&&(h=h+1&16383),(g<0||m>s)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,c=p,a=h;var v=(1e4*(268435455&(m+=122192928e5))+p)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var b=m/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=h>>>8|128,u[l++]=255&h;for(var _=0;_<6;++_)u[l+_]=d[_];return e||o(u)}},xk4V:function(t,e,i){var n=i("4fRq"),a=i("I2ZF");t.exports=function(t,e,i){var r=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var s=0;s<16;++s)e[r+s]=o[s];return e||a(o)}},zuWl:function(t,e,i){"use strict";!function(e){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},a={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function r(t){var e,r,o,s,c,l,u,d,h,f,m,p,g,v,b,_=1 - + diff --git a/backend/public/main-es2015.38c23f6efbbfa0797d6d.js b/backend/public/main-es2015.38c23f6efbbfa0797d6d.js new file mode 100644 index 0000000..83e9f91 --- /dev/null +++ b/backend/public/main-es2015.38c23f6efbbfa0797d6d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{0:function(e,t,n){e.exports=n("zUnb")},"2QA8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2fFW":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));let r=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("ZUHj"),o=n("l7GE"),s=n("51Dv"),i=n("lJxs"),u=n("Cfvw");function c(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(c((n,r)=>Object(u.a)(e(n,r)).pipe(Object(i.a)((e,o)=>t(n,e,r,o))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}class l extends o.a{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");class o extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("n6bG"),o=n("gRHU"),s=n("quSY"),i=n("2QA8"),u=n("2fFW"),c=n("NJ4a");class a extends s.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.a;break;case 1:if(!e){this.destination=o.a;break}if("object"==typeof e){e instanceof a?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,e,t,n)}}[i.a](){return this}static create(e,t,n){const r=new a(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class l extends a{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let u=this;Object(r.a)(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==o.a&&(u=Object.create(t),Object(r.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=u.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},Cfvw:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("HDdC"),o=n("SeVD"),s=n("quSY"),i=n("kJWO"),u=n("jZKg"),c=n("Lhse"),a=n("c2HN"),l=n("I55L");function d(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[i.a]}(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>{const o=e[i.a]();r.add(o.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(a.a)(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(l.a)(e))return Object(u.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new s.a;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(t.schedule(()=>{o=e[c.a](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=o.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(o.a)(e))}},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},HDdC:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("7o/Q"),o=n("2QA8"),s=n("gRHU"),i=n("kJWO"),u=n("mCNh"),c=n("2fFW");let a=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,u=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new r.a(e,t,n):new r.a(s.a)}(e,t,n);if(u.add(i?i.call(u,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),c.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}_trySubscribe(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:o}=e;if(t||o)return!1;e=n&&n instanceof r.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=l(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(o){n(o),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[i.a](){return this}pipe(...e){return 0===e.length?this:Object(u.b)(e)(this)}toPromise(e){return new(e=l(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function l(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return o}));const o=r()},"N/DB":function(e,t){const n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,s="undefined"!=typeof global&&global,i=function(e,...t){if(i.translate){const n=i.translate(e,t);e=n[0],t=n[1]}let n=u(e[0],e.raw[0]);for(let r=1;r{throw e},0)}n.d(t,"a",(function(){return r}))},SeVD:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("ngJS"),o=n("NJ4a"),s=n("Lhse"),i=n("kJWO"),u=n("I55L"),c=n("c2HN"),a=n("XoHu");const l=e=>{if(e&&"function"==typeof e[i.a])return l=e,e=>{const t=l[i.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(u.a)(e))return Object(r.a)(e);if(Object(c.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(a.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var t,n,l}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},VRyK:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("HDdC"),o=n("z+Ro"),s=n("bHdf"),i=n("yCtX");function u(...e){let t=Number.POSITIVE_INFINITY,n=null,u=e[e.length-1];return Object(o.a)(u)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof u&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(s.a)(t)(Object(i.a)(e,n))}},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var r=n("HDdC"),o=n("7o/Q"),s=n("quSY"),i=n("9ppp"),u=n("Ylt2"),c=n("2QA8");class a extends o.a{constructor(e){super(e),this.destination=e}}let l=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new a(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new i.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let o=0;onew d(e,t),e})();class d extends l{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("quSY");class o extends r.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("51Dv"),o=n("SeVD"),s=n("HDdC");function i(e,t,n,i,u=new r.a(e,n,i)){if(!u.closed)return t instanceof s.a?t.subscribe(u):Object(o.a)(t)(u)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("5+tZ"),o=n("SpAZ");function s(e=Number.POSITIVE_INFINITY){return Object(r.a)(o.a,e)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},fXoL:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ys})),n.d(t,"b",(function(){return rf})),n.d(t,"c",(function(){return Jd})),n.d(t,"d",(function(){return Kd})),n.d(t,"e",(function(){return Yd})),n.d(t,"f",(function(){return vh})),n.d(t,"g",(function(){return Zf})),n.d(t,"h",(function(){return bf})),n.d(t,"i",(function(){return ye})),n.d(t,"j",(function(){return xs})),n.d(t,"k",(function(){return wf})),n.d(t,"l",(function(){return _f})),n.d(t,"m",(function(){return Bu})),n.d(t,"n",(function(){return zu})),n.d(t,"o",(function(){return ju})),n.d(t,"p",(function(){return cf})),n.d(t,"q",(function(){return Qu})),n.d(t,"r",(function(){return Xf})),n.d(t,"s",(function(){return An})),n.d(t,"t",(function(){return Ad})),n.d(t,"u",(function(){return q})),n.d(t,"v",(function(){return d})),n.d(t,"w",(function(){return Q})),n.d(t,"x",(function(){return Ks})),n.d(t,"y",(function(){return dc})),n.d(t,"z",(function(){return fc})),n.d(t,"A",(function(){return uf})),n.d(t,"B",(function(){return df})),n.d(t,"C",(function(){return ce})),n.d(t,"D",(function(){return qf})),n.d(t,"E",(function(){return ue})),n.d(t,"F",(function(){return Lf})),n.d(t,"G",(function(){return Ef})),n.d(t,"H",(function(){return f})),n.d(t,"I",(function(){return of})),n.d(t,"J",(function(){return nf})),n.d(t,"K",(function(){return tf})),n.d(t,"L",(function(){return kd})),n.d(t,"M",(function(){return Ku})),n.d(t,"N",(function(){return Gu})),n.d(t,"O",(function(){return Wu})),n.d(t,"P",(function(){return Ju})),n.d(t,"Q",(function(){return pr})),n.d(t,"R",(function(){return p})),n.d(t,"S",(function(){return Kf})),n.d(t,"T",(function(){return af})),n.d(t,"U",(function(){return lf})),n.d(t,"V",(function(){return mc})),n.d(t,"W",(function(){return Nf})),n.d(t,"X",(function(){return Xu})),n.d(t,"Y",(function(){return vc})),n.d(t,"Z",(function(){return ve})),n.d(t,"ab",(function(){return ii})),n.d(t,"bb",(function(){return Hf})),n.d(t,"cb",(function(){return Un})),n.d(t,"db",(function(){return O})),n.d(t,"eb",(function(){return re})),n.d(t,"fb",(function(){return zn})),n.d(t,"gb",(function(){return mh})),n.d(t,"hb",(function(){return Rf})),n.d(t,"ib",(function(){return Uu})),n.d(t,"jb",(function(){return sf})),n.d(t,"kb",(function(){return da})),n.d(t,"lb",(function(){return fa})),n.d(t,"mb",(function(){return Ps})),n.d(t,"nb",(function(){return Cl})),n.d(t,"ob",(function(){return Ts})),n.d(t,"pb",(function(){return fr})),n.d(t,"qb",(function(){return yr})),n.d(t,"rb",(function(){return Gn})),n.d(t,"sb",(function(){return Vn})),n.d(t,"tb",(function(){return wh})),n.d(t,"ub",(function(){return Pn})),n.d(t,"vb",(function(){return Ln})),n.d(t,"wb",(function(){return jn})),n.d(t,"xb",(function(){return Mn})),n.d(t,"yb",(function(){return Bn})),n.d(t,"zb",(function(){return xa})),n.d(t,"Ab",(function(){return Up})),n.d(t,"Bb",(function(){return Rc})),n.d(t,"Cb",(function(){return Qa})),n.d(t,"Db",(function(){return bh})),n.d(t,"Eb",(function(){return vl})),n.d(t,"Fb",(function(){return ph})),n.d(t,"Gb",(function(){return wl})),n.d(t,"Hb",(function(){return bl})),n.d(t,"Ib",(function(){return Rn})),n.d(t,"Jb",(function(){return j})),n.d(t,"Kb",(function(){return aa})),n.d(t,"Lb",(function(){return ca})),n.d(t,"Mb",(function(){return ui})),n.d(t,"Nb",(function(){return Ii})),n.d(t,"Ob",(function(){return ki})),n.d(t,"Pb",(function(){return oi})),n.d(t,"Qb",(function(){return va})),n.d(t,"Rb",(function(){return ya})),n.d(t,"Sb",(function(){return Sh})),n.d(t,"Tb",(function(){return Pa})),n.d(t,"Ub",(function(){return Th})),n.d(t,"Vb",(function(){return qa})),n.d(t,"Wb",(function(){return Vh})),n.d(t,"Xb",(function(){return Nh})),n.d(t,"Yb",(function(){return Ga})),n.d(t,"Zb",(function(){return xh})),n.d(t,"ac",(function(){return yl})),n.d(t,"bc",(function(){return ld})),n.d(t,"cc",(function(){return ze})),n.d(t,"dc",(function(){return k})),n.d(t,"ec",(function(){return Ph})),n.d(t,"fc",(function(){return Vc})),n.d(t,"gc",(function(){return Tn})),n.d(t,"hc",(function(){return Bh})),n.d(t,"ic",(function(){return _u})),n.d(t,"jc",(function(){return Fu})),n.d(t,"kc",(function(){return Mu})),n.d(t,"lc",(function(){return zr})),n.d(t,"mc",(function(){return fi})),n.d(t,"nc",(function(){return Ji})),n.d(t,"oc",(function(){return hu})),n.d(t,"pc",(function(){return Yi})),n.d(t,"qc",(function(){return Oi})),n.d(t,"rc",(function(){return Hd})),n.d(t,"sc",(function(){return _r})),n.d(t,"tc",(function(){return Ce})),n.d(t,"uc",(function(){return Se})),n.d(t,"vc",(function(){return v})),n.d(t,"wc",(function(){return w})),n.d(t,"xc",(function(){return Fe})),n.d(t,"yc",(function(){return Oe})),n.d(t,"zc",(function(){return mi})),n.d(t,"Ac",(function(){return Di})),n.d(t,"Bc",(function(){return Ai})),n.d(t,"Cc",(function(){return xi})),n.d(t,"Dc",(function(){return Ei})),n.d(t,"Ec",(function(){return Ci})),n.d(t,"Fc",(function(){return _i})),n.d(t,"Gc",(function(){return Fi})),n.d(t,"Hc",(function(){return Cn})),n.d(t,"Ic",(function(){return pu})),n.d(t,"Jc",(function(){return Kl})),n.d(t,"Kc",(function(){return td})),n.d(t,"Lc",(function(){return Yl})),n.d(t,"Mc",(function(){return ed})),n.d(t,"Nc",(function(){return Ql})),n.d(t,"Oc",(function(){return ne})),n.d(t,"Pc",(function(){return yi})),n.d(t,"Qc",(function(){return Wd})),n.d(t,"Rc",(function(){return vi})),n.d(t,"Sc",(function(){return Si})),n.d(t,"Tc",(function(){return Ud})),n.d(t,"Uc",(function(){return Rt})),n.d(t,"Vc",(function(){return Vt})),n.d(t,"Wc",(function(){return Ri})),n.d(t,"Xc",(function(){return _d})),n.d(t,"Yc",(function(){return Cd})),n.d(t,"Zc",(function(){return Dd})),n.d(t,"ad",(function(){return Li})),n.d(t,"bd",(function(){return Mi})),n.d(t,"cd",(function(){return wi})),n.d(t,"dd",(function(){return Hi})),n.d(t,"ed",(function(){return pd})),n.d(t,"fd",(function(){return gd})),n.d(t,"gd",(function(){return md})),n.d(t,"hd",(function(){return yd})),n.d(t,"id",(function(){return Md})),n.d(t,"jd",(function(){return gi})),n.d(t,"kd",(function(){return rn})),n.d(t,"ld",(function(){return nn})),n.d(t,"md",(function(){return tn})),n.d(t,"nd",(function(){return lt})),n.d(t,"od",(function(){return vr})),n.d(t,"pd",(function(){return br})),n.d(t,"qd",(function(){return De})),n.d(t,"rd",(function(){return ke})),n.d(t,"sd",(function(){return $d})),n.d(t,"td",(function(){return jd})),n.d(t,"ud",(function(){return Ki})),n.d(t,"vd",(function(){return pi})),n.d(t,"wd",(function(){return Gd})),n.d(t,"xd",(function(){return lu})),n.d(t,"yd",(function(){return du})),n.d(t,"zd",(function(){return fu})),n.d(t,"Ad",(function(){return gu})),n.d(t,"Bd",(function(){return Bd}));var r=n("XNiG"),o=n("quSY"),s=n("HDdC"),i=n("VRyK"),u=n("w1tV");function c(e){return{toString:e}.toString()}const a="__parameters__";function l(e,t,n){return c(()=>{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function o(...e){if(this instanceof o)return r.apply(this,e),this;const t=new o(...e);return n.annotation=t,n;function n(e,n,r){const o=e.hasOwnProperty(a)?e[a]:Object.defineProperty(e,a,{value:[]})[a];for(;o.length<=r;)o.push(null);return(o[r]=o[r]||[]).push(t),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const d=l("Inject",e=>({token:e})),f=l("Optional"),h=l("Self"),p=l("SkipSelf");var g=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function m(e){for(let t in e)if(e[t]===m)return t;throw Error("Could not find renamed property on target object.")}function y(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function v(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function w(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function b(e){return _(e,e[D])||_(e,e[A])}function _(e,t){return t&&t.token===e?t:null}function C(e){return e&&(e.hasOwnProperty(E)||e.hasOwnProperty(F))?e[E]:null}const D=m({"\u0275prov":m}),E=m({"\u0275inj":m}),x=m({"\u0275provFallback":m}),A=m({ngInjectableDef:m}),F=m({ngInjectorDef:m});function k(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(k).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function I(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const S=m({__forward_ref__:m});function O(e){return e.__forward_ref__=O,e.toString=function(){return k(this())},e}function N(e){return T(e)?e():e}function T(e){return"function"==typeof e&&e.hasOwnProperty(S)&&e.__forward_ref__===O}const V="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,M="undefined"!=typeof global&&global,j=V||M||R||P,B=m({"\u0275cmp":m}),L=m({"\u0275dir":m}),H=m({"\u0275pipe":m}),$=m({"\u0275mod":m}),z=m({"\u0275loc":m}),U=m({"\u0275fac":m}),Z=m({__NG_ELEMENT_ID__:m});class Q{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=v({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const q=new Q("INJECTOR",-1),G={},W=/\n/gm,K=m({provide:String,useValue:m});let Y,J=void 0;function X(e){const t=J;return J=e,t}function ee(e){const t=Y;return Y=e,t}function te(e,t=g.Default){if(void 0===J)throw new Error("inject() must be called from an injection context");return null===J?oe(e,void 0,t):J.get(e,t&g.Optional?null:void 0,t)}function ne(e,t=g.Default){return(Y||te)(N(e),t)}const re=ne;function oe(e,t,n){const r=b(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&g.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${k(e)}]`)}function se(e){const t=[];for(let n=0;nArray.isArray(e)?le(e,t):t(e))}function de(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function he(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function ge(e,t){const n=me(e,t);if(n>=0)return e[1|n]}function me(e,t){return function(e,t,n){let r=0,o=e.length>>1;for(;o!==r;){const n=r+(o-r>>1),s=e[n<<1];if(t===s)return n<<1;s>t?o=n:r=n+1}return~(o<<1)}(e,t)}const ye=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),ve=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),we={},be=[];let _e=0;function Ce(e){return c(()=>{const t=e.type,n=t.prototype,r={},o={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ye.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||be,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ve.Emulated,id:"c",styles:e.styles||be,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,u=e.pipes;return o.id+=_e++,o.inputs=Ie(e.inputs,r),o.outputs=Ie(e.outputs),i&&i.forEach(e=>e(o)),o.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ee):null,o.pipeDefs=u?()=>("function"==typeof u?u():u).map(xe):null,o})}function De(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(Ee),r.pipeDefs=()=>n.map(xe)}function Ee(e){return Ne(e)||function(e){return e[L]||null}(e)}function xe(e){return function(e){return e[H]||null}(e)}const Ae={};function Fe(e){const t={type:e.type,bootstrap:e.bootstrap||be,declarations:e.declarations||be,imports:e.imports||be,exports:e.exports||be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&c(()=>{Ae[e.id]=e.type}),t}function ke(e,t){return c(()=>{const n=Ve(e,!0);n.declarations=t.declarations||be,n.imports=t.imports||be,n.exports=t.exports||be})}function Ie(e,t){if(null==e)return we;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=r,t&&(t[o]=s)}return n}const Se=Ce;function Oe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ne(e){return e[B]||null}function Te(e,t){return e.hasOwnProperty(U)?e[U]:null}function Ve(e,t){const n=e[$]||null;if(!n&&!0===t)throw new Error(`Type ${k(e)} does not have '\u0275mod' property.`);return n}function Re(e){return Array.isArray(e)&&"object"==typeof e[1]}function Pe(e){return Array.isArray(e)&&!0===e[1]}function Me(e){return 0!=(8&e.flags)}function je(e){return 2==(2&e.flags)}function Be(e){return 1==(1&e.flags)}function Le(e){return null!==e.template}function He(e){return 0!=(512&e[2])}let $e=void 0;function ze(e){$e=e}function Ue(){return void 0!==$e?$e:"undefined"!=typeof document?document:void 0}function Ze(e){return!!e.listen}const Qe={createRenderer:(e,t)=>Ue()};function qe(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return qe(t[e+19])}function We(e,t){return qe(t[e.index])}function Ke(e,t){const n=e.index;return-1!==n?qe(t[n]):null}function Ye(e,t){return e.data[t+19]}function Je(e,t){return e[t+19]}function Xe(e,t){const n=t[e];return Re(n)?n:n[0]}function et(e){return e.__ngContext__||null}function tt(e){const t=et(e);return t?Array.isArray(t)?t:t.lView:null}function nt(e){return 4==(4&e[2])}function rt(e){return 128==(128&e[2])}function ot(e,t){return null===e||null==t?null:e[t]}function st(e){e[18]=0}const it={lFrame:Ft(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ut(){return it.bindingsEnabled}function ct(){return it.lFrame.lView}function at(){return it.lFrame.tView}function lt(e){it.lFrame.contextLView=e}function dt(){return it.lFrame.previousOrParentTNode}function ft(e,t){it.lFrame.previousOrParentTNode=e,it.lFrame.isParent=t}function ht(){return it.lFrame.isParent}function pt(){it.lFrame.isParent=!1}function gt(){return it.checkNoChangesMode}function mt(e){it.checkNoChangesMode=e}function yt(){const e=it.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function vt(){return it.lFrame.bindingIndex}function wt(){return it.lFrame.bindingIndex++}function bt(e){const t=it.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _t(e,t){const n=it.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function Ct(){return it.lFrame.currentQueryIndex}function Dt(e){it.lFrame.currentQueryIndex=e}function Et(e,t){const n=At();it.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function xt(e,t){const n=At(),r=e[1];it.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function At(){const e=it.lFrame,t=null===e?null:e.child;return null===t?Ft(e):t}function Ft(e){const t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function kt(){const e=it.lFrame;return it.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const It=kt;function St(){const e=kt();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ot(){return it.lFrame.selectedIndex}function Nt(e){it.lFrame.selectedIndex=e}function Tt(){const e=it.lFrame;return Ye(e.tView,e.selectedIndex)}function Vt(){it.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Rt(){it.lFrame.currentNamespace=null}function Pt(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[i]<0&&(e[18]+=65536),(s>10>16&&(3&e[2])===t&&(e[2]+=1024,s.call(i)):s.call(i)}class $t{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function zt(e,t,n){const r=Ze(e);let o=0;for(;ot){i=s-1;break}}}for(;s>16}function Yt(e,t){let n=Kt(e),r=t;for(;n>0;)r=r[15],n--;return r}function Jt(e){return"string"==typeof e?e:null==e?"":""+e}function Xt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Jt(e)}const en=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(j))();function tn(e){return{name:"window",target:e.ownerDocument.defaultView}}function nn(e){return{name:"document",target:e.ownerDocument}}function rn(e){return{name:"body",target:e.ownerDocument.body}}function on(e){return e instanceof Function?e():e}let sn=!0;function un(e){const t=sn;return sn=e,t}let cn=0;function an(e,t){const n=dn(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,ln(r.data,e),ln(t,null),ln(r.blueprint,null));const o=fn(e,t),s=e.injectorIndex;if(Gt(o)){const e=Wt(o),n=Yt(o,t),r=n[1].data;for(let o=0;o<8;o++)t[s+o]=n[e+o]|r[e+o]}return t[s+8]=o,s}function ln(e,t){e.push(0,0,0,0,0,0,0,0,t)}function dn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function fn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],r=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function hn(e,t,n){!function(e,t,n){let r="string"!=typeof n?n[Z]:n.charCodeAt(0)||0;null==r&&(r=n[Z]=cn++);const o=255&r,s=1<0?255&t:t}(n);if("function"==typeof o){Et(t,e);try{const e=o();if(null!=e||r&g.Optional)return e;throw new Error(`No provider for ${Xt(n)}!`)}finally{It()}}else if("number"==typeof o){if(-1===o)return new _n(e,t);let s=null,i=dn(e,t),u=-1,c=r&g.Host?t[16][6]:null;for((-1===i||r&g.SkipSelf)&&(u=-1===i?fn(e,t):t[i+8],bn(r,!1)?(s=t[1],i=Wt(u),t=Yt(u,t)):i=-1);-1!==i;){u=t[i+8];const e=t[1];if(wn(o,i,e.data)){const e=mn(i,t,n,s,r,c);if(e!==gn)return e}bn(r,t[1].data[i+8]===c)&&wn(o,i,t)?(s=e,i=Wt(u),t=Yt(u,t)):i=-1}}}if(r&g.Optional&&void 0===o&&(o=null),0==(r&(g.Self|g.Host))){const e=t[9],s=ee(void 0);try{return e?e.get(n,o,r&g.Optional):oe(n,o,r&g.Optional)}finally{ee(s)}}if(r&g.Optional)return o;throw new Error(`NodeInjector: NOT_FOUND [${Xt(n)}]`)}const gn={};function mn(e,t,n,r,o,s){const i=t[1],u=i.data[e+8],c=yn(u,i,n,null==r?je(u)&&sn:r!=i&&3===u.type,o&g.Host&&s===u);return null!==c?vn(t,i,c,u):gn}function yn(e,t,n,r,o){const s=e.providerIndexes,i=t.data,u=65535&s,c=e.directiveStart,a=s>>16,l=o?u+a:e.directiveEnd;for(let d=r?u:u+a;d=c&&e.type===n)return d}if(o){const e=i[c];if(e&&Le(e)&&e.type===n)return c}return null}function vn(e,t,n,r){let o=e[n];const s=t.data;if(o instanceof $t){const i=o;if(i.resolving)throw new Error(`Circular dep for ${Xt(s[n])}`);const u=un(i.canSeeViewProviders);let c;i.resolving=!0,i.injectImpl&&(c=ee(i.injectImpl)),Et(e,r);try{o=e[n]=i.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{onChanges:r,onInit:o,doCheck:s}=t;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{i.injectImpl&&ee(c),un(u),i.resolving=!1,It()}}return o}function wn(e,t,n){const r=64&e,o=32&e;let s;return s=128&e?r?o?n[t+7]:n[t+6]:o?n[t+5]:n[t+4]:r?o?n[t+3]:n[t+2]:o?n[t+1]:n[t],!!(s&1<{const t=Object.getPrototypeOf(e.prototype).constructor,n=t[U]||function e(t){const n=t;if(T(t))return()=>{const t=e(N(n));return t?t():null};let r=Te(n);if(null===r){const e=C(n);r=e&&e.factory}return r||null}(t);return null!==n?n:e=>new e})}function Dn(e){return e.ngDebugContext}function En(e){return e.ngOriginalError}function xn(e,...t){e.error(...t)}class An{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||xn}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Dn(e)?Dn(e):this._findContext(En(e)):null}_findOriginalError(e){let t=En(e);for(;t&&En(t);)t=En(t);return t}}class Fn{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class kn extends Fn{getTypeName(){return"HTML"}}class In extends Fn{getTypeName(){return"Style"}}class Sn extends Fn{getTypeName(){return"Script"}}class On extends Fn{getTypeName(){return"URL"}}class Nn extends Fn{getTypeName(){return"ResourceURL"}}function Tn(e){return e instanceof Fn?e.changingThisBreaksApplicationSecurity:e}function Vn(e,t){const n=Rn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===t}function Rn(e){return e instanceof Fn&&e.getTypeName()||null}function Pn(e){return new kn(e)}function Mn(e){return new In(e)}function jn(e){return new Sn(e)}function Bn(e){return new On(e)}function Ln(e){return new Nn(e)}let Hn=!0,$n=!1;function zn(){return $n=!0,Hn}function Un(){if($n)throw new Error("Cannot enable prod mode after platform setup.");Hn=!1}class Zn{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let t=this.inertDocument.body;if(null==t){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),t=this.inertDocument.createElement("body"),e.appendChild(t)}t.innerHTML='',!t.querySelector||t.querySelector("svg")?(t.innerHTML='

',this.getInertBodyElement=t.querySelector&&t.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;const n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0Gn(e.trim())).join(", ")}function Kn(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Yn(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Jn=Kn("area,br,col,hr,img,wbr"),Xn=Kn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),er=Kn("rp,rt"),tr=Yn(er,Xn),nr=Yn(Jn,Yn(Xn,Kn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Yn(er,Kn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),tr),rr=Kn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),or=Kn("srcset"),sr=Yn(rr,or,Kn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Kn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),ir=Kn("script,style,template");class ur{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!nr.hasOwnProperty(t))return this.sanitizedSomething=!0,!ir.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const t=e.nodeName.toLowerCase();nr.hasOwnProperty(t)&&!Jn.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(lr(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ar=/([^\#-~ |!])/g;function lr(e){return e.replace(/&/g,"&").replace(cr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(ar,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}let dr;function fr(e,t){let n=null;try{dr=dr||new Zn(e);let r=t?String(t):"";n=dr.getInertBodyElement(r);let o=5,s=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=s,s=n.innerHTML,n=dr.getInertBodyElement(r)}while(r!==s);const i=new ur,u=i.sanitizeChildren(hr(n)||n);return zn()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n){const e=hr(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function hr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const pr=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),gr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),mr=/^url\(([^)]+)\)$/;function yr(e){if(!(e=String(e).trim()))return"";const t=e.match(mr);return t&&Gn(t[1])===t[1]||e.match(gr)&&function(e){let t=!0,n=!0;for(let r=0;rs?"":o[l+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Or(t,a,0)||2&r&&a!==e){if(Rr(r))return!1;i=!0}}}}else{if(!i&&!Rr(r)&&!Rr(c))return!1;if(i&&Rr(c))continue;i=!1,r=c|1&r}}return Rr(r)||i}function Rr(e){return 0==(1&e)}function Pr(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let n=!1;for(;o-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&r?o+="."+i:4&r&&(o+=" "+i);else""===o||Rr(i)||(t+=Br(s,o),o=""),r=i,s=s||!Rr(r);n++}return""!==o&&(t+=Br(s,o)),t}const Hr={};function $r(e){const t=e[3];return Pe(t)?t[3]:t}function zr(e){Ur(at(),ct(),Ot()+e,gt())}function Ur(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&Mt(t,r,n)}else{const r=e.preOrderHooks;null!==r&&jt(t,r,0,n)}Nt(n)}const Zr={marker:"element"},Qr={marker:"comment"};function qr(e,t){return e<<17|t<<2}function Gr(e){return e>>17&32767}function Wr(e){return 2|e}function Kr(e){return(131068&e)>>2}function Yr(e,t){return-131069&e|t<<2}function Jr(e){return 1|e}function Xr(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r>1==-1){for(let e=9;e19&&Ur(e,t,0,gt()),n(r,o)}finally{Nt(s)}}function uo(e,t,n){if(Me(t)){const r=t.directiveEnd;for(let o=t.directiveStart;oPromise.resolve(null))();function Bo(e){return e[7]||(e[7]=[])}function Lo(e){return e.cleanup||(e.cleanup=[])}function Ho(e,t){return function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(t[e.index])[11]}function $o(e,t){const n=e[9],r=n?n.get(An,null):null;r&&r.handleError(t)}function zo(e,t,n,r,o){for(let s=0;s0&&(e[n-1][4]=r[4]);const s=fe(e,9+t);Wo(r[1],r,!1,null);const i=s[5];null!==i&&i.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Jo(e,t){if(!(256&t[2])){const n=t[11];Ze(n)&&n.destroyNode&&ds(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return es(e[1],e);for(;t;){let n=null;if(Re(t))n=t[13];else{const e=t[9];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Re(t)&&es(t[1],t),t=Xo(t,e);null===t&&(t=e),Re(t)&&es(t[1],t),n=t&&t[4]}t=n}}(t)}}function Xo(e,t){let n;return Re(e)&&(n=e[6])&&2===n.type?Zo(n,e):e[3]===t?null:e[3]}function es(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?e[u]():e[-u].unsubscribe(),r+=2}else n[r].call(e[n[r+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Ze(t[11])&&t[11].destroy();const r=t[17];if(null!==r&&Pe(t[3])){r!==t[3]&&Ko(r,t);const n=t[5];null!==n&&n.detachView(e)}}}function ts(e,t,n){let r=t.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){const e=n[6];return 2===e.type?Qo(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return We(t,n).parentNode;if(2&r.flags){const t=e.data,n=t[t[r.index].directiveStart].encapsulation;if(n!==ve.ShadowDom&&n!==ve.Native)return null}return We(r,n)}function ns(e,t,n,r){Ze(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function rs(e,t,n){Ze(e)?e.appendChild(t,n):t.appendChild(n)}function os(e,t,n,r){null!==r?ns(e,t,n,r):rs(e,t,n)}function ss(e,t){return Ze(e)?e.parentNode(t):t.parentNode}function is(e,t){if(2===e.type){const n=Zo(e,t);return null===n?null:cs(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?We(e,t):null}function us(e,t,n,r){const o=ts(e,r,t);if(null!=o){const e=t[11],s=is(r.parent||t[6],t);if(Array.isArray(n))for(let t=0;t-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Jo(this._lView[1],this._lView)}onDestroy(e){var t,n,r;t=this._lView[1],r=e,Bo(n=this._lView).push(r),t.firstCreatePass&&Lo(t).push(n[7].length-1,null)}markForCheck(){Vo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ro(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){mt(!0);try{Ro(e,t,n)}finally{mt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,ds(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class ys extends ms{constructor(e){super(e),this._view=e}detectChanges(){Po(this._view)}checkNoChanges(){!function(e){mt(!0);try{Po(e)}finally{mt(!1)}}(this._view)}get context(){return null}}let vs,ws,bs;function _s(e,t,n){return vs||(vs=class extends e{}),new vs(We(t,n))}function Cs(e,t,n,r){return ws||(ws=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=to(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(t)),ro(t,n,e);const o=new ms(n);return o._tViewNode=n[6],o}}),0===n.type?new ws(r,n,_s(t,n,r)):null}function Ds(e,t,n,r){let o;bs||(bs=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return _s(t,this._hostTNode,this._hostView)}get injector(){return new _n(this._hostTNode,this._hostView)}get parentInjector(){const e=fn(this._hostTNode,this._hostView),t=Yt(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let r=Kt(e),o=t,s=t[6];for(;r>1;)o=o[15],s=o[6],r--;return s}(e,this._hostView,this._hostTNode);return Gt(e)&&null!=n?new _n(n,t):new _n(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-9}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,o){const s=n||this.parentInjector;if(!o&&null==e.ngModule&&s){const e=s.get(ue,null);e&&(o=e)}const i=e.create(s,r,void 0,o);return this.insert(i.hostView,t),i}insert(e,t){const n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Pe(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new bs(t,t[6],t[3]);r.detach(r.indexOf(e))}}const o=this._adjustIndex(t);return function(e,t,n,r){const o=9+r,s=n.length;r>0&&(n[o-1][4]=t),r{class e{}return e.__NG_ELEMENT_ID__=()=>As(),e})();const As=Es,Fs=Function;function ks(e){return"function"==typeof e}const Is=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Ss=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Os=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Ns=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/;class Ts{constructor(e){this._reflect=e||j.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=he(void 0===e?t.length:e.length);for(let r=0;re&&e.type),n=e.map(e=>e&&Vs(e.decorators));return this._zipTypesAndAnnotations(t,n)}const o=e.hasOwnProperty(a)&&e[a],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return s||o?this._zipTypesAndAnnotations(s,o):he(e.length)}parameters(e){if(!ks(e))return[];const t=Rs(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?Vs(e.decorators):e.hasOwnProperty("__annotations__")?e.__annotations__:null}annotations(e){if(!ks(e))return[];const t=Rs(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=Vs(t[e])}),n}return e.hasOwnProperty("__prop__metadata__")?e.__prop__metadata__:null}propMetadata(e){if(!ks(e))return{};const t=Rs(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return ks(e)&&this._ownPropMetadata(e,Rs(e))||{}}hasLifecycleHook(e,t){return e instanceof Fs&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:`./${k(e)}`}resourceUri(e){return`./${k(e)}`}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function Vs(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function Rs(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Ps=new Q("Set Injector scope."),Ms={},js={},Bs=[];let Ls=void 0;function Hs(){return void 0===Ls&&(Ls=new ie),Ls}function $s(e,t=null,n=null,r){return new zs(e,n,t||Hs(),r)}class zs{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];t&&le(t,n=>this.processProvider(n,e,t)),le([e],e=>this.processInjectorType(e,[],o)),this.records.set(q,Qs(void 0,this));const s=this.records.get(Ps);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:k(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=G,n=g.Default){this.assertNotDestroyed();const r=X(this);try{if(!(n&g.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(o=e)||"object"==typeof o&&o instanceof Q)&&b(e);t=n&&this.injectableDefInScope(n)?Qs(Us(e),Ms):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&g.Self?Hs():this.parent).get(e,t=n&g.Optional&&t===G?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(k(e)),r)throw s;return function(e,t,n,r){const o=e.ngTempTokenPath;throw t.__source&&o.unshift(t.__source),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=k(t);if(Array.isArray(t))o=t.map(k).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):k(r)))}o=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(W,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{X(r)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(k(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=N(e)))return!1;let r=C(e);const o=null==r&&e.ngModule||void 0,s=void 0===o?e:o,i=-1!==n.indexOf(s);if(void 0!==o&&(r=C(o)),null==r)return!1;if(null!=r.imports&&!i){let e;n.push(s);try{le(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||Bs))}}this.injectorDefTypes.add(s),this.records.set(s,Qs(r.factory,Ms));const u=r.providers;if(null!=u&&!i){const t=e;le(u,e=>this.processProvider(e,t,u))}return void 0!==o&&void 0!==e.providers}processProvider(e,t,n){let r=Gs(e=N(e))?e:N(e&&e.provide);const o=function(e,t,n){return qs(e)?Qs(void 0,e.useValue):Qs(Zs(e,t,n),Ms)}(e,t,n);if(Gs(e)||!0!==e.multi){const e=this.records.get(r);e&&void 0!==e.multi&&Sr()}else{let t=this.records.get(r);t?void 0===t.multi&&Sr():(t=Qs(void 0,Ms,!0),t.factory=()=>se(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,o)}hydrate(e,t){var n;return t.value===js?function(e){throw new Error(`Cannot instantiate cyclic dependency! ${e}`)}(k(e)):t.value===Ms&&(t.value=js,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Us(e){const t=b(e),n=null!==t?t.factory:Te(e);if(null!==n)return n;const r=C(e);if(null!==r)return r.factory;if(e instanceof Q)throw new Error(`Token ${k(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=he(t,"?");throw new Error(`Can't resolve all parameters for ${k(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[D]||e[A]||e[x]&&e[x]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Zs(e,t,n){let r=void 0;if(Gs(e)){const t=N(e);return Te(t)||Us(t)}if(qs(e))r=()=>N(e.useValue);else if((o=e)&&o.useFactory)r=()=>e.useFactory(...se(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>ne(N(e.useExisting));else{const o=N(e&&(e.useClass||e.provide));if(o||function(e,t,n){let r="";throw e&&t&&(r=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${k(e)}'`+r)}(t,n,e),!function(e){return!!e.deps}(e))return Te(o)||Us(o);r=()=>new o(...se(e.deps))}var o;return r}function Qs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function qs(e){return null!==e&&"object"==typeof e&&K in e}function Gs(e){return"function"==typeof e}const Ws=function(e,t,n){return function(e,t=null,n=null,r){const o=$s(e,t,n,r);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)};let Ks=(()=>{class e{static create(e,t){return Array.isArray(e)?Ws(e,t,""):Ws(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=G,e.NULL=new ie,e.\u0275prov=v({token:e,providedIn:"any",factory:()=>ne(q)}),e.__NG_ELEMENT_ID__=-1,e})();const Ys=new Q("AnalyzeForEntryComponents");let Js=new Map;const Xs=new Set;function ei(e){return"string"==typeof e?e:e.text()}function ti(e,t){let n=e.styles,r=e.classes,o=0;for(let s=0;su(qe(e[r.index])).target:r.index;if(Ze(n)){let i=null;if(!u&&c&&(i=function(e,t,n,r){const o=e.cleanup;if(null!=o)for(let s=0;sn?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,o,r.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=s,i.__ngLastListenerFn__=s,d=!1;else{s=Vi(r,t,s,!1);const e=n.listen(h.name||p,o,s);l.push(s,e),a&&a.push(o,m,g,g+1)}}else s=Vi(r,t,s,!0),p.addEventListener(o,s,i),l.push(s),a&&a.push(o,m,g,i)}const f=r.outputs;let h;if(d&&null!==f&&(h=f[o])){const e=h.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,it.lFrame.contextLView))[8]}(e)}function Pi(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let o=0;o=0}const Qi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qi(e){return e.substring(Qi.key,Qi.keyEnd)}function Gi(e,t){const n=Qi.textEnd;return n===t?-1:(t=Qi.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Qi.key=t,n),Wi(e,t,n))}function Wi(e,t,n){for(;t=0;n=Gi(t,n))pe(e,qi(t),!0)}function eu(e,t,n,r){const o=ct(),s=at(),i=bt(2);if(s.firstUpdatePass&&ru(s,e,i,r),t!==Hr&&li(o,i,t)){let u;null==n&&(u=function(){const e=it.lFrame;return null===e?null:e.currentSanitizer}())&&(n=u),iu(s,s.data[Ot()+19],o,o[11],e,o[i+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=k(Tn(e)))),e}(t,n),r,i)}}function tu(e,t,n,r){const o=at(),s=bt(2);o.firstUpdatePass&&ru(o,null,s,r);const i=ct();if(n!==Hr&&li(i,s,n)){const u=o.data[Ot()+19];if(au(u,r)&&!nu(o,s)){let e=r?u.classes:u.styles;null!==e&&(n=I(e,n||"")),bi(o,u,i,n,r)}else!function(e,t,n,r,o,s,i,u){o===Hr&&(o=zi);let c=0,a=0,l=0=e.expandoStartIndex}function ru(e,t,n,r){const o=e.data;if(null===o[n+1]){const s=o[Ot()+19],i=nu(e,n);au(s,r)&&null===t&&!i&&(t=!1),t=function(e,t,n,r){const o=function(e){const t=it.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=su(n=ou(null,e,t,n,r),t.attrs,r),s=null);else{const i=t.directiveStylingLast;if(-1===i||e[i]!==o)if(n=ou(o,e,t,n,r),null===s){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Kr(r))return e[Gr(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=ou(null,e,t,n[1],r),n=su(n,t.attrs,r),function(e,t,n,r){e[Gr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else s=function(e,t,n){let r=void 0;const o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(l=!0)}else a=n;if(o)if(0!==c){const t=Gr(e[u+1]);e[r+1]=qr(t,u),0!==t&&(e[t+1]=Yr(e[t+1],r)),e[u+1]=131071&e[u+1]|r<<17}else e[r+1]=qr(u,0),0!==u&&(e[u+1]=Yr(e[u+1],r)),u=r;else e[r+1]=qr(c,0),0===u?u=r:e[c+1]=Yr(e[c+1],r),c=r;l&&(e[r+1]=Wr(e[r+1])),Ui(e,a,r,!0),Ui(e,a,r,!1),function(e,t,n,r,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&me(s,t)>=0&&(n[r+1]=Jr(n[r+1]))}(t,a,e,r,s),i=qr(u,c),s?t.classBindings=i:t.styleBindings=i}(o,s,t,n,i,r)}}function ou(e,t,n,r,o){let s=null;const i=n.directiveEnd;let u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u0;){const t=e[o],s=Array.isArray(t),c=s?t[1]:t,a=null===c;let l=n[o+1];l===Hr&&(l=a?zi:void 0);let d=a?ge(l,r):c===r?l:void 0;if(s&&!cu(d)&&(d=ge(t,r)),cu(d)&&(u=d,i))return u;const f=e[o+1];o=i?Gr(f):Kr(f)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(u=ge(e,r))}return u}function cu(e){return void 0!==e}function au(e,t){return 0!=(e.flags&(t?16:32))}function lu(e,t=""){const n=ct(),r=at(),o=e+19,s=r.firstCreatePass?no(r,n[6],e,3,null,null):r.data[o],i=n[o]=Go(t,n[11]);us(r,n,i,s),ft(s,!1)}function du(e){return fu("",e,""),du}function fu(e,t,n){const r=ct(),o=hi(r,e,t,n);return o!==Hr&&Uo(r,Ot(),o),fu}function hu(e,t,n){tu(pe,Xi,hi(ct(),e,t,n),!0)}function pu(e,t,n){const r=ct();return li(r,wt(),t)&&go(at(),Tt(),r,e,t,r[11],n,!0),pu}function gu(e,t,n){const r=ct();if(li(r,wt(),t)){const o=at(),s=Tt();go(o,s,r,e,t,Ho(s,r),n,!0)}return gu}function mu(e){wu(e);const t=yu(e,!1);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function yu(e,t=!0){const n=function(e){let t=et(e);if(t){if(Array.isArray(t)){const r=t;let o,s=void 0,i=void 0;if((n=e)&&n.constructor&&n.constructor.\u0275cmp){if(o=function(e,t){const n=e[1].components;if(n)for(let r=0;r=0){const e=qe(r[o]),n=xr(r,o,e);Ar(e,n),t=n;break}}}}var n;return t||null}(e);if(!n&&t)throw new Error("Invalid ng target");return n}function vu(e,t){return e.name==t.name?0:e.name=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Qt(o.hostAttrs,n=Qt(n,o.hostAttrs))}}(r)}function Cu(e){return e===we?{}:e===be?[]:e}function Du(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Eu(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,o)=>{t(e,r,o),n(e,r,o)}:t}function xu(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}class Au{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Fu(e){e.type.prototype.ngOnChanges&&(e.setInput=ku,e.onChanges=function(){const e=Iu(this),t=e&&e.current;if(t){const n=e.previous;if(n===we)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function ku(e,t,n,r){const o=Iu(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:we,current:null}),s=o.current||(o.current={}),i=o.previous,u=this.declaredInputs[n],c=i[u];s[u]=new Au(c&&c.currentValue,t,i===we),e[r]=t}function Iu(e){return e.__ngSimpleChanges__||null}function Su(e,t,n,r,o){if(e=N(e),Array.isArray(e))for(let s=0;s>16;if(Gs(e)||!e.multi){const r=new $t(c,o,mi),h=Tu(u,t,o?l:l+f,d);-1===h?(hn(an(a,i),s,u),Ou(s,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=65536),n.push(r),i.push(r)):(n[h]=r,i[h]=r)}else{const h=Tu(u,t,l+f,d),p=Tu(u,t,l,l+f),g=h>=0&&n[h],m=p>=0&&n[p];if(o&&!m||!o&&!g){hn(an(a,i),s,u);const l=function(e,t,n,r,o){const s=new $t(e,n,mi);return s.multi=[],s.index=t,s.componentProviders=0,Nu(s,o,r&&!n),s}(o?Ru:Vu,n.length,o,r,c);!o&&m&&(n[p].providerFactory=l),Ou(s,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=65536),n.push(l),i.push(l)}else Ou(s,e,h>-1?h:p),Nu(n[o?p:h],c,!o&&r);!o&&r&&m&&n[p].componentProviders++}}}function Ou(e,t,n){if(Gs(t)||t.useClass){const r=(t.useClass||t).prototype.ngOnDestroy;r&&(e.destroyHooks||(e.destroyHooks=[])).push(n,r)}}function Nu(e,t,n){e.multi.push(t),n&&e.componentProviders++}function Tu(e,t,n,r){for(let o=n;o{n.providersResolver=(n,r)=>function(e,t,n){const r=at();if(r.firstCreatePass){const o=Le(e);Su(n,r.data,r.blueprint,o,!0),Su(t,r.data,r.blueprint,o,!1)}}(n,r?r(e):e,t)}}Fu.ngInherit=!0;class ju{}class Bu{}function Lu(e){const t=Error(`No component factory found for ${k(e)}. Did you add it to @NgModule.entryComponents?`);return t[Hu]=e,t}const Hu="ngComponent";class $u{resolveComponentFactory(e){throw Lu(e)}}let zu=(()=>{class e{}return e.NULL=new $u,e})();class Uu{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>qu(e),e})();const qu=function(e){return _s(e,dt(),ct())};class Gu{}const Wu=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let Ku=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Yu(),e})();const Yu=function(){const e=ct(),t=Xe(dt().index,e);return function(e){const t=e[11];if(Ze(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Re(t)?t:e)};let Ju=(()=>{class e{}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>null}),e})();class Xu{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const ec=new Xu("9.1.0");class tc{constructor(){}supports(e){return ui(e)}create(e){return new rc(e)}}const nc=(e,t)=>t;class rc{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||nc}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,o=null;for(;t||n;){const s=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==o&&oi(o.trackById,r)?(s&&(o=this._verifyReinsertion(o,e,r,t)),oi(o.item,e)||this._addIdentityChange(o,e)):(o=this._mismatch(o,e,r,t),s=!0),o=o._next,t++}),this.length=t;return this._truncate(o),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(oi(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(oi(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new oc(t,n),o,r),e}_verifyReinsertion(e,t,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ic),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ic),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class oc{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class sc{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&oi(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class ic{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new sc,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function uc(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}const n=new lc(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){oi(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class lc{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let dc=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new f]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>new e([new tc])}),e})(),fc=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new f]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>new e([new cc])}),e})();const hc=[new cc],pc=new dc([new tc]),gc=new fc(hc);let mc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>yc(e,Qu),e})();const yc=function(e,t){return Cs(e,t,dt(),ct())};let vc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>wc(e,Qu),e})();const wc=function(e,t){return Ds(e,t,dt(),ct())};function bc(e,t,n,r){let o=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return _c(n,t),n}(o,e)}function _c(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function Cc(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Dc(e,t,n){const r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function Ec(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function xc(e,t){return e.nodes[t]}function Ac(e,t){return e.nodes[t]}function Fc(e,t){return e.nodes[t]}function kc(e,t){return e.nodes[t]}function Ic(e,t){return e.nodes[t]}const Sc={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Oc=()=>{},Nc=new Map;function Tc(e){let t=Nc.get(e);return t||(t=k(e)+"_"+Nc.size,Nc.set(e,t)),t}function Vc(e,t,n,r){if(ii.isWrapped(r)){r=ii.unwrap(r);const o=e.def.nodes[t].bindingIndex+n,s=ii.unwrap(e.oldValues[o]);e.oldValues[o]=new ii(s)}return r}function Rc(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Pc=0;function Mc(e,t,n,r){return!(!(2&e.state)&&oi(e.oldValues[t.bindingIndex+n],r))}function jc(e,t,n,r){return!!Mc(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Bc(e,t,n,r){const o=e.oldValues[t.bindingIndex+n];if(1&e.state||!si(o,r)){const s=t.bindings[n].name;throw bc(Sc.createDebugContext(e,t.nodeIndex),`${s}: ${o}`,`${s}: ${r}`,0!=(1&e.state))}}function Lc(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Hc(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function $c(e,t,n,r){try{return Lc(33554432&e.def.nodes[t].flags?Ac(e,t).componentView:e),Sc.handleEvent(e,t,n,r)}catch(o){e.root.errorHandler.handleError(o)}}function zc(e){return e.parent?Ac(e.parent,e.parentNodeDef.nodeIndex):null}function Uc(e){return e.parent?e.parentNodeDef.parent:null}function Zc(e,t){switch(201347067&t.flags){case 1:return Ac(e,t.nodeIndex).renderElement;case 2:return xc(e,t.nodeIndex).renderText}}function Qc(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function qc(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Gc(e){return 1<{"number"==typeof e?(t[e]=o,n|=Gc(e)):r[e]=o}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Kc(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Tc(n)}})}function Yc(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===ve.Native?Ac(e,n.renderParent.nodeIndex).renderElement:void 0:t}const Jc=new WeakMap;function Xc(e){let t=Jc.get(e);return t||(t=e(()=>Oc),t.factory=e,Jc.set(e,t)),t}function ea(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(Zc(e,e.def.lastRenderRootNode))),ta(e,t,0,e.def.nodes.length-1,n,r,o)}function ta(e,t,n,r,o,s,i){for(let u=n;u<=r;u++){const n=e.def.nodes[u];11&n.flags&&ra(e,n,t,o,s,i),u+=n.childCount}}function na(e,t,n,r,o,s){let i=e;for(;i&&!Qc(i);)i=i.parent;const u=i.parent,c=Uc(i),a=c.nodeIndex+c.childCount;for(let l=c.nodeIndex+1;l<=a;l++){const e=u.def.nodes[l];e.ngContentIndex===t&&ra(u,e,n,r,o,s),l+=e.childCount}if(!u.parent){const i=e.root.projectableNodes[t];if(i)for(let t=0;t-1}(e,n))}(e,i)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:i.factory,deps:[],index:n,token:t.token},e._providers[n]=ha,e._providers[n]=ba(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{X(r)}}function ba(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(wa(e,n[0]));case 2:return new t(wa(e,n[0]),wa(e,n[1]));case 3:return new t(wa(e,n[0]),wa(e,n[1]),wa(e,n[2]));default:const o=[];for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,fe(n,t),Sc.dirtyParentQueries(r),Da(r),r}function Ca(e,t,n){const r=t?Zc(t,t.def.lastRenderRootNode):e.renderElement,o=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);ea(n,2,o,s,void 0)}function Da(e){ea(e,3,null,null,void 0)}const Ea={};function xa(e,t,n,r,o,s){return new Aa(e,t,n,r,o,s)}class Aa extends Bu{constructor(e,t,n,r,o,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=o,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const o=Xc(this.viewDefFactory),s=o.nodes[0].element.componentProvider.nodeIndex,i=Sc.createRootView(e,t||[],n,o,r,Ea),u=Fc(i,s).instance;return n&&i.renderer.setAttribute(Ac(i,0).renderElement,"ng-version",ec.full),new Fa(i,new Oa(i),u)}}class Fa extends ju{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new Qu(Ac(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Ra(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function ka(e,t,n){return new Ia(e,t,n)}class Ia{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Qu(this._data.renderElement)}get injector(){return new Ra(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=Uc(e),e=e.parent;return e?new Ra(e,t):new Ra(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=_a(this._data,e);Sc.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Oa(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,o){const s=n||this.parentInjector;o||e instanceof Zu||(o=s.get(ue));const i=e.create(s,r,void 0,o);return this.insert(i.hostView,t),i}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let o=t.viewContainer._embeddedViews;null==n&&(n=o.length),r.viewContainerParent=e,de(o,n,r),function(e,t){const n=zc(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),Sc.dirtyParentQueries(r),Ca(t,n>0?o[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,o=r[t];fe(r,t),null==n&&(n=r.length),de(r,n,o),Sc.dirtyParentQueries(o),Da(o),Ca(e,n>0?r[n-1]:null,o)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=_a(this._data,e);t&&Sc.destroyView(t)}detach(e){const t=_a(this._data,e);return t?new Oa(t):null}}function Sa(e){return new Oa(e)}class Oa{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return ea(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Lc(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Sc.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Sc.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Sc.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Da(this._view),Sc.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Na(e,t){return new Ta(e,t)}class Ta extends mc{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Oa(Sc.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Qu(Ac(this._parentView,this._def.nodeIndex).renderElement)}}function Va(e,t){return new Ra(e,t)}class Ra{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Ks.THROW_IF_NOT_FOUND){return Sc.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Tc(e)},t)}}function Pa(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Ac(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return xc(e,n.nodeIndex).renderText;if(20240&n.flags)return Fc(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Ma(e,t,n,r){return new ja(e,t,n,r)}class ja{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=he(t.providers.length);for(let r=0;re())}onDestroy(e){this._destroyListeners.push(e)}}const Ba=Tc(Ku),La=Tc(Qu),Ha=Tc(vc),$a=Tc(mc),za=Tc(xs),Ua=Tc(Ks),Za=Tc(q);function Qa(e,t,n,r,o,s,i,u){const c=[];if(i)for(let l in i){const[e,t]=i[l];c[e]={flags:8,name:l,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const a=[];if(u)for(let l in u)a.push({type:1,propName:l,target:null,eventName:u[l]});return Wa(e,t|=16384,n,r,o,o,s,c,a)}function qa(e,t,n){return Wa(-1,e|=16,null,0,t,t,n)}function Ga(e,t,n,r,o){return Wa(-1,e,t,0,n,r,o)}function Wa(e,t,n,r,o,s,i,u,c){const{matchedQueries:a,references:l,matchedQueryIds:d}=Wc(n);c||(c=[]),u||(u=[]),s=N(s);const f=Kc(i,k(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:d,references:l,ngContentIndex:-1,childCount:r,bindings:u,bindingFlags:ua(u),outputs:c,element:null,provider:{token:o,value:s,deps:f},text:null,query:null,ngContent:null}}function Ka(e,t){return el(e,t)}function Ya(e,t){let n=e;for(;n.parent&&!Qc(n);)n=n.parent;return tl(n.parent,Uc(n),!0,t.provider.value,t.provider.deps)}function Ja(e,t){const n=tl(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r$c(e,t,n,r)}function el(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return tl(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){const s=o.length;switch(s){case 0:return r();case 1:return r(rl(e,t,n,o[0]));case 2:return r(rl(e,t,n,o[0]),rl(e,t,n,o[1]));case 3:return r(rl(e,t,n,o[0]),rl(e,t,n,o[1]),rl(e,t,n,o[2]));default:const i=[];for(let r=0;ren});class fl extends Bu{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Lr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ll(this.componentDef.inputs)}get outputs(){return ll(this.componentDef.outputs)}create(e,t,n,r){const o=(r=r||this.ngModule)?function(e,t){return{get:(n,r,o)=>{const s=e.get(n,nl,o);return s!==nl||r===nl?s:t.get(n,r,o)}}}(e,r.injector):e,s=o.get(Gu,Qe),i=o.get(Ju,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",a=n?function(e,t,n){if(Ze(e))return e.selectRootElement(t,n===ve.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,n,this.componentDef.encapsulation):eo(c,s.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),f={components:[],scheduler:en,clean:jo,playerHandler:null,flags:0},h=fo(0,-1,null,1,0,null,null,null,null,null),p=to(null,h,f,l,null,null,s,u,i,o);let g,m;xt(p,null);try{const e=function(e,t,n,r,o,s){const i=n[1];n[19]=e;const u=no(i,null,0,3,null,null),c=u.mergedAttrs=t.hostAttrs;null!==c&&(ti(u,c),null!==e&&(zt(o,e,c),null!==u.classes&&gs(o,e,u.classes),null!==u.styles&&ps(o,e,u.styles)));const a=r.createRenderer(e,t),l=to(n,lo(t),null,t.onPush?64:16,n[19],u,r,a,void 0);return i.firstCreatePass&&(hn(an(u,n),i,t.type),_o(i,u),Do(u,n.length,1)),To(n,l),n[19]=l}(a,this.componentDef,p,s,u);if(a)if(n)zt(u,a,["ng-version",ec.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,o=2;for(;r0&&gs(u,a,t.join(" "))}m=Ye(p[1],0),t&&(m.projection=t.map(e=>Array.from(e))),g=function(e,t,n,r,o){const s=n[1],i=function(e,t,n){const r=dt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),bo(e,r,1),Eo(e,t,n));const o=vn(t,e,t.length-1,r);Ar(o,t);const s=We(r,t);return s&&Ar(s,t),o}(s,n,t);r.components.push(i),e[8]=i,o&&o.forEach(e=>e(i,t)),t.contentQueries&&t.contentQueries(1,i,n.length-1);const u=dt();if(s.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Nt(u.index-19);const e=n[1];yo(e,t),vo(e,n,t.hostVars),wo(t,i)}return i}(e,this.componentDef,p,f,[bu]),ro(h,p,null)}finally{St()}const y=new hl(this.componentType,g,_s(Qu,m,p),p,m);return n&&!d||(y.hostView._tViewNode.child=m),y}}class hl extends ju{constructor(e,t,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new ys(r),this.hostView._tViewNode=function(e,t,n,r){let o=e.node;return null==o&&(e.node=o=ho(0,null,2,-1,null,null)),r[6]=o}(r[1],0,0,r),this.componentType=e}get injector(){return new _n(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const pl=void 0;var gl=["en",[["a","p"],["AM","PM"],pl],[["AM","PM"],pl,pl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],pl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],pl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",pl,"{1} 'at' {0}",pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ml={};function yl(e,t,n){"string"!=typeof t&&(n=t,t=e[Cl.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ml[t]=e,n&&(ml[t][Cl.ExtraData]=n)}function vl(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=_l(t);if(n)return n;const r=t.split("-")[0];if(n=_l(r),n)return n;if("en"===r)return gl;throw new Error(`Missing locale data for the locale "${e}".`)}function wl(e){return vl(e)[Cl.CurrencyCode]||null}function bl(e){return vl(e)[Cl.PluralCase]}function _l(e){return e in ml||(ml[e]=j.ng&&j.ng.common&&j.ng.common.locales&&j.ng.common.locales[e]),ml[e]}const Cl=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.Directionality]="Directionality",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Dl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,El=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,xl=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,Al=/\ufffd(\d+):?\d*\ufffd/gi,Fl=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,kl=/\[(\ufffd.+?\ufffd?)\]/,Il=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Sl=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Ol=/{([A-Z0-9_]+)}/g,Nl=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Tl=/\/\*/,Vl=/\d+\:(\d+)/;function Rl(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let s;for(o.lastIndex=0;s=o.exec(e);){const o=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=e.substring(t,o);Dl.test(n)?r.push(Pl(n)):r.push(n),t=o+1}}else{if(0==n.length){const n=e.substring(t,o);r.push(n),t=o+1}n.push("{")}}const i=e.substring(t);return r.push(i),r}function Pl(e){const t=[],n=[];let r=1,o=0;const s=Rl(e=e.replace(Dl,(function(e,t,n){return r="select"===n?0:1,o=parseInt(t.substr(1),10),""})));for(let i=0;in.length&&n.push(o)}return{type:r,mainBinding:o,cases:t,values:n}}function Ml(e){let t,n,r="",o=0,s=!1;for(;null!==(t=El.exec(e));)s?t[0]===`\ufffd/*${n}\ufffd`&&(o=t.index,s=!1):(r+=e.substring(o,t.index+t[0].length),n=t[1],s=!0);return r+=e.substr(o),r}function jl(e,t,n,r=null){const o=[null,null],s=e.split(Al);let i=0;for(let u=0;u{const s=r||o,i=e[s]||[];if(i.length||(s.split("|").forEach(e=>{const t=e.match(Vl),n=t?parseInt(t[1],10):0,r=Tl.test(e);i.push([n,r,e])}),e[s]=i),!i.length)throw new Error(`i18n postprocess: unmatched placeholder - ${s}`);const u=t[t.length-1];let c=0;for(let e=0;et.hasOwnProperty(r)?`${n}${t[r]}${i}`:e),n=n.replace(Ol,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(Nl,(e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e}),n):n}function ql(e,t,n,r,o,s){const i=dt();t[n+19]=o;const u=no(e,t[6],n,r,s,null);return i&&i.next===u&&(i.next=null),u}function Gl(e,t,n,r){const o=r[11];let s=null,i=null;const u=[];for(let c=0;c>>17;let l;l=o===e?r[6]:Ye(n,o),i=Zl(n,s,l,i,r);break;case 0:const d=a>=0,f=(d?a:~a)>>>3;u.push(f),i=s,s=Ye(n,f),s&&ft(s,d);break;case 5:i=s=Ye(n,a>>>3),ft(s,!1);break;case 4:const h=t[++c],p=t[++c];Ao(Ye(n,a>>>3),r,h,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${a}"`)}else switch(a){case Qr:const e=t[++c],l=t[++c],d=o.createComment(e);i=s,s=ql(n,r,l,5,d,null),u.push(l),Ar(d,r),s.activeCaseIndex=null,pt();break;case Zr:const f=t[++c],h=t[++c];i=s,s=ql(n,r,h,3,o.createElement(f),f),u.push(h);break;default:throw new Error(`Unable to determine the type of mutate operation for "${a}"`)}}return pt(),u}function Wl(e,t,n,r){const o=Ye(e,n),s=Ge(n,t);s&&as(t[11],s);const i=Je(t,n);if(Pe(i)){const e=i;0!==o.type&&as(t[11],e[7])}r&&(o.flags|=64)}function Kl(e,t,n){(function(e,t,n){const r=at();Ll[++Hl]=e,Bi(!0),r.firstCreatePass&&null===r.data[e+19]&&function(e,t,n,r,o){const s=t.blueprint.length-19;Ul=0;const i=dt(),u=ht()?i:i&&i.parent;let c=u&&u!==e[6]?u.index-19:n,a=0;zl[a]=c;const l=[];if(n>0&&i!==u){let e=i.index-19;ht()||(e=~e),l.push(e<<3|0)}const d=[],f=[],h=function(e,t){if("number"!=typeof t)return Ml(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Ml(e.substring(n,r))}}(r,o),p=(g=h,g.replace(id," ")).split(xl);var g;for(let m=0;m0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(let r=0;r>1),i++}}(at(),e),Bi(!1)}()}function Yl(e,t){!function(e,t,n,r){const o=dt().index-19,s=[];for(let i=0;i>>2;let f,h,p;switch(3&a){case 1:const a=t[++l],g=t[++l];go(s,Ye(s,d),i,a,u,i[11],g,!1);break;case 0:Uo(i,d,u);break;case 2:if(f=t[++l],h=n[f],p=Ye(s,d),null!==p.activeCaseIndex){const e=h.remove[p.activeCaseIndex];for(let t=0;t>>3,!1);break;case 6:const o=Ye(s,e[t+1]>>>3).activeCaseIndex;null!==o&&ae(n[r>>>3].remove[o],e)}}}const m=nd(h,u);p.activeCaseIndex=-1!==m?m:null,m>-1&&(Gl(-1,h.create[m],s,i),c=!0);break;case 3:f=t[++l],h=n[f],p=Ye(s,d),null!==p.activeCaseIndex&&e(h.update[p.activeCaseIndex],n,r,o,s,i,c)}}}}a+=d}}(r,o,s,Jl,t,i),Jl=0,Xl=0}}function nd(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){switch(bl(t)(e)){case 0:return"zero";case 1:return"one";case 2:return"two";case 3:return"few";case 4:return"many";default:return"other"}}(t,ud);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return n}function rd(e,t,n,r){const o=[],s=[],i=[],u=[],c=[];for(let a=0;a null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(ud=e.toLowerCase().replace(/_/g,"-"))}const ad=new Map;function ld(e,t){const n=ad.get(e);dd(e,n&&n.moduleType,t.moduleType),ad.set(e,t)}function dd(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${k(t)} vs ${k(t.name)}`)}class fd extends ue{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new al(this);const n=Ve(e),r=e[z]||null;r&&cd(r),this._bootstrapComponents=on(n.bootstrap),this._r3Injector=$s(e,t,[{provide:ue,useValue:this},{provide:zu,useValue:this.componentFactoryResolver}],k(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ks.THROW_IF_NOT_FOUND,n=g.Default){return e===Ks||e===ue||e===q?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class hd extends ce{constructor(e){super(),this.moduleType=e,null!==Ve(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;dd(e,ad.get(e),t),ad.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new fd(this.moduleType,e)}}function pd(e,t,n){const r=yt()+e,o=ct();return o[r]===Hr?ai(o,r,n?t.call(n):t()):function(e,t){return e[t]}(o,r)}function gd(e,t,n,r){return wd(ct(),yt(),e,t,n,r)}function md(e,t,n,r,o){return bd(ct(),yt(),e,t,n,r,o)}function yd(e,t,n,r,o,s){return function(e,t,n,r,o,s,i,u){const c=t+n;return function(e,t,n,r,o){const s=di(e,t,n,r);return li(e,t+2,o)||s}(e,c,o,s,i)?ai(e,c+3,u?r.call(u,o,s,i):r(o,s,i)):vd(e,c+3)}(ct(),yt(),e,t,n,r,o,s)}function vd(e,t){const n=e[t];return n===Hr?void 0:n}function wd(e,t,n,r,o,s){const i=t+n;return li(e,i,o)?ai(e,i+1,s?r.call(s,o):r(o)):vd(e,i+1)}function bd(e,t,n,r,o,s,i){const u=t+n;return di(e,u,o,s)?ai(e,u+2,i?r.call(i,o,s):r(o,s)):vd(e,u+2)}function _d(e,t){const n=at();let r;const o=e+19;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const s=r.factory||(r.factory=Te(r.type)),i=ee(mi),u=s();return ee(i),function(e,t,n,r){const o=n+19;o>=e.data.length&&(e.data[o]=null,e.blueprint[o]=null),t[o]=r}(n,ct(),e,u),u}function Cd(e,t,n){const r=ct(),o=Je(r,e);return xd(r,Ed(r,e)?wd(r,yt(),t,o.transform,n,o):o.transform(n))}function Dd(e,t,n,r){const o=ct(),s=Je(o,e);return xd(o,Ed(o,e)?bd(o,yt(),t,s.transform,n,r,s):s.transform(n,r))}function Ed(e,t){return e[1].data[t+19].pure}function xd(e,t){return ii.isWrapped(t)&&(t=ii.unwrap(t),e[vt()]=Hr),t}class Ad extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const u=super.subscribe(r,s,i);return e instanceof o.a&&e.add(u),u}}function Fd(){return this._results[ri()]()}class kd{constructor(){this.dirty=!0,this._results=[],this.changes=new Ad,this.length=0;const e=ri(),t=kd.prototype;t[e]||(t[e]=Fd)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r0)o.push(u[t/2]);else{const s=i[t+1],u=n[-r];for(let t=9;t{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(ne(Kd,8))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const Jd=new Q("AppId"),Xd={provide:Jd,useFactory:function(){return`${ef()}${ef()}${ef()}`},deps:[]};function ef(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const tf=new Q("Platform Initializer"),nf=new Q("Platform ID"),rf=new Q("appBootstrapListener"),of=new Q("Application Packages Root URL");let sf=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const uf=new Q("LocaleId"),cf=new Q("DefaultCurrencyCode"),af=new Q("Translations"),lf=new Q("TranslationsFormat"),df=function(){var e={Error:0,Warning:1,Ignore:2};return e[e.Error]="Error",e[e.Warning]="Warning",e[e.Ignore]="Ignore",e}();class ff{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const hf=function(e){return new hd(e)},pf=hf,gf=function(e){return Promise.resolve(hf(e))},mf=function(e){const t=hf(e),n=on(Ve(e).declarations).reduce((e,t)=>{const n=Ne(t);return n&&e.push(new fl(n)),e},[]);return new ff(t,n)},yf=mf,vf=function(e){return Promise.resolve(mf(e))};let wf=(()=>{class e{constructor(){this.compileModuleSync=pf,this.compileModuleAsync=gf,this.compileModuleAndAllComponentsSync=yf,this.compileModuleAndAllComponentsAsync=vf}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const bf=new Q("compilerOptions");class _f{}const Cf=(()=>Promise.resolve(0))();function Df(e){"undefined"==typeof Zone?Cf.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ef{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ad(!1),this.onMicrotaskEmpty=new Ad(!1),this.onStable=new Ad(!1),this.onError=new Ad(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=j.requestAnimationFrame,t=j.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(j,()=>{e.lastRequestAnimationFrameId=-1,kf(e),Ff(e)}),kf(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,o,s,i,u)=>{try{return If(e),n.invokeTask(o,s,i,u)}finally{t&&"eventTask"===s.type&&t(),Sf(e)}},onInvoke:(t,n,r,o,s,i,u)=>{try{return If(e),t.invoke(r,o,s,i,u)}finally{Sf(e)}},onHasTask:(t,n,r,o)=>{t.hasTask(r,o),n===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,kf(e),Ff(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,n,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ef.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ef.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,Af,xf,xf);try{return o.runTask(s,t,n)}finally{o.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function xf(){}const Af={};function Ff(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function kf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function If(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sf(e){e._nesting--,Ff(e)}class Of{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ad,this.onMicrotaskEmpty=new Ad,this.onStable=new Ad,this.onError=new Ad}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}let Nf=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ef.assertNotInAngularZone(),Df(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Df(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(ne(Ef))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})(),Tf=(()=>{class e{constructor(){this._applications=new Map,Mf.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Mf.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();class Vf{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function Rf(e){Mf=e}let Pf,Mf=new Vf,jf=function(e,t,n){const r=e.get(bf,[]).concat(t),o=new hd(n);if(0===Js.size)return Promise.resolve(o);const s=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(r.map(e=>e.providers));if(0===s.length)return Promise.resolve(o);const i=function(){const e=j.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),u=Ks.create({providers:s}).get(i.ResourceLoader);return function(e){const t=[],n=new Map;function r(e){let t=n.get(e);if(!t){const r=(e=>Promise.resolve(u.get(e)))(e);n.set(e,t=r.then(ei))}return t}return Js.forEach((e,n)=>{const o=[];e.templateUrl&&o.push(r(e.templateUrl).then(t=>{e.template=t}));const s=e.styleUrls,i=e.styles||(e.styles=[]),u=e.styles.length;s&&s.forEach((t,n)=>{i.push(""),o.push(r(t).then(r=>{i[u+n]=r,s.splice(s.indexOf(t),1),0==s.length&&(e.styleUrls=void 0)}))});const c=Promise.all(o).then(()=>function(e){Xs.delete(e)}(n));t.push(c)}),Js=new Map,Promise.all(t).then(()=>{})}().then(()=>o)};const Bf=new Q("AllowMultipleToken");class Lf{constructor(e,t){this.name=e,this.token=t}}function Hf(e,t,n=[]){const r=`Platform: ${t}`,o=new Q(r);return(t=[])=>{let s=$f();if(!s||s.injector.get(Bf,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{const e=n.concat(t).concat({provide:o,useValue:!0},{provide:Ps,useValue:"platform"});!function(e){if(Pf&&!Pf.destroyed&&!Pf.injector.get(Bf,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pf=e.get(zf);const t=e.get(tf,null);t&&t.forEach(e=>e())}(Ks.create({providers:e,name:r}))}return function(e){const t=$f();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function $f(){return Pf&&!Pf.destroyed?Pf:null}let zf=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Of:("zone.js"===e?void 0:e)||new Ef({enableLongStackTrace:zn(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:Ef,useValue:n}];return n.run(()=>{const t=Ks.create({providers:r,parent:this.injector,name:e.moduleType.name}),o=e.create(t),s=o.injector.get(An,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(()=>Qf(this._modules,o)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return ki(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=o.injector.get(Yd);return e.runInitializers(),e.donePromise.then(()=>(cd(o.injector.get(uf,"en-US")||"en-US"),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,t=[]){const n=Uf({},t);return jf(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Zf);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${k(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(ne(Ks))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function Uf(e,t){return Array.isArray(t)?t.reduce(Uf,e):Object.assign(Object.assign({},e),t)}let Zf=(()=>{class e{constructor(e,t,n,r,o,c){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=zn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Ef.assertNotInAngularZone(),Df(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ef.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(a,l.pipe(Object(u.a)()))}bootstrap(e,t){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.");let n;n=e instanceof Bu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ue),o=n.create(Ks.NULL,[],t||n.selector,r);o.onDestroy(()=>{this._unloadComponent(o)});const s=o.injector.get(Nf,null);return s&&o.injector.get(Tf).registerApplication(o.location.nativeElement,s),this._loadComponent(o),zn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Qf(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(rf,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Qf(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(ne(Ef),ne(sf),ne(Ks),ne(An),ne(zu),ne(Yd))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function Qf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qf{}class Gf{}const Wf={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Kf=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Wf}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("crnd")(t).then(e=>e[r]).then(e=>Yf(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+o]).then(e=>Yf(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(ne(wf),ne(Gf,8))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function Yf(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Jf extends xs{}class Xf extends Jf{}class eh{constructor(e,t){this.name=e,this.callback=t}}class th{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof nh&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class nh extends th{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof nh&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof nh&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof nh&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof nh)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}class rh{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new oh(e):null}get injector(){return function(e){const t=yu(e,!1);return null===t?Ks.NULL:new _n(t.lView[1].data[t.nodeIndex],t.lView)}(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(mu(e)||function(e){const t=yu(e,!1);if(null===t)return null;let n,r=t.lView;for(;null===r[0]&&(n=$r(r));)r=n;return 512&r[2]?null:r[8]}(e))}get context(){return mu(this.nativeNode)||function(e){wu(e);const t=yu(e,!1);return null===t?null:t.lView[8]}(this.nativeNode)}get listeners(){return function(e){wu(e);const t=yu(e,!1);if(null===t)return[];const n=t.lView,r=n[7],o=n[1].cleanup,s=[];if(o&&r)for(let i=0;i=0?"dom":"output",h="boolean"==typeof d&&d;e==a&&s.push({element:e,name:c,callback:l,useCapture:h,type:f})}}return s.sort(vu),s}(this.nativeNode).filter(e=>"dom"===e.type)}get references(){return function(e){const t=yu(e,!1);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let o=0;o1){let r=i[1];for(let e=1;ee[t]=!0),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n{if(o.name===e){const e=o.callback;e.call(n,t),r.push(e)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const o=e("__ngUnwrap__");return-1===r.indexOf(o)&&o.call(n,t)}})}}function sh(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function ih(e,t,n,r){const o=yu(e.nativeNode,!1);null!==o?uh(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):lh(e.nativeNode,t,n,r)}function uh(e,t,n,r,o,s){const i=Ke(e,t);if(3===e.type||4===e.type){if(ah(i,n,r,o,s),je(e)){const i=Xe(e.index,t);i&&i[1].firstChild&&uh(i[1].firstChild,i,n,r,o,s)}else e.child&&uh(e.child,t,n,r,o,s),i&&lh(i,n,r,o);const u=t[e.index];Pe(u)&&ch(u,n,r,o,s)}else if(0===e.type){const i=t[e.index];ah(i[7],n,r,o,s),ch(i,n,r,o,s)}else if(1===e.type){const i=t[16],u=i[6].projection[e.projection];if(Array.isArray(u))for(let e of u)ah(e,n,r,o,s);else if(u){const e=i[3];uh(e[1].data[u.index],e,n,r,o,s)}}else e.child&&uh(e.child,t,n,r,o,s);if(s!==i){const i=4&e.flags?e.projectionNext:e.next;i&&uh(i,t,n,r,o,s)}}function ch(e,t,n,r,o){for(let s=9;s{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Yd,useClass:Yd,deps:[[new f,Kd]]},{provide:wf,useClass:wf,deps:[]},Xd,{provide:dc,useFactory:function(){return pc},deps:[]},{provide:fc,useFactory:function(){return gc},deps:[]},{provide:uf,useFactory:function(e){return cd(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new d(uf),new f,new p]]},{provide:cf,useValue:"USD"}];let vh=(()=>{class e{constructor(e){}}return e.\u0275mod=Fe({type:e}),e.\u0275inj=w({factory:function(t){return new(t||e)(ne(Zf))},providers:yh}),e})();function wh(e,t,n,r,o,s){e|=1;const{matchedQueries:i,references:u,matchedQueryIds:c}=Wc(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:i,matchedQueryIds:c,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Xc(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Oc},provider:null,text:null,query:null,ngContent:null}}function bh(e,t,n,r,o,s,i=[],u,c,a,l,d){a||(a=Oc);const{matchedQueries:f,references:h,matchedQueryIds:p}=Wc(n);let g=null,m=null;s&&([g,m]=ia(s)),u=u||[];const y=[];for(let b=0;b{const[n,r]=ia(e);return[n,r,t]});return d=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==ve.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${Pc++}`:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(d),l&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:f,matchedQueryIds:p,references:h,ngContentIndex:r,childCount:o,bindings:y,bindingFlags:ua(y),outputs:v,element:{ns:g,name:m,attrs:w,template:null,componentProvider:null,componentView:l||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:a||Oc},provider:null,text:null,query:null,ngContent:null}}function _h(e,t,n){const r=n.element,o=e.root.selectorOrNode,s=e.renderer;let i;if(e.parent||!o){i=r.name?s.createElement(r.name,r.ns):s.createComment("");const o=Yc(e,t,n);o&&s.appendChild(o,i)}else i=s.selectRootElement(o,!!r.componentRendererType&&r.componentRendererType.encapsulation===ve.ShadowDom);if(r.attrs)for(let u=0;u$c(e,t,n,r)}function Eh(e,t,n,r){if(!jc(e,t,n,r))return!1;const o=t.bindings[n],s=Ac(e,t.nodeIndex),i=s.renderElement,u=o.name;switch(15&o.flags){case 1:!function(e,t,n,r,o,s){const i=t.securityContext;let u=i?e.root.sanitizer.sanitize(i,s):s;u=null!=u?u.toString():null;const c=e.renderer;null!=s?c.setAttribute(n,o,u,r):c.removeAttribute(n,o,r)}(e,o,i,o.ns,u,r);break;case 2:!function(e,t,n,r){const o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}(e,i,u,r);break;case 4:!function(e,t,n,r,o){let s=e.root.sanitizer.sanitize(pr.STYLE,o);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const i=e.renderer;null!=s?i.setStyle(n,r,s):i.removeStyle(n,r)}(e,o,i,u,r);break;case 8:!function(e,t,n,r,o){const s=t.securityContext;let i=s?e.root.sanitizer.sanitize(s,o):o;e.renderer.setProperty(n,r,i)}(33554432&t.flags&&32&o.flags?s.componentView:e,o,i,u,r)}return!0}function xh(e,t,n){let r=[];for(let o in n)r.push({propName:o,bindingType:n[o]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Gc(t),bindings:r},ngContent:null}}function Ah(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&qc(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let o=0;o<=r;o++){const r=e.def.nodes[o];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Ic(e,o).setDirty(),!(1&r.flags&&o+r.childCount0)a=e,Lh(e)||(l=e);else for(;a&&p===a.nodeIndex+a.childCount;){const e=a.parent;e&&(e.childFlags|=a.childFlags,e.childMatchedQueries|=a.childMatchedQueries),a=e,l=a&&Lh(a)?a.renderParent:a}}return{factory:null,nodeFlags:i,rootNodeFlags:u,nodeMatchedQueries:c,flags:e,nodes:t,updateDirectives:n||Oc,updateRenderer:r||Oc,handleEvent:(e,n,r,o)=>t[n].element.handleEvent(e,r,o),bindingCount:o,outputCount:s,lastRenderRootNode:h}}function Lh(e){return 0!=(1&e.flags)&&null===e.element.name}function Hh(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function $h(e,t,n,r){const o=Zh(e.root,e.renderer,e,t,n);return Qh(o,e.component,r),qh(o),o}function zh(e,t,n){const r=Zh(e,e.renderer,null,null,t);return Qh(r,n,n),qh(r),r}function Uh(e,t,n,r){const o=t.element.componentRendererType;let s;return s=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Zh(e.root,s,e,t.element.componentProvider,n)}function Zh(e,t,n,r,o){const s=new Array(o.nodes.length),i=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:i,initIndex:-1}}function Qh(e,t,n){e.component=t,e.context=n}function qh(e){let t;Qc(e)&&(t=Ac(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let o=0;o0&&Eh(e,t,0,n)&&(h=!0),f>1&&Eh(e,t,1,r)&&(h=!0),f>2&&Eh(e,t,2,o)&&(h=!0),f>3&&Eh(e,t,3,s)&&(h=!0),f>4&&Eh(e,t,4,i)&&(h=!0),f>5&&Eh(e,t,5,u)&&(h=!0),f>6&&Eh(e,t,6,c)&&(h=!0),f>7&&Eh(e,t,7,a)&&(h=!0),f>8&&Eh(e,t,8,l)&&(h=!0),f>9&&Eh(e,t,9,d)&&(h=!0),h}(e,t,n,r,o,s,i,u,c,a,l,d);case 2:return function(e,t,n,r,o,s,i,u,c,a,l,d){let f=!1;const h=t.bindings,p=h.length;if(p>0&&jc(e,t,0,n)&&(f=!0),p>1&&jc(e,t,1,r)&&(f=!0),p>2&&jc(e,t,2,o)&&(f=!0),p>3&&jc(e,t,3,s)&&(f=!0),p>4&&jc(e,t,4,i)&&(f=!0),p>5&&jc(e,t,5,u)&&(f=!0),p>6&&jc(e,t,6,c)&&(f=!0),p>7&&jc(e,t,7,a)&&(f=!0),p>8&&jc(e,t,8,l)&&(f=!0),p>9&&jc(e,t,9,d)&&(f=!0),f){let f=t.text.prefix;p>0&&(f+=jh(n,h[0])),p>1&&(f+=jh(r,h[1])),p>2&&(f+=jh(o,h[2])),p>3&&(f+=jh(s,h[3])),p>4&&(f+=jh(i,h[4])),p>5&&(f+=jh(u,h[5])),p>6&&(f+=jh(c,h[6])),p>7&&(f+=jh(a,h[7])),p>8&&(f+=jh(l,h[8])),p>9&&(f+=jh(d,h[9]));const g=xc(e,t.nodeIndex).renderText;e.renderer.setValue(g,f)}return f}(e,t,n,r,o,s,i,u,c,a,l,d);case 16384:return function(e,t,n,r,o,s,i,u,c,a,l,d){const f=Fc(e,t.nodeIndex),h=f.instance;let p=!1,g=void 0;const m=t.bindings.length;return m>0&&Mc(e,t,0,n)&&(p=!0,g=sl(e,f,t,0,n,g)),m>1&&Mc(e,t,1,r)&&(p=!0,g=sl(e,f,t,1,r,g)),m>2&&Mc(e,t,2,o)&&(p=!0,g=sl(e,f,t,2,o,g)),m>3&&Mc(e,t,3,s)&&(p=!0,g=sl(e,f,t,3,s,g)),m>4&&Mc(e,t,4,i)&&(p=!0,g=sl(e,f,t,4,i,g)),m>5&&Mc(e,t,5,u)&&(p=!0,g=sl(e,f,t,5,u,g)),m>6&&Mc(e,t,6,c)&&(p=!0,g=sl(e,f,t,6,c,g)),m>7&&Mc(e,t,7,a)&&(p=!0,g=sl(e,f,t,7,a,g)),m>8&&Mc(e,t,8,l)&&(p=!0,g=sl(e,f,t,8,l,g)),m>9&&Mc(e,t,9,d)&&(p=!0,g=sl(e,f,t,9,d,g)),g&&h.ngOnChanges(g),65536&t.flags&&Ec(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),p}(e,t,n,r,o,s,i,u,c,a,l,d);case 32:case 64:case 128:return function(e,t,n,r,o,s,i,u,c,a,l,d){const f=t.bindings;let h=!1;const p=f.length;if(p>0&&jc(e,t,0,n)&&(h=!0),p>1&&jc(e,t,1,r)&&(h=!0),p>2&&jc(e,t,2,o)&&(h=!0),p>3&&jc(e,t,3,s)&&(h=!0),p>4&&jc(e,t,4,i)&&(h=!0),p>5&&jc(e,t,5,u)&&(h=!0),p>6&&jc(e,t,6,c)&&(h=!0),p>7&&jc(e,t,7,a)&&(h=!0),p>8&&jc(e,t,8,l)&&(h=!0),p>9&&jc(e,t,9,d)&&(h=!0),h){const h=kc(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=[],p>0&&g.push(n),p>1&&g.push(r),p>2&&g.push(o),p>3&&g.push(s),p>4&&g.push(i),p>5&&g.push(u),p>6&&g.push(c),p>7&&g.push(a),p>8&&g.push(l),p>9&&g.push(d);break;case 64:g={},p>0&&(g[f[0].name]=n),p>1&&(g[f[1].name]=r),p>2&&(g[f[2].name]=o),p>3&&(g[f[3].name]=s),p>4&&(g[f[4].name]=i),p>5&&(g[f[5].name]=u),p>6&&(g[f[6].name]=c),p>7&&(g[f[7].name]=a),p>8&&(g[f[8].name]=l),p>9&&(g[f[9].name]=d);break;case 128:const e=n;switch(p){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,o);break;case 4:g=e.transform(r,o,s);break;case 5:g=e.transform(r,o,s,i);break;case 6:g=e.transform(r,o,s,i,u);break;case 7:g=e.transform(r,o,s,i,u,c);break;case 8:g=e.transform(r,o,s,i,u,c,a);break;case 9:g=e.transform(r,o,s,i,u,c,a,l);break;case 10:g=e.transform(r,o,s,i,u,c,a,l,d)}}h.value=g}return h}(e,t,n,r,o,s,i,u,c,a,l,d);default:throw"unreachable"}}(e,t,r,o,s,i,u,c,a,l,d,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let o=0;o0&&Bc(e,t,0,n),f>1&&Bc(e,t,1,r),f>2&&Bc(e,t,2,o),f>3&&Bc(e,t,3,s),f>4&&Bc(e,t,4,i),f>5&&Bc(e,t,5,u),f>6&&Bc(e,t,6,c),f>7&&Bc(e,t,7,a),f>8&&Bc(e,t,8,l),f>9&&Bc(e,t,9,d)}(e,t,r,o,s,i,u,c,a,l,d,f):function(e,t,n){for(let r=0;r{const r=pp.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{gp.forEach((r,o)=>{b(o).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);gp.forEach((r,o)=>{if(t.has(b(o).providedIn)){let t={token:o,flags:r.flags|(n?4096:0),deps:Kc(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Tc(o)]=t}})}}(e=e.factory(()=>Oc)),e):e}(r))}const pp=new Map,gp=new Map,mp=new Map;function yp(e){let t;pp.set(e.token,e),"function"==typeof e.token&&(t=b(e.token))&&"function"==typeof t.providedIn&&gp.set(e.token,e)}function vp(e,t){const n=Xc(t.viewDefFactory),r=Xc(n.nodes[0].element.componentView);mp.set(e,r)}function wp(){pp.clear(),gp.clear(),mp.clear()}function bp(e){if(0===pp.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rOc);for(let r=0;r"-"+e[1].toLowerCase())}`)]=Er(u))}const r=t.parent,u=Ac(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(u,t,r):e.renderer.removeAttribute(u,t)}else e.renderer.setValue(u,`bindings=${JSON.stringify(n,null,2)}`)}}var o,s}function Rp(e,t,n,r){Jh(e,t,n,...r)}function Pp(e,t){for(let n=t;n(s++,s===o?e.error.bind(e,...t):Oc)),snew jp(e,t),handleEvent:Op,updateDirectives:Np,updateRenderer:Tp}:{setCurrentNode:()=>{},createRootView:cp,createEmbeddedView:$h,createComponentView:Uh,createNgModuleRef:Ma,overrideProvider:Oc,overrideComponentView:Oc,clearOverrides:Oc,checkAndUpdateView:Wh,checkNoChangesView:Gh,destroyView:ep,createDebugContext:(e,t)=>new jp(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?_p:Cp,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?_p:Cp,e)};Sc.setCurrentNode=e.setCurrentNode,Sc.createRootView=e.createRootView,Sc.createEmbeddedView=e.createEmbeddedView,Sc.createComponentView=e.createComponentView,Sc.createNgModuleRef=e.createNgModuleRef,Sc.overrideProvider=e.overrideProvider,Sc.overrideComponentView=e.overrideComponentView,Sc.clearOverrides=e.clearOverrides,Sc.checkAndUpdateView=e.checkAndUpdateView,Sc.checkNoChangesView=e.checkNoChangesView,Sc.destroyView=e.destroyView,Sc.resolveDep=rl,Sc.createDebugContext=e.createDebugContext,Sc.handleEvent=e.handleEvent,Sc.updateDirectives=e.updateDirectives,Sc.updateRenderer=e.updateRenderer,Sc.dirtyParentQueries=Ah}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const o in e.providersByKey)r[o]=e.providersByKey[o];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:r}}(Xc(this._ngModuleDefFactory));return Sc.createNgModuleRef(this.moduleType,e||Ks.NULL,this._bootstrapComponents,t)}}},gRHU:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("2fFW"),o=n("NJ4a");const s={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete(){}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("HDdC"),o=n("quSY");function s(e,t){return new r.a(n=>{const r=new o.a;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},jhN1:function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return R}));var r=n("ofXK"),o=n("fXoL");class s extends r.L{constructor(){super()}supportsDOMEvents(){return!0}}class i extends s{static makeCurrent(){Object(r.P)(new i)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==t?null:(n=t,u||(u=document.createElement("a")),u.setAttribute("href",n),"/"===u.pathname.charAt(0)?u.pathname:"/"+u.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(r.O)(document.cookie,e)}}let u,c=null;const a=new o.w("TRANSITION_ID"),l=[{provide:o.d,useFactory:function(e,t,n){return()=>{n.get(o.e).donePromise.then(()=>{const n=Object(r.N)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[a,r.e,o.x],multi:!0}];class d{static init(){Object(o.hb)(new d)}addToWindow(e){o.Jb.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.Jb.getAllAngularTestabilities=()=>e.getAllTestabilities(),o.Jb.getAllAngularRootElements=()=>e.getAllRootElements(),o.Jb.frameworkStabilizers||(o.Jb.frameworkStabilizers=[]),o.Jb.frameworkStabilizers.push(e=>{const t=o.Jb.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const o=e.getTestability(t);return null!=o?o:n?Object(r.N)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const f=new o.w("EventManagerPlugins");let h=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.vc({token:e,factory:e.\u0275fac}),e})(),m=(()=>{class e extends g{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(r.N)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(o.Oc(r.e))},e.\u0275prov=o.vc({token:e,factory:e.\u0275fac}),e})();const y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function w(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let _=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case o.Z.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new D(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case o.Z.Native:case o.Z.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=w(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(o.Oc(h),o.Oc(m),o.Oc(o.c))},e.\u0275prov=o.vc({token:e,factory:e.\u0275fac}),e})();class C{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(y[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const o=y[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=y[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&o.O.DashCase?e.style.setProperty(t,n,r&o.O.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&o.O.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,b(n)):this.eventManager.addEventListener(e,t,b(n))}}class D extends C{constructor(e,t,n,r){super(e),this.component=n;const o=w(r+"-"+n.id,n.styles,[]);t.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(v,r+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(v,e)}(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class E extends C{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===o.Z.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(r.id,r.styles,[]);for(let o=0;o{class e extends p{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(o.Oc(r.e))},e.\u0275prov=o.vc({token:e,factory:e.\u0275fac}),e})(),A=(()=>{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.vc({token:e,factory:e.\u0275fac}),e})();const F=["alt","control","meta","shift"],k={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},I={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},S={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let O=(()=>{class e extends p{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,o){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.N)().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(n.pop());let s="";if(F.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=o,0!=n.length||0===o.length)return null;const i={};return i.domEventName=r,i.fullKey=s,i}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&I.hasOwnProperty(t)&&(t=I[t]))}return k[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),F.forEach(r=>{r!=n&&(0,S[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return o=>{e.getEventFullKey(o)===t&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(o.Oc(r.e))},e.\u0275prov=o.vc({token:e,factory:e.\u0275fac}),e})(),N=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o.vc)({factory:function(){return Object(o.Oc)(V)},token:e,providedIn:"root"}),e})();function T(e){return new V(e.get(r.e))}let V=(()=>{class e extends N{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case o.Q.NONE:return t;case o.Q.HTML:return Object(o.sb)(t,"HTML")?Object(o.gc)(t):Object(o.pb)(this._doc,String(t));case o.Q.STYLE:return Object(o.sb)(t,"Style")?Object(o.gc)(t):Object(o.qb)(t);case o.Q.SCRIPT:if(Object(o.sb)(t,"Script"))return Object(o.gc)(t);throw new Error("unsafe value used in a script context");case o.Q.URL:return Object(o.Ib)(t),Object(o.sb)(t,"URL")?Object(o.gc)(t):Object(o.rb)(String(t));case o.Q.RESOURCE_URL:if(Object(o.sb)(t,"ResourceURL"))return Object(o.gc)(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(o.ub)(e)}bypassSecurityTrustStyle(e){return Object(o.xb)(e)}bypassSecurityTrustScript(e){return Object(o.wb)(e)}bypassSecurityTrustUrl(e){return Object(o.yb)(e)}bypassSecurityTrustResourceUrl(e){return Object(o.vb)(e)}}return e.\u0275fac=function(t){return new(t||e)(o.Oc(r.e))},e.\u0275prov=Object(o.vc)({factory:function(){return T(Object(o.Oc)(o.u))},token:e,providedIn:"root"}),e})();const R=[{provide:o.J,useValue:r.M},{provide:o.K,useValue:function(){i.makeCurrent(),d.init()},multi:!0},{provide:r.e,useFactory:function(){return Object(o.cc)(document),document},deps:[]}],P=[[],{provide:o.mb,useValue:"root"},{provide:o.s,useFactory:function(){return new o.s},deps:[]},{provide:f,useClass:x,multi:!0,deps:[r.e,o.G,o.J]},{provide:f,useClass:O,multi:!0,deps:[r.e]},[],{provide:_,useClass:_,deps:[h,m,o.c]},{provide:o.N,useExisting:_},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[r.e]},{provide:o.W,useClass:o.W,deps:[o.G]},{provide:h,useClass:h,deps:[f,o.G]},[]];let M=(()=>{class e{constructor(e){if(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.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:o.c,useValue:t.appId},{provide:a,useExisting:o.c},l]}}}return e.\u0275mod=o.xc({type:e}),e.\u0275inj=o.wc({factory:function(t){return new(t||e)(o.Oc(e,12))},providers:P,imports:[r.c,o.f]}),e})();"undefined"!=typeof window&&window},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");class o extends r.a{notifyNext(e,t,n,r,o){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");function o(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new i(e,this.project,this.thisArg))}}class i extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n("KqfI");function o(...e){return s(e)}function s(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:r.a}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},ngJS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>t=>{for(let n=0,r=e.length;n{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.vc)({factory:l,token:e,providedIn:"platform"}),e})();function l(){return Object(r.Oc)(f)}const d=new r.w("Location Initialized");let f=(()=>{class e extends a{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){h()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){h()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(r.Oc(c))},e.\u0275prov=Object(r.vc)({factory:p,token:e,providedIn:"platform"}),e})();function h(){return!!window.history.pushState}function p(){return new f(Object(r.Oc)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function y(e){return e&&"?"!==e[0]?"?"+e:e}let v=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.vc)({factory:w,token:e,providedIn:"root"}),e})();function w(e){const t=Object(r.Oc)(c).location;return new _(Object(r.Oc)(a),t&&t.origin||"")}const b=new r.w("appBaseHref");let _=(()=>{class e extends v{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const o=this.prepareExternalUrl(n+y(r));this._platformLocation.pushState(e,t,o)}replaceState(e,t,n,r){const o=this.prepareExternalUrl(n+y(r));this._platformLocation.replaceState(e,t,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r.Oc(a),r.Oc(b,8))},e.\u0275prov=r.vc({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e extends v{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let o=this.prepareExternalUrl(n+y(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)}replaceState(e,t,n,r){let o=this.prepareExternalUrl(n+y(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r.Oc(a),r.Oc(b,8))},e.\u0275prov=r.vc({token:e,factory:e.\u0275fac}),e})(),D=(()=>{class e{constructor(e,t){this._subject=new r.t,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(x(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+y(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,x(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+y(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+y(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(r.Oc(v),r.Oc(a))},e.normalizeQueryParams=y,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(r.vc)({factory:E,token:e,providedIn:"root"}),e})();function E(){return new D(Object(r.Oc)(v),Object(r.Oc)(a))}function x(e){return e.replace(/\/index.html$/,"")}const A={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]},F=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),k=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),I=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),S=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),O=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),N=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function T(e,t){return L(Object(r.Eb)(e)[r.nb.DateFormat],t)}function V(e,t){return L(Object(r.Eb)(e)[r.nb.TimeFormat],t)}function R(e,t){return L(Object(r.Eb)(e)[r.nb.DateTimeFormat],t)}function P(e,t){const n=Object(r.Eb)(e),o=n[r.nb.NumberSymbols][t];if(void 0===o){if(t===N.CurrencyDecimal)return n[r.nb.NumberSymbols][N.Decimal];if(t===N.CurrencyGroup)return n[r.nb.NumberSymbols][N.Group]}return o}function M(e,t){return Object(r.Eb)(e)[r.nb.NumberFormats][t]}const j=r.Hb;function B(e){if(!e[r.nb.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[r.nb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function L(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function H(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const $=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,z={},U=/((?:[^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]*)/,Z=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),Q=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),q=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function G(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function W(e,t,n="-",r,o){let s="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,s=n));let i=String(e);for(;i.length0||u>-n)&&(u+=n),e===Q.Hours)0===u&&-12===n&&(u=12);else if(e===Q.FractionalSeconds)return c=t,W(u,3).substr(0,c);var c;const a=P(i,N.MinusSign);return W(u,t,a,r,o)}}function Y(e,t,n=I.Format,o=!1){return function(s,i){return function(e,t,n,o,s,i){switch(n){case q.Months:return function(e,t,n){const o=Object(r.Eb)(e),s=L([o[r.nb.MonthsFormat],o[r.nb.MonthsStandalone]],t);return L(s,n)}(t,s,o)[e.getMonth()];case q.Days:return function(e,t,n){const o=Object(r.Eb)(e),s=L([o[r.nb.DaysFormat],o[r.nb.DaysStandalone]],t);return L(s,n)}(t,s,o)[e.getDay()];case q.DayPeriods:const u=e.getHours(),c=e.getMinutes();if(i){const e=function(e){const t=Object(r.Eb)(e);return B(t),(t[r.nb.ExtraData][2]||[]).map(e=>"string"==typeof e?H(e):[H(e[0]),H(e[1])])}(t),n=function(e,t,n){const o=Object(r.Eb)(e);B(o);const s=L([o[r.nb.ExtraData][0],o[r.nb.ExtraData][1]],t)||[];return L(s,n)||[]}(t,s,o);let i;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:r,minutes:o}=e[0],{hours:s,minutes:a}=e[1];u>=r&&c>=o&&(u0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Z.Short:return(o>=0?"+":"")+W(i,2,s)+W(Math.abs(o%60),2,s);case Z.ShortGMT:return"GMT"+(o>=0?"+":"")+W(i,1,s);case Z.Long:return"GMT"+(o>=0?"+":"")+W(i,2,s)+":"+W(Math.abs(o%60),2,s);case Z.Extended:return 0===r?"Z":(o>=0?"+":"")+W(i,2,s)+":"+W(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function X(e,t=!1){return function(n,r){let o;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();o=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,0,1).getDay();return new Date(e,0,1+(t<=4?4:11)-t)}(n.getFullYear()),t=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-e.getTime();o=1+Math.round(t/6048e5)}var s;return W(o,e,P(r,N.MinusSign))}}const ee={};function te(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ne(e){return e instanceof Date&&!isNaN(e.valueOf())}const re=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function oe(e,t,n,r,o,s,i=!1){let u="",c=!1;if(isFinite(e)){let a=function(e){let t,n,r,o,s,i=Math.abs(e)+"",u=0;for((n=i.indexOf("."))>-1&&(i=i.replace(".","")),(r=i.search(/e/i))>0?(n<0&&(n=r),n+=+i.slice(r+1),i=i.substring(0,r)):n<0&&(n=i.length),r=0;"0"===i.charAt(r);r++);if(r===(s=i.length))t=[0],n=1;else{for(s--;"0"===i.charAt(s);)s--;for(n-=r,t=[],o=0;r<=s;r++,o++)t[o]=Number(i.charAt(r))}return n>22&&(t=t.splice(0,21),u=n-1,n=1),{digits:t,exponent:u,integerLen:n}}(e);i&&(a=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(a));let l=t.minInt,d=t.minFrac,f=t.maxFrac;if(s){const e=s.match(re);if(null===e)throw new Error(`${s} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(l=ie(t)),null!=n&&(d=ie(n)),null!=r?f=ie(r):null!=n&&d>f&&(f=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,o=r.length-e.integerLen;const s=Math.min(Math.max(t,o),n);let i=s+e.integerLen,u=r[i];if(i>0){r.splice(Math.max(e.integerLen,i));for(let e=i;e=5)if(i-1<0){for(let t=0;t>i;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[i-1]++;for(;o=a?r.pop():c=!1),t>=10?1:0}),0);l&&(r.unshift(l),e.integerLen++)}(a,d,f);let h=a.digits,p=a.integerLen;const g=a.exponent;let m=[];for(c=h.every(e=>!e);p0?m=h.splice(p,h.length):(m=h,h=[0]);const y=[];for(h.length>=t.lgSize&&y.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)y.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&y.unshift(h.join("")),u=y.join(P(n,r)),m.length&&(u+=P(n,o)+m.join("")),g&&(u+=P(n,N.Exponential)+"+"+g)}else u=P(n,N.Infinity);return u=e<0&&!c?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf,u}function se(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),o=r[0],s=r[1],i=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],u=i[0],c=i[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(let l=0;l-1)return o;if(o=n.getPluralCategory(e,r),t.indexOf(o)>-1)return o;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}let ae=(()=>{class e extends ue{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(j(t||this.locale)(e)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(r.Oc(r.A))},e.\u0275prov=r.vc({token:e,factory:e.\u0275fac}),e})();function le(e,t,n){return Object(r.ac)(e,t,n)}function de(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,o]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let fe=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Mb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r.dc)(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.y),r.zc(r.z),r.zc(r.q),r.zc(r.M))},e.\u0275dir=r.uc({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})(),he=(()=>{class e{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const e=t.get(r.E);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(e.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.n)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.Y))},e.\u0275dir=r.uc({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r.jc]}),e})();class pe{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ge=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.fb)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new pe(null,this._ngForOf,-1,-1),null===r?void 0:r),o=new me(e,n);t.push(o)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const o=this._viewContainer.get(n);this._viewContainer.move(o,r);const s=new me(e,o);t.push(s)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.Y),r.zc(r.V),r.zc(r.y))},e.\u0275dir=r.uc({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class me{constructor(e,t){this.record=e,this.view=t}}let ye=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new ve,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){we("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){we("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.Y),r.zc(r.V))},e.\u0275dir=r.uc({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class ve{constructor(){this.$implicit=null,this.ngIf=null}}function we(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r.dc)(t)}'.`)}class be{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let _e=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new be(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.Y),r.zc(r.V),r.zc(_e,1))},e.\u0275dir=r.uc({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),De=(()=>{class e{constructor(e,t,n){n._addDefault(new be(e,t))}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.Y),r.zc(r.V),r.zc(_e,1))},e.\u0275dir=r.uc({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Ee=(()=>{class e{constructor(e){this._localization=e,this._caseViews={}}set ngPlural(e){this._switchValue=e,this._updateView()}addCase(e,t){this._caseViews[e]=t}_updateView(){this._clearViews();const e=Object.keys(this._caseViews),t=ce(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}}return e.\u0275fac=function(t){return new(t||e)(r.zc(ue))},e.\u0275dir=r.uc({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),e})(),xe=(()=>{class e{constructor(e,t,n,r){this.value=e;const o=!isNaN(Number(e));r.addCase(o?`=${e}`:e,new be(n,t))}}return e.\u0275fac=function(t){return new(t||e)(r.Pc("ngPluralCase"),r.zc(r.V),r.zc(r.Y),r.zc(Ee,1))},e.\u0275dir=r.uc({type:e,selectors:[["","ngPluralCase",""]]}),e})(),Ae=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.q),r.zc(r.z),r.zc(r.M))},e.\u0275dir=r.uc({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Fe=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.Y))},e.\u0275dir=r.uc({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.jc]}),e})();function ke(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(r.dc)(e)}'`)}class Ie{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Se{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Oe=new Se,Ne=new Ie;let Te=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):Object(r.Pb)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.ab.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Object(r.Ob)(t))return Oe;if(Object(r.Nb)(t))return Ne;throw ke(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(r.Qc())},e.\u0275pipe=r.yc({name:"async",type:e,pure:!1}),e})(),Ve=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw ke(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"lowercase",type:e,pure:!0}),e})();const Re=/(?:[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;let Pe=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw ke(e,t);return t.replace(Re,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"titlecase",type:e,pure:!0}),e})(),Me=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw ke(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"uppercase",type:e,pure:!0}),e})(),je=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",o,s){if(null==t||""===t||t!=t)return null;try{return function(e,t,n,o){let s=function(e){if(ne(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match($))return function(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const i=Number(e[4]||0)-n,u=Number(e[5]||0)-r,c=Number(e[6]||0),a=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,i,u,c,a),t}(n)}const t=new Date(e);if(!ne(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const o=function(e){return Object(r.Eb)(e)[r.nb.LocaleId]}(t);if(z[o]=z[o]||{},z[o][n])return z[o][n];let s="";switch(n){case"shortDate":s=T(t,O.Short);break;case"mediumDate":s=T(t,O.Medium);break;case"longDate":s=T(t,O.Long);break;case"fullDate":s=T(t,O.Full);break;case"shortTime":s=V(t,O.Short);break;case"mediumTime":s=V(t,O.Medium);break;case"longTime":s=V(t,O.Long);break;case"fullTime":s=V(t,O.Full);break;case"short":const n=e(t,"shortTime"),r=e(t,"shortDate");s=G(R(t,O.Short),[n,r]);break;case"medium":const o=e(t,"mediumTime"),i=e(t,"mediumDate");s=G(R(t,O.Medium),[o,i]);break;case"long":const u=e(t,"longTime"),c=e(t,"longDate");s=G(R(t,O.Long),[u,c]);break;case"full":const a=e(t,"fullTime"),l=e(t,"fullDate");s=G(R(t,O.Full),[a,l])}return s&&(z[o][n]=s),s}(n,t)||t;let i,u=[];for(;t;){if(i=U.exec(t),!i){u.push(t);break}{u=u.concat(i.slice(1));const e=u.pop();if(!e)break;t=e}}let c=s.getTimezoneOffset();o&&(c=te(o,c),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(te(t,r)-r))}(s,o));let a="";return u.forEach(e=>{const t=function(e){if(ee[e])return ee[e];let t;switch(e){case"G":case"GG":case"GGG":t=Y(q.Eras,S.Abbreviated);break;case"GGGG":t=Y(q.Eras,S.Wide);break;case"GGGGG":t=Y(q.Eras,S.Narrow);break;case"y":t=K(Q.FullYear,1,0,!1,!0);break;case"yy":t=K(Q.FullYear,2,0,!0,!0);break;case"yyy":t=K(Q.FullYear,3,0,!1,!0);break;case"yyyy":t=K(Q.FullYear,4,0,!1,!0);break;case"M":case"L":t=K(Q.Month,1,1);break;case"MM":case"LL":t=K(Q.Month,2,1);break;case"MMM":t=Y(q.Months,S.Abbreviated);break;case"MMMM":t=Y(q.Months,S.Wide);break;case"MMMMM":t=Y(q.Months,S.Narrow);break;case"LLL":t=Y(q.Months,S.Abbreviated,I.Standalone);break;case"LLLL":t=Y(q.Months,S.Wide,I.Standalone);break;case"LLLLL":t=Y(q.Months,S.Narrow,I.Standalone);break;case"w":t=X(1);break;case"ww":t=X(2);break;case"W":t=X(1,!0);break;case"d":t=K(Q.Date,1);break;case"dd":t=K(Q.Date,2);break;case"E":case"EE":case"EEE":t=Y(q.Days,S.Abbreviated);break;case"EEEE":t=Y(q.Days,S.Wide);break;case"EEEEE":t=Y(q.Days,S.Narrow);break;case"EEEEEE":t=Y(q.Days,S.Short);break;case"a":case"aa":case"aaa":t=Y(q.DayPeriods,S.Abbreviated);break;case"aaaa":t=Y(q.DayPeriods,S.Wide);break;case"aaaaa":t=Y(q.DayPeriods,S.Narrow);break;case"b":case"bb":case"bbb":t=Y(q.DayPeriods,S.Abbreviated,I.Standalone,!0);break;case"bbbb":t=Y(q.DayPeriods,S.Wide,I.Standalone,!0);break;case"bbbbb":t=Y(q.DayPeriods,S.Narrow,I.Standalone,!0);break;case"B":case"BB":case"BBB":t=Y(q.DayPeriods,S.Abbreviated,I.Format,!0);break;case"BBBB":t=Y(q.DayPeriods,S.Wide,I.Format,!0);break;case"BBBBB":t=Y(q.DayPeriods,S.Narrow,I.Format,!0);break;case"h":t=K(Q.Hours,1,-12);break;case"hh":t=K(Q.Hours,2,-12);break;case"H":t=K(Q.Hours,1);break;case"HH":t=K(Q.Hours,2);break;case"m":t=K(Q.Minutes,1);break;case"mm":t=K(Q.Minutes,2);break;case"s":t=K(Q.Seconds,1);break;case"ss":t=K(Q.Seconds,2);break;case"S":t=K(Q.FractionalSeconds,1);break;case"SS":t=K(Q.FractionalSeconds,2);break;case"SSS":t=K(Q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=J(Z.Short);break;case"ZZZZZ":t=J(Z.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=J(Z.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=J(Z.Long);break;default:return null}return ee[e]=t,t}(e);a+=t?t(s,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}(t,n,s||this.locale,o)}catch(i){throw ke(e,i.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.A))},e.\u0275pipe=r.yc({name:"date",type:e,pure:!0}),e})();const Be=/#/g;let Le=(()=>{class e{constructor(e){this._localization=e}transform(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw ke(e,n);return n[ce(t,Object.keys(n),this._localization,r)].replace(Be,t.toString())}}return e.\u0275fac=function(t){return new(t||e)(r.zc(ue))},e.\u0275pipe=r.yc({name:"i18nPlural",type:e,pure:!0}),e})(),He=(()=>{class e{transform(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw ke(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"i18nSelect",type:e,pure:!0}),e})(),$e=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"json",type:e,pure:!1}),e})(),ze=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=Ue){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.z))},e.\u0275pipe=r.yc({name:"keyvalue",type:e,pure:!1}),e})();function Ue(e,t){const n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n{class e{constructor(e){this._locale=e}transform(t,n,r){if(Ge(t))return null;r=r||this._locale;try{return function(e,t,n){return oe(e,se(M(t,F.Decimal),P(t,N.MinusSign)),t,N.Group,N.Decimal,n)}(We(t),r,n)}catch(o){throw ke(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.A))},e.\u0275pipe=r.yc({name:"number",type:e,pure:!0}),e})(),Qe=(()=>{class e{constructor(e){this._locale=e}transform(t,n,r){if(Ge(t))return null;r=r||this._locale;try{return function(e,t,n){return oe(e,se(M(t,F.Percent),P(t,N.MinusSign)),t,N.Group,N.Decimal,n,!0).replace(new RegExp("%","g"),P(t,N.PercentSign))}(We(t),r,n)}catch(o){throw ke(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.A))},e.\u0275pipe=r.yc({name:"percent",type:e,pure:!0}),e})(),qe=(()=>{class e{constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(t,n,o="symbol",s,i){if(Ge(t))return null;i=i||this._locale,"boolean"==typeof o&&(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".'),o=o?"symbol":"code");let u=n||this._defaultCurrencyCode;"code"!==o&&(u="symbol"===o||"symbol-narrow"===o?function(e,t,n="en"){const o=function(e){return Object(r.Eb)(e)[r.nb.Currencies]}(n)[e]||A[e]||[],s=o[1];return"narrow"===t&&"string"==typeof s?s:o[0]||e}(u,"symbol"===o?"wide":"narrow",i):o);try{return function(e,t,n,r,o){const s=se(M(t,F.Currency),P(t,N.MinusSign));return s.minFrac=function(e){let t;const n=A[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),s.maxFrac=s.minFrac,oe(e,s,t,N.CurrencyGroup,N.CurrencyDecimal,o).replace("\xa4",n).replace("\xa4","").trim()}(We(t),i,u,n,s)}catch(c){throw ke(e,c.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.zc(r.A),r.zc(r.p))},e.\u0275pipe=r.yc({name:"currency",type:e,pure:!0}),e})();function Ge(e){return null==e||""===e||e!=e}function We(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}let Ke=(()=>{class e{transform(t,n,r){if(null==t)return t;if(!this.supports(t))throw ke(e,t);return t.slice(n,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"slice",type:e,pure:!1}),e})(),Ye=(()=>{class e{}return e.\u0275mod=r.xc({type:e}),e.\u0275inj=r.wc({factory:function(t){return new(t||e)},providers:[{provide:ue,useClass:ae}]}),e})();const Je="browser";function Xe(e){return e===Je}function et(e){return"server"===e}let tt=(()=>{class e{}return e.\u0275prov=Object(r.vc)({token:e,providedIn:"root",factory:()=>new nt(Object(r.Oc)(c),window,Object(r.Oc)(r.s))}),e})();class nt{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}},quSY:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("DH7j"),o=n("XoHu"),s=n("n6bG");const i=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let u=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:u,_subscriptions:a}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof i?t.errors:t),[])}},w1tV:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("XNiG"),o=n("HDdC"),s=n("7o/Q"),i=n("quSY");function u(){return function(e){return e.lift(new c(e))}}class c{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new a(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o}}class a extends s.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class l extends o.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new i.a,e.add(this.source.subscribe(new f(this.getSubject(),this))),e.closed&&(this._connection=null,e=i.a.EMPTY)),e}refCount(){return u()(this)}}const d=(()=>{const e=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class f extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function h(){return new r.a}function p(){return e=>{return u()((t=h,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,d);return r.source=e,r.subjectFactory=n,r})(e));var t}}},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("HDdC"),o=n("ngJS"),s=n("jZKg");function i(e,t){return t?Object(s.a)(e,t):new r.a(Object(o.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},zUnb:function(e,t,n){"use strict";n.r(t),n("N/DB");var r=n("fXoL"),o=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});function s(e){const t=function(e){let t="";for(let n=0;n=55296&&r<=56319&&e.length>n+1){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}(e);let n=i(t,0),r=i(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function i(e,t){let n,r=2654435769,o=2654435769;const s=e.length;for(n=0;n+12<=s;n+=12){r=a(r,h(e,n,c.Little)),o=a(o,h(e,n+4,c.Little));const s=u(r,o,t=a(t,h(e,n+8,c.Little)));r=s[0],o=s[1],t=s[2]}return r=a(r,h(e,n,c.Little)),o=a(o,h(e,n+4,c.Little)),t=a(t,s),u(r,o,t=a(t,h(e,n+8,c.Little)<<8))[2]}function u(e,t,n){return e=d(e,t),e=d(e,n),e^=n>>>13,t=d(t,n),t=d(t,e),t^=e<<8,n=d(n,e),n=d(n,t),n^=t>>>13,e=d(e,t),e=d(e,n),e^=n>>>12,t=d(t,n),t=d(t,e),t^=e<<16,n=d(n,e),n=d(n,t),n^=t>>>5,e=d(e,t),e=d(e,n),e^=n>>>3,t=d(t,n),t=d(t,e),t^=e<<10,n=d(n,e),n=d(n,t),[e,t,n^=t>>>15]}"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var c=function(e){return e[e.Little=0]="Little",e[e.Big=1]="Big",e}({});function a(e,t){return l(e,t)[1]}function l(e,t){const n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function d(e,t){const n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function h(e,t,n){let r=0;if(n===c.Big)for(let o=0;o<4;o++)r+=f(e,t+o)<<24-8*o;else for(let o=0;o<4;o++)r+=f(e,t+o)<<8*o;return r}function p(e,t){let n="";const r=Math.max(e.length,t.length);for(let o=0,s=0;o=10?(s=1,n+=r-10):(s=0,n+=r)}return n}function g(e,t){let n="",r=t;for(;0!==e;e>>>=1)1&e&&(n=p(n,r)),r=p(r,r);return n}class m{get(e){return""}}class y{constructor({defaultEncapsulation:e=o.Emulated,useJit:t=!0,jitDevMode:n=!1,missingTranslation:r=null,preserveWhitespaces:s,strictInjectionParameters:i}={}){var u;this.defaultEncapsulation=e,this.useJit=!!t,this.jitDevMode=!!n,this.missingTranslation=r,this.preserveWhitespaces=function(e,t=!1){return null===e?t:e}(void 0===(u=s)?null:u),this.strictInjectionParameters=!0===i}}var v=n("ofXK"),w=n("jhN1");const b=[{provide:r.k,useFactory:()=>new r.k}];function _(e){for(let t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function C(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}const D=Object(r.bb)(r.gb,"coreDynamic",[{provide:r.h,useValue:{},multi:!0},{provide:r.l,useClass:class{constructor(e){this._defaultOptions=[{useJit:!0,defaultEncapsulation:r.Z.Emulated,missingTranslation:r.B.Warning},...e]}createCompiler(e=[]){const t={useJit:_((n=this._defaultOptions.concat(e)).map(e=>e.useJit)),defaultEncapsulation:_(n.map(e=>e.defaultEncapsulation)),providers:C(n.map(e=>e.providers)),missingTranslation:_(n.map(e=>e.missingTranslation)),preserveWhitespaces:_(n.map(e=>e.preserveWhitespaces))};var n;return r.x.create([b,{provide:y,useFactory:()=>new y({useJit:t.useJit,jitDevMode:Object(r.fb)(),defaultEncapsulation:t.defaultEncapsulation,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]).get(r.k)}},deps:[r.h]}]);let E=(()=>{class e extends m{get(e){let t,n;const r=new Promise((e,r)=>{t=e,n=r}),o=new XMLHttpRequest;return o.open("GET",e,!0),o.responseType="text",o.onload=function(){const r=o.response||o.responseText;let s=1223===o.status?204:o.status;0===s&&(s=r?200:0),200<=s&&s<=300?t(r):n(`Failed to load ${e}`)},o.onerror=function(){n(`Failed to load ${e}`)},o.send(),r}}return e.\u0275fac=function(t){return x(t||e)},e.\u0275prov=r.vc({token:e,factory:e.\u0275fac}),e})();const x=r.Hc(E),A=[w.e,{provide:r.h,useValue:{providers:[{provide:m,useClass:E,deps:[]}]},multi:!0},{provide:r.J,useValue:v.M}],F=Object(r.bb)(D,"browserDynamic",A);function k(e,t){if(":"!==t.charAt(0))return{text:e};{const n=function(e,t){for(let n=1,r=1;n>>31,r<<1|n>>>31]}(n),e)}return function(e){let t="",n="1";for(let r=e.length-1;r>=0;r--)t=p(t,g(f(e,r),n)),n=g(256,n);return t.split("").reverse().join("")}([2147483647&n[0],n[1]].reduce((e,t)=>e+function(e){let t="";for(let n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t),""))}(u,r.meaning||""),d=r.legacyIds.filter(e=>e!==c);return{messageId:c,legacyIds:d,substitutions:n,messageString:u,meaning:r.meaning||"",description:r.description||"",messageParts:o,placeholderNames:i}}(t,n);let o=e[r.messageId];for(let s=0;s{if(r.substitutions.hasOwnProperty(e))return r.substitutions[e];throw new Error(`There is a placeholder name mismatch with the translation provided for the message ${O(r)}.\n`+`The translation contains a placeholder with name ${e}, which does not exist in the message.`)})]}($localize.TRANSLATIONS,e,t)}catch(n){return console.warn(n.message),[e,t]}}Object(r.cb)();const T=localStorage.getItem("locale");T||localStorage.setItem("locale","en"),T&&"en"!==T?fetch(`./assets/i18n/messages.${T}.json`).then(e=>e.json()).then(e=>{var t;t=e,$localize.translate||($localize.translate=N),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(t).forEach(e=>{$localize.TRANSLATIONS[e]=function(e){const t=e.split(/{\$([^}]*)}/),n=[t[0]],r=[];for(let u=1;u":"===e.charAt(0)?"\\"+e:e);return{messageParts:(s=n,i=o,Object.defineProperty(s,"raw",{value:i}),s),placeholderNames:r};var s,i}(t[e])}),n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}).catch(e=>{n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}):n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}},[[0,0]]]); \ No newline at end of file diff --git a/backend/public/main-es2015.4e97ffec97018737720b.js b/backend/public/main-es2015.4e97ffec97018737720b.js deleted file mode 100644 index 88d5c8c..0000000 --- a/backend/public/main-es2015.4e97ffec97018737720b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{0:function(e,t,n){e.exports=n("zUnb")},"2QA8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2fFW":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));let r=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("ZUHj"),o=n("l7GE"),s=n("51Dv"),i=n("lJxs"),u=n("Cfvw");function c(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(c((n,r)=>Object(u.a)(e(n,r)).pipe(Object(i.a)((e,o)=>t(n,e,r,o))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}class l extends o.a{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");class o extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("n6bG"),o=n("gRHU"),s=n("quSY"),i=n("2QA8"),u=n("2fFW"),c=n("NJ4a");class a extends s.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.a;break;case 1:if(!e){this.destination=o.a;break}if("object"==typeof e){e instanceof a?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,e,t,n)}}[i.a](){return this}static create(e,t,n){const r=new a(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class l extends a{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let u=this;Object(r.a)(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==o.a&&(u=Object.create(t),Object(r.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=u.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},Cfvw:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("HDdC"),o=n("SeVD"),s=n("quSY"),i=n("kJWO"),u=n("jZKg"),c=n("Lhse"),a=n("c2HN"),l=n("I55L");function d(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[i.a]}(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>{const o=e[i.a]();r.add(o.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(a.a)(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(l.a)(e))return Object(u.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new s.a;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(t.schedule(()=>{o=e[c.a](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=o.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(o.a)(e))}},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},HDdC:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("7o/Q"),o=n("2QA8"),s=n("gRHU"),i=n("kJWO"),u=n("mCNh"),c=n("2fFW");let a=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,u=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new r.a(e,t,n):new r.a(s.a)}(e,t,n);if(u.add(i?i.call(u,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),c.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}_trySubscribe(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:o}=e;if(t||o)return!1;e=n&&n instanceof r.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=l(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(o){n(o),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[i.a](){return this}pipe(...e){return 0===e.length?this:Object(u.b)(e)(this)}toPromise(e){return new(e=l(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function l(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return o}));const o=r()},"N/DB":function(e,t){const n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,s="undefined"!=typeof global&&global,i=function(e,...t){if(i.translate){const n=i.translate(e,t);e=n[0],t=n[1]}let n=u(e[0],e.raw[0]);for(let r=1;r{throw e},0)}n.d(t,"a",(function(){return r}))},SeVD:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("ngJS"),o=n("NJ4a"),s=n("Lhse"),i=n("kJWO"),u=n("I55L"),c=n("c2HN"),a=n("XoHu");const l=e=>{if(e&&"function"==typeof e[i.a])return l=e,e=>{const t=l[i.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(u.a)(e))return Object(r.a)(e);if(Object(c.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(a.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var t,n,l}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},VRyK:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("HDdC"),o=n("z+Ro"),s=n("bHdf"),i=n("yCtX");function u(...e){let t=Number.POSITIVE_INFINITY,n=null,u=e[e.length-1];return Object(o.a)(u)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof u&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(s.a)(t)(Object(i.a)(e,n))}},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var r=n("HDdC"),o=n("7o/Q"),s=n("quSY"),i=n("9ppp"),u=n("Ylt2"),c=n("2QA8");class a extends o.a{constructor(e){super(e),this.destination=e}}let l=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new a(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new i.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let o=0;onew d(e,t),e})();class d extends l{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("quSY");class o extends r.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("51Dv"),o=n("SeVD"),s=n("HDdC");function i(e,t,n,i,u=new r.a(e,n,i)){if(!u.closed)return t instanceof s.a?t.subscribe(u):Object(o.a)(t)(u)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("5+tZ"),o=n("SpAZ");function s(e=Number.POSITIVE_INFINITY){return Object(r.a)(o.a,e)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},fXoL:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ys})),n.d(t,"b",(function(){return nf})),n.d(t,"c",(function(){return Yd})),n.d(t,"d",(function(){return Wd})),n.d(t,"e",(function(){return Kd})),n.d(t,"f",(function(){return gh})),n.d(t,"g",(function(){return zf})),n.d(t,"h",(function(){return vf})),n.d(t,"i",(function(){return ye})),n.d(t,"j",(function(){return xs})),n.d(t,"k",(function(){return wf})),n.d(t,"l",(function(){return bf})),n.d(t,"m",(function(){return ju})),n.d(t,"n",(function(){return $u})),n.d(t,"o",(function(){return Pu})),n.d(t,"p",(function(){return uf})),n.d(t,"q",(function(){return Zu})),n.d(t,"r",(function(){return An})),n.d(t,"s",(function(){return xd})),n.d(t,"t",(function(){return Q})),n.d(t,"u",(function(){return d})),n.d(t,"v",(function(){return q})),n.d(t,"w",(function(){return Ks})),n.d(t,"x",(function(){return lc})),n.d(t,"y",(function(){return dc})),n.d(t,"z",(function(){return sf})),n.d(t,"A",(function(){return lf})),n.d(t,"B",(function(){return ce})),n.d(t,"C",(function(){return qf})),n.d(t,"D",(function(){return ue})),n.d(t,"E",(function(){return Bf})),n.d(t,"F",(function(){return Df})),n.d(t,"G",(function(){return f})),n.d(t,"H",(function(){return rf})),n.d(t,"I",(function(){return tf})),n.d(t,"J",(function(){return ef})),n.d(t,"K",(function(){return Fd})),n.d(t,"L",(function(){return Wu})),n.d(t,"M",(function(){return Qu})),n.d(t,"N",(function(){return Gu})),n.d(t,"O",(function(){return Yu})),n.d(t,"P",(function(){return pr})),n.d(t,"Q",(function(){return p})),n.d(t,"R",(function(){return Wf})),n.d(t,"S",(function(){return cf})),n.d(t,"T",(function(){return af})),n.d(t,"U",(function(){return gc})),n.d(t,"V",(function(){return Nf})),n.d(t,"W",(function(){return Ju})),n.d(t,"X",(function(){return yc})),n.d(t,"Y",(function(){return we})),n.d(t,"Z",(function(){return ii})),n.d(t,"ab",(function(){return Lf})),n.d(t,"bb",(function(){return zn})),n.d(t,"cb",(function(){return N})),n.d(t,"db",(function(){return re})),n.d(t,"eb",(function(){return Un})),n.d(t,"fb",(function(){return hh})),n.d(t,"gb",(function(){return Mf})),n.d(t,"hb",(function(){return Uu})),n.d(t,"ib",(function(){return of})),n.d(t,"jb",(function(){return la})),n.d(t,"kb",(function(){return da})),n.d(t,"lb",(function(){return Vs})),n.d(t,"mb",(function(){return _l})),n.d(t,"nb",(function(){return Os})),n.d(t,"ob",(function(){return fr})),n.d(t,"pb",(function(){return yr})),n.d(t,"qb",(function(){return Gn})),n.d(t,"rb",(function(){return Mn})),n.d(t,"sb",(function(){return mh})),n.d(t,"tb",(function(){return Vn})),n.d(t,"ub",(function(){return Ln})),n.d(t,"vb",(function(){return jn})),n.d(t,"wb",(function(){return Pn})),n.d(t,"xb",(function(){return Bn})),n.d(t,"yb",(function(){return Ea})),n.d(t,"zb",(function(){return Hp})),n.d(t,"Ab",(function(){return Mc})),n.d(t,"Bb",(function(){return Za})),n.d(t,"Cb",(function(){return yh})),n.d(t,"Db",(function(){return yl})),n.d(t,"Eb",(function(){return dh})),n.d(t,"Fb",(function(){return wl})),n.d(t,"Gb",(function(){return vl})),n.d(t,"Hb",(function(){return Rn})),n.d(t,"Ib",(function(){return j})),n.d(t,"Jb",(function(){return ca})),n.d(t,"Kb",(function(){return ua})),n.d(t,"Lb",(function(){return ui})),n.d(t,"Mb",(function(){return Ii})),n.d(t,"Nb",(function(){return Fi})),n.d(t,"Ob",(function(){return oi})),n.d(t,"Pb",(function(){return ya})),n.d(t,"Qb",(function(){return ma})),n.d(t,"Rb",(function(){return Fh})),n.d(t,"Sb",(function(){return Ra})),n.d(t,"Tb",(function(){return Sh})),n.d(t,"Ub",(function(){return qa})),n.d(t,"Vb",(function(){return Nh})),n.d(t,"Wb",(function(){return kh})),n.d(t,"Xb",(function(){return Qa})),n.d(t,"Yb",(function(){return Ch})),n.d(t,"Zb",(function(){return ml})),n.d(t,"ac",(function(){return ad})),n.d(t,"bc",(function(){return Ue})),n.d(t,"cc",(function(){return I})),n.d(t,"dc",(function(){return Oh})),n.d(t,"ec",(function(){return Oc})),n.d(t,"fc",(function(){return On})),n.d(t,"gc",(function(){return Vh})),n.d(t,"hc",(function(){return bu})),n.d(t,"ic",(function(){return Au})),n.d(t,"jc",(function(){return Vu})),n.d(t,"kc",(function(){return Ur})),n.d(t,"lc",(function(){return fi})),n.d(t,"mc",(function(){return Yi})),n.d(t,"nc",(function(){return fu})),n.d(t,"oc",(function(){return Ki})),n.d(t,"pc",(function(){return Si})),n.d(t,"qc",(function(){return Ld})),n.d(t,"rc",(function(){return _r})),n.d(t,"sc",(function(){return Ce})),n.d(t,"tc",(function(){return Se})),n.d(t,"uc",(function(){return w})),n.d(t,"vc",(function(){return v})),n.d(t,"wc",(function(){return Fe})),n.d(t,"xc",(function(){return Ne})),n.d(t,"yc",(function(){return mi})),n.d(t,"zc",(function(){return Di})),n.d(t,"Ac",(function(){return xi})),n.d(t,"Bc",(function(){return Ei})),n.d(t,"Cc",(function(){return Ci})),n.d(t,"Dc",(function(){return _i})),n.d(t,"Ec",(function(){return Ai})),n.d(t,"Fc",(function(){return Cn})),n.d(t,"Gc",(function(){return hu})),n.d(t,"Hc",(function(){return Wl})),n.d(t,"Ic",(function(){return ed})),n.d(t,"Jc",(function(){return Kl})),n.d(t,"Kc",(function(){return Xl})),n.d(t,"Lc",(function(){return Zl})),n.d(t,"Mc",(function(){return ne})),n.d(t,"Nc",(function(){return yi})),n.d(t,"Oc",(function(){return Gd})),n.d(t,"Pc",(function(){return wi})),n.d(t,"Qc",(function(){return ki})),n.d(t,"Rc",(function(){return Ud})),n.d(t,"Sc",(function(){return Rt})),n.d(t,"Tc",(function(){return Mt})),n.d(t,"Uc",(function(){return Mi})),n.d(t,"Vc",(function(){return bd})),n.d(t,"Wc",(function(){return _d})),n.d(t,"Xc",(function(){return Cd})),n.d(t,"Yc",(function(){return Bi})),n.d(t,"Zc",(function(){return Vi})),n.d(t,"ad",(function(){return vi})),n.d(t,"bd",(function(){return Li})),n.d(t,"cd",(function(){return hd})),n.d(t,"dd",(function(){return pd})),n.d(t,"ed",(function(){return gd})),n.d(t,"fd",(function(){return md})),n.d(t,"gd",(function(){return Vd})),n.d(t,"hd",(function(){return gi})),n.d(t,"id",(function(){return rn})),n.d(t,"jd",(function(){return nn})),n.d(t,"kd",(function(){return tn})),n.d(t,"ld",(function(){return lt})),n.d(t,"md",(function(){return wr})),n.d(t,"nd",(function(){return br})),n.d(t,"od",(function(){return De})),n.d(t,"pd",(function(){return Ie})),n.d(t,"qd",(function(){return Hd})),n.d(t,"rd",(function(){return Pd})),n.d(t,"sd",(function(){return Wi})),n.d(t,"td",(function(){return pi})),n.d(t,"ud",(function(){return Qd})),n.d(t,"vd",(function(){return au})),n.d(t,"wd",(function(){return lu})),n.d(t,"xd",(function(){return du})),n.d(t,"yd",(function(){return pu})),n.d(t,"zd",(function(){return jd}));var r=n("XNiG"),o=n("quSY"),s=n("HDdC"),i=n("VRyK"),u=n("w1tV");function c(e){return{toString:e}.toString()}const a="__parameters__";function l(e,t,n){return c(()=>{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function o(...e){if(this instanceof o)return r.apply(this,e),this;const t=new o(...e);return n.annotation=t,n;function n(e,n,r){const o=e.hasOwnProperty(a)?e[a]:Object.defineProperty(e,a,{value:[]})[a];for(;o.length<=r;)o.push(null);return(o[r]=o[r]||[]).push(t),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const d=l("Inject",e=>({token:e})),f=l("Optional"),h=l("Self"),p=l("SkipSelf");var g=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function m(e){for(let t in e)if(e[t]===m)return t;throw Error("Could not find renamed property on target object.")}function y(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function v(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function b(e){return _(e,e[D])||_(e,e[A])}function _(e,t){return t&&t.token===e?t:null}function C(e){return e&&(e.hasOwnProperty(E)||e.hasOwnProperty(F))?e[E]:null}const D=m({"\u0275prov":m}),E=m({"\u0275inj":m}),x=m({"\u0275provFallback":m}),A=m({ngInjectableDef:m}),F=m({ngInjectorDef:m});function I(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(I).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function k(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const S=m({__forward_ref__:m});function N(e){return e.__forward_ref__=N,e.toString=function(){return I(this())},e}function T(e){return O(e)?e():e}function O(e){return"function"==typeof e&&e.hasOwnProperty(S)&&e.__forward_ref__===N}const M="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,V="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,P="undefined"!=typeof global&&global,j=M||P||R||V,B=m({"\u0275cmp":m}),L=m({"\u0275dir":m}),H=m({"\u0275pipe":m}),$=m({"\u0275mod":m}),U=m({"\u0275loc":m}),z=m({"\u0275fac":m}),Z=m({__NG_ELEMENT_ID__:m});class q{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=w({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Q=new q("INJECTOR",-1),G={},W=/\n/gm,K=m({provide:String,useValue:m});let Y,J=void 0;function X(e){const t=J;return J=e,t}function ee(e){const t=Y;return Y=e,t}function te(e,t=g.Default){if(void 0===J)throw new Error("inject() must be called from an injection context");return null===J?oe(e,void 0,t):J.get(e,t&g.Optional?null:void 0,t)}function ne(e,t=g.Default){return(Y||te)(T(e),t)}const re=ne;function oe(e,t,n){const r=b(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&g.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${I(e)}]`)}function se(e){const t=[];for(let n=0;nArray.isArray(e)?le(e,t):t(e))}function de(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function he(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function ge(e,t){const n=me(e,t);if(n>=0)return e[1|n]}function me(e,t){return function(e,t,n){let r=0,o=e.length>>1;for(;o!==r;){const n=r+(o-r>>1),s=e[n<<1];if(t===s)return n<<1;s>t?o=n:r=n+1}return~(o<<1)}(e,t)}const ye=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),we=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),ve={},be=[];let _e=0;function Ce(e){return c(()=>{const t=e.type,n=t.prototype,r={},o={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ye.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||be,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||we.Emulated,id:"c",styles:e.styles||be,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,u=e.pipes;return o.id+=_e++,o.inputs=ke(e.inputs,r),o.outputs=ke(e.outputs),i&&i.forEach(e=>e(o)),o.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ee):null,o.pipeDefs=u?()=>("function"==typeof u?u():u).map(xe):null,o})}function De(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(Ee),r.pipeDefs=()=>n.map(xe)}function Ee(e){return Te(e)||function(e){return e[L]||null}(e)}function xe(e){return function(e){return e[H]||null}(e)}const Ae={};function Fe(e){const t={type:e.type,bootstrap:e.bootstrap||be,declarations:e.declarations||be,imports:e.imports||be,exports:e.exports||be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&c(()=>{Ae[e.id]=e.type}),t}function Ie(e,t){return c(()=>{const n=Me(e,!0);n.declarations=t.declarations||be,n.imports=t.imports||be,n.exports=t.exports||be})}function ke(e,t){if(null==e)return ve;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=r,t&&(t[o]=s)}return n}const Se=Ce;function Ne(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Te(e){return e[B]||null}function Oe(e,t){return e.hasOwnProperty(z)?e[z]:null}function Me(e,t){const n=e[$]||null;if(!n&&!0===t)throw new Error(`Type ${I(e)} does not have '\u0275mod' property.`);return n}function Re(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ve(e){return Array.isArray(e)&&!0===e[1]}function Pe(e){return 0!=(8&e.flags)}function je(e){return 2==(2&e.flags)}function Be(e){return 1==(1&e.flags)}function Le(e){return null!==e.template}function He(e){return 0!=(512&e[2])}let $e=void 0;function Ue(e){$e=e}function ze(){return void 0!==$e?$e:"undefined"!=typeof document?document:void 0}function Ze(e){return!!e.listen}const qe={createRenderer:(e,t)=>ze()};function Qe(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return Qe(t[e+19])}function We(e,t){return Qe(t[e.index])}function Ke(e,t){const n=e.index;return-1!==n?Qe(t[n]):null}function Ye(e,t){return e.data[t+19]}function Je(e,t){return e[t+19]}function Xe(e,t){const n=t[e];return Re(n)?n:n[0]}function et(e){return e.__ngContext__||null}function tt(e){const t=et(e);return t?Array.isArray(t)?t:t.lView:null}function nt(e){return 4==(4&e[2])}function rt(e){return 128==(128&e[2])}function ot(e,t){return null===e||null==t?null:e[t]}function st(e){e[18]=0}const it={lFrame:Ft(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ut(){return it.bindingsEnabled}function ct(){return it.lFrame.lView}function at(){return it.lFrame.tView}function lt(e){it.lFrame.contextLView=e}function dt(){return it.lFrame.previousOrParentTNode}function ft(e,t){it.lFrame.previousOrParentTNode=e,it.lFrame.isParent=t}function ht(){return it.lFrame.isParent}function pt(){it.lFrame.isParent=!1}function gt(){return it.checkNoChangesMode}function mt(e){it.checkNoChangesMode=e}function yt(){const e=it.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function wt(){return it.lFrame.bindingIndex}function vt(){return it.lFrame.bindingIndex++}function bt(e){const t=it.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _t(e,t){const n=it.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function Ct(){return it.lFrame.currentQueryIndex}function Dt(e){it.lFrame.currentQueryIndex=e}function Et(e,t){const n=At();it.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function xt(e,t){const n=At(),r=e[1];it.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function At(){const e=it.lFrame,t=null===e?null:e.child;return null===t?Ft(e):t}function Ft(e){const t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function It(){const e=it.lFrame;return it.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const kt=It;function St(){const e=It();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Nt(){return it.lFrame.selectedIndex}function Tt(e){it.lFrame.selectedIndex=e}function Ot(){const e=it.lFrame;return Ye(e.tView,e.selectedIndex)}function Mt(){it.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Rt(){it.lFrame.currentNamespace=null}function Vt(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[i]<0&&(e[18]+=65536),(s>10>16&&(3&e[2])===t&&(e[2]+=1024,s.call(i)):s.call(i)}class $t{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Ut(e,t,n){const r=Ze(e);let o=0;for(;ot){i=s-1;break}}}for(;s>16}function Yt(e,t){let n=Kt(e),r=t;for(;n>0;)r=r[15],n--;return r}function Jt(e){return"string"==typeof e?e:null==e?"":""+e}function Xt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Jt(e)}const en=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(j))();function tn(e){return{name:"window",target:e.ownerDocument.defaultView}}function nn(e){return{name:"document",target:e.ownerDocument}}function rn(e){return{name:"body",target:e.ownerDocument.body}}function on(e){return e instanceof Function?e():e}let sn=!0;function un(e){const t=sn;return sn=e,t}let cn=0;function an(e,t){const n=dn(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,ln(r.data,e),ln(t,null),ln(r.blueprint,null));const o=fn(e,t),s=e.injectorIndex;if(Gt(o)){const e=Wt(o),n=Yt(o,t),r=n[1].data;for(let o=0;o<8;o++)t[s+o]=n[e+o]|r[e+o]}return t[s+8]=o,s}function ln(e,t){e.push(0,0,0,0,0,0,0,0,t)}function dn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function fn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],r=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function hn(e,t,n){!function(e,t,n){let r="string"!=typeof n?n[Z]:n.charCodeAt(0)||0;null==r&&(r=n[Z]=cn++);const o=255&r,s=1<0?255&t:t}(n);if("function"==typeof o){Et(t,e);try{const e=o();if(null!=e||r&g.Optional)return e;throw new Error(`No provider for ${Xt(n)}!`)}finally{kt()}}else if("number"==typeof o){if(-1===o)return new _n(e,t);let s=null,i=dn(e,t),u=-1,c=r&g.Host?t[16][6]:null;for((-1===i||r&g.SkipSelf)&&(u=-1===i?fn(e,t):t[i+8],bn(r,!1)?(s=t[1],i=Wt(u),t=Yt(u,t)):i=-1);-1!==i;){u=t[i+8];const e=t[1];if(vn(o,i,e.data)){const e=mn(i,t,n,s,r,c);if(e!==gn)return e}bn(r,t[1].data[i+8]===c)&&vn(o,i,t)?(s=e,i=Wt(u),t=Yt(u,t)):i=-1}}}if(r&g.Optional&&void 0===o&&(o=null),0==(r&(g.Self|g.Host))){const e=t[9],s=ee(void 0);try{return e?e.get(n,o,r&g.Optional):oe(n,o,r&g.Optional)}finally{ee(s)}}if(r&g.Optional)return o;throw new Error(`NodeInjector: NOT_FOUND [${Xt(n)}]`)}const gn={};function mn(e,t,n,r,o,s){const i=t[1],u=i.data[e+8],c=yn(u,i,n,null==r?je(u)&&sn:r!=i&&3===u.type,o&g.Host&&s===u);return null!==c?wn(t,i,c,u):gn}function yn(e,t,n,r,o){const s=e.providerIndexes,i=t.data,u=65535&s,c=e.directiveStart,a=s>>16,l=o?u+a:e.directiveEnd;for(let d=r?u:u+a;d=c&&e.type===n)return d}if(o){const e=i[c];if(e&&Le(e)&&e.type===n)return c}return null}function wn(e,t,n,r){let o=e[n];const s=t.data;if(o instanceof $t){const i=o;if(i.resolving)throw new Error(`Circular dep for ${Xt(s[n])}`);const u=un(i.canSeeViewProviders);let c;i.resolving=!0,i.injectImpl&&(c=ee(i.injectImpl)),Et(e,r);try{o=e[n]=i.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{onChanges:r,onInit:o,doCheck:s}=t;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{i.injectImpl&&ee(c),un(u),i.resolving=!1,kt()}}return o}function vn(e,t,n){const r=64&e,o=32&e;let s;return s=128&e?r?o?n[t+7]:n[t+6]:o?n[t+5]:n[t+4]:r?o?n[t+3]:n[t+2]:o?n[t+1]:n[t],!!(s&1<{const t=Object.getPrototypeOf(e.prototype).constructor,n=t[z]||function e(t){const n=t;if(O(t))return()=>{const t=e(T(n));return t?t():null};let r=Oe(n);if(null===r){const e=C(n);r=e&&e.factory}return r||null}(t);return null!==n?n:e=>new e})}function Dn(e){return e.ngDebugContext}function En(e){return e.ngOriginalError}function xn(e,...t){e.error(...t)}class An{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||xn}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Dn(e)?Dn(e):this._findContext(En(e)):null}_findOriginalError(e){let t=En(e);for(;t&&En(t);)t=En(t);return t}}class Fn{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class In extends Fn{getTypeName(){return"HTML"}}class kn extends Fn{getTypeName(){return"Style"}}class Sn extends Fn{getTypeName(){return"Script"}}class Nn extends Fn{getTypeName(){return"URL"}}class Tn extends Fn{getTypeName(){return"ResourceURL"}}function On(e){return e instanceof Fn?e.changingThisBreaksApplicationSecurity:e}function Mn(e,t){const n=Rn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===t}function Rn(e){return e instanceof Fn&&e.getTypeName()||null}function Vn(e){return new In(e)}function Pn(e){return new kn(e)}function jn(e){return new Sn(e)}function Bn(e){return new Nn(e)}function Ln(e){return new Tn(e)}let Hn=!0,$n=!1;function Un(){return $n=!0,Hn}function zn(){if($n)throw new Error("Cannot enable prod mode after platform setup.");Hn=!1}class Zn{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let t=this.inertDocument.body;if(null==t){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),t=this.inertDocument.createElement("body"),e.appendChild(t)}t.innerHTML='',!t.querySelector||t.querySelector("svg")?(t.innerHTML='

',this.getInertBodyElement=t.querySelector&&t.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;const n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0Gn(e.trim())).join(", ")}function Kn(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Yn(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Jn=Kn("area,br,col,hr,img,wbr"),Xn=Kn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),er=Kn("rp,rt"),tr=Yn(er,Xn),nr=Yn(Jn,Yn(Xn,Kn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Yn(er,Kn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),tr),rr=Kn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),or=Kn("srcset"),sr=Yn(rr,or,Kn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Kn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),ir=Kn("script,style,template");class ur{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!nr.hasOwnProperty(t))return this.sanitizedSomething=!0,!ir.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const t=e.nodeName.toLowerCase();nr.hasOwnProperty(t)&&!Jn.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(lr(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ar=/([^\#-~ |!])/g;function lr(e){return e.replace(/&/g,"&").replace(cr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(ar,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}let dr;function fr(e,t){let n=null;try{dr=dr||new Zn(e);let r=t?String(t):"";n=dr.getInertBodyElement(r);let o=5,s=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=s,s=n.innerHTML,n=dr.getInertBodyElement(r)}while(r!==s);const i=new ur,u=i.sanitizeChildren(hr(n)||n);return Un()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n){const e=hr(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function hr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const pr=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),gr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),mr=/^url\(([^)]+)\)$/;function yr(e){if(!(e=String(e).trim()))return"";const t=e.match(mr);return t&&Gn(t[1])===t[1]||e.match(gr)&&function(e){let t=!0,n=!0;for(let r=0;rs?"":o[l+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Nr(t,a,0)||2&r&&a!==e){if(Rr(r))return!1;i=!0}}}}else{if(!i&&!Rr(r)&&!Rr(c))return!1;if(i&&Rr(c))continue;i=!1,r=c|1&r}}return Rr(r)||i}function Rr(e){return 0==(1&e)}function Vr(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let n=!1;for(;o-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&r?o+="."+i:4&r&&(o+=" "+i);else""===o||Rr(i)||(t+=Br(s,o),o=""),r=i,s=s||!Rr(r);n++}return""!==o&&(t+=Br(s,o)),t}const Hr={};function $r(e){const t=e[3];return Ve(t)?t[3]:t}function Ur(e){zr(at(),ct(),Nt()+e,gt())}function zr(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&Pt(t,r,n)}else{const r=e.preOrderHooks;null!==r&&jt(t,r,0,n)}Tt(n)}const Zr={marker:"element"},qr={marker:"comment"};function Qr(e,t){return e<<17|t<<2}function Gr(e){return e>>17&32767}function Wr(e){return 2|e}function Kr(e){return(131068&e)>>2}function Yr(e,t){return-131069&e|t<<2}function Jr(e){return 1|e}function Xr(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r>1==-1){for(let e=9;e19&&zr(e,t,0,gt()),n(r,o)}finally{Tt(s)}}function uo(e,t,n){if(Pe(t)){const r=t.directiveEnd;for(let o=t.directiveStart;oPromise.resolve(null))();function Bo(e){return e[7]||(e[7]=[])}function Lo(e){return e.cleanup||(e.cleanup=[])}function Ho(e,t){return function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(t[e.index])[11]}function $o(e,t){const n=e[9],r=n?n.get(An,null):null;r&&r.handleError(t)}function Uo(e,t,n,r,o){for(let s=0;s0&&(e[n-1][4]=r[4]);const s=fe(e,9+t);Wo(r[1],r,!1,null);const i=s[5];null!==i&&i.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Jo(e,t){if(!(256&t[2])){const n=t[11];Ze(n)&&n.destroyNode&&ds(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return es(e[1],e);for(;t;){let n=null;if(Re(t))n=t[13];else{const e=t[9];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Re(t)&&es(t[1],t),t=Xo(t,e);null===t&&(t=e),Re(t)&&es(t[1],t),n=t&&t[4]}t=n}}(t)}}function Xo(e,t){let n;return Re(e)&&(n=e[6])&&2===n.type?Zo(n,e):e[3]===t?null:e[3]}function es(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?e[u]():e[-u].unsubscribe(),r+=2}else n[r].call(e[n[r+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Ze(t[11])&&t[11].destroy();const r=t[17];if(null!==r&&Ve(t[3])){r!==t[3]&&Ko(r,t);const n=t[5];null!==n&&n.detachView(e)}}}function ts(e,t,n){let r=t.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){const e=n[6];return 2===e.type?qo(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return We(t,n).parentNode;if(2&r.flags){const t=e.data,n=t[t[r.index].directiveStart].encapsulation;if(n!==we.ShadowDom&&n!==we.Native)return null}return We(r,n)}function ns(e,t,n,r){Ze(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function rs(e,t,n){Ze(e)?e.appendChild(t,n):t.appendChild(n)}function os(e,t,n,r){null!==r?ns(e,t,n,r):rs(e,t,n)}function ss(e,t){return Ze(e)?e.parentNode(t):t.parentNode}function is(e,t){if(2===e.type){const n=Zo(e,t);return null===n?null:cs(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?We(e,t):null}function us(e,t,n,r){const o=ts(e,r,t);if(null!=o){const e=t[11],s=is(r.parent||t[6],t);if(Array.isArray(n))for(let t=0;t-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Jo(this._lView[1],this._lView)}onDestroy(e){var t,n,r;t=this._lView[1],r=e,Bo(n=this._lView).push(r),t.firstCreatePass&&Lo(t).push(n[7].length-1,null)}markForCheck(){Mo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ro(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){mt(!0);try{Ro(e,t,n)}finally{mt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,ds(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class ys extends ms{constructor(e){super(e),this._view=e}detectChanges(){Vo(this._view)}checkNoChanges(){!function(e){mt(!0);try{Vo(e)}finally{mt(!1)}}(this._view)}get context(){return null}}let ws,vs,bs;function _s(e,t,n){return ws||(ws=class extends e{}),new ws(We(t,n))}function Cs(e,t,n,r){return vs||(vs=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=to(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(t)),ro(t,n,e);const o=new ms(n);return o._tViewNode=n[6],o}}),0===n.type?new vs(r,n,_s(t,n,r)):null}function Ds(e,t,n,r){let o;bs||(bs=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return _s(t,this._hostTNode,this._hostView)}get injector(){return new _n(this._hostTNode,this._hostView)}get parentInjector(){const e=fn(this._hostTNode,this._hostView),t=Yt(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let r=Kt(e),o=t,s=t[6];for(;r>1;)o=o[15],s=o[6],r--;return s}(e,this._hostView,this._hostTNode);return Gt(e)&&null!=n?new _n(n,t):new _n(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-9}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,o){const s=n||this.parentInjector;if(!o&&null==e.ngModule&&s){const e=s.get(ue,null);e&&(o=e)}const i=e.create(s,r,void 0,o);return this.insert(i.hostView,t),i}insert(e,t){const n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ve(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new bs(t,t[6],t[3]);r.detach(r.indexOf(e))}}const o=this._adjustIndex(t);return function(e,t,n,r){const o=9+r,s=n.length;r>0&&(n[o-1][4]=t),r{class e{}return e.__NG_ELEMENT_ID__=()=>As(),e})();const As=Es,Fs=Function;function Is(e){return"function"==typeof e}const ks=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Ss=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ns=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Ts=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/;class Os{constructor(e){this._reflect=e||j.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=he(void 0===e?t.length:e.length);for(let r=0;re&&e.type),n=e.map(e=>e&&Ms(e.decorators));return this._zipTypesAndAnnotations(t,n)}const o=e.hasOwnProperty(a)&&e[a],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return s||o?this._zipTypesAndAnnotations(s,o):he(e.length)}parameters(e){if(!Is(e))return[];const t=Rs(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?Ms(e.decorators):e.hasOwnProperty("__annotations__")?e.__annotations__:null}annotations(e){if(!Is(e))return[];const t=Rs(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=Ms(t[e])}),n}return e.hasOwnProperty("__prop__metadata__")?e.__prop__metadata__:null}propMetadata(e){if(!Is(e))return{};const t=Rs(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return Is(e)&&this._ownPropMetadata(e,Rs(e))||{}}hasLifecycleHook(e,t){return e instanceof Fs&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:`./${I(e)}`}resourceUri(e){return`./${I(e)}`}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function Ms(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function Rs(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Vs=new q("Set Injector scope."),Ps={},js={},Bs=[];let Ls=void 0;function Hs(){return void 0===Ls&&(Ls=new ie),Ls}function $s(e,t=null,n=null,r){return new Us(e,n,t||Hs(),r)}class Us{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];t&&le(t,n=>this.processProvider(n,e,t)),le([e],e=>this.processInjectorType(e,[],o)),this.records.set(Q,qs(void 0,this));const s=this.records.get(Vs);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:I(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=G,n=g.Default){this.assertNotDestroyed();const r=X(this);try{if(!(n&g.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(o=e)||"object"==typeof o&&o instanceof q)&&b(e);t=n&&this.injectableDefInScope(n)?qs(zs(e),Ps):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&g.Self?Hs():this.parent).get(e,t=n&g.Optional&&t===G?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(I(e)),r)throw s;return function(e,t,n,r){const o=e.ngTempTokenPath;throw t.__source&&o.unshift(t.__source),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=I(t);if(Array.isArray(t))o=t.map(I).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):I(r)))}o=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(W,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{X(r)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(I(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=T(e)))return!1;let r=C(e);const o=null==r&&e.ngModule||void 0,s=void 0===o?e:o,i=-1!==n.indexOf(s);if(void 0!==o&&(r=C(o)),null==r)return!1;if(null!=r.imports&&!i){let e;n.push(s);try{le(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||Bs))}}this.injectorDefTypes.add(s),this.records.set(s,qs(r.factory,Ps));const u=r.providers;if(null!=u&&!i){const t=e;le(u,e=>this.processProvider(e,t,u))}return void 0!==o&&void 0!==e.providers}processProvider(e,t,n){let r=Gs(e=T(e))?e:T(e&&e.provide);const o=function(e,t,n){return Qs(e)?qs(void 0,e.useValue):qs(Zs(e,t,n),Ps)}(e,t,n);if(Gs(e)||!0!==e.multi){const e=this.records.get(r);e&&void 0!==e.multi&&Sr()}else{let t=this.records.get(r);t?void 0===t.multi&&Sr():(t=qs(void 0,Ps,!0),t.factory=()=>se(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,o)}hydrate(e,t){var n;return t.value===js?function(e){throw new Error(`Cannot instantiate cyclic dependency! ${e}`)}(I(e)):t.value===Ps&&(t.value=js,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function zs(e){const t=b(e),n=null!==t?t.factory:Oe(e);if(null!==n)return n;const r=C(e);if(null!==r)return r.factory;if(e instanceof q)throw new Error(`Token ${I(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=he(t,"?");throw new Error(`Can't resolve all parameters for ${I(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[D]||e[A]||e[x]&&e[x]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Zs(e,t,n){let r=void 0;if(Gs(e)){const t=T(e);return Oe(t)||zs(t)}if(Qs(e))r=()=>T(e.useValue);else if((o=e)&&o.useFactory)r=()=>e.useFactory(...se(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>ne(T(e.useExisting));else{const o=T(e&&(e.useClass||e.provide));if(o||function(e,t,n){let r="";throw e&&t&&(r=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${I(e)}'`+r)}(t,n,e),!function(e){return!!e.deps}(e))return Oe(o)||zs(o);r=()=>new o(...se(e.deps))}var o;return r}function qs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qs(e){return null!==e&&"object"==typeof e&&K in e}function Gs(e){return"function"==typeof e}const Ws=function(e,t,n){return function(e,t=null,n=null,r){const o=$s(e,t,n,r);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)};let Ks=(()=>{class e{static create(e,t){return Array.isArray(e)?Ws(e,t,""):Ws(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=G,e.NULL=new ie,e.\u0275prov=w({token:e,providedIn:"any",factory:()=>ne(Q)}),e.__NG_ELEMENT_ID__=-1,e})();const Ys=new q("AnalyzeForEntryComponents");let Js=new Map;const Xs=new Set;function ei(e){return"string"==typeof e?e:e.text()}function ti(e,t){let n=e.styles,r=e.classes,o=0;for(let s=0;su(Qe(e[r.index])).target:r.index;if(Ze(n)){let i=null;if(!u&&c&&(i=function(e,t,n,r){const o=e.cleanup;if(null!=o)for(let s=0;sn?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,o,r.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=s,i.__ngLastListenerFn__=s,d=!1;else{s=Oi(r,t,s,!1);const e=n.listen(h.name||p,o,s);l.push(s,e),a&&a.push(o,m,g,g+1)}}else s=Oi(r,t,s,!0),p.addEventListener(o,s,i),l.push(s),a&&a.push(o,m,g,i)}const f=r.outputs;let h;if(d&&null!==f&&(h=f[o])){const e=h.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,it.lFrame.contextLView))[8]}(e)}function Ri(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let o=0;o=0}const Zi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qi(e){return e.substring(Zi.key,Zi.keyEnd)}function Qi(e,t){const n=Zi.textEnd;return n===t?-1:(t=Zi.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Zi.key=t,n),Gi(e,t,n))}function Gi(e,t,n){for(;t=0;n=Qi(t,n))pe(e,qi(t),!0)}function Xi(e,t,n,r){const o=ct(),s=at(),i=bt(2);if(s.firstUpdatePass&&nu(s,e,i,r),t!==Hr&&li(o,i,t)){let u;null==n&&(u=function(){const e=it.lFrame;return null===e?null:e.currentSanitizer}())&&(n=u),su(s,s.data[Nt()+19],o,o[11],e,o[i+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=I(On(e)))),e}(t,n),r,i)}}function eu(e,t,n,r){const o=at(),s=bt(2);o.firstUpdatePass&&nu(o,null,s,r);const i=ct();if(n!==Hr&&li(i,s,n)){const u=o.data[Nt()+19];if(cu(u,r)&&!tu(o,s)){let e=r?u.classes:u.styles;null!==e&&(n=k(e,n||"")),bi(o,u,i,n,r)}else!function(e,t,n,r,o,s,i,u){o===Hr&&(o=$i);let c=0,a=0,l=0=e.expandoStartIndex}function nu(e,t,n,r){const o=e.data;if(null===o[n+1]){const s=o[Nt()+19],i=tu(e,n);cu(s,r)&&null===t&&!i&&(t=!1),t=function(e,t,n,r){const o=function(e){const t=it.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=ou(n=ru(null,e,t,n,r),t.attrs,r),s=null);else{const i=t.directiveStylingLast;if(-1===i||e[i]!==o)if(n=ru(o,e,t,n,r),null===s){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Kr(r))return e[Gr(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=ru(null,e,t,n[1],r),n=ou(n,t.attrs,r),function(e,t,n,r){e[Gr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else s=function(e,t,n){let r=void 0;const o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(l=!0)}else a=n;if(o)if(0!==c){const t=Gr(e[u+1]);e[r+1]=Qr(t,u),0!==t&&(e[t+1]=Yr(e[t+1],r)),e[u+1]=131071&e[u+1]|r<<17}else e[r+1]=Qr(u,0),0!==u&&(e[u+1]=Yr(e[u+1],r)),u=r;else e[r+1]=Qr(c,0),0===u?u=r:e[c+1]=Yr(e[c+1],r),c=r;l&&(e[r+1]=Wr(e[r+1])),Ui(e,a,r,!0),Ui(e,a,r,!1),function(e,t,n,r,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&me(s,t)>=0&&(n[r+1]=Jr(n[r+1]))}(t,a,e,r,s),i=Qr(u,c),s?t.classBindings=i:t.styleBindings=i}(o,s,t,n,i,r)}}function ru(e,t,n,r,o){let s=null;const i=n.directiveEnd;let u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u0;){const t=e[o],s=Array.isArray(t),c=s?t[1]:t,a=null===c;let l=n[o+1];l===Hr&&(l=a?$i:void 0);let d=a?ge(l,r):c===r?l:void 0;if(s&&!uu(d)&&(d=ge(t,r)),uu(d)&&(u=d,i))return u;const f=e[o+1];o=i?Gr(f):Kr(f)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(u=ge(e,r))}return u}function uu(e){return void 0!==e}function cu(e,t){return 0!=(e.flags&(t?16:32))}function au(e,t=""){const n=ct(),r=at(),o=e+19,s=r.firstCreatePass?no(r,n[6],e,3,null,null):r.data[o],i=n[o]=Go(t,n[11]);us(r,n,i,s),ft(s,!1)}function lu(e){return du("",e,""),lu}function du(e,t,n){const r=ct(),o=hi(r,e,t,n);return o!==Hr&&zo(r,Nt(),o),du}function fu(e,t,n){eu(pe,Ji,hi(ct(),e,t,n),!0)}function hu(e,t,n){const r=ct();return li(r,vt(),t)&&go(at(),Ot(),r,e,t,r[11],n,!0),hu}function pu(e,t,n){const r=ct();if(li(r,vt(),t)){const o=at(),s=Ot();go(o,s,r,e,t,Ho(s,r),n,!0)}return pu}function gu(e){wu(e);const t=mu(e,!1);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function mu(e,t=!0){const n=function(e){let t=et(e);if(t){if(Array.isArray(t)){const r=t;let o,s=void 0,i=void 0;if((n=e)&&n.constructor&&n.constructor.\u0275cmp){if(o=function(e,t){const n=e[1].components;if(n)for(let r=0;r=0){const e=Qe(r[o]),n=xr(r,o,e);Ar(e,n),t=n;break}}}}var n;return t||null}(e);if(!n&&t)throw new Error("Invalid ng target");return n}function yu(e,t){return e.name==t.name?0:e.name=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=qt(o.hostAttrs,n=qt(n,o.hostAttrs))}}(r)}function _u(e){return e===ve?{}:e===be?[]:e}function Cu(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Du(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,o)=>{t(e,r,o),n(e,r,o)}:t}function Eu(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}class xu{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Au(e){e.type.prototype.ngOnChanges&&(e.setInput=Fu,e.onChanges=function(){const e=Iu(this),t=e&&e.current;if(t){const n=e.previous;if(n===ve)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function Fu(e,t,n,r){const o=Iu(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ve,current:null}),s=o.current||(o.current={}),i=o.previous,u=this.declaredInputs[n],c=i[u];s[u]=new xu(c&&c.currentValue,t,i===ve),e[r]=t}function Iu(e){return e.__ngSimpleChanges__||null}function ku(e,t,n,r,o){if(e=T(e),Array.isArray(e))for(let s=0;s>16;if(Gs(e)||!e.multi){const r=new $t(c,o,mi),h=Tu(u,t,o?l:l+f,d);-1===h?(hn(an(a,i),s,u),Su(s,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=65536),n.push(r),i.push(r)):(n[h]=r,i[h]=r)}else{const h=Tu(u,t,l+f,d),p=Tu(u,t,l,l+f),g=h>=0&&n[h],m=p>=0&&n[p];if(o&&!m||!o&&!g){hn(an(a,i),s,u);const l=function(e,t,n,r,o){const s=new $t(e,n,mi);return s.multi=[],s.index=t,s.componentProviders=0,Nu(s,o,r&&!n),s}(o?Mu:Ou,n.length,o,r,c);!o&&m&&(n[p].providerFactory=l),Su(s,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=65536),n.push(l),i.push(l)}else Su(s,e,h>-1?h:p),Nu(n[o?p:h],c,!o&&r);!o&&r&&m&&n[p].componentProviders++}}}function Su(e,t,n){if(Gs(t)||t.useClass){const r=(t.useClass||t).prototype.ngOnDestroy;r&&(e.destroyHooks||(e.destroyHooks=[])).push(n,r)}}function Nu(e,t,n){e.multi.push(t),n&&e.componentProviders++}function Tu(e,t,n,r){for(let o=n;o{n.providersResolver=(n,r)=>function(e,t,n){const r=at();if(r.firstCreatePass){const o=Le(e);ku(n,r.data,r.blueprint,o,!0),ku(t,r.data,r.blueprint,o,!1)}}(n,r?r(e):e,t)}}Au.ngInherit=!0;class Pu{}class ju{}function Bu(e){const t=Error(`No component factory found for ${I(e)}. Did you add it to @NgModule.entryComponents?`);return t[Lu]=e,t}const Lu="ngComponent";class Hu{resolveComponentFactory(e){throw Bu(e)}}let $u=(()=>{class e{}return e.NULL=new Hu,e})();class Uu{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>qu(e),e})();const qu=function(e){return _s(e,dt(),ct())};class Qu{}const Gu=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let Wu=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ku(),e})();const Ku=function(){const e=ct(),t=Xe(dt().index,e);return function(e){const t=e[11];if(Ze(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Re(t)?t:e)};let Yu=(()=>{class e{}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null}),e})();class Ju{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Xu=new Ju("9.1.0");class ec{constructor(){}supports(e){return ui(e)}create(e){return new nc(e)}}const tc=(e,t)=>t;class nc{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||tc}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,o=null;for(;t||n;){const s=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==o&&oi(o.trackById,r)?(s&&(o=this._verifyReinsertion(o,e,r,t)),oi(o.item,e)||this._addIdentityChange(o,e)):(o=this._mismatch(o,e,r,t),s=!0),o=o._next,t++}),this.length=t;return this._truncate(o),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(oi(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(oi(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new rc(t,n),o,r),e}_verifyReinsertion(e,t,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new sc),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class rc{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class oc{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&oi(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class sc{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new oc,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ic(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}const n=new ac(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){oi(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class ac{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let lc=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new f]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e([new ec])}),e})(),dc=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new f]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e([new uc])}),e})();const fc=[new uc],hc=new lc([new ec]),pc=new dc(fc);let gc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>mc(e,Zu),e})();const mc=function(e,t){return Cs(e,t,dt(),ct())};let yc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>wc(e,Zu),e})();const wc=function(e,t){return Ds(e,t,dt(),ct())};function vc(e,t,n,r){let o=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return bc(n,t),n}(o,e)}function bc(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function _c(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Cc(e,t,n){const r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function Dc(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Ec(e,t){return e.nodes[t]}function xc(e,t){return e.nodes[t]}function Ac(e,t){return e.nodes[t]}function Fc(e,t){return e.nodes[t]}function Ic(e,t){return e.nodes[t]}const kc={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Sc=()=>{},Nc=new Map;function Tc(e){let t=Nc.get(e);return t||(t=I(e)+"_"+Nc.size,Nc.set(e,t)),t}function Oc(e,t,n,r){if(ii.isWrapped(r)){r=ii.unwrap(r);const o=e.def.nodes[t].bindingIndex+n,s=ii.unwrap(e.oldValues[o]);e.oldValues[o]=new ii(s)}return r}function Mc(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Rc=0;function Vc(e,t,n,r){return!(!(2&e.state)&&oi(e.oldValues[t.bindingIndex+n],r))}function Pc(e,t,n,r){return!!Vc(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function jc(e,t,n,r){const o=e.oldValues[t.bindingIndex+n];if(1&e.state||!si(o,r)){const s=t.bindings[n].name;throw vc(kc.createDebugContext(e,t.nodeIndex),`${s}: ${o}`,`${s}: ${r}`,0!=(1&e.state))}}function Bc(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Lc(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Hc(e,t,n,r){try{return Bc(33554432&e.def.nodes[t].flags?xc(e,t).componentView:e),kc.handleEvent(e,t,n,r)}catch(o){e.root.errorHandler.handleError(o)}}function $c(e){return e.parent?xc(e.parent,e.parentNodeDef.nodeIndex):null}function Uc(e){return e.parent?e.parentNodeDef.parent:null}function zc(e,t){switch(201347067&t.flags){case 1:return xc(e,t.nodeIndex).renderElement;case 2:return Ec(e,t.nodeIndex).renderText}}function Zc(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function qc(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Qc(e){return 1<{"number"==typeof e?(t[e]=o,n|=Qc(e)):r[e]=o}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Wc(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Tc(n)}})}function Kc(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===we.Native?xc(e,n.renderParent.nodeIndex).renderElement:void 0:t}const Yc=new WeakMap;function Jc(e){let t=Yc.get(e);return t||(t=e(()=>Sc),t.factory=e,Yc.set(e,t)),t}function Xc(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(zc(e,e.def.lastRenderRootNode))),ea(e,t,0,e.def.nodes.length-1,n,r,o)}function ea(e,t,n,r,o,s,i){for(let u=n;u<=r;u++){const n=e.def.nodes[u];11&n.flags&&na(e,n,t,o,s,i),u+=n.childCount}}function ta(e,t,n,r,o,s){let i=e;for(;i&&!Zc(i);)i=i.parent;const u=i.parent,c=Uc(i),a=c.nodeIndex+c.childCount;for(let l=c.nodeIndex+1;l<=a;l++){const e=u.def.nodes[l];e.ngContentIndex===t&&na(u,e,n,r,o,s),l+=e.childCount}if(!u.parent){const i=e.root.projectableNodes[t];if(i)for(let t=0;t-1}(e,n))}(e,i)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:i.factory,deps:[],index:n,token:t.token},e._providers[n]=fa,e._providers[n]=va(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{X(r)}}function va(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(wa(e,n[0]));case 2:return new t(wa(e,n[0]),wa(e,n[1]));case 3:return new t(wa(e,n[0]),wa(e,n[1]),wa(e,n[2]));default:const o=[];for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,fe(n,t),kc.dirtyParentQueries(r),Ca(r),r}function _a(e,t,n){const r=t?zc(t,t.def.lastRenderRootNode):e.renderElement,o=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);Xc(n,2,o,s,void 0)}function Ca(e){Xc(e,3,null,null,void 0)}const Da={};function Ea(e,t,n,r,o,s){return new xa(e,t,n,r,o,s)}class xa extends ju{constructor(e,t,n,r,o,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=o,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const o=Jc(this.viewDefFactory),s=o.nodes[0].element.componentProvider.nodeIndex,i=kc.createRootView(e,t||[],n,o,r,Da),u=Ac(i,s).instance;return n&&i.renderer.setAttribute(xc(i,0).renderElement,"ng-version",Xu.full),new Aa(i,new Sa(i),u)}}class Aa extends Pu{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new Zu(xc(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Ma(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Fa(e,t,n){return new Ia(e,t,n)}class Ia{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Zu(this._data.renderElement)}get injector(){return new Ma(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=Uc(e),e=e.parent;return e?new Ma(e,t):new Ma(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=ba(this._data,e);kc.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Sa(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,o){const s=n||this.parentInjector;o||e instanceof zu||(o=s.get(ue));const i=e.create(s,r,void 0,o);return this.insert(i.hostView,t),i}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let o=t.viewContainer._embeddedViews;null==n&&(n=o.length),r.viewContainerParent=e,de(o,n,r),function(e,t){const n=$c(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),kc.dirtyParentQueries(r),_a(t,n>0?o[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,o=r[t];fe(r,t),null==n&&(n=r.length),de(r,n,o),kc.dirtyParentQueries(o),Ca(o),_a(e,n>0?r[n-1]:null,o)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=ba(this._data,e);t&&kc.destroyView(t)}detach(e){const t=ba(this._data,e);return t?new Sa(t):null}}function ka(e){return new Sa(e)}class Sa{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Xc(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Bc(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{kc.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){kc.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),kc.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Ca(this._view),kc.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Na(e,t){return new Ta(e,t)}class Ta extends gc{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Sa(kc.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Zu(xc(this._parentView,this._def.nodeIndex).renderElement)}}function Oa(e,t){return new Ma(e,t)}class Ma{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Ks.THROW_IF_NOT_FOUND){return kc.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Tc(e)},t)}}function Ra(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=xc(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Ec(e,n.nodeIndex).renderText;if(20240&n.flags)return Ac(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Va(e,t,n,r){return new Pa(e,t,n,r)}class Pa{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=he(t.providers.length);for(let r=0;re())}onDestroy(e){this._destroyListeners.push(e)}}const ja=Tc(Wu),Ba=Tc(Zu),La=Tc(yc),Ha=Tc(gc),$a=Tc(xs),Ua=Tc(Ks),za=Tc(Q);function Za(e,t,n,r,o,s,i,u){const c=[];if(i)for(let l in i){const[e,t]=i[l];c[e]={flags:8,name:l,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const a=[];if(u)for(let l in u)a.push({type:1,propName:l,target:null,eventName:u[l]});return Ga(e,t|=16384,n,r,o,o,s,c,a)}function qa(e,t,n){return Ga(-1,e|=16,null,0,t,t,n)}function Qa(e,t,n,r,o){return Ga(-1,e,t,0,n,r,o)}function Ga(e,t,n,r,o,s,i,u,c){const{matchedQueries:a,references:l,matchedQueryIds:d}=Gc(n);c||(c=[]),u||(u=[]),s=T(s);const f=Wc(i,I(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:d,references:l,ngContentIndex:-1,childCount:r,bindings:u,bindingFlags:ia(u),outputs:c,element:null,provider:{token:o,value:s,deps:f},text:null,query:null,ngContent:null}}function Wa(e,t){return Xa(e,t)}function Ka(e,t){let n=e;for(;n.parent&&!Zc(n);)n=n.parent;return el(n.parent,Uc(n),!0,t.provider.value,t.provider.deps)}function Ya(e,t){const n=el(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;rHc(e,t,n,r)}function Xa(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return el(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){const s=o.length;switch(s){case 0:return r();case 1:return r(nl(e,t,n,o[0]));case 2:return r(nl(e,t,n,o[0]),nl(e,t,n,o[1]));case 3:return r(nl(e,t,n,o[0]),nl(e,t,n,o[1]),nl(e,t,n,o[2]));default:const i=[];for(let r=0;ren});class dl extends ju{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Lr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return al(this.componentDef.inputs)}get outputs(){return al(this.componentDef.outputs)}create(e,t,n,r){const o=(r=r||this.ngModule)?function(e,t){return{get:(n,r,o)=>{const s=e.get(n,tl,o);return s!==tl||r===tl?s:t.get(n,r,o)}}}(e,r.injector):e,s=o.get(Qu,qe),i=o.get(Yu,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",a=n?function(e,t,n){if(Ze(e))return e.selectRootElement(t,n===we.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,n,this.componentDef.encapsulation):eo(c,s.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),f={components:[],scheduler:en,clean:jo,playerHandler:null,flags:0},h=fo(0,-1,null,1,0,null,null,null,null,null),p=to(null,h,f,l,null,null,s,u,i,o);let g,m;xt(p,null);try{const e=function(e,t,n,r,o,s){const i=n[1];n[19]=e;const u=no(i,null,0,3,null,null),c=u.mergedAttrs=t.hostAttrs;null!==c&&(ti(u,c),null!==e&&(Ut(o,e,c),null!==u.classes&&gs(o,e,u.classes),null!==u.styles&&ps(o,e,u.styles)));const a=r.createRenderer(e,t),l=to(n,lo(t),null,t.onPush?64:16,n[19],u,r,a,void 0);return i.firstCreatePass&&(hn(an(u,n),i,t.type),_o(i,u),Do(u,n.length,1)),Oo(n,l),n[19]=l}(a,this.componentDef,p,s,u);if(a)if(n)Ut(u,a,["ng-version",Xu.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,o=2;for(;r0&&gs(u,a,t.join(" "))}m=Ye(p[1],0),t&&(m.projection=t.map(e=>Array.from(e))),g=function(e,t,n,r,o){const s=n[1],i=function(e,t,n){const r=dt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),bo(e,r,1),Eo(e,t,n));const o=wn(t,e,t.length-1,r);Ar(o,t);const s=We(r,t);return s&&Ar(s,t),o}(s,n,t);r.components.push(i),e[8]=i,o&&o.forEach(e=>e(i,t)),t.contentQueries&&t.contentQueries(1,i,n.length-1);const u=dt();if(s.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Tt(u.index-19);const e=n[1];yo(e,t),wo(e,n,t.hostVars),vo(t,i)}return i}(e,this.componentDef,p,f,[vu]),ro(h,p,null)}finally{St()}const y=new fl(this.componentType,g,_s(Zu,m,p),p,m);return n&&!d||(y.hostView._tViewNode.child=m),y}}class fl extends Pu{constructor(e,t,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new ys(r),this.hostView._tViewNode=function(e,t,n,r){let o=e.node;return null==o&&(e.node=o=ho(0,null,2,-1,null,null)),r[6]=o}(r[1],0,0,r),this.componentType=e}get injector(){return new _n(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const hl=void 0;var pl=["en",[["a","p"],["AM","PM"],hl],[["AM","PM"],hl,hl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],hl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],hl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",hl,"{1} 'at' {0}",hl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let gl={};function ml(e,t,n){"string"!=typeof t&&(n=t,t=e[_l.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),gl[t]=e,n&&(gl[t][_l.ExtraData]=n)}function yl(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=bl(t);if(n)return n;const r=t.split("-")[0];if(n=bl(r),n)return n;if("en"===r)return pl;throw new Error(`Missing locale data for the locale "${e}".`)}function wl(e){return yl(e)[_l.CurrencyCode]||null}function vl(e){return yl(e)[_l.PluralCase]}function bl(e){return e in gl||(gl[e]=j.ng&&j.ng.common&&j.ng.common.locales&&j.ng.common.locales[e]),gl[e]}const _l=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.Directionality]="Directionality",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Cl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Dl=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,El=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,xl=/\ufffd(\d+):?\d*\ufffd/gi,Al=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Fl=/\[(\ufffd.+?\ufffd?)\]/,Il=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,kl=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Sl=/{([A-Z0-9_]+)}/g,Nl=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Tl=/\/\*/,Ol=/\d+\:(\d+)/;function Ml(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let s;for(o.lastIndex=0;s=o.exec(e);){const o=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=e.substring(t,o);Cl.test(n)?r.push(Rl(n)):r.push(n),t=o+1}}else{if(0==n.length){const n=e.substring(t,o);r.push(n),t=o+1}n.push("{")}}const i=e.substring(t);return r.push(i),r}function Rl(e){const t=[],n=[];let r=1,o=0;const s=Ml(e=e.replace(Cl,(function(e,t,n){return r="select"===n?0:1,o=parseInt(t.substr(1),10),""})));for(let i=0;in.length&&n.push(o)}return{type:r,mainBinding:o,cases:t,values:n}}function Vl(e){let t,n,r="",o=0,s=!1;for(;null!==(t=Dl.exec(e));)s?t[0]===`\ufffd/*${n}\ufffd`&&(o=t.index,s=!1):(r+=e.substring(o,t.index+t[0].length),n=t[1],s=!0);return r+=e.substr(o),r}function Pl(e,t,n,r=null){const o=[null,null],s=e.split(xl);let i=0;for(let u=0;u{const s=r||o,i=e[s]||[];if(i.length||(s.split("|").forEach(e=>{const t=e.match(Ol),n=t?parseInt(t[1],10):0,r=Tl.test(e);i.push([n,r,e])}),e[s]=i),!i.length)throw new Error(`i18n postprocess: unmatched placeholder - ${s}`);const u=t[t.length-1];let c=0;for(let e=0;et.hasOwnProperty(r)?`${n}${t[r]}${i}`:e),n=n.replace(Sl,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(Nl,(e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e}),n):n}function ql(e,t,n,r,o,s){const i=dt();t[n+19]=o;const u=no(e,t[6],n,r,s,null);return i&&i.next===u&&(i.next=null),u}function Ql(e,t,n,r){const o=r[11];let s=null,i=null;const u=[];for(let c=0;c>>17;let l;l=o===e?r[6]:Ye(n,o),i=zl(n,s,l,i,r);break;case 0:const d=a>=0,f=(d?a:~a)>>>3;u.push(f),i=s,s=Ye(n,f),s&&ft(s,d);break;case 5:i=s=Ye(n,a>>>3),ft(s,!1);break;case 4:const h=t[++c],p=t[++c];Ao(Ye(n,a>>>3),r,h,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${a}"`)}else switch(a){case qr:const e=t[++c],l=t[++c],d=o.createComment(e);i=s,s=ql(n,r,l,5,d,null),u.push(l),Ar(d,r),s.activeCaseIndex=null,pt();break;case Zr:const f=t[++c],h=t[++c];i=s,s=ql(n,r,h,3,o.createElement(f),f),u.push(h);break;default:throw new Error(`Unable to determine the type of mutate operation for "${a}"`)}}return pt(),u}function Gl(e,t,n,r){const o=Ye(e,n),s=Ge(n,t);s&&as(t[11],s);const i=Je(t,n);if(Ve(i)){const e=i;0!==o.type&&as(t[11],e[7])}r&&(o.flags|=64)}function Wl(e,t,n){(function(e,t,n){const r=at();Bl[++Ll]=e,ji(!0),r.firstCreatePass&&null===r.data[e+19]&&function(e,t,n,r,o){const s=t.blueprint.length-19;Ul=0;const i=dt(),u=ht()?i:i&&i.parent;let c=u&&u!==e[6]?u.index-19:n,a=0;$l[a]=c;const l=[];if(n>0&&i!==u){let e=i.index-19;ht()||(e=~e),l.push(e<<3|0)}const d=[],f=[],h=function(e,t){if("number"!=typeof t)return Vl(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Vl(e.substring(n,r))}}(r,o),p=(g=h,g.replace(sd," ")).split(El);var g;for(let m=0;m0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(let r=0;r>1),i++}}(at(),e),ji(!1)}()}function Kl(e,t){!function(e,t,n,r){const o=dt().index-19,s=[];for(let i=0;i>>2;let f,h,p;switch(3&a){case 1:const a=t[++l],g=t[++l];go(s,Ye(s,d),i,a,u,i[11],g,!1);break;case 0:zo(i,d,u);break;case 2:if(f=t[++l],h=n[f],p=Ye(s,d),null!==p.activeCaseIndex){const e=h.remove[p.activeCaseIndex];for(let t=0;t>>3,!1);break;case 6:const o=Ye(s,e[t+1]>>>3).activeCaseIndex;null!==o&&ae(n[r>>>3].remove[o],e)}}}const m=td(h,u);p.activeCaseIndex=-1!==m?m:null,m>-1&&(Ql(-1,h.create[m],s,i),c=!0);break;case 3:f=t[++l],h=n[f],p=Ye(s,d),null!==p.activeCaseIndex&&e(h.update[p.activeCaseIndex],n,r,o,s,i,c)}}}}a+=d}}(r,o,s,Yl,t,i),Yl=0,Jl=0}}function td(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){switch(vl(t)(e)){case 0:return"zero";case 1:return"one";case 2:return"two";case 3:return"few";case 4:return"many";default:return"other"}}(t,id);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return n}function nd(e,t,n,r){const o=[],s=[],i=[],u=[],c=[];for(let a=0;a null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(id=e.toLowerCase().replace(/_/g,"-"))}const cd=new Map;function ad(e,t){const n=cd.get(e);ld(e,n&&n.moduleType,t.moduleType),cd.set(e,t)}function ld(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${I(t)} vs ${I(t.name)}`)}class dd extends ue{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new cl(this);const n=Me(e),r=e[U]||null;r&&ud(r),this._bootstrapComponents=on(n.bootstrap),this._r3Injector=$s(e,t,[{provide:ue,useValue:this},{provide:$u,useValue:this.componentFactoryResolver}],I(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ks.THROW_IF_NOT_FOUND,n=g.Default){return e===Ks||e===ue||e===Q?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class fd extends ce{constructor(e){super(),this.moduleType=e,null!==Me(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;ld(e,cd.get(e),t),cd.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new dd(this.moduleType,e)}}function hd(e,t,n){const r=yt()+e,o=ct();return o[r]===Hr?ai(o,r,n?t.call(n):t()):function(e,t){return e[t]}(o,r)}function pd(e,t,n,r){return wd(ct(),yt(),e,t,n,r)}function gd(e,t,n,r,o){return vd(ct(),yt(),e,t,n,r,o)}function md(e,t,n,r,o,s){return function(e,t,n,r,o,s,i,u){const c=t+n;return function(e,t,n,r,o){const s=di(e,t,n,r);return li(e,t+2,o)||s}(e,c,o,s,i)?ai(e,c+3,u?r.call(u,o,s,i):r(o,s,i)):yd(e,c+3)}(ct(),yt(),e,t,n,r,o,s)}function yd(e,t){const n=e[t];return n===Hr?void 0:n}function wd(e,t,n,r,o,s){const i=t+n;return li(e,i,o)?ai(e,i+1,s?r.call(s,o):r(o)):yd(e,i+1)}function vd(e,t,n,r,o,s,i){const u=t+n;return di(e,u,o,s)?ai(e,u+2,i?r.call(i,o,s):r(o,s)):yd(e,u+2)}function bd(e,t){const n=at();let r;const o=e+19;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const s=r.factory||(r.factory=Oe(r.type)),i=ee(mi),u=s();return ee(i),function(e,t,n,r){const o=n+19;o>=e.data.length&&(e.data[o]=null,e.blueprint[o]=null),t[o]=r}(n,ct(),e,u),u}function _d(e,t,n){const r=ct(),o=Je(r,e);return Ed(r,Dd(r,e)?wd(r,yt(),t,o.transform,n,o):o.transform(n))}function Cd(e,t,n,r){const o=ct(),s=Je(o,e);return Ed(o,Dd(o,e)?vd(o,yt(),t,s.transform,n,r,s):s.transform(n,r))}function Dd(e,t){return e[1].data[t+19].pure}function Ed(e,t){return ii.isWrapped(t)&&(t=ii.unwrap(t),e[wt()]=Hr),t}class xd extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const u=super.subscribe(r,s,i);return e instanceof o.a&&e.add(u),u}}function Ad(){return this._results[ri()]()}class Fd{constructor(){this.dirty=!0,this._results=[],this.changes=new xd,this.length=0;const e=ri(),t=Fd.prototype;t[e]||(t[e]=Ad)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r0)o.push(u[t/2]);else{const s=i[t+1],u=n[-r];for(let t=9;t{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(ne(Wd,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const Yd=new q("AppId"),Jd={provide:Yd,useFactory:function(){return`${Xd()}${Xd()}${Xd()}`},deps:[]};function Xd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ef=new q("Platform Initializer"),tf=new q("Platform ID"),nf=new q("appBootstrapListener"),rf=new q("Application Packages Root URL");let of=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const sf=new q("LocaleId"),uf=new q("DefaultCurrencyCode"),cf=new q("Translations"),af=new q("TranslationsFormat"),lf=function(){var e={Error:0,Warning:1,Ignore:2};return e[e.Error]="Error",e[e.Warning]="Warning",e[e.Ignore]="Ignore",e}();class df{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const ff=function(e){return new fd(e)},hf=ff,pf=function(e){return Promise.resolve(ff(e))},gf=function(e){const t=ff(e),n=on(Me(e).declarations).reduce((e,t)=>{const n=Te(t);return n&&e.push(new dl(n)),e},[]);return new df(t,n)},mf=gf,yf=function(e){return Promise.resolve(gf(e))};let wf=(()=>{class e{constructor(){this.compileModuleSync=hf,this.compileModuleAsync=pf,this.compileModuleAndAllComponentsSync=mf,this.compileModuleAndAllComponentsAsync=yf}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const vf=new q("compilerOptions");class bf{}const _f=(()=>Promise.resolve(0))();function Cf(e){"undefined"==typeof Zone?_f.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Df{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xd(!1),this.onMicrotaskEmpty=new xd(!1),this.onStable=new xd(!1),this.onError=new xd(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=j.requestAnimationFrame,t=j.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(j,()=>{e.lastRequestAnimationFrameId=-1,Ff(e),Af(e)}),Ff(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,o,s,i,u)=>{try{return If(e),n.invokeTask(o,s,i,u)}finally{t&&"eventTask"===s.type&&t(),kf(e)}},onInvoke:(t,n,r,o,s,i,u)=>{try{return If(e),t.invoke(r,o,s,i,u)}finally{kf(e)}},onHasTask:(t,n,r,o)=>{t.hasTask(r,o),n===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Ff(e),Af(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,n,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Df.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Df.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,xf,Ef,Ef);try{return o.runTask(s,t,n)}finally{o.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Ef(){}const xf={};function Af(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ff(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function If(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function kf(e){e._nesting--,Af(e)}class Sf{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xd,this.onMicrotaskEmpty=new xd,this.onStable=new xd,this.onError=new xd}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}let Nf=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Df.assertNotInAngularZone(),Cf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Cf(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(ne(Df))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})(),Tf=(()=>{class e{constructor(){this._applications=new Map,Vf.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Vf.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();class Of{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function Mf(e){Vf=e}let Rf,Vf=new Of,Pf=function(e,t,n){const r=e.get(vf,[]).concat(t),o=new fd(n);if(0===Js.size)return Promise.resolve(o);const s=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(r.map(e=>e.providers));if(0===s.length)return Promise.resolve(o);const i=function(){const e=j.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),u=Ks.create({providers:s}).get(i.ResourceLoader);return function(e){const t=[],n=new Map;function r(e){let t=n.get(e);if(!t){const r=(e=>Promise.resolve(u.get(e)))(e);n.set(e,t=r.then(ei))}return t}return Js.forEach((e,n)=>{const o=[];e.templateUrl&&o.push(r(e.templateUrl).then(t=>{e.template=t}));const s=e.styleUrls,i=e.styles||(e.styles=[]),u=e.styles.length;s&&s.forEach((t,n)=>{i.push(""),o.push(r(t).then(r=>{i[u+n]=r,s.splice(s.indexOf(t),1),0==s.length&&(e.styleUrls=void 0)}))});const c=Promise.all(o).then(()=>function(e){Xs.delete(e)}(n));t.push(c)}),Js=new Map,Promise.all(t).then(()=>{})}().then(()=>o)};const jf=new q("AllowMultipleToken");class Bf{constructor(e,t){this.name=e,this.token=t}}function Lf(e,t,n=[]){const r=`Platform: ${t}`,o=new q(r);return(t=[])=>{let s=Hf();if(!s||s.injector.get(jf,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{const e=n.concat(t).concat({provide:o,useValue:!0},{provide:Vs,useValue:"platform"});!function(e){if(Rf&&!Rf.destroyed&&!Rf.injector.get(jf,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Rf=e.get($f);const t=e.get(ef,null);t&&t.forEach(e=>e())}(Ks.create({providers:e,name:r}))}return function(e){const t=Hf();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Hf(){return Rf&&!Rf.destroyed?Rf:null}let $f=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Sf:("zone.js"===e?void 0:e)||new Df({enableLongStackTrace:Un(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:Df,useValue:n}];return n.run(()=>{const t=Ks.create({providers:r,parent:this.injector,name:e.moduleType.name}),o=e.create(t),s=o.injector.get(An,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(()=>Zf(this._modules,o)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return Fi(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=o.injector.get(Kd);return e.runInitializers(),e.donePromise.then(()=>(ud(o.injector.get(sf,"en-US")||"en-US"),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,t=[]){const n=Uf({},t);return Pf(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(zf);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${I(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(ne(Ks))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Uf(e,t){return Array.isArray(t)?t.reduce(Uf,e):Object.assign(Object.assign({},e),t)}let zf=(()=>{class e{constructor(e,t,n,r,o,c){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Un(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Df.assertNotInAngularZone(),Cf(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Df.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(a,l.pipe(Object(u.a)()))}bootstrap(e,t){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.");let n;n=e instanceof ju?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ue),o=n.create(Ks.NULL,[],t||n.selector,r);o.onDestroy(()=>{this._unloadComponent(o)});const s=o.injector.get(Nf,null);return s&&o.injector.get(Tf).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Un()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Zf(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(nf,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Zf(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(ne(Df),ne(of),ne(Ks),ne(An),ne($u),ne(Kd))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Zf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qf{}class Qf{}const Gf={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Wf=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Gf}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("crnd")(t).then(e=>e[r]).then(e=>Kf(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+o]).then(e=>Kf(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(ne(wf),ne(Qf,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Kf(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Yf{constructor(e,t){this.name=e,this.callback=t}}class Jf{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Xf&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Xf extends Jf{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof Xf&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Xf&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Xf&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Xf)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}class eh{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new th(e):null}get injector(){return function(e){const t=mu(e,!1);return null===t?Ks.NULL:new _n(t.lView[1].data[t.nodeIndex],t.lView)}(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(gu(e)||function(e){const t=mu(e,!1);if(null===t)return null;let n,r=t.lView;for(;null===r[0]&&(n=$r(r));)r=n;return 512&r[2]?null:r[8]}(e))}get context(){return gu(this.nativeNode)||function(e){wu(e);const t=mu(e,!1);return null===t?null:t.lView[8]}(this.nativeNode)}get listeners(){return function(e){wu(e);const t=mu(e,!1);if(null===t)return[];const n=t.lView,r=n[7],o=n[1].cleanup,s=[];if(o&&r)for(let i=0;i=0?"dom":"output",h="boolean"==typeof d&&d;e==a&&s.push({element:e,name:c,callback:l,useCapture:h,type:f})}}return s.sort(yu),s}(this.nativeNode).filter(e=>"dom"===e.type)}get references(){return function(e){const t=mu(e,!1);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let o=0;o1){let r=i[1];for(let e=1;ee[t]=!0),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n{if(o.name===e){const e=o.callback;e.call(n,t),r.push(e)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const o=e("__ngUnwrap__");return-1===r.indexOf(o)&&o.call(n,t)}})}}function nh(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function rh(e,t,n,r){const o=mu(e.nativeNode,!1);null!==o?oh(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):uh(e.nativeNode,t,n,r)}function oh(e,t,n,r,o,s){const i=Ke(e,t);if(3===e.type||4===e.type){if(ih(i,n,r,o,s),je(e)){const i=Xe(e.index,t);i&&i[1].firstChild&&oh(i[1].firstChild,i,n,r,o,s)}else e.child&&oh(e.child,t,n,r,o,s),i&&uh(i,n,r,o);const u=t[e.index];Ve(u)&&sh(u,n,r,o,s)}else if(0===e.type){const i=t[e.index];ih(i[7],n,r,o,s),sh(i,n,r,o,s)}else if(1===e.type){const i=t[16],u=i[6].projection[e.projection];if(Array.isArray(u))for(let e of u)ih(e,n,r,o,s);else if(u){const e=i[3];oh(e[1].data[u.index],e,n,r,o,s)}}else e.child&&oh(e.child,t,n,r,o,s);if(s!==i){const i=4&e.flags?e.projectionNext:e.next;i&&oh(i,t,n,r,o,s)}}function sh(e,t,n,r,o){for(let s=9;s{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Kd,useClass:Kd,deps:[[new f,Wd]]},{provide:wf,useClass:wf,deps:[]},Jd,{provide:lc,useFactory:function(){return hc},deps:[]},{provide:dc,useFactory:function(){return pc},deps:[]},{provide:sf,useFactory:function(e){return ud(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new d(sf),new f,new p]]},{provide:uf,useValue:"USD"}];let gh=(()=>{class e{constructor(e){}}return e.\u0275mod=Fe({type:e}),e.\u0275inj=v({factory:function(t){return new(t||e)(ne(zf))},providers:ph}),e})();function mh(e,t,n,r,o,s){e|=1;const{matchedQueries:i,references:u,matchedQueryIds:c}=Gc(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:i,matchedQueryIds:c,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Jc(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Sc},provider:null,text:null,query:null,ngContent:null}}function yh(e,t,n,r,o,s,i=[],u,c,a,l,d){a||(a=Sc);const{matchedQueries:f,references:h,matchedQueryIds:p}=Gc(n);let g=null,m=null;s&&([g,m]=sa(s)),u=u||[];const y=[];for(let b=0;b{const[n,r]=sa(e);return[n,r,t]});return d=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==we.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${Rc++}`:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(d),l&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:f,matchedQueryIds:p,references:h,ngContentIndex:r,childCount:o,bindings:y,bindingFlags:ia(y),outputs:w,element:{ns:g,name:m,attrs:v,template:null,componentProvider:null,componentView:l||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:a||Sc},provider:null,text:null,query:null,ngContent:null}}function wh(e,t,n){const r=n.element,o=e.root.selectorOrNode,s=e.renderer;let i;if(e.parent||!o){i=r.name?s.createElement(r.name,r.ns):s.createComment("");const o=Kc(e,t,n);o&&s.appendChild(o,i)}else i=s.selectRootElement(o,!!r.componentRendererType&&r.componentRendererType.encapsulation===we.ShadowDom);if(r.attrs)for(let u=0;uHc(e,t,n,r)}function _h(e,t,n,r){if(!Pc(e,t,n,r))return!1;const o=t.bindings[n],s=xc(e,t.nodeIndex),i=s.renderElement,u=o.name;switch(15&o.flags){case 1:!function(e,t,n,r,o,s){const i=t.securityContext;let u=i?e.root.sanitizer.sanitize(i,s):s;u=null!=u?u.toString():null;const c=e.renderer;null!=s?c.setAttribute(n,o,u,r):c.removeAttribute(n,o,r)}(e,o,i,o.ns,u,r);break;case 2:!function(e,t,n,r){const o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}(e,i,u,r);break;case 4:!function(e,t,n,r,o){let s=e.root.sanitizer.sanitize(pr.STYLE,o);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const i=e.renderer;null!=s?i.setStyle(n,r,s):i.removeStyle(n,r)}(e,o,i,u,r);break;case 8:!function(e,t,n,r,o){const s=t.securityContext;let i=s?e.root.sanitizer.sanitize(s,o):o;e.renderer.setProperty(n,r,i)}(33554432&t.flags&&32&o.flags?s.componentView:e,o,i,u,r)}return!0}function Ch(e,t,n){let r=[];for(let o in n)r.push({propName:o,bindingType:n[o]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Qc(t),bindings:r},ngContent:null}}function Dh(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&qc(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let o=0;o<=r;o++){const r=e.def.nodes[o];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Ic(e,o).setDirty(),!(1&r.flags&&o+r.childCount0)a=e,Ph(e)||(l=e);else for(;a&&p===a.nodeIndex+a.childCount;){const e=a.parent;e&&(e.childFlags|=a.childFlags,e.childMatchedQueries|=a.childMatchedQueries),a=e,l=a&&Ph(a)?a.renderParent:a}}return{factory:null,nodeFlags:i,rootNodeFlags:u,nodeMatchedQueries:c,flags:e,nodes:t,updateDirectives:n||Sc,updateRenderer:r||Sc,handleEvent:(e,n,r,o)=>t[n].element.handleEvent(e,r,o),bindingCount:o,outputCount:s,lastRenderRootNode:h}}function Ph(e){return 0!=(1&e.flags)&&null===e.element.name}function jh(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Bh(e,t,n,r){const o=$h(e.root,e.renderer,e,t,n);return Uh(o,e.component,r),zh(o),o}function Lh(e,t,n){const r=$h(e,e.renderer,null,null,t);return Uh(r,n,n),zh(r),r}function Hh(e,t,n,r){const o=t.element.componentRendererType;let s;return s=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,$h(e.root,s,e,t.element.componentProvider,n)}function $h(e,t,n,r,o){const s=new Array(o.nodes.length),i=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:i,initIndex:-1}}function Uh(e,t,n){e.component=t,e.context=n}function zh(e){let t;Zc(e)&&(t=xc(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let o=0;o0&&_h(e,t,0,n)&&(h=!0),f>1&&_h(e,t,1,r)&&(h=!0),f>2&&_h(e,t,2,o)&&(h=!0),f>3&&_h(e,t,3,s)&&(h=!0),f>4&&_h(e,t,4,i)&&(h=!0),f>5&&_h(e,t,5,u)&&(h=!0),f>6&&_h(e,t,6,c)&&(h=!0),f>7&&_h(e,t,7,a)&&(h=!0),f>8&&_h(e,t,8,l)&&(h=!0),f>9&&_h(e,t,9,d)&&(h=!0),h}(e,t,n,r,o,s,i,u,c,a,l,d);case 2:return function(e,t,n,r,o,s,i,u,c,a,l,d){let f=!1;const h=t.bindings,p=h.length;if(p>0&&Pc(e,t,0,n)&&(f=!0),p>1&&Pc(e,t,1,r)&&(f=!0),p>2&&Pc(e,t,2,o)&&(f=!0),p>3&&Pc(e,t,3,s)&&(f=!0),p>4&&Pc(e,t,4,i)&&(f=!0),p>5&&Pc(e,t,5,u)&&(f=!0),p>6&&Pc(e,t,6,c)&&(f=!0),p>7&&Pc(e,t,7,a)&&(f=!0),p>8&&Pc(e,t,8,l)&&(f=!0),p>9&&Pc(e,t,9,d)&&(f=!0),f){let f=t.text.prefix;p>0&&(f+=Rh(n,h[0])),p>1&&(f+=Rh(r,h[1])),p>2&&(f+=Rh(o,h[2])),p>3&&(f+=Rh(s,h[3])),p>4&&(f+=Rh(i,h[4])),p>5&&(f+=Rh(u,h[5])),p>6&&(f+=Rh(c,h[6])),p>7&&(f+=Rh(a,h[7])),p>8&&(f+=Rh(l,h[8])),p>9&&(f+=Rh(d,h[9]));const g=Ec(e,t.nodeIndex).renderText;e.renderer.setValue(g,f)}return f}(e,t,n,r,o,s,i,u,c,a,l,d);case 16384:return function(e,t,n,r,o,s,i,u,c,a,l,d){const f=Ac(e,t.nodeIndex),h=f.instance;let p=!1,g=void 0;const m=t.bindings.length;return m>0&&Vc(e,t,0,n)&&(p=!0,g=ol(e,f,t,0,n,g)),m>1&&Vc(e,t,1,r)&&(p=!0,g=ol(e,f,t,1,r,g)),m>2&&Vc(e,t,2,o)&&(p=!0,g=ol(e,f,t,2,o,g)),m>3&&Vc(e,t,3,s)&&(p=!0,g=ol(e,f,t,3,s,g)),m>4&&Vc(e,t,4,i)&&(p=!0,g=ol(e,f,t,4,i,g)),m>5&&Vc(e,t,5,u)&&(p=!0,g=ol(e,f,t,5,u,g)),m>6&&Vc(e,t,6,c)&&(p=!0,g=ol(e,f,t,6,c,g)),m>7&&Vc(e,t,7,a)&&(p=!0,g=ol(e,f,t,7,a,g)),m>8&&Vc(e,t,8,l)&&(p=!0,g=ol(e,f,t,8,l,g)),m>9&&Vc(e,t,9,d)&&(p=!0,g=ol(e,f,t,9,d,g)),g&&h.ngOnChanges(g),65536&t.flags&&Dc(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),p}(e,t,n,r,o,s,i,u,c,a,l,d);case 32:case 64:case 128:return function(e,t,n,r,o,s,i,u,c,a,l,d){const f=t.bindings;let h=!1;const p=f.length;if(p>0&&Pc(e,t,0,n)&&(h=!0),p>1&&Pc(e,t,1,r)&&(h=!0),p>2&&Pc(e,t,2,o)&&(h=!0),p>3&&Pc(e,t,3,s)&&(h=!0),p>4&&Pc(e,t,4,i)&&(h=!0),p>5&&Pc(e,t,5,u)&&(h=!0),p>6&&Pc(e,t,6,c)&&(h=!0),p>7&&Pc(e,t,7,a)&&(h=!0),p>8&&Pc(e,t,8,l)&&(h=!0),p>9&&Pc(e,t,9,d)&&(h=!0),h){const h=Fc(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=[],p>0&&g.push(n),p>1&&g.push(r),p>2&&g.push(o),p>3&&g.push(s),p>4&&g.push(i),p>5&&g.push(u),p>6&&g.push(c),p>7&&g.push(a),p>8&&g.push(l),p>9&&g.push(d);break;case 64:g={},p>0&&(g[f[0].name]=n),p>1&&(g[f[1].name]=r),p>2&&(g[f[2].name]=o),p>3&&(g[f[3].name]=s),p>4&&(g[f[4].name]=i),p>5&&(g[f[5].name]=u),p>6&&(g[f[6].name]=c),p>7&&(g[f[7].name]=a),p>8&&(g[f[8].name]=l),p>9&&(g[f[9].name]=d);break;case 128:const e=n;switch(p){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,o);break;case 4:g=e.transform(r,o,s);break;case 5:g=e.transform(r,o,s,i);break;case 6:g=e.transform(r,o,s,i,u);break;case 7:g=e.transform(r,o,s,i,u,c);break;case 8:g=e.transform(r,o,s,i,u,c,a);break;case 9:g=e.transform(r,o,s,i,u,c,a,l);break;case 10:g=e.transform(r,o,s,i,u,c,a,l,d)}}h.value=g}return h}(e,t,n,r,o,s,i,u,c,a,l,d);default:throw"unreachable"}}(e,t,r,o,s,i,u,c,a,l,d,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let o=0;o0&&jc(e,t,0,n),f>1&&jc(e,t,1,r),f>2&&jc(e,t,2,o),f>3&&jc(e,t,3,s),f>4&&jc(e,t,4,i),f>5&&jc(e,t,5,u),f>6&&jc(e,t,6,c),f>7&&jc(e,t,7,a),f>8&&jc(e,t,8,l),f>9&&jc(e,t,9,d)}(e,t,r,o,s,i,u,c,a,l,d,f):function(e,t,n){for(let r=0;r{const r=dp.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{fp.forEach((r,o)=>{b(o).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);fp.forEach((r,o)=>{if(t.has(b(o).providedIn)){let t={token:o,flags:r.flags|(n?4096:0),deps:Wc(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Tc(o)]=t}})}}(e=e.factory(()=>Sc)),e):e}(r))}const dp=new Map,fp=new Map,hp=new Map;function pp(e){let t;dp.set(e.token,e),"function"==typeof e.token&&(t=b(e.token))&&"function"==typeof t.providedIn&&fp.set(e.token,e)}function gp(e,t){const n=Jc(t.viewDefFactory),r=Jc(n.nodes[0].element.componentView);hp.set(e,r)}function mp(){dp.clear(),fp.clear(),hp.clear()}function yp(e){if(0===dp.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rSc);for(let r=0;r"-"+e[1].toLowerCase())}`)]=Er(u))}const r=t.parent,u=xc(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(u,t,r):e.renderer.removeAttribute(u,t)}else e.renderer.setValue(u,`bindings=${JSON.stringify(n,null,2)}`)}}var o,s}function Tp(e,t,n,r){Wh(e,t,n,...r)}function Op(e,t){for(let n=t;n(s++,s===o?e.error.bind(e,...t):Sc)),snew Rp(e,t),handleEvent:Ip,updateDirectives:kp,updateRenderer:Sp}:{setCurrentNode:()=>{},createRootView:sp,createEmbeddedView:Bh,createComponentView:Hh,createNgModuleRef:Va,overrideProvider:Sc,overrideComponentView:Sc,clearOverrides:Sc,checkAndUpdateView:qh,checkNoChangesView:Zh,destroyView:Yh,createDebugContext:(e,t)=>new Rp(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?wp:vp,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?wp:vp,e)};kc.setCurrentNode=e.setCurrentNode,kc.createRootView=e.createRootView,kc.createEmbeddedView=e.createEmbeddedView,kc.createComponentView=e.createComponentView,kc.createNgModuleRef=e.createNgModuleRef,kc.overrideProvider=e.overrideProvider,kc.overrideComponentView=e.overrideComponentView,kc.clearOverrides=e.clearOverrides,kc.checkAndUpdateView=e.checkAndUpdateView,kc.checkNoChangesView=e.checkNoChangesView,kc.destroyView=e.destroyView,kc.resolveDep=nl,kc.createDebugContext=e.createDebugContext,kc.handleEvent=e.handleEvent,kc.updateDirectives=e.updateDirectives,kc.updateRenderer=e.updateRenderer,kc.dirtyParentQueries=Dh}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const o in e.providersByKey)r[o]=e.providersByKey[o];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:r}}(Jc(this._ngModuleDefFactory));return kc.createNgModuleRef(this.moduleType,e||Ks.NULL,this._bootstrapComponents,t)}}},gRHU:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("2fFW"),o=n("NJ4a");const s={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete(){}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("HDdC"),o=n("quSY");function s(e,t){return new r.a(n=>{const r=new o.a;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},jhN1:function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return R}));var r=n("ofXK"),o=n("fXoL");class s extends r.L{constructor(){super()}supportsDOMEvents(){return!0}}class i extends s{static makeCurrent(){Object(r.P)(new i)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==t?null:(n=t,u||(u=document.createElement("a")),u.setAttribute("href",n),"/"===u.pathname.charAt(0)?u.pathname:"/"+u.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(r.O)(document.cookie,e)}}let u,c=null;const a=new o.v("TRANSITION_ID"),l=[{provide:o.d,useFactory:function(e,t,n){return()=>{n.get(o.e).donePromise.then(()=>{const n=Object(r.N)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[a,r.e,o.w],multi:!0}];class d{static init(){Object(o.gb)(new d)}addToWindow(e){o.Ib.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.Ib.getAllAngularTestabilities=()=>e.getAllTestabilities(),o.Ib.getAllAngularRootElements=()=>e.getAllRootElements(),o.Ib.frameworkStabilizers||(o.Ib.frameworkStabilizers=[]),o.Ib.frameworkStabilizers.push(e=>{const t=o.Ib.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const o=e.getTestability(t);return null!=o?o:n?Object(r.N)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const f=new o.v("EventManagerPlugins");let h=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})(),m=(()=>{class e extends g{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(r.N)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(o.Mc(r.e))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})();const y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},w=/%COMP%/g;function v(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let _=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case o.Y.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new D(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case o.Y.Native:case o.Y.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=v(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(o.Mc(h),o.Mc(m),o.Mc(o.c))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})();class C{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(y[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const o=y[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=y[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&o.N.DashCase?e.style.setProperty(t,n,r&o.N.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&o.N.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,b(n)):this.eventManager.addEventListener(e,t,b(n))}}class D extends C{constructor(e,t,n,r){super(e),this.component=n;const o=v(r+"-"+n.id,n.styles,[]);t.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(w,r+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(w,e)}(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class E extends C{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===o.Y.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=v(r.id,r.styles,[]);for(let o=0;o{class e extends p{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(o.Mc(r.e))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})(),A=(()=>{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})();const F=["alt","control","meta","shift"],I={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},k={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},S={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let N=(()=>{class e extends p{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,o){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.N)().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(n.pop());let s="";if(F.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=o,0!=n.length||0===o.length)return null;const i={};return i.domEventName=r,i.fullKey=s,i}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&k.hasOwnProperty(t)&&(t=k[t]))}return I[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),F.forEach(r=>{r!=n&&(0,S[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return o=>{e.getEventFullKey(o)===t&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(o.Mc(r.e))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})(),T=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o.uc)({factory:function(){return Object(o.Mc)(M)},token:e,providedIn:"root"}),e})();function O(e){return new M(e.get(r.e))}let M=(()=>{class e extends T{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case o.P.NONE:return t;case o.P.HTML:return Object(o.rb)(t,"HTML")?Object(o.fc)(t):Object(o.ob)(this._doc,String(t));case o.P.STYLE:return Object(o.rb)(t,"Style")?Object(o.fc)(t):Object(o.pb)(t);case o.P.SCRIPT:if(Object(o.rb)(t,"Script"))return Object(o.fc)(t);throw new Error("unsafe value used in a script context");case o.P.URL:return Object(o.Hb)(t),Object(o.rb)(t,"URL")?Object(o.fc)(t):Object(o.qb)(String(t));case o.P.RESOURCE_URL:if(Object(o.rb)(t,"ResourceURL"))return Object(o.fc)(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(o.tb)(e)}bypassSecurityTrustStyle(e){return Object(o.wb)(e)}bypassSecurityTrustScript(e){return Object(o.vb)(e)}bypassSecurityTrustUrl(e){return Object(o.xb)(e)}bypassSecurityTrustResourceUrl(e){return Object(o.ub)(e)}}return e.\u0275fac=function(t){return new(t||e)(o.Mc(r.e))},e.\u0275prov=Object(o.uc)({factory:function(){return O(Object(o.Mc)(o.t))},token:e,providedIn:"root"}),e})();const R=[{provide:o.I,useValue:r.M},{provide:o.J,useValue:function(){i.makeCurrent(),d.init()},multi:!0},{provide:r.e,useFactory:function(){return Object(o.bc)(document),document},deps:[]}],V=[[],{provide:o.lb,useValue:"root"},{provide:o.r,useFactory:function(){return new o.r},deps:[]},{provide:f,useClass:x,multi:!0,deps:[r.e,o.F,o.I]},{provide:f,useClass:N,multi:!0,deps:[r.e]},[],{provide:_,useClass:_,deps:[h,m,o.c]},{provide:o.M,useExisting:_},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[r.e]},{provide:o.V,useClass:o.V,deps:[o.F]},{provide:h,useClass:h,deps:[f,o.F]},[]];let P=(()=>{class e{constructor(e){if(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.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:o.c,useValue:t.appId},{provide:a,useExisting:o.c},l]}}}return e.\u0275mod=o.wc({type:e}),e.\u0275inj=o.vc({factory:function(t){return new(t||e)(o.Mc(e,12))},providers:V,imports:[r.c,o.f]}),e})();"undefined"!=typeof window&&window},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");class o extends r.a{notifyNext(e,t,n,r,o){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");function o(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new i(e,this.project,this.thisArg))}}class i extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n("KqfI");function o(...e){return s(e)}function s(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:r.a}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},ngJS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>t=>{for(let n=0,r=e.length;n{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.uc)({factory:l,token:e,providedIn:"platform"}),e})();function l(){return Object(r.Mc)(f)}const d=new r.v("Location Initialized");let f=(()=>{class e extends a{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){h()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){h()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(r.Mc(c))},e.\u0275prov=Object(r.uc)({factory:p,token:e,providedIn:"platform"}),e})();function h(){return!!window.history.pushState}function p(){return new f(Object(r.Mc)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function y(e){return e&&"?"!==e[0]?"?"+e:e}let w=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.uc)({factory:v,token:e,providedIn:"root"}),e})();function v(e){const t=Object(r.Mc)(c).location;return new _(Object(r.Mc)(a),t&&t.origin||"")}const b=new r.v("appBaseHref");let _=(()=>{class e extends w{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const o=this.prepareExternalUrl(n+y(r));this._platformLocation.pushState(e,t,o)}replaceState(e,t,n,r){const o=this.prepareExternalUrl(n+y(r));this._platformLocation.replaceState(e,t,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r.Mc(a),r.Mc(b,8))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e extends w{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let o=this.prepareExternalUrl(n+y(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)}replaceState(e,t,n,r){let o=this.prepareExternalUrl(n+y(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r.Mc(a),r.Mc(b,8))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e})(),D=(()=>{class e{constructor(e,t){this._subject=new r.s,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(x(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+y(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,x(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+y(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+y(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(r.Mc(w),r.Mc(a))},e.normalizeQueryParams=y,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(r.uc)({factory:E,token:e,providedIn:"root"}),e})();function E(){return new D(Object(r.Mc)(w),Object(r.Mc)(a))}function x(e){return e.replace(/\/index.html$/,"")}const A={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]},F=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),I=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),k=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),S=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),N=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),T=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function O(e,t){return L(Object(r.Db)(e)[r.mb.DateFormat],t)}function M(e,t){return L(Object(r.Db)(e)[r.mb.TimeFormat],t)}function R(e,t){return L(Object(r.Db)(e)[r.mb.DateTimeFormat],t)}function V(e,t){const n=Object(r.Db)(e),o=n[r.mb.NumberSymbols][t];if(void 0===o){if(t===T.CurrencyDecimal)return n[r.mb.NumberSymbols][T.Decimal];if(t===T.CurrencyGroup)return n[r.mb.NumberSymbols][T.Group]}return o}function P(e,t){return Object(r.Db)(e)[r.mb.NumberFormats][t]}const j=r.Gb;function B(e){if(!e[r.mb.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[r.mb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function L(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function H(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const $=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},z=/((?:[^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]*)/,Z=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),q=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),Q=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function G(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function W(e,t,n="-",r,o){let s="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,s=n));let i=String(e);for(;i.length0||u>-n)&&(u+=n),e===q.Hours)0===u&&-12===n&&(u=12);else if(e===q.FractionalSeconds)return c=t,W(u,3).substr(0,c);var c;const a=V(i,T.MinusSign);return W(u,t,a,r,o)}}function Y(e,t,n=k.Format,o=!1){return function(s,i){return function(e,t,n,o,s,i){switch(n){case Q.Months:return function(e,t,n){const o=Object(r.Db)(e),s=L([o[r.mb.MonthsFormat],o[r.mb.MonthsStandalone]],t);return L(s,n)}(t,s,o)[e.getMonth()];case Q.Days:return function(e,t,n){const o=Object(r.Db)(e),s=L([o[r.mb.DaysFormat],o[r.mb.DaysStandalone]],t);return L(s,n)}(t,s,o)[e.getDay()];case Q.DayPeriods:const u=e.getHours(),c=e.getMinutes();if(i){const e=function(e){const t=Object(r.Db)(e);return B(t),(t[r.mb.ExtraData][2]||[]).map(e=>"string"==typeof e?H(e):[H(e[0]),H(e[1])])}(t),n=function(e,t,n){const o=Object(r.Db)(e);B(o);const s=L([o[r.mb.ExtraData][0],o[r.mb.ExtraData][1]],t)||[];return L(s,n)||[]}(t,s,o);let i;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:r,minutes:o}=e[0],{hours:s,minutes:a}=e[1];u>=r&&c>=o&&(u0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Z.Short:return(o>=0?"+":"")+W(i,2,s)+W(Math.abs(o%60),2,s);case Z.ShortGMT:return"GMT"+(o>=0?"+":"")+W(i,1,s);case Z.Long:return"GMT"+(o>=0?"+":"")+W(i,2,s)+":"+W(Math.abs(o%60),2,s);case Z.Extended:return 0===r?"Z":(o>=0?"+":"")+W(i,2,s)+":"+W(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function X(e,t=!1){return function(n,r){let o;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();o=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,0,1).getDay();return new Date(e,0,1+(t<=4?4:11)-t)}(n.getFullYear()),t=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-e.getTime();o=1+Math.round(t/6048e5)}var s;return W(o,e,V(r,T.MinusSign))}}const ee={};function te(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ne(e){return e instanceof Date&&!isNaN(e.valueOf())}const re=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function oe(e,t,n,r,o,s,i=!1){let u="",c=!1;if(isFinite(e)){let a=function(e){let t,n,r,o,s,i=Math.abs(e)+"",u=0;for((n=i.indexOf("."))>-1&&(i=i.replace(".","")),(r=i.search(/e/i))>0?(n<0&&(n=r),n+=+i.slice(r+1),i=i.substring(0,r)):n<0&&(n=i.length),r=0;"0"===i.charAt(r);r++);if(r===(s=i.length))t=[0],n=1;else{for(s--;"0"===i.charAt(s);)s--;for(n-=r,t=[],o=0;r<=s;r++,o++)t[o]=Number(i.charAt(r))}return n>22&&(t=t.splice(0,21),u=n-1,n=1),{digits:t,exponent:u,integerLen:n}}(e);i&&(a=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(a));let l=t.minInt,d=t.minFrac,f=t.maxFrac;if(s){const e=s.match(re);if(null===e)throw new Error(`${s} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(l=ie(t)),null!=n&&(d=ie(n)),null!=r?f=ie(r):null!=n&&d>f&&(f=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,o=r.length-e.integerLen;const s=Math.min(Math.max(t,o),n);let i=s+e.integerLen,u=r[i];if(i>0){r.splice(Math.max(e.integerLen,i));for(let e=i;e=5)if(i-1<0){for(let t=0;t>i;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[i-1]++;for(;o=a?r.pop():c=!1),t>=10?1:0}),0);l&&(r.unshift(l),e.integerLen++)}(a,d,f);let h=a.digits,p=a.integerLen;const g=a.exponent;let m=[];for(c=h.every(e=>!e);p0?m=h.splice(p,h.length):(m=h,h=[0]);const y=[];for(h.length>=t.lgSize&&y.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)y.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&y.unshift(h.join("")),u=y.join(V(n,r)),m.length&&(u+=V(n,o)+m.join("")),g&&(u+=V(n,T.Exponential)+"+"+g)}else u=V(n,T.Infinity);return u=e<0&&!c?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf,u}function se(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),o=r[0],s=r[1],i=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],u=i[0],c=i[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(let l=0;l-1)return o;if(o=n.getPluralCategory(e,r),t.indexOf(o)>-1)return o;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}let ae=(()=>{class e extends ue{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(j(t||this.locale)(e)){case I.Zero:return"zero";case I.One:return"one";case I.Two:return"two";case I.Few:return"few";case I.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(r.Mc(r.z))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e})();function le(e,t,n){return Object(r.Zb)(e,t,n)}function de(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,o]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let fe=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Lb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r.cc)(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.x),r.yc(r.y),r.yc(r.q),r.yc(r.L))},e.\u0275dir=r.tc({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})(),he=(()=>{class e{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const e=t.get(r.D);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(e.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.n)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X))},e.\u0275dir=r.tc({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r.ic]}),e})();class pe{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ge=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.eb)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new pe(null,this._ngForOf,-1,-1),null===r?void 0:r),o=new me(e,n);t.push(o)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const o=this._viewContainer.get(n);this._viewContainer.move(o,r);const s=new me(e,o);t.push(s)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X),r.yc(r.U),r.yc(r.x))},e.\u0275dir=r.tc({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class me{constructor(e,t){this.record=e,this.view=t}}let ye=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new we,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ve("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ve("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X),r.yc(r.U))},e.\u0275dir=r.tc({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class we{constructor(){this.$implicit=null,this.ngIf=null}}function ve(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r.cc)(t)}'.`)}class be{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let _e=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new be(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X),r.yc(r.U),r.yc(_e,1))},e.\u0275dir=r.tc({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),De=(()=>{class e{constructor(e,t,n){n._addDefault(new be(e,t))}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X),r.yc(r.U),r.yc(_e,1))},e.\u0275dir=r.tc({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Ee=(()=>{class e{constructor(e){this._localization=e,this._caseViews={}}set ngPlural(e){this._switchValue=e,this._updateView()}addCase(e,t){this._caseViews[e]=t}_updateView(){this._clearViews();const e=Object.keys(this._caseViews),t=ce(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}}return e.\u0275fac=function(t){return new(t||e)(r.yc(ue))},e.\u0275dir=r.tc({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),e})(),xe=(()=>{class e{constructor(e,t,n,r){this.value=e;const o=!isNaN(Number(e));r.addCase(o?`=${e}`:e,new be(n,t))}}return e.\u0275fac=function(t){return new(t||e)(r.Nc("ngPluralCase"),r.yc(r.U),r.yc(r.X),r.yc(Ee,1))},e.\u0275dir=r.tc({type:e,selectors:[["","ngPluralCase",""]]}),e})(),Ae=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.q),r.yc(r.y),r.yc(r.L))},e.\u0275dir=r.tc({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Fe=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X))},e.\u0275dir=r.tc({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.ic]}),e})();function Ie(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(r.cc)(e)}'`)}class ke{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Se{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Ne=new Se,Te=new ke;let Oe=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):Object(r.Ob)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.Z.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Object(r.Nb)(t))return Ne;if(Object(r.Mb)(t))return Te;throw Ie(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(r.Oc())},e.\u0275pipe=r.xc({name:"async",type:e,pure:!1}),e})(),Me=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw Ie(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"lowercase",type:e,pure:!0}),e})();const Re=/(?:[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;let Ve=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw Ie(e,t);return t.replace(Re,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"titlecase",type:e,pure:!0}),e})(),Pe=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw Ie(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"uppercase",type:e,pure:!0}),e})(),je=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",o,s){if(null==t||""===t||t!=t)return null;try{return function(e,t,n,o){let s=function(e){if(ne(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match($))return function(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const i=Number(e[4]||0)-n,u=Number(e[5]||0)-r,c=Number(e[6]||0),a=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,i,u,c,a),t}(n)}const t=new Date(e);if(!ne(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const o=function(e){return Object(r.Db)(e)[r.mb.LocaleId]}(t);if(U[o]=U[o]||{},U[o][n])return U[o][n];let s="";switch(n){case"shortDate":s=O(t,N.Short);break;case"mediumDate":s=O(t,N.Medium);break;case"longDate":s=O(t,N.Long);break;case"fullDate":s=O(t,N.Full);break;case"shortTime":s=M(t,N.Short);break;case"mediumTime":s=M(t,N.Medium);break;case"longTime":s=M(t,N.Long);break;case"fullTime":s=M(t,N.Full);break;case"short":const n=e(t,"shortTime"),r=e(t,"shortDate");s=G(R(t,N.Short),[n,r]);break;case"medium":const o=e(t,"mediumTime"),i=e(t,"mediumDate");s=G(R(t,N.Medium),[o,i]);break;case"long":const u=e(t,"longTime"),c=e(t,"longDate");s=G(R(t,N.Long),[u,c]);break;case"full":const a=e(t,"fullTime"),l=e(t,"fullDate");s=G(R(t,N.Full),[a,l])}return s&&(U[o][n]=s),s}(n,t)||t;let i,u=[];for(;t;){if(i=z.exec(t),!i){u.push(t);break}{u=u.concat(i.slice(1));const e=u.pop();if(!e)break;t=e}}let c=s.getTimezoneOffset();o&&(c=te(o,c),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(te(t,r)-r))}(s,o));let a="";return u.forEach(e=>{const t=function(e){if(ee[e])return ee[e];let t;switch(e){case"G":case"GG":case"GGG":t=Y(Q.Eras,S.Abbreviated);break;case"GGGG":t=Y(Q.Eras,S.Wide);break;case"GGGGG":t=Y(Q.Eras,S.Narrow);break;case"y":t=K(q.FullYear,1,0,!1,!0);break;case"yy":t=K(q.FullYear,2,0,!0,!0);break;case"yyy":t=K(q.FullYear,3,0,!1,!0);break;case"yyyy":t=K(q.FullYear,4,0,!1,!0);break;case"M":case"L":t=K(q.Month,1,1);break;case"MM":case"LL":t=K(q.Month,2,1);break;case"MMM":t=Y(Q.Months,S.Abbreviated);break;case"MMMM":t=Y(Q.Months,S.Wide);break;case"MMMMM":t=Y(Q.Months,S.Narrow);break;case"LLL":t=Y(Q.Months,S.Abbreviated,k.Standalone);break;case"LLLL":t=Y(Q.Months,S.Wide,k.Standalone);break;case"LLLLL":t=Y(Q.Months,S.Narrow,k.Standalone);break;case"w":t=X(1);break;case"ww":t=X(2);break;case"W":t=X(1,!0);break;case"d":t=K(q.Date,1);break;case"dd":t=K(q.Date,2);break;case"E":case"EE":case"EEE":t=Y(Q.Days,S.Abbreviated);break;case"EEEE":t=Y(Q.Days,S.Wide);break;case"EEEEE":t=Y(Q.Days,S.Narrow);break;case"EEEEEE":t=Y(Q.Days,S.Short);break;case"a":case"aa":case"aaa":t=Y(Q.DayPeriods,S.Abbreviated);break;case"aaaa":t=Y(Q.DayPeriods,S.Wide);break;case"aaaaa":t=Y(Q.DayPeriods,S.Narrow);break;case"b":case"bb":case"bbb":t=Y(Q.DayPeriods,S.Abbreviated,k.Standalone,!0);break;case"bbbb":t=Y(Q.DayPeriods,S.Wide,k.Standalone,!0);break;case"bbbbb":t=Y(Q.DayPeriods,S.Narrow,k.Standalone,!0);break;case"B":case"BB":case"BBB":t=Y(Q.DayPeriods,S.Abbreviated,k.Format,!0);break;case"BBBB":t=Y(Q.DayPeriods,S.Wide,k.Format,!0);break;case"BBBBB":t=Y(Q.DayPeriods,S.Narrow,k.Format,!0);break;case"h":t=K(q.Hours,1,-12);break;case"hh":t=K(q.Hours,2,-12);break;case"H":t=K(q.Hours,1);break;case"HH":t=K(q.Hours,2);break;case"m":t=K(q.Minutes,1);break;case"mm":t=K(q.Minutes,2);break;case"s":t=K(q.Seconds,1);break;case"ss":t=K(q.Seconds,2);break;case"S":t=K(q.FractionalSeconds,1);break;case"SS":t=K(q.FractionalSeconds,2);break;case"SSS":t=K(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=J(Z.Short);break;case"ZZZZZ":t=J(Z.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=J(Z.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=J(Z.Long);break;default:return null}return ee[e]=t,t}(e);a+=t?t(s,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}(t,n,s||this.locale,o)}catch(i){throw Ie(e,i.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z))},e.\u0275pipe=r.xc({name:"date",type:e,pure:!0}),e})();const Be=/#/g;let Le=(()=>{class e{constructor(e){this._localization=e}transform(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw Ie(e,n);return n[ce(t,Object.keys(n),this._localization,r)].replace(Be,t.toString())}}return e.\u0275fac=function(t){return new(t||e)(r.yc(ue))},e.\u0275pipe=r.xc({name:"i18nPlural",type:e,pure:!0}),e})(),He=(()=>{class e{transform(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw Ie(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"i18nSelect",type:e,pure:!0}),e})(),$e=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"json",type:e,pure:!1}),e})(),Ue=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=ze){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.y))},e.\u0275pipe=r.xc({name:"keyvalue",type:e,pure:!1}),e})();function ze(e,t){const n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n{class e{constructor(e){this._locale=e}transform(t,n,r){if(Ge(t))return null;r=r||this._locale;try{return function(e,t,n){return oe(e,se(P(t,F.Decimal),V(t,T.MinusSign)),t,T.Group,T.Decimal,n)}(We(t),r,n)}catch(o){throw Ie(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z))},e.\u0275pipe=r.xc({name:"number",type:e,pure:!0}),e})(),qe=(()=>{class e{constructor(e){this._locale=e}transform(t,n,r){if(Ge(t))return null;r=r||this._locale;try{return function(e,t,n){return oe(e,se(P(t,F.Percent),V(t,T.MinusSign)),t,T.Group,T.Decimal,n,!0).replace(new RegExp("%","g"),V(t,T.PercentSign))}(We(t),r,n)}catch(o){throw Ie(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z))},e.\u0275pipe=r.xc({name:"percent",type:e,pure:!0}),e})(),Qe=(()=>{class e{constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(t,n,o="symbol",s,i){if(Ge(t))return null;i=i||this._locale,"boolean"==typeof o&&(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".'),o=o?"symbol":"code");let u=n||this._defaultCurrencyCode;"code"!==o&&(u="symbol"===o||"symbol-narrow"===o?function(e,t,n="en"){const o=function(e){return Object(r.Db)(e)[r.mb.Currencies]}(n)[e]||A[e]||[],s=o[1];return"narrow"===t&&"string"==typeof s?s:o[0]||e}(u,"symbol"===o?"wide":"narrow",i):o);try{return function(e,t,n,r,o){const s=se(P(t,F.Currency),V(t,T.MinusSign));return s.minFrac=function(e){let t;const n=A[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),s.maxFrac=s.minFrac,oe(e,s,t,T.CurrencyGroup,T.CurrencyDecimal,o).replace("\xa4",n).replace("\xa4","").trim()}(We(t),i,u,n,s)}catch(c){throw Ie(e,c.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z),r.yc(r.p))},e.\u0275pipe=r.xc({name:"currency",type:e,pure:!0}),e})();function Ge(e){return null==e||""===e||e!=e}function We(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}let Ke=(()=>{class e{transform(t,n,r){if(null==t)return t;if(!this.supports(t))throw Ie(e,t);return t.slice(n,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"slice",type:e,pure:!1}),e})(),Ye=(()=>{class e{}return e.\u0275mod=r.wc({type:e}),e.\u0275inj=r.vc({factory:function(t){return new(t||e)},providers:[{provide:ue,useClass:ae}]}),e})();const Je="browser";function Xe(e){return e===Je}function et(e){return"server"===e}let tt=(()=>{class e{}return e.\u0275prov=Object(r.uc)({token:e,providedIn:"root",factory:()=>new nt(Object(r.Mc)(c),window,Object(r.Mc)(r.r))}),e})();class nt{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}},quSY:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("DH7j"),o=n("XoHu"),s=n("n6bG");const i=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let u=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:u,_subscriptions:a}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof i?t.errors:t),[])}},w1tV:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("XNiG"),o=n("HDdC"),s=n("7o/Q"),i=n("quSY");function u(){return function(e){return e.lift(new c(e))}}class c{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new a(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o}}class a extends s.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class l extends o.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new i.a,e.add(this.source.subscribe(new f(this.getSubject(),this))),e.closed&&(this._connection=null,e=i.a.EMPTY)),e}refCount(){return u()(this)}}const d=(()=>{const e=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class f extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function h(){return new r.a}function p(){return e=>{return u()((t=h,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,d);return r.source=e,r.subjectFactory=n,r})(e));var t}}},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("HDdC"),o=n("ngJS"),s=n("jZKg");function i(e,t){return t?Object(s.a)(e,t):new r.a(Object(o.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},zUnb:function(e,t,n){"use strict";n.r(t),n("N/DB");var r=n("fXoL"),o=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});function s(e){const t=function(e){let t="";for(let n=0;n=55296&&r<=56319&&e.length>n+1){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}(e);let n=i(t,0),r=i(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function i(e,t){let n,r=2654435769,o=2654435769;const s=e.length;for(n=0;n+12<=s;n+=12){r=a(r,h(e,n,c.Little)),o=a(o,h(e,n+4,c.Little));const s=u(r,o,t=a(t,h(e,n+8,c.Little)));r=s[0],o=s[1],t=s[2]}return r=a(r,h(e,n,c.Little)),o=a(o,h(e,n+4,c.Little)),t=a(t,s),u(r,o,t=a(t,h(e,n+8,c.Little)<<8))[2]}function u(e,t,n){return e=d(e,t),e=d(e,n),e^=n>>>13,t=d(t,n),t=d(t,e),t^=e<<8,n=d(n,e),n=d(n,t),n^=t>>>13,e=d(e,t),e=d(e,n),e^=n>>>12,t=d(t,n),t=d(t,e),t^=e<<16,n=d(n,e),n=d(n,t),n^=t>>>5,e=d(e,t),e=d(e,n),e^=n>>>3,t=d(t,n),t=d(t,e),t^=e<<10,n=d(n,e),n=d(n,t),[e,t,n^=t>>>15]}"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var c=function(e){return e[e.Little=0]="Little",e[e.Big=1]="Big",e}({});function a(e,t){return l(e,t)[1]}function l(e,t){const n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function d(e,t){const n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function h(e,t,n){let r=0;if(n===c.Big)for(let o=0;o<4;o++)r+=f(e,t+o)<<24-8*o;else for(let o=0;o<4;o++)r+=f(e,t+o)<<8*o;return r}function p(e,t){let n="";const r=Math.max(e.length,t.length);for(let o=0,s=0;o=10?(s=1,n+=r-10):(s=0,n+=r)}return n}function g(e,t){let n="",r=t;for(;0!==e;e>>>=1)1&e&&(n=p(n,r)),r=p(r,r);return n}class m{get(e){return""}}class y{constructor({defaultEncapsulation:e=o.Emulated,useJit:t=!0,jitDevMode:n=!1,missingTranslation:r=null,preserveWhitespaces:s,strictInjectionParameters:i}={}){var u;this.defaultEncapsulation=e,this.useJit=!!t,this.jitDevMode=!!n,this.missingTranslation=r,this.preserveWhitespaces=function(e,t=!1){return null===e?t:e}(void 0===(u=s)?null:u),this.strictInjectionParameters=!0===i}}var w=n("ofXK"),v=n("jhN1");const b=[{provide:r.k,useFactory:()=>new r.k}];function _(e){for(let t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function C(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}const D=Object(r.ab)(r.fb,"coreDynamic",[{provide:r.h,useValue:{},multi:!0},{provide:r.l,useClass:class{constructor(e){this._defaultOptions=[{useJit:!0,defaultEncapsulation:r.Y.Emulated,missingTranslation:r.A.Warning},...e]}createCompiler(e=[]){const t={useJit:_((n=this._defaultOptions.concat(e)).map(e=>e.useJit)),defaultEncapsulation:_(n.map(e=>e.defaultEncapsulation)),providers:C(n.map(e=>e.providers)),missingTranslation:_(n.map(e=>e.missingTranslation)),preserveWhitespaces:_(n.map(e=>e.preserveWhitespaces))};var n;return r.w.create([b,{provide:y,useFactory:()=>new y({useJit:t.useJit,jitDevMode:Object(r.eb)(),defaultEncapsulation:t.defaultEncapsulation,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]).get(r.k)}},deps:[r.h]}]);let E=(()=>{class e extends m{get(e){let t,n;const r=new Promise((e,r)=>{t=e,n=r}),o=new XMLHttpRequest;return o.open("GET",e,!0),o.responseType="text",o.onload=function(){const r=o.response||o.responseText;let s=1223===o.status?204:o.status;0===s&&(s=r?200:0),200<=s&&s<=300?t(r):n(`Failed to load ${e}`)},o.onerror=function(){n(`Failed to load ${e}`)},o.send(),r}}return e.\u0275fac=function(t){return x(t||e)},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e})();const x=r.Fc(E),A=[v.e,{provide:r.h,useValue:{providers:[{provide:m,useClass:E,deps:[]}]},multi:!0},{provide:r.I,useValue:w.M}],F=Object(r.ab)(D,"browserDynamic",A);function I(e,t){if(":"!==t.charAt(0))return{text:e};{const n=function(e,t){for(let n=1,r=1;n>>31,r<<1|n>>>31]}(n),e)}return function(e){let t="",n="1";for(let r=e.length-1;r>=0;r--)t=p(t,g(f(e,r),n)),n=g(256,n);return t.split("").reverse().join("")}([2147483647&n[0],n[1]].reduce((e,t)=>e+function(e){let t="";for(let n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t),""))}(u,r.meaning||""),d=r.legacyIds.filter(e=>e!==c);return{messageId:c,legacyIds:d,substitutions:n,messageString:u,meaning:r.meaning||"",description:r.description||"",messageParts:o,placeholderNames:i}}(t,n);let o=e[r.messageId];for(let s=0;s{if(r.substitutions.hasOwnProperty(e))return r.substitutions[e];throw new Error(`There is a placeholder name mismatch with the translation provided for the message ${N(r)}.\n`+`The translation contains a placeholder with name ${e}, which does not exist in the message.`)})]}($localize.TRANSLATIONS,e,t)}catch(n){return console.warn(n.message),[e,t]}}Object(r.bb)();const O=localStorage.getItem("locale");O||localStorage.setItem("locale","en"),O&&"en"!==O?fetch(`./assets/i18n/messages.${O}.json`).then(e=>e.json()).then(e=>{var t;t=e,$localize.translate||($localize.translate=T),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(t).forEach(e=>{$localize.TRANSLATIONS[e]=function(e){const t=e.split(/{\$([^}]*)}/),n=[t[0]],r=[];for(let u=1;u":"===e.charAt(0)?"\\"+e:e);return{messageParts:(s=n,i=o,Object.defineProperty(s,"raw",{value:i}),s),placeholderNames:r};var s,i}(t[e])}),n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}).catch(e=>{n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}):n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}},[[0,0]]]); \ No newline at end of file diff --git a/backend/public/main-es5.38c23f6efbbfa0797d6d.js b/backend/public/main-es5.38c23f6efbbfa0797d6d.js new file mode 100644 index 0000000..02d2bf6 --- /dev/null +++ b/backend/public/main-es5.38c23f6efbbfa0797d6d.js @@ -0,0 +1 @@ +function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=_unsupportedIterableToArray(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},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 r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(s((function(n,r){return Object(u.a)(e(n,r)).pipe(Object(a.a)((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(i.a)},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a)},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("n6bG"),i=n("gRHU"),o=n("quSY"),a=n("2QA8"),u=n("2fFW"),s=n("NJ4a"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,o){var a;switch(_classCallCheck(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!e){a.destination=i.a;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(_assertThisInitialized(a))):(a.syncErrorThrowable=!0,a.destination=new l(_assertThisInitialized(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new l(_assertThisInitialized(a),e,r,o)}return a}return _createClass(n,[{key:a.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(o.a),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,o,a,u){var s,c;_classCallCheck(this,n),(s=t.call(this))._parentSubscriber=e;var l=_assertThisInitialized(s);return Object(r.a)(o)?c=o:o&&(c=o.next,a=o.error,u=o.complete,o!==i.a&&(l=Object.create(o),Object(r.a)(l.unsubscribe)&&s.add(l.unsubscribe.bind(l)),l.unsubscribe=s.unsubscribe.bind(_assertThisInitialized(s)))),s._context=l,s._next=c,s._error=a,s._complete=u,s}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(s.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(s.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw n;Object(s.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(s.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(c)},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},Cfvw:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("HDdC"),i=n("SeVD"),o=n("quSY"),a=n("kJWO"),u=n("jZKg"),s=n("Lhse"),c=n("c2HN"),l=n("I55L");function f(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return new r.a((function(n){var r=new o.a;return r.add(t.schedule((function(){var i=e[a.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Object(c.a)(e))return function(e,t){return new r.a((function(n){var r=new o.a;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(Object(l.a)(e))return Object(u.a)(e,t);if(function(e){return e&&"function"==typeof e[s.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[s.a](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},HDdC:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r,i=n("7o/Q"),o=n("2QA8"),a=n("gRHU"),u=n("kJWO"),s=n("mCNh"),c=n("2fFW"),l=((r=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,u=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new i.a(e,t,n):new i.a(a.a)}(e,t,n);if(u.add(r?r.call(u,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),c.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,o=t.isStopped;if(n||o)return!1;e=r&&r instanceof i.a?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=f(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}}),r,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:u.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;i1&&"number"==typeof t[t.length-1]&&(u=t.pop())):"number"==typeof c&&(u=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(u)(Object(a.a)(t,s))}},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n("HDdC"),i=n("7o/Q"),o=n("quSY"),a=n("9ppp"),u=n("Ylt2"),s=n("2QA8"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).destination=e,r}return n}(i.a),l=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:s.a,value:function(){return new c(this)}},{key:"lift",value:function(e){var t=new f(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new a.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i4&&void 0!==arguments[4]?arguments[4]:new r.a(e,n,a);if(!u.closed)return t instanceof o.a?t.subscribe(u):Object(i.a)(t)(u)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("5+tZ"),i=n("SpAZ");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,e)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},fXoL:function(e,t,n){"use strict";n.d(t,"a",(function(){return Yo})),n.d(t,"b",(function(){return id})),n.d(t,"c",(function(){return Xf})),n.d(t,"d",(function(){return Yf})),n.d(t,"e",(function(){return Jf})),n.d(t,"f",(function(){return yh})),n.d(t,"g",(function(){return Zd})),n.d(t,"h",(function(){return Cd})),n.d(t,"i",(function(){return ge})),n.d(t,"j",(function(){return Eo})),n.d(t,"k",(function(){return md})),n.d(t,"l",(function(){return bd})),n.d(t,"m",(function(){return Bu})),n.d(t,"n",(function(){return Uu})),n.d(t,"o",(function(){return Mu})),n.d(t,"p",(function(){return sd})),n.d(t,"q",(function(){return qu})),n.d(t,"r",(function(){return Yd})),n.d(t,"s",(function(){return xn})),n.d(t,"t",(function(){return Af})),n.d(t,"u",(function(){return G})),n.d(t,"v",(function(){return f})),n.d(t,"w",(function(){return W})),n.d(t,"x",(function(){return Ko})),n.d(t,"y",(function(){return fs})),n.d(t,"z",(function(){return ds})),n.d(t,"A",(function(){return ud})),n.d(t,"B",(function(){return fd})),n.d(t,"C",(function(){return se})),n.d(t,"D",(function(){return qd})),n.d(t,"E",(function(){return ue})),n.d(t,"F",(function(){return Bd})),n.d(t,"G",(function(){return Dd})),n.d(t,"H",(function(){return d})),n.d(t,"I",(function(){return od})),n.d(t,"J",(function(){return rd})),n.d(t,"K",(function(){return nd})),n.d(t,"L",(function(){return If})),n.d(t,"M",(function(){return Ku})),n.d(t,"N",(function(){return Gu})),n.d(t,"O",(function(){return $u})),n.d(t,"P",(function(){return Ju})),n.d(t,"Q",(function(){return vr})),n.d(t,"R",(function(){return v})),n.d(t,"S",(function(){return $d})),n.d(t,"T",(function(){return cd})),n.d(t,"U",(function(){return ld})),n.d(t,"V",(function(){return ys})),n.d(t,"W",(function(){return Td})),n.d(t,"X",(function(){return Xu})),n.d(t,"Y",(function(){return _s})),n.d(t,"Z",(function(){return _e})),n.d(t,"ab",(function(){return aa})),n.d(t,"bb",(function(){return Ld})),n.d(t,"cb",(function(){return Zn})),n.d(t,"db",(function(){return O})),n.d(t,"eb",(function(){return re})),n.d(t,"fb",(function(){return Un})),n.d(t,"gb",(function(){return vh})),n.d(t,"hb",(function(){return Pd})),n.d(t,"ib",(function(){return Zu})),n.d(t,"jb",(function(){return ad})),n.d(t,"kb",(function(){return fc})),n.d(t,"lb",(function(){return dc})),n.d(t,"mb",(function(){return Vo})),n.d(t,"nb",(function(){return wl})),n.d(t,"ob",(function(){return No})),n.d(t,"pb",(function(){return dr})),n.d(t,"qb",(function(){return gr})),n.d(t,"rb",(function(){return Gn})),n.d(t,"sb",(function(){return Pn})),n.d(t,"tb",(function(){return gh})),n.d(t,"ub",(function(){return Vn})),n.d(t,"vb",(function(){return Ln})),n.d(t,"wb",(function(){return Mn})),n.d(t,"xb",(function(){return jn})),n.d(t,"yb",(function(){return Bn})),n.d(t,"zb",(function(){return Ec})),n.d(t,"Ab",(function(){return zv})),n.d(t,"Bb",(function(){return Rs})),n.d(t,"Cb",(function(){return qc})),n.d(t,"Db",(function(){return _h})),n.d(t,"Eb",(function(){return _l})),n.d(t,"Fb",(function(){return dh})),n.d(t,"Gb",(function(){return ml})),n.d(t,"Hb",(function(){return Cl})),n.d(t,"Ib",(function(){return Rn})),n.d(t,"Jb",(function(){return B})),n.d(t,"Kb",(function(){return cc})),n.d(t,"Lb",(function(){return sc})),n.d(t,"Mb",(function(){return ua})),n.d(t,"Nb",(function(){return Ia})),n.d(t,"Ob",(function(){return Sa})),n.d(t,"Pb",(function(){return ia})),n.d(t,"Qb",(function(){return _c})),n.d(t,"Rb",(function(){return gc})),n.d(t,"Sb",(function(){return Sh})),n.d(t,"Tb",(function(){return Vc})),n.d(t,"Ub",(function(){return Oh})),n.d(t,"Vb",(function(){return Wc})),n.d(t,"Wb",(function(){return Th})),n.d(t,"Xb",(function(){return Fh})),n.d(t,"Yb",(function(){return Gc})),n.d(t,"Zb",(function(){return kh})),n.d(t,"ac",(function(){return gl})),n.d(t,"bc",(function(){return ff})),n.d(t,"cc",(function(){return Ue})),n.d(t,"dc",(function(){return S})),n.d(t,"ec",(function(){return Ph})),n.d(t,"fc",(function(){return Ps})),n.d(t,"gc",(function(){return Nn})),n.d(t,"hc",(function(){return jh})),n.d(t,"ic",(function(){return bu})),n.d(t,"jc",(function(){return Au})),n.d(t,"kc",(function(){return ju})),n.d(t,"lc",(function(){return Ur})),n.d(t,"mc",(function(){return da})),n.d(t,"nc",(function(){return Ja})),n.d(t,"oc",(function(){return hu})),n.d(t,"pc",(function(){return Ya})),n.d(t,"qc",(function(){return Oa})),n.d(t,"rc",(function(){return zf})),n.d(t,"sc",(function(){return br})),n.d(t,"tc",(function(){return we})),n.d(t,"uc",(function(){return Fe})),n.d(t,"vc",(function(){return _})),n.d(t,"wc",(function(){return m})),n.d(t,"xc",(function(){return Ae})),n.d(t,"yc",(function(){return Oe})),n.d(t,"zc",(function(){return ya})),n.d(t,"Ac",(function(){return ka})),n.d(t,"Bc",(function(){return xa})),n.d(t,"Cc",(function(){return Ea})),n.d(t,"Dc",(function(){return Da})),n.d(t,"Ec",(function(){return wa})),n.d(t,"Fc",(function(){return ba})),n.d(t,"Gc",(function(){return Aa})),n.d(t,"Hc",(function(){return wn})),n.d(t,"Ic",(function(){return vu})),n.d(t,"Jc",(function(){return Kl})),n.d(t,"Kc",(function(){return tf})),n.d(t,"Lc",(function(){return Yl})),n.d(t,"Mc",(function(){return ef})),n.d(t,"Nc",(function(){return ql})),n.d(t,"Oc",(function(){return ne})),n.d(t,"Pc",(function(){return ga})),n.d(t,"Qc",(function(){return Kf})),n.d(t,"Rc",(function(){return _a})),n.d(t,"Sc",(function(){return Fa})),n.d(t,"Tc",(function(){return Qf})),n.d(t,"Uc",(function(){return Rt})),n.d(t,"Vc",(function(){return Pt})),n.d(t,"Wc",(function(){return Ra})),n.d(t,"Xc",(function(){return wf})),n.d(t,"Yc",(function(){return kf})),n.d(t,"Zc",(function(){return Df})),n.d(t,"ad",(function(){return La})),n.d(t,"bd",(function(){return ja})),n.d(t,"cd",(function(){return ma})),n.d(t,"dd",(function(){return Ha})),n.d(t,"ed",(function(){return pf})),n.d(t,"fd",(function(){return yf})),n.d(t,"gd",(function(){return gf})),n.d(t,"hd",(function(){return _f})),n.d(t,"id",(function(){return Mf})),n.d(t,"jd",(function(){return pa})),n.d(t,"kd",(function(){return rn})),n.d(t,"ld",(function(){return nn})),n.d(t,"md",(function(){return tn})),n.d(t,"nd",(function(){return lt})),n.d(t,"od",(function(){return _r})),n.d(t,"pd",(function(){return Cr})),n.d(t,"qd",(function(){return ke})),n.d(t,"rd",(function(){return Se})),n.d(t,"sd",(function(){return Uf})),n.d(t,"td",(function(){return Bf})),n.d(t,"ud",(function(){return Ka})),n.d(t,"vd",(function(){return va})),n.d(t,"wd",(function(){return $f})),n.d(t,"xd",(function(){return lu})),n.d(t,"yd",(function(){return fu})),n.d(t,"zd",(function(){return du})),n.d(t,"Ad",(function(){return pu})),n.d(t,"Bd",(function(){return Lf}));var r=n("XNiG"),i=n("quSY"),o=n("HDdC"),a=n("VRyK"),u=n("w1tV");function s(e){return{toString:e}.toString()}var c="__parameters__";function l(e,t,n){return s((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:p.Default;if(void 0===J)throw new Error("inject() must be called from an injection context");return null===J?ie(e,void 0,t):J.get(e,t&p.Optional?null:void 0,t)}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Default;return(P||te)(T(e),t)}var re=ne;function ie(e,t,n){var r=C(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(S(e),"]"))}function oe(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:$;if(t===$){var n=new Error("NullInjectorError: No provider for ".concat(S(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ue=function e(){_classCallCheck(this,e)},se=function e(){_classCallCheck(this,e)};function ce(e,t){for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function de(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function he(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function pe(e,t){var n=ye(e,t);if(n>=0)return e[1|n]}function ye(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var ge=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),_e=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),me={},Ce=[],be=0;function we(e){return s((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ge.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ce,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||_e.Emulated,id:"c",styles:e.styles||Ce,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,u=e.pipes;return i.id+=be++,i.inputs=Ie(e.inputs,r),i.outputs=Ie(e.outputs),a&&a.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(De)}:null,i.pipeDefs=u?function(){return("function"==typeof u?u():u).map(Ee)}:null,i}))}function ke(e,t,n){var r=e.\u0275cmp;r.directiveDefs=function(){return t.map(De)},r.pipeDefs=function(){return n.map(Ee)}}function De(e){return Te(e)||function(e){return e[H]||null}(e)}function Ee(e){return function(e){return e[z]||null}(e)}var xe={};function Ae(e){var t={type:e.type,bootstrap:e.bootstrap||Ce,declarations:e.declarations||Ce,imports:e.imports||Ce,exports:e.exports||Ce,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&s((function(){xe[e.id]=e.type})),t}function Se(e,t){return s((function(){var n=Pe(e,!0);n.declarations=t.declarations||Ce,n.imports=t.imports||Ce,n.exports=t.exports||Ce}))}function Ie(e,t){if(null==e)return me;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var Fe=we;function Oe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Te(e){return e[L]||null}function Ne(e,t){return e.hasOwnProperty(Q)?e[Q]:null}function Pe(e,t){var n=e[U]||null;if(!n&&!0===t)throw new Error("Type ".concat(S(e)," does not have '\u0275mod' property."));return n}function Re(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ve(e){return Array.isArray(e)&&!0===e[1]}function je(e){return 0!=(8&e.flags)}function Me(e){return 2==(2&e.flags)}function Be(e){return 1==(1&e.flags)}function Le(e){return null!==e.template}function He(e){return 0!=(512&e[2])}var ze=void 0;function Ue(e){ze=e}function Ze(){return void 0!==ze?ze:"undefined"!=typeof document?document:void 0}function Qe(e){return!!e.listen}var qe={createRenderer:function(e,t){return Ze()}};function We(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return We(t[e+19])}function $e(e,t){return We(t[e.index])}function Ke(e,t){var n=e.index;return-1!==n?We(t[n]):null}function Ye(e,t){return e.data[t+19]}function Je(e,t){return e[t+19]}function Xe(e,t){var n=t[e];return Re(n)?n:n[0]}function et(e){return e.__ngContext__||null}function tt(e){var t=et(e);return t?Array.isArray(t)?t:t.lView:null}function nt(e){return 4==(4&e[2])}function rt(e){return 128==(128&e[2])}function it(e,t){return null===e||null==t?null:e[t]}function ot(e){e[18]=0}var at={lFrame:At(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ut(){return at.bindingsEnabled}function st(){return at.lFrame.lView}function ct(){return at.lFrame.tView}function lt(e){at.lFrame.contextLView=e}function ft(){return at.lFrame.previousOrParentTNode}function dt(e,t){at.lFrame.previousOrParentTNode=e,at.lFrame.isParent=t}function ht(){return at.lFrame.isParent}function vt(){at.lFrame.isParent=!1}function pt(){return at.checkNoChangesMode}function yt(e){at.checkNoChangesMode=e}function gt(){var e=at.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _t(){return at.lFrame.bindingIndex}function mt(){return at.lFrame.bindingIndex++}function Ct(e){var t=at.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bt(e,t){var n=at.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function wt(){return at.lFrame.currentQueryIndex}function kt(e){at.lFrame.currentQueryIndex=e}function Dt(e,t){var n=xt();at.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Et(e,t){var n=xt(),r=e[1];at.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function xt(){var e=at.lFrame,t=null===e?null:e.child;return null===t?At(e):t}function At(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function St(){var e=at.lFrame;return at.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var It=St;function Ft(){var e=St();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ot(){return at.lFrame.selectedIndex}function Tt(e){at.lFrame.selectedIndex=e}function Nt(){var e=at.lFrame;return Ye(e.tView,e.selectedIndex)}function Pt(){at.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Rt(){at.lFrame.currentNamespace=null}function Vt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(a)):o.call(a)}var zt=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Ut(e,t,n){for(var r=Qe(e),i=0;it){a=o-1;break}}}for(;o>16}function Yt(e,t){for(var n=Kt(e),r=t;n>0;)r=r[15],n--;return r}function Jt(e){return"string"==typeof e?e:null==e?"":""+e}function Xt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Jt(e)}var en=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B);function tn(e){return{name:"window",target:e.ownerDocument.defaultView}}function nn(e){return{name:"document",target:e.ownerDocument}}function rn(e){return{name:"body",target:e.ownerDocument.body}}function on(e){return e instanceof Function?e():e}var an=!0;function un(e){var t=an;return an=e,t}var sn=0;function cn(e,t){var n=fn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,ln(r.data,e),ln(t,null),ln(r.blueprint,null));var i=dn(e,t),o=e.injectorIndex;if(Gt(i))for(var a=$t(i),u=Yt(i,t),s=u[1].data,c=0;c<8;c++)t[o+c]=u[a+c]|s[a+c];return t[o+8]=i,o}function ln(e,t){e.push(0,0,0,0,0,0,0,0,t)}function fn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function dn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function hn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[q]:n.charCodeAt(0)||0;null==r&&(r=n[q]=sn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:p.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[q];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){Dt(t,e);try{var a=o();if(null!=a||r&p.Optional)return a;throw new Error("No provider for ".concat(Xt(n),"!"))}finally{It()}}else if("number"==typeof o){if(-1===o)return new bn(e,t);var u=null,s=fn(e,t),c=-1,l=r&p.Host?t[16][6]:null;for((-1===s||r&p.SkipSelf)&&(c=-1===s?dn(e,t):t[s+8],Cn(r,!1)?(u=t[1],s=$t(c),t=Yt(c,t)):s=-1);-1!==s;){c=t[s+8];var f=t[1];if(mn(o,s,f.data)){var d=yn(s,t,n,u,r,l);if(d!==pn)return d}Cn(r,t[1].data[s+8]===l)&&mn(o,s,t)?(u=f,s=$t(c),t=Yt(c,t)):s=-1}}}if(r&p.Optional&&void 0===i&&(i=null),0==(r&(p.Self|p.Host))){var h=t[9],v=ee(void 0);try{return h?h.get(n,i,r&p.Optional):ie(n,i,r&p.Optional)}finally{ee(v)}}if(r&p.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(Xt(n),"]"))}var pn={};function yn(e,t,n,r,i,o){var a=t[1],u=a.data[e+8],s=gn(u,a,n,null==r?Me(u)&&an:r!=a&&3===u.type,i&p.Host&&o===u);return null!==s?_n(t,a,s,u):pn}function gn(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,u=65535&o,s=e.directiveStart,c=o>>16,l=i?u+c:e.directiveEnd,f=r?u:u+c;f=s&&d.type===n)return f}if(i){var h=a[s];if(h&&Le(h)&&h.type===n)return s}return null}function _n(e,t,n,r){var i=e[n],o=t.data;if(i instanceof zt){var a=i;if(a.resolving)throw new Error("Circular dep for ".concat(Xt(o[n])));var u,s=un(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(u=ee(a.injectImpl)),Dt(e,r);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{a.injectImpl&&ee(u),un(s),a.resolving=!1,It()}}return i}function mn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r',!n.querySelector||n.querySelector("svg")?(n.innerHTML='

',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(e,[{key:"getInertBodyElement_XHR",value:function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();rr.hasOwnProperty(t)&&!Xn.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(fr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lr=/([^\#-~ |!])/g;function fr(e){return e.replace(/&/g,"&").replace(cr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(lr,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function dr(e,t){var n=null;try{Jn=Jn||new Qn(e);var r=t?String(t):"";n=Jn.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Jn.getInertBodyElement(r)}while(r!==o);var a=new sr,u=a.sanitizeChildren(hr(n)||n);return Un()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var s=hr(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}function hr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var vr=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),pr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),yr=/^url\(([^)]+)\)$/;function gr(e){if(!(e=String(e).trim()))return"";var t=e.match(yr);return t&&Gn(t[1])===t[1]||e.match(pr)&&function(e){for(var t=!0,n=!0,r=0;ro?"":i[l+1].toLowerCase();var d=8&r?f:null;if(d&&-1!==Or(d,c,0)||2&r&&c!==f){if(Rr(r))return!1;a=!0}}}}else{if(!a&&!Rr(r)&&!Rr(s))return!1;if(a&&Rr(s))continue;a=!1,r=s|1&r}}return Rr(r)||a}function Rr(e){return 0==(1&e)}function Vr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Rr(a)||(t+=Br(o,i),i=""),r=a,o=o||!Rr(r);n++}return""!==i&&(t+=Br(o,i)),t}var Hr={};function zr(e){var t=e[3];return Ve(t)?t[3]:t}function Ur(e){Zr(ct(),st(),Ot()+e,pt())}function Zr(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&jt(t,i,n)}else{var o=e.preOrderHooks;null!==o&&Mt(t,o,0,n)}Tt(n)}var Qr={marker:"element"},qr={marker:"comment"};function Wr(e,t){return e<<17|t<<2}function Gr(e){return e>>17&32767}function $r(e){return 2|e}function Kr(e){return(131068&e)>>2}function Yr(e,t){return-131069&e|t<<2}function Jr(e){return 1|e}function Xr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r>1==-1){for(var r=9;r19&&Zr(e,t,0,pt()),n(r,i)}finally{Tt(o)}}function ui(e,t,n){if(je(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:$e,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&(e[n-1][4]=r[4]);var o=de(e,9+t);Gi(r[1],r,!1,null);var a=o[5];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Yi(e,t){if(!(256&t[2])){var n=t[11];Qe(n)&&n.destroyNode&&lo(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Xi(e[1],e);for(;t;){var n=null;if(Re(t))n=t[13];else{var r=t[9];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Re(t)&&Xi(t[1],t),t=Ji(t,e);null===t&&(t=e),Re(t)&&Xi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ji(e,t){var n;return Re(e)&&(n=e[6])&&2===n.type?Zi(n,e):e[3]===t?null:e[3]}function Xi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&Qe(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&Ve(t[3])){r!==t[3]&&$i(r,t);var i=t[5];null!==i&&i.detachView(e)}}}function eo(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?Qi(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return $e(t,n).parentNode;if(2&r.flags){var o=e.data,a=o[o[r.index].directiveStart].encapsulation;if(a!==_e.ShadowDom&&a!==_e.Native)return null}return $e(r,n)}function to(e,t,n,r){Qe(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function no(e,t,n){Qe(e)?e.appendChild(t,n):t.appendChild(n)}function ro(e,t,n,r){null!==r?to(e,t,n,r):no(e,t,n)}function io(e,t){return Qe(e)?e.parentNode(t):t.parentNode}function oo(e,t){if(2===e.type){var n=Zi(e,t);return null===n?null:uo(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?$e(e,t):null}function ao(e,t,n,r){var i=eo(e,r,t);if(null!=i){var o=t[11],a=oo(r.parent||t[6],t);if(Array.isArray(n))for(var u=0;u-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Yi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,Mi(n=this._lView).push(r),t.firstCreatePass&&Bi(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){Ni(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Pi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){yt(!0);try{Pi(e,t,n)}finally{yt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,lo(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(We(a)),Ve(a))for(var u=9;u0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(ue,null);a&&(i=a)}var u=e.create(o,r,void 0,i);return this.insert(u.hostView,t),u}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ve(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new _o(o,o[6],o[3]);a.detach(a.indexOf(e))}}var u=this._adjustIndex(t);return function(e,t,n,r){var i=9+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return bo(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new bn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=dn(this._hostTNode,this._hostView),t=Yt(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=Kt(e),a=t,u=t[6];o>1;)u=(a=a[15])[6],o--;return u}(e,this._hostView,this._hostTNode);return Gt(e)&&null!=n?new bn(n,t):new bn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),r}(e));var o=r[n.index];if(Ve(o))(function(e,t){e[2]=-2})(i=o);else{var a;if(4===n.type)a=We(o);else if(a=r[11].createComment(""),He(r)){var u=r[11],s=$e(n,r);to(u,io(u,s),a,function(e,t){return Qe(e)?e.nextSibling(t):t.nextSibling}(u,s))}else ao(r[1],r,a,n);r[n.index]=i=Si(o,r,a,n),Ti(r,i)}return new _o(i,n,r)}function Do(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Me(e)){var r=Xe(e.index,t);return new mo(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new mo(t[16],t):null}(ft(),st(),e)}var Eo=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return xo()},e}(),xo=Do,Ao=Function;function So(e){return"function"==typeof e}var Io=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Fo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Oo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,To=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/,No=function(){function e(t){_classCallCheck(this,e),this._reflect=t||B.Reflect}return _createClass(e,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Uo(e,n,t||Ho(),r)}var Uo=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&le(n,(function(e){return i.processProvider(e,t,n)})),le([t],(function(e){return i.processInjectorType(e,[],a)})),this.records.set(G,qo(void 0,this));var u=this.records.get(Vo);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:S(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default;this.assertNotDestroyed();var r,i=X(this);try{if(!(n&p.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof W)&&C(e);o=a&&this.injectableDefInScope(a)?qo(Zo(e),jo):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&p.Self?Ho():this.parent).get(e,t=n&p.Optional&&t===$?null:t)}catch(u){if("NullInjectorError"===u.name){if((u.ngTempTokenPath=u.ngTempTokenPath||[]).unshift(S(e)),i)throw u;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=S(t);if(Array.isArray(t))i=t.map(S).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var u=t[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):S(u)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(K,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(u,e,0,this.source)}throw u}finally{X(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(S(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=T(e)))return!1;var i=w(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,u=-1!==n.indexOf(a);if(void 0!==o&&(i=w(o)),null==i)return!1;if(null!=i.imports&&!u){var s;n.push(a);try{le(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===s&&(s=[]),s.push(e))}))}finally{}if(void 0!==s)for(var c=function(e){var t=s[e],n=t.ngModule,i=t.providers;le(i,(function(e){return r.processProvider(e,n,i||Bo)}))},l=0;l0){var n=he(t,"?");throw new Error("Can't resolve all parameters for ".concat(S(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[k]||e[x]||e[E]&&e[E]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);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 v10. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Qo(e,t,n){var r,i=void 0;if(Go(e)){var o=T(e);return Ne(o)||Zo(o)}if(Wo(e))i=function(){return T(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(oe(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return ne(T(e.useExisting))};else{var a=T(e&&(e.useClass||e.provide));if(a||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(S(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return Ne(a)||Zo(a);i=function(){return _construct(a,_toConsumableArray(oe(e.deps)))}}return i}function qo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Wo(e){return null!==e&&"object"==typeof e&&Y in e}function Go(e){return"function"==typeof e}var $o=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=zo(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Ko=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?$o(e,t,""):$o(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=$,e.NULL=new ae,e.\u0275prov=_({token:e,providedIn:"any",factory:function(){return ne(G)}}),e.__NG_ELEMENT_ID__=-1,e}(),Yo=new W("AnalyzeForEntryComponents"),Jo=new Map,Xo=new Set;function ea(e){return"string"==typeof e?e:e.text()}function ta(e,t){for(var n=e.styles,r=e.classes,i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:p.Default,n=st();return null==n?ne(e,t):vn(ft(),n,T(e),t)}function ga(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,i=0;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=st(),o=ct(),a=ft();return Ta(o,i,i[11],a,e,t,n,r),Fa}function Oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ft(),o=st(),a=Li(i,o);return Ta(ct(),o,a,i,e,t,n,r),Oa}function Ta(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7?arguments[7]:void 0,s=Be(r),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),l=Mi(t),f=!0;if(3===r.type){var d=$e(r,t),h=u?u(d):me,v=h.target||d,p=l.length,y=u?function(e){return u(We(e[r.index])).target}:r.index;if(Qe(n)){var g=null;if(!u&&s&&(g=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;os?u[s]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,f=!1;else{o=Pa(r,t,o,!1);var _=n.listen(h.name||v,i,o);l.push(o,_),c&&c.push(i,y,p,p+1)}}else o=Pa(r,t,o,!0),v.addEventListener(i,o,a),l.push(o),c&&c.push(i,y,p,a)}var m,C=r.outputs;if(f&&null!==C&&(m=C[i])){var b=m.length;if(b)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(at.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,at.lFrame.contextLView))[8]}(e)}function Va(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=st(),i=ct(),o=ni(i,r[6],e,1,null,n||null);null===o.projection&&(o.projection=t),vt(),Ma||fo(i,r,o)}function Ha(e,t,n){return za(e,"",t,"",n),Ha}function za(e,t,n,r,i){var o=st(),a=ha(o,t,n,r);return a!==Hr&&vi(ct(),Nt(),o,e,a,o[11],i,!1),za}var Ua=[];function Za(e,t,n,r,i){for(var o=e[n+1],a=null===t,u=r?Gr(o):Kr(o),s=!1;0!==u&&(!1===s||a);){var c=e[u+1];Qa(e[u],t)&&(s=!0,e[u+1]=r?Jr(c):$r(c)),u=r?Gr(c):Kr(c)}s&&(e[n+1]=r?$r(o):Jr(o))}function Qa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ye(e,t)>=0}var qa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Wa(e){return e.substring(qa.key,qa.keyEnd)}function Ga(e,t){var n=qa.textEnd;return n===t?-1:(t=qa.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,qa.key=t,n),$a(e,t,n))}function $a(e,t,n){for(;t=0;n=Ga(t,n))ve(e,Wa(t),!0)}function eu(e,t,n,r){var i,o,a=st(),u=ct(),s=Ct(2);(u.firstUpdatePass&&ru(u,e,s,r),t!==Hr&&la(a,s,t))&&(null==n&&(i=null===(o=at.lFrame)?null:o.currentSanitizer)&&(n=i),au(u,u.data[Ot()+19],a,a[11],e,a[s+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=S(Nn(e)))),e}(t,n),r,s))}function tu(e,t,n,r){var i=ct(),o=Ct(2);i.firstUpdatePass&&ru(i,null,o,r);var a=st();if(n!==Hr&&la(a,o,n)){var u=i.data[Ot()+19];if(cu(u,r)&&!nu(i,o)){var s=r?u.classes:u.styles;null!==s&&(n=I(s,n||"")),Ca(i,u,a,n,r)}else!function(e,t,n,r,i,o,a,u){i===Hr&&(i=Ua);for(var s=0,c=0,l=0=e.expandoStartIndex}function ru(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Ot()+19],a=nu(e,n);cu(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=at.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=ou(n=iu(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=iu(i,e,t,n,r),null===o){var u=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Kr(r))return e[Gr(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&function(e,t,n,r){e[Gr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u=ou(u=iu(null,e,t,u[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(l=!0)}else c=n;if(i)if(0!==s){var d=Gr(e[u+1]);e[r+1]=Wr(d,u),0!==d&&(e[d+1]=Yr(e[d+1],r)),e[u+1]=131071&e[u+1]|r<<17}else e[r+1]=Wr(u,0),0!==u&&(e[u+1]=Yr(e[u+1],r)),u=r;else e[r+1]=Wr(s,0),0===u?u=r:e[s+1]=Yr(e[s+1],r),s=r;l&&(e[r+1]=$r(e[r+1])),Za(e,c,r,!0),Za(e,c,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&ye(o,t)>=0&&(n[r+1]=Jr(n[r+1]))}(t,c,e,r,o),a=Wr(u,s),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function iu(e,t,n,r,i){var o=null,a=n.directiveEnd,u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u0;){var s=e[i],c=Array.isArray(s),l=c?s[1]:s,f=null===l,d=n[i+1];d===Hr&&(d=f?Ua:void 0);var h=f?pe(d,r):l===r?d:void 0;if(c&&!su(h)&&(h=pe(s,r)),su(h)&&(u=h,a))return u;var v=e[i+1];i=a?Gr(v):Kr(v)}if(null!==t){var p=o?t.residualClasses:t.residualStyles;null!=p&&(u=pe(p,r))}return u}function su(e){return void 0!==e}function cu(e,t){return 0!=(e.flags&(t?16:32))}function lu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=st(),r=ct(),i=e+19,o=r.firstCreatePass?ni(r,n[6],e,3,null,null):r.data[i],a=n[i]=Wi(t,n[11]);ao(r,n,a,o),dt(o,!1)}function fu(e){return du("",e,""),fu}function du(e,t,n){var r=st(),i=ha(r,e,t,n);return i!==Hr&&Ui(r,Ot(),i),du}function hu(e,t,n){tu(ve,Xa,ha(st(),e,t,n),!0)}function vu(e,t,n){var r=st();return la(r,mt(),t)&&vi(ct(),Nt(),r,e,t,r[11],n,!0),vu}function pu(e,t,n){var r=st();if(la(r,mt(),t)){var i=ct(),o=Nt();vi(i,o,r,e,t,Li(o,r),n,!0)}return pu}function yu(e){mu(e);var t,n,r,i=gu(e,!1);return null===i?null:(void 0===i.component&&(i.component=(t=i.nodeIndex,n=i.lView,2&(r=n[1].data[t]).flags?n[r.directiveStart]:null)),i.component)}function gu(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(e){var t,n=et(e);if(n){if(Array.isArray(n)){var r,i=n,o=void 0,a=void 0;if((t=e)&&t.constructor&&t.constructor.\u0275cmp){if(-1==(r=function(e,t){var n=e[1].components;if(n)for(var r=0;r=0){var y=We(v[p]),g=Er(v,p,y);xr(y,g),n=g;break}}}return n||null}(e);if(!n&&t)throw new Error("Invalid ng target");return n}function _u(e,t){return e.name==t.name?0:e.name=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=qt(i.hostAttrs,n=qt(n,i.hostAttrs))}}(r)}function wu(e){return e===me?{}:e===Ce?[]:e}function ku(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Du(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Eu(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var xu=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Au(e){e.type.prototype.ngOnChanges&&(e.setInput=Su,e.onChanges=function(){var e=Iu(this),t=e&&e.current;if(t){var n=e.previous;if(n===me)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function Su(e,t,n,r){var i=Iu(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:me,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],s=a[u];o[u]=new xu(s&&s.currentValue,t,a===me),e[r]=t}function Iu(e){return e.__ngSimpleChanges__||null}function Fu(e,t,n,r,i){if(e=T(e),Array.isArray(e))for(var o=0;o>16;if(Go(e)||!e.multi){var v=new zt(c,i,ya),p=Nu(s,t,i?f:f+h,d);-1===p?(hn(cn(l,u),a,s),Ou(a,e,t.length),t.push(s),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(v),u.push(v)):(n[p]=v,u[p]=v)}else{var y=Nu(s,t,f+h,d),g=Nu(s,t,f,f+h),_=y>=0&&n[y],m=g>=0&&n[g];if(i&&!m||!i&&!_){hn(cn(l,u),a,s);var C=function(e,t,n,r,i){var o=new zt(e,n,ya);return o.multi=[],o.index=t,o.componentProviders=0,Tu(o,i,r&&!n),o}(i?Ru:Pu,n.length,i,r,c);!i&&m&&(n[g].providerFactory=C),Ou(a,e,t.length),t.push(s),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(C),u.push(C)}else Ou(a,e,y>-1?y:g),Tu(n[i?g:y],c,!i&&r);!i&&r&&m&&n[g].componentProviders++}}}function Ou(e,t,n){if(Go(t)||t.useClass){var r=(t.useClass||t).prototype.ngOnDestroy;r&&(e.destroyHooks||(e.destroyHooks=[])).push(n,r)}}function Tu(e,t,n){e.multi.push(t),n&&e.componentProviders++}function Nu(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=ct();if(r.firstCreatePass){var i=Le(e);Fu(n,r.data,r.blueprint,i,!0),Fu(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}Au.ngInherit=!0;var Mu=function e(){_classCallCheck(this,e)},Bu=function e(){_classCallCheck(this,e)};function Lu(e){var t=Error("No component factory found for ".concat(S(e),". Did you add it to @NgModule.entryComponents?"));return t[Hu]=e,t}var Hu="ngComponent",zu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw Lu(e)}}]),e}(),Uu=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new zu,e}(),Zu=function(){function e(t,n,r){_classCallCheck(this,e),this._parent=n,this._ngModule=r,this._factories=new Map;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:Ko.THROW_IF_NOT_FOUND,o=X(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(i=null),1&t.flags)return e._parent.get(t.token,i);var a=t.tokenKey;switch(a){case vc:case pc:case yc:return e}var u,s=e._def.providersByKey[a];if(s){var c=e._providers[s.index];return void 0===c&&(c=e._providers[s.index]=Cc(e,s)),c===hc?void 0:c}if((u=C(t.token))&&(n=e,null!=(r=u.providedIn)&&("any"===r||r===n._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(n,r)))){var l=e._providers.length;return e._def.providers[l]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:l,token:t.token},e._providers[l]=hc,e._providers[l]=Cc(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?i:e._parent.get(t.token,i)}finally{X(o)}}function Cc(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(mc(e,n[0]));case 2:return new t(mc(e,n[0]),mc(e,n[1]));case 3:return new t(mc(e,n[0]),mc(e,n[1]),mc(e,n[2]));default:for(var i=[],o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,de(n,t),Fs.dirtyParentQueries(r),kc(r),r}function wc(e,t,n){var r=t?Qs(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);ec(n,2,i,o,void 0)}function kc(e){ec(e,3,null,null,void 0)}var Dc={};function Ec(e,t,n,r,i,o){return new xc(e,t,n,r,i,o)}var xc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a,u){var s;return _classCallCheck(this,n),(s=t.call(this)).selector=e,s.componentType=r,s._inputs=o,s._outputs=a,s.ngContentSelectors=u,s.viewDefFactory=i,s}return _createClass(n,[{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=Xs(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Fs.createRootView(e,t||[],n,i,r,Dc),u=As(a,o).instance;return n&&a.renderer.setAttribute(xs(a,0).renderElement,"ng-version",es.full),new Ac(a,new Oc(a),u)}},{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}}]),n}(Bu),Ac=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._view=e,o._viewRef=r,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=r,o.changeDetectorRef=r,o.instance=i,o}return _createClass(n,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new qu(xs(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new Rc(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}}]),n}(Mu);function Sc(e,t,n){return new Ic(e,t,n)}var Ic=function(){function e(t,n,r){_classCallCheck(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]}return _createClass(e,[{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=bc(this._data,e);Fs.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Oc(t);return n.attachToViewContainerRef(this),n}return null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Qu||(i=o.get(ue));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a,u=e;return n=this._view,r=this._data,i=t,o=u._view,a=r.viewContainer._embeddedViews,null==i&&(i=a.length),o.viewContainerParent=n,fe(a,i,o),function(e,t){var n=Us(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,o),Fs.dirtyParentQueries(o),wc(r,i>0?a[i-1]:null,o),u.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,u=this._embeddedViews.indexOf(e._view);return n=this._data,r=u,i=t,o=n.viewContainer._embeddedViews,a=o[r],de(o,r),null==i&&(i=o.length),fe(o,i,a),Fs.dirtyParentQueries(a),kc(a),wc(n,i>0?o[i-1]:null,a),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=bc(this._data,e);t&&Fs.destroyView(t)}},{key:"detach",value:function(e){var t=bc(this._data,e);return t?new Oc(t):null}},{key:"element",get:function(){return new qu(this._data.renderElement)}},{key:"injector",get:function(){return new Rc(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Zs(e),e=e.parent;return e?new Rc(e,t):new Rc(this._view,null)}},{key:"length",get:function(){return this._embeddedViews.length}}]),e}();function Fc(e){return new Oc(e)}var Oc=function(){function e(t){_classCallCheck(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return _createClass(e,[{key:"markForCheck",value:function(){Ls(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Fs.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){Fs.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Fs.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,kc(this._view),Fs.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return ec(this._view,0,void 0,void 0,e=[]),e;var e}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}}]),e}();function Tc(e,t){return new Nc(e,t)}var Nc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._parentView=e,i._def=r,i}return _createClass(n,[{key:"createEmbeddedView",value:function(e){return new Oc(Fs.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new qu(xs(this._parentView,this._def.nodeIndex).renderElement)}}]),n}(ys);function Pc(e,t){return new Rc(e,t)}var Rc=function(){function e(t,n){_classCallCheck(this,e),this.view=t,this.elDef=n}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko.THROW_IF_NOT_FOUND;return Fs.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Ns(e)},t)}}]),e}();function Vc(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=xs(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Es(e,n.nodeIndex).renderText;if(20240&n.flags)return As(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index ".concat(t))}function jc(e,t,n,r){return new Mc(e,t,n,r)}var Mc=function(){function e(t,n,r,i){_classCallCheck(this,e),this._moduleType=t,this._parent=n,this._bootstrapComponents=r,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=he(t.providers.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:Ko.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default,r=0;return n&p.SkipSelf?r|=1:n&p.Self&&(r|=4),mc(this,{token:e,tokenKey:Ns(e),flags:r},t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(S(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return tl(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(rl(e,t,n,i[0]));case 2:return r(rl(e,t,n,i[0]),rl(e,t,n,i[1]));case 3:return r(rl(e,t,n,i[0]),rl(e,t,n,i[1]),rl(e,t,n,i[2]));default:for(var a=[],u=0;u4&&void 0!==arguments[4]?arguments[4]:Ko.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var a=r.tokenKey;a===Uc&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var u=e;u;){if(t)switch(a){case Bc:return il(u,t,n).renderer;case Lc:return new qu(xs(u,t.nodeIndex).renderElement);case Hc:return xs(u,t.nodeIndex).viewContainer;case zc:if(t.element.template)return xs(u,t.nodeIndex).template;break;case Uc:return Fc(il(u,t,n));case Zc:case Qc:return Pc(u,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[a];if(s){var c=As(u,s.nodeIndex);return c||(c={instance:el(u,s)},u.nodes[s.nodeIndex]=c),c.instance}}n=qs(u),t=Zs(u),u=u.parent,4&r.flags&&(u=null)}var l=o.root.injector.get(r.token,nl);return l!==nl||i===nl?l:o.root.ngModule.injector.get(r.token,i)}function il(e,t,n){var r;if(n)r=xs(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!qs(r);)r=r.parent;return r}function ol(e,t,n,r,i,o){if(32768&n.flags){var a=xs(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var u=aa.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new xu(u,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function al(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i0&&po(c,f,C.join(" "))}o=Ye(y[1],0),t&&(o.projection=t.map((function(e){return Array.from(e)}))),i=function(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=ft();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),mi(e,r,1),ki(e,t,n));var i=_n(t,e,t.length-1,r);xr(i,t);var o=$e(r,t);return o&&xr(o,t),i}(o,n,t);r.components.push(a),e[8]=a,i&&i.forEach((function(e){return e(a,t)})),t.contentQueries&&t.contentQueries(1,a,n.length-1);var u=ft();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Tt(u.index-19);var s=n[1];yi(s,t),gi(s,n,t.hostVars),_i(t,a)}return a}(g,this.componentDef,y,v,[Cu]),ri(p,y,null)}finally{Ft()}var b=new hl(this.componentType,i,bo(qu,o,y),y,o);return n&&!h||(b.hostView._tViewNode.child=o),b}},{key:"inputs",get:function(){return ll(this.componentDef.inputs)}},{key:"outputs",get:function(){return ll(this.componentDef.outputs)}}]),n}(Bu),hl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a){var u,s,c,l;return _classCallCheck(this,n),(u=t.call(this)).location=i,u._rootLView=o,u._tNode=a,u.destroyCbs=[],u.instance=r,u.hostView=u.changeDetectorRef=new Co(o),u.hostView._tViewNode=(s=o[1],c=o,null==(l=s.node)&&(s.node=l=di(0,null,2,-1,null,null)),c[6]=l),u.componentType=e,u}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new bn(this._tNode,this._rootLView)}}]),n}(Mu),vl=void 0,pl=["en",[["a","p"],["AM","PM"],vl],[["AM","PM"],vl,vl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vl,"{1} 'at' {0}",vl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],yl={};function gl(e,t,n){"string"!=typeof t&&(n=t,t=e[wl.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),yl[t]=e,n&&(yl[t][wl.ExtraData]=n)}function _l(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=bl(t);if(n)return n;var r=t.split("-")[0];if(n=bl(r))return n;if("en"===r)return pl;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function ml(e){return _l(e)[wl.CurrencyCode]||null}function Cl(e){return _l(e)[wl.PluralCase]}function bl(e){return e in yl||(yl[e]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[e]),yl[e]}var wl=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.Directionality]="Directionality",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),kl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Dl=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,El=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,xl=/\ufffd(\d+):?\d*\ufffd/gi,Al=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Sl=/\[(\ufffd.+?\ufffd?)\]/,Il=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Fl=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Ol=/{([A-Z0-9_]+)}/g,Tl=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Nl=/\/\*/,Pl=/\d+\:(\d+)/;function Rl(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var a=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var u=e.substring(n,a);kl.test(u)?i.push(Vl(u)):i.push(u),n=a+1}}else{if(0==r.length){var s=e.substring(n,a);i.push(s),n=a+1}r.push("{")}}var c=e.substring(n);return i.push(c),i}function Vl(e){for(var t=[],n=[],r=1,i=0,o=Rl(e=e.replace(kl,(function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""}))),a=0;an.length&&n.push(s)}return{type:r,mainBinding:i,cases:t,values:n}}function jl(e){for(var t,n,r="",i=0,o=!1;null!==(t=Dl.exec(e));)o?t[0]==="\ufffd/*".concat(n,"\ufffd")&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+=e.substr(i)}function Ml(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[null,null],o=e.split(xl),a=0,u=0;u1&&void 0!==arguments[1]?arguments[1]:0;n|=zl(e.mainBinding);for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e;if(Sl.test(e)){var r={},i=[0];n=n.replace(Il,(function(e,t,n){var o=t||n,a=r[o]||[];if(a.length||(o.split("|").forEach((function(e){var t=e.match(Pl),n=t?parseInt(t[1],10):0,r=Nl.test(e);a.push([n,r,e])})),r[o]=a),!a.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(o));for(var u=i[i.length-1],s=0,c=0;c>>17;a=Ql(n,o,d===e?r[6]:Ye(n,d),a,r);break;case 0:var h=c>=0,v=(h?c:~c)>>>3;u.push(v),a=o,(o=Ye(n,v))&&dt(o,h);break;case 5:a=o=Ye(n,c>>>3),dt(o,!1);break;case 4:var p=t[++s],y=t[++s];Ei(Ye(n,c>>>3),r,p,y,null,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(c,'"'))}else switch(c){case qr:var g=t[++s],_=t[++s],m=i.createComment(g);a=o,o=Wl(n,r,_,5,m,null),u.push(_),xr(m,r),o.activeCaseIndex=null,vt();break;case Qr:var C=t[++s],b=t[++s];a=o,o=Wl(n,r,b,3,i.createElement(C),C),u.push(b);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(c,'"'))}}return vt(),u}function $l(e,t,n,r){var i=Ye(e,n),o=Ge(n,t);o&&so(t[11],o);var a=Je(t,n);if(Ve(a)){var u=a;0!==i.type&&so(t[11],u[7])}r&&(i.flags|=64)}function Kl(e,t,n){var r;(function(e,t,n){var r=ct();Ll[++Hl]=e,Ba(!0),r.firstCreatePass&&null===r.data[e+19]&&function(e,t,n,r,i){var o=t.blueprint.length-19;Ul=0;var a=ft(),u=ht()?a:a&&a.parent,s=u&&u!==e[6]?u.index-19:n,c=0;Zl[c]=s;var l=[];if(n>0&&a!==u){var f=a.index-19;ht()||(f=~f),l.push(f<<3|0)}for(var d,h=[],v=[],p=function(e,t){if("number"!=typeof t)return jl(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return jl(e.substring(n,r))}(r,i),y=(d=p,d.replace(uf," ")).split(El),g=0;g0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(var r=0;r>1),a++}}(ct(),r),Ba(!1)}function Yl(e,t){!function(e,t,n,r){for(var i=ft().index-19,o=[],a=0;a6&&void 0!==arguments[6]&&arguments[6],s=!1,c=0;c>>2,y=void 0,g=void 0;switch(3&v){case 1:var _=t[++h],m=t[++h];vi(o,Ye(o,p),a,_,d,a[11],m,!1);break;case 0:Ui(a,p,d);break;case 2:if(y=n[t[++h]],null!==(g=Ye(o,p)).activeCaseIndex)for(var C=y.remove[g.activeCaseIndex],b=0;b>>3,!1);break;case 6:var k=Ye(o,C[b+1]>>>3).activeCaseIndex;null!==k&&ce(n[w>>>3].remove[k],C)}}var D=nf(y,d);g.activeCaseIndex=-1!==D?D:null,D>-1&&(Gl(-1,y.create[D],o,a),s=!0);break;case 3:y=n[t[++h]],null!==(g=Ye(o,p)).activeCaseIndex&&e(y.update[g.activeCaseIndex],n,r,i,o,a,s)}}}c+=f}}(t,i,o,Jl,n,a),Jl=0,Xl=0}}function nf(e,t){var n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:var r=function(e,t){switch(Cl(t)(e)){case 0:return"zero";case 1:return"one";case 2:return"two";case 3:return"few";case 4:return"many";default:return"other"}}(t,sf);-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break;case 0:n=e.cases.indexOf("other")}return n}function rf(e,t,n,r){for(var i=[],o=[],a=[],u=[],s=[],c=0;c null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&(sf=e.toLowerCase().replace(/_/g,"-"))}var lf=new Map;function ff(e,t){var n=lf.get(e);df(e,n&&n.moduleType,t.moduleType),lf.set(e,t)}function df(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(S(t)," vs ").concat(S(t.name)))}var hf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new cl(_assertThisInitialized(i));var o=Pe(e),a=e[Z]||null;return a&&cf(a),i._bootstrapComponents=on(o.bootstrap),i._r3Injector=zo(e,r,[{provide:ue,useValue:_assertThisInitialized(i)},{provide:Uu,useValue:i.componentFactoryResolver}],S(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default;return e===Ko||e===ue||e===G?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(ue),vf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==Pe(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;df(n,lf.get(n),t),lf.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new hf(this.moduleType,e)}}]),n}(se);function pf(e,t,n){var r=gt()+e,i=st();return i[r]===Hr?ca(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function yf(e,t,n,r){return Cf(st(),gt(),e,t,n,r)}function gf(e,t,n,r,i){return bf(st(),gt(),e,t,n,r,i)}function _f(e,t,n,r,i,o){return function(e,t,n,r,i,o,a,u){var s=t+n;return function(e,t,n,r,i){var o=fa(e,t,n,r);return la(e,t+2,i)||o}(e,s,i,o,a)?ca(e,s+3,u?r.call(u,i,o,a):r(i,o,a)):mf(e,s+3)}(st(),gt(),e,t,n,r,i,o)}function mf(e,t){var n=e[t];return n===Hr?void 0:n}function Cf(e,t,n,r,i,o){var a=t+n;return la(e,a,i)?ca(e,a+1,o?r.call(o,i):r(i)):mf(e,a+1)}function bf(e,t,n,r,i,o,a){var u=t+n;return fa(e,u,i,o)?ca(e,u+2,a?r.call(a,i,o):r(i,o)):mf(e,u+2)}function wf(e,t){var n,r=ct(),i=e+19;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Ne(n.type)),a=ee(ya),u=o();return ee(a),function(e,t,n,r){var i=n+19;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,st(),e,u),u}function kf(e,t,n){var r=st(),i=Je(r,e);return xf(r,Ef(r,e)?Cf(r,gt(),t,i.transform,n,i):i.transform(n))}function Df(e,t,n,r){var i=st(),o=Je(i,e);return xf(i,Ef(i,e)?bf(i,gt(),t,o.transform,n,r,o):o.transform(n,r))}function Ef(e,t){return e[1].data[t+19].pure}function xf(e,t){return aa.isWrapped(t)&&(t=aa.unwrap(t),e[_t()]=Hr),t}var Af=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var o,a=function(e){return null},u=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(a=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(u=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,o,a,u);return e instanceof i.a&&e.add(s),s}}]),n}(r.a);function Sf(){return this._results[ra()]()}var If=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new Af,this.length=0;var t=ra(),n=e.prototype;n[t]||(n[t]=Sf)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},Nf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)i.push(u[s/2]);else{for(var l=a[s+1],f=n[-c],d=9;d0&&void 0!==arguments[0]?arguments[0]:p.Default,t=Do(!0);if(null!=t||e&p.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}var Yf=new W("Application Initializer"),Jf=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(Dd))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}(),Nd=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,Vd.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||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(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Vd.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Pd(e){Vd=e}var Rd,Vd=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),jd=function(e,t,n){var r=e.get(Cd,[]).concat(t),i=new vf(n);if(0===Jo.size)return Promise.resolve(i);var o,a,u=(o=r.map((function(e){return e.providers})),a=[],o.forEach((function(e){return e&&a.push.apply(a,_toConsumableArray(e))})),a);if(0===u.length)return Promise.resolve(i);var s=function(){var e=B.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),c=Ko.create({providers:u}).get(s.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(c.get(e))}(e);n.set(e,t=r.then(ea))}return t}return Jo.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var o=e.styleUrls,a=e.styles||(e.styles=[]),u=e.styles.length;o&&o.forEach((function(t,n){a.push(""),i.push(r(t).then((function(r){a[u+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)})))}));var s=Promise.all(i).then((function(){return function(e){Xo.delete(e)}(n)}));t.push(s)})),Jo=new Map,Promise.all(t).then((function(){}))}().then((function(){return i}))},Md=new W("AllowMultipleToken"),Bd=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function Ld(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new W(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Hd();if(!o||o.injector.get(Md,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:Vo,useValue:"platform"});!function(e){if(Rd&&!Rd.destroyed&&!Rd.injector.get(Md,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Rd=e.get(zd);var t=e.get(nd,null);t&&t.forEach((function(e){return e()}))}(Ko.create({providers:a,name:r}))}return function(e){var t=Hd();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Hd(){return Rd&&!Rd.destroyed?Rd:null}var zd=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Od:("zone.js"===n?void 0:n)||new Dd({enableLongStackTrace:Un(),shouldCoalesceEventChangeDetection:r})),a=[{provide:Dd,useValue:o}];return o.run((function(){var t=Ko.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(xn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Qd(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((a=n.injector.get(Jf)).runInitializers(),a.donePromise.then((function(){return cf(n.injector.get(ud,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Sa(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(u){throw t.runOutsideAngular((function(){return e.handleError(u)})),u}var a}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ud({},n);return jd(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Zd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(S(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(Ko))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Ud(e,t){return Array.isArray(t)?t.reduce(Ud,e):Object.assign(Object.assign({},e),t)}var Zd=function(){var e=function(){function e(t,n,r,i,s,c){var l=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Un(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run((function(){l.tick()}))}});var f=new o.a((function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular((function(){e.next(l._stable),e.complete()}))})),d=new o.a((function(e){var t;l._zone.runOutsideAngular((function(){t=l._zone.onStable.subscribe((function(){Dd.assertNotInAngularZone(),kd((function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))}))}))}));var n=l._zone.onUnstable.subscribe((function(){Dd.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(a.a)(f,d.pipe(Object(u.a)()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=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=e instanceof Bu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ue),o=n.create(Ko.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Td,null);return a&&o.injector.get(Nd).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Un()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;){r.value.checkNoChanges()}}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Qd(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(id,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Qd(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(Dd),ne(ad),ne(Ko),ne(xn),ne(Uu),ne(Jf))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Qd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var qd=function e(){_classCallCheck(this,e)},Wd=function e(){_classCallCheck(this,e)},Gd={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},$d=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Gd}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=_slicedToArray(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then((function(e){return e[o]})).then((function(e){return Kd(e,i,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(e){return e[i+o]})).then((function(e){return Kd(e,r,i)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(md),ne(Wd,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Kd(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Yd=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Eo)),Jd=function e(t,n){_classCallCheck(this,e),this.name=t,this.callback=n},Xd=function(){function e(t,n,r){_classCallCheck(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof eh&&n.addChild(this)}return _createClass(e,[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}]),e}(),eh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i)).properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return _createClass(n,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(_toConsumableArray(t))),t.forEach((function(t){t.parent&&t.parent.removeChild(t),e.parent=r})))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var t=[];return function e(t,r,i){t.childNodes.forEach((function(t){t instanceof n&&(r(t)&&i.push(t),e(t,r,i))}))}(this,e,t),t}},{key:"queryAllNodes",value:function(e){var t=[];return function e(t,r,i){t instanceof n&&t.childNodes.forEach((function(t){r(t)&&i.push(t),t instanceof n&&e(t,r,i)}))}(this,e,t),t}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach((function(n){n.name==e&&n.callback(t)}))}},{key:"children",get:function(){return this.childNodes.filter((function(e){return e instanceof n}))}}]),n}(Xd),th=function(){function e(t){_classCallCheck(this,e),this.nativeNode=t}return _createClass(e,[{key:"parent",get:function(){var e=this.nativeNode.parentNode;return e?new nh(e):null}},{key:"injector",get:function(){return e=this.nativeNode,null===(t=gu(e,!1))?Ko.NULL:new bn(t.lView[1].data[t.nodeIndex],t.lView);var e,t}},{key:"componentInstance",get:function(){var e=this.nativeNode;return e&&(yu(e)||function(e){var t=gu(e,!1);if(null===t)return null;for(var n,r=t.lView;null===r[0]&&(n=zr(r));)r=n;return 512&r[2]?null:r[8]}(e))}},{key:"context",get:function(){return yu(this.nativeNode)||function(e){mu(e);var t=gu(e,!1);return null===t?null:t.lView[8]}(this.nativeNode)}},{key:"listeners",get:function(){return function(e){mu(e);var t=gu(e,!1);if(null===t)return[];var n=t.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(var a=0;a=0?"dom":"output",v="boolean"==typeof d&&d;e==l&&o.push({element:e,name:c,callback:f,useCapture:v,type:h})}}return o.sort(_u),o}(this.nativeNode).filter((function(e){return"dom"===e.type}))}},{key:"references",get:function(){return e=this.nativeNode,null===(t=gu(e,!1))?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){var n=e[1].data[t];if(n&&n.localNames){for(var r={},i=n.index+1,o=0;o1){for(var c=u[1],l=1;l6&&void 0!==arguments[6]?arguments[6]:[],s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,d=arguments.length>11?arguments[11]:void 0;l||(l=Os);var h=$s(n),v=h.matchedQueries,p=h.references,y=h.matchedQueryIds,g=null,_=null;o&&(g=(a=_slicedToArray(ac(o),2))[0],_=a[1]),s=s||[];for(var m=[],C=0;C0)c=p,Mh(p)||(l=p);else for(;c&&v===c.nodeIndex+c.childCount;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),l=(c=_)&&Mh(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Os,updateRenderer:r||Os,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Mh(e){return 0!=(1&e.flags)&&null===e.element.name}function Bh(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function Lh(e,t,n,r){var i=Uh(e.root,e.renderer,e,t,n);return Zh(i,e.component,r),Qh(i),i}function Hh(e,t,n){var r=Uh(e,e.renderer,null,null,t);return Zh(r,n,n),Qh(r),r}function zh(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Uh(e.root,i,e,t.element.componentProvider,n)}function Uh(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Zh(e,t,n){e.component=t,e.context=n}function Qh(e){var t;qs(e)&&(t=xs(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&wh(e,t,0,n)&&(h=!0),d>1&&wh(e,t,1,r)&&(h=!0),d>2&&wh(e,t,2,i)&&(h=!0),d>3&&wh(e,t,3,o)&&(h=!0),d>4&&wh(e,t,4,a)&&(h=!0),d>5&&wh(e,t,5,u)&&(h=!0),d>6&&wh(e,t,6,s)&&(h=!0),d>7&&wh(e,t,7,c)&&(h=!0),d>8&&wh(e,t,8,l)&&(h=!0),d>9&&wh(e,t,9,f)&&(h=!0),h}(e,t,n,r,i,o,a,u,s,c,l,f);case 2:return function(e,t,n,r,i,o,a,u,s,c,l,f){var d=!1,h=t.bindings,v=h.length;if(v>0&&Ms(e,t,0,n)&&(d=!0),v>1&&Ms(e,t,1,r)&&(d=!0),v>2&&Ms(e,t,2,i)&&(d=!0),v>3&&Ms(e,t,3,o)&&(d=!0),v>4&&Ms(e,t,4,a)&&(d=!0),v>5&&Ms(e,t,5,u)&&(d=!0),v>6&&Ms(e,t,6,s)&&(d=!0),v>7&&Ms(e,t,7,c)&&(d=!0),v>8&&Ms(e,t,8,l)&&(d=!0),v>9&&Ms(e,t,9,f)&&(d=!0),d){var p=t.text.prefix;v>0&&(p+=Vh(n,h[0])),v>1&&(p+=Vh(r,h[1])),v>2&&(p+=Vh(i,h[2])),v>3&&(p+=Vh(o,h[3])),v>4&&(p+=Vh(a,h[4])),v>5&&(p+=Vh(u,h[5])),v>6&&(p+=Vh(s,h[6])),v>7&&(p+=Vh(c,h[7])),v>8&&(p+=Vh(l,h[8])),v>9&&(p+=Vh(f,h[9]));var y=Es(e,t.nodeIndex).renderText;e.renderer.setValue(y,p)}return d}(e,t,n,r,i,o,a,u,s,c,l,f);case 16384:return function(e,t,n,r,i,o,a,u,s,c,l,f){var d=As(e,t.nodeIndex),h=d.instance,v=!1,p=void 0,y=t.bindings.length;return y>0&&js(e,t,0,n)&&(v=!0,p=ol(e,d,t,0,n,p)),y>1&&js(e,t,1,r)&&(v=!0,p=ol(e,d,t,1,r,p)),y>2&&js(e,t,2,i)&&(v=!0,p=ol(e,d,t,2,i,p)),y>3&&js(e,t,3,o)&&(v=!0,p=ol(e,d,t,3,o,p)),y>4&&js(e,t,4,a)&&(v=!0,p=ol(e,d,t,4,a,p)),y>5&&js(e,t,5,u)&&(v=!0,p=ol(e,d,t,5,u,p)),y>6&&js(e,t,6,s)&&(v=!0,p=ol(e,d,t,6,s,p)),y>7&&js(e,t,7,c)&&(v=!0,p=ol(e,d,t,7,c,p)),y>8&&js(e,t,8,l)&&(v=!0,p=ol(e,d,t,8,l,p)),y>9&&js(e,t,9,f)&&(v=!0,p=ol(e,d,t,9,f,p)),p&&h.ngOnChanges(p),65536&t.flags&&Ds(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),v}(e,t,n,r,i,o,a,u,s,c,l,f);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,u,s,c,l,f){var d=t.bindings,h=!1,v=d.length;if(v>0&&Ms(e,t,0,n)&&(h=!0),v>1&&Ms(e,t,1,r)&&(h=!0),v>2&&Ms(e,t,2,i)&&(h=!0),v>3&&Ms(e,t,3,o)&&(h=!0),v>4&&Ms(e,t,4,a)&&(h=!0),v>5&&Ms(e,t,5,u)&&(h=!0),v>6&&Ms(e,t,6,s)&&(h=!0),v>7&&Ms(e,t,7,c)&&(h=!0),v>8&&Ms(e,t,8,l)&&(h=!0),v>9&&Ms(e,t,9,f)&&(h=!0),h){var p,y=Ss(e,t.nodeIndex);switch(201347067&t.flags){case 32:p=[],v>0&&p.push(n),v>1&&p.push(r),v>2&&p.push(i),v>3&&p.push(o),v>4&&p.push(a),v>5&&p.push(u),v>6&&p.push(s),v>7&&p.push(c),v>8&&p.push(l),v>9&&p.push(f);break;case 64:p={},v>0&&(p[d[0].name]=n),v>1&&(p[d[1].name]=r),v>2&&(p[d[2].name]=i),v>3&&(p[d[3].name]=o),v>4&&(p[d[4].name]=a),v>5&&(p[d[5].name]=u),v>6&&(p[d[6].name]=s),v>7&&(p[d[7].name]=c),v>8&&(p[d[8].name]=l),v>9&&(p[d[9].name]=f);break;case 128:var g=n;switch(v){case 1:p=g.transform(n);break;case 2:p=g.transform(r);break;case 3:p=g.transform(r,i);break;case 4:p=g.transform(r,i,o);break;case 5:p=g.transform(r,i,o,a);break;case 6:p=g.transform(r,i,o,a,u);break;case 7:p=g.transform(r,i,o,a,u,s);break;case 8:p=g.transform(r,i,o,a,u,s,c);break;case 9:p=g.transform(r,i,o,a,u,s,c,l);break;case 10:p=g.transform(r,i,o,a,u,s,c,l,f)}}y.value=p}return h}(e,t,n,r,i,o,a,u,s,c,l,f);default:throw"unreachable"}}(e,t,r,i,o,a,u,s,c,l,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&Bs(e,t,0,n),d>1&&Bs(e,t,1,r),d>2&&Bs(e,t,2,i),d>3&&Bs(e,t,3,o),d>4&&Bs(e,t,4,a),d>5&&Bs(e,t,5,u),d>6&&Bs(e,t,6,s),d>7&&Bs(e,t,7,c),d>8&&Bs(e,t,8,l),d>9&&Bs(e,t,9,f)}(e,t,r,i,o,a,u,s,c,l,f,d):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);hv.forEach((function(t,n){if(o.has(C(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:Ks(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Ns(n)]=i}}))}}(e=e.factory((function(){return Os}))),e):e}(r))}var dv=new Map,hv=new Map,vv=new Map;function pv(e){var t;dv.set(e.token,e),"function"==typeof e.token&&(t=C(e.token))&&"function"==typeof t.providedIn&&hv.set(e.token,e)}function yv(e,t){var n=Xs(t.viewDefFactory),r=Xs(n.nodes[0].element.componentView);vv.set(e,r)}function gv(){dv.clear(),hv.clear(),vv.clear()}function _v(e){if(0===dv.size)return e;var t=function(e){for(var t=[],n=null,r=0;r3?o-3:0),u=3;u3?o-3:0),u=3;u1?t-1:0),r=1;r1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.Jb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},o.Jb.getAllAngularRootElements=function(){return e.getAllRootElements()},o.Jb.frameworkStabilizers||(o.Jb.frameworkStabilizers=[]),o.Jb.frameworkStabilizers.push((function(e){var t=o.Jb.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Object(i.N)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(o.hb)(new e)}}]),e}(),f=new o.w("EventManagerPlugins"),d=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&S.hasOwnProperty(t)&&(t=S[t]))}return A[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),x.forEach((function(r){r!=n&&(0,I[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(h);return e.\u0275fac=function(t){return new(t||e)(o.Oc(i.e))},e.\u0275prov=o.vc({token:e,factory:e.\u0275fac}),e}(),O=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o.vc)({factory:function(){return Object(o.Oc)(N)},token:e,providedIn:"root"}),e}();function T(e){return new N(e.get(i.e))}var N=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case o.Q.NONE:return t;case o.Q.HTML:return Object(o.sb)(t,"HTML")?Object(o.gc)(t):Object(o.pb)(this._doc,String(t));case o.Q.STYLE:return Object(o.sb)(t,"Style")?Object(o.gc)(t):Object(o.qb)(t);case o.Q.SCRIPT:if(Object(o.sb)(t,"Script"))return Object(o.gc)(t);throw new Error("unsafe value used in a script context");case o.Q.URL:return Object(o.Ib)(t),Object(o.sb)(t,"URL")?Object(o.gc)(t):Object(o.rb)(String(t));case o.Q.RESOURCE_URL:if(Object(o.sb)(t,"ResourceURL"))return Object(o.gc)(t);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(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return Object(o.ub)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return Object(o.xb)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return Object(o.wb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return Object(o.yb)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return Object(o.vb)(e)}}]),n}(O);return e.\u0275fac=function(t){return new(t||e)(o.Oc(i.e))},e.\u0275prov=Object(o.vc)({factory:function(){return T(Object(o.Oc)(o.u))},token:e,providedIn:"root"}),e}(),P=[{provide:o.J,useValue:i.M},{provide:o.K,useValue:function(){a.makeCurrent(),l.init()},multi:!0},{provide:i.e,useFactory:function(){return Object(o.cc)(document),document},deps:[]}],R=[[],{provide:o.mb,useValue:"root"},{provide:o.s,useFactory:function(){return new o.s},deps:[]},{provide:f,useClass:D,multi:!0,deps:[i.e,o.G,o.J]},{provide:f,useClass:F,multi:!0,deps:[i.e]},[],{provide:C,useClass:C,deps:[d,p,o.c]},{provide:o.N,useExisting:C},{provide:v,useExisting:p},{provide:p,useClass:p,deps:[i.e]},{provide:o.W,useClass:o.W,deps:[o.G]},{provide:d,useClass:d,deps:[f,o.G]},[]],V=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)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 _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:o.c,useValue:t.appId},{provide:s,useExisting:o.c},c]}}}]),e}();return e.\u0275mod=o.xc({type:e}),e.\u0275inj=o.wc({factory:function(t){return new(t||e)(o.Oc(e,12))},providers:R,imports:[i.c,o.f]}),e}();"undefined"!=typeof window&&window},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(r.a)},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("KqfI");function i(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(r.Oc(c),r.Oc(C,8))},e.\u0275prov=r.vc({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=p(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(r.Oc(c),r.Oc(C,8))},e.\u0275prov=r.vc({token:e,factory:e.\u0275fac}),e}(),k=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._subject=new r.t,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=y(E(o)),this._platformStrategy.onPopState((function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})}))}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,E(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Oc(_),r.Oc(c))},e.normalizeQueryParams=g,e.joinWithSlash=p,e.stripTrailingSlash=y,e.\u0275prov=Object(r.vc)({factory:D,token:e,providedIn:"root"}),e}();function D(){return new k(Object(r.Oc)(_),Object(r.Oc)(c))}function E(e){return e.replace(/\/index.html$/,"")}var x={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]},A=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),S=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),I=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),F=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),O=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),T=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function N(e,t){return L(Object(r.Eb)(e)[r.nb.DateFormat],t)}function P(e,t){return L(Object(r.Eb)(e)[r.nb.TimeFormat],t)}function R(e,t){return L(Object(r.Eb)(e)[r.nb.DateTimeFormat],t)}function V(e,t){var n=Object(r.Eb)(e),i=n[r.nb.NumberSymbols][t];if(void 0===i){if(t===T.CurrencyDecimal)return n[r.nb.NumberSymbols][T.Decimal];if(t===T.CurrencyGroup)return n[r.nb.NumberSymbols][T.Group]}return i}function j(e,t){return Object(r.Eb)(e)[r.nb.NumberFormats][t]}var M=r.Hb;function B(e){if(!e[r.nb.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[r.nb.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function L(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function H(e){var t=_slicedToArray(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},Z=/((?:[^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]*)/,Q=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),q=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),W=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function G(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));for(var a=String(e);a.length2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var u,s=function(e,t){switch(e){case q.FullYear:return t.getFullYear();case q.Month:return t.getMonth();case q.Date:return t.getDate();case q.Hours:return t.getHours();case q.Minutes:return t.getMinutes();case q.Seconds:return t.getSeconds();case q.FractionalSeconds:return t.getMilliseconds();case q.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||s>-n)&&(s+=n),e===q.Hours)0===s&&-12===n&&(s=12);else if(e===q.FractionalSeconds)return u=t,$(s,3).substr(0,u);var c=V(a,T.MinusSign);return $(s,t,c,r,i)}}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,t,n,i,o,a){switch(n){case W.Months:return function(e,t,n){var i=Object(r.Eb)(e),o=L([i[r.nb.MonthsFormat],i[r.nb.MonthsStandalone]],t);return L(o,n)}(t,o,i)[e.getMonth()];case W.Days:return function(e,t,n){var i=Object(r.Eb)(e),o=L([i[r.nb.DaysFormat],i[r.nb.DaysStandalone]],t);return L(o,n)}(t,o,i)[e.getDay()];case W.DayPeriods:var u=e.getHours(),s=e.getMinutes();if(a){var c,l=function(e){var t=Object(r.Eb)(e);return B(t),(t[r.nb.ExtraData][2]||[]).map((function(e){return"string"==typeof e?H(e):[H(e[0]),H(e[1])]}))}(t),f=function(e,t,n){var i=Object(r.Eb)(e);B(i);var o=L([i[r.nb.ExtraData][0],i[r.nb.ExtraData][1]],t)||[];return L(o,n)||[]}(t,o,i);if(l.forEach((function(e,t){if(Array.isArray(e)){var n=e[0],r=n.hours,i=n.minutes,o=e[1],a=o.hours,l=o.minutes;u>=r&&s>=i&&(u0?Math.floor(i/60):Math.ceil(i/60);switch(e){case Q.Short:return(i>=0?"+":"")+$(a,2,o)+$(Math.abs(i%60),2,o);case Q.ShortGMT:return"GMT"+(i>=0?"+":"")+$(a,1,o);case Q.Long:return"GMT"+(i>=0?"+":"")+$(a,2,o)+":"+$(Math.abs(i%60),2,o);case Q.Extended:return 0===r?"Z":(i>=0?"+":"")+$(a,2,o)+":"+$(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i,o,a,u;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();i=1+Math.floor((c+s)/7)}else{var l=(o=n.getFullYear(),a=new Date(o,0,1).getDay(),new Date(o,0,1+(a<=4?4:11)-a)),f=(u=n,new Date(u.getFullYear(),u.getMonth(),u.getDate()+(4-u.getDay()))).getTime()-l.getTime();i=1+Math.round(f/6048e5)}return $(i,e,V(r,T.MinusSign))}}var ee={};function te(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ne(e){return e instanceof Date&&!isNaN(e.valueOf())}var re=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ie(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u="",s=!1;if(isFinite(e)){var c=function(e){var t,n,r,i,o,a=Math.abs(e)+"",u=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;"0"===a.charAt(r);r++);if(r===(o=a.length))t=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(a.charAt(r))}return n>22&&(t=t.splice(0,21),u=n-1,n=1),{digits:t,exponent:u,integerLen:n}}(e);a&&(c=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));var l=t.minInt,f=t.minFrac,d=t.maxFrac;if(o){var h=o.match(re);if(null===h)throw new Error("".concat(o," is not a valid digit info"));var v=h[1],p=h[3],y=h[5];null!=v&&(l=ae(v)),null!=p&&(f=ae(p)),null!=y?d=ae(y):null!=p&&f>d&&(d=f)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),a=o+e.integerLen,u=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var s=a;s=5)if(a-1<0){for(var l=0;l>a;l--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;i=d?r.pop():f=!1),t>=10?1:0}),0);h&&(r.unshift(h),e.integerLen++)}(c,f,d);var g=c.digits,_=c.integerLen,m=c.exponent,C=[];for(s=g.every((function(e){return!e}));_0?C=g.splice(_,g.length):(C=g,g=[0]);var b=[];for(g.length>=t.lgSize&&b.unshift(g.splice(-t.lgSize,g.length).join(""));g.length>t.gSize;)b.unshift(g.splice(-t.gSize,g.length).join(""));g.length&&b.unshift(g.join("")),u=b.join(V(n,r)),C.length&&(u+=V(n,i)+C.join("")),m&&(u+=V(n,T.Exponential)+"+"+m)}else u=V(n,T.Infinity);return u=e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],o=r[1],a=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],u=a[0],s=a[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(var c=0;c-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(e,'"'))}var ce=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(M(t||this.locale)(e)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}]),n}(ue);return e.\u0275fac=function(t){return new(t||e)(r.Oc(r.A))},e.\u0275prov=r.vc({token:e,factory:e.\u0275fac}),e}();function le(e,t,n){return Object(r.ac)(e,t,n)}function fe(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),u=a[0],s=a[1];if(u.trim()===t)return decodeURIComponent(s)}}catch(c){r.e(c)}finally{r.f()}return null}var de=function(){var e=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(r.dc)(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Mb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.zc(r.y),r.zc(r.z),r.zc(r.q),r.zc(r.M))},e.\u0275dir=r.uc({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),he=function(){var e=function(){function e(t){_classCallCheck(this,e),this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(r.E);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.n)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.zc(r.Y))},e.\u0275dir=r.uc({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r.jc]}),e}(),ve=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{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}}]),e}(),pe=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new ve(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new ye(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var u=t._viewContainer.get(r);t._viewContainer.move(u,i);var s=new ye(e,u);n.push(s)}}));for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return function(e,t,n,i){var o=function(e){if(ne(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var r=_slicedToArray(e.split("-").map((function(e){return+e})),3),i=r[0],o=r[1],a=r[2];return new Date(i,o-1,a)}if(t=e.match(z))return function(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,u=Number(e[5]||0)-r,s=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,u,s,c),t}(t)}var u=new Date(e);if(!ne(u))throw new Error('Unable to convert "'.concat(e,'" into a date'));return u}(e);t=function e(t,n){var i=function(e){return Object(r.Eb)(e)[r.nb.LocaleId]}(t);if(U[i]=U[i]||{},U[i][n])return U[i][n];var o="";switch(n){case"shortDate":o=N(t,O.Short);break;case"mediumDate":o=N(t,O.Medium);break;case"longDate":o=N(t,O.Long);break;case"fullDate":o=N(t,O.Full);break;case"shortTime":o=P(t,O.Short);break;case"mediumTime":o=P(t,O.Medium);break;case"longTime":o=P(t,O.Long);break;case"fullTime":o=P(t,O.Full);break;case"short":var a=e(t,"shortTime"),u=e(t,"shortDate");o=G(R(t,O.Short),[a,u]);break;case"medium":var s=e(t,"mediumTime"),c=e(t,"mediumDate");o=G(R(t,O.Medium),[s,c]);break;case"long":var l=e(t,"longTime"),f=e(t,"longDate");o=G(R(t,O.Long),[l,f]);break;case"full":var d=e(t,"fullTime"),h=e(t,"fullDate");o=G(R(t,O.Full),[d,h])}return o&&(U[i][n]=o),o}(n,t)||t;for(var a,u=[];t;){if(!(a=Z.exec(t))){u.push(t);break}var s=(u=u.concat(a.slice(1))).pop();if(!s)break;t=s}var c=o.getTimezoneOffset();i&&(c=te(i,c),o=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(te(t,r)-r))}(o,i));var l="";return u.forEach((function(e){var t=function(e){if(ee[e])return ee[e];var t;switch(e){case"G":case"GG":case"GGG":t=Y(W.Eras,F.Abbreviated);break;case"GGGG":t=Y(W.Eras,F.Wide);break;case"GGGGG":t=Y(W.Eras,F.Narrow);break;case"y":t=K(q.FullYear,1,0,!1,!0);break;case"yy":t=K(q.FullYear,2,0,!0,!0);break;case"yyy":t=K(q.FullYear,3,0,!1,!0);break;case"yyyy":t=K(q.FullYear,4,0,!1,!0);break;case"M":case"L":t=K(q.Month,1,1);break;case"MM":case"LL":t=K(q.Month,2,1);break;case"MMM":t=Y(W.Months,F.Abbreviated);break;case"MMMM":t=Y(W.Months,F.Wide);break;case"MMMMM":t=Y(W.Months,F.Narrow);break;case"LLL":t=Y(W.Months,F.Abbreviated,I.Standalone);break;case"LLLL":t=Y(W.Months,F.Wide,I.Standalone);break;case"LLLLL":t=Y(W.Months,F.Narrow,I.Standalone);break;case"w":t=X(1);break;case"ww":t=X(2);break;case"W":t=X(1,!0);break;case"d":t=K(q.Date,1);break;case"dd":t=K(q.Date,2);break;case"E":case"EE":case"EEE":t=Y(W.Days,F.Abbreviated);break;case"EEEE":t=Y(W.Days,F.Wide);break;case"EEEEE":t=Y(W.Days,F.Narrow);break;case"EEEEEE":t=Y(W.Days,F.Short);break;case"a":case"aa":case"aaa":t=Y(W.DayPeriods,F.Abbreviated);break;case"aaaa":t=Y(W.DayPeriods,F.Wide);break;case"aaaaa":t=Y(W.DayPeriods,F.Narrow);break;case"b":case"bb":case"bbb":t=Y(W.DayPeriods,F.Abbreviated,I.Standalone,!0);break;case"bbbb":t=Y(W.DayPeriods,F.Wide,I.Standalone,!0);break;case"bbbbb":t=Y(W.DayPeriods,F.Narrow,I.Standalone,!0);break;case"B":case"BB":case"BBB":t=Y(W.DayPeriods,F.Abbreviated,I.Format,!0);break;case"BBBB":t=Y(W.DayPeriods,F.Wide,I.Format,!0);break;case"BBBBB":t=Y(W.DayPeriods,F.Narrow,I.Format,!0);break;case"h":t=K(q.Hours,1,-12);break;case"hh":t=K(q.Hours,2,-12);break;case"H":t=K(q.Hours,1);break;case"HH":t=K(q.Hours,2);break;case"m":t=K(q.Minutes,1);break;case"mm":t=K(q.Minutes,2);break;case"s":t=K(q.Seconds,1);break;case"ss":t=K(q.Seconds,2);break;case"S":t=K(q.FractionalSeconds,1);break;case"SS":t=K(q.FractionalSeconds,2);break;case"SSS":t=K(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=J(Q.Short);break;case"ZZZZZ":t=J(Q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=J(Q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=J(Q.Long);break;default:return null}return ee[e]=t,t}(e);l+=t?t(o,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}(t,n,o||this.locale,i)}catch(a){throw Se(e,a.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.zc(r.A))},e.\u0275pipe=r.yc({name:"date",type:e,pure:!0}),e}(),Me=/#/g,Be=function(){var e=function(){function e(t){_classCallCheck(this,e),this._localization=t}return _createClass(e,[{key:"transform",value:function(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw Se(e,n);return n[se(t,Object.keys(n),this._localization,r)].replace(Me,t.toString())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.zc(ue))},e.\u0275pipe=r.yc({name:"i18nPlural",type:e,pure:!0}),e}(),Le=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw Se(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"i18nSelect",type:e,pure:!0}),e}(),He=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return JSON.stringify(e,null,2)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"json",type:e,pure:!1}),e}(),ze=function(){var e=function(){function e(t){_classCallCheck(this,e),this.differs=t,this.keyValues=[]}return _createClass(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var r=this.differ.diff(e);return r&&(this.keyValues=[],r.forEachItem((function(e){t.keyValues.push({key:e.key,value:e.currentValue})})),this.keyValues.sort(n)),this.keyValues}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.zc(r.z))},e.\u0275pipe=r.yc({name:"keyvalue",type:e,pure:!1}),e}();function Ue(e,t){var n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n1&&void 0!==arguments[1]?arguments[1]:"USD";_classCallCheck(this,e),this._locale=t,this._defaultCurrencyCode=n}return _createClass(e,[{key:"transform",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;if(We(t))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 u=n||this._defaultCurrencyCode;"code"!==i&&(u="symbol"===i||"symbol-narrow"===i?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",i=function(e){return Object(r.Eb)(e)[r.nb.Currencies]}(n)[e]||x[e]||[],o=i[1];return"narrow"===t&&"string"==typeof o?o:i[0]||e}(u,"symbol"===i?"wide":"narrow",a):i);try{return function(e,t,n,r,i){var o=oe(j(t,A.Currency),V(t,T.MinusSign));return o.minFrac=function(e){var t,n=x[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),o.maxFrac=o.minFrac,ie(e,o,t,T.CurrencyGroup,T.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}(Ge(t),a,u,n,o)}catch(s){throw Se(e,s.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.zc(r.A),r.zc(r.p))},e.\u0275pipe=r.yc({name:"currency",type:e,pure:!0}),e}();function We(e){return null==e||""===e||e!=e}function Ge(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}var $e=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n,r){if(null==t)return t;if(!this.supports(t))throw Se(e,t);return t.slice(n,r)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.yc({name:"slice",type:e,pure:!1}),e}(),Ke=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.xc({type:e}),e.\u0275inj=r.wc({factory:function(t){return new(t||e)},providers:[{provide:ue,useClass:ce}]}),e}(),Ye="browser";function Je(e){return e===Ye}function Xe(e){return"server"===e}var et=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=Object(r.vc)({token:e,providedIn:"root",factory:function(){return new tt(Object(r.Oc)(s),window,Object(r.Oc)(r.s))}}),e}(),tt=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#".concat(e));if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}()},quSY:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r,i,o=n("DH7j"),a=n("XoHu"),u=n("n6bG"),s=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),c=((i=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,r=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var c=0;c1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(o.a),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.a).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.a.EMPTY)),e}},{key:"refCount",value:function(){return u()(this)}}]),n}(i.a),d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(s=f.prototype)._subscribe},_isComplete:{value:s._isComplete,writable:!0},getSubject:{value:s.getSubject},connect:{value:s.connect},refCount:{value:s.refCount}},h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(r.b);function v(){return new r.a}function p(){return function(e){return u()((t=v,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,d);return r.source=e,r.subjectFactory=n,r})(e));var t}}},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},zUnb:function(e,t,n){"use strict";n.r(t),n("N/DB");var r=n("fXoL"),i=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});function o(e){var t=function(e){for(var t="",n=0;n=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}(e),n=a(t,0),r=a(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function a(e,t){var n,r=2654435769,i=2654435769,o=e.length;for(n=0;n+12<=o;n+=12){var a=u(r=c(r,h(e,n,s.Little)),i=c(i,h(e,n+4,s.Little)),t=c(t,h(e,n+8,s.Little)));r=a[0],i=a[1],t=a[2]}return r=c(r,h(e,n,s.Little)),i=c(i,h(e,n+4,s.Little)),t=c(t,o),u(r,i,t=c(t,h(e,n+8,s.Little)<<8))[2]}function u(e,t,n){return e=f(e,t),e=f(e,n),e^=n>>>13,t=f(t,n),t=f(t,e),t^=e<<8,n=f(n,e),n=f(n,t),n^=t>>>13,e=f(e,t),e=f(e,n),e^=n>>>12,t=f(t,n),t=f(t,e),t^=e<<16,n=f(n,e),n=f(n,t),n^=t>>>5,e=f(e,t),e=f(e,n),e^=n>>>3,t=f(t,n),t=f(t,e),t^=e<<10,n=f(n,e),n=f(n,t),[e,t,n^=t>>>15]}"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var s=function(e){return e[e.Little=0]="Little",e[e.Big=1]="Big",e}({});function c(e,t){return l(e,t)[1]}function l(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function f(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function d(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function h(e,t,n){var r=0;if(n===s.Big)for(var i=0;i<4;i++)r+=d(e,t+i)<<24-8*i;else for(var o=0;o<4;o++)r+=d(e,t+o)<<8*o;return r}function v(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i=10?(o=1,n+=a-10):(o=0,n+=a)}return n}function p(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=v(n,r)),r=v(r,r);return n}var y=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){return""}}]),e}(),g=function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.defaultEncapsulation,o=void 0===r?i.Emulated:r,a=n.useJit,u=void 0===a||a,s=n.jitDevMode,c=void 0!==s&&s,l=n.missingTranslation,f=void 0===l?null:l,d=n.preserveWhitespaces,h=n.strictInjectionParameters;_classCallCheck(this,e),this.defaultEncapsulation=o,this.useJit=!!u,this.jitDevMode=!!c,this.missingTranslation=f,this.preserveWhitespaces=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?t:e}(void 0===(t=d)?null:t),this.strictInjectionParameters=!0===h},_=n("ofXK"),m=n("jhN1"),C=[{provide:r.k,useFactory:function(){return new r.k}}];function b(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function w(e){var t=[];return e.forEach((function(e){return e&&t.push.apply(t,_toConsumableArray(e))})),t}var k,D=Object(r.bb)(r.gb,"coreDynamic",[{provide:r.h,useValue:{},multi:!0},{provide:r.l,useClass:function(){function e(t){_classCallCheck(this,e),this._defaultOptions=[{useJit:!0,defaultEncapsulation:r.Z.Emulated,missingTranslation:r.B.Warning}].concat(_toConsumableArray(t))}return _createClass(e,[{key:"createCompiler",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n={useJit:b((e=this._defaultOptions.concat(t)).map((function(e){return e.useJit}))),defaultEncapsulation:b(e.map((function(e){return e.defaultEncapsulation}))),providers:w(e.map((function(e){return e.providers}))),missingTranslation:b(e.map((function(e){return e.missingTranslation}))),preserveWhitespaces:b(e.map((function(e){return e.preserveWhitespaces})))};return r.x.create([C,{provide:g,useFactory:function(){return new g({useJit:n.useJit,jitDevMode:Object(r.fb)(),defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,preserveWhitespaces:n.preserveWhitespaces})},deps:[]},n.providers]).get(r.k)}}]),e}(),deps:[r.h]}]),E=((k=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"get",value:function(e){var t,n,r=new Promise((function(e,r){t=e,n=r})),i=new XMLHttpRequest;return i.open("GET",e,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?t(r):n("Failed to load ".concat(e))},i.onerror=function(){n("Failed to load ".concat(e))},i.send(),r}}]),n}(y)).\u0275fac=function(e){return x(e||k)},k.\u0275prov=r.vc({token:k,factory:k.\u0275fac}),k),x=r.Hc(E),A=[m.e,{provide:r.h,useValue:{providers:[{provide:y,useClass:E,deps:[]}]},multi:!0},{provide:r.J,useValue:_.M}],S=Object(r.bb)(D,"browserDynamic",A);function I(e,t){if(":"!==t.charAt(0))return{text:e};var n=function(e,t){for(var n=1,r=1;n1&&void 0!==arguments[1]?arguments[1]:"",_=o(e);if(g){var m=o(g);h=(f=_)[0],y=f[1],r=(t=[h<<1|y>>>31,y<<1|h>>>31])[0],i=(n=m)[0],a=l(t[1],n[1]),u=a[0],s=a[1],_=[c(c(r,i),u),s]}return function(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=v(t,p(d(e,r),n)),n=p(256,n);return t.split("").reverse().join("")}([2147483647&_[0],_[1]].reduce((function(e,t){return e+function(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)}),""))}(s,i.meaning||""),C=i.legacyIds.filter((function(e){return e!==m}));return{messageId:m,legacyIds:C,substitutions:r,messageString:s,meaning:i.meaning||"",description:i.description||"",messageParts:a,placeholderNames:u}}(t,n),i=e[r.messageId],a=0;a=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},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 r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(s((function(n,r){return Object(u.a)(e(n,r)).pipe(Object(a.a)((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(i.a)},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a)},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("n6bG"),i=n("gRHU"),o=n("quSY"),a=n("2QA8"),u=n("2fFW"),s=n("NJ4a"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,o){var a;switch(_classCallCheck(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!e){a.destination=i.a;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(_assertThisInitialized(a))):(a.syncErrorThrowable=!0,a.destination=new l(_assertThisInitialized(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new l(_assertThisInitialized(a),e,r,o)}return a}return _createClass(n,[{key:a.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(o.a),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,o,a,u){var s,c;_classCallCheck(this,n),(s=t.call(this))._parentSubscriber=e;var l=_assertThisInitialized(s);return Object(r.a)(o)?c=o:o&&(c=o.next,a=o.error,u=o.complete,o!==i.a&&(l=Object.create(o),Object(r.a)(l.unsubscribe)&&s.add(l.unsubscribe.bind(l)),l.unsubscribe=s.unsubscribe.bind(_assertThisInitialized(s)))),s._context=l,s._next=c,s._error=a,s._complete=u,s}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(s.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(s.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw n;Object(s.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(s.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(c)},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},Cfvw:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("HDdC"),i=n("SeVD"),o=n("quSY"),a=n("kJWO"),u=n("jZKg"),s=n("Lhse"),c=n("c2HN"),l=n("I55L");function f(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return new r.a((function(n){var r=new o.a;return r.add(t.schedule((function(){var i=e[a.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Object(c.a)(e))return function(e,t){return new r.a((function(n){var r=new o.a;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(Object(l.a)(e))return Object(u.a)(e,t);if(function(e){return e&&"function"==typeof e[s.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[s.a](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},HDdC:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r,i=n("7o/Q"),o=n("2QA8"),a=n("gRHU"),u=n("kJWO"),s=n("mCNh"),c=n("2fFW"),l=((r=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,u=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new i.a(e,t,n):new i.a(a.a)}(e,t,n);if(u.add(r?r.call(u,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),c.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,o=t.isStopped;if(n||o)return!1;e=r&&r instanceof i.a?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=f(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}}),r,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:u.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;i1&&"number"==typeof t[t.length-1]&&(u=t.pop())):"number"==typeof c&&(u=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(u)(Object(a.a)(t,s))}},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n("HDdC"),i=n("7o/Q"),o=n("quSY"),a=n("9ppp"),u=n("Ylt2"),s=n("2QA8"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).destination=e,r}return n}(i.a),l=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:s.a,value:function(){return new c(this)}},{key:"lift",value:function(e){var t=new f(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new a.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i4&&void 0!==arguments[4]?arguments[4]:new r.a(e,n,a);if(!u.closed)return t instanceof o.a?t.subscribe(u):Object(i.a)(t)(u)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("5+tZ"),i=n("SpAZ");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,e)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},fXoL:function(e,t,n){"use strict";n.d(t,"a",(function(){return Yo})),n.d(t,"b",(function(){return rd})),n.d(t,"c",(function(){return Jf})),n.d(t,"d",(function(){return Kf})),n.d(t,"e",(function(){return Yf})),n.d(t,"f",(function(){return vh})),n.d(t,"g",(function(){return zd})),n.d(t,"h",(function(){return md})),n.d(t,"i",(function(){return ge})),n.d(t,"j",(function(){return Eo})),n.d(t,"k",(function(){return _d})),n.d(t,"l",(function(){return Cd})),n.d(t,"m",(function(){return ju})),n.d(t,"n",(function(){return Uu})),n.d(t,"o",(function(){return Vu})),n.d(t,"p",(function(){return ud})),n.d(t,"q",(function(){return qu})),n.d(t,"r",(function(){return xn})),n.d(t,"s",(function(){return xf})),n.d(t,"t",(function(){return G})),n.d(t,"u",(function(){return f})),n.d(t,"v",(function(){return W})),n.d(t,"w",(function(){return Ko})),n.d(t,"x",(function(){return ls})),n.d(t,"y",(function(){return fs})),n.d(t,"z",(function(){return ad})),n.d(t,"A",(function(){return ld})),n.d(t,"B",(function(){return se})),n.d(t,"C",(function(){return qd})),n.d(t,"D",(function(){return ue})),n.d(t,"E",(function(){return jd})),n.d(t,"F",(function(){return kd})),n.d(t,"G",(function(){return d})),n.d(t,"H",(function(){return id})),n.d(t,"I",(function(){return nd})),n.d(t,"J",(function(){return td})),n.d(t,"K",(function(){return Sf})),n.d(t,"L",(function(){return $u})),n.d(t,"M",(function(){return Wu})),n.d(t,"N",(function(){return Gu})),n.d(t,"O",(function(){return Yu})),n.d(t,"P",(function(){return vr})),n.d(t,"Q",(function(){return v})),n.d(t,"R",(function(){return Gd})),n.d(t,"S",(function(){return sd})),n.d(t,"T",(function(){return cd})),n.d(t,"U",(function(){return ps})),n.d(t,"V",(function(){return Td})),n.d(t,"W",(function(){return Ju})),n.d(t,"X",(function(){return gs})),n.d(t,"Y",(function(){return _e})),n.d(t,"Z",(function(){return aa})),n.d(t,"ab",(function(){return Bd})),n.d(t,"bb",(function(){return Zn})),n.d(t,"cb",(function(){return T})),n.d(t,"db",(function(){return re})),n.d(t,"eb",(function(){return zn})),n.d(t,"fb",(function(){return dh})),n.d(t,"gb",(function(){return Nd})),n.d(t,"hb",(function(){return zu})),n.d(t,"ib",(function(){return od})),n.d(t,"jb",(function(){return lc})),n.d(t,"kb",(function(){return fc})),n.d(t,"lb",(function(){return Mo})),n.d(t,"mb",(function(){return bl})),n.d(t,"nb",(function(){return No})),n.d(t,"ob",(function(){return dr})),n.d(t,"pb",(function(){return gr})),n.d(t,"qb",(function(){return Gn})),n.d(t,"rb",(function(){return Pn})),n.d(t,"sb",(function(){return ph})),n.d(t,"tb",(function(){return Mn})),n.d(t,"ub",(function(){return Ln})),n.d(t,"vb",(function(){return jn})),n.d(t,"wb",(function(){return Vn})),n.d(t,"xb",(function(){return Bn})),n.d(t,"yb",(function(){return Dc})),n.d(t,"zb",(function(){return Lv})),n.d(t,"Ab",(function(){return Ps})),n.d(t,"Bb",(function(){return qc})),n.d(t,"Cb",(function(){return yh})),n.d(t,"Db",(function(){return gl})),n.d(t,"Eb",(function(){return lh})),n.d(t,"Fb",(function(){return _l})),n.d(t,"Gb",(function(){return ml})),n.d(t,"Hb",(function(){return Rn})),n.d(t,"Ib",(function(){return B})),n.d(t,"Jb",(function(){return sc})),n.d(t,"Kb",(function(){return uc})),n.d(t,"Lb",(function(){return ua})),n.d(t,"Mb",(function(){return Sa})),n.d(t,"Nb",(function(){return Aa})),n.d(t,"Ob",(function(){return ia})),n.d(t,"Pb",(function(){return gc})),n.d(t,"Qb",(function(){return yc})),n.d(t,"Rb",(function(){return xh})),n.d(t,"Sb",(function(){return Rc})),n.d(t,"Tb",(function(){return Ih})),n.d(t,"Ub",(function(){return Qc})),n.d(t,"Vb",(function(){return Fh})),n.d(t,"Wb",(function(){return Sh})),n.d(t,"Xb",(function(){return Wc})),n.d(t,"Yb",(function(){return bh})),n.d(t,"Zb",(function(){return yl})),n.d(t,"ac",(function(){return lf})),n.d(t,"bc",(function(){return ze})),n.d(t,"cc",(function(){return S})),n.d(t,"dc",(function(){return Oh})),n.d(t,"ec",(function(){return Ns})),n.d(t,"fc",(function(){return Nn})),n.d(t,"gc",(function(){return Rh})),n.d(t,"hc",(function(){return Cu})),n.d(t,"ic",(function(){return xu})),n.d(t,"jc",(function(){return Mu})),n.d(t,"kc",(function(){return zr})),n.d(t,"lc",(function(){return da})),n.d(t,"mc",(function(){return Ya})),n.d(t,"nc",(function(){return du})),n.d(t,"oc",(function(){return Ka})),n.d(t,"pc",(function(){return Fa})),n.d(t,"qc",(function(){return Hf})),n.d(t,"rc",(function(){return br})),n.d(t,"sc",(function(){return we})),n.d(t,"tc",(function(){return Fe})),n.d(t,"uc",(function(){return _})),n.d(t,"vc",(function(){return m})),n.d(t,"wc",(function(){return Ae})),n.d(t,"xc",(function(){return Te})),n.d(t,"yc",(function(){return ya})),n.d(t,"zc",(function(){return ka})),n.d(t,"Ac",(function(){return Ea})),n.d(t,"Bc",(function(){return Da})),n.d(t,"Cc",(function(){return wa})),n.d(t,"Dc",(function(){return ba})),n.d(t,"Ec",(function(){return xa})),n.d(t,"Fc",(function(){return wn})),n.d(t,"Gc",(function(){return hu})),n.d(t,"Hc",(function(){return $l})),n.d(t,"Ic",(function(){return ef})),n.d(t,"Jc",(function(){return Kl})),n.d(t,"Kc",(function(){return Xl})),n.d(t,"Lc",(function(){return ql})),n.d(t,"Mc",(function(){return ne})),n.d(t,"Nc",(function(){return ga})),n.d(t,"Oc",(function(){return $f})),n.d(t,"Pc",(function(){return _a})),n.d(t,"Qc",(function(){return Ia})),n.d(t,"Rc",(function(){return Zf})),n.d(t,"Sc",(function(){return Rt})),n.d(t,"Tc",(function(){return Pt})),n.d(t,"Uc",(function(){return Pa})),n.d(t,"Vc",(function(){return bf})),n.d(t,"Wc",(function(){return wf})),n.d(t,"Xc",(function(){return kf})),n.d(t,"Yc",(function(){return Ba})),n.d(t,"Zc",(function(){return Ma})),n.d(t,"ad",(function(){return ma})),n.d(t,"bd",(function(){return La})),n.d(t,"cd",(function(){return vf})),n.d(t,"dd",(function(){return pf})),n.d(t,"ed",(function(){return yf})),n.d(t,"fd",(function(){return gf})),n.d(t,"gd",(function(){return Vf})),n.d(t,"hd",(function(){return pa})),n.d(t,"id",(function(){return rn})),n.d(t,"jd",(function(){return nn})),n.d(t,"kd",(function(){return tn})),n.d(t,"ld",(function(){return lt})),n.d(t,"md",(function(){return _r})),n.d(t,"nd",(function(){return Cr})),n.d(t,"od",(function(){return ke})),n.d(t,"pd",(function(){return Se})),n.d(t,"qd",(function(){return Uf})),n.d(t,"rd",(function(){return jf})),n.d(t,"sd",(function(){return $a})),n.d(t,"td",(function(){return va})),n.d(t,"ud",(function(){return Gf})),n.d(t,"vd",(function(){return cu})),n.d(t,"wd",(function(){return lu})),n.d(t,"xd",(function(){return fu})),n.d(t,"yd",(function(){return vu})),n.d(t,"zd",(function(){return Bf}));var r=n("XNiG"),i=n("quSY"),o=n("HDdC"),a=n("VRyK"),u=n("w1tV");function s(e){return{toString:e}.toString()}var c="__parameters__";function l(e,t,n){return s((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:p.Default;if(void 0===J)throw new Error("inject() must be called from an injection context");return null===J?ie(e,void 0,t):J.get(e,t&p.Optional?null:void 0,t)}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Default;return(P||te)(O(e),t)}var re=ne;function ie(e,t,n){var r=C(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(S(e),"]"))}function oe(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:$;if(t===$){var n=new Error("NullInjectorError: No provider for ".concat(S(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ue=function e(){_classCallCheck(this,e)},se=function e(){_classCallCheck(this,e)};function ce(e,t){for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function de(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function he(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function pe(e,t){var n=ye(e,t);if(n>=0)return e[1|n]}function ye(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var ge=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),_e=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),me={},Ce=[],be=0;function we(e){return s((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ge.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ce,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||_e.Emulated,id:"c",styles:e.styles||Ce,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,u=e.pipes;return i.id+=be++,i.inputs=Ie(e.inputs,r),i.outputs=Ie(e.outputs),a&&a.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(De)}:null,i.pipeDefs=u?function(){return("function"==typeof u?u():u).map(Ee)}:null,i}))}function ke(e,t,n){var r=e.\u0275cmp;r.directiveDefs=function(){return t.map(De)},r.pipeDefs=function(){return n.map(Ee)}}function De(e){return Oe(e)||function(e){return e[H]||null}(e)}function Ee(e){return function(e){return e[U]||null}(e)}var xe={};function Ae(e){var t={type:e.type,bootstrap:e.bootstrap||Ce,declarations:e.declarations||Ce,imports:e.imports||Ce,exports:e.exports||Ce,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&s((function(){xe[e.id]=e.type})),t}function Se(e,t){return s((function(){var n=Pe(e,!0);n.declarations=t.declarations||Ce,n.imports=t.imports||Ce,n.exports=t.exports||Ce}))}function Ie(e,t){if(null==e)return me;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var Fe=we;function Te(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Oe(e){return e[L]||null}function Ne(e,t){return e.hasOwnProperty(q)?e[q]:null}function Pe(e,t){var n=e[z]||null;if(!n&&!0===t)throw new Error("Type ".concat(S(e)," does not have '\u0275mod' property."));return n}function Re(e){return Array.isArray(e)&&"object"==typeof e[1]}function Me(e){return Array.isArray(e)&&!0===e[1]}function Ve(e){return 0!=(8&e.flags)}function je(e){return 2==(2&e.flags)}function Be(e){return 1==(1&e.flags)}function Le(e){return null!==e.template}function He(e){return 0!=(512&e[2])}var Ue=void 0;function ze(e){Ue=e}function Ze(){return void 0!==Ue?Ue:"undefined"!=typeof document?document:void 0}function qe(e){return!!e.listen}var Qe={createRenderer:function(e,t){return Ze()}};function We(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return We(t[e+19])}function $e(e,t){return We(t[e.index])}function Ke(e,t){var n=e.index;return-1!==n?We(t[n]):null}function Ye(e,t){return e.data[t+19]}function Je(e,t){return e[t+19]}function Xe(e,t){var n=t[e];return Re(n)?n:n[0]}function et(e){return e.__ngContext__||null}function tt(e){var t=et(e);return t?Array.isArray(t)?t:t.lView:null}function nt(e){return 4==(4&e[2])}function rt(e){return 128==(128&e[2])}function it(e,t){return null===e||null==t?null:e[t]}function ot(e){e[18]=0}var at={lFrame:At(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ut(){return at.bindingsEnabled}function st(){return at.lFrame.lView}function ct(){return at.lFrame.tView}function lt(e){at.lFrame.contextLView=e}function ft(){return at.lFrame.previousOrParentTNode}function dt(e,t){at.lFrame.previousOrParentTNode=e,at.lFrame.isParent=t}function ht(){return at.lFrame.isParent}function vt(){at.lFrame.isParent=!1}function pt(){return at.checkNoChangesMode}function yt(e){at.checkNoChangesMode=e}function gt(){var e=at.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _t(){return at.lFrame.bindingIndex}function mt(){return at.lFrame.bindingIndex++}function Ct(e){var t=at.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bt(e,t){var n=at.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function wt(){return at.lFrame.currentQueryIndex}function kt(e){at.lFrame.currentQueryIndex=e}function Dt(e,t){var n=xt();at.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Et(e,t){var n=xt(),r=e[1];at.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function xt(){var e=at.lFrame,t=null===e?null:e.child;return null===t?At(e):t}function At(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function St(){var e=at.lFrame;return at.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var It=St;function Ft(){var e=St();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Tt(){return at.lFrame.selectedIndex}function Ot(e){at.lFrame.selectedIndex=e}function Nt(){var e=at.lFrame;return Ye(e.tView,e.selectedIndex)}function Pt(){at.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Rt(){at.lFrame.currentNamespace=null}function Mt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(a)):o.call(a)}var Ut=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function zt(e,t,n){for(var r=qe(e),i=0;it){a=o-1;break}}}for(;o>16}function Yt(e,t){for(var n=Kt(e),r=t;n>0;)r=r[15],n--;return r}function Jt(e){return"string"==typeof e?e:null==e?"":""+e}function Xt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Jt(e)}var en=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B);function tn(e){return{name:"window",target:e.ownerDocument.defaultView}}function nn(e){return{name:"document",target:e.ownerDocument}}function rn(e){return{name:"body",target:e.ownerDocument.body}}function on(e){return e instanceof Function?e():e}var an=!0;function un(e){var t=an;return an=e,t}var sn=0;function cn(e,t){var n=fn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,ln(r.data,e),ln(t,null),ln(r.blueprint,null));var i=dn(e,t),o=e.injectorIndex;if(Gt(i))for(var a=$t(i),u=Yt(i,t),s=u[1].data,c=0;c<8;c++)t[o+c]=u[a+c]|s[a+c];return t[o+8]=i,o}function ln(e,t){e.push(0,0,0,0,0,0,0,0,t)}function fn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function dn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function hn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[Q]:n.charCodeAt(0)||0;null==r&&(r=n[Q]=sn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:p.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[Q];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){Dt(t,e);try{var a=o();if(null!=a||r&p.Optional)return a;throw new Error("No provider for ".concat(Xt(n),"!"))}finally{It()}}else if("number"==typeof o){if(-1===o)return new bn(e,t);var u=null,s=fn(e,t),c=-1,l=r&p.Host?t[16][6]:null;for((-1===s||r&p.SkipSelf)&&(c=-1===s?dn(e,t):t[s+8],Cn(r,!1)?(u=t[1],s=$t(c),t=Yt(c,t)):s=-1);-1!==s;){c=t[s+8];var f=t[1];if(mn(o,s,f.data)){var d=yn(s,t,n,u,r,l);if(d!==pn)return d}Cn(r,t[1].data[s+8]===l)&&mn(o,s,t)?(u=f,s=$t(c),t=Yt(c,t)):s=-1}}}if(r&p.Optional&&void 0===i&&(i=null),0==(r&(p.Self|p.Host))){var h=t[9],v=ee(void 0);try{return h?h.get(n,i,r&p.Optional):ie(n,i,r&p.Optional)}finally{ee(v)}}if(r&p.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(Xt(n),"]"))}var pn={};function yn(e,t,n,r,i,o){var a=t[1],u=a.data[e+8],s=gn(u,a,n,null==r?je(u)&&an:r!=a&&3===u.type,i&p.Host&&o===u);return null!==s?_n(t,a,s,u):pn}function gn(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,u=65535&o,s=e.directiveStart,c=o>>16,l=i?u+c:e.directiveEnd,f=r?u:u+c;f=s&&d.type===n)return f}if(i){var h=a[s];if(h&&Le(h)&&h.type===n)return s}return null}function _n(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Ut){var a=i;if(a.resolving)throw new Error("Circular dep for ".concat(Xt(o[n])));var u,s=un(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(u=ee(a.injectImpl)),Dt(e,r);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{a.injectImpl&&ee(u),un(s),a.resolving=!1,It()}}return i}function mn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r',!n.querySelector||n.querySelector("svg")?(n.innerHTML='

',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(e,[{key:"getInertBodyElement_XHR",value:function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();rr.hasOwnProperty(t)&&!Xn.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(fr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lr=/([^\#-~ |!])/g;function fr(e){return e.replace(/&/g,"&").replace(cr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(lr,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function dr(e,t){var n=null;try{Jn=Jn||new qn(e);var r=t?String(t):"";n=Jn.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Jn.getInertBodyElement(r)}while(r!==o);var a=new sr,u=a.sanitizeChildren(hr(n)||n);return zn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var s=hr(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}function hr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var vr=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),pr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),yr=/^url\(([^)]+)\)$/;function gr(e){if(!(e=String(e).trim()))return"";var t=e.match(yr);return t&&Gn(t[1])===t[1]||e.match(pr)&&function(e){for(var t=!0,n=!0,r=0;ro?"":i[l+1].toLowerCase();var d=8&r?f:null;if(d&&-1!==Tr(d,c,0)||2&r&&c!==f){if(Rr(r))return!1;a=!0}}}}else{if(!a&&!Rr(r)&&!Rr(s))return!1;if(a&&Rr(s))continue;a=!1,r=s|1&r}}return Rr(r)||a}function Rr(e){return 0==(1&e)}function Mr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Rr(a)||(t+=Br(o,i),i=""),r=a,o=o||!Rr(r);n++}return""!==i&&(t+=Br(o,i)),t}var Hr={};function Ur(e){var t=e[3];return Me(t)?t[3]:t}function zr(e){Zr(ct(),st(),Tt()+e,pt())}function Zr(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&Vt(t,i,n)}else{var o=e.preOrderHooks;null!==o&&jt(t,o,0,n)}Ot(n)}var qr={marker:"element"},Qr={marker:"comment"};function Wr(e,t){return e<<17|t<<2}function Gr(e){return e>>17&32767}function $r(e){return 2|e}function Kr(e){return(131068&e)>>2}function Yr(e,t){return-131069&e|t<<2}function Jr(e){return 1|e}function Xr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r>1==-1){for(var r=9;r19&&Zr(e,t,0,pt()),n(r,i)}finally{Ot(o)}}function ui(e,t,n){if(Ve(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:$e,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&(e[n-1][4]=r[4]);var o=de(e,9+t);Gi(r[1],r,!1,null);var a=o[5];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Yi(e,t){if(!(256&t[2])){var n=t[11];qe(n)&&n.destroyNode&&lo(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Xi(e[1],e);for(;t;){var n=null;if(Re(t))n=t[13];else{var r=t[9];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Re(t)&&Xi(t[1],t),t=Ji(t,e);null===t&&(t=e),Re(t)&&Xi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ji(e,t){var n;return Re(e)&&(n=e[6])&&2===n.type?Zi(n,e):e[3]===t?null:e[3]}function Xi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&qe(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&Me(t[3])){r!==t[3]&&$i(r,t);var i=t[5];null!==i&&i.detachView(e)}}}function eo(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?qi(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return $e(t,n).parentNode;if(2&r.flags){var o=e.data,a=o[o[r.index].directiveStart].encapsulation;if(a!==_e.ShadowDom&&a!==_e.Native)return null}return $e(r,n)}function to(e,t,n,r){qe(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function no(e,t,n){qe(e)?e.appendChild(t,n):t.appendChild(n)}function ro(e,t,n,r){null!==r?to(e,t,n,r):no(e,t,n)}function io(e,t){return qe(e)?e.parentNode(t):t.parentNode}function oo(e,t){if(2===e.type){var n=Zi(e,t);return null===n?null:uo(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?$e(e,t):null}function ao(e,t,n,r){var i=eo(e,r,t);if(null!=i){var o=t[11],a=oo(r.parent||t[6],t);if(Array.isArray(n))for(var u=0;u-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Yi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,ji(n=this._lView).push(r),t.firstCreatePass&&Bi(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){Ni(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Pi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){yt(!0);try{Pi(e,t,n)}finally{yt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,lo(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(We(a)),Me(a))for(var u=9;u0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(ue,null);a&&(i=a)}var u=e.create(o,r,void 0,i);return this.insert(u.hostView,t),u}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Me(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new _o(o,o[6],o[3]);a.detach(a.indexOf(e))}}var u=this._adjustIndex(t);return function(e,t,n,r){var i=9+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return bo(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new bn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=dn(this._hostTNode,this._hostView),t=Yt(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=Kt(e),a=t,u=t[6];o>1;)u=(a=a[15])[6],o--;return u}(e,this._hostView,this._hostTNode);return Gt(e)&&null!=n?new bn(n,t):new bn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),r}(e));var o=r[n.index];if(Me(o))(function(e,t){e[2]=-2})(i=o);else{var a;if(4===n.type)a=We(o);else if(a=r[11].createComment(""),He(r)){var u=r[11],s=$e(n,r);to(u,io(u,s),a,function(e,t){return qe(e)?e.nextSibling(t):t.nextSibling}(u,s))}else ao(r[1],r,a,n);r[n.index]=i=Si(o,r,a,n),Oi(r,i)}return new _o(i,n,r)}function Do(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&je(e)){var r=Xe(e.index,t);return new mo(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new mo(t[16],t):null}(ft(),st(),e)}var Eo=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return xo()},e}(),xo=Do,Ao=Function;function So(e){return"function"==typeof e}var Io=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Fo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,To=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Oo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/,No=function(){function e(t){_classCallCheck(this,e),this._reflect=t||B.Reflect}return _createClass(e,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new zo(e,n,t||Ho(),r)}var zo=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&le(n,(function(e){return i.processProvider(e,t,n)})),le([t],(function(e){return i.processInjectorType(e,[],a)})),this.records.set(G,Qo(void 0,this));var u=this.records.get(Mo);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:S(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default;this.assertNotDestroyed();var r,i=X(this);try{if(!(n&p.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof W)&&C(e);o=a&&this.injectableDefInScope(a)?Qo(Zo(e),Vo):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&p.Self?Ho():this.parent).get(e,t=n&p.Optional&&t===$?null:t)}catch(u){if("NullInjectorError"===u.name){if((u.ngTempTokenPath=u.ngTempTokenPath||[]).unshift(S(e)),i)throw u;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=S(t);if(Array.isArray(t))i=t.map(S).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var u=t[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):S(u)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(K,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(u,e,0,this.source)}throw u}finally{X(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(S(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=O(e)))return!1;var i=w(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,u=-1!==n.indexOf(a);if(void 0!==o&&(i=w(o)),null==i)return!1;if(null!=i.imports&&!u){var s;n.push(a);try{le(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===s&&(s=[]),s.push(e))}))}finally{}if(void 0!==s)for(var c=function(e){var t=s[e],n=t.ngModule,i=t.providers;le(i,(function(e){return r.processProvider(e,n,i||Bo)}))},l=0;l0){var n=he(t,"?");throw new Error("Can't resolve all parameters for ".concat(S(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[k]||e[x]||e[E]&&e[E]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);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 v10. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function qo(e,t,n){var r,i=void 0;if(Go(e)){var o=O(e);return Ne(o)||Zo(o)}if(Wo(e))i=function(){return O(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(oe(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return ne(O(e.useExisting))};else{var a=O(e&&(e.useClass||e.provide));if(a||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(S(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return Ne(a)||Zo(a);i=function(){return _construct(a,_toConsumableArray(oe(e.deps)))}}return i}function Qo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Wo(e){return null!==e&&"object"==typeof e&&Y in e}function Go(e){return"function"==typeof e}var $o=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Uo(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Ko=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?$o(e,t,""):$o(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=$,e.NULL=new ae,e.\u0275prov=_({token:e,providedIn:"any",factory:function(){return ne(G)}}),e.__NG_ELEMENT_ID__=-1,e}(),Yo=new W("AnalyzeForEntryComponents"),Jo=new Map,Xo=new Set;function ea(e){return"string"==typeof e?e:e.text()}function ta(e,t){for(var n=e.styles,r=e.classes,i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:p.Default,n=st();return null==n?ne(e,t):vn(ft(),n,O(e),t)}function ga(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,i=0;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=st(),o=ct(),a=ft();return Ta(o,i,i[11],a,e,t,n,r),Ia}function Fa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ft(),o=st(),a=Li(i,o);return Ta(ct(),o,a,i,e,t,n,r),Fa}function Ta(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7?arguments[7]:void 0,s=Be(r),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),l=ji(t),f=!0;if(3===r.type){var d=$e(r,t),h=u?u(d):me,v=h.target||d,p=l.length,y=u?function(e){return u(We(e[r.index])).target}:r.index;if(qe(n)){var g=null;if(!u&&s&&(g=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;os?u[s]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,f=!1;else{o=Na(r,t,o,!1);var _=n.listen(h.name||v,i,o);l.push(o,_),c&&c.push(i,y,p,p+1)}}else o=Na(r,t,o,!0),v.addEventListener(i,o,a),l.push(o),c&&c.push(i,y,p,a)}var m,C=r.outputs;if(f&&null!==C&&(m=C[i])){var b=m.length;if(b)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(at.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,at.lFrame.contextLView))[8]}(e)}function Ra(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=st(),i=ct(),o=ni(i,r[6],e,1,null,n||null);null===o.projection&&(o.projection=t),vt(),Va||fo(i,r,o)}function La(e,t,n){return Ha(e,"",t,"",n),La}function Ha(e,t,n,r,i){var o=st(),a=ha(o,t,n,r);return a!==Hr&&vi(ct(),Nt(),o,e,a,o[11],i,!1),Ha}var Ua=[];function za(e,t,n,r,i){for(var o=e[n+1],a=null===t,u=r?Gr(o):Kr(o),s=!1;0!==u&&(!1===s||a);){var c=e[u+1];Za(e[u],t)&&(s=!0,e[u+1]=r?Jr(c):$r(c)),u=r?Gr(c):Kr(c)}s&&(e[n+1]=r?$r(o):Jr(o))}function Za(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ye(e,t)>=0}var qa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Qa(e){return e.substring(qa.key,qa.keyEnd)}function Wa(e,t){var n=qa.textEnd;return n===t?-1:(t=qa.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,qa.key=t,n),Ga(e,t,n))}function Ga(e,t,n){for(;t=0;n=Wa(t,n))ve(e,Qa(t),!0)}function Xa(e,t,n,r){var i,o,a=st(),u=ct(),s=Ct(2);(u.firstUpdatePass&&nu(u,e,s,r),t!==Hr&&la(a,s,t))&&(null==n&&(i=null===(o=at.lFrame)?null:o.currentSanitizer)&&(n=i),ou(u,u.data[Tt()+19],a,a[11],e,a[s+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=S(Nn(e)))),e}(t,n),r,s))}function eu(e,t,n,r){var i=ct(),o=Ct(2);i.firstUpdatePass&&nu(i,null,o,r);var a=st();if(n!==Hr&&la(a,o,n)){var u=i.data[Tt()+19];if(su(u,r)&&!tu(i,o)){var s=r?u.classes:u.styles;null!==s&&(n=I(s,n||"")),Ca(i,u,a,n,r)}else!function(e,t,n,r,i,o,a,u){i===Hr&&(i=Ua);for(var s=0,c=0,l=0=e.expandoStartIndex}function nu(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Tt()+19],a=tu(e,n);su(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=at.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=iu(n=ru(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=ru(i,e,t,n,r),null===o){var u=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Kr(r))return e[Gr(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&function(e,t,n,r){e[Gr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u=iu(u=ru(null,e,t,u[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(l=!0)}else c=n;if(i)if(0!==s){var d=Gr(e[u+1]);e[r+1]=Wr(d,u),0!==d&&(e[d+1]=Yr(e[d+1],r)),e[u+1]=131071&e[u+1]|r<<17}else e[r+1]=Wr(u,0),0!==u&&(e[u+1]=Yr(e[u+1],r)),u=r;else e[r+1]=Wr(s,0),0===u?u=r:e[s+1]=Yr(e[s+1],r),s=r;l&&(e[r+1]=$r(e[r+1])),za(e,c,r,!0),za(e,c,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&ye(o,t)>=0&&(n[r+1]=Jr(n[r+1]))}(t,c,e,r,o),a=Wr(u,s),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function ru(e,t,n,r,i){var o=null,a=n.directiveEnd,u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u0;){var s=e[i],c=Array.isArray(s),l=c?s[1]:s,f=null===l,d=n[i+1];d===Hr&&(d=f?Ua:void 0);var h=f?pe(d,r):l===r?d:void 0;if(c&&!uu(h)&&(h=pe(s,r)),uu(h)&&(u=h,a))return u;var v=e[i+1];i=a?Gr(v):Kr(v)}if(null!==t){var p=o?t.residualClasses:t.residualStyles;null!=p&&(u=pe(p,r))}return u}function uu(e){return void 0!==e}function su(e,t){return 0!=(e.flags&(t?16:32))}function cu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=st(),r=ct(),i=e+19,o=r.firstCreatePass?ni(r,n[6],e,3,null,null):r.data[i],a=n[i]=Wi(t,n[11]);ao(r,n,a,o),dt(o,!1)}function lu(e){return fu("",e,""),lu}function fu(e,t,n){var r=st(),i=ha(r,e,t,n);return i!==Hr&&zi(r,Tt(),i),fu}function du(e,t,n){eu(ve,Ja,ha(st(),e,t,n),!0)}function hu(e,t,n){var r=st();return la(r,mt(),t)&&vi(ct(),Nt(),r,e,t,r[11],n,!0),hu}function vu(e,t,n){var r=st();if(la(r,mt(),t)){var i=ct(),o=Nt();vi(i,o,r,e,t,Li(o,r),n,!0)}return vu}function pu(e){_u(e);var t,n,r,i=yu(e,!1);return null===i?null:(void 0===i.component&&(i.component=(t=i.nodeIndex,n=i.lView,2&(r=n[1].data[t]).flags?n[r.directiveStart]:null)),i.component)}function yu(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(e){var t,n=et(e);if(n){if(Array.isArray(n)){var r,i=n,o=void 0,a=void 0;if((t=e)&&t.constructor&&t.constructor.\u0275cmp){if(-1==(r=function(e,t){var n=e[1].components;if(n)for(var r=0;r=0){var y=We(v[p]),g=Er(v,p,y);xr(y,g),n=g;break}}}return n||null}(e);if(!n&&t)throw new Error("Invalid ng target");return n}function gu(e,t){return e.name==t.name?0:e.name=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Qt(i.hostAttrs,n=Qt(n,i.hostAttrs))}}(r)}function bu(e){return e===me?{}:e===Ce?[]:e}function wu(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function ku(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Du(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var Eu=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function xu(e){e.type.prototype.ngOnChanges&&(e.setInput=Au,e.onChanges=function(){var e=Su(this),t=e&&e.current;if(t){var n=e.previous;if(n===me)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function Au(e,t,n,r){var i=Su(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:me,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],s=a[u];o[u]=new Eu(s&&s.currentValue,t,a===me),e[r]=t}function Su(e){return e.__ngSimpleChanges__||null}function Iu(e,t,n,r,i){if(e=O(e),Array.isArray(e))for(var o=0;o>16;if(Go(e)||!e.multi){var v=new Ut(c,i,ya),p=Ou(s,t,i?f:f+h,d);-1===p?(hn(cn(l,u),a,s),Fu(a,e,t.length),t.push(s),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(v),u.push(v)):(n[p]=v,u[p]=v)}else{var y=Ou(s,t,f+h,d),g=Ou(s,t,f,f+h),_=y>=0&&n[y],m=g>=0&&n[g];if(i&&!m||!i&&!_){hn(cn(l,u),a,s);var C=function(e,t,n,r,i){var o=new Ut(e,n,ya);return o.multi=[],o.index=t,o.componentProviders=0,Tu(o,i,r&&!n),o}(i?Pu:Nu,n.length,i,r,c);!i&&m&&(n[g].providerFactory=C),Fu(a,e,t.length),t.push(s),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(C),u.push(C)}else Fu(a,e,y>-1?y:g),Tu(n[i?g:y],c,!i&&r);!i&&r&&m&&n[g].componentProviders++}}}function Fu(e,t,n){if(Go(t)||t.useClass){var r=(t.useClass||t).prototype.ngOnDestroy;r&&(e.destroyHooks||(e.destroyHooks=[])).push(n,r)}}function Tu(e,t,n){e.multi.push(t),n&&e.componentProviders++}function Ou(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=ct();if(r.firstCreatePass){var i=Le(e);Iu(n,r.data,r.blueprint,i,!0),Iu(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}xu.ngInherit=!0;var Vu=function e(){_classCallCheck(this,e)},ju=function e(){_classCallCheck(this,e)};function Bu(e){var t=Error("No component factory found for ".concat(S(e),". Did you add it to @NgModule.entryComponents?"));return t[Lu]=e,t}var Lu="ngComponent",Hu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw Bu(e)}}]),e}(),Uu=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Hu,e}(),zu=function(){function e(t,n,r){_classCallCheck(this,e),this._parent=n,this._ngModule=r,this._factories=new Map;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:Ko.THROW_IF_NOT_FOUND,o=X(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(i=null),1&t.flags)return e._parent.get(t.token,i);var a=t.tokenKey;switch(a){case hc:case vc:case pc:return e}var u,s=e._def.providersByKey[a];if(s){var c=e._providers[s.index];return void 0===c&&(c=e._providers[s.index]=mc(e,s)),c===dc?void 0:c}if((u=C(t.token))&&(n=e,null!=(r=u.providedIn)&&("any"===r||r===n._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(n,r)))){var l=e._providers.length;return e._def.providers[l]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:l,token:t.token},e._providers[l]=dc,e._providers[l]=mc(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?i:e._parent.get(t.token,i)}finally{X(o)}}function mc(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(_c(e,n[0]));case 2:return new t(_c(e,n[0]),_c(e,n[1]));case 3:return new t(_c(e,n[0]),_c(e,n[1]),_c(e,n[2]));default:for(var i=[],o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,de(n,t),Is.dirtyParentQueries(r),wc(r),r}function bc(e,t,n){var r=t?Zs(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);Xs(n,2,i,o,void 0)}function wc(e){Xs(e,3,null,null,void 0)}var kc={};function Dc(e,t,n,r,i,o){return new Ec(e,t,n,r,i,o)}var Ec=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a,u){var s;return _classCallCheck(this,n),(s=t.call(this)).selector=e,s.componentType=r,s._inputs=o,s._outputs=a,s.ngContentSelectors=u,s.viewDefFactory=i,s}return _createClass(n,[{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=Js(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Is.createRootView(e,t||[],n,i,r,kc),u=xs(a,o).instance;return n&&a.renderer.setAttribute(Es(a,0).renderElement,"ng-version",Xu.full),new xc(a,new Fc(a),u)}},{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}}]),n}(ju),xc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._view=e,o._viewRef=r,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=r,o.changeDetectorRef=r,o.instance=i,o}return _createClass(n,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new qu(Es(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new Pc(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}}]),n}(Vu);function Ac(e,t,n){return new Sc(e,t,n)}var Sc=function(){function e(t,n,r){_classCallCheck(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]}return _createClass(e,[{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Cc(this._data,e);Is.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Fc(t);return n.attachToViewContainerRef(this),n}return null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Zu||(i=o.get(ue));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a,u=e;return n=this._view,r=this._data,i=t,o=u._view,a=r.viewContainer._embeddedViews,null==i&&(i=a.length),o.viewContainerParent=n,fe(a,i,o),function(e,t){var n=Us(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,o),Is.dirtyParentQueries(o),bc(r,i>0?a[i-1]:null,o),u.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,u=this._embeddedViews.indexOf(e._view);return n=this._data,r=u,i=t,o=n.viewContainer._embeddedViews,a=o[r],de(o,r),null==i&&(i=o.length),fe(o,i,a),Is.dirtyParentQueries(a),wc(a),bc(n,i>0?o[i-1]:null,a),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=Cc(this._data,e);t&&Is.destroyView(t)}},{key:"detach",value:function(e){var t=Cc(this._data,e);return t?new Fc(t):null}},{key:"element",get:function(){return new qu(this._data.renderElement)}},{key:"injector",get:function(){return new Pc(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=zs(e),e=e.parent;return e?new Pc(e,t):new Pc(this._view,null)}},{key:"length",get:function(){return this._embeddedViews.length}}]),e}();function Ic(e){return new Fc(e)}var Fc=function(){function e(t){_classCallCheck(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return _createClass(e,[{key:"markForCheck",value:function(){Bs(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Is.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){Is.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Is.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,wc(this._view),Is.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return Xs(this._view,0,void 0,void 0,e=[]),e;var e}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}}]),e}();function Tc(e,t){return new Oc(e,t)}var Oc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._parentView=e,i._def=r,i}return _createClass(n,[{key:"createEmbeddedView",value:function(e){return new Fc(Is.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new qu(Es(this._parentView,this._def.nodeIndex).renderElement)}}]),n}(ps);function Nc(e,t){return new Pc(e,t)}var Pc=function(){function e(t,n){_classCallCheck(this,e),this.view=t,this.elDef=n}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko.THROW_IF_NOT_FOUND;return Is.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Os(e)},t)}}]),e}();function Rc(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Es(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ds(e,n.nodeIndex).renderText;if(20240&n.flags)return xs(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index ".concat(t))}function Mc(e,t,n,r){return new Vc(e,t,n,r)}var Vc=function(){function e(t,n,r,i){_classCallCheck(this,e),this._moduleType=t,this._parent=n,this._bootstrapComponents=r,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=he(t.providers.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:Ko.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default,r=0;return n&p.SkipSelf?r|=1:n&p.Self&&(r|=4),_c(this,{token:e,tokenKey:Os(e),flags:r},t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(S(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return el(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(nl(e,t,n,i[0]));case 2:return r(nl(e,t,n,i[0]),nl(e,t,n,i[1]));case 3:return r(nl(e,t,n,i[0]),nl(e,t,n,i[1]),nl(e,t,n,i[2]));default:for(var a=[],u=0;u4&&void 0!==arguments[4]?arguments[4]:Ko.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var a=r.tokenKey;a===Uc&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var u=e;u;){if(t)switch(a){case jc:return rl(u,t,n).renderer;case Bc:return new qu(Es(u,t.nodeIndex).renderElement);case Lc:return Es(u,t.nodeIndex).viewContainer;case Hc:if(t.element.template)return Es(u,t.nodeIndex).template;break;case Uc:return Ic(rl(u,t,n));case zc:case Zc:return Nc(u,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[a];if(s){var c=xs(u,s.nodeIndex);return c||(c={instance:Xc(u,s)},u.nodes[s.nodeIndex]=c),c.instance}}n=qs(u),t=zs(u),u=u.parent,4&r.flags&&(u=null)}var l=o.root.injector.get(r.token,tl);return l!==tl||i===tl?l:o.root.ngModule.injector.get(r.token,i)}function rl(e,t,n){var r;if(n)r=Es(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!qs(r);)r=r.parent;return r}function il(e,t,n,r,i,o){if(32768&n.flags){var a=Es(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var u=aa.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Eu(u,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function ol(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i0&&po(c,f,C.join(" "))}o=Ye(y[1],0),t&&(o.projection=t.map((function(e){return Array.from(e)}))),i=function(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=ft();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),mi(e,r,1),ki(e,t,n));var i=_n(t,e,t.length-1,r);xr(i,t);var o=$e(r,t);return o&&xr(o,t),i}(o,n,t);r.components.push(a),e[8]=a,i&&i.forEach((function(e){return e(a,t)})),t.contentQueries&&t.contentQueries(1,a,n.length-1);var u=ft();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Ot(u.index-19);var s=n[1];yi(s,t),gi(s,n,t.hostVars),_i(t,a)}return a}(g,this.componentDef,y,v,[mu]),ri(p,y,null)}finally{Ft()}var b=new dl(this.componentType,i,bo(qu,o,y),y,o);return n&&!h||(b.hostView._tViewNode.child=o),b}},{key:"inputs",get:function(){return cl(this.componentDef.inputs)}},{key:"outputs",get:function(){return cl(this.componentDef.outputs)}}]),n}(ju),dl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a){var u,s,c,l;return _classCallCheck(this,n),(u=t.call(this)).location=i,u._rootLView=o,u._tNode=a,u.destroyCbs=[],u.instance=r,u.hostView=u.changeDetectorRef=new Co(o),u.hostView._tViewNode=(s=o[1],c=o,null==(l=s.node)&&(s.node=l=di(0,null,2,-1,null,null)),c[6]=l),u.componentType=e,u}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new bn(this._tNode,this._rootLView)}}]),n}(Vu),hl=void 0,vl=["en",[["a","p"],["AM","PM"],hl],[["AM","PM"],hl,hl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],hl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],hl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",hl,"{1} 'at' {0}",hl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],pl={};function yl(e,t,n){"string"!=typeof t&&(n=t,t=e[bl.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),pl[t]=e,n&&(pl[t][bl.ExtraData]=n)}function gl(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Cl(t);if(n)return n;var r=t.split("-")[0];if(n=Cl(r))return n;if("en"===r)return vl;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function _l(e){return gl(e)[bl.CurrencyCode]||null}function ml(e){return gl(e)[bl.PluralCase]}function Cl(e){return e in pl||(pl[e]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[e]),pl[e]}var bl=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.Directionality]="Directionality",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),wl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,kl=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Dl=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,El=/\ufffd(\d+):?\d*\ufffd/gi,xl=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Al=/\[(\ufffd.+?\ufffd?)\]/,Sl=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Il=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Fl=/{([A-Z0-9_]+)}/g,Tl=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Ol=/\/\*/,Nl=/\d+\:(\d+)/;function Pl(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var a=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var u=e.substring(n,a);wl.test(u)?i.push(Rl(u)):i.push(u),n=a+1}}else{if(0==r.length){var s=e.substring(n,a);i.push(s),n=a+1}r.push("{")}}var c=e.substring(n);return i.push(c),i}function Rl(e){for(var t=[],n=[],r=1,i=0,o=Pl(e=e.replace(wl,(function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""}))),a=0;an.length&&n.push(s)}return{type:r,mainBinding:i,cases:t,values:n}}function Ml(e){for(var t,n,r="",i=0,o=!1;null!==(t=kl.exec(e));)o?t[0]==="\ufffd/*".concat(n,"\ufffd")&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+=e.substr(i)}function Vl(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[null,null],o=e.split(El),a=0,u=0;u1&&void 0!==arguments[1]?arguments[1]:0;n|=Hl(e.mainBinding);for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e;if(Al.test(e)){var r={},i=[0];n=n.replace(Sl,(function(e,t,n){var o=t||n,a=r[o]||[];if(a.length||(o.split("|").forEach((function(e){var t=e.match(Nl),n=t?parseInt(t[1],10):0,r=Ol.test(e);a.push([n,r,e])})),r[o]=a),!a.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(o));for(var u=i[i.length-1],s=0,c=0;c>>17;a=Zl(n,o,d===e?r[6]:Ye(n,d),a,r);break;case 0:var h=c>=0,v=(h?c:~c)>>>3;u.push(v),a=o,(o=Ye(n,v))&&dt(o,h);break;case 5:a=o=Ye(n,c>>>3),dt(o,!1);break;case 4:var p=t[++s],y=t[++s];Ei(Ye(n,c>>>3),r,p,y,null,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(c,'"'))}else switch(c){case Qr:var g=t[++s],_=t[++s],m=i.createComment(g);a=o,o=Ql(n,r,_,5,m,null),u.push(_),xr(m,r),o.activeCaseIndex=null,vt();break;case qr:var C=t[++s],b=t[++s];a=o,o=Ql(n,r,b,3,i.createElement(C),C),u.push(b);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(c,'"'))}}return vt(),u}function Gl(e,t,n,r){var i=Ye(e,n),o=Ge(n,t);o&&so(t[11],o);var a=Je(t,n);if(Me(a)){var u=a;0!==i.type&&so(t[11],u[7])}r&&(i.flags|=64)}function $l(e,t,n){var r;(function(e,t,n){var r=ct();Bl[++Ll]=e,ja(!0),r.firstCreatePass&&null===r.data[e+19]&&function(e,t,n,r,i){var o=t.blueprint.length-19;Ul=0;var a=ft(),u=ht()?a:a&&a.parent,s=u&&u!==e[6]?u.index-19:n,c=0;zl[c]=s;var l=[];if(n>0&&a!==u){var f=a.index-19;ht()||(f=~f),l.push(f<<3|0)}for(var d,h=[],v=[],p=function(e,t){if("number"!=typeof t)return Ml(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return Ml(e.substring(n,r))}(r,i),y=(d=p,d.replace(af," ")).split(Dl),g=0;g0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(var r=0;r>1),a++}}(ct(),r),ja(!1)}function Kl(e,t){!function(e,t,n,r){for(var i=ft().index-19,o=[],a=0;a6&&void 0!==arguments[6]&&arguments[6],s=!1,c=0;c>>2,y=void 0,g=void 0;switch(3&v){case 1:var _=t[++h],m=t[++h];vi(o,Ye(o,p),a,_,d,a[11],m,!1);break;case 0:zi(a,p,d);break;case 2:if(y=n[t[++h]],null!==(g=Ye(o,p)).activeCaseIndex)for(var C=y.remove[g.activeCaseIndex],b=0;b>>3,!1);break;case 6:var k=Ye(o,C[b+1]>>>3).activeCaseIndex;null!==k&&ce(n[w>>>3].remove[k],C)}}var D=tf(y,d);g.activeCaseIndex=-1!==D?D:null,D>-1&&(Wl(-1,y.create[D],o,a),s=!0);break;case 3:y=n[t[++h]],null!==(g=Ye(o,p)).activeCaseIndex&&e(y.update[g.activeCaseIndex],n,r,i,o,a,s)}}}c+=f}}(t,i,o,Yl,n,a),Yl=0,Jl=0}}function tf(e,t){var n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:var r=function(e,t){switch(ml(t)(e)){case 0:return"zero";case 1:return"one";case 2:return"two";case 3:return"few";case 4:return"many";default:return"other"}}(t,uf);-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break;case 0:n=e.cases.indexOf("other")}return n}function nf(e,t,n,r){for(var i=[],o=[],a=[],u=[],s=[],c=0;c null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&(uf=e.toLowerCase().replace(/_/g,"-"))}var cf=new Map;function lf(e,t){var n=cf.get(e);ff(e,n&&n.moduleType,t.moduleType),cf.set(e,t)}function ff(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(S(t)," vs ").concat(S(t.name)))}var df=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new sl(_assertThisInitialized(i));var o=Pe(e),a=e[Z]||null;return a&&sf(a),i._bootstrapComponents=on(o.bootstrap),i._r3Injector=Uo(e,r,[{provide:ue,useValue:_assertThisInitialized(i)},{provide:Uu,useValue:i.componentFactoryResolver}],S(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default;return e===Ko||e===ue||e===G?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(ue),hf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==Pe(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;ff(n,cf.get(n),t),cf.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new df(this.moduleType,e)}}]),n}(se);function vf(e,t,n){var r=gt()+e,i=st();return i[r]===Hr?ca(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function pf(e,t,n,r){return mf(st(),gt(),e,t,n,r)}function yf(e,t,n,r,i){return Cf(st(),gt(),e,t,n,r,i)}function gf(e,t,n,r,i,o){return function(e,t,n,r,i,o,a,u){var s=t+n;return function(e,t,n,r,i){var o=fa(e,t,n,r);return la(e,t+2,i)||o}(e,s,i,o,a)?ca(e,s+3,u?r.call(u,i,o,a):r(i,o,a)):_f(e,s+3)}(st(),gt(),e,t,n,r,i,o)}function _f(e,t){var n=e[t];return n===Hr?void 0:n}function mf(e,t,n,r,i,o){var a=t+n;return la(e,a,i)?ca(e,a+1,o?r.call(o,i):r(i)):_f(e,a+1)}function Cf(e,t,n,r,i,o,a){var u=t+n;return fa(e,u,i,o)?ca(e,u+2,a?r.call(a,i,o):r(i,o)):_f(e,u+2)}function bf(e,t){var n,r=ct(),i=e+19;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Ne(n.type)),a=ee(ya),u=o();return ee(a),function(e,t,n,r){var i=n+19;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,st(),e,u),u}function wf(e,t,n){var r=st(),i=Je(r,e);return Ef(r,Df(r,e)?mf(r,gt(),t,i.transform,n,i):i.transform(n))}function kf(e,t,n,r){var i=st(),o=Je(i,e);return Ef(i,Df(i,e)?Cf(i,gt(),t,o.transform,n,r,o):o.transform(n,r))}function Df(e,t){return e[1].data[t+19].pure}function Ef(e,t){return aa.isWrapped(t)&&(t=aa.unwrap(t),e[_t()]=Hr),t}var xf=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var o,a=function(e){return null},u=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(a=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(u=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,o,a,u);return e instanceof i.a&&e.add(s),s}}]),n}(r.a);function Af(){return this._results[ra()]()}var Sf=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new xf,this.length=0;var t=ra(),n=e.prototype;n[t]||(n[t]=Af)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},Of=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)i.push(u[s/2]);else{for(var l=a[s+1],f=n[-c],d=9;d0&&void 0!==arguments[0]?arguments[0]:p.Default,t=Do(!0);if(null!=t||e&p.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}var Kf=new W("Application Initializer"),Yf=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(kd))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}(),Od=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,Rd.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||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(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Rd.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Nd(e){Rd=e}var Pd,Rd=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Md=function(e,t,n){var r=e.get(md,[]).concat(t),i=new hf(n);if(0===Jo.size)return Promise.resolve(i);var o,a,u=(o=r.map((function(e){return e.providers})),a=[],o.forEach((function(e){return e&&a.push.apply(a,_toConsumableArray(e))})),a);if(0===u.length)return Promise.resolve(i);var s=function(){var e=B.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),c=Ko.create({providers:u}).get(s.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(c.get(e))}(e);n.set(e,t=r.then(ea))}return t}return Jo.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var o=e.styleUrls,a=e.styles||(e.styles=[]),u=e.styles.length;o&&o.forEach((function(t,n){a.push(""),i.push(r(t).then((function(r){a[u+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)})))}));var s=Promise.all(i).then((function(){return function(e){Xo.delete(e)}(n)}));t.push(s)})),Jo=new Map,Promise.all(t).then((function(){}))}().then((function(){return i}))},Vd=new W("AllowMultipleToken"),jd=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function Bd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new W(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ld();if(!o||o.injector.get(Vd,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:Mo,useValue:"platform"});!function(e){if(Pd&&!Pd.destroyed&&!Pd.injector.get(Vd,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pd=e.get(Hd);var t=e.get(td,null);t&&t.forEach((function(e){return e()}))}(Ko.create({providers:a,name:r}))}return function(e){var t=Ld();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Ld(){return Pd&&!Pd.destroyed?Pd:null}var Hd=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Fd:("zone.js"===n?void 0:n)||new kd({enableLongStackTrace:zn(),shouldCoalesceEventChangeDetection:r})),a=[{provide:kd,useValue:o}];return o.run((function(){var t=Ko.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(xn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Zd(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((a=n.injector.get(Yf)).runInitializers(),a.donePromise.then((function(){return sf(n.injector.get(ad,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Aa(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(u){throw t.runOutsideAngular((function(){return e.handleError(u)})),u}var a}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ud({},n);return Md(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(zd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(S(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(Ko))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Ud(e,t){return Array.isArray(t)?t.reduce(Ud,e):Object.assign(Object.assign({},e),t)}var zd=function(){var e=function(){function e(t,n,r,i,s,c){var l=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=zn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run((function(){l.tick()}))}});var f=new o.a((function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular((function(){e.next(l._stable),e.complete()}))})),d=new o.a((function(e){var t;l._zone.runOutsideAngular((function(){t=l._zone.onStable.subscribe((function(){kd.assertNotInAngularZone(),wd((function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))}))}))}));var n=l._zone.onUnstable.subscribe((function(){kd.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(a.a)(f,d.pipe(Object(u.a)()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=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=e instanceof ju?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ue),o=n.create(Ko.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Td,null);return a&&o.injector.get(Od).registerApplication(o.location.nativeElement,a),this._loadComponent(o),zn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;){r.value.checkNoChanges()}}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Zd(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(rd,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Zd(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(kd),ne(od),ne(Ko),ne(xn),ne(Uu),ne(Yf))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Zd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var qd=function e(){_classCallCheck(this,e)},Qd=function e(){_classCallCheck(this,e)},Wd={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Gd=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Wd}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=_slicedToArray(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then((function(e){return e[o]})).then((function(e){return $d(e,i,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(e){return e[i+o]})).then((function(e){return $d(e,r,i)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(_d),ne(Qd,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function $d(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Kd=function e(t,n){_classCallCheck(this,e),this.name=t,this.callback=n},Yd=function(){function e(t,n,r){_classCallCheck(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof Jd&&n.addChild(this)}return _createClass(e,[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}]),e}(),Jd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i)).properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return _createClass(n,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(_toConsumableArray(t))),t.forEach((function(t){t.parent&&t.parent.removeChild(t),e.parent=r})))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var t=[];return function e(t,r,i){t.childNodes.forEach((function(t){t instanceof n&&(r(t)&&i.push(t),e(t,r,i))}))}(this,e,t),t}},{key:"queryAllNodes",value:function(e){var t=[];return function e(t,r,i){t instanceof n&&t.childNodes.forEach((function(t){r(t)&&i.push(t),t instanceof n&&e(t,r,i)}))}(this,e,t),t}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach((function(n){n.name==e&&n.callback(t)}))}},{key:"children",get:function(){return this.childNodes.filter((function(e){return e instanceof n}))}}]),n}(Yd),Xd=function(){function e(t){_classCallCheck(this,e),this.nativeNode=t}return _createClass(e,[{key:"parent",get:function(){var e=this.nativeNode.parentNode;return e?new eh(e):null}},{key:"injector",get:function(){return e=this.nativeNode,null===(t=yu(e,!1))?Ko.NULL:new bn(t.lView[1].data[t.nodeIndex],t.lView);var e,t}},{key:"componentInstance",get:function(){var e=this.nativeNode;return e&&(pu(e)||function(e){var t=yu(e,!1);if(null===t)return null;for(var n,r=t.lView;null===r[0]&&(n=Ur(r));)r=n;return 512&r[2]?null:r[8]}(e))}},{key:"context",get:function(){return pu(this.nativeNode)||function(e){_u(e);var t=yu(e,!1);return null===t?null:t.lView[8]}(this.nativeNode)}},{key:"listeners",get:function(){return function(e){_u(e);var t=yu(e,!1);if(null===t)return[];var n=t.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(var a=0;a=0?"dom":"output",v="boolean"==typeof d&&d;e==l&&o.push({element:e,name:c,callback:f,useCapture:v,type:h})}}return o.sort(gu),o}(this.nativeNode).filter((function(e){return"dom"===e.type}))}},{key:"references",get:function(){return e=this.nativeNode,null===(t=yu(e,!1))?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){var n=e[1].data[t];if(n&&n.localNames){for(var r={},i=n.index+1,o=0;o1){for(var c=u[1],l=1;l6&&void 0!==arguments[6]?arguments[6]:[],s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,d=arguments.length>11?arguments[11]:void 0;l||(l=Fs);var h=Gs(n),v=h.matchedQueries,p=h.references,y=h.matchedQueryIds,g=null,_=null;o&&(g=(a=_slicedToArray(oc(o),2))[0],_=a[1]),s=s||[];for(var m=[],C=0;C0)c=p,Mh(p)||(l=p);else for(;c&&v===c.nodeIndex+c.childCount;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),l=(c=_)&&Mh(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Fs,updateRenderer:r||Fs,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Mh(e){return 0!=(1&e.flags)&&null===e.element.name}function Vh(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function jh(e,t,n,r){var i=Hh(e.root,e.renderer,e,t,n);return Uh(i,e.component,r),zh(i),i}function Bh(e,t,n){var r=Hh(e,e.renderer,null,null,t);return Uh(r,n,n),zh(r),r}function Lh(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Hh(e.root,i,e,t.element.componentProvider,n)}function Hh(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Uh(e,t,n){e.component=t,e.context=n}function zh(e){var t;qs(e)&&(t=Es(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&Ch(e,t,0,n)&&(h=!0),d>1&&Ch(e,t,1,r)&&(h=!0),d>2&&Ch(e,t,2,i)&&(h=!0),d>3&&Ch(e,t,3,o)&&(h=!0),d>4&&Ch(e,t,4,a)&&(h=!0),d>5&&Ch(e,t,5,u)&&(h=!0),d>6&&Ch(e,t,6,s)&&(h=!0),d>7&&Ch(e,t,7,c)&&(h=!0),d>8&&Ch(e,t,8,l)&&(h=!0),d>9&&Ch(e,t,9,f)&&(h=!0),h}(e,t,n,r,i,o,a,u,s,c,l,f);case 2:return function(e,t,n,r,i,o,a,u,s,c,l,f){var d=!1,h=t.bindings,v=h.length;if(v>0&&Vs(e,t,0,n)&&(d=!0),v>1&&Vs(e,t,1,r)&&(d=!0),v>2&&Vs(e,t,2,i)&&(d=!0),v>3&&Vs(e,t,3,o)&&(d=!0),v>4&&Vs(e,t,4,a)&&(d=!0),v>5&&Vs(e,t,5,u)&&(d=!0),v>6&&Vs(e,t,6,s)&&(d=!0),v>7&&Vs(e,t,7,c)&&(d=!0),v>8&&Vs(e,t,8,l)&&(d=!0),v>9&&Vs(e,t,9,f)&&(d=!0),d){var p=t.text.prefix;v>0&&(p+=Ph(n,h[0])),v>1&&(p+=Ph(r,h[1])),v>2&&(p+=Ph(i,h[2])),v>3&&(p+=Ph(o,h[3])),v>4&&(p+=Ph(a,h[4])),v>5&&(p+=Ph(u,h[5])),v>6&&(p+=Ph(s,h[6])),v>7&&(p+=Ph(c,h[7])),v>8&&(p+=Ph(l,h[8])),v>9&&(p+=Ph(f,h[9]));var y=Ds(e,t.nodeIndex).renderText;e.renderer.setValue(y,p)}return d}(e,t,n,r,i,o,a,u,s,c,l,f);case 16384:return function(e,t,n,r,i,o,a,u,s,c,l,f){var d=xs(e,t.nodeIndex),h=d.instance,v=!1,p=void 0,y=t.bindings.length;return y>0&&Ms(e,t,0,n)&&(v=!0,p=il(e,d,t,0,n,p)),y>1&&Ms(e,t,1,r)&&(v=!0,p=il(e,d,t,1,r,p)),y>2&&Ms(e,t,2,i)&&(v=!0,p=il(e,d,t,2,i,p)),y>3&&Ms(e,t,3,o)&&(v=!0,p=il(e,d,t,3,o,p)),y>4&&Ms(e,t,4,a)&&(v=!0,p=il(e,d,t,4,a,p)),y>5&&Ms(e,t,5,u)&&(v=!0,p=il(e,d,t,5,u,p)),y>6&&Ms(e,t,6,s)&&(v=!0,p=il(e,d,t,6,s,p)),y>7&&Ms(e,t,7,c)&&(v=!0,p=il(e,d,t,7,c,p)),y>8&&Ms(e,t,8,l)&&(v=!0,p=il(e,d,t,8,l,p)),y>9&&Ms(e,t,9,f)&&(v=!0,p=il(e,d,t,9,f,p)),p&&h.ngOnChanges(p),65536&t.flags&&ks(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),v}(e,t,n,r,i,o,a,u,s,c,l,f);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,u,s,c,l,f){var d=t.bindings,h=!1,v=d.length;if(v>0&&Vs(e,t,0,n)&&(h=!0),v>1&&Vs(e,t,1,r)&&(h=!0),v>2&&Vs(e,t,2,i)&&(h=!0),v>3&&Vs(e,t,3,o)&&(h=!0),v>4&&Vs(e,t,4,a)&&(h=!0),v>5&&Vs(e,t,5,u)&&(h=!0),v>6&&Vs(e,t,6,s)&&(h=!0),v>7&&Vs(e,t,7,c)&&(h=!0),v>8&&Vs(e,t,8,l)&&(h=!0),v>9&&Vs(e,t,9,f)&&(h=!0),h){var p,y=As(e,t.nodeIndex);switch(201347067&t.flags){case 32:p=[],v>0&&p.push(n),v>1&&p.push(r),v>2&&p.push(i),v>3&&p.push(o),v>4&&p.push(a),v>5&&p.push(u),v>6&&p.push(s),v>7&&p.push(c),v>8&&p.push(l),v>9&&p.push(f);break;case 64:p={},v>0&&(p[d[0].name]=n),v>1&&(p[d[1].name]=r),v>2&&(p[d[2].name]=i),v>3&&(p[d[3].name]=o),v>4&&(p[d[4].name]=a),v>5&&(p[d[5].name]=u),v>6&&(p[d[6].name]=s),v>7&&(p[d[7].name]=c),v>8&&(p[d[8].name]=l),v>9&&(p[d[9].name]=f);break;case 128:var g=n;switch(v){case 1:p=g.transform(n);break;case 2:p=g.transform(r);break;case 3:p=g.transform(r,i);break;case 4:p=g.transform(r,i,o);break;case 5:p=g.transform(r,i,o,a);break;case 6:p=g.transform(r,i,o,a,u);break;case 7:p=g.transform(r,i,o,a,u,s);break;case 8:p=g.transform(r,i,o,a,u,s,c);break;case 9:p=g.transform(r,i,o,a,u,s,c,l);break;case 10:p=g.transform(r,i,o,a,u,s,c,l,f)}}y.value=p}return h}(e,t,n,r,i,o,a,u,s,c,l,f);default:throw"unreachable"}}(e,t,r,i,o,a,u,s,c,l,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&js(e,t,0,n),d>1&&js(e,t,1,r),d>2&&js(e,t,2,i),d>3&&js(e,t,3,o),d>4&&js(e,t,4,a),d>5&&js(e,t,5,u),d>6&&js(e,t,6,s),d>7&&js(e,t,7,c),d>8&&js(e,t,8,l),d>9&&js(e,t,9,f)}(e,t,r,i,o,a,u,s,c,l,f,d):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);fv.forEach((function(t,n){if(o.has(C(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:$s(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Os(n)]=i}}))}}(e=e.factory((function(){return Fs}))),e):e}(r))}var lv=new Map,fv=new Map,dv=new Map;function hv(e){var t;lv.set(e.token,e),"function"==typeof e.token&&(t=C(e.token))&&"function"==typeof t.providedIn&&fv.set(e.token,e)}function vv(e,t){var n=Js(t.viewDefFactory),r=Js(n.nodes[0].element.componentView);dv.set(e,r)}function pv(){lv.clear(),fv.clear(),dv.clear()}function yv(e){if(0===lv.size)return e;var t=function(e){for(var t=[],n=null,r=0;r3?o-3:0),u=3;u3?o-3:0),u=3;u1?t-1:0),r=1;r1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.Ib.getAllAngularTestabilities=function(){return e.getAllTestabilities()},o.Ib.getAllAngularRootElements=function(){return e.getAllRootElements()},o.Ib.frameworkStabilizers||(o.Ib.frameworkStabilizers=[]),o.Ib.frameworkStabilizers.push((function(e){var t=o.Ib.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Object(i.N)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(o.gb)(new e)}}]),e}(),f=new o.v("EventManagerPlugins"),d=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&S.hasOwnProperty(t)&&(t=S[t]))}return A[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),x.forEach((function(r){r!=n&&(0,I[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(h);return e.\u0275fac=function(t){return new(t||e)(o.Mc(i.e))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e}(),T=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o.uc)({factory:function(){return Object(o.Mc)(N)},token:e,providedIn:"root"}),e}();function O(e){return new N(e.get(i.e))}var N=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case o.P.NONE:return t;case o.P.HTML:return Object(o.rb)(t,"HTML")?Object(o.fc)(t):Object(o.ob)(this._doc,String(t));case o.P.STYLE:return Object(o.rb)(t,"Style")?Object(o.fc)(t):Object(o.pb)(t);case o.P.SCRIPT:if(Object(o.rb)(t,"Script"))return Object(o.fc)(t);throw new Error("unsafe value used in a script context");case o.P.URL:return Object(o.Hb)(t),Object(o.rb)(t,"URL")?Object(o.fc)(t):Object(o.qb)(String(t));case o.P.RESOURCE_URL:if(Object(o.rb)(t,"ResourceURL"))return Object(o.fc)(t);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(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return Object(o.tb)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return Object(o.wb)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return Object(o.vb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return Object(o.xb)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return Object(o.ub)(e)}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(o.Mc(i.e))},e.\u0275prov=Object(o.uc)({factory:function(){return O(Object(o.Mc)(o.t))},token:e,providedIn:"root"}),e}(),P=[{provide:o.I,useValue:i.M},{provide:o.J,useValue:function(){a.makeCurrent(),l.init()},multi:!0},{provide:i.e,useFactory:function(){return Object(o.bc)(document),document},deps:[]}],R=[[],{provide:o.lb,useValue:"root"},{provide:o.r,useFactory:function(){return new o.r},deps:[]},{provide:f,useClass:D,multi:!0,deps:[i.e,o.F,o.I]},{provide:f,useClass:F,multi:!0,deps:[i.e]},[],{provide:C,useClass:C,deps:[d,p,o.c]},{provide:o.M,useExisting:C},{provide:v,useExisting:p},{provide:p,useClass:p,deps:[i.e]},{provide:o.V,useClass:o.V,deps:[o.F]},{provide:d,useClass:d,deps:[f,o.F]},[]],M=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)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 _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:o.c,useValue:t.appId},{provide:s,useExisting:o.c},c]}}}]),e}();return e.\u0275mod=o.wc({type:e}),e.\u0275inj=o.vc({factory:function(t){return new(t||e)(o.Mc(e,12))},providers:R,imports:[i.c,o.f]}),e}();"undefined"!=typeof window&&window},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(r.a)},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("KqfI");function i(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(r.Mc(c),r.Mc(C,8))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=p(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(r.Mc(c),r.Mc(C,8))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e}(),k=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._subject=new r.s,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=y(E(o)),this._platformStrategy.onPopState((function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})}))}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,E(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Mc(_),r.Mc(c))},e.normalizeQueryParams=g,e.joinWithSlash=p,e.stripTrailingSlash=y,e.\u0275prov=Object(r.uc)({factory:D,token:e,providedIn:"root"}),e}();function D(){return new k(Object(r.Mc)(_),Object(r.Mc)(c))}function E(e){return e.replace(/\/index.html$/,"")}var x={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]},A=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),S=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),I=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),F=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),T=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),O=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function N(e,t){return L(Object(r.Db)(e)[r.mb.DateFormat],t)}function P(e,t){return L(Object(r.Db)(e)[r.mb.TimeFormat],t)}function R(e,t){return L(Object(r.Db)(e)[r.mb.DateTimeFormat],t)}function M(e,t){var n=Object(r.Db)(e),i=n[r.mb.NumberSymbols][t];if(void 0===i){if(t===O.CurrencyDecimal)return n[r.mb.NumberSymbols][O.Decimal];if(t===O.CurrencyGroup)return n[r.mb.NumberSymbols][O.Group]}return i}function V(e,t){return Object(r.Db)(e)[r.mb.NumberFormats][t]}var j=r.Gb;function B(e){if(!e[r.mb.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[r.mb.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function L(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function H(e){var t=_slicedToArray(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,z={},Z=/((?:[^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]*)/,q=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),Q=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),W=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function G(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));for(var a=String(e);a.length2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var u,s=function(e,t){switch(e){case Q.FullYear:return t.getFullYear();case Q.Month:return t.getMonth();case Q.Date:return t.getDate();case Q.Hours:return t.getHours();case Q.Minutes:return t.getMinutes();case Q.Seconds:return t.getSeconds();case Q.FractionalSeconds:return t.getMilliseconds();case Q.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||s>-n)&&(s+=n),e===Q.Hours)0===s&&-12===n&&(s=12);else if(e===Q.FractionalSeconds)return u=t,$(s,3).substr(0,u);var c=M(a,O.MinusSign);return $(s,t,c,r,i)}}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,t,n,i,o,a){switch(n){case W.Months:return function(e,t,n){var i=Object(r.Db)(e),o=L([i[r.mb.MonthsFormat],i[r.mb.MonthsStandalone]],t);return L(o,n)}(t,o,i)[e.getMonth()];case W.Days:return function(e,t,n){var i=Object(r.Db)(e),o=L([i[r.mb.DaysFormat],i[r.mb.DaysStandalone]],t);return L(o,n)}(t,o,i)[e.getDay()];case W.DayPeriods:var u=e.getHours(),s=e.getMinutes();if(a){var c,l=function(e){var t=Object(r.Db)(e);return B(t),(t[r.mb.ExtraData][2]||[]).map((function(e){return"string"==typeof e?H(e):[H(e[0]),H(e[1])]}))}(t),f=function(e,t,n){var i=Object(r.Db)(e);B(i);var o=L([i[r.mb.ExtraData][0],i[r.mb.ExtraData][1]],t)||[];return L(o,n)||[]}(t,o,i);if(l.forEach((function(e,t){if(Array.isArray(e)){var n=e[0],r=n.hours,i=n.minutes,o=e[1],a=o.hours,l=o.minutes;u>=r&&s>=i&&(u0?Math.floor(i/60):Math.ceil(i/60);switch(e){case q.Short:return(i>=0?"+":"")+$(a,2,o)+$(Math.abs(i%60),2,o);case q.ShortGMT:return"GMT"+(i>=0?"+":"")+$(a,1,o);case q.Long:return"GMT"+(i>=0?"+":"")+$(a,2,o)+":"+$(Math.abs(i%60),2,o);case q.Extended:return 0===r?"Z":(i>=0?"+":"")+$(a,2,o)+":"+$(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i,o,a,u;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();i=1+Math.floor((c+s)/7)}else{var l=(o=n.getFullYear(),a=new Date(o,0,1).getDay(),new Date(o,0,1+(a<=4?4:11)-a)),f=(u=n,new Date(u.getFullYear(),u.getMonth(),u.getDate()+(4-u.getDay()))).getTime()-l.getTime();i=1+Math.round(f/6048e5)}return $(i,e,M(r,O.MinusSign))}}var ee={};function te(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ne(e){return e instanceof Date&&!isNaN(e.valueOf())}var re=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ie(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u="",s=!1;if(isFinite(e)){var c=function(e){var t,n,r,i,o,a=Math.abs(e)+"",u=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;"0"===a.charAt(r);r++);if(r===(o=a.length))t=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(a.charAt(r))}return n>22&&(t=t.splice(0,21),u=n-1,n=1),{digits:t,exponent:u,integerLen:n}}(e);a&&(c=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));var l=t.minInt,f=t.minFrac,d=t.maxFrac;if(o){var h=o.match(re);if(null===h)throw new Error("".concat(o," is not a valid digit info"));var v=h[1],p=h[3],y=h[5];null!=v&&(l=ae(v)),null!=p&&(f=ae(p)),null!=y?d=ae(y):null!=p&&f>d&&(d=f)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),a=o+e.integerLen,u=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var s=a;s=5)if(a-1<0){for(var l=0;l>a;l--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;i=d?r.pop():f=!1),t>=10?1:0}),0);h&&(r.unshift(h),e.integerLen++)}(c,f,d);var g=c.digits,_=c.integerLen,m=c.exponent,C=[];for(s=g.every((function(e){return!e}));_0?C=g.splice(_,g.length):(C=g,g=[0]);var b=[];for(g.length>=t.lgSize&&b.unshift(g.splice(-t.lgSize,g.length).join(""));g.length>t.gSize;)b.unshift(g.splice(-t.gSize,g.length).join(""));g.length&&b.unshift(g.join("")),u=b.join(M(n,r)),C.length&&(u+=M(n,i)+C.join("")),m&&(u+=M(n,O.Exponential)+"+"+m)}else u=M(n,O.Infinity);return u=e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],o=r[1],a=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],u=a[0],s=a[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(var c=0;c-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(e,'"'))}var ce=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(j(t||this.locale)(e)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}]),n}(ue);return e.\u0275fac=function(t){return new(t||e)(r.Mc(r.z))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e}();function le(e,t,n){return Object(r.Zb)(e,t,n)}function fe(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),u=a[0],s=a[1];if(u.trim()===t)return decodeURIComponent(s)}}catch(c){r.e(c)}finally{r.f()}return null}var de=function(){var e=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(r.cc)(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Lb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.x),r.yc(r.y),r.yc(r.q),r.yc(r.L))},e.\u0275dir=r.tc({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),he=function(){var e=function(){function e(t){_classCallCheck(this,e),this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(r.D);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.n)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X))},e.\u0275dir=r.tc({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r.ic]}),e}(),ve=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{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}}]),e}(),pe=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new ve(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new ye(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var u=t._viewContainer.get(r);t._viewContainer.move(u,i);var s=new ye(e,u);n.push(s)}}));for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return function(e,t,n,i){var o=function(e){if(ne(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var r=_slicedToArray(e.split("-").map((function(e){return+e})),3),i=r[0],o=r[1],a=r[2];return new Date(i,o-1,a)}if(t=e.match(U))return function(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,u=Number(e[5]||0)-r,s=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,u,s,c),t}(t)}var u=new Date(e);if(!ne(u))throw new Error('Unable to convert "'.concat(e,'" into a date'));return u}(e);t=function e(t,n){var i=function(e){return Object(r.Db)(e)[r.mb.LocaleId]}(t);if(z[i]=z[i]||{},z[i][n])return z[i][n];var o="";switch(n){case"shortDate":o=N(t,T.Short);break;case"mediumDate":o=N(t,T.Medium);break;case"longDate":o=N(t,T.Long);break;case"fullDate":o=N(t,T.Full);break;case"shortTime":o=P(t,T.Short);break;case"mediumTime":o=P(t,T.Medium);break;case"longTime":o=P(t,T.Long);break;case"fullTime":o=P(t,T.Full);break;case"short":var a=e(t,"shortTime"),u=e(t,"shortDate");o=G(R(t,T.Short),[a,u]);break;case"medium":var s=e(t,"mediumTime"),c=e(t,"mediumDate");o=G(R(t,T.Medium),[s,c]);break;case"long":var l=e(t,"longTime"),f=e(t,"longDate");o=G(R(t,T.Long),[l,f]);break;case"full":var d=e(t,"fullTime"),h=e(t,"fullDate");o=G(R(t,T.Full),[d,h])}return o&&(z[i][n]=o),o}(n,t)||t;for(var a,u=[];t;){if(!(a=Z.exec(t))){u.push(t);break}var s=(u=u.concat(a.slice(1))).pop();if(!s)break;t=s}var c=o.getTimezoneOffset();i&&(c=te(i,c),o=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(te(t,r)-r))}(o,i));var l="";return u.forEach((function(e){var t=function(e){if(ee[e])return ee[e];var t;switch(e){case"G":case"GG":case"GGG":t=Y(W.Eras,F.Abbreviated);break;case"GGGG":t=Y(W.Eras,F.Wide);break;case"GGGGG":t=Y(W.Eras,F.Narrow);break;case"y":t=K(Q.FullYear,1,0,!1,!0);break;case"yy":t=K(Q.FullYear,2,0,!0,!0);break;case"yyy":t=K(Q.FullYear,3,0,!1,!0);break;case"yyyy":t=K(Q.FullYear,4,0,!1,!0);break;case"M":case"L":t=K(Q.Month,1,1);break;case"MM":case"LL":t=K(Q.Month,2,1);break;case"MMM":t=Y(W.Months,F.Abbreviated);break;case"MMMM":t=Y(W.Months,F.Wide);break;case"MMMMM":t=Y(W.Months,F.Narrow);break;case"LLL":t=Y(W.Months,F.Abbreviated,I.Standalone);break;case"LLLL":t=Y(W.Months,F.Wide,I.Standalone);break;case"LLLLL":t=Y(W.Months,F.Narrow,I.Standalone);break;case"w":t=X(1);break;case"ww":t=X(2);break;case"W":t=X(1,!0);break;case"d":t=K(Q.Date,1);break;case"dd":t=K(Q.Date,2);break;case"E":case"EE":case"EEE":t=Y(W.Days,F.Abbreviated);break;case"EEEE":t=Y(W.Days,F.Wide);break;case"EEEEE":t=Y(W.Days,F.Narrow);break;case"EEEEEE":t=Y(W.Days,F.Short);break;case"a":case"aa":case"aaa":t=Y(W.DayPeriods,F.Abbreviated);break;case"aaaa":t=Y(W.DayPeriods,F.Wide);break;case"aaaaa":t=Y(W.DayPeriods,F.Narrow);break;case"b":case"bb":case"bbb":t=Y(W.DayPeriods,F.Abbreviated,I.Standalone,!0);break;case"bbbb":t=Y(W.DayPeriods,F.Wide,I.Standalone,!0);break;case"bbbbb":t=Y(W.DayPeriods,F.Narrow,I.Standalone,!0);break;case"B":case"BB":case"BBB":t=Y(W.DayPeriods,F.Abbreviated,I.Format,!0);break;case"BBBB":t=Y(W.DayPeriods,F.Wide,I.Format,!0);break;case"BBBBB":t=Y(W.DayPeriods,F.Narrow,I.Format,!0);break;case"h":t=K(Q.Hours,1,-12);break;case"hh":t=K(Q.Hours,2,-12);break;case"H":t=K(Q.Hours,1);break;case"HH":t=K(Q.Hours,2);break;case"m":t=K(Q.Minutes,1);break;case"mm":t=K(Q.Minutes,2);break;case"s":t=K(Q.Seconds,1);break;case"ss":t=K(Q.Seconds,2);break;case"S":t=K(Q.FractionalSeconds,1);break;case"SS":t=K(Q.FractionalSeconds,2);break;case"SSS":t=K(Q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=J(q.Short);break;case"ZZZZZ":t=J(q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=J(q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=J(q.Long);break;default:return null}return ee[e]=t,t}(e);l+=t?t(o,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}(t,n,o||this.locale,i)}catch(a){throw Se(e,a.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z))},e.\u0275pipe=r.xc({name:"date",type:e,pure:!0}),e}(),je=/#/g,Be=function(){var e=function(){function e(t){_classCallCheck(this,e),this._localization=t}return _createClass(e,[{key:"transform",value:function(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw Se(e,n);return n[se(t,Object.keys(n),this._localization,r)].replace(je,t.toString())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(ue))},e.\u0275pipe=r.xc({name:"i18nPlural",type:e,pure:!0}),e}(),Le=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw Se(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"i18nSelect",type:e,pure:!0}),e}(),He=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return JSON.stringify(e,null,2)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"json",type:e,pure:!1}),e}(),Ue=function(){var e=function(){function e(t){_classCallCheck(this,e),this.differs=t,this.keyValues=[]}return _createClass(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var r=this.differ.diff(e);return r&&(this.keyValues=[],r.forEachItem((function(e){t.keyValues.push({key:e.key,value:e.currentValue})})),this.keyValues.sort(n)),this.keyValues}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.y))},e.\u0275pipe=r.xc({name:"keyvalue",type:e,pure:!1}),e}();function ze(e,t){var n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n1&&void 0!==arguments[1]?arguments[1]:"USD";_classCallCheck(this,e),this._locale=t,this._defaultCurrencyCode=n}return _createClass(e,[{key:"transform",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;if(We(t))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 u=n||this._defaultCurrencyCode;"code"!==i&&(u="symbol"===i||"symbol-narrow"===i?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",i=function(e){return Object(r.Db)(e)[r.mb.Currencies]}(n)[e]||x[e]||[],o=i[1];return"narrow"===t&&"string"==typeof o?o:i[0]||e}(u,"symbol"===i?"wide":"narrow",a):i);try{return function(e,t,n,r,i){var o=oe(V(t,A.Currency),M(t,O.MinusSign));return o.minFrac=function(e){var t,n=x[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),o.maxFrac=o.minFrac,ie(e,o,t,O.CurrencyGroup,O.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}(Ge(t),a,u,n,o)}catch(s){throw Se(e,s.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z),r.yc(r.p))},e.\u0275pipe=r.xc({name:"currency",type:e,pure:!0}),e}();function We(e){return null==e||""===e||e!=e}function Ge(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}var $e=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n,r){if(null==t)return t;if(!this.supports(t))throw Se(e,t);return t.slice(n,r)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"slice",type:e,pure:!1}),e}(),Ke=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.wc({type:e}),e.\u0275inj=r.vc({factory:function(t){return new(t||e)},providers:[{provide:ue,useClass:ce}]}),e}(),Ye="browser";function Je(e){return e===Ye}function Xe(e){return"server"===e}var et=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=Object(r.uc)({token:e,providedIn:"root",factory:function(){return new tt(Object(r.Mc)(s),window,Object(r.Mc)(r.r))}}),e}(),tt=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#".concat(e));if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}()},quSY:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r,i,o=n("DH7j"),a=n("XoHu"),u=n("n6bG"),s=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),c=((i=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,r=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var c=0;c1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(o.a),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.a).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.a.EMPTY)),e}},{key:"refCount",value:function(){return u()(this)}}]),n}(i.a),d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(s=f.prototype)._subscribe},_isComplete:{value:s._isComplete,writable:!0},getSubject:{value:s.getSubject},connect:{value:s.connect},refCount:{value:s.refCount}},h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(r.b);function v(){return new r.a}function p(){return function(e){return u()((t=v,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,d);return r.source=e,r.subjectFactory=n,r})(e));var t}}},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},zUnb:function(e,t,n){"use strict";n.r(t),n("N/DB");var r=n("fXoL"),i=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});function o(e){var t=function(e){for(var t="",n=0;n=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}(e),n=a(t,0),r=a(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function a(e,t){var n,r=2654435769,i=2654435769,o=e.length;for(n=0;n+12<=o;n+=12){var a=u(r=c(r,h(e,n,s.Little)),i=c(i,h(e,n+4,s.Little)),t=c(t,h(e,n+8,s.Little)));r=a[0],i=a[1],t=a[2]}return r=c(r,h(e,n,s.Little)),i=c(i,h(e,n+4,s.Little)),t=c(t,o),u(r,i,t=c(t,h(e,n+8,s.Little)<<8))[2]}function u(e,t,n){return e=f(e,t),e=f(e,n),e^=n>>>13,t=f(t,n),t=f(t,e),t^=e<<8,n=f(n,e),n=f(n,t),n^=t>>>13,e=f(e,t),e=f(e,n),e^=n>>>12,t=f(t,n),t=f(t,e),t^=e<<16,n=f(n,e),n=f(n,t),n^=t>>>5,e=f(e,t),e=f(e,n),e^=n>>>3,t=f(t,n),t=f(t,e),t^=e<<10,n=f(n,e),n=f(n,t),[e,t,n^=t>>>15]}"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var s=function(e){return e[e.Little=0]="Little",e[e.Big=1]="Big",e}({});function c(e,t){return l(e,t)[1]}function l(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function f(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function d(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function h(e,t,n){var r=0;if(n===s.Big)for(var i=0;i<4;i++)r+=d(e,t+i)<<24-8*i;else for(var o=0;o<4;o++)r+=d(e,t+o)<<8*o;return r}function v(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i=10?(o=1,n+=a-10):(o=0,n+=a)}return n}function p(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=v(n,r)),r=v(r,r);return n}var y=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){return""}}]),e}(),g=function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.defaultEncapsulation,o=void 0===r?i.Emulated:r,a=n.useJit,u=void 0===a||a,s=n.jitDevMode,c=void 0!==s&&s,l=n.missingTranslation,f=void 0===l?null:l,d=n.preserveWhitespaces,h=n.strictInjectionParameters;_classCallCheck(this,e),this.defaultEncapsulation=o,this.useJit=!!u,this.jitDevMode=!!c,this.missingTranslation=f,this.preserveWhitespaces=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?t:e}(void 0===(t=d)?null:t),this.strictInjectionParameters=!0===h},_=n("ofXK"),m=n("jhN1"),C=[{provide:r.k,useFactory:function(){return new r.k}}];function b(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function w(e){var t=[];return e.forEach((function(e){return e&&t.push.apply(t,_toConsumableArray(e))})),t}var k,D=Object(r.ab)(r.fb,"coreDynamic",[{provide:r.h,useValue:{},multi:!0},{provide:r.l,useClass:function(){function e(t){_classCallCheck(this,e),this._defaultOptions=[{useJit:!0,defaultEncapsulation:r.Y.Emulated,missingTranslation:r.A.Warning}].concat(_toConsumableArray(t))}return _createClass(e,[{key:"createCompiler",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n={useJit:b((e=this._defaultOptions.concat(t)).map((function(e){return e.useJit}))),defaultEncapsulation:b(e.map((function(e){return e.defaultEncapsulation}))),providers:w(e.map((function(e){return e.providers}))),missingTranslation:b(e.map((function(e){return e.missingTranslation}))),preserveWhitespaces:b(e.map((function(e){return e.preserveWhitespaces})))};return r.w.create([C,{provide:g,useFactory:function(){return new g({useJit:n.useJit,jitDevMode:Object(r.eb)(),defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,preserveWhitespaces:n.preserveWhitespaces})},deps:[]},n.providers]).get(r.k)}}]),e}(),deps:[r.h]}]),E=((k=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"get",value:function(e){var t,n,r=new Promise((function(e,r){t=e,n=r})),i=new XMLHttpRequest;return i.open("GET",e,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?t(r):n("Failed to load ".concat(e))},i.onerror=function(){n("Failed to load ".concat(e))},i.send(),r}}]),n}(y)).\u0275fac=function(e){return x(e||k)},k.\u0275prov=r.uc({token:k,factory:k.\u0275fac}),k),x=r.Fc(E),A=[m.e,{provide:r.h,useValue:{providers:[{provide:y,useClass:E,deps:[]}]},multi:!0},{provide:r.I,useValue:_.M}],S=Object(r.ab)(D,"browserDynamic",A);function I(e,t){if(":"!==t.charAt(0))return{text:e};var n=function(e,t){for(var n=1,r=1;n1&&void 0!==arguments[1]?arguments[1]:"",_=o(e);if(g){var m=o(g);h=(f=_)[0],y=f[1],r=(t=[h<<1|y>>>31,y<<1|h>>>31])[0],i=(n=m)[0],a=l(t[1],n[1]),u=a[0],s=a[1],_=[c(c(r,i),u),s]}return function(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=v(t,p(d(e,r),n)),n=p(256,n);return t.split("").reverse().join("")}([2147483647&_[0],_[1]].reduce((function(e,t){return e+function(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)}),""))}(s,i.meaning||""),C=i.legacyIds.filter((function(e){return e!==m}));return{messageId:m,legacyIds:C,substitutions:r,messageString:s,meaning:i.meaning||"",description:i.description||"",messageParts:a,placeholderNames:u}}(t,n),i=e[r.messageId],a=0;a