diff --git a/backend/public/1-es2015.1ef01eeb5469c2dd4275.js b/backend/public/1-es2015.8a2b309101ca7894f706.js similarity index 73% rename from backend/public/1-es2015.1ef01eeb5469c2dd4275.js rename to backend/public/1-es2015.8a2b309101ca7894f706.js index 7547114..2f91e73 100644 --- a/backend/public/1-es2015.1ef01eeb5469c2dd4275.js +++ b/backend/public/1-es2015.8a2b309101ca7894f706.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"2Yyj":function(t,e,i){var n,s,a;!function(r){if("object"==typeof t.exports){var o=r(0,e);void 0!==o&&(t.exports=o)}else s=[i,e],void 0===(a="function"==typeof(n=r)?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:[]},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,r){var o=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,r):n(l,l.target="_blank")):(l.href=o.createObjectURL(t),setTimeout((function(){o.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 r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){n(r)}))}}: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 r="application/octet-stream"===t.type,o=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&o)&&"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 h=s.URL||s.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout((function(){h.revokeObjectURL(d)}),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);var n=i("jhN1"),s=i("fXoL");class a{}function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function o(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 h(t){return{type:6,styles:t,offset:null}}function d(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 r=[],o=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,h=n&&c||{};Object.keys(t).forEach(i=>{let n=i,o=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),o){case"!":o=s[i];break;case"*":o=a[i];break;default:o=e.normalizeStyleValue(i,n,o,r)}h[n]=o}),n||o.push(h),c=h,l=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return o}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,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:a,disabled:!!r}}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 P=y();(P||"undefined"!=typeof Element)&&(E=(t,e)=>t.contains(e),A=(()=>{if(P||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 R=null,I=!1;function T(t){R||(R=("undefined"!=typeof document?document.body:null)||{},I=!!R.style&&"WebkitAppearance"in R.style);let e=!0;return R.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in R.style,!e&&I)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in R.style),e}const M=A,F=E,L=O;function N(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 z=(()=>{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=[],r){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 z,t})();function j(t){if("number"==typeof t)return t;const 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,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=V(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=V(parseFloat(r),i[4]));const o=i[5];o&&(a=o)}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 W(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],r=[];if(n.forEach(t=>{a.hasOwnProperty(t)||r.push(t),a[t]=i[t]}),r.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],r=n[3];e.push(ct(s,r)),"<"!=a[0]||"*"==s&&"*"==r||e.push(ct(r,s))}(t,i,e)):i.push(t),i}const ot=new Set(["true","1"]),lt=new Set(["false","0"]);function ct(t,e){const i=ot.has(t)||lt.has(t),n=ot.has(e)||lt.has(e);return(s,a)=>{let r="*"==t||t==s,o="*"==e||e==a;return!r&&i&&"boolean"==typeof s&&(r=s?ot.has(t):lt.has(t)),!o&&n&&"boolean"==typeof a&&(o=a?ot.has(e):lt.has(e)),r&&o}}const ht=new RegExp("s*:selfs*,?","g");function dt(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:rt(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:h({});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=h(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=a,n=r}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],r=a[i];let o=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),o=!1),s=r.startTime),o&&(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,r=!1,o=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),r=r||c<0||c>1,a=a||c0&&n{const a=h>0?n==d?1:h*n:s[n],r=a*p;e.currentTime=u+m.delay+r,m.duration=r,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(ht,"")),[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 r=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:r,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,r=null,o=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:a,totalTime:s+a,easing:r,subTimeline:o}}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={},r={},o,l,c=[]){return(new xt).buildKeyframes(t,e,i,n,s,a,r,o,l,c)}class xt{buildKeyframes(t,e,i,n,s,a,r,o,l,c=[]){l=l||new _t;const h=new Ct(t,e,l,n,s,c,[]);h.options=o,h.currentTimeline.setStyles([a],null,h.errors,o),st(this,i,h);const d=h.timelines.filter(t=>t.containsAnimation());if(d.length&&Object.keys(r).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,h.errors,o)}return d.length?d.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?j(i.duration):null,a=null!=i.delay?j(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=j(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?j(t.options.delay):0;t.steps.forEach(a=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),st(this,a,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.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?j(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kt);let a=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let o=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(o=r.currentTimeline),st(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,a=Math.abs(s.duration),r=a*(e.currentQueryTotal-1);let o=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":o=r-o;break;case"full":o=i.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);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,r,o){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=a,this.timelines=r,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=o||new St(this._driver,e,0),r.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=j(i.duration)),null!=i.delay&&(n.delay=j(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 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 r=[];if(n&&r.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)),r.push(...e)}return s||0!=r.length||a.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}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 r=H(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(r.offset=a/this.duration),n.push(r)});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,r=!1){super(t,e,a.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,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,r=e/a,o=H(t[0],!1);o.offset=0,s.push(o);const l=H(t[0],!1);l.offset=Et(r),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let r=H(t[n],!1);r.offset=Et((e+r.offset*i)/a),s.push(r)}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(Pt[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 Pt=(()=>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 Rt(t,e,i,n,s,a,r,o,l,c,h,d,u){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:a,toState:n,toStyles:r,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:d,errors:u}}const It={};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,r,o,l,c){const h=[],d=this.ast.options&&this.ast.options.params||It,u=this.buildStyles(i,r&&r.params||It,h),m=o&&o.params||It,p=this.buildStyles(n,m,h),g=new Set,f=new Map,b=new Map,_="void"===n,y={params:Object.assign(Object.assign({},d),m)},v=c?[]:wt(t,e,this.ast.animation,s,a,u,p,y,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Rt(e,this._triggerName,i,n,_,u,p,[],[],f,b,w,h);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 x=J(g.values());return Rt(e,this._triggerName,i,n,_,u,p,v,x,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 Nt=new _t;class zt{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=dt(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 r=new Map;if(s?(a=wt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Nt,n),a.forEach(t=>{const e=S(r,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")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const o=v(a.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=o,o.onDestroy(()=>this.destroy(t)),this.players.push(o),o}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=[],jt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={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,[]),r={name:e,phase:i,callback:n};a.push(r);const o=S(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||(Xt(t,"ng-trigger"),Xt(t,"ng-trigger-"+e),o[e]=$t),()=>{this._engine.afterFlush(()=>{const t=a.indexOf(r);t>=0&&a.splice(t,1),this._triggers[e]||delete o[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 r=this._engine.statesByElement.get(t);r||(Xt(t,"ng-trigger"),Xt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let o=r[e];const l=new Ut(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),r[e]=l,o||(o=$t),"void"!==l.value&&o.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{W(t,i),Y(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 h=s.matchTransition(o.value,l.value,t,l.params),d=!1;if(!h){if(!n)return;h=s.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:o,toState:l,player:a,isFallbackTransition:d}),d||(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,r=new Ut("void"),o=new Gt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:a,toState:r,player:o,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!==jt||(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,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 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(Yt(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 Yt(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=jt,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=[],r=new Map,o=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(d,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=[],x=[];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=!h||!this.driver.containsElement(h,s),d=_.get(s),u=m.get(s),p=this._buildInstruction(t,i,u,d,c);if(!p.errors||!p.errors.length)return c?(e.onStart(()=>W(s,p.fromStyles)),e.onDestroy(()=>Y(s,p.toStyles)),void n.push(e)):t.isFallbackTransition?(e.onStart(()=>W(s,p.fromStyles)),e.onDestroy(()=>Y(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(r,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=o.get(e);t||o.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 D=g.filter(t=>te(t,o,l)),E=new Map;Qt(E,this.driver,b,l,"*").forEach(t=>{te(t,o,l)&&D.push(t)});const A=new Map;u.forEach((t,e)=>{Qt(A,this.driver,new Set(t),o,"!")}),D.forEach(t=>{const e=E.get(t),i=A.get(t);E.set(t,Object.assign(Object.assign({},e),i))});const O=[],P=[],R={};a.forEach(t=>{const{element:e,player:a,instruction:r}=t;if(i.has(e)){if(c.has(e))return a.onDestroy(()=>Y(e,r.toStyles)),a.disabled=!0,a.overrideTotalTime(r.totalTime),void n.push(a);let t=R;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,r,k,s,A,E);if(a.setRealPlayer(i),t===R)O.push(a);else{const e=this.playersByElement.get(t);e&&e.length&&(a.parentPlayer=v(e)),n.push(a)}}else W(e,r.fromStyles),a.onDestroy(()=>Y(e,r.toStyles)),P.push(a),c.has(e)&&n.push(a)}),P.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 r of e.timelines){const t=r.element,o=t!==n,l=S(i,t,[]);this._getPreviousPlayers(t,o,s,a,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}W(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const r=e.triggerName,o=e.element,l=[],c=new Set,h=new Set,d=e.timelines.map(e=>{const d=e.element;c.add(d);const u=d.__ng_removed;if(u&&u.removedBeforeQueried)return new b(e.duration,e.delay);const m=d!==o,p=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===d),g=s.get(d),f=a.get(d),y=w(0,this._normalizer,0,e.keyframes,g,f),v=this._buildPlayer(e,y,p);if(e.subTimeline&&n&&h.add(d),m){const e=new Gt(t,r,d);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(d);return u.onDestroy(()=>{c.forEach(t=>Zt(t,"ng-animating")),Y(o,e.toStyles)}),h.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=>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 Yt(t){return t&&1===t.nodeType}function Wt(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(Wt(t)));const r=[];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=Vt,r.push(n))}),t.set(n,a)});let o=0;return i.forEach(t=>Wt(t,a[o++])),r}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 r=e.parentNode;return a=i.has(r)?r:n.has(r)?1:t(r),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 zt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const a=t+"-"+n;let r=this._triggerCache[a];if(!r){const t=[],e=dt(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 - ")}`);r=function(t,e){return new Ft(t,e)}(n,e),this._triggerCache[a]=r}this._transitionEngine.registerTrigger(e,n,r)}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&&Y(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Y(this._element,this._initialStyles),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),Y(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(),he(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),de(t,"",i.join(",")))}(this._element,this._name))}}function oe(t,e,i){de(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 he(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function de(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,r,o){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=o,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 re(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=N(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=>N(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=[],r){r&&this._notifyFaultyScrubber();const o=a.filter(t=>t instanceof me),l={};it(i,n)&&o.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 h=`gen_css_kf_${this._count++}`,d=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(d);const u=ie(t,e),m=new me(t,e,h,i,n,s,c,u);return m.onDestroy(()=>{var t;(t=d).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=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,a);const o={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(o.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 h=ie(t,e=nt(t,e=e.map(t=>H(t,!1)),l));return new fe(t,e,o,h)}}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 ke(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 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 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 Pe=(()=>{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 Re=i("XNiG"),Ie=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 Ne(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var ze=i("7o/Q"),Be=i("KqfI"),je=i("n6bG");function Ve(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 ze.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(je.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 Ie.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 Ye extends Ge{constructor(t,e=Ge.now){super(t,()=>Ye.delegate&&Ye.delegate!==this?Ye.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Ye.delegate&&Ye.delegate!==this?Ye.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 We=new Ye(qe);function Qe(t,e=We){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 ze.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 ze.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 ri(t){return t?function(t){return new si.a(e=>t.schedule(()=>e.complete()))}(t):ai}function oi(t){return e=>0===t?ri():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 ze.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 hi(t){return null!=t&&"false"!==`${t}`}function di(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(RE){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,xi,ki;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==xi){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),xi=0,0===t.scrollLeft&&(t.scrollLeft=1,xi=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return xi}function Di(){if(null==ki){const t="undefined"!=typeof document?document.head:null;ki=!(!t||!t.createShadowRoot&&!t.attachShadow)}return ki}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 Re.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=hi(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=di(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})(),Pi=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ei]}),t})();function Ri(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ii=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=Ri(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=Ri(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=Ri(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 Re.a,this._typeaheadSubscription=Ie.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Re.a,this.change=new Re.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(Ve(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||Ne(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 Ni extends Li{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class zi 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(RE){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===Vi(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=Vi(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.Mc(bi))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(bi))},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 Vi(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(oi(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){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)}}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 Re.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))}_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,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(()=>{document.addEventListener("keydown",this._documentKeydownListener,Yi),document.addEventListener("mousedown",this._documentMousedownListener,Yi),document.addEventListener("touchstart",this._documentTouchstartListener,Yi),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,Yi),document.removeEventListener("mousedown",this._documentMousedownListener,Yi),document.removeEventListener("touchstart",this._documentTouchstartListener,Yi),window.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))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(s.F),Object(s.Mc)(bi))},token:t,providedIn:"root"}),t})();function Qi(t){return 0===t.buttons}let Ki=(()=>{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})(),Xi=(()=>{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(Ki))},imports:[[_i,Pi]]}),t})();const Zi=new s.v("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.db)(ye.e)}});let Ji=(()=>{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(Zi,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Zi,8))},token:t,providedIn:"root"}),t})(),tn=(()=>{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:Ji,useExisting:t}])]}),t})(),en=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const nn=new s.W("9.1.2");var sn=i("bHdf");function an(){return Object(sn.a)(1)}function rn(...t){return an()(Le(...t))}function on(...t){const e=t[t.length-1];return Object(Te.a)(e)?(t.pop(),i=>rn(t,i,e)):e=>rn(t,e)}const ln=["*",[["mat-option"],["ng-container"]]],cn=["*","mat-option, ng-container"];function hn(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 dn=["*"],un=new s.W("9.1.2"),mn=new s.v("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let pn=(()=>{class t{constructor(t,e){this._hasDoneGlobalChecks=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checksAreEnabled(){return Object(s.eb)()&&!this._isTestEnv()}_isTestEnv(){const t=this._window;return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document&&this._document.body&&"function"==typeof getComputedStyle))return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.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"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&un.full!==nn.full&&console.warn("The Angular Material version ("+un.full+") does not match the Angular CDK version ("+nn.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(Ki),s.Mc(mn,8))},imports:[[en],en]}),t})();function gn(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t)}}}function fn(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 bn(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=hi(t)}}}function _n(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 yn(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new Re.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 vn=new s.v("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(s.db)(s.z)}});class wn{constructor(){this._localeChanges=new Re.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 xn=new s.v("mat-date-formats");let kn;try{kn="undefined"!=typeof Intl}catch(RE){kn=!1}const Cn={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"]},Sn=An(31,t=>String(t+1)),Dn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},En=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function An(t,e){const i=Array(t);for(let n=0;n{class t extends wn{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(kn){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return An(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Cn[t]}getDateNames(){if(kn){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return An(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Sn}getDayOfWeekNames(t){if(kn){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return An(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Dn[t]}getYearName(t){if(kn){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(kn){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(En.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(vn,8),s.Mc(bi))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Pn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:wn,useClass:On}],imports:[[_i]]}),t})();const Rn={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 In=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:xn,useValue:Rn}],imports:[[Pn]]}),t})(),Tn=(()=>{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})(),Mn=(()=>{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 Fn(t,e){t.changes.pipe(on(t)).subscribe(({length:t})=>{Ln(e,"mat-2-line",!1),Ln(e,"mat-3-line",!1),Ln(e,"mat-multi-line",!1),2===t||3===t?Ln(e,`mat-${t}-line`,!0):t>3&&Ln(e,"mat-multi-line",!0)})}function Ln(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Nn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();class zn{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Bn={enterDuration:450,exitDuration:400},jn=Ci({passive:!0});class Vn{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=Qi(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({},Bn),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),r=t-n.left,o=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${r-a}px`,c.style.top=`${o-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 h=new zn(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}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({},Bn),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,jn)})}),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,jn)})}}const Un=new s.v("mat-ripple-global-options");let $n=(()=>{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 Vn(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(Un,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})(),Hn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,_i],pn]}),t})(),qn=(()=>{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})(),Gn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();class Yn{}const Wn=gn(Yn);let Qn=0,Kn=(()=>{class t extends Wn{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${Qn++}`}}return t.\u0275fac=function(e){return Xn(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:cn,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(s.Zc(ln),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 Xn=s.Fc(Kn);let Zn=0;class Jn{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ts=new s.v("MAT_OPTION_PARENT_COMPONENT");let es=(()=>{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-${Zn++}`,this.onSelectionChange=new s.s,this._stateChanges=new Re.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=hi(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||Ne(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 Jn(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(ts,8),s.yc(Kn,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:dn,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,hn,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,$n,qn],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 is(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 ss=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Hn,ye.c,Gn]]}),t})();const as=new s.v("mat-label-global-options"),rs=["mat-button",""],os=["*"],ls=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class cs{constructor(t){this._elementRef=t}}const hs=fn(gn(bn(cs)));let ds=(()=>{class t extends hs{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 ls)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(Wi),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($n,!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:rs,ngContentSelectors:os,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:[$n],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})(),us=(()=>{class t extends ds{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(Wi),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:rs,ngContentSelectors:os,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:[$n],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})(),ms=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Hn,pn],pn]}),t})();class ps{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Re.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 gs=(()=>{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 fs=i("DH7j"),bs=i("XoHu"),_s=i("Cfvw");function ys(...t){if(1===t.length){const e=t[0];if(Object(fs.a)(e))return vs(e,null);if(Object(bs.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return vs(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return vs(t=1===t.length&&Object(fs.a)(t[0])?t[0]:t,null).pipe(Object(ii.a)(t=>e(...t)))}return vs(t,null)}function vs(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,r=0;for(let o=0;o{c||(c=!0,r++),s[o]=t},error:t=>i.error(t),complete:()=>{a++,a!==n&&c||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}const ws=new s.v("NgValueAccessor"),xs={provide:ws,useExisting:Object(s.cb)(()=>ks),multi:!0};let ks=(()=>{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([xs])]}),t})();const Cs={provide:ws,useExisting:Object(s.cb)(()=>Ds),multi:!0},Ss=new s.v("CompositionEventMode");let Ds=(()=>{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(Ss,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([Cs])]}),t})(),Es=(()=>{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})(),As=(()=>{class t extends Es{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Os(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const Os=s.Fc(As);function Ps(){throw new Error("unimplemented")}class Rs extends Es{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Ps()}get asyncValidator(){return Ps()}}class Is{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 Ts=(()=>{class t extends Is{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Rs,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})(),Ms=(()=>{class t extends Is{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,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 Fs(t){return null==t||0===t.length}const Ls=new s.v("NgValidators"),Ns=new s.v("NgAsyncValidators"),zs=/^(?=.{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 Bs{static min(t){return e=>{if(Fs(e.value)||Fs(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(Fs(e.value)||Fs(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Fs(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Fs(t.value)?null:zs.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(Fs(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 Bs.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(Fs(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(js);return 0==e.length?null:function(t){return Us(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(js);return 0==e.length?null:function(t){return ys(function(t,e){return e.map(e=>e(t))}(t,e).map(Vs)).pipe(Object(ii.a)(Us))}}}function js(t){return null!=t}function Vs(t){const e=Object(s.Nb)(t)?Object(_s.a)(t):t;if(!Object(s.Mb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Us(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 $s(t){return t.validate?e=>t.validate(e):t}function Hs(t){return t.validate?e=>t.validate(e):t}const qs={provide:ws,useExisting:Object(s.cb)(()=>Gs),multi:!0};let Gs=(()=>{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([qs])]}),t})();const Ys={provide:ws,useExisting:Object(s.cb)(()=>Qs),multi:!0};let Ws=(()=>{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})(),Qs=(()=>{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(Rs),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(Ws),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([Ys])]}),t})();const Ks={provide:ws,useExisting:Object(s.cb)(()=>Xs),multi:!0};let Xs=(()=>{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([Ks])]}),t})();const Zs='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Js='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ta='\n
\n
\n \n
\n
';class ea{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 ${Zs}`)}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 ${Js}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ta}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${Zs}`)}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 ${Js}`)}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 ia={provide:ws,useExisting:Object(s.cb)(()=>sa),multi:!0};function na(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let sa=(()=>{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=na(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([ia])]}),t})(),aa=(()=>{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(na(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(sa,9))},t.\u0275dir=s.tc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const ra={provide:ws,useExisting:Object(s.cb)(()=>la),multi:!0};function oa(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let la=(()=>{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(oa(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(oa(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(la,9))},t.\u0275dir=s.tc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function ha(t,e){return[...e.path,t]}function da(t,e){t||ga(e,"Cannot find control with"),e.valueAccessor||ga(e,"No value accessor for form control with"),t.validator=Bs.compose([t.validator,e.validator]),t.asyncValidator=Bs.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&&ua(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&&ua(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 ua(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ma(t,e){null==t&&ga(e,"Cannot find control with"),t.validator=Bs.compose([t.validator,e.validator]),t.asyncValidator=Bs.composeAsync([t.asyncValidator,e.asyncValidator])}function pa(t){return ga(t,"There is no FormControl instance attached to form control element with")}function ga(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 fa(t){return null!=t?Bs.compose(t.map($s)):null}function ba(t){return null!=t?Bs.composeAsync(t.map(Hs)):null}function _a(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(s.Ob)(e,i.currentValue)}const ya=[ks,Xs,Gs,sa,la,Qs];function va(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function wa(t,e){if(!e)return null;Array.isArray(e)||ga(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===Ds?i=e:(a=e,ya.some(t=>a.constructor===t)?(n&&ga(t,"More than one built-in value accessor matches form control with"),n=e):(s&&ga(t,"More than one custom value accessor matches form control with"),s=e))}),s||n||i||(ga(t,"No valid value accessor for form control with"),null)}function xa(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function ka(t,e,i,n){Object(s.eb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(ea.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Ca(t){const e=Da(t)?t.validators:t;return Array.isArray(e)?fa(e):e||null}function Sa(t,e){const i=Da(e)?e.asyncValidators:t;return Array.isArray(i)?ba(i):i||null}function Da(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ea{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=Ca(t)}setAsyncValidators(t){this.asyncValidator=Sa(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=Vs(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 Oa?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Pa&&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){Da(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Aa extends Ea{constructor(t=null,e,i){super(Ca(e),Sa(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 Oa extends Ea{constructor(t,e,i){super(Ca(e),Sa(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 Aa?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 Pa extends Ea{constructor(t,e,i){super(Ca(e),Sa(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 Aa?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 Ra={provide:As,useExisting:Object(s.cb)(()=>Ta)},Ia=(()=>Promise.resolve(null))();let Ta=(()=>{class t extends As{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.s,this.form=new Oa({},fa(t),ba(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ia.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),da(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ia.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),xa(this._directives,t)})}addFormGroup(t){Ia.then(()=>{const e=this._findContainer(t.path),i=new Oa({});ma(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ia.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ia.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,va(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(Ls,10),s.yc(Ns,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([Ra]),s.hc]}),t})(),Ma=(()=>{class t extends As{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ha(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._validators)}get asyncValidator(){return ba(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Fa(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const Fa=s.Fc(Ma);class La{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 ${Zs}\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 ${Js}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ta}`)}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 ${Js}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ta}`)}}const Na={provide:As,useExisting:Object(s.cb)(()=>za)};let za=(()=>{class t extends Ma{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof Ta||La.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,5),s.yc(Ls,10),s.yc(Ns,10))},t.\u0275dir=s.tc({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[s.jc([Na]),s.hc]}),t})();const Ba={provide:Rs,useExisting:Object(s.cb)(()=>Va)},ja=(()=>Promise.resolve(null))();let Va=(()=>{class t extends Rs{constructor(t,e,i,n){super(),this.control=new Aa,this._registered=!1,this.update=new s.s,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=wa(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),_a(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ha(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(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(){da(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof za)&&this._parent instanceof Ma?La.formGroupNameException():this._parent instanceof za||this._parent instanceof Ta||La.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||La.missingNameException()}_updateValue(t){ja.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;ja.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(As,9),s.yc(Ls,10),s.yc(Ns,10),s.yc(ws,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([Ba]),s.hc,s.ic]}),t})(),Ua=(()=>{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 $a=new s.v("NgModelWithFormControlWarning"),Ha={provide:Rs,useExisting:Object(s.cb)(()=>qa)};let qa=(()=>{class t extends Rs{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=wa(this,i)}set isDisabled(t){ea.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(da(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),_a(e,this.viewModel)&&(ka("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(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(Ls,10),s.yc(Ns,10),s.yc(ws,10),s.yc($a,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([Ha]),s.hc,s.ic]}),t._ngModelWarningSentOnce=!1,t})();const Ga={provide:As,useExisting:Object(s.cb)(()=>Ya)};let Ya=(()=>{class t extends As{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 da(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){xa(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ma(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);ma(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,va(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(()=>pa(e)),e.valueAccessor.registerOnTouched(()=>pa(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&&da(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=fa(this._validators);this.form.validator=Bs.compose([this.form.validator,t]);const e=ba(this._asyncValidators);this.form.asyncValidator=Bs.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||ea.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ls,10),s.yc(Ns,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([Ga]),s.hc,s.ic]}),t})();const Wa={provide:As,useExisting:Object(s.cb)(()=>Qa)};let Qa=(()=>{class t extends Ma{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){Za(this._parent)&&ea.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,13),s.yc(Ls,10),s.yc(Ns,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s.jc([Wa]),s.hc]}),t})();const Ka={provide:As,useExisting:Object(s.cb)(()=>Xa)};let Xa=(()=>{class t extends As{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 ha(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return fa(this._validators)}get asyncValidator(){return ba(this._asyncValidators)}_checkParentType(){Za(this._parent)&&ea.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,13),s.yc(Ls,10),s.yc(Ns,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s.jc([Ka]),s.hc]}),t})();function Za(t){return!(t instanceof Qa||t instanceof Ya||t instanceof Xa)}const Ja={provide:Rs,useExisting:Object(s.cb)(()=>tr)};let tr=(()=>{class t extends Rs{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=wa(this,n)}set isDisabled(t){ea.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),_a(e,this.viewModel)&&(ka("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 ha(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Qa)&&this._parent instanceof Ma?ea.ngModelGroupException():this._parent instanceof Qa||this._parent instanceof Ya||this._parent instanceof Xa||ea.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(As,13),s.yc(Ls,10),s.yc(Ns,10),s.yc(ws,10),s.yc($a,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([Ja]),s.hc,s.ic]}),t._ngModelWarningSentOnce=!1,t})();const er={provide:Ls,useExisting:Object(s.cb)(()=>nr),multi:!0},ir={provide:Ls,useExisting:Object(s.cb)(()=>sr),multi:!0};let nr=(()=>{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?Bs.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([er])]}),t})(),sr=(()=>{class t extends nr{validate(t){return this.required?Bs.requiredTrue(t):null}}return t.\u0275fac=function(e){return ar(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([ir]),s.hc]}),t})();const ar=s.Fc(sr),rr={provide:Ls,useExisting:Object(s.cb)(()=>or),multi:!0};let or=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?Bs.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([rr])]}),t})();const lr={provide:Ls,useExisting:Object(s.cb)(()=>cr),multi:!0};let cr=(()=>{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=Bs.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([lr]),s.ic]}),t})();const hr={provide:Ls,useExisting:Object(s.cb)(()=>dr),multi:!0};let dr=(()=>{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=Bs.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([hr]),s.ic]}),t})();const ur={provide:Ls,useExisting:Object(s.cb)(()=>mr),multi:!0};let mr=(()=>{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=Bs.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([ur]),s.ic]}),t})(),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{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 Oa(i,{asyncValidators:s,updateOn:a,validators:n})}control(t,e,i){return new Aa(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Pa(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 Aa||t instanceof Oa||t instanceof Pa?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})(),fr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ws],imports:[pr]}),t})(),br=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$a,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[gr,Ws],imports:[pr]}),t})();const _r=["button"],yr=["*"],vr=new s.v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),wr={provide:ws,useExisting:Object(s.cb)(()=>Sr),multi:!0};class xr{}let kr=0;class Cr{constructor(t,e){this.source=t,this.value=e}}let Sr=(()=>{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-${kr++}`,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=hi(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=hi(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new ps(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 Cr(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(vr,8))},t.\u0275dir=s.tc({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ar,!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([wr,{provide:xr,useExisting:t}])]}),t})();class Dr{}const Er=bn(Dr);let Ar=(()=>{class t extends Er{constructor(t,e,i,n,a,r){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 o=Number(a);this.tabIndex=o||0===o?o:null,this.buttonToggleGroup=t,this.appearance=r&&r.appearance?r.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=hi(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=hi(t)}ngOnInit(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||`mat-button-toggle-${kr++}`,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 Cr(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Sr,8),s.yc(s.j),s.yc(s.q),s.yc(Wi),s.Nc("tabindex"),s.yc(vr,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&s.zd(_r,!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:yr,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:[$n],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})(),Or=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,Hn],pn]}),t})();const Pr=["*",[["mat-card-footer"]]],Rr=["*","mat-card-footer"],Ir=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Tr=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Mr=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Fr=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let Lr=(()=>{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})(),Nr=(()=>{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})(),zr=(()=>{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})(),Br=(()=>{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})(),jr=(()=>{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})(),Vr=(()=>{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})(),Ur=(()=>{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})(),$r=(()=>{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})(),Hr=(()=>{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})(),qr=(()=>{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})(),Gr=(()=>{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})(),Yr=(()=>{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:Rr,decls:2,vars:0,template:function(t,e){1&t&&(s.Zc(Pr),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})(),Wr=(()=>{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:Tr,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.Zc(Ir),s.Yc(0),s.Dc(1,"div",0),s.Yc(2,1),s.Cc(),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),Qr=(()=>{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:Fr,decls:4,vars:0,template:function(t,e){1&t&&(s.Zc(Mr),s.Dc(0,"div"),s.Yc(1),s.Cc(),s.Yc(2,1),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),Kr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const Xr=["input"],Zr=function(){return{enterDuration:150}},Jr=["*"],to=new s.v("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),eo=new s.v("mat-checkbox-click-action");let io=0;const no={provide:ws,useExisting:Object(s.cb)(()=>oo),multi:!0};class so{}class ao{constructor(t){this._elementRef=t}}const ro=_n(fn(bn(gn(ao))));let oo=(()=>{class t extends ro{constructor(t,e,i,n,a,r,o,l){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=r,this._animationMode=o,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++io}`,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=hi(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=hi(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=hi(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 so;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(Wi),s.yc(s.F),s.Nc("tabindex"),s.yc(eo,8),s.yc(Ae,8),s.yc(to,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(s.zd(Xr,!0),s.zd($n,!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([no]),s.hc],ngContentSelectors:Jr,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,Zr))}},directives:[$n,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 lo={provide:Ls,useExisting:Object(s.cb)(()=>co),multi:!0};let co=(()=>{class t extends sr{}return t.\u0275fac=function(e){return ho(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.jc([lo]),s.hc]}),t})();const ho=s.Fc(co);let uo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),mo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Hn,pn,Pi,uo],pn,uo]}),t})();function po(t){return new si.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(_s.a)(i):ri()).subscribe(e)})}var go=i("VRyK");function fo(t,e,i,n){return Object(je.a)(i)&&(n=i,i=void 0),n?fo(t,e,i).pipe(Object(ii.a)(t=>Object(fs.a)(t)?n(...t):n(t))):new si.a(n=>{!function t(e,i,n,s,a){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,a),r=()=>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),r=()=>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),r=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let r=0,o=e.length;r1?Array.prototype.slice.call(arguments):t)}),n,i)})}class bo 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 _o extends Ye{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(++nfunction(t){const e=wo[t];e&&e()}(e)),e},clearImmediate(t){delete wo[t]}};class ko 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=xo.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&&(xo.clearImmediate(e),t.scheduled=void 0)}}class Co extends Ye{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 Eo(t,e))}class Eo{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Ao(t,this.compare,this.keySelector))}}class Ao extends ze.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 Oo=i("l7GE"),Po=i("ZUHj");class Ro{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Io(t,this.durationSelector))}}class Io extends Oo.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(Po.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 To(t){return!Object(fs.a)(t)&&t-parseFloat(t)+1>=0}function Mo(t=0,e,i){let n=-1;return To(e)?n=Number(e)<1?1:Number(e):Object(Te.a)(e)&&(i=e),Object(Te.a)(i)||(i=We),new si.a(e=>{const s=To(t)?t:+t-i.now();return i.schedule(Fo,s,{index:0,period:n,subscriber:e})})}function Fo(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 Lo(t,e=We){return i=()=>Mo(t,e),function(t){return t.lift(new Ro(i))};var i}function No(t){return e=>e.lift(new zo(t))}class zo{constructor(t){this.notifier=t}call(t,e){const i=new Bo(t),n=Object(Po.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Bo extends Oo.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var jo=i("51Dv");function Vo(t,e){return"function"==typeof e?i=>i.pipe(Vo((i,n)=>Object(_s.a)(t(i,n)).pipe(Object(ii.a)((t,s)=>e(i,t,n,s))))):e=>e.lift(new Uo(t))}class Uo{constructor(t){this.project=t}call(t,e){return e.subscribe(new $o(t,this.project))}}class $o extends Oo.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 jo.a(this,void 0,void 0);this.destination.add(s),this.innerSubscription=Object(Po.a)(this,t,e,i,s)}_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 Ho 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 qo extends Ye{}const Go=new qo(Ho);function Yo(t,e){return new si.a(e?i=>e.schedule(Wo,0,{error:t,subscriber:i}):e=>e.error(t))}function Wo({error:t,subscriber:e}){e.error(t)}let Qo=(()=>{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 Yo(this.error);case"C":return ri()}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 Ko extends ze.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(Ko.dispatch,this.delay,new Xo(t,this.destination)))}_next(t){this.scheduleMessage(Qo.createNext(t))}_error(t){this.scheduleMessage(Qo.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Qo.createComplete()),this.unsubscribe()}}class Xo{constructor(t,e){this.notification=t,this.destination=e}}var Zo=i("9ppp"),Jo=i("Ylt2");class tl extends Re.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 el(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 Zo.a;if(this.isStopped||this.hasError?a=Ie.a.EMPTY:(this.observers.push(t),a=new Jo.a(this,t)),n&&t.add(t=new Ko(t,n)),e)for(let r=0;re&&(a=Math.max(a,s-e)),a>0&&n.splice(0,a),n}}class el{constructor(t,e){this.time=t,this.value=e}}let il=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._scrolled=new Re.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}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(Lo(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}_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(()=>fo(window.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))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(s.F),Object(s.Mc)(bi))},token:t,providedIn:"root"}),t})(),nl=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new Re.a,this._elementScrolled=new si.a(t=>this.ngZone.runOutsideAngular(()=>fo(this.elementRef.nativeElement,"scroll").pipe(No(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(il),s.yc(s.F),s.yc(Ji,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),sl=(()=>{class t{constructor(t,e){this._platform=t,e.runOutsideAngular(()=>{this._change=t.isBrowser?Object(go.a)(fo(window,"resize"),fo(window,"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=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Lo(t)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}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})(),al=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[en,_i],en]}),t})();function rl(){throw Error("Host already has a portal attached")}class ol{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&rl(),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 ll extends ol{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class cl extends ol{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 hl extends ol{constructor(t){super(),this.element=t instanceof s.q?t.nativeElement:t}}class dl{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()&&rl(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof ll?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof cl?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof hl?(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 ul extends dl{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 ml=(()=>{class t extends dl{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})(),pl=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();class gl{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 fl{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 bl(){return Error("Scroll strategy has already been attached.")}class _l{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 bl();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 yl{enable(){}disable(){}attach(){}}function vl(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function wl(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class xl{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 bl();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();vl(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 kl=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new yl,this.close=t=>new _l(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new fl(this._viewportRuler,this._document),this.reposition=t=>new xl(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(il),s.Mc(sl),s.Mc(s.F),s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(il),Object(s.Mc)(sl),Object(s.Mc)(s.F),Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})();class Cl{constructor(t){if(this.scrollStrategy=new yl,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 Sl{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 Dl{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function El(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function Al(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let Ol=(()=>{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 Pl=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Rl=(()=>{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||Pl){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 Re.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(oi(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(No(Object(go.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 Tl=/([A-Za-z%]+)$/;class Ml{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 Re.a,this._resizeSubscription=Ie.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 r=this._getOriginPoint(t,a),o=this._getOverlayPoint(r,e,a),l=this._getOverlayFit(o,e,i,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,r);this._canFitWithFlexibleDimensions(l,o,i)?n.push({position:a,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,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&&Fl(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,r=this._getOffset(n,"x"),o=this._getOffset(n,"y");r&&(s+=r),o&&(a+=o);let l=0-a,c=a+e.height-i.height,h=this._subtractOverflows(e.width,0-s,s+e.width-i.width),d=this._subtractOverflows(e.height,l,c),u=h*d;return{visibleArea:u,isCompletelyWithinViewport:e.width*e.height===u,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,a=Ll(this._overlayRef.getConfig().minHeight),r=Ll(this._overlayRef.getConfig().minWidth),o=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=a&&a<=n)&&o}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),r=Math.max(n.top-i.top-t.y,0),o=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?o||-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,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,o=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;o=2*e,l=t.x-e,o>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:a,left:l,bottom:r,right:c,width:o,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,Fl(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Fl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Fl(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();Fl(i,this._getExactOverlayY(e,t,n)),Fl(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",o=this._getOffset(e,"x"),l=this._getOffset(e,"y");o&&(r+=`translateX(${o}px) `),l&&(r+=`translateY(${l}px)`),i.transform=r.trim(),a.maxHeight&&(n?i.maxHeight=mi(a.maxHeight):s&&(i.maxHeight="")),a.maxWidth&&(n?i.maxWidth=mi(a.maxWidth):s&&(i.maxWidth="")),Fl(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:wl(t,i),isOriginOutsideView:vl(t,i),isOverlayClipped:wl(e,i),isOverlayOutsideView:vl(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=>{Al("originX",t.originX),El("originY",t.originY),Al("overlayX",t.overlayX),El("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 HTMLElement)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 Fl(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Ll(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Tl);return i&&"px"!==i?null:parseFloat(e)}return t||null}class Nl{constructor(t,e,i,n,s,a,r){this._preferredPositions=[],this._positionStrategy=new Ml(i,n,s,a,r).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 Sl(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 zl{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:r}=i,o=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=o?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,o?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 Bl=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new zl}connectedTo(t,e,i){return new Nl(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Ml(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(sl),s.Mc(ye.e),s.Mc(bi),s.Mc(Rl))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(sl),Object(s.Mc)(ye.e),Object(s.Mc)(bi),Object(s.Mc)(Rl))},token:t,providedIn:"root"}),t})(),jl=0,Vl=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=a,this._ngZone=r,this._document=o,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Cl(t);return s.direction=s.direction||this._directionality.value,new Il(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-${jl++}`,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 ul(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(kl),s.Mc(Rl),s.Mc(s.n),s.Mc(Bl),s.Mc(Ol),s.Mc(s.w),s.Mc(s.F),s.Mc(ye.e),s.Mc(Ji),s.Mc(ye.n,8))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Ul=[{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"}],$l=new s.v("cdk-connected-overlay-scroll-strategy");let Hl=(()=>{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})(),ql=(()=>{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=Ie.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 cl(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=hi(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=hi(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=hi(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=hi(t)}get push(){return this._push}set push(t){this._push=hi(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=Ul),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||Ne(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Cl({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(Vl),s.yc(s.U),s.yc(s.X),s.yc($l),s.yc(Ji,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 Gl={provide:$l,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Yl=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Vl,Gl],imports:[[en,pl,al],al]}),t})();function Wl(t,e=We){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new Ql(n,e))}class Ql{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Kl(t,this.delay,this.scheduler))}}class Kl extends ze.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(Kl.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Xl(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Qo.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Qo.createComplete()),this.unsubscribe()}}class Xl{constructor(t,e){this.time=t,this.notification=e}}const Zl=["underline"],Jl=["connectionContainer"],tc=["inputContainer"],ec=["label"];function ic(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 nc(t,e){1&t&&(s.Dc(0,"div",19),s.Yc(1,1),s.Cc())}function sc(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 ac(t,e){1&t&&s.Yc(0,3,["*ngSwitchCase","true"])}function rc(t,e){1&t&&(s.Dc(0,"span",23),s.vd(1," *"),s.Cc())}function oc(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,sc,4,1,"ng-container",12),s.td(3,ac,1,0,void 0,12),s.td(4,rc,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 lc(t,e){1&t&&(s.Dc(0,"div",24),s.Yc(1,4),s.Cc())}function cc(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 hc(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 dc(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 uc(t,e){if(1&t&&(s.Dc(0,"div",28),s.td(1,dc,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 mc=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pc=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let gc=0,fc=(()=>{class t{constructor(){this.id=`mat-error-${gc++}`}}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 bc={transitionMessages:r("transitionMessages",[d("enter",h({opacity:1,transform:"translateY(0%)"})),m("void => enter",[h({opacity:0,transform:"translateY(-100%)"}),o("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t}),t})();function yc(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let vc=0,wc=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${vc++}`}}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})(),xc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-label"]]}),t})(),kc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-placeholder"]]}),t})(),Cc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","matPrefix",""]]}),t})(),Sc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","matSuffix",""]]}),t})(),Dc=0;class Ec{constructor(t){this._elementRef=t}}const Ac=fn(Ec,"primary"),Oc=new s.v("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Pc=(()=>{class t extends Ac{constructor(t,e,i,n,s,a,r,o){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=a,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Re.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Dc++}`,this._labelId=`mat-form-field-label-${Dc++}`,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,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=hi(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(on(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(No(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(No(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(go.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(on(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(on(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(No(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._showAlwaysAnimate=!0,fo(this._label.nativeElement,"transitionend").pipe(oi(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 yc("start");t=i}else if("end"===i.align){if(e)throw yc("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),r=this._getStartEnd(t.children[0].getBoundingClientRect());let o=0;for(const e of t.children)o+=e.offsetWidth;e=r-a-5,i=o>0?.75*o+10:0}for(let r=0;r{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,Pi]]}),t})();const Ic=["panel"];function Tc(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 Mc=["*"];let Fc=0;class Lc{constructor(t,e){this.source=t,this.option=e}}class Nc{}const zc=bn(Nc),Bc=new s.v("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let jc=(()=>{class t extends zc{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Ie.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-${Fc++}`,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=hi(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 Lc(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(Bc))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,es,!0),s.qc(i,Kn,!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(Ic,!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:ts,useExisting:t}]),s.hc],ngContentSelectors:Mc,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,Tc,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})(),Vc=(()=>{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 Uc=new s.v("mat-autocomplete-scroll-strategy"),$c={provide:Uc,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Hc={provide:ws,useExisting:Object(s.cb)(()=>qc),multi:!0};let qc=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=o,this._document=l,this._viewportRuler=c,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ie.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Re.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=po(()=>this.autocomplete&&this.autocomplete.options?Object(go.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(oi(1),Vo(()=>this.optionSelections))),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=hi(t)}ngAfterViewInit(){if("undefined"!=typeof window&&(this._zone.runOutsideAngular(()=>{window.addEventListener("blur",this._windowBlurHandler)}),Di())){const t=this._element.nativeElement,e=t.getRootNode?t.getRootNode():null;this._isInsideShadowRoot=e instanceof window.ShadowRoot}}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){"undefined"!=typeof window&&window.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(go.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 Jn?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(go.a)(fo(this._document,"click"),fo(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=is(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=ns(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(oi(1)),e=this.autocomplete.options.changes.pipe(Ve(()=>this._positionStrategy.reapplyLastPosition()),Wl(0));return Object(go.a)(t,e).pipe(Vo(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),oi(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 cl(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 Cl({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}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Vl),s.yc(s.X),s.yc(s.F),s.yc(s.j),s.yc(Uc),s.yc(Ji,8),s.yc(Pc,9),s.yc(ye.e,8),s.yc(sl))},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: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([Hc]),s.ic]}),t})(),Gc=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[$c],imports:[[ss,Yl,pn,ye.c],ss,pn]}),t})();function Yc(t,e){}class Wc{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 Qc={dialogContainer:r("dialogContainer",[d("void, exit",h({opacity:0,transform:"scale(0.7)"})),d("enter",h({transform:"none"})),m("* => enter",o("150ms cubic-bezier(0, 0, 0.2, 1)",h({transform:"none",opacity:1}))),m("* => void, * => exit",o("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",h({opacity:0})))])};function Kc(){throw Error("Attempting to attach dialog content after content is already attached")}let Xc=(()=>{class t extends dl{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()&&Kc(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&Kc(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&Kc(),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(Wc))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&s.rd(ml,!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,Yc,0,0,"ng-template",0)},directives:[ml],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:[Qc.dialogContainer]}}),t})(),Zc=0;class Jc{constructor(t,e,i=`mat-dialog-${Zc++}`){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Re.a,this._afterClosed=new Re.a,this._beforeClosed=new Re.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Je(t=>"done"===t.phaseName&&"enter"===t.toState),oi(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Je(t=>"done"===t.phaseName&&"exit"===t.toState),oi(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&&!Ne(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Je(t=>"start"===t.phaseName),oi(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 th=new s.v("MatDialogData"),eh=new s.v("mat-dialog-default-options"),ih=new s.v("mat-dialog-scroll-strategy"),nh={provide:ih,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.block()}};let sh=(()=>{class t{constructor(t,e,i,n,s,a,r){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=a,this._overlayContainer=r,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Re.a,this._afterOpenedAtThisLevel=new Re.a,this._ariaHiddenElements=new Map,this.afterAllClosed=po(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(on(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 Wc)).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 Cl({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:Wc,useValue:e}]}),n=new ll(Xc,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new Jc(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe(()=>{a.disableClose||a.close()}),t instanceof s.U)e.attachTemplatePortal(new cl(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),s=e.attachComponentPortal(new ll(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:Xc,useValue:i},{provide:th,useValue:t.data},{provide:Jc,useValue:e}];return!t.direction||n&&n.get(Ji,null)||a.push({provide:Ji,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(Vl),s.Mc(s.w),s.Mc(ye.n,8),s.Mc(eh,8),s.Mc(ih),s.Mc(t,12),s.Mc(Rl))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),ah=0,rh=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=hh(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(Jc,8),s.yc(s.q),s.yc(sh))},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})(),oh=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id=`mat-dialog-title-${ah++}`}ngOnInit(){this._dialogRef||(this._dialogRef=hh(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(Jc,8),s.yc(s.q),s.yc(sh))},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})(),lh=(()=>{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})(),ch=(()=>{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 hh(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 dh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[sh,nh],imports:[[Yl,pl,pn],pn]}),t})(),uh=0,mh=(()=>{class t{constructor(){this._stateChanges=new Re.a,this._openCloseAllActions=new Re.a,this.id=`cdk-accordion-${uh++}`,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=hi(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})(),ph=0,gh=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Ie.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-${ph++}`,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=hi(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=hi(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(mh,12),s.yc(s.j),s.yc(gs))},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:mh,useValue:void 0}])]}),t})(),fh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const bh=["body"];function _h(t,e){}const yh=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],vh=["mat-expansion-panel-header","*","mat-action-row"],wh=function(t,e){return{collapsedHeight:t,expandedHeight:e}},xh=function(t,e){return{value:t,params:e}};function kh(t,e){if(1&t&&s.zc(0,"span",2),2&t){const t=s.Uc();s.ad("@indicatorRotate",t._getExpandedState())}}const Ch=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Sh=["mat-panel-title","mat-panel-description","*"],Dh=new s.v("MAT_ACCORDION"),Eh={indicatorRotate:r("indicatorRotate",[d("collapsed, void",h({transform:"rotate(0deg)"})),d("expanded",h({transform:"rotate(180deg)"})),m("expanded <=> collapsed, void => collapsed",o("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:r("expansionHeight",[d("collapsed, void",h({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),d("expanded",h({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),m("expanded <=> collapsed, void => collapsed",l([g("@indicatorRotate",p(),{optional:!0}),o("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:r("bodyExpansion",[d("collapsed, void",h({height:"0px",visibility:"hidden"})),d("expanded",h({height:"*",visibility:"visible"})),m("expanded <=> collapsed, void => collapsed",o("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let Ah=(()=>{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})(),Oh=0;const Ph=new s.v("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Rh=(()=>{class t extends gh{constructor(t,e,i,n,a,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new s.s,this.afterCollapse=new s.s,this._inputChanges=new Re.a,this._headerId=`mat-expansion-panel-header-${Oh++}`,this._bodyAnimationDone=new Re.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Do((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())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=hi(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(on(null),Je(()=>this.expanded&&!this._portal),oi(1)).subscribe(()=>{this._portal=new cl(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(Dh,12),s.yc(s.j),s.yc(gs),s.yc(s.X),s.yc(ye.e),s.yc(Ae,8),s.yc(Ph,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ah,!0),2&t&&s.gd(n=s.Rc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&s.zd(bh,!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:Dh,useValue:void 0}]),s.hc,s.ic],ngContentSelectors:vh,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(yh),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,_h,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:[ml],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:[Eh.bodyExpansion]},changeDetection:0}),t})(),Ih=(()=>{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})(),Th=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=Ie.a.EMPTY,this._animationsDisabled=!0;const a=t.accordion?t.accordion._stateChanges.pipe(Je(t=>!(!t.hideToggle&&!t.togglePosition))):ai;this._parentChangeSubscription=Object(go.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:Ne(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(Rh,1),s.yc(s.q),s.yc(Wi),s.yc(s.j),s.yc(Ph,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,xh,e._getExpandedState(),s.ed(13,wh,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:Sh,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(Ch),s.Dc(0,"span",0),s.Yc(1),s.Yc(2,1),s.Yc(3,2),s.Cc(),s.td(4,kh,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:[Eh.indicatorRotate,Eh.expansionHeaderHeight]},changeDetection:0}),t})(),Mh=(()=>{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})(),Fh=(()=>{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})(),Lh=(()=>{class t extends mh{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=hi(t)}ngAfterContentInit(){this._headers.changes.pipe(on(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new zi(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;36===e?Ne(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?Ne(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return Nh(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Th,!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:Dh,useExisting:t}]),s.hc]}),t})();const Nh=s.Fc(Lh);let zh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,fh,pl]]}),t})();const Bh=["*"],jh=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],Vh=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Uh=new s.v("MAT_GRID_LIST");let $h=(()=>{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(di(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(di(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(Uh,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:Bh,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})(),Hh=(()=>{class t{constructor(t){this._element=t}ngAfterContentInit(){Fn(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,Mn,!0),2&t&&s.gd(n=s.Rc())&&(e._lines=n)},ngContentSelectors:Vh,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(s.Zc(jh),s.Yc(0),s.Dc(1,"div",0),s.Yc(2,1),s.Cc(),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),qh=(()=>{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})(),Gh=(()=>{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})(),Yh=(()=>{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 Wh{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 Qh(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 Jh extends Xh{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",ed(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",ed(`${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 td extends Xh{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",ed(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function ed(t){return`calc(${t})`}function id(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let nd=(()=>{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(di(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 td:t&&t.indexOf(":")>-1?new Jh(t):new Zh(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new Wh);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(Ji,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,$h,!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:Uh,useExisting:t}])],ngContentSelectors:Bh,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})(),sd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Nn,pn],Nn,pn]}),t})();function ad(t){return function(e){const i=new rd(t),n=e.lift(i);return i.caught=n}}class rd{constructor(t){this.selector=t}call(t,e){return e.subscribe(new od(t,this.selector,this.caught))}}class od extends Oo.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 jo.a(this,void 0,void 0);this.add(n),Object(Po.a)(this,i,void 0,void 0,n)}}}function ld(t){return e=>e.lift(new cd(t))}class cd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new hd(t,this.callback))}}class hd extends ze.a{constructor(t,e){super(t),this.add(new Ie.a(e))}}var dd=i("w1tV"),ud=i("5+tZ");function md(t,e){return Object(ud.a)(t,e,1)}class pd{}class gd{}class fd{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 fd?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 fd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof fd?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 bd{encodeKey(t){return _d(t)}encodeValue(t){return _d(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function _d(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 yd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new bd,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))],r=i.get(s)||[];r.push(a),i.set(s,r)}),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 yd({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 vd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function wd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function xd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class kd{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 fd),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]),o)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new kd(e,i,s,{params:l,headers:o,reportProgress:r,responseType:n,withCredentials:a})}}const Cd=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 Sd{constructor(t,e=200,i="OK"){this.headers=t.headers||new fd,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 Dd extends Sd{constructor(t={}){super(t),this.type=Cd.ResponseHeader}clone(t={}){return new Dd({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 Ed extends Sd{constructor(t={}){super(t),this.type=Cd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ed({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 Ad extends Sd{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 Od(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Pd=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof kd)n=t;else{let s=void 0;s=i.headers instanceof fd?i.headers:new fd(i.headers);let a=void 0;i.params&&(a=i.params instanceof yd?i.params:new yd({fromObject:i.params})),n=new kd(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(md(t=>this.handler.handle(t)));if(t instanceof kd||"events"===i.observe)return s;const a=s.pipe(Je(t=>t instanceof Ed));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 yd).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,Od(i,e))}post(t,e,i={}){return this.request("POST",t,Od(i,e))}put(t,e,i={}){return this.request("PUT",t,Od(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(pd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class Rd{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Id=new s.v("HTTP_INTERCEPTORS");let Td=(()=>{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 Md=/^\)\]\}',?\n/;class Fd{}let Ld=(()=>{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})(),Nd=(()=>{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 fd(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 Dd({headers:a,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:o}=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(Md,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Ed({body:l,headers:n,status:s,statusText:r,url:o||void 0})),e.complete()):e.error(new Ad({error:l,headers:n,status:s,statusText:r,url:o||void 0}))},o=t=>{const{url:n}=a(),s=new Ad({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:Cd.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},h=t=>{let i={type:Cd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",o),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:Cd.Sent}),()=>{i.removeEventListener("error",o),i.removeEventListener("load",r),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Fd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const zd=new s.v("XSRF_COOKIE_NAME"),Bd=new s.v("XSRF_HEADER_NAME");class jd{}let Vd=(()=>{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(zd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Ud=(()=>{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(jd),s.Mc(Bd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),$d=(()=>{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(Id,[]);this.chain=t.reduceRight((t,e)=>new Rd(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(gd),s.Mc(s.w))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Hd=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Ud,useClass:Td}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:zd,useValue:e.cookieName}:[],e.headerName?{provide:Bd,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ud,{provide:Id,useExisting:Ud,multi:!0},{provide:jd,useClass:Vd},{provide:zd,useValue:"XSRF-TOKEN"},{provide:Bd,useValue:"X-XSRF-TOKEN"}]}),t})(),qd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Pd,{provide:pd,useClass:$d},Nd,{provide:gd,useExisting:Nd},Ld,{provide:Fd,useExisting:Ld}],imports:[[Hd.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const Gd=["*"];function Yd(t){return Error(`Unable to find icon with the name "${t}"`)}function Wd(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Qd(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class Kd{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let Xd=(()=>{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 Kd(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const a=this._sanitizer.sanitize(s.P.HTML,i);if(!a)throw Qd(i);const r=this._createSvgElementForSingleIcon(a,n);return this._addSvgIconConfig(t,e,new Kd(r,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 Kd(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.P.HTML,e);if(!n)throw Qd(e);const a=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new Kd(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 Wd(t);const i=this._cachedIconsByUrl.get(e);return i?Le(Zd(i)):this._loadSvgIconFromConfig(new Kd(t)).pipe(Ve(t=>this._cachedIconsByUrl.set(e,t)),Object(ii.a)(t=>Zd(t)))}getNamedSvgIcon(t,e=""){const i=Jd(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):Yo(Yd(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Le(Zd(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Ve(e=>t.svgElement=e),Object(ii.a)(t=>Zd(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Le(i):ys(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(ad(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 Yd(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(dd.a)());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Jd(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(Pd,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)(Pd,8),Object(s.Mc)(n.b),Object(s.Mc)(ye.e,8),Object(s.Mc)(s.r,8))},token:t,providedIn:"root"}),t})();function Zd(t){return t.cloneNode(!0)}function Jd(t,e){return t+":"+e}class tu{constructor(t){this._elementRef=t}}const eu=fn(tu),iu=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:""}}}),nu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],su=nu.map(t=>`[${t}]`).join(", "),au=/^url\(['"]?#(.*?)['"]?\)$/;let ru=(()=>{class t extends eu{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=hi(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(oi(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(su),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],a=s.getAttribute(t),r=a?a.match(au):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Xd),s.Nc("aria-hidden"),s.yc(iu,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:Gd,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})(),ou=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const lu=Ci({passive:!0});let cu=(()=>{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 Re.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,lu),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",a,lu)}}),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})(),hu=(()=>{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(cu))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),du=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new Re.a,this._enabled=!0,this._previousMinRows=-1,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(t){this._minRows=di(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=di(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=hi(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(()=>{fo(window,"resize").pipe(Lo(16),No(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(){}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t;this._destroyed.isStopped||document.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))},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})(),uu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[_i]]}),t})(),mu=(()=>{class t extends du{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 pu(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 pu=s.Fc(mu),gu=new s.v("MAT_INPUT_VALUE_ACCESSOR"),fu=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bu=0;class _u{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const yu=yn(_u);let vu=(()=>{class t extends yu{constructor(t,e,i,n,s,a,r,o,l){super(a,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=o,this._uid=`mat-input-${bu++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new Re.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=r||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=hi(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=hi(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=hi(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(fu.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(Rs,10),s.yc(Ta,8),s.yc(Ya,8),s.yc(Tn),s.yc(gu,10),s.yc(cu),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:_c,useExisting:t}]),s.hc,s.ic]}),t})(),wu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Tn],imports:[[uu,Rc],uu,Rc]}),t})(),xu=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=hi(t)}get inset(){return this._inset}set inset(t){this._inset=hi(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})(),ku=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const Cu=["*"],Su=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Du=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Eu=["text"];function Au(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 Ou=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Pu=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class Ru{}const Iu=gn(bn(Ru));class Tu{}const Mu=bn(Tu);let Fu=(()=>{class t extends Iu{constructor(){super(...arguments),this._stateChanges=new Re.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return Lu(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:Cu,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-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}@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 Lu=s.Fc(Fu);let Nu=(()=>{class t extends Iu{constructor(t){super(),this._elementRef=t,this._stateChanges=new Re.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:Cu,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-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}@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})(),zu=(()=>{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})(),Bu=(()=>{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})(),ju=(()=>{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})(),Vu=(()=>{class t extends Mu{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new Re.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(No(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=hi(t)}ngAfterContentInit(){Fn(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(Fu,8),s.yc(Nu,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,zu,!0),s.qc(i,Bu,!0),s.qc(i,Mn,!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:Du,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(Su),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:[$n],encapsulation:2,changeDetection:0}),t})();class Uu{}const $u=bn(Uu);class Hu{}const qu=bn(Hu),Gu={provide:ws,useExisting:Object(s.cb)(()=>Qu),multi:!0};class Yu{constructor(t,e){this.source=t,this.option=e}}let Wu=(()=>{class t extends qu{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=hi(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=hi(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(){Fn(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)(()=>Qu)))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,zu,!0),s.qc(i,Bu,!0),s.qc(i,Mn,!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(Eu,!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:Pu,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(Ou),s.Dc(0,"div",0),s.zc(1,"div",1),s.td(2,Au,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:[$n,ye.t,qn],encapsulation:2,changeDetection:0}),t})(),Qu=(()=>{class t extends $u{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 ps(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new Re.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=hi(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 ps(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new zi(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(No(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(on(null),No(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(No(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=Ne(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&&Ne(t,"ctrlKey")&&!i.isTyping()?(this.options.find(t=>!t.selected)?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}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 Yu(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,Wu,!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([Gu]),s.hc,s.ic],ngContentSelectors:Cu,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-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}@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})(),Ku=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Nn,Hn,pn,Gn,ye.c],Nn,pn,Gn,ku]}),t})();const Xu=["mat-menu-item",""],Zu=["*"];function Ju(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 tm={transformMenu:r("transformMenu",[d("void",h({opacity:0,transform:"scale(0.8)"})),m("void => enter",l([g(".mat-menu-content, .mat-mdc-menu-content",o("100ms linear",h({opacity:1}))),o("120ms cubic-bezier(0, 0, 0.2, 1)",h({transform:"scale(1)"}))])),m("* => void",o("100ms 25ms linear",h({opacity:0})))]),fadeInItems:r("fadeInItems",[d("showing",h({opacity:1})),m("void => *",[h({opacity:0}),o("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let em=(()=>{class t{constructor(t,e,i,n,s,a,r){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=a,this._changeDetectorRef=r,this._attached=new Re.a}attach(t={}){this._portal||(this._portal=new cl(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new ul(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 im=new s.v("MAT_MENU_PANEL");class nm{}const sm=bn(gn(nm));let am=(()=>{class t extends sm{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new Re.a,this._focused=new Re.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=Ie.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Re.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-${om++}`}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=hi(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=hi(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 zi(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(on(this._directDescendantItems),Vo(t=>Object(go.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(on(this._directDescendantItems),Vo(t=>Object(go.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:Ne(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:Ne(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(oi(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(on(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(rm))},t.\u0275dir=s.tc({type:t,contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,em,!0),s.qc(i,am,!0),s.qc(i,am,!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})(),cm=(()=>{class t extends lm{}return t.\u0275fac=function(e){return hm(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const hm=s.Fc(cm);let dm=(()=>{class t extends cm{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(rm))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[s.jc([{provide:im,useExisting:cm},{provide:cm,useExisting:t}]),s.hc],ngContentSelectors:Zu,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,Ju,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:[tm.transformMenu,tm.fadeInItems]},changeDetection:0}),t})();const um=new s.v("mat-menu-scroll-strategy"),mm={provide:um,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},pm=Ci({passive:!0});let gm=(()=>{class t{constructor(t,e,i,n,a,r,o,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=r,this._dir=o,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ie.a.EMPTY,this._hoverSubscription=Ie.a.EMPTY,this._menuCloseSubscription=Ie.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,pm),r&&(r._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,pm),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 cm&&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(),t instanceof cm?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Je(t=>"void"===t.toState),oi(1),No(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach()),this._restoreFocus()}_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 Cl({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,r]=[n,s],[o,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=o="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(a="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:a,overlayX:o,overlayY:n,offsetY:c},{originX:i,originY:a,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:r,overlayX:o,overlayY:s,offsetY:-c},{originX:i,originY:r,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(go.a)(t,i,n,e)}_handleMousedown(t){Qi(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),Wl(0,So)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof cm&&this.menu._isAnimating?this.menu._animationDone.pipe(oi(1),Wl(0,So),No(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new cl(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Vl),s.yc(s.q),s.yc(s.X),s.yc(um),s.yc(cm,8),s.yc(am,10),s.yc(Ji,8),s.yc(Wi))},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})(),fm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[mm],imports:[pn]}),t})(),bm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[mm],imports:[[ye.c,pn,Hn,Yl,fm],fm]}),t})();const _m={};function ym(...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(fs.a)(t[0])&&(t=t[0]),Object(Me.a)(t,i).lift(new vm(e))}class vm{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new wm(t,this.resultSelector))}}class wm extends Oo.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(_m),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 Cm=new Set;let Sm,Dm=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Em}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Cm.has(t))try{Sm||(Sm=document.createElement("style"),Sm.setAttribute("type","text/css"),document.head.appendChild(Sm)),Sm.sheet&&(Sm.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Cm.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 Em(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Am=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new Re.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Om(ui(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=ym(Om(ui(t)).map(t=>this._registerQuery(t).observable));return e=rn(e.pipe(oi(1)),e.pipe(t=>t.lift(new xm(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(on(e),Object(ii.a)(e=>({query:t,matches:e.matches})),No(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Dm),s.Mc(s.F))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Dm),Object(s.Mc)(s.F))},token:t,providedIn:"root"}),t})();function Om(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Pm={tooltipState:r("state",[d("initial, void, hidden",h({opacity:0,transform:"scale(0)"})),d("visible",h({transform:"scale(1)"})),m("* => visible",o("200ms cubic-bezier(0, 0, 0.2, 1)",u([h({opacity:0,transform:"scale(0)",offset:0}),h({opacity:.5,transform:"scale(0.99)",offset:.5}),h({opacity:1,transform:"scale(1)",offset:1})]))),m("* => hidden",o("100ms cubic-bezier(0, 0, 0.2, 1)",h({opacity:0})))])},Rm=Ci({passive:!0});function Im(t){return Error(`Tooltip position "${t}" is invalid.`)}const Tm=new s.v("mat-tooltip-scroll-strategy"),Mm={provide:Tm,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Fm=new s.v("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Lm=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=a,this._ariaDescriber=r,this._focusMonitor=o,this._dir=c,this._defaultOptions=h,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 Re.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Ne(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.monitor(e).pipe(No(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=hi(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,Rm)}),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 ll(Nm,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(No(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(No(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(No(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 Im(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 Im(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(oi(1),No(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,Rm)})}_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(Vl),s.yc(s.q),s.yc(il),s.yc(s.X),s.yc(s.F),s.yc(bi),s.yc(Fi),s.yc(Wi),s.yc(Tm),s.yc(Ji,8),s.yc(Fm,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})(),Nm=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Re.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(Am))},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:[Pm.tooltipState]},changeDetection:0}),t})(),zm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Mm],imports:[[Xi,ye.c,Yl,pn],pn]}),t})();const Bm=["primaryValueBar"];class jm{constructor(t){this._elementRef=t}}const Vm=fn(jm,"primary"),Um=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 $m=0,Hm=(()=>{class t extends Vm{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=Ie.a.EMPTY,this.mode="determinate",this.progressbarId=`mat-progress-bar-${$m++}`;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=qm(di(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=qm(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=fo(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(Um,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&s.zd(Bm,!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 qm(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let Gm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,pn],pn]}),t})();function Ym(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 Wm(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 Qm(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 Km(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 Xm{constructor(t){this._elementRef=t}}const Zm=fn(Xm,"primary"),Jm=new s.v("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let tp=(()=>{class t extends Zm{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 r=t._diameters;r.has(n.head)||r.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=di(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=di(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,di(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){const i=e.head;if(i&&(i.createShadowRoot||i.attachShadow)){const e=t.getRootNode?t.getRootNode():null;if(e instanceof window.ShadowRoot)return e}}return null}(t,this._document)||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(Jm))},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,Ym,1,9,"circle",1),s.td(2,Wm,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})(),ep=(()=>{class t extends tp{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(Jm))},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,Qm,1,9,"circle",1),s.td(2,Km,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})(),ip=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,ye.c],pn]}),t})();const np=["input"],sp=function(){return{enterDuration:150}},ap=["*"],rp=new s.v("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let op=0;const lp={provide:ws,useExisting:Object(s.cb)(()=>hp),multi:!0};class cp{constructor(t,e){this.source=t,this.value=e}}let hp=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name=`mat-radio-group-${op++}`,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=hi(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=hi(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 cp(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,mp,!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([lp])]}),t})();class dp{constructor(t){this._elementRef=t}}const up=bn(_n(dp));let mp=(()=>{class t extends up{constructor(t,e,i,n,a,r,o){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=a,this._animationMode=r,this._providerOverride=o,this._uniqueId=`mat-radio-${++op}`,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=hi(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(hi(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=hi(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 cp(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(hp,8),s.yc(s.q),s.yc(s.j),s.yc(Wi),s.yc(gs),s.yc(Ae,8),s.yc(rp,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&s.zd(np,!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:ap,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,sp)),s.kc(2),s.oc("mat-radio-label-before","before"==e.labelPosition)}},directives:[$n],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})(),pp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Hn,pn],pn]}),t})();const gp=["trigger"],fp=["panel"];function bp(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 _p(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 yp(t,e){1&t&&s.Yc(0,0,["*ngSwitchCase","true"])}function vp(t,e){if(1&t&&(s.Dc(0,"span",9),s.td(1,_p,2,1,"span",10),s.td(2,yp,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 wp(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 xp=[[["mat-select-trigger"]],"*"],kp=["mat-select-trigger","*"],Cp={transformPanelWrap:r("transformPanelWrap",[m("* => void",g("@transformPanel",[p()],{optional:!0}))]),transformPanel:r("transformPanel",[d("void",h({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d("showing",h({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d("showing-multiple",h({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),m("void => *",o("120ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void",o("100ms 25ms linear",h({opacity:0})))])};let Sp=0;const Dp=new s.v("mat-select-scroll-strategy"),Ep=new s.v("MAT_SELECT_CONFIG"),Ap={provide:Dp,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Op{constructor(t,e){this.source=t,this.value=e}}class Pp{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Rp=bn(_n(gn(yn(Pp))));let Ip=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-select-trigger"]]}),t})(),Tp=(()=>{class t extends Rp{constructor(t,e,i,n,a,r,o,l,c,h,d,u,m,p){super(a,n,o,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=c,this.ngControl=h,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-${Sp++}`,this._destroy=new Re.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new Re.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=po(()=>{const t=this.options;return t?t.changes.pipe(on(t),Vo(()=>Object(go.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(oi(1),Vo(()=>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(d)||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=hi(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=hi(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=hi(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=di(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ps(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Do(),No(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(No(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(No(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(on(null),No(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(oi(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&&!Ne(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||Ne(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(oi(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 Ni(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(No(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(No(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(go.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(No(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(go.a)(...this.options.map(t=>t._stateChanges)).pipe(No(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 Op(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=is(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=ns(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+=is(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)),r=t.right+s-e.width+(i?0:n);a>0?s+=a+8:r>0&&(s-=r+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 r;return this._disableOptionCentering?0:(r=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*r-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),r=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;r>s?this._adjustPanelUp(r,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(sl),s.yc(s.j),s.yc(s.F),s.yc(Tn),s.yc(s.q),s.yc(Ji,8),s.yc(Ta,8),s.yc(Ya,8),s.yc(Pc,8),s.yc(Rs,10),s.Nc("tabindex"),s.yc(Dp),s.yc(Gi),s.yc(Ep,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Ip,!0),s.qc(i,es,!0),s.qc(i,Kn,!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(gp,!0),s.zd(fp,!0),s.zd(ql,!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:_c,useExisting:t},{provide:ts,useExisting:t}]),s.hc,s.ic],ngContentSelectors:kp,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(xp),s.Dc(0,"div",0,1),s.Qc("click",(function(){return e.toggle()})),s.Dc(3,"div",2),s.td(4,bp,2,1,"span",3),s.td(5,vp,3,2,"span",4),s.Cc(),s.Dc(6,"div",5),s.zc(7,"div",6),s.Cc(),s.Cc(),s.td(8,wp,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:[Hl,ye.x,ye.y,ql,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:[Cp.transformPanelWrap,Cp.transformPanel]},changeDetection:0}),t})(),Mp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ap],imports:[[ye.c,Yl,ss,pn],Rc,ss,pn]}),t})();const Fp=["*"];function Lp(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 Np(t,e){1&t&&(s.Dc(0,"mat-drawer-content"),s.Yc(1,2),s.Cc())}const zp=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Bp=["mat-drawer","mat-drawer-content","*"];function jp(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 Vp(t,e){1&t&&(s.Dc(0,"mat-sidenav-content",3),s.Yc(1,2),s.Cc())}const Up=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],$p=["mat-sidenav","mat-sidenav-content","*"],Hp={transformDrawer:r("transform",[d("open, open-instant",h({transform:"none",visibility:"visible"})),d("void",h({"box-shadow":"none",visibility:"hidden"})),m("void => open-instant",o("0ms")),m("void <=> open, open-instant => void",o("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function qp(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const Gp=new s.v("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Yp=new s.v("MAT_DRAWER_CONTAINER");let Wp=(()=>{class t extends nl{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)(()=>Kp)),s.yc(s.q),s.yc(il),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:Fp,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},encapsulation:2,changeDetection:0}),t})(),Qp=(()=>{class t{constructor(t,e,i,n,a,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=a,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Re.a,this._animationEnd=new Re.a,this._animationState="void",this.openedChange=new s.s(!0),this._destroyed=new Re.a,this.onPositionChanged=new s.s,this._modeChanged=new Re.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{fo(this._elementRef.nativeElement,"keydown").pipe(Je(t=>27===t.keyCode&&!this.disableClose&&!Ne(t)),No(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Do((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=hi(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=hi(t)}get opened(){return this._opened}set opened(t){this.toggle(hi(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(oi(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(Wi),s.yc(bi),s.yc(s.F),s.yc(ye.e,8),s.yc(Yp,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:Fp,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:[Hp.transformDrawer]},changeDetection:0}),t})(),Kp=(()=>{class t{constructor(t,e,i,n,a,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new s.K,this.backdropClick=new s.s,this._destroyed=new Re.a,this._doCheckSubject=new Re.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Re.a,t&&t.change.pipe(No(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(No(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=hi(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:hi(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(on(this._allDrawers),No(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(on(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),No(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),No(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(No(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(No(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(oi(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(No(Object(go.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&&qp("end"),this._end=t):(null!=this._start&&qp("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(Ji,8),s.yc(s.q),s.yc(s.F),s.yc(s.j),s.yc(sl),s.yc(Gp),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,Wp,!0),s.qc(i,Qp,!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(Wp,!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:Yp,useExisting:t}])],ngContentSelectors:Bp,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(zp),s.td(0,Lp,1,2,"div",0),s.Yc(1),s.Yc(2,1),s.td(3,Np,2,0,"mat-drawer-content",1)),2&t&&(s.ad("ngIf",e.hasBackdrop),s.kc(3),s.ad("ngIf",!e._content))},directives:[ye.t,Wp],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})(),Xp=(()=>{class t extends Wp{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)(()=>tg)),s.yc(s.q),s.yc(il),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:Fp,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},encapsulation:2,changeDetection:0}),t})(),Zp=(()=>{class t extends Qp{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=hi(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=di(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=di(t)}}return t.\u0275fac=function(e){return Jp(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:Fp,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:[Hp.transformDrawer]},changeDetection:0}),t})();const Jp=s.Fc(Zp);let tg=(()=>{class t extends Kp{}return t.\u0275fac=function(e){return eg(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Xp,!0),s.qc(i,Zp,!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:Yp,useExisting:t}]),s.hc],ngContentSelectors:$p,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(Up),s.td(0,jp,1,2,"div",0),s.Yc(1),s.Yc(2,1),s.td(3,Vp,2,0,"mat-sidenav-content",1)),2&t&&(s.ad("ngIf",e.hasBackdrop),s.kc(3),s.ad("ngIf",!e._content))},directives:[ye.t,Xp,nl],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 eg=s.Fc(tg);let ig=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,pn,al,_i],pn]}),t})();const ng=["thumbContainer"],sg=["toggleBar"],ag=["input"],rg=function(){return{enterDuration:150}},og=["*"],lg=new s.v("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let cg=0;const hg={provide:ws,useExisting:Object(s.cb)(()=>pg),multi:!0};class dg{constructor(t,e){this.source=t,this.checked=e}}class ug{constructor(t){this._elementRef=t}}const mg=_n(fn(bn(gn(ug)),"accent"));let pg=(()=>{class t extends mg{constructor(t,e,i,n,a,r,o,l){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=r,this._animationMode=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId=`mat-slide-toggle-${++cg}`,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=hi(t)}get checked(){return this._checked}set checked(t){this._checked=hi(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 dg(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Wi),s.yc(s.j),s.Nc("tabindex"),s.yc(s.F),s.yc(lg),s.yc(Ae,8),s.yc(Ji,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(s.zd(ng,!0),s.zd(sg,!0),s.zd(ag,!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([hg]),s.hc],ngContentSelectors:og,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,rg))}},directives:[$n,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 gg={provide:Ls,useExisting:Object(s.cb)(()=>fg),multi:!0};let fg=(()=>{class t extends sr{}return t.\u0275fac=function(e){return bg(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([gg]),s.hc]}),t})();const bg=s.Fc(fg);let _g=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),yg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[_g,Hn,pn,Pi],_g,pn]}),t})();function vg(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 wg(t,e){}const xg=Math.pow(2,31)-1;class kg{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Re.a,this._afterOpened=new Re.a,this._onAction=new Re.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,xg))}_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 Cg=new s.v("MatSnackBarData");class Sg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Dg=(()=>{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(kg),s.yc(Cg))},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,vg,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,ds],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 Eg={snackBarState:r("state",[d("void, hidden",h({transform:"scale(0.8)",opacity:0})),d("visible",h({transform:"scale(1)",opacity:1})),m("* => visible",o("150ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void, * => hidden",o("75ms cubic-bezier(0.4, 0.0, 1, 1)",h({opacity:0})))])};let Ag=(()=>{class t extends dl{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new Re.a,this._onEnter=new Re.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._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(oi(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(Sg))},t.\u0275cmp=s.sc({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&s.rd(ml,!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,wg,0,0,"ng-template",0)},directives:[ml],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:[Eg.snackBarState]}}),t})(),Og=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Yl,pl,ye.c,ms,pn],pn]}),t})();const Pg=new s.v("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Sg}});let Rg=(()=>{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(Dg,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=new gl(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Sg,e]])),n=new ll(Ag,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 Sg),this._defaultConfig),e),n=this._createOverlay(i),a=this._attachSnackBarContainer(n,i),r=new kg(a,n);if(t instanceof s.U){const e=new cl(t,null,{$implicit:i.data,snackBarRef:r});r.instance=a.attachTemplatePortal(e)}else{const e=this._createInjector(i,r),n=new ll(t,void 0,e),s=a.attachComponentPortal(n);r.instance=s.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(No(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(r,i),this._openedSnackBarRef=r,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 Cl;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 gl(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[kg,e],[Cg,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Vl),s.Mc(Gi),s.Mc(s.w),s.Mc(Am),s.Mc(t,12),s.Mc(Pg))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Vl),Object(s.Mc)(Gi),Object(s.Mc)(s.t),Object(s.Mc)(Am),Object(s.Mc)(t,12),Object(s.Mc)(Pg))},token:t,providedIn:Og}),t})();const Ig=["*",[["mat-toolbar-row"]]],Tg=["*","mat-toolbar-row"];class Mg{constructor(t){this._elementRef=t}}const Fg=fn(Mg);let Lg=(()=>{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})(),Ng=(()=>{class t extends Fg{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,Lg,!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:Tg,decls:2,vars:0,template:function(t,e){1&t&&(s.Zc(Ig),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})(),zg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();function Bg(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function jg(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Vg(t,e){const i=e?"":"none";jg(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function Ug(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function $g(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}const Hg=Ci({passive:!0}),qg=Ci({passive:!1});class Gg{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 Re.a,this._pointerMoveSubscription=Ie.a.EMPTY,this._pointerUpSubscription=Ie.a.EMPTY,this._scrollSubscription=Ie.a.EMPTY,this._resizeSubscription=Ie.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 Re.a,this.started=new Re.a,this.released=new Re.a,this.ended=new Re.a,this.entered=new Re.a,this.exited=new Re.a,this.dropped=new Re.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=hi(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=>Vg(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,qg),e.addEventListener("touchstart",this._pointerDown,Hg),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()&&Kg(this._rootElement),Kg(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&&Kg(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&Kg(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}),Xg(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=Xg(e),s=!n&&0!==e.button,a=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)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(on(null)).subscribe(()=>{this._scrollPosition=this._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.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?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=Yg(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);n=Zg(e,this._document),this._previewRef=e,t.matchSize?Jg(n,this._rootElement):n.style.transform=Yg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=Wg(t),Jg(n,t)}return jg(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),Vg(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=Yg(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=$g(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),a=$g(e,"transition-duration"),r=$g(e,"transition-delay");return Ug(a[s])+Ug(r[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),i=Zg(this._placeholderRef,this._document)):i=Wg(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=Xg(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=Xg(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,r=n.bottom-(s.height-e);i.x=Qg(i.x,n.left+t,n.right-(s.width-t)),i.y=Qg(i.y,a,r)}return i}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-s.x),r=Math.abs(i-s.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>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,Vg(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,qg),t.removeEventListener("touchstart",this._pointerDown,Hg)}_applyRootElementTransform(t,e){const i=Yg(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,r=i.top-n.top,o=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>n.height?(r>0&&(e+=r),o>0&&(e-=o)):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:Xg(t)?e.touch:e?e.mouse:0}}function Yg(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Wg(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 Re.a,this.entered=new Re.a,this.exited=new Re.a,this.dropped=new Re.a,this.sorted=new Re.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=Ie.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Re.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=We){return(!To(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=We),new si.a(i=>(i.add(e.schedule(Bg,t,{subscriber:i,counter:0,period:t})),i))}(0,yo).pipe(No(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?cf(t,-2):2===this._verticalScrollDirection&&cf(t,2),1===this._horizontalScrollDirection?hf(t,-2):2===this._horizontalScrollDirection&&hf(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,r=a.indexOf(t),o=t.getPlaceholderElement();let l=a[s];if(l===t&&(l=a[s+1]),r>-1&&a.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(o,e),a.splice(s,0,t)}else pi(this.element).appendChild(o),a.push(t);o.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?rf("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||!af(this._clientRect,e,i))return;const s=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===a&&s.length>0)return;const r="horizontal"===this._orientation,o=rf(s,e=>e.drag===t),l=s[a],c=s[o].clientRect,h=l.clientRect,d=o>a?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=r?n.x:n.y;const u=this._getItemOffsetPx(c,h,d),m=this._getSiblingOffsetPx(o,s,d),p=s.slice();tf(s,o,a),this.sorted.next({previousIndex:o,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,r?(a.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,sf(e.clientRect,0,s)):(a.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,sf(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.forEach((a,r)=>{r!==this._document&&a.clientRect&&!i&&af(a.clientRect,t,e)&&([n,s]=function(t,e,i,n){const s=df(e,n),a=uf(e,i);let r=0,o=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(a){const e=t.scrollLeft;1===a?e>0&&(o=1):t.scrollWidth-e>t.clientWidth&&(o=2)}return[r,o]}(r,a.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:a,height:r}=this._viewportRuler.getViewportSize(),o={width:a,height:r,top:0,right:a,bottom:r,left:0};n=df(o,e),s=uf(o,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=lf(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:lf(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 r=s[n?"width":"height"]*i;if(a){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=a.clientRect[t]-s[e]:r+=s[t]-a.clientRect[e]}return r}_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 rf(this._itemPositions,({drag:a,clientRect:r},o,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(r.left)&&e<=Math.floor(r.right):i>=Math.floor(r.top)&&i<=Math.floor(r.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_updateAfterScroll(t,e,i){const n=this._parentPositions.get(t).scrollPosition,s=n.top-e,a=n.left-i;this._parentPositions.forEach((e,i)=>{e.clientRect&&t!==i&&t.contains(i)&&sf(e.clientRect,s,a)}),this._itemPositions.forEach(({clientRect:t})=>{sf(t,s,a)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}),n.top=e,n.left=i}_isOverContainer(t,e){return of(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(n=>n._canReceive(t,e,i))}_canReceive(t,e,i){if(!of(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(){return this._cachedShadowRoot||(this._cachedShadowRoot=function(t){if(Di()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(pi(this.element))||this._document),this._cachedShadowRoot}}function sf(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function af(t,e,i){const{top:n,right:s,bottom:a,left:r,width:o,height:l}=t,c=.05*o,h=.05*l;return i>n-h&&ir-c&&e=n&&i<=s&&e>=a&&e<=r}function lf(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 cf(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function hf(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function df(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 uf(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 mf=Ci({passive:!1,capture:!0});let pf=(()=>{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 Re.a,this.pointerUp=new Re.a,this.scroll=new Re.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,mf)})}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,mf)}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:mf}).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:mf}),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 gf={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ff=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=gf){return new Gg(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new nf(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(sl),s.Mc(pf))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(ye.e),Object(s.Mc)(s.F),Object(s.Mc)(sl),Object(s.Mc)(pf))},token:t,providedIn:"root"}),t})();const bf=new s.v("CDK_DRAG_PARENT");let _f=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new Re.a,this._disabled=!1,this._parentDrag=e,Vg(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bf,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),yf=(()=>{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})(),vf=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=hi(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 wf=new s.v("CDK_DRAG_CONFIG"),xf=new s.v("CDK_DROP_LIST");let kf=(()=>{class t{constructor(t,e,i,n,a,r,o,l,c){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=n,this._viewContainerRef=a,this._dir=o,this._changeDetectorRef=c,this._destroyed=new Re.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:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,r&&this._assignDefaults(r),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=hi(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(oi(1),No(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(on(this._handles),Ve(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),Vo(t=>Object(go.a)(...t.map(t=>t._stateChanges.pipe(on(t))))),No(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?Cf(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 Cf(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:di(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:r,rootElementSelector:o}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),a&&(this.boundaryElement=a),o&&(this.rootElementSelector=o)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(xf,12),s.yc(ye.e),s.yc(s.F),s.yc(s.X),s.yc(wf,8),s.yc(Ji,8),s.yc(ff),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,vf,!0),s.qc(i,yf,!0),s.qc(i,_f,!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:bf,useExisting:t}]),s.ic]}),t})();function Cf(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 Sf=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(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})(),Df=0,Ef=(()=>{class t{constructor(e,i,n,a,r,o,l){this.element=e,this._changeDetectorRef=n,this._dir=a,this._group=r,this._scrollDispatcher=o,this._destroyed=new Re.a,this.connectedTo=[],this.id=`cdk-drop-list-${Df++}`,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),r&&r._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=hi(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(on(this._dir.value),No(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=hi(this.sortingDisabled),e.autoScrollDisabled=hi(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(ff),s.yc(s.j),s.yc(Ji,8),s.yc(Sf,12),s.yc(il),s.yc(wf,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:Sf,useValue:void 0},{provide:xf,useExisting:t}])]}),t._dropLists=[],t})(),Af=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[ff]}),t})();function Of(t){return ad(t)(this)}si.a.prototype.map=function(t,e){return Object(ii.a)(t,e)(this)},si.a.prototype.catch=Of,si.a.prototype._catch=Of,si.a.throw=Yo,si.a.throwError=Yo;const Pf={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 Rf extends Re.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 Zo.a;return this._value}next(t){super.next(this._value=t)}}const If=(()=>{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 Tf(t){return function(e){return 0===t?ri():e.lift(new Mf(t))}}class Mf{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new Ff(t,this.total))}}class Ff extends ze.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 Nf(t))}class Nf{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new zf(t,this.errorFactory))}}class zf extends ze.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 Bf(){return new If}function jf(t=null){return e=>e.lift(new Vf(t))}class Vf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Uf(t,this.defaultValue))}}class Uf extends ze.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 $f=i("SpAZ");function Hf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Je((e,i)=>t(e,i,n)):$f.a,Tf(1),i?jf(e):Lf(()=>new If))}function qf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Je((e,i)=>t(e,i,n)):$f.a,oi(1),i?jf(e):Lf(()=>new If))}class Gf{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new Yf(t,this.predicate,this.thisArg,this.source))}}class Yf extends ze.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 Wf(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Qf(t,e,i))}}class Qf{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Kf(t,this.accumulator,this.seed,this.hasSeed))}}class Kf extends ze.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 Xf=i("mCNh");class Zf{constructor(t,e){this.id=t,this.url=e}}class Jf extends Zf{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 tb extends Zf{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class eb extends Zf{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ib extends Zf{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nb extends Zf{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 sb extends Zf{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 ab extends Zf{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 rb extends Zf{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 ob extends Zf{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 lb{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cb{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hb{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class db{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ub{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mb{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pb{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 gb=(()=>{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[vy]},encapsulation:2}),t})();class fb{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 bb(t){return new fb(t)}function _b(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function yb(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 Eb(t){return Array.prototype.concat.apply([],t)}function Ab(t){return t.length>0?t[t.length-1]:null}function Ob(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Pb(t){return Object(s.Mb)(t)?t:Object(s.Nb)(t)?Object(_s.a)(Promise.resolve(t)):Le(t)}function Rb(t,e,i){return i?function(t,e){return Sb(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!Fb(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=>Db(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!!Fb(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!Fb(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!!Fb(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,a)}}(e,i,i.segments)}(t.root,e.root)}class Ib{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bb(this.queryParams)),this._queryParamMap}toString(){return Bb.serialize(this)}}class Tb{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ob(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jb(this)}}class Mb{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=bb(this.parameters)),this._parameterMap}toString(){return Gb(this)}}function Fb(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function Lb(t,e){let i=[];return Ob(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),Ob(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class Nb{}class zb{parse(t){const e=new Xb(t);return new Ib(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return jb(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return Ob(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=Lb(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${jb(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=>`${Ub(e)}=${Ub(t)}`).join("&"):`${Ub(e)}=${Ub(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Bb=new zb;function jb(t){return t.segments.map(t=>Gb(t)).join("/")}function Vb(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ub(t){return Vb(t).replace(/%3B/gi,";")}function $b(t){return Vb(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hb(t){return decodeURIComponent(t)}function qb(t){return Hb(t.replace(/\+/g,"%20"))}function Gb(t){return`${$b(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${$b(t)}=${$b(e[t])}`).join("")}`;var e}const Yb=/^[^\/()?;=#]+/;function Wb(t){const e=t.match(Yb);return e?e[0]:""}const Qb=/^[^=?&#]+/,Kb=/^[^?&#]+/;class Xb{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Tb([],{}):new Tb([],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 Tb(t,e)),i}parseSegment(){const t=Wb(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Mb(Hb(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Wb(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Wb(this.remaining);t&&(i=t,this.capture(i))}t[Hb(e)]=Hb(i)}parseQueryParam(t){const e=function(t){const e=t.match(Qb);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(Kb);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=qb(e),s=qb(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=Wb(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 Tb([],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 Zb{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=Jb(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jb(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=t_(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return t_(t,this._root).map(t=>t.value)}}function Jb(t,e){if(t===e.value)return e;for(const i of e.children){const e=Jb(t,i);if(e)return e}return null}function t_(t,e){if(t===e.value)return[e];for(const i of e.children){const n=t_(t,i);if(n.length)return n.unshift(e),n}return[]}class e_{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function i_(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class n_ extends Zb{constructor(t,e){super(t),this.snapshot=e,c_(this,t)}toString(){return this.snapshot.toString()}}function s_(t,e){const i=function(t,e){const i=new o_([],{},{},"",{},"primary",e,null,t.root,-1,{});return new l_("",new e_(i,[]))}(t,e),n=new Rf([new Mb("",{})]),s=new Rf({}),a=new Rf({}),r=new Rf({}),o=new Rf(""),l=new a_(n,s,r,o,a,"primary",e,i.root);return l.snapshot=i.root,new n_(new e_(l,[]),i)}class a_{constructor(t,e,i,n,s,a,r,o){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=r,this._futureSnapshot=o}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=>bb(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ii.a)(t=>bb(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function r_(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 o_{constructor(t,e,i,n,s,a,r,o,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=r,this.routeConfig=o,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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=bb(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bb(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l_ extends Zb{constructor(t,e){super(e),this.url=t,c_(this,e)}toString(){return h_(this._root)}}function c_(t,e){e.value._routerState=t,e.children.forEach(e=>c_(t,e))}function h_(t){const e=t.children.length>0?` { ${t.children.map(h_).join(", ")} } `:"";return`${t.value}${e}`}function d_(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Sb(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Sb(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iSb(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||u_(t.parent,e.parent))}function m_(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function p_(t,e,i,n,s){let a={};return n&&Ob(n,(t,e)=>{a[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Ib(i.root===t?e:function t(e,i,n){const s={};return Ob(e.children,(e,a)=>{s[a]=e===i?n:t(e,i,n)}),new Tb(e.segments,s)}(i.root,t,e),a,s)}class g_{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&m_(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!==Ab(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class f_{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function b_(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function __(t,e,i){if(t||(t=new Tb([],{})),0===t.segments.length&&t.hasChildren())return y_(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],r=b_(i[n]),o=n0&&void 0===r)break;if(r&&o&&"object"==typeof o&&void 0===o.outlets){if(!k_(r,o,e))return a;n+=2}else{if(!k_(r,{},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]=__(t.children[n],e,i))}),Ob(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Tb(t.segments,s)}}function v_(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=v_(new Tb([],{}),0,t))}),e}function x_(t){const e={};return Ob(t,(t,i)=>e[i]=`${t}`),e}function k_(t,e,i){return t==i.path&&Sb(e,i.parameters)}class C_{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),d_(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=i_(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Ob(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=i_(t),s=t.value.component?i.children:e;Ob(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=i_(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new mb(t.value.snapshot))}),t.children.length&&this.forwardEvent(new db(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(d_(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),S_(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 S_(t){d_(t.value),t.children.forEach(S_)}function D_(t){return"function"==typeof t}function E_(t){return t instanceof Ib}class A_{constructor(t){this.segmentGroup=t||null}}class O_{constructor(t){this.urlTree=t}}function P_(t){return new si.a(e=>e.error(new A_(t)))}function R_(t){return new si.a(e=>e.error(new O_(t)))}function I_(t){return new si.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class T_{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(ad(t=>{if(t instanceof O_)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof A_)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(ad(t=>{if(t instanceof A_)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 Tb([],{primary:t}):t;return new Ib(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 Tb([],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 Ob(t,(t,a)=>{const r=e(a,t).pipe(Object(ii.a)(t=>s[a]=t));"primary"===a?i.push(r):n.push(r)}),Le.apply(null,i.concat(n)).pipe(an(),Hf(),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)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,a).pipe(ad(t=>{if(t instanceof A_)return Le(null);throw t}))),an(),qf(t=>!!t),ad((t,i)=>{if(t instanceof If||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Le(new Tb([],{}));throw new A_(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,a,r){return N_(n)!==a?P_(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a):P_(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("/")?R_(s):this.lineralizeSegments(i,s).pipe(Object(ud.a)(i=>{const s=new Tb(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){const{matched:r,consumedSegments:o,lastChild:l,positionalParamSegments:c}=M_(e,n,s);if(!r)return P_(e);const h=this.applyRedirectCommands(o,n.redirectTo,c);return n.redirectTo.startsWith("/")?R_(h):this.lineralizeSegments(n,h).pipe(Object(ud.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 Tb(n,{})))):Le(new Tb(n,{}));const{matched:s,consumedSegments:a,lastChild:r}=M_(e,i,n);if(!s)return P_(e);const o=n.slice(r);return this.getChildConfig(t,i,n).pipe(Object(ud.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:r}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>L_(t,e,i)&&"primary"!==N_(i))}(t,i,n)?{segmentGroup:F_(new Tb(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==N_(n)&&(i[N_(n)]=new Tb([],{}));return i}(n,new Tb(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>L_(t,e,i))}(t,i,n)?{segmentGroup:F_(new Tb(t.segments,function(t,e,i,n){const s={};for(const a of i)L_(t,e,a)&&!n[N_(a)]&&(s[N_(a)]=new Tb([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,o,n);return 0===r.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(ii.a)(t=>new Tb(a,t))):0===n.length&&0===r.length?Le(new Tb(a,{})):this.expandSegment(i,s,n,r,"primary",!0).pipe(Object(ii.a)(t=>new Tb(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Le(new vb(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(_s.a)(n).pipe(Object(ii.a)(n=>{const s=t.get(n);let a;if(function(t){return t&&D_(t.canLoad)}(s))a=s.canLoad(e,i);else{if(!D_(s))throw new Error("Invalid CanLoad guard");a=s(e,i)}return Pb(a)})).pipe(an(),(s=t=>!0===t,t=>t.lift(new Gf(s,void 0,t)))):Le(!0);var s}(t.injector,e,i).pipe(Object(ud.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(_b(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Le(new vb([],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 I_(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 Ib(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ob(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 Ob(e.children,(e,s)=>{a[s]=this.createSegmentGroup(t,e,i,n)}),new Tb(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 M_(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||yb)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function F_(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Tb(t.segments.concat(e.segments),e.children)}return t}function L_(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function N_(t){return t.outlet||"primary"}class z_{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class B_{constructor(t,e){this.component=t,this.route=e}}function j_(t,e,i){const n=t._root;return function t(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=i_(i);return e.children.forEach(e=>{!function(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=e.value,o=i?i.value:null,l=n?n.getContext(e.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Fb(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Fb(t.url,e.url)||!Sb(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!u_(t,e)||!Sb(t.queryParams,e.queryParams);case"paramsChange":default:return!u_(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new z_(s)):(r.data=o.data,r._resolvedData=o._resolvedData),t(e,i,r.component?l?l.children:null:n,s,a),c&&a.canDeactivateChecks.push(new B_(l&&l.outlet&&l.outlet.component||null,o))}else o&&U_(i,l,a),a.canActivateChecks.push(new z_(s)),t(e,null,r.component?l?l.children:null:n,s,a)}(e,r[e.value.outlet],n,s.concat([e.value]),a),delete r[e.value.outlet]}),Ob(r,(t,e)=>U_(t,n.getContext(e),a)),a}(n,e?e._root:null,i,[n.value])}function V_(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 U_(t,e,i){const n=i_(t),s=t.value;Ob(n,(t,n)=>{U_(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new B_(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const $_=Symbol("INITIAL_VALUE");function H_(){return Vo(t=>ym(...t.map(t=>t.pipe(oi(1),on($_)))).pipe(Wf((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==$_)return t;if(n===$_&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||E_(n))return n}return t},t)},$_),Je(t=>t!==$_),Object(ii.a)(t=>E_(t)?t:!0===t),oi(1)))}function q_(t,e){return null!==t&&e&&e(new ub(t)),Le(!0)}function G_(t,e){return null!==t&&e&&e(new hb(t)),Le(!0)}function Y_(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Le(n.map(n=>po(()=>{const s=V_(n,e,i);let a;if(function(t){return t&&D_(t.canActivate)}(s))a=Pb(s.canActivate(e,t));else{if(!D_(s))throw new Error("Invalid CanActivate guard");a=Pb(s(e,t))}return a.pipe(qf())}))).pipe(H_()):Le(!0)}function W_(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=>po(()=>Le(e.guards.map(s=>{const a=V_(s,e.node,i);let r;if(function(t){return t&&D_(t.canActivateChild)}(a))r=Pb(a.canActivateChild(n,t));else{if(!D_(a))throw new Error("Invalid CanActivateChild guard");r=Pb(a(n,t))}return r.pipe(qf())})).pipe(H_())));return Le(s).pipe(H_())}class Q_{}class K_{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=J_(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new o_([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new e_(i,e),s=new l_(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=r_(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=Lb(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 Q_))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new Q_}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new Q_;if((t.outlet||"primary")!==n)throw new Q_;let s,a=[],r=[];if("**"===t.path){const a=i.length>0?Ab(i).parameters:{};s=new o_(i,a,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,iy(t),n,t.component,t,X_(e),Z_(e)+i.length,ny(t))}else{const o=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new Q_;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||yb)(i,t,e);if(!n)throw new Q_;const s={};Ob(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=o.consumedSegments,r=i.slice(o.lastChild),s=new o_(a,o.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,iy(t),n,t.component,t,X_(e),Z_(e)+a.length,ny(t))}const o=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=J_(e,a,r,o,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(o,l);return[new e_(s,t)]}if(0===o.length&&0===c.length)return[new e_(s,[])];const h=this.processSegment(o,l,c,"primary");return[new e_(s,h)]}}function X_(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Z_(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 J_(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>ty(t,e,i)&&"primary"!==ey(i))}(t,i,n)){const s=new Tb(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"!==ey(a)){const i=new Tb([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[ey(a)]=i}return s}(t,e,n,new Tb(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=>ty(t,e,i))}(t,i,n)){const a=new Tb(t.segments,function(t,e,i,n,s,a){const r={};for(const o of n)if(ty(t,i,o)&&!s[ey(o)]){const i=new Tb([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===a?t.segments.length:e.length,r[ey(o)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}const a=new Tb(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}function ty(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function ey(t){return t.outlet||"primary"}function iy(t){return t.data||{}}function ny(t){return t.resolve||{}}function sy(t,e,i,n){const s=V_(t,e,n);return Pb(s.resolve?s.resolve(e,i):s(e,i))}function ay(t){return function(e){return e.pipe(Vo(e=>{const i=t(e);return i?Object(_s.a)(i).pipe(Object(ii.a)(()=>e)):Object(_s.a)([e])}))}}class ry{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const oy=new s.v("ROUTES");class ly{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 vb(Eb(n.injector.get(oy)).map(Cb),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(_s.a)(this.loader.load(t)):Pb(t()).pipe(Object(ud.a)(t=>t instanceof s.B?Le(t):Object(_s.a)(this.compiler.compileModuleAsync(t))))}}class cy{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function hy(t){throw t}function dy(t,e,i){return e.parse("/")}function uy(t,e){return Le(null)}let my=(()=>{class t{constructor(t,e,i,n,a,r,o,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 Re.a,this.errorHandler=hy,this.malformedUriErrorHandler=dy,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:uy,afterPreactivation:uy},this.urlHandlingStrategy=new cy,this.routeReuseStrategy=new ry,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 Ib(new Tb([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ly(r,o,t=>this.triggerEvent(new lb(t)),t=>this.triggerEvent(new cb(t))),this.routerState=s_(this.currentUrlTree,this.rootComponentType),this.transitions=new Rf({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)})),Vo(t=>{let i=!1,n=!1;return Le(t).pipe(Ve(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}}),Vo(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(Vo(t=>{const i=this.transitions.getValue();return e.next(new Jf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?ai:[t]}),Vo(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,r=this.config,function(t){return t.pipe(Vo(t=>function(t,e,i,n,s){return new T_(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,r).pipe(Object(ii.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Ve(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(ud.a)(a=>function(t,e,i,n,s="emptyOnly",a="legacy"){return new K_(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),Ve(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Ve(t=>{const i=new nb(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:r}=t,o=new Jf(i,this.serializeUrl(n),s,a);e.next(o);const l=s_(n,this.rootComponentType).snapshot;return Le(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ai}),ay(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!r})}),Ve(t=>{const e=new sb(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:j_(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(ud.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:r}}=i;return 0===r.length&&0===a.length?Le(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(_s.a)(t).pipe(Object(ud.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 r=V_(a,e,s);let o;if(function(t){return t&&D_(t.canDeactivate)}(r))o=Pb(r.canDeactivate(t,e,i,n));else{if(!D_(r))throw new Error("Invalid CanDeactivate guard");o=Pb(r(t,e,i,n))}return o.pipe(qf())})).pipe(H_()):Le(!0)}(t.component,t.route,i,e,n)),qf(t=>!0!==t,!0))}(r,n,s,t).pipe(Object(ud.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(_s.a)(e).pipe(md(e=>Object(_s.a)([G_(e.route.parent,n),q_(e.route,n),W_(t,e.path,i),Y_(t,e.route,i)]).pipe(an(),qf(t=>!0!==t,!0))),qf(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)),Ve(t=>{if(E_(t.guardsResult)){const e=_b(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Ve(t=>{const e=new ab(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 eb(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),ay(t=>{if(t.guards.canActivateChecks.length)return Le(t).pipe(Ve(t=>{const e=new rb(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(ud.a)(t=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=t;return s.length?Object(_s.a)(s).pipe(md(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 sy(t[a],e,i,n).pipe(Object(ii.a)(t=>({[a]:t})))}const a={};return Object(_s.a)(s).pipe(Object(ud.a)(s=>sy(t[s],e,i,n).pipe(Object(ii.a)(t=>(a[s]=t,t))))).pipe(Hf(),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),r_(t,i).resolve),null)))}(t.route,n,e,i)),function(t,e){return arguments.length>=2?function(i){return Object(Xf.a)(Wf(t,e),Tf(1),jf(e))(i)}:function(e){return Object(Xf.a)(Wf((e,i,n)=>t(e,i,n+1)),Tf(1))(e)}}((t,e)=>t),Object(ii.a)(e=>t)):Le(t)}))}),Ve(t=>{const e=new ob(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,i}),ay(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!r})}),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 e_(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 e_(n,a)}}var s}(t,e._root,i?i._root:void 0);return new n_(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Ve(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,r=t=>this.triggerEvent(t),Object(ii.a)(t=>(new C_(a,t.targetRouterState,t.currentRouterState,r).activate(s),t))),Ve({next(){i=!0},complete(){i=!0}}),ld(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new eb(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}),ad(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=E_(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new eb(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 ib(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,r}))}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){wb(t),this.config=t.map(Cb),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:r,queryParamsHandling:o,preserveFragment:l}=e;Object(s.eb)()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=i||this.routerState.root,h=l?this.currentUrlTree.fragment:a;let d=null;if(o)switch(o){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=r?this.currentUrlTree.queryParams:n||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,i,n,s){if(0===i.length)return p_(e.root,e.root,e,n,s);const a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new g_(!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 Ob(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 g_(i,e,n)}(i);if(a.toRoot())return p_(e.root,new Tb([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new f_(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new f_(i.snapshot._urlSegment,!0,0);const n=m_(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 f_(n,!1,s-a)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(a,e,t),o=r.processChildren?y_(r.segmentGroup,r.index,a.commands):__(r.segmentGroup,r.index,a.commands);return p_(r.segmentGroup,o,e,n,s)}(c,this.currentUrlTree,t,d,h)}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=E_(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 tb(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 r,o,l;s?(r=s.resolve,o=s.reject,l=s.promise):l=new Promise((t,e)=>{r=t,o=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:r,reject:o,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})(),py=(()=>{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:fy(this.skipLocationChange),replaceUrl:fy(this.replaceUrl),state:this.state};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:fy(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:fy(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(my),s.yc(a_),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})(),gy=(()=>{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 tb&&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:fy(this.skipLocationChange),replaceUrl:fy(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:fy(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:fy(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(my),s.yc(a_),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 fy(t){return""===t||!!t}let by=(()=>{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 tb&&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(my),s.yc(s.q),s.yc(s.L),s.yc(py,8),s.yc(gy,8))},t.\u0275dir=s.tc({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,py,!0),s.qc(i,gy,!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 _y{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new yy,this.attachRef=null}}class yy{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 _y,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let vy=(()=>{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 wy(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(yy),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 wy{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===a_?this.route:t===yy?this.childContexts:this.parent.get(t,e)}}class xy{}class ky{preload(t,e){return Le(null)}}let Cy=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ly(e,i,e=>t.triggerEvent(new lb(e)),e=>t.triggerEvent(new cb(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Je(t=>t instanceof tb),md(()=>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(_s.a)(i).pipe(Object(sn.a)(),Object(ii.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(ud.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(my),s.Mc(s.C),s.Mc(s.k),s.Mc(s.w),s.Mc(xy))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Sy=(()=>{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 Jf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof tb&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof pb&&(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 pb(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 Dy=new s.v("ROUTER_CONFIGURATION"),Ey=new s.v("ROUTER_FORROOT_GUARD"),Ay=[ye.n,{provide:Nb,useClass:zb},{provide:my,useFactory:function(t,e,i,n,s,a,r,o={},l,c){const h=new my(null,t,e,i,n,s,a,Eb(r));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),o.errorHandler&&(h.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(h.malformedUriErrorHandler=o.malformedUriErrorHandler),o.enableTracing){const t=Object(ye.N)();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return o.onSameUrlNavigation&&(h.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.urlUpdateStrategy&&(h.urlUpdateStrategy=o.urlUpdateStrategy),o.relativeLinkResolution&&(h.relativeLinkResolution=o.relativeLinkResolution),h},deps:[Nb,yy,ye.n,s.w,s.C,s.k,oy,Dy,[class{},new s.G],[class{},new s.G]]},yy,{provide:a_,useFactory:function(t){return t.routerState.root},deps:[my]},{provide:s.C,useClass:s.R},Cy,ky,class{preload(t,e){return e().pipe(ad(()=>Le(null)))}},{provide:Dy,useValue:{enableTracing:!1}}];function Oy(){return new s.E("Router",my)}let Py=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Ay,My(e),{provide:Ey,useFactory:Ty,deps:[[my,new s.G,new s.Q]]},{provide:Dy,useValue:i||{}},{provide:ye.o,useFactory:Iy,deps:[ye.D,[new s.u(ye.a),new s.G],Dy]},{provide:Sy,useFactory:Ry,deps:[my,ye.H,Dy]},{provide:xy,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:ky},{provide:s.E,multi:!0,useFactory:Oy},[Fy,{provide:s.d,multi:!0,useFactory:Ly,deps:[Fy]},{provide:zy,useFactory:Ny,deps:[Fy]},{provide:s.b,multi:!0,useExisting:zy}]]}}static forChild(e){return{ngModule:t,providers:[My(e)]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)(s.Mc(Ey,8),s.Mc(my,8))}}),t})();function Ry(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Sy(t,e,i)}function Iy(t,e,i={}){return i.useHash?new ye.h(t,e):new ye.B(t,e)}function Ty(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function My(t){return[{provide:s.a,multi:!0,useValue:t},{provide:oy,multi:!0,useValue:t}]}let Fy=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Re.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(my),n=this.injector.get(Dy);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(Dy),i=this.injector.get(Cy),n=this.injector.get(Sy),a=this.injector.get(my),r=this.injector.get(s.g);t===r.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),a.resetRootComponentType(r.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 Ly(t){return t.appInitializer.bind(t)}function Ny(t){return t.bootstrapListener.bind(t)}const zy=new s.v("Router Initializer");let By=(()=>{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=Pf,this.settings_changed=new Rf(!1),this.debugMode=!1,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(s.eb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/")}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,r=null){return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:r})}makeMP4(t,e,i,n=null,s=null,a=null,r=null){return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:r})}getFileStatusMp3(t){return this.http.post(this.path+"fileStatusMp3",{name:t})}getFileStatusMp4(t){return this.http.post(this.path+"fileStatusMp4",{name:t})}loadNavItems(){return Object(s.eb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config")}setConfig(t){return this.http.post(this.path+"setConfig",{new_config_file:t})}deleteFile(t,e,i=!1){return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{name:t,blacklistMode:i})}getMp3s(){return this.http.post(this.path+"getMp3s",{})}getMp4s(){return this.http.post(this.path+"getMp4s",{})}downloadFileFromServer(t,e,i=null,n=null){return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n},{responseType:"blob"})}downloadArchive(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob"})}getFileInfo(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i})}isPinSet(){return this.http.post(this.path+"isPinSet",{})}setPin(t){return this.http.post(this.path+"setPin",{pin:t})}checkPin(t){return this.http.post(this.path+"checkPin",{input_pin:t})}createPlaylist(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n})}updatePlaylist(t,e,i){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:i})}removePlaylist(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e})}createSubscription(t,e,i=null){return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i})}unsubscribe(t,e=!1){return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e})}deleteSubscriptionFile(t,e,i){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i})}getSubscription(t){return this.http.post(this.path+"getSubscription",{id:t})}getAllSubscriptions(){return this.http.post(this.path+"getAllSubscriptions",{})}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Pd),s.Mc(my),s.Mc(ye.e))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();si.a.of=Le;class jy{constructor(t){this.value=t}call(t,e){return e.subscribe(new Vy(t,this.value))}}class Vy extends ze.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Uy(t,e,i){return Ve(t,e,i)(this)}function $y(){return Vo($f.a)(this)}function Hy(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 qy(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 Gy(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 jy(t))}(t)(this)},i("XypG"),si.a.fromEvent=fo,si.a.prototype.filter=function(t,e){return Je(t,e)(this)},si.a.prototype.debounceTime=function(t,e=We){return Qe(t,e)(this)},si.a.prototype.do=Uy,si.a.prototype._do=Uy,si.a.prototype.switch=$y,si.a.prototype._switch=$y;let Yy=(()=>{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(By),s.yc(th),s.yc(Jc),s.yc(Rg))},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,Hy,2,1,"h4",0),s.Dc(1,"mat-dialog-content"),s.Dc(2,"div",1),s.td(3,qy,3,2,"div",2),s.td(4,Gy,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,lh,ch,ds,oh,Pc,vu,Ds,Ts,Va,ep],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),t})();const Wy={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"}},Qy={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"}},Ky={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 Xy,Zy,Jy,tv,ev,iv,nv,sv;function av(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 rv(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 ov(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,rv,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)}}Xy=$localize`:Modify args title␟d9e83ac17026e70ef6e9c0f3240a3b2450367f40␟3653857180335075556:Modify youtube-dl args`,Zy=$localize`:Simulated args title␟7fc1946abe2b40f60059c6cd19975d677095fd19␟3319938540903314395:Simulated new args`,Jy=$localize`:Add arg card title␟0b71824ae71972f236039bed43f8d2323e8fd570␟7066397187762906016:Add an arg`,tv=$localize`:Search args by category button␟c8b0e59eb491f2ac7505f0fbab747062e6b32b23␟827176536271704947:Search by category`,ev=$localize`:Use arg value checkbox␟9eeb91caef5a50256dd87e1c4b7b3e8216479377␟5487374754798278253:Use arg value`,iv=$localize`:Search args by category button␟7de2451ed3fb8d8b847979bd3f0c740b970f167b␟1014075402717090995:Add arg`,nv=$localize`:Arg modifier cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,sv=$localize`:Arg modifier modify button␟b2623aee44b70c9a4ba1fce16c8a593b0a4c7974␟3251759404563225821:Modify`;const lv=["placeholder",$localize`:Arg value placeholder␟25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd␟9086775160067017111:Arg value`],cv=function(){return{standalone:!0}};function hv(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,lv),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,cv))("disabled",!t.secondArgEnabled)("ngModel",t.secondArg)}}let dv=(()=>{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})(),uv=(()=>{class t{constructor(t,e,i){this.data=t,this.dialogRef=e,this.dialog=i,this.myGroup=new Aa,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Aa,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(on(""),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=Ky,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e);this.availableArgs=i,this.argsByCategory=t,this.argsInfo=Qy}setFirstArg(t){this.stateCtrl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(th),s.yc(Jc),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-arg-modifier-dialog"]],features:[s.jc([dv])],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,Xy),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,Zy),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,Jy),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,av,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,ov,6,3,"ng-container",13),s.Vc(28,"keyvalue"),s.Cc(),s.Dc(29,"button",14),s.Bc(30),s.Hc(31,tv),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,ev),s.Ac(),s.Cc(),s.Cc(),s.td(36,hv,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,iv),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,nv),s.Ac(),s.Cc(),s.Dc(45,"button",19),s.Bc(46),s.Hc(47,sv),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,cv))("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:[oh,lh,Yr,Pc,vu,Ua,Ms,Ta,qc,Ds,Ts,qa,jc,ye.s,dm,ds,gm,oo,Va,ye.t,ch,rh,es,Lm,ru,am],pipes:[ye.b,ye.l,dv],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),t})();var mv,pv,gv,fv,bv,_v,yv,vv,wv,xv,kv,Cv;function Sv(t,e){if(1&t&&(s.Dc(0,"mat-option",8),s.vd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Uc();s.ad("value",t),s.kc(1),s.xd(" ",i.all_locales[t].nativeName," ")}}mv=$localize`:Settings title␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,pv=$localize`:Host settings title␟fe22ca53e651df951dac25b67c17894b0980f767␟6641024648411549335:Host`,gv=$localize`:Encryption settings title␟948758e1412bb2ecdb98e3a4f1cbb6d7458456f2␟8255877266497322342:Encryption`,fv=$localize`:Downloader settings title␟0ba25ad86a240576c4f20a2fada4722ebba77b1e␟5385813889746830226:Downloader`,bv=$localize`:Extra settings title␟d5f69691f9f05711633128b5a3db696783266b58␟7419412790104674886:Extra`,_v=$localize`:API settings title␟e351b40b3869a5c7d19c3d4918cb1ac7aaab95c4␟8942351587754185907:API`,yv=$localize`:Themes settings title␟60c855c323706a04ccd2ff22d634bde9b6233bbf␟2798270190074840767:Themes`,vv=$localize`:Subscriptions settings title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,wv=$localize`:Extensions settings title␟0feab442129ba239106e55cf029069d3d4adeadc␟3139147897029202869:Extensions`,xv=$localize`:Advanced settings title␟bc2e854e111ecf2bd7db170da5e3c2ed08181d88␟6201638315245239510:Advanced`,kv=$localize`:Settings save button␟52c9a103b812f258bcddc3d90a6e3f46871d25fe␟3768927257183755959:Save`,Cv=$localize`:Settings cancel and close button␟fe8fd36dbf5deee1d56564965787a782a66eba44␟1370226763724525124:{VAR_SELECT, select, true {Close} false {Cancel} other {otha}}`,Cv=s.Lc(Cv,{VAR_SELECT:"\ufffd0\ufffd"});const Dv=["placeholder",$localize`:URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var Ev;Ev=$localize`:URL setting input hint␟54c512cca1923ab72faf1a0bd98d3d172469629a␟5463756323010996100:URL this app will be accessed from, without the port.`;const Av=["placeholder",$localize`:Port input placeholder␟cb2741a46e3560f6bc6dfd99d385e86b08b26d72␟6117946241126833991:Port`];var Ov,Pv;function Rv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Jc(5,Dv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Host.url=e})),s.Cc(),s.Dc(6,"mat-hint"),s.Bc(7),s.Hc(8,Ev),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(9,"div",14),s.Dc(10,"mat-form-field",12),s.Dc(11,"input",13),s.Jc(12,Av),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Host.port=e})),s.Cc(),s.Dc(13,"mat-hint"),s.Bc(14),s.Hc(15,Ov),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(4),s.ad("ngModel",t.new_config.Host.url),s.kc(7),s.ad("ngModel",t.new_config.Host.port)}}Ov=$localize`:Port setting input hint␟22e8f1d0423a3b784fe40fab187b92c06541b577␟12816402920404434:The desired port. Default is 17442.`,Pv=$localize`:Use encryption setting␟cbe16a57be414e84b6a68309d08fad894df797d6␟5503616660881623306:Use encryption`;const Iv=["placeholder",$localize`:Cert file path input placeholder␟0c1875a79b7ecc792cc1bebca3e063e40b5764f9␟2857997144709025078:Cert file path`],Tv=["placeholder",$localize`:Key file path input placeholder␟736551b93461d2de64b118cf4043eee1d1c2cb2c␟2320113463068090884:Key file path`];function Mv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Encryption["use-encryption"]=e})),s.Bc(4),s.Hc(5,Pv),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",16),s.Jc(9,Iv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Encryption["cert-file-path"]=e})),s.Cc(),s.Cc(),s.Cc(),s.Dc(10,"div",11),s.Dc(11,"mat-form-field",12),s.Dc(12,"input",16),s.Jc(13,Tv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Encryption["key-file-path"]=e})),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();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"])}}const Fv=["placeholder",$localize`:Audio folder path input placeholder␟ab2756805742e84ad0cc0468f4be2d8aa9f855a5␟3475061775640312711:Audio folder path`];var Lv;Lv=$localize`:Aduio path setting input hint␟c2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca␟3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder.`;const Nv=["placeholder",$localize`:Video folder path input placeholder␟46826331da1949bd6fb74624447057099c9d20cd␟3354965786971797948:Video folder path`];var zv;zv=$localize`:Video path setting input hint␟17c92e6d47a213fa95b5aa344b3f258147123f93␟2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder.`;const Bv=["placeholder",$localize`:Custom args input placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var jv,Vv;function Uv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Jc(5,Fv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Downloader["path-audio"]=e})),s.Cc(),s.Dc(6,"mat-hint"),s.Bc(7),s.Hc(8,Lv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(9,"div",14),s.Dc(10,"mat-form-field",12),s.Dc(11,"input",13),s.Jc(12,Nv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Downloader["path-video"]=e})),s.Cc(),s.Dc(13,"mat-hint"),s.Bc(14),s.Hc(15,zv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(16,"div",14),s.Dc(17,"mat-form-field",12),s.Dc(18,"textarea",17),s.Jc(19,Bv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Downloader.custom_args=e})),s.Cc(),s.Dc(20,"mat-hint"),s.Bc(21),s.Hc(22,jv),s.Ac(),s.Cc(),s.Cc(),s.Dc(23,"button",18),s.Qc("click",(function(){return s.ld(t),s.Uc().openArgsModifierDialog()})),s.vd(24,"Modify args"),s.Cc(),s.Cc(),s.Dc(25,"div",14),s.Dc(26,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Downloader.use_youtubedl_archive=e})),s.Bc(27),s.Hc(28,Vv),s.Ac(),s.Cc(),s.Dc(29,"p"),s.vd(30,"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();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(8),s.ad("ngModel",t.new_config.Downloader.use_youtubedl_archive)}}jv=$localize`:Custom args setting input hint␟f41145afc02fd47ef0576ac79acd2c47ebbf4901␟8874045538582126918:Global custom args for downloads on the home page.`,Vv=$localize`:Use youtubedl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`;const $v=["placeholder",$localize`:Top title input placeholder␟61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095␟1974727764328838461:Top title`];var Hv,qv,Gv,Yv,Wv,Qv,Kv;function Xv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Jc(5,$v),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.title_top=e})),s.Cc(),s.zc(6,"mat-hint"),s.Cc(),s.Cc(),s.Dc(7,"div",11),s.Dc(8,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.file_manager_enabled=e})),s.Bc(9),s.Hc(10,Hv),s.Ac(),s.Cc(),s.Cc(),s.Dc(11,"div",11),s.Dc(12,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.allow_quality_select=e})),s.Bc(13),s.Hc(14,qv),s.Ac(),s.Cc(),s.Cc(),s.Dc(15,"div",11),s.Dc(16,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.download_only_mode=e})),s.Bc(17),s.Hc(18,Gv),s.Ac(),s.Cc(),s.Cc(),s.Dc(19,"div",11),s.Dc(20,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.allow_multi_download_mode=e})),s.Bc(21),s.Hc(22,Yv),s.Ac(),s.Cc(),s.Cc(),s.Dc(23,"div",11),s.Dc(24,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.settings_pin_required=e})),s.Bc(25),s.Hc(26,Wv),s.Ac(),s.Cc(),s.Dc(27,"button",19),s.Qc("click",(function(){return s.ld(t),s.Uc().setNewPin()})),s.Bc(28),s.Hc(29,Qv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();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)}}Hv=$localize`:File manager enabled setting␟78d3531417c0d4ba4c90f0d4ae741edc261ec8df␟488432415925701010:File manager enabled`,qv=$localize`:Allow quality seelct setting␟c33bd5392b39dbed36b8e5a1145163a15d45835f␟2252491142626131446:Allow quality select`,Gv=$localize`:Download only mode setting␟bda5508e24e0d77debb28bcd9194d8fefb1cfb92␟2765258699599899343:Download only mode`,Yv=$localize`:Allow multi-downloade mode setting␟09d31c803a7252658694e1e3176b97f5655a3fe3␟1457782201611151239:Allow multi-download mode`,Wv=$localize`:Require pin for settings setting␟d8b47221b5af9e9e4cd5cb434d76fc0c91611409␟8888472341408176239:Require pin for settings`,Qv=$localize`:Set new pin button␟f5ec7b2cdf87d41154f4fcbc86e856314409dcb9␟5079149426228636902:Set New Pin`,Kv=$localize`:Use YouTube API setting␟d5d7c61349f3b0859336066e6d453fc35d334fe5␟921806454742404419:Use YouTube API`;const Zv=["placeholder",$localize`:Youtube API Key setting placeholder␟ce10d31febb3d9d60c160750570310f303a22c22␟8352766560503075759:Youtube API Key`];var Jv,tw,ew,iw,nw;function sw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.API.use_youtube_API=e})),s.Bc(4),s.Hc(5,Kv),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",20),s.Jc(9,Zv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.API.youtube_API_key=e})),s.Cc(),s.Dc(10,"mat-hint"),s.Dc(11,"a",21),s.Bc(12),s.Hc(13,Jv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();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 aw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-select",22),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Themes.default_theme=e})),s.Dc(4,"mat-option",23),s.Bc(5),s.Hc(6,tw),s.Ac(),s.Cc(),s.Dc(7,"mat-option",24),s.Bc(8),s.Hc(9,ew),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(10,"div",14),s.Dc(11,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Themes.allow_theme_change=e})),s.Bc(12),s.Hc(13,iw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(3),s.ad("ngModel",t.new_config.Themes.default_theme),s.kc(8),s.ad("ngModel",t.new_config.Themes.allow_theme_change)}}Jv=$localize`:Youtube API Key setting hint␟8602e313cdfa7c4cc475ccbe86459fce3c3fd986␟3231872778665115286:Generating a key is easy!`,tw=$localize`:Default theme label␟ff7cee38a2259526c519f878e71b964f41db4348␟5607669932062416162:Default`,ew=$localize`:Dark theme label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,iw=$localize`:Allow theme change setting␟7a6bacee4c31cb5c0ac2d24274fb4610d8858602␟8325128210832071900:Allow theme change`,nw=$localize`:Allow subscriptions setting␟4e3120311801c4acd18de7146add2ee4a4417773␟5800596718492516574:Allow subscriptions`;const rw=["placeholder",$localize`:Subscriptions base path input setting placeholder␟4bee2a4bef2d26d37c9b353c278e24e5cd309ce3␟6919010605968316948:Subscriptions base path`];var ow;ow=$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 lw=["placeholder",$localize`:Check interval input setting placeholder␟5bef4b25ba680da7fff06b86a91b1fc7e6a926e3␟5349606203941321178:Check interval`];var cw,hw,dw,uw,mw,pw,gw,fw,bw,_w,yw,vw,ww,xw,kw;function Cw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Subscriptions.allow_subscriptions=e})),s.Bc(4),s.Hc(5,nw),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",16),s.Jc(9,rw),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Subscriptions.subscriptions_base_path=e})),s.Cc(),s.Dc(10,"mat-hint"),s.Bc(11),s.Hc(12,ow),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(13,"div",25),s.Dc(14,"mat-form-field",12),s.Dc(15,"input",16),s.Jc(16,lw),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Subscriptions.subscriptions_check_interval=e})),s.Cc(),s.Dc(17,"mat-hint"),s.Bc(18),s.Hc(19,cw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(20,"div",14),s.Dc(21,"mat-checkbox",26),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),s.Bc(22),s.Hc(23,hw),s.Ac(),s.Cc(),s.Dc(24,"p"),s.Dc(25,"a",27),s.Bc(26),s.Hc(27,dw),s.Ac(),s.Cc(),s.vd(28,"\xa0"),s.Bc(29),s.Hc(30,uw),s.Ac(),s.Cc(),s.Dc(31,"p"),s.Bc(32),s.Hc(33,mw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();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 Sw(t,e){if(1&t&&(s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"h6"),s.vd(4,"Chrome"),s.Cc(),s.Dc(5,"p"),s.Dc(6,"a",28),s.Bc(7),s.Hc(8,pw),s.Ac(),s.Cc(),s.vd(9,"\xa0"),s.Bc(10),s.Hc(11,gw),s.Ac(),s.Cc(),s.Dc(12,"p"),s.Bc(13),s.Hc(14,fw),s.Ac(),s.Cc(),s.zc(15,"mat-divider",29),s.Cc(),s.Dc(16,"div",11),s.Dc(17,"h6"),s.vd(18,"Firefox"),s.Cc(),s.Dc(19,"p"),s.Dc(20,"a",30),s.Bc(21),s.Hc(22,bw),s.Ac(),s.Cc(),s.vd(23,"\xa0"),s.Bc(24),s.Hc(25,_w),s.Ac(),s.Cc(),s.Dc(26,"p"),s.Dc(27,"a",31),s.Bc(28),s.Hc(29,yw),s.Ac(),s.Cc(),s.vd(30,"\xa0"),s.Bc(31),s.Hc(32,vw),s.Ac(),s.Cc(),s.zc(33,"mat-divider",29),s.Cc(),s.Dc(34,"div",11),s.Dc(35,"h6"),s.vd(36,"Bookmarklet"),s.Cc(),s.Dc(37,"p"),s.Bc(38),s.Hc(39,ww),s.Ac(),s.Cc(),s.Dc(40,"p"),s.Dc(41,"a",32),s.vd(42,"YTDL-Bookmarklet"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t){const t=s.Uc();s.kc(41),s.ad("href",t.generated_bookmarklet_code,s.nd)}}function Dw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Advanced.use_default_downloading_agent=e})),s.Bc(4),s.Hc(5,xw),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",33),s.Dc(7,"mat-select",34),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Advanced.custom_downloading_agent=e})),s.Dc(8,"mat-option",35),s.vd(9,"Select a downloader"),s.Cc(),s.Dc(10,"mat-option",36),s.vd(11,"aria2c"),s.Cc(),s.Dc(12,"mat-option",37),s.vd(13,"avconv"),s.Cc(),s.Dc(14,"mat-option",38),s.vd(15,"axel"),s.Cc(),s.Dc(16,"mat-option",39),s.vd(17,"curl"),s.Cc(),s.Dc(18,"mat-option",40),s.vd(19,"ffmpeg"),s.Cc(),s.Dc(20,"mat-option",41),s.vd(21,"httpie"),s.Cc(),s.Dc(22,"mat-option",42),s.vd(23,"wget"),s.Cc(),s.Cc(),s.Cc(),s.Dc(24,"div",43),s.Dc(25,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Advanced.allow_advanced_download=e})),s.Bc(26),s.Hc(27,kw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(3),s.ad("ngModel",t.new_config.Advanced.use_default_downloading_agent),s.kc(4),s.ad("disabled",t.new_config.Advanced.use_default_downloading_agent)("ngModel",t.new_config.Advanced.custom_downloading_agent),s.kc(18),s.ad("ngModel",t.new_config.Advanced.allow_advanced_download)}}cw=$localize`:Check interval setting input hint␟0f56a7449b77630c114615395bbda4cab398efd8␟1580663059483543498:Unit is seconds, only include numbers.`,hw=$localize`:Use youtube-dl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,dw=$localize`:youtube-dl archive explanation prefix link␟fa9fe4255231dd1cc6b29d3d254a25cb7c764f0f␟6707903974690925048:With youtube-dl's archive`,uw=$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.`,mw=$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.`,pw=$localize`:Chrome ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,gw=$localize`:Chrome click here suffix␟7f09776373995003161235c0c8d02b7f91dbc4df␟2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually.`,fw=$localize`:Chrome setup suffix␟5b5296423906ab3371fdb2b5a5aaa83acaa2ee52␟8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL.`,bw=$localize`:Firefox ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,_w=$localize`:Firefox click here suffix␟9a2ec6da48771128384887525bdcac992632c863␟8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page.`,yw=$localize`:Firefox setup prefix link␟eb81be6b49e195e5307811d1d08a19259d411f37␟3930152199106610543:Detailed setup instructions.`,vw=$localize`:Firefox setup suffix␟cb17ff8fe3961cf90f44bee97c88a3f3347a7e55␟5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL.`,ww=$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.`,xw=$localize`:Use default downloading agent setting␟5fab47f146b0a4b809dcebf3db9da94df6299ea1␟1862425442411516950:Use default downloading agent`,kw=$localize`:Allow advanced downloading setting␟dc3d990391c944d1fbfc7cfb402f7b5e112fb3a8␟4097058672287489906:Allow advanced download`;let Ew=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.sanitizer=i,this.dialog=n,this.all_locales=Wy,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._settingsSame=!0}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())}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(Yy,{data:{resetMode:!0}})}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))%7D)()`}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(uv,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe(t=>{t&&(this.new_config.Downloader.custom_args=t)})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Rg),s.yc(n.b),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-settings"]],decls:75,vars:14,consts:[["mat-dialog-title",""],[1,"locale-select",3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"settings-expansion-panel"],["class","container-fluid",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],[3,"value"],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-4"],["color","accent",3,"ngModel","ngModelChange"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-stroked-button","",2,"margin-left","12px",3,"click"],["mat-stroked-button","",2,"margin-left","15px",3,"disabled","click"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["color","accent",2,"width","100px",3,"ngModel","ngModelChange"],["value","default"],["value","dark"],[1,"col-12","mt-5"],["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"],["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"],["target","_blank",3,"href"],[1,"col-12","my-2"],["color","accent",2,"width","200px",3,"disabled","ngModel","ngModelChange"],["value",""],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,mv),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div"),s.vd(4," Language:\xa0\xa0\xa0"),s.Dc(5,"mat-select",1),s.Qc("selectionChange",(function(t){return e.localeSelectChanged(t.value)}))("valueChange",(function(t){return e.initialLocale=t})),s.td(6,Sv,2,2,"mat-option",2),s.Cc(),s.Cc(),s.Dc(7,"mat-expansion-panel",3),s.Dc(8,"mat-expansion-panel-header"),s.Dc(9,"mat-panel-title"),s.Bc(10),s.Hc(11,pv),s.Ac(),s.Cc(),s.Cc(),s.td(12,Rv,16,2,"div",4),s.Cc(),s.Dc(13,"mat-expansion-panel",3),s.Dc(14,"mat-expansion-panel-header"),s.Dc(15,"mat-panel-title"),s.Bc(16),s.Hc(17,gv),s.Ac(),s.Cc(),s.Cc(),s.td(18,Mv,14,5,"div",4),s.Cc(),s.Dc(19,"mat-expansion-panel",3),s.Dc(20,"mat-expansion-panel-header"),s.Dc(21,"mat-panel-title"),s.Bc(22),s.Hc(23,fv),s.Ac(),s.Cc(),s.Cc(),s.td(24,Uv,31,4,"div",4),s.Cc(),s.Dc(25,"mat-expansion-panel",3),s.Dc(26,"mat-expansion-panel-header"),s.Dc(27,"mat-panel-title"),s.Bc(28),s.Hc(29,bv),s.Ac(),s.Cc(),s.Cc(),s.td(30,Xv,30,7,"div",4),s.Cc(),s.Dc(31,"mat-expansion-panel",3),s.Dc(32,"mat-expansion-panel-header"),s.Dc(33,"mat-panel-title"),s.Bc(34),s.Hc(35,_v),s.Ac(),s.Cc(),s.Cc(),s.td(36,sw,14,3,"div",4),s.Cc(),s.Dc(37,"mat-expansion-panel",3),s.Dc(38,"mat-expansion-panel-header"),s.Dc(39,"mat-panel-title"),s.Bc(40),s.Hc(41,yv),s.Ac(),s.Cc(),s.Cc(),s.td(42,aw,14,2,"div",4),s.Cc(),s.Dc(43,"mat-expansion-panel",3),s.Dc(44,"mat-expansion-panel-header"),s.Dc(45,"mat-panel-title"),s.Bc(46),s.Hc(47,vv),s.Ac(),s.Cc(),s.Cc(),s.td(48,Cw,34,7,"div",4),s.Cc(),s.Dc(49,"mat-expansion-panel",3),s.Dc(50,"mat-expansion-panel-header"),s.Dc(51,"mat-panel-title"),s.Bc(52),s.Hc(53,wv),s.Ac(),s.Cc(),s.Cc(),s.td(54,Sw,43,1,"div",4),s.Cc(),s.Dc(55,"mat-expansion-panel",3),s.Dc(56,"mat-expansion-panel-header"),s.Dc(57,"mat-panel-title"),s.Bc(58),s.Hc(59,xv),s.Ac(),s.Cc(),s.Cc(),s.td(60,Dw,28,4,"div",4),s.Cc(),s.Cc(),s.Dc(61,"mat-dialog-actions"),s.Dc(62,"div",5),s.Dc(63,"button",6),s.Qc("click",(function(){return e.saveSettings()})),s.Dc(64,"mat-icon"),s.vd(65,"done"),s.Cc(),s.vd(66,"\xa0\xa0 "),s.Bc(67),s.Hc(68,kv),s.Ac(),s.Cc(),s.Dc(69,"button",7),s.Dc(70,"mat-icon"),s.vd(71,"cancel"),s.Cc(),s.vd(72,"\xa0\xa0 "),s.Dc(73,"span"),s.Hc(74,Cv),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t&&(s.kc(5),s.ad("value",e.initialLocale),s.kc(1),s.ad("ngForOf",e.supported_locales),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(3),s.ad("disabled",e.settingsSame()),s.kc(6),s.ad("mat-dialog-close",!1),s.kc(5),s.Kc(e.settingsAreTheSame+""),s.Ic(74))},directives:[oh,lh,Tp,ye.s,Rh,Th,Fh,ye.t,ch,ds,ru,rh,es,Pc,vu,Ds,nr,Ts,Va,wc,oo,xu],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.locale-select[_ngcontent-%COMP%]{margin-bottom:10px;width:130px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}"]}),t})();var Aw,Ow,Pw,Rw,Iw,Tw,Mw,Fw;Aw=$localize`:About dialog title␟cec82c0a545f37420d55a9b6c45c20546e82f94e␟8863443674032361244:About YoutubeDL-Material`,Ow=$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.`,Pw=$localize`:About second paragraph␟c072eebcb5b1f1eef6fb2ee1756e839dd302f3de␟4961589587343641747: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 below.`,Rw=$localize`:About bug prefix␟b33536f59b94ec935a16bd6869d836895dc5300c␟3353248286278121979:Found a bug or have a suggestion?`,Iw=$localize`:About bug click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,Tw=$localize`:About bug suffix␟e1f398f38ff1534303d4bb80bd6cece245f24016␟1971178156716923826:to create an issue!`,Mw=$localize`:Version label␟a45e3b05f0529dc5246d70ef62304c94426d4c81␟5296103174605274070:Installed version:`,Fw=$localize`:View latest update␟effdc7dfbbc49c08d25ea1748fca00c38c918abd␟1361429814109482443:View latest update`;let Lw=(()=>{class t{constructor(){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.version="v3.5"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["app-about-dialog"]],decls:38,vars:4,consts:[["mat-dialog-title",""],[2,"margin-bottom","5px"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px","margin-bottom","10px"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,Aw),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"p"),s.Dc(5,"i"),s.vd(6,"YoutubeDL-Material"),s.Cc(),s.vd(7,"\xa0"),s.Bc(8),s.Hc(9,Ow),s.Ac(),s.Cc(),s.Dc(10,"p"),s.Dc(11,"i"),s.vd(12,"YoutubeDL-Material"),s.Cc(),s.vd(13,"\xa0"),s.Bc(14),s.Hc(15,Pw),s.Ac(),s.Cc(),s.Dc(16,"p"),s.Bc(17),s.Hc(18,Rw),s.Ac(),s.vd(19,"\xa0"),s.Dc(20,"a",2),s.Bc(21),s.Hc(22,Iw),s.Ac(),s.Cc(),s.vd(23,"\xa0"),s.Bc(24),s.Hc(25,Tw),s.Ac(),s.Cc(),s.Dc(26,"a",2),s.zc(27,"img",3),s.Cc(),s.Dc(28,"p"),s.Bc(29),s.Hc(30,Mw),s.Ac(),s.vd(31),s.Dc(32,"a",2),s.Bc(33),s.Hc(34,Fw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(35,"mat-dialog-actions"),s.Dc(36,"button",4),s.vd(37,"Close"),s.Cc(),s.Cc()),2&t&&(s.kc(20),s.ad("href",e.issuesLink,s.nd),s.kc(6),s.ad("href",e.projectLink,s.nd),s.kc(5),s.xd("\xa0",e.version," - "),s.kc(1),s.ad("href",e.latestUpdateLink,s.nd))},directives:[oh,lh,ch,ds,rh],styles:["i[_ngcontent-%COMP%]{margin-right:1px}"]}),t})();const Nw=["sidenav"],zw=["hamburgerMenu"];var Bw,jw,Vw,Uw,$w;function Hw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",17,18),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 qw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",19),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 Gw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",11),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,$w),s.Cc(),s.zc(5,"mat-slide-toggle",20),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)}}Bw=$localize`:Settings menu label␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,jw=$localize`:About menu label␟004b222ff9ef9dd4771b777950ca1d0e4cd4348a␟1726363342938046830:About`,Vw=$localize`:Navigation menu Home Page title␟92eee6be6de0b11c924e3ab27db30257159c0a7c␟2821179408673282599:Home`,Uw=$localize`:Navigation menu Subscriptions Page title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,$w=$localize`:Dark mode toggle label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`;let Yw=(()=>{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=Pf,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 Jf?this.navigator=localStorage.getItem("player_navigator"):t instanceof tb&&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(Ew,{width:"80vw"})}openPinDialog(){this.dialog.open(Yy,{}).afterClosed().subscribe(t=>{t&&this.actuallyOpenSettingsDialog()})}openAboutDialog(){this.dialog.open(Lw,{width:"80vw"})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Rg),s.yc(sh),s.yc(my),s.yc(Rl),s.yc(s.q))},t.\u0275cmp=s.sc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.zd(Nw,!0),s.zd(zw,!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:40,vars:9,consts:[[2,"width","100%","height","100%"],["color","primary",1,"top"],["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"],[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"],[2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/subscriptions",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"]],template:function(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",0),s.Dc(1,"div"),s.Dc(2,"mat-toolbar",1),s.Dc(3,"div",2),s.Dc(4,"div",3),s.td(5,Hw,4,0,"button",4),s.td(6,qw,3,0,"button",5),s.Cc(),s.Dc(7,"div",6),s.Dc(8,"div"),s.vd(9),s.Cc(),s.Cc(),s.Dc(10,"div",7),s.Dc(11,"button",8),s.Dc(12,"mat-icon"),s.vd(13,"more_vert"),s.Cc(),s.Cc(),s.Dc(14,"mat-menu",null,9),s.td(16,Gw,6,2,"button",10),s.Dc(17,"button",11),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,Bw),s.Cc(),s.Cc(),s.Dc(22,"button",11),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,jw),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(27,"div",12),s.Dc(28,"mat-sidenav-container",13),s.Dc(29,"mat-sidenav",null,14),s.Dc(31,"mat-nav-list"),s.Dc(32,"a",15),s.Qc("click",(function(){return s.ld(t),s.hd(30).close()})),s.Bc(33),s.Hc(34,Vw),s.Ac(),s.Cc(),s.Dc(35,"a",16),s.Qc("click",(function(){return s.ld(t),s.hd(30).close()})),s.Bc(36),s.Hc(37,Uw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(38,"mat-sidenav-content"),s.zc(39,"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]&&e.allowSubscriptions),s.kc(1),s.ad("ngIf","/player"===e.router.url.split(";")[0]),s.kc(3),s.wd(e.topBarTitle),s.kc(2),s.ad("matMenuTriggerFor",t),s.kc(5),s.ad("ngIf",e.allowThemeChange),s.kc(22),s.sd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.rc)}},directives:[Ng,ye.t,ds,gm,ru,dm,am,tg,Zp,Fu,Vu,gy,Xp,vy,pg],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}"]}),t})(),Ww=(()=>{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})();const Qw=function(){var t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch",t}(),Kw=function(){var t={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return t[t.Basic]="Basic",t[t.Cors]="Cors",t[t.Default]="Default",t[t.Error]="Error",t[t.Opaque]="Opaque",t}(),Xw=function(){var t={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return t[t.NONE]="NONE",t[t.JSON]="JSON",t[t.FORM]="FORM",t[t.FORM_DATA]="FORM_DATA",t[t.TEXT]="TEXT",t[t.BLOB]="BLOB",t[t.ARRAY_BUFFER]="ARRAY_BUFFER",t}(),Zw=function(){var t={Text:0,Json:1,ArrayBuffer:2,Blob:3};return t[t.Text]="Text",t[t.Json]="Json",t[t.ArrayBuffer]="ArrayBuffer",t[t.Blob]="Blob",t}();class Jw{constructor(t){this._headers=new Map,this._normalizedNames=new Map,t&&(t instanceof Jw?t.forEach((t,e)=>{t.forEach(t=>this.append(e,t))}):Object.keys(t).forEach(e=>{const i=Array.isArray(t[e])?t[e]:[t[e]];this.delete(e),i.forEach(t=>this.append(e,t))}))}static fromResponseHeaderString(t){const e=new Jw;return t.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const n=t.slice(0,i),s=t.slice(i+1).trim();e.set(n,s)}}),e}append(t,e){const i=this.getAll(t);null===i?this.set(t,e):i.push(e)}delete(t){const e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)}forEach(t){this._headers.forEach((e,i)=>t(e,this._normalizedNames.get(i),this._headers))}get(t){const e=this.getAll(t);return null===e?null:e.length>0?e[0]:null}has(t){return this._headers.has(t.toLowerCase())}keys(){return Array.from(this._normalizedNames.values())}set(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)}values(){return Array.from(this._headers.values())}toJSON(){const t={};return this._headers.forEach((e,i)=>{const n=[];e.forEach(t=>n.push(...t.split(","))),t[this._normalizedNames.get(i)]=n}),t}getAll(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null}entries(){throw new Error('"entries" method is not implemented on Headers class')}mayBeSetNormalizedName(t){const e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)}}class tx{constructor(t={}){const{body:e,status:i,headers:n,statusText:s,type:a,url:r}=t;this.body=null!=e?e:null,this.status=null!=i?i:null,this.headers=null!=n?n:null,this.statusText=null!=s?s:null,this.type=null!=a?a:null,this.url=null!=r?r:null}merge(t){return new tx({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})}}let ex=(()=>{class t extends tx{constructor(){super({status:200,statusText:"Ok",type:Kw.Default,headers:new Jw})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class ix{}class nx{}function sx(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return Qw.Get;case"POST":return Qw.Post;case"PUT":return Qw.Put;case"DELETE":return Qw.Delete;case"OPTIONS":return Qw.Options;case"HEAD":return Qw.Head;case"PATCH":return Qw.Patch}throw new Error(`Invalid request method. The method "${t}" is not supported.`)}class ax{encodeKey(t){return rx(t)}encodeValue(t){return rx(t)}}function rx(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 ox{constructor(t="",e=new ax){this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t=""){const e=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[n,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)],a=e.get(n)||[];a.push(s),e.set(n,a)}),e}(t)}clone(){const t=new ox("",this.queryEncoder);return t.appendAll(this),t}has(t){return this.paramsMap.has(t)}get(t){const e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null}getAll(t){return this.paramsMap.get(t)||[]}set(t,e){if(null==e)return void this.delete(t);const i=this.paramsMap.get(t)||[];i.length=0,i.push(e),this.paramsMap.set(t,i)}setAll(t){t.paramsMap.forEach((t,e)=>{const i=this.paramsMap.get(e)||[];i.length=0,i.push(t[0]),this.paramsMap.set(e,i)})}append(t,e){if(null==e)return;const i=this.paramsMap.get(t)||[];i.push(e),this.paramsMap.set(t,i)}appendAll(t){t.paramsMap.forEach((t,e)=>{const i=this.paramsMap.get(e)||[];for(let n=0;n{const i=this.paramsMap.get(e)||[];i.length=0;for(let n=0;n{e.forEach(e=>t.push(this.queryEncoder.encodeKey(i)+"="+this.queryEncoder.encodeValue(e)))}),t.join("&")}delete(t){this.paramsMap.delete(t)}}class lx{json(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body}text(t="legacy"){if(this._body instanceof ox)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error(`Invalid value for encodingHint: ${t}`)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}arrayBuffer(){return this._body instanceof ArrayBuffer?this._body:function(t){const e=new Uint16Array(t.length);for(let i=0,n=t.length;i=200&&this.status<=299,this.statusText=t.statusText,this.headers=t.headers,this.type=t.type,this.url=t.url}toString(){return`Response with status: ${this.status} ${this.statusText} for URL: ${this.url}`}}const hx=/^\)\]\}',?\n/;class dx{constructor(t,e,i){this.request=t,this.response=new si.a(n=>{const s=e.build();s.open(Qw[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);const a=()=>{let e=1223===s.status?204:s.status,a=null;204!==e&&(a=void 0===s.response?s.responseText:s.response,"string"==typeof a&&(a=a.replace(hx,""))),0===e&&(e=a?200:0);const r=Jw.fromResponseHeaderString(s.getAllResponseHeaders()),o=("responseURL"in(l=s)?l.responseURL:/^X-Request-URL:/m.test(l.getAllResponseHeaders())?l.getResponseHeader("X-Request-URL"):null)||t.url;var l;let c=new tx({body:a,status:e,headers:r,statusText:s.statusText||"OK",url:o});null!=i&&(c=i.merge(c));const h=new cx(c);if(h.ok=(t=>t>=200&&t<300)(e),h.ok)return n.next(h),void n.complete();n.error(h)},r=t=>{let e=new tx({body:t,type:Kw.Error,status:s.status,statusText:s.statusText});null!=i&&(e=i.merge(e)),n.error(new cx(e))};if(this.setDetectedContentType(t,s),null==t.headers&&(t.headers=new Jw),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach((t,e)=>s.setRequestHeader(e,t.join(","))),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case Zw.ArrayBuffer:s.responseType="arraybuffer";break;case Zw.Json:s.responseType="json";break;case Zw.Text:s.responseType="text";break;case Zw.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",r),s.send(this.request.getBody()),()=>{s.removeEventListener("load",a),s.removeEventListener("error",r),s.abort()}})}setDetectedContentType(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case Xw.NONE:break;case Xw.JSON:e.setRequestHeader("content-type","application/json");break;case Xw.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case Xw.TEXT:e.setRequestHeader("content-type","text/plain");break;case Xw.BLOB:const i=t.blob();i.type&&e.setRequestHeader("content-type",i.type)}}}class ux{constructor(t="XSRF-TOKEN",e="X-XSRF-TOKEN"){this._cookieName=t,this._headerName=e}configureRequest(t){const e=Object(ye.N)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)}}let mx=(()=>{class t{constructor(t,e,i){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=i}createConnection(t){return this._xsrfStrategy.configureRequest(t),new dx(t,this._browserXHR,this._baseResponseOptions)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Ww),s.Mc(tx),s.Mc(nx))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class px{get search(){return this.params}set search(t){this.params=t}constructor(t={}){const{method:e,headers:i,body:n,url:s,search:a,params:r,withCredentials:o,responseType:l}=t;this.method=null!=e?sx(e):null,this.headers=null!=i?i:null,this.body=null!=n?n:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(r||a),this.withCredentials=null!=o?o:null,this.responseType=null!=l?l:null}merge(t){return new px({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new Jw(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})}_mergeSearchParams(t){return t?t instanceof ox?t.clone():"string"==typeof t?new ox(t):this._parseParams(t):this.params}_parseParams(t={}){const e=new ox;return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>this._appendParam(i,t,e)):this._appendParam(i,n,e)}),e}_appendParam(t,e,i){"string"!=typeof e&&(e=JSON.stringify(e)),i.append(t,e)}}let gx=(()=>{class t extends px{constructor(){super({method:Qw.Get,headers:new Jw})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class fx extends lx{constructor(t){super();const e=t.url;this.url=t.url;const i=t.params||t.search;if(i){let t;if(t="object"!=typeof i||i instanceof ox?i.toString():function(t){const e=new ox;return Object.keys(t).forEach(i=>{const n=t[i];n&&Array.isArray(n)?n.forEach(t=>e.append(i,t.toString())):e.append(i,n.toString())}),e}(i).toString(),t.length>0){let i="?";-1!=this.url.indexOf("?")&&(i="&"==this.url[this.url.length-1]?"":"&"),this.url=e+i+t}}this._body=t.body,this.method=sx(t.method),this.headers=new Jw(t.headers),this.contentType=this.detectContentType(),this.withCredentials=t.withCredentials,this.responseType=t.responseType}detectContentType(){switch(this.headers.get("content-type")){case"application/json":return Xw.JSON;case"application/x-www-form-urlencoded":return Xw.FORM;case"multipart/form-data":return Xw.FORM_DATA;case"text/plain":case"text/html":return Xw.TEXT;case"application/octet-stream":return this._body instanceof wx?Xw.ARRAY_BUFFER:Xw.BLOB;default:return this.detectContentTypeFromBody()}}detectContentTypeFromBody(){return null==this._body?Xw.NONE:this._body instanceof ox?Xw.FORM:this._body instanceof yx?Xw.FORM_DATA:this._body instanceof vx?Xw.BLOB:this._body instanceof wx?Xw.ARRAY_BUFFER:this._body&&"object"==typeof this._body?Xw.JSON:Xw.TEXT}getBody(){switch(this.contentType){case Xw.JSON:case Xw.FORM:return this.text();case Xw.FORM_DATA:return this._body;case Xw.TEXT:return this.text();case Xw.BLOB:return this.blob();case Xw.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}const bx=function(){},_x="object"==typeof window?window:bx,yx=_x.FormData||bx,vx=_x.Blob||bx,wx=_x.ArrayBuffer||bx;function xx(t,e){return t.createConnection(e).response}function kx(t,e,i,n){return t.merge(new px(e?{method:e.method||i,url:e.url||n,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:i,url:n}))}let Cx=(()=>{class t{constructor(t,e){this._backend=t,this._defaultOptions=e}request(t,e){let i;if("string"==typeof t)i=xx(this._backend,new fx(kx(this._defaultOptions,e,Qw.Get,t)));else{if(!(t instanceof fx))throw new Error("First argument must be a url string or Request instance.");i=xx(this._backend,t)}return i}get(t,e){return this.request(new fx(kx(this._defaultOptions,e,Qw.Get,t)))}post(t,e,i){return this.request(new fx(kx(this._defaultOptions.merge(new px({body:e})),i,Qw.Post,t)))}put(t,e,i){return this.request(new fx(kx(this._defaultOptions.merge(new px({body:e})),i,Qw.Put,t)))}delete(t,e){return this.request(new fx(kx(this._defaultOptions,e,Qw.Delete,t)))}patch(t,e,i){return this.request(new fx(kx(this._defaultOptions.merge(new px({body:e})),i,Qw.Patch,t)))}head(t,e){return this.request(new fx(kx(this._defaultOptions,e,Qw.Head,t)))}options(t,e){return this.request(new fx(kx(this._defaultOptions,e,Qw.Options,t)))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ix),s.Mc(px))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();function Sx(){return new ux}function Dx(t,e){return new Cx(t,e)}let Ex=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:Cx,useFactory:Dx,deps:[mx,px]},Ww,{provide:px,useClass:gx},{provide:tx,useClass:ex},mx,{provide:nx,useFactory:Sx}]}),t})();function Ax(t,e,i,n){return new(i||(i=Promise))((function(s,a){function r(t){try{l(n.next(t))}catch(e){a(e)}}function o(t){try{l(n.throw(t))}catch(e){a(e)}}function l(t){t.done?s(t.value):new i((function(e){e(t.value)})).then(r,o)}l((n=n.apply(t,e||[])).next())}))}var Ox=i("Iab2");class Px{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=Ix(e.getMonth()+1),n=Ix(e.getDate()),s=e.getFullYear();let a;a=e.getHours();const r=Ix(e.getMinutes());let o="AM";const l=parseInt(a,10);return l>12?(o="PM",a=l-12):0===l&&(a="12"),a=Ix(a),i+"-"+n+"-"+s+" "+a+":"+r+" "+o}(Date.parse(this.uploaded))}}let Rx=(()=>{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 Px({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(Pd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ix(t){return t<10?"0"+t:t}var Tx;Tx=$localize`:Create a playlist dialog title␟17f0ea5d2d7a262b0e875acc70475f102aee84e6␟3949911572988594237:Create a playlist`;const Mx=["placeholder",$localize`:Playlist name placeholder␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];var Fx,Lx;function Nx(t,e){1&t&&(s.Dc(0,"mat-label"),s.Bc(1),s.Hc(2,Fx),s.Ac(),s.Cc())}function zx(t,e){1&t&&(s.Dc(0,"mat-label"),s.Bc(1),s.Hc(2,Lx),s.Ac(),s.Cc())}function Bx(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 jx(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))}Fx=$localize`:Audio files title␟f47e2d56dd8a145b2e9599da9730c049d52962a2␟253926325379303932:Audio files`,Lx=$localize`:Videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const Vx=function(){return{standalone:!0}};let Ux=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Aa,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 lk(t,e){if(1&t&&(s.Dc(0,"div",34),s.td(1,ok,12,7,"span",28),s.Cc()),2&t){const t=s.Uc();s.kc(1),s.ad("ngForOf",t.results)}}var ck,hk,dk,uk;function mk(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,ck),s.Ac(),s.Cc()}if(2&t){const t=s.Uc();s.ad("disabled",t.current_download)("ngModel",t.multiDownloadMode)}}function pk(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,hk),s.Ac(),s.Cc()}}ck=$localize`:Multi-download Mode checkbox␟96a01fafe135afc58b0f8071a4ab00234495ce18␟1215999553275961560: Multi-download Mode `,hk=$localize`:Cancel download button␟6a3777f913cf3f288664f0632b9f24794fdcc24e␟6991067716289442185: Cancel `,dk=$localize`:Advanced download mode panel␟322ed150e02666fe2259c5b4614eac7066f4ffa0␟7427754392029374006: Advanced `,uk=$localize`:Use custom args checkbox␟4e4c721129466be9c3862294dc40241b64045998␟5091669664044282329: Use custom args `;const gk=["placeholder",$localize`:Custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var fk,bk;fk=$localize`:Custom Args input hint␟ccc7e92cbdd35e901acf9ad80941abee07bd8f60␟8882144118477601028: No need to include URL, just everything after. `,bk=$localize`:Use custom output checkbox␟3a92a3443c65a52f37ca7efb8f453b35dbefbf29␟5904983012542242085: Use custom output `;const _k=["placeholder",$localize`:Custom output placeholder␟d9c02face477f2f9cdaae318ccee5f89856851fb␟3075663591125020403:Custom output`];var yk,vk,wk,xk;function kk(t,e){if(1&t&&(s.Dc(0,"p"),s.Bc(1),s.Hc(2,wk),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)}}yk=$localize`:Youtube-dl output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,vk=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,wk=$localize`:Simulated command label␟b7ffe7c6586d6f3f18a9246806a7c7d5538ab43e␟4637303589735709945: Simulated command: `,xk=$localize`:Use authentication checkbox␟8fad10737d3e3735a6699a4d89cbf6c20f6bb55f␟294759932648923187: Use authentication `;const Ck=["placeholder",$localize`:YT Username placeholder␟08c74dc9762957593b91f6eb5d65efdfc975bf48␟5248717555542428023:Username`];function Sk(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,xk),s.Ac(),s.Cc(),s.Dc(4,"mat-form-field",53),s.Dc(5,"input",49),s.Jc(6,Ck),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,ik)),s.kc(4),s.ad("ngModel",t.youtubeUsername)("ngModelOptions",s.cd(7,ik))("disabled",!t.youtubeAuthEnabled)}}const Dk=["placeholder",$localize`:YT Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];function Ek(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,Dk),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,ik))("disabled",!t.youtubeAuthEnabled)}}function Ak(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,dk),s.Ac(),s.Cc(),s.Cc(),s.td(7,kk,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,uk),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,gk),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,fk),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,bk),s.Ac(),s.Cc(),s.Dc(27,"mat-form-field",48),s.Dc(28,"input",49),s.Jc(29,_k),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,yk),s.Ac(),s.Cc(),s.vd(34,". "),s.Bc(35),s.Hc(36,vk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.td(37,Sk,7,8,"div",51),s.td(38,Ek,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,ik)),s.kc(7),s.ad("ngModel",t.customArgs)("ngModelOptions",s.cd(16,ik))("disabled",!t.customArgsEnabled),s.kc(6),s.ad("disabled",t.current_download)("ngModel",t.customOutputEnabled)("ngModelOptions",s.cd(17,ik)),s.kc(4),s.ad("ngModel",t.customOutput)("ngModelOptions",s.cd(18,ik))("disabled",!t.customOutputEnabled),s.kc(9),s.ad("ngIf",!t.youtubeAuthDisabledOverride),s.kc(1),s.ad("ngIf",!t.youtubeAuthDisabledOverride)}}function Ok(t,e){1&t&&s.zc(0,"mat-divider",2)}function Pk(t,e){if(1&t){const t=s.Ec();s.Bc(0),s.Dc(1,"app-download-item",59),s.Qc("cancelDownload",(function(e){return s.ld(t),s.Uc(3).cancelDownload(e)})),s.Cc(),s.td(2,Ok,1,0,"mat-divider",60),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 Rk(t,e){if(1&t&&(s.Dc(0,"div",5),s.td(1,Pk,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)}}function Ik(t,e){if(1&t&&(s.Dc(0,"div",56),s.Dc(1,"mat-card",1),s.Dc(2,"div",57),s.td(3,Rk,2,1,"div",58),s.Cc(),s.Cc(),s.Cc()),2&t){const t=s.Uc();s.kc(3),s.ad("ngForOf",t.downloads)}}function Tk(t,e){if(1&t&&(s.Dc(0,"div",66),s.zc(1,"mat-progress-bar",67),s.zc(2,"br"),s.Cc()),2&t){const t=s.Uc(2);s.ad("ngClass",t.determinateProgress&&100===t.percentDownloaded?"make-room-for-spinner":"equal-sizes"),s.kc(1),s.bd("value",t.percentDownloaded)}}function Mk(t,e){1&t&&(s.Dc(0,"div",68),s.zc(1,"mat-spinner",33),s.Cc()),2&t&&(s.kc(1),s.ad("diameter",25))}function Fk(t,e){1&t&&s.zc(0,"mat-progress-bar",69)}function Lk(t,e){if(1&t&&(s.Dc(0,"div",61),s.Dc(1,"div",62),s.td(2,Tk,3,2,"div",63),s.td(3,Mk,2,1,"div",64),s.td(4,Fk,1,0,"ng-template",null,65,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.determinateProgress)("ngIfElse",t),s.kc(1),s.ad("ngIf",e.determinateProgress&&100===e.percentDownloaded)}}function Nk(t,e){}var zk,Bk,jk,Vk,Uk,$k,Hk,qk;function Gk(t,e){1&t&&s.zc(0,"mat-progress-bar",81)}function Yk(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",78,79),s.Qc("removeFile",(function(e){return s.ld(t),s.Uc(3).removeFromMp3(e)})),s.Cc(),s.td(3,Gk,1,0,"mat-progress-bar",80),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)("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 Wk(t,e){1&t&&s.zc(0,"mat-progress-bar",81)}function Qk(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",83,79),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,Wk,1,0,"mat-progress-bar",80),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 Kk(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-list",82),s.Qc("resize",(function(e){return s.ld(t),s.Uc(3).onResize(e)}),!1,s.kd),s.td(1,Qk,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 Xk(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,$k),s.Ac(),s.Cc())}function Zk(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-grid-list",73),s.Qc("resize",(function(e){return s.ld(t),s.Uc(2).onResize(e)}),!1,s.kd),s.td(2,Yk,4,8,"mat-grid-tile",28),s.Cc(),s.zc(3,"mat-divider"),s.Dc(4,"div",74),s.Dc(5,"h6"),s.Hc(6,Uk),s.Cc(),s.Cc(),s.td(7,Kk,2,2,"mat-grid-list",75),s.Dc(8,"div",76),s.Dc(9,"button",77),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,Xk,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 Jk(t,e){1&t&&s.zc(0,"mat-progress-bar",81)}function tC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",78,84),s.Qc("removeFile",(function(e){return s.ld(t),s.Uc(3).removeFromMp4(e)})),s.Cc(),s.td(3,Jk,1,0,"mat-progress-bar",80),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)("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 eC(t,e){1&t&&s.zc(0,"mat-progress-bar",81)}function iC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",83,84),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,eC,1,0,"mat-progress-bar",80),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 nC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-list",82),s.Qc("resize",(function(e){return s.ld(t),s.Uc(3).onResize(e)}),!1,s.kd),s.td(1,iC,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 sC(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,qk),s.Ac(),s.Cc())}function aC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-grid-list",73),s.Qc("resize",(function(e){return s.ld(t),s.Uc(2).onResize(e)}),!1,s.kd),s.td(2,tC,4,8,"mat-grid-tile",28),s.Cc(),s.zc(3,"mat-divider"),s.Dc(4,"div",74),s.Dc(5,"h6"),s.Hc(6,Hk),s.Cc(),s.Cc(),s.td(7,nC,2,2,"mat-grid-list",75),s.Dc(8,"div",76),s.Dc(9,"button",77),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,sC,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 rC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",70),s.Dc(1,"mat-accordion"),s.Dc(2,"mat-expansion-panel",71),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,zk),s.Ac(),s.Cc(),s.Dc(7,"mat-panel-description"),s.Bc(8),s.Hc(9,Bk),s.Ac(),s.Cc(),s.Cc(),s.td(10,Zk,13,4,"div",72),s.Cc(),s.Dc(11,"mat-expansion-panel",71),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,jk),s.Ac(),s.Cc(),s.Dc(16,"mat-panel-description"),s.Bc(17),s.Hc(18,Vk),s.Ac(),s.Cc(),s.Cc(),s.td(19,aC,13,4,"div",72),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 oC(t,e){}function lC(t,e){}zk=$localize`:Audio files title␟4a0dada6e841a425de3e5006e6a04df26c644fa5␟520791250454025553: Audio `,Bk=$localize`:Audio files description␟9779715ac05308973d8f1c8658b29b986e92450f␟3371870979788549262: Your audio files are here `,jk=$localize`:Video files title␟9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33␟429855630861441368: Video `,Vk=$localize`:Video files description␟960582a8b9d7942716866ecfb7718309728f2916␟691504174199627518: Your video files are here `,Uk=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,$k=$localize`:No video playlists available text␟78bd81adb4609b68cfa4c589222bdc233ba1faaa␟5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. `,Hk=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,qk=$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 cC=!1,hC=!1,dC=!1,uC=!1,mC=(()=>{class t{constructor(t,e,i,n,s,a,r){this.postsService=t,this.youtubeSearch=e,this.snackBar=i,this.router=n,this.dialog=s,this.platform=a,this.route=r,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 Aa("",[Bs.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},this.simulatedOutput="",this.audioOnly=!1}configLoad(){return Ax(this,void 0,void 0,(function*(){yield this.loadConfig(),this.autoStartDownload&&this.downloadClicked(),setInterval(()=>this.getSimulatedOutput(),1e3)}))}loadConfig(){return Ax(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!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){e?this.downloadHelperMp3(t,!1,!1):this.downloadHelperMp4(t,!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}])):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=!1,i=!1,n=null){if(this.downloadingfile=!1,n&&this.current_download!==n);else if(!this.multiDownloadMode||!n)if(!1===i&&this.downloadOnlyMode&&!this.iOS)if(e){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(e?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{fileNames:t,type:"audio"}]);this.removeDownloadFromCurrentDownloads(n),this.fileManagerEnabled&&(this.getMp3s(),setTimeout(()=>{this.audioFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadHelperMp4(t,e=!1,i=!1,n=null){if(this.downloadingfile=!1,n&&this.current_download!==n);else if(!this.multiDownloadMode||!n)if(!1===i&&this.downloadOnlyMode)if(e){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(e?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{fileNames:t,type:"video"}]);this.removeDownloadFromCurrentDownloads(n),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($x.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};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).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.audiopathEncoded,"-1"!==this.path&&this.downloadHelperMp3(this.path,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1,this.openSnackBar("Download failed!","OK.")})}else{const s={uid:Object($x.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};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).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.videopathEncoded,"-1"!==this.path&&this.downloadHelperMp4(this.path,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1,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(Ox.saveAs)(i,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(Ox.saveAs)(i,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(Ox.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){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?".mp3":".mp4";let s=["-o",(this.audioOnly?this.audioFolderPath:this.videoFolderPath)+"%(title)s"+n];if(this.customOutputEnabled&&this.customOutput&&(s=["-o",this.customOutput+n]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||e.push("--external-downloader","aria2c"),e.push(...s),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?(cC=!0,this.audioFileCards.forEach(t=>{t.onHoverResponse()})):"video"===t&&(hC=!0,this.videoFileCards.forEach(t=>{t.onHoverResponse()}))}accordionLeft(t){"audio"===t?cC=!1:"video"===t&&(hC=!1)}accordionOpened(t){"audio"===t?dC=!0:"video"===t&&(uC=!0)}accordionClosed(t){"audio"===t?dC=!1:"video"===t&&(uC=!1)}openCreatePlaylistDialog(t){this.dialog.open(Ux,{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(uv,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{t&&(this.customArgs=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Rx),s.yc(Rg),s.yc(my),s.yc(sh),s.yc(bi),s.yc(a_))},t.\u0275cmp=s.sc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.zd(Hx,!0,s.q),s.zd(qx,!0),s.zd(Gx,!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:17,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px"],[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"],[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"],[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",3,"value"],[1,"spinner"],["mode","indeterminate"],[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","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,Yx),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,Zx,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,nk,8,5,"div",12),s.Cc(),s.Cc(),s.td(20,lk,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,Wx),s.Ac(),s.Cc(),s.td(25,mk,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,Qx),s.Ac(),s.Cc(),s.td(30,pk,3,0,"button",17),s.Cc(),s.Cc(),s.Cc(),s.td(31,Ak,39,19,"div",18),s.td(32,Ik,4,1,"div",19),s.zc(33,"br"),s.td(34,Lk,7,3,"div",20),s.td(35,Nk,0,0,"ng-template",null,21,s.ud),s.td(37,rC,20,4,"div",22),s.td(38,oC,0,0,"ng-template",null,23,s.ud),s.td(40,lC,0,0,"ng-template",null,24,s.ud)),2&t){const t=s.hd(36);s.kc(11),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}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}"]}),t})();si.a.merge=go.a;var pC,gC,fC,bC,_C,yC,vC,wC=i("zuWl"),xC=i.n(wC);pC=$localize`:Video name property␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,gC=$localize`:Video URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,fC=$localize`:Video ID property␟c6eb45d085384903e53ab001a3513d1de6a1dbac␟6975318892267864632:Uploader:`,bC=$localize`:Video file size property␟109c6f4a5e46efb933612ededfaf52a13178b7e0␟8712868262622854125:File size:`,_C=$localize`:Video path property␟bd630d8669b16e5f264ec4649d9b469fe03e5ff4␟2612252809311306032:Path:`,yC=$localize`:Video upload date property␟a67e7d843cef735c79d5ef1c8ba4af3e758912bb␟73382088968432490:Upload Date:`,vC=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let kC=(()=>{class t{constructor(t){this.data=t}ngOnInit(){this.filesize=xC.a,this.data&&(this.file=this.data.file)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(th))},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,pC),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,gC),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,fC),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,bC),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,_C),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,yC),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,vC),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.filesize(e.file.size)),s.kc(8),s.wd(e.file.path),s.kc(8),s.wd(e.file.upload_date))},directives:[oh,lh,ch,ds,rh],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}"]}),t})();function CC(t,e){t.className.includes(e)||(t.className+=` ${e}`)}function SC(){return"undefined"!=typeof window?window.navigator:void 0}function DC(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function EC(t){return"img"===t.nodeName.toLowerCase()}function AC(t,e,i){return EC(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function OC(t){return e=>{const i=e.parentElement.getElementsByTagName("source");for(let n=0;n{EC(e)&&DC(e)&&t(e),i&&AC(e,i,n)}}const MC=TC(PC),FC=TC(RC),LC=TC(IC),NC={finally:({element:t})=>CC(t,"ng-lazyloaded"),loadImage:({element:t,useSrcset:e,imagePath:i,decode:n})=>{let s;if(EC(t)&&DC(t)){const n=t.parentNode.cloneNode(!0);s=n.getElementsByTagName("img")[0],RC(s),AC(s,i,e)}else s=new Image,EC(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})=>{LC(t,e,i),CC(t,"ng-failed-lazyloaded")},setLoadedImage:({element:t,imagePath:e,useSrcset:i})=>{FC(t,e,i)},setup:({element:t,defaultImagePath:e,useSrcset:i})=>{MC(t,e,i),function(t,e){return t.className&&t.className.includes("ng-lazyloaded")}(t)&&function(t,e){t.className=t.className.replace("ng-lazyloaded","")}(t)},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)},zC=new WeakMap,BC=new Re.a;function jC(t){t.forEach(t=>BC.next(t))}const VC={},UC=t=>{const e=t.scrollContainer||VC,i={root:t.scrollContainer||null};t.offset&&(i.rootMargin=`${t.offset}px`);let n=zC.get(e);return n||(n=new IntersectionObserver(jC,i),zC.set(e,n)),n.observe(t.element),si.a.create(e=>{const i=BC.pipe(Je(e=>e.target===t.element)).subscribe(e);return()=>{i.unsubscribe(),n.unobserve(t.element)}})},$C=Object.assign({},NC,{isVisible:({event:t})=>t.isIntersecting,getObservable:(t,e=UC)=>t.customObservable?t.customObservable:e(t)}),HC=Object.assign({},NC,{isVisible:()=>!0,getObservable:()=>Le("load"),loadImage:({imagePath:t})=>[t]});let qC=(()=>{let t=class{constructor(t,e,i,n){this.onLoad=new s.s,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new tl,this.platformId=i,this.hooks=function(t,e){const i=$C,n=e&&e.isBot?e.isBot:i.isBot;if(n(SC(),t))return Object.assign(HC,{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(){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})}ngAfterContentInit(){if(Object(ye.J)(this.platformId)&&!this.hooks.isBot(SC(),this.platformId))return null;this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=this.propertyChanges$.pipe(Ve(t=>this.hooks.setup(t)),Vo(t=>this.hooks.getObservable(t).pipe(function(t,e){return i=>i.pipe(Je(i=>t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})),oi(1),Object(ud.a)(()=>t.loadImage(e)),Ve(i=>t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})),Object(ii.a)(()=>!0),ad(()=>(t.setErrorImage(e),Le(!1))),Ve(()=>t.finally(e)))}(this.hooks,t)))).subscribe(t=>this.onLoad.emit(t))})}ngOnDestroy(){this.scrollSubscription&&this.scrollSubscription.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"},outputs:{onLoad:"onLoad"},features:[s.ic]}),t})();var GC;let YC=(()=>{let t=GC=class{static forRoot(t){return{ngModule:GC,providers:[{provide:"options",useValue:t}]}}};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const WC=[[["","before-svg",""]],"*",[["","after-svg",""]]],QC=["[before-svg]","*","[after-svg]"],KC=["ngx-rect",""],XC=["ngx-svg-stop",""],ZC=["ngx-facebook-preset",""],JC=["ngx-instagram-preset",""],tS=["ngx-circle",""],eS=["ngx-code-preset",""],iS=["ngx-bullet-list-preset",""],nS=["ngx-list-preset",""];let sS=(()=>{class t{constructor(){this.width="400",this.height="130",this.primaryColor="#f3f3f3",this.secondaryColor="#ecebeb",this.speed="1000ms",this.preserveAspectRatio="xMidYMid meet"}get viewBox(){return`0 0 ${this.width} ${this.height}`}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["ngx-content-loading"]],inputs:{width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed",preserveAspectRatio:"preserveAspectRatio"},ngContentSelectors:QC,decls:4,vars:2,consts:[["version","1.1"]],template:function(t,e){1&t&&(s.Zc(WC),s.Yc(0),s.Tc(),s.Dc(1,"svg",0),s.Yc(2,1),s.Cc(),s.Yc(3,2)),2&t&&(s.kc(1),s.lc("preserveAspectRatio",e.preserveAspectRatio)("viewBox",e.viewBox))},styles:[""],changeDetection:0}),t})(),aS=(()=>{class t{constructor(t){this.content=t,this.clipPathId=rS(),this.linearGradientId=rS()}get clipPathUrl(){return`url(#${this.clipPathId})`}get linearGradientUrl(){return`url(#${this.linearGradientId})`}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.yc(sS))},t.\u0275cmp=s.sc({type:t,selectors:[["ngx-svg-element"]],decls:0,vars:0,template:function(t,e){},styles:[""],changeDetection:0}),t})();function rS(){return(performance.now()*Math.random()).toString()}let oS=(()=>{class t extends aS{constructor(t){super(t),this.content=t,this.rx="0",this.ry="1"}}return t.\u0275fac=function(e){return new(e||t)(s.yc(sS))},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-rect",""]],inputs:{rx:"rx",ry:"ry",y:"y",x:"x",width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed"},features:[s.hc],attrs:KC,decls:7,vars:22,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"rect"),s.Dc(1,"defs"),s.zc(2,"clipPath"),s.Dc(3,"linearGradient"),s.zc(4,"stop",0),s.zc(5,"stop",0),s.zc(6,"stop",0),s.Cc(),s.Cc()),2&t&&(s.lc("x",e.x)("y",e.y)("rx",e.rx)("ry",e.ry)("width",e.width)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl)("height",e.height),s.kc(2),s.lc("id",e.clipPathId),s.kc(1),s.lc("id",e.linearGradientId),s.kc(1),s.ad("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),s.kc(1),s.ad("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),s.kc(1),s.ad("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:function(){return[lS]},styles:[""]}),t})(),lS=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-svg-stop",""]],hostVars:2,hostBindings:function(t,e){2&t&&s.lc("offset",e.offset)("stop-color",e.color)},inputs:{speed:"speed",values:"values",offset:"offset",color:"color"},attrs:XC,decls:1,vars:2,consts:[["attributeName","offset","repeatCount","indefinite"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"animate",0)),2&t&&s.lc("values",e.values)("dur",e.speed)},styles:[""],changeDetection:0}),t})(),cS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-facebook-preset",""]],attrs:ZC,decls:6,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","100","height","5","y","15","x","60","rx","5","ry","5"],["ngx-rect","","width","60","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","170","height","5","y","65","x","0","rx","5","ry","5"],["ngx-rect","","width","220","height","5","y","80","x","0","rx","5","ry","5"],["ngx-rect","","width","130","height","5","y","95","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5))},directives:function(){return[dS,oS]},styles:[""],changeDetection:0}),t})(),hS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-instagram-preset",""]],attrs:JC,decls:4,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","120","height","10","y","10","x","60","rx","5","ry","5"],["ngx-rect","","width","40","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","250","height","250","y","60","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3))},directives:function(){return[dS,oS]},styles:[""],changeDetection:0}),t})(),dS=(()=>{class t extends aS{constructor(t){super(t),this.content=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(sS))},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-circle",""]],inputs:{r:"r",cx:"cx",cy:"cy"},features:[s.hc],attrs:tS,decls:7,vars:19,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"circle"),s.Dc(1,"defs"),s.zc(2,"clipPath"),s.Dc(3,"linearGradient"),s.zc(4,"stop",0),s.zc(5,"stop",0),s.zc(6,"stop",0),s.Cc(),s.Cc()),2&t&&(s.lc("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl),s.kc(2),s.lc("id",e.clipPathId),s.kc(1),s.lc("id",e.linearGradientId),s.kc(1),s.ad("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),s.kc(1),s.ad("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),s.kc(1),s.ad("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:[lS],styles:[""]}),t})(),uS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-code-preset",""]],attrs:eS,decls:9,vars:0,consts:[["ngx-rect","","width","60","height","10","y","15","x","0","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","15","x","70","rx","5","ry","5"],["ngx-rect","","width","20","height","10","y","15","x","170","rx","5","ry","5"],["ngx-rect","","width","100","height","10","y","35","x","9","rx","5","ry","5"],["ngx-rect","","width","120","height","10","y","35","x","120","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","5","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","105","rx","5","ry","5"],["ngx-rect","","width","70","height","10","y","55","x","205","rx","5","ry","5"],["ngx-rect","","width","30","height","10","y","75","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5),s.zc(6,"g",6),s.zc(7,"g",7),s.zc(8,"g",8))},directives:[oS],encapsulation:2,changeDetection:0}),t})(),mS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-bullet-list-preset",""]],attrs:iS,decls:8,vars:0,consts:[["ngx-circle","","cx","7","cy","7","r","7"],["ngx-circle","","cx","7","cy","37","r","7"],["ngx-circle","","cx","7","cy","67","r","7"],["ngx-circle","","cx","7","cy","97","r","7"],["ngx-rect","","width","200","height","12","y","2","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","32","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","62","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","92","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5),s.zc(6,"g",6),s.zc(7,"g",7))},directives:[dS,oS],encapsulation:2,changeDetection:0}),t})(),pS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-list-preset",""]],attrs:nS,decls:6,vars:0,consts:[["ngx-rect","","width","200","height","10","y","0","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","20","x","20","rx","5","ry","5"],["ngx-rect","","width","160","height","10","y","40","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","10","y","60","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","80","x","20","rx","5","ry","5"],["ngx-rect","","width","60","height","10","y","100","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5))},directives:[oS],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:[[ye.c]]}),t})();var fS,bS,_S,yS,vS;function wS(t,e){if(1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,yS),s.Ac(),s.vd(3),s.Cc()),2&t){const t=s.Uc();s.kc(3),s.xd("\xa0",t.count,"")}}function xS(t,e){1&t&&(s.Dc(0,"span"),s.Dc(1,"ngx-content-loading",14),s.Tc(),s.zc(2,"g",15),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.ad("width",500)("height",360))}function kS(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,xS,3,2,"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 CS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",16),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 SS(t,e){if(1&t&&(s.Dc(0,"button",17),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 DS(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,vS),s.Ac(),s.Cc()}}fS=$localize`:File or playlist ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,bS=$localize`:Video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,_S=$localize`:Delete video button␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,yS=$localize`:Playlist video count␟e684046d73bcee88e82f7ff01e2852789a05fc32␟6836949342567686088:Count:`,vS=$localize`:Delete and blacklist video button␟34504b488c24c27e68089be549f0eeae6ebaf30b␟593208667984994894:Delete and blacklist`;let ES=(()=>{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 Re.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.name,this.isAudio,t).subscribe(t=>{!0===t?(this.openSnackBar("Delete success!","OK."),this.removeFile.emit(this.name)):this.openSnackBar("Delete failed!","OK.")})}openVideoInfoDialog(){this.dialog.open(kC,{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(By),s.yc(Rg),s.yc(mC),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",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"],[3,"width","height"],["ngx-rect","","width","500","height","360","y","0","x","0","rx","4","ry","4"],["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)})),s.vd(6),s.Cc(),s.Cc(),s.Cc(),s.Dc(7,"span",4),s.Bc(8),s.Hc(9,fS),s.Ac(),s.vd(10),s.Cc(),s.td(11,wS,4,1,"div",5),s.Cc(),s.td(12,kS,3,4,"div",6),s.Cc(),s.td(13,CS,3,0,"button",7),s.td(14,SS,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,bS),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,_S),s.Ac(),s.Cc(),s.td(27,DS,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:[Yr,ye.t,dm,am,ru,qC,sS,oS,ds,gm],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 AS(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 OS=(()=>{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(Jc),s.yc(th))},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,AS,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:[oh,lh,Pc,vu,Ds,Ts,Va,ch,ds,rh,ye.t,ep],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();const PS=["*"],RS=["volumeBar"],IS=function(t){return{dragging:t}};function TS(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 MS(t,e){1&t&&s.zc(0,"span",2)}function FS(t,e){1&t&&(s.Dc(0,"span"),s.vd(1,"LIVE"),s.Cc())}function LS(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 NS(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 zS(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 BS=(()=>{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})(),jS=(()=>{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=BS.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})(),VS=(()=>{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(jS))},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})(),US=(()=>{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})(),$S=(()=>{let t=class{constructor(){this.isHiddenSubject=new Re.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})(),HS=(()=>{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$=fo(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=fo(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===BS.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(jS),s.yc(s.q),s.yc($S))},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:PS,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})(),qS=(()=>{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})(),GS=(()=>{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(qS.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=fo(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&&(qS.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||qS.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})(),YS=(()=>{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 jS&&(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(jS),s.yc(GS))},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})(),WS=(()=>{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(jS))},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})(),QS=(()=>{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(jS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&s.rd(RS,!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,IS,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})(),KS=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=BS.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 BS.VG_PLAYING:this.target.pause();break;case BS.VG_PAUSED:case BS.VG_ENDED:this.target.play()}}getState(){return this.ariaValue=this.target?this.target.state:BS.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(jS))},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})(),XS=(()=>{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 jS?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(jS))},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})(),ZS=(()=>{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===BS.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(jS),s.yc($S))},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:PS,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})(),JS=(()=>{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(jS))},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})(),tD=(()=>{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(jS))},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,TS,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})(),eD=(()=>{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(jS))},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,MS,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})(),iD=(()=>{let t=class{transform(t,e){const i=new Date(t);let n=e,s=i.getUTCSeconds(),a=i.getUTCMinutes(),r=i.getUTCHours();return s<10&&(s="0"+s),a<10&&(a="0"+a),r<10&&(r="0"+r),n=n.replace(/ss/g,s),n=n.replace(/mm/g,a),n=n.replace(/hh/g,r),n}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.xc({name:"vgUtc",type:t,pure:!0}),t})(),nD=(()=>{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(jS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:PS,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(s.Zc(),s.td(0,FS,2,0,"span",0),s.td(1,LS,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:[iD],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})(),sD=(()=>{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(jS))},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,NS,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})(),aD=(()=>{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(jS))},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,zS,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})(),rD=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[$S],imports:[[ye.c]]}),t})(),oD=(()=>{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})(),lD=(()=>{let t=class{constructor(t,e){this.api=t,this.ref=e,this.state=BS.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 Re.a}ngOnInit(){this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:fo(this.elem,oD.VG_ABORT),canPlay:fo(this.elem,oD.VG_CAN_PLAY),canPlayThrough:fo(this.elem,oD.VG_CAN_PLAY_THROUGH),durationChange:fo(this.elem,oD.VG_DURATION_CHANGE),emptied:fo(this.elem,oD.VG_EMPTIED),encrypted:fo(this.elem,oD.VG_ENCRYPTED),ended:fo(this.elem,oD.VG_ENDED),error:fo(this.elem,oD.VG_ERROR),loadedData:fo(this.elem,oD.VG_LOADED_DATA),loadedMetadata:fo(this.elem,oD.VG_LOADED_METADATA),loadStart:fo(this.elem,oD.VG_LOAD_START),pause:fo(this.elem,oD.VG_PAUSE),play:fo(this.elem,oD.VG_PLAY),playing:fo(this.elem,oD.VG_PLAYING),progress:fo(this.elem,oD.VG_PROGRESS),rateChange:fo(this.elem,oD.VG_RATE_CHANGE),seeked:fo(this.elem,oD.VG_SEEKED),seeking:fo(this.elem,oD.VG_SEEKING),stalled:fo(this.elem,oD.VG_STALLED),suspend:fo(this.elem,oD.VG_SUSPEND),timeUpdate:fo(this.elem,oD.VG_TIME_UPDATE),volumeChange:fo(this.elem,oD.VG_VOLUME_CHANGE),waiting:fo(this.elem,oD.VG_WAITING),startAds:fo(this.elem,oD.VG_START_ADS),endAds:fo(this.elem,oD.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=ym(t).pipe(Object(ii.a)((...t)=>{t.some(t=>4===t.target.readyState)&&!this.syncSubscription&&(this.startSync(),this.syncSubscription.unsubscribe())})).subscribe()}startSync(){this.syncSubscription=Mo(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===BS.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!==BS.VG_PAUSED&&this.state!==BS.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=BS.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=BS.VG_ENDED,this.ref.detectChanges()}onStartPlaying(t){this.state=BS.VG_PLAYING,this.ref.detectChanges()}onPlay(t){this.state=BS.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}onPause(t){this.state=BS.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=Mo(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(jS),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),t})(),cD=(()=>{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$=fo(this.ref.nativeElement,oD.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})(),hD=(()=>{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?qS.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(jS),s.yc(GS),s.yc($S))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-player"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,lD,!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([jS,GS,$S])],ngContentSelectors:PS,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})(),dD=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[jS,GS,qS,$S,BS,oD]}),t})(),uD=(()=>{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 BS.VG_PLAYING:this.target.pause();break;case BS.VG_PAUSED:case BS.VG_ENDED:this.target.play()}}getState(){let t=BS.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(jS),s.yc(GS),s.yc($S))},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})(),mD=(()=>{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 pD(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 gD;function fD(t,e){1&t&&s.zc(0,"mat-spinner",17),2&t&&s.ad("diameter",25)}function bD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",13),s.Dc(1,"div",14),s.td(2,fD,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,gD),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 _D(t,e){1&t&&s.zc(0,"mat-spinner",22),2&t&&s.ad("diameter",50)}function yD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",23),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 vD(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,_D,1,1,"mat-spinner",20),s.Cc(),s.td(5,yD,3,0,"button",21),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)}}function wD(t,e){1&t&&s.zc(0,"mat-spinner",22),2&t&&s.ad("diameter",50)}function xD(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,wD,1,1,"mat-spinner",20),s.Cc(),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)}}function kD(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,pD,2,3,"mat-button-toggle",10),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.td(11,bD,9,2,"div",11),s.td(12,vD,6,3,"div",0),s.td(13,xD,5,2,"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)}}gD=$localize`:Playlist save changes button␟5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f␟7000649363168371045:Save changes`;let CD=(()=>{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.currentIndex=0,this.currentItem=null,this.id=null,this.subscriptionName=null,this.subPlaylist=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.downloading=!1}onResize(t){this.innerWidth=window.innerWidth}ngOnInit(){this.innerWidth=window.innerWidth,this.fileNames=this.route.snapshot.paramMap.get("fileNames").split("|nvr|"),this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),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;let i=null;"audio"===this.type?i="audio/mp3":"video"===this.type?i="video/mp4":"subscription"===this.type?i="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'.");for(let n=0;n{})}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).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(OS,{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.openSnackBar("Playlist '"+t+"' successfully created!",""),this.playlistPostCreationHandler(n.id)}})}})}playlistPostCreationHandler(t){this.id=t,this.router.navigateByUrl(this.router.url+";id="+t)}drop(t){tf(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:"video",id:this.id}]),this.openSnackBar("Successfully updated playlist.",""),this.original_playlist=JSON.stringify(this.playlist)}else this.openSnackBar("ERROR: Failed to update playlist.","")})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(a_),s.yc(sh),s.yc(my),s.yc(Rg))},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"],[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"],[1,"spinner",3,"diameter"],["color","accent","color","primary","mat-fab","",1,"favorite-button",3,"click"]],template:function(t,e){1&t&&s.td(0,kD,14,12,"div",0),2&t&&s.ad("ngIf",e.playlist.length>0)},directives:[ye.t,ye.q,hD,lD,Sr,Ef,ye.s,Ar,kf,ds,ru,ep],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:80%} .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:absolute;bottom:25px}.favorite-button[_ngcontent-%COMP%]{left:25px;position:absolute;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px}.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 SD;SD=$localize`:Subscribe dialog title␟a9806cf78ce00eb2613eeca11354a97e033377b8␟4500902888758611270:Subscribe to playlist or channel`;const DD=["placeholder",$localize`:Subscription URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var ED;ED=$localize`:Subscription URL input hint␟93efc99ae087fc116de708ecd3ace86ca237cf30␟6758330192665823220:The playlist or channel URL`;const AD=["placeholder",$localize`:Subscription custom name placeholder␟08f5d0ef937ae17feb1b04aff15ad88911e87baf␟1402261878731426139:Custom name`];var OD,PD,RD,ID;function TD(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 MD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",3),s.Bc(1),s.Hc(2,ID),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,TD,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 FD(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))}OD=$localize`:Custom name input hint␟f3f62aa84d59f3a8b900cc9a7eec3ef279a7b4e7␟8525826677893067522:This is optional`,PD=$localize`:Download all uploads subscription setting␟ea30873bd3f0d5e4fb2378eec3f0a1db77634a28␟2789218157148692814:Download all uploads`,RD=$localize`:Subscribe cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,ID=$localize`:Download time range prefix␟28a678e9cabf86e44c32594c43fa0e890135c20f␟2424458468042538424:Download videos uploaded in the last`;let LD=(()=>{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.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).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(By),s.yc(Rg),s.yc(Jc))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscribe-dialog"]],decls:31,vars:6,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,SD),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,DD),s.Qc("ngModelChange",(function(t){return e.url=t})),s.Cc(),s.Dc(9,"mat-hint"),s.Bc(10),s.Hc(11,ED),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,AD),s.Qc("ngModelChange",(function(t){return e.name=t})),s.Cc(),s.Dc(16,"mat-hint"),s.Bc(17),s.Hc(18,OD),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,PD),s.Ac(),s.Cc(),s.Cc(),s.td(23,MD,7,3,"div",9),s.Cc(),s.Cc(),s.Cc(),s.Dc(24,"mat-dialog-actions"),s.Dc(25,"button",10),s.Bc(26),s.Hc(27,RD),s.Ac(),s.Cc(),s.Dc(28,"button",11),s.Qc("click",(function(){return e.subscribeClicked()})),s.vd(29,"Subscribe"),s.Cc(),s.td(30,FD,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(5),s.ad("disabled",!e.url),s.kc(2),s.ad("ngIf",e.subscribing))},directives:[oh,lh,Pc,vu,Ds,nr,Ts,Va,wc,oo,ye.t,ch,ds,rh,Gs,Tp,ye.s,es,ep],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var ND,zD,BD,jD,VD,UD,$D;function HD(t,e){if(1&t&&(s.Dc(0,"div",1),s.Dc(1,"strong"),s.Bc(2),s.Hc(3,$D),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)}}ND=$localize`:Subscription type property␟e78c0d60ac39787f62c9159646fe0b3c1ed55a1d␟2736556170366900089:Type:`,zD=$localize`:Subscription URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,BD=$localize`:Subscription ID property␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,jD=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,VD=$localize`:Export Archive button␟8efc77bf327659c0fec1f518cf48a98cdcd9dddf␟5613381975493898311:Export Archive`,UD=$localize`:Unsubscribe button␟3042bd3ad8dffcfeca5fd1ae6159fd1047434e95␟1698114086921246480:Unsubscribe`,$D=$localize`:Subscription ID property␟a44d86aa1e6c20ced07aca3a7c081d8db9ded1c6␟2158775445713924699:Archive:`;let qD=(()=>{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(Jc),s.yc(th),s.yc(By))},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,ND),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,zD),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,BD),s.Ac(),s.vd(21,"\xa0"),s.Cc(),s.Dc(22,"span",2),s.vd(23),s.Cc(),s.Cc(),s.td(24,HD,7,1,"div",3),s.Cc(),s.Dc(25,"mat-dialog-actions"),s.Dc(26,"button",4),s.Bc(27),s.Hc(28,jD),s.Ac(),s.Cc(),s.Dc(29,"button",5),s.Qc("click",(function(){return e.downloadArchive()})),s.Bc(30),s.Hc(31,VD),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,UD),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:[oh,lh,ye.t,ch,ds,rh],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 GD,YD,WD,QD,KD,XD,ZD;function JD(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 tE(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,QD),s.Ac(),s.Cc())}function eE(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,JD,2,1,"strong",10),s.td(3,tE,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 iE(t,e){1&t&&(s.Dc(0,"div",12),s.Dc(1,"p"),s.Hc(2,KD),s.Cc(),s.Cc())}function nE(t,e){1&t&&(s.Dc(0,"div",14),s.Bc(1),s.Hc(2,XD),s.Ac(),s.Cc())}function sE(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,nE,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 aE(t,e){1&t&&(s.Dc(0,"div",12),s.Dc(1,"p"),s.Hc(2,ZD),s.Cc(),s.Cc())}function rE(t,e){1&t&&(s.Dc(0,"div",15),s.zc(1,"mat-progress-bar",16),s.Cc())}GD=$localize`:Subscriptions title␟e2319dec5b4ccfb6ed9f55ccabd63650a8fdf547␟3180145612302390475:Your subscriptions`,YD=$localize`:Subscriptions channels title␟807cf11e6ac1cde912496f764c176bdfdd6b7e19␟8181077408762380407:Channels`,WD=$localize`:Subscriptions playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,QD=$localize`:Subscription playlist not available text␟29b89f751593e1b347eef103891b7a1ff36ec03f␟973700466393519727:Name not available. Channel retrieval in progress.`,KD=$localize`:No channel subscriptions text␟4636cd4a1379c50d471e98786098c4d39e1e82ad␟2560406180065361139:You have no channel subscriptions.`,XD=$localize`:Subscription playlist not available text␟2e0a410652cb07d069f576b61eab32586a18320d␟4161141077899894301:Name not available. Playlist retrieval in progress.`,ZD=$localize`:No playlist subscriptions text␟587b57ced54965d8874c3fd0e9dfedb987e5df04␟3403368727234976136:You have no playlist subscriptions.`;let oE=(()=>{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(LD,{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(qD,{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(sh),s.yc(By),s.yc(my),s.yc(Rg))},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,GD),s.Cc(),s.zc(3,"mat-divider",1),s.zc(4,"br"),s.Dc(5,"h4",2),s.Hc(6,YD),s.Cc(),s.Dc(7,"mat-nav-list",3),s.td(8,eE,7,2,"mat-list-item",4),s.Cc(),s.td(9,iE,3,0,"div",5),s.Dc(10,"h4",6),s.Hc(11,WD),s.Cc(),s.Dc(12,"mat-nav-list",3),s.td(13,sE,8,2,"mat-list-item",4),s.Cc(),s.td(14,aE,3,0,"div",5),s.td(15,rE,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:[xu,Fu,ye.s,ye.t,ds,ru,Vu,Mn,Hm],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 lE,cE,hE,dE;function uE(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,dE),s.Ac(),s.Cc()}}function mE(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)}}lE=$localize`:Video duration label␟2054791b822475aeaea95c0119113de3200f5e1c␟7115285952699064699:Length:`,cE=$localize`:Subscription video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,hE=$localize`:Delete and redownload subscription video button␟94e01842dcee90531caa52e4147f70679bac87fe␟8460889291602192517:Delete and redownload`,dE=$localize`:Delete forever subscription video button␟2031adb51e07a41844e8ba7704b054e98345c9c1␟880206287081443054:Delete forever`;let pE=(()=>{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 Re.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(this.file.id)}openSubscriptionInfoDialog(){this.dialog.open(kC,{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(Rg),s.yc(By),s.yc(sh))},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,lE),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,cE),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,hE),s.Ac(),s.Cc(),s.td(20,uE,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,mE,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:[ds,gm,ru,dm,am,ye.t,Yr,$n],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 gE(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 fE;fE=$localize`:Subscription videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const bE=["placeholder",$localize`:Subscription videos search placeholder␟7e892ba15f2c6c17e83510e273b3e10fc32ea016␟4580988005648117665:Search`];function _E(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 yE(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 vE(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,_E,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,fE),s.Cc(),s.Cc(),s.Dc(15,"div",18),s.Dc(16,"mat-form-field",19),s.Dc(17,"input",20),s.Jc(18,bE),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,yE,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 wE(t,e){1&t&&s.zc(0,"mat-spinner",28),2&t&&s.ad("diameter",50)}let xE=(()=>{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){localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:t,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(By),s.yc(a_),s.yc(my))},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,gE,2,1,"h2",3),s.Cc(),s.zc(6,"mat-divider",4),s.zc(7,"br"),s.td(8,vE,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,wE,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:[ds,ru,ye.t,xu,Tp,Ts,Va,ye.s,Pc,ye.q,vu,Ds,Sc,es,pE,ep],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})();const kE=[{path:"home",component:mC},{path:"player",component:CD},{path:"subscriptions",component:oE},{path:"subscription",component:xE},{path:"",redirectTo:"/home",pathMatch:"full"}];let CE=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Py.forRoot(kE,{useHash:!0})],Py]}),t})();var SE;SE=$localize`:Download ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`;let DE=(()=>{class t{constructor(){this.download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!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:16,vars:10,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","margin-right","5px","position","relative","top","5px"],[2,"display","inline-block","text-align","center"],[2,"width","80%",3,"value","mode"],["mat-icon-button","","color","warn",3,"click"],["fontSet","material-icons-outlined"]],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,"h5",2),s.vd(4),s.Cc(),s.Cc(),s.Dc(5,"mat-grid-tile",1),s.Dc(6,"div",3),s.Bc(7),s.Hc(8,SE),s.Ac(),s.vd(9),s.Cc(),s.Cc(),s.Dc(10,"mat-grid-tile",1),s.zc(11,"mat-progress-bar",4),s.Cc(),s.Dc(12,"mat-grid-tile",1),s.Dc(13,"button",5),s.Qc("click",(function(){return e.cancelTheDownload()})),s.Dc(14,"mat-icon",6),s.vd(15,"cancel"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.ad("rowHeight",50)("cols",24),s.kc(1),s.ad("colspan",2),s.kc(2),s.xd("",e.queueNumber,"."),s.kc(1),s.ad("colspan",6),s.kc(4),s.xd("\xa0",e.url_id,""),s.kc(1),s.ad("colspan",13),s.kc(1),s.ad("value",e.download.percent_complete)("mode",0===e.download.percent_complete?"indeterminate":"determinate"),s.kc(1),s.ad("colspan",3))},directives:[nd,$h,Hm,ds,ru],styles:[""]}),t})();var EE=i("2Yyj"),AE=i.n(EE);function OE({element:t}){return"video"===t.id?hC||uC:cC||dC}i.d(e,"isVisible",(function(){return OE})),i.d(e,"AppModule",(function(){return PE})),Object(ye.K)(AE.a,"es");let PE=(()=>{class t{}return t.\u0275mod=s.wc({type:t,bootstrap:[Yw]}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[By],imports:[[n.a,Pe,In,pp,fr,wu,Mp,br,Ex,qd,zg,Kr,Og,ms,mo,ig,ou,Ku,sd,zh,Gm,ip,Or,Hn,bm,dh,yg,bm,Gc,zm,Af,dD,rD,mD,US,YC.forRoot({isVisible:OE}),gS,Py,CE]]}),t})();s.od(mC,[ye.q,ye.r,ye.s,ye.t,ye.A,ye.w,ye.x,ye.y,ye.z,ye.u,ye.v,hp,mp,tn,Ua,aa,ca,Ds,Gs,Xs,ks,sa,la,Qs,Ts,Ms,nr,cr,dr,mr,sr,or,Va,za,Ta,hu,du,fc,Pc,wc,xc,kc,Cc,Sc,vu,mu,Tp,Ip,es,Kn,qa,Ya,tr,Qa,Xa,Ng,Lg,Yr,Wr,Qr,Lr,Nr,zr,Br,jr,Ur,$r,Hr,Vr,qr,Gr,Ag,ds,us,oo,co,Qp,Kp,Wp,Zp,tg,Xp,ru,Nu,Fu,Vu,zu,Mn,Bu,ju,qn,Qu,Wu,xu,nd,$h,Hh,Gh,Yh,qh,Lh,Rh,Ih,Th,Fh,Mh,Ah,Hm,tp,ep,Sr,Ar,$n,dm,am,gm,em,Xc,rh,oh,lh,ch,fg,pg,jc,qc,Vc,Lm,Nm,Ef,Sf,kf,_f,vf,yf,lD,cD,hD,HS,YS,WS,QS,KS,XS,ZS,JS,tD,eD,nD,sD,aD,uD,VS,qC,sS,oS,dS,cS,hS,uS,mS,pS,vy,py,gy,by,gb,Yw,ES,mC,CD,OS,Ux,DE,oE,LD,xE,pE,qD,Ew,Yy,Lw,kC,uv],[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,iD,dv])},xDdU:function(t,e,i){var n,s,a=i("4fRq"),r=i("I2ZF"),o=0,l=0;t.exports=function(t,e,i){var c=e&&i||0,h=e||[],d=(t=t||{}).node||n,u=void 0!==t.clockseq?t.clockseq:s;if(null==d||null==u){var m=a();null==d&&(d=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-o+(g-l)/1e4;if(f<0&&void 0===t.clockseq&&(u=u+1&16383),(f<0||p>o)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=p,l=g,s=u;var b=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;h[c++]=b>>>24&255,h[c++]=b>>>16&255,h[c++]=b>>>8&255,h[c++]=255&b;var _=p/4294967296*1e4&268435455;h[c++]=_>>>8&255,h[c++]=255&_,h[c++]=_>>>24&15|16,h[c++]=_>>>16&255,h[c++]=u>>>8|128,h[c++]=255&u;for(var y=0;y<6;++y)h[c+y]=d[y];return e||r(h)}},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 r=(t=t||{}).random||(t.rng||n)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;++o)e[a+o]=r[o];return e||s(r)}},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,r,o,l,c,h,d,u,m,p,g,f,b,_,y=1>>((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,r){var o=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,r):n(l,l.target="_blank")):(l.href=o.createObjectURL(t),setTimeout((function(){o.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 r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){n(r)}))}}: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 r="application/octet-stream"===t.type,o=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&o)&&"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 h=s.URL||s.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout((function(){h.revokeObjectURL(d)}),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);var n=i("jhN1"),s=i("fXoL");class a{}function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function o(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 h(t){return{type:6,styles:t,offset:null}}function d(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 r=[],o=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,h=n&&c||{};Object.keys(t).forEach(i=>{let n=i,o=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),o){case"!":o=s[i];break;case"*":o=a[i];break;default:o=e.normalizeStyleValue(i,n,o,r)}h[n]=o}),n||o.push(h),c=h,l=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return o}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,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:a,disabled:!!r}}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 P=y();(P||"undefined"!=typeof Element)&&(E=(t,e)=>t.contains(e),A=(()=>{if(P||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 R=null,I=!1;function T(t){R||(R=("undefined"!=typeof document?document.body:null)||{},I=!!R.style&&"WebkitAppearance"in R.style);let e=!0;return R.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in R.style,!e&&I)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in R.style),e}const M=A,F=E,L=O;function N(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 z=(()=>{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=[],r){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 z,t})();function j(t){if("number"==typeof t)return t;const 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,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=V(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=V(parseFloat(r),i[4]));const o=i[5];o&&(a=o)}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 W(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],r=[];if(n.forEach(t=>{a.hasOwnProperty(t)||r.push(t),a[t]=i[t]}),r.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],r=n[3];e.push(ct(s,r)),"<"!=a[0]||"*"==s&&"*"==r||e.push(ct(r,s))}(t,i,e)):i.push(t),i}const ot=new Set(["true","1"]),lt=new Set(["false","0"]);function ct(t,e){const i=ot.has(t)||lt.has(t),n=ot.has(e)||lt.has(e);return(s,a)=>{let r="*"==t||t==s,o="*"==e||e==a;return!r&&i&&"boolean"==typeof s&&(r=s?ot.has(t):lt.has(t)),!o&&n&&"boolean"==typeof a&&(o=a?ot.has(e):lt.has(e)),r&&o}}const ht=new RegExp("s*:selfs*,?","g");function dt(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:rt(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:h({});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=h(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=a,n=r}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],r=a[i];let o=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),o=!1),s=r.startTime),o&&(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,r=!1,o=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),r=r||c<0||c>1,a=a||c0&&n{const a=h>0?n==d?1:h*n:s[n],r=a*p;e.currentTime=u+m.delay+r,m.duration=r,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(ht,"")),[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 r=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:r,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,r=null,o=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:a,totalTime:s+a,easing:r,subTimeline:o}}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={},r={},o,l,c=[]){return(new xt).buildKeyframes(t,e,i,n,s,a,r,o,l,c)}class xt{buildKeyframes(t,e,i,n,s,a,r,o,l,c=[]){l=l||new _t;const h=new Ct(t,e,l,n,s,c,[]);h.options=o,h.currentTimeline.setStyles([a],null,h.errors,o),st(this,i,h);const d=h.timelines.filter(t=>t.containsAnimation());if(d.length&&Object.keys(r).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,h.errors,o)}return d.length?d.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?j(i.duration):null,a=null!=i.delay?j(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=j(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?j(t.options.delay):0;t.steps.forEach(a=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),st(this,a,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.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?j(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kt);let a=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let o=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(o=r.currentTimeline),st(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,a=Math.abs(s.duration),r=a*(e.currentQueryTotal-1);let o=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":o=r-o;break;case"full":o=i.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);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,r,o){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=a,this.timelines=r,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=o||new St(this._driver,e,0),r.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=j(i.duration)),null!=i.delay&&(n.delay=j(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 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 r=[];if(n&&r.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)),r.push(...e)}return s||0!=r.length||a.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}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 r=H(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(r.offset=a/this.duration),n.push(r)});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,r=!1){super(t,e,a.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,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,r=e/a,o=H(t[0],!1);o.offset=0,s.push(o);const l=H(t[0],!1);l.offset=Et(r),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let r=H(t[n],!1);r.offset=Et((e+r.offset*i)/a),s.push(r)}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(Pt[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 Pt=(()=>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 Rt(t,e,i,n,s,a,r,o,l,c,h,d,u){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:a,toState:n,toStyles:r,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:d,errors:u}}const It={};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,r,o,l,c){const h=[],d=this.ast.options&&this.ast.options.params||It,u=this.buildStyles(i,r&&r.params||It,h),m=o&&o.params||It,p=this.buildStyles(n,m,h),g=new Set,f=new Map,b=new Map,_="void"===n,y={params:Object.assign(Object.assign({},d),m)},v=c?[]:wt(t,e,this.ast.animation,s,a,u,p,y,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Rt(e,this._triggerName,i,n,_,u,p,[],[],f,b,w,h);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 x=J(g.values());return Rt(e,this._triggerName,i,n,_,u,p,v,x,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 Nt=new _t;class zt{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=dt(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 r=new Map;if(s?(a=wt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Nt,n),a.forEach(t=>{const e=S(r,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")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const o=v(a.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=o,o.onDestroy(()=>this.destroy(t)),this.players.push(o),o}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=[],jt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={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,[]),r={name:e,phase:i,callback:n};a.push(r);const o=S(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||(Xt(t,"ng-trigger"),Xt(t,"ng-trigger-"+e),o[e]=$t),()=>{this._engine.afterFlush(()=>{const t=a.indexOf(r);t>=0&&a.splice(t,1),this._triggers[e]||delete o[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 r=this._engine.statesByElement.get(t);r||(Xt(t,"ng-trigger"),Xt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let o=r[e];const l=new Ut(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),r[e]=l,o||(o=$t),"void"!==l.value&&o.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{W(t,i),Y(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 h=s.matchTransition(o.value,l.value,t,l.params),d=!1;if(!h){if(!n)return;h=s.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:o,toState:l,player:a,isFallbackTransition:d}),d||(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,r=new Ut("void"),o=new Gt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:a,toState:r,player:o,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!==jt||(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,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 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(Yt(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 Yt(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=jt,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=[],r=new Map,o=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(d,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=[],x=[];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=!h||!this.driver.containsElement(h,s),d=_.get(s),u=m.get(s),p=this._buildInstruction(t,i,u,d,c);if(!p.errors||!p.errors.length)return c?(e.onStart(()=>W(s,p.fromStyles)),e.onDestroy(()=>Y(s,p.toStyles)),void n.push(e)):t.isFallbackTransition?(e.onStart(()=>W(s,p.fromStyles)),e.onDestroy(()=>Y(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(r,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=o.get(e);t||o.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 D=g.filter(t=>te(t,o,l)),E=new Map;Qt(E,this.driver,b,l,"*").forEach(t=>{te(t,o,l)&&D.push(t)});const A=new Map;u.forEach((t,e)=>{Qt(A,this.driver,new Set(t),o,"!")}),D.forEach(t=>{const e=E.get(t),i=A.get(t);E.set(t,Object.assign(Object.assign({},e),i))});const O=[],P=[],R={};a.forEach(t=>{const{element:e,player:a,instruction:r}=t;if(i.has(e)){if(c.has(e))return a.onDestroy(()=>Y(e,r.toStyles)),a.disabled=!0,a.overrideTotalTime(r.totalTime),void n.push(a);let t=R;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,r,k,s,A,E);if(a.setRealPlayer(i),t===R)O.push(a);else{const e=this.playersByElement.get(t);e&&e.length&&(a.parentPlayer=v(e)),n.push(a)}}else W(e,r.fromStyles),a.onDestroy(()=>Y(e,r.toStyles)),P.push(a),c.has(e)&&n.push(a)}),P.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 r of e.timelines){const t=r.element,o=t!==n,l=S(i,t,[]);this._getPreviousPlayers(t,o,s,a,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}W(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const r=e.triggerName,o=e.element,l=[],c=new Set,h=new Set,d=e.timelines.map(e=>{const d=e.element;c.add(d);const u=d.__ng_removed;if(u&&u.removedBeforeQueried)return new b(e.duration,e.delay);const m=d!==o,p=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===d),g=s.get(d),f=a.get(d),y=w(0,this._normalizer,0,e.keyframes,g,f),v=this._buildPlayer(e,y,p);if(e.subTimeline&&n&&h.add(d),m){const e=new Gt(t,r,d);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(d);return u.onDestroy(()=>{c.forEach(t=>Zt(t,"ng-animating")),Y(o,e.toStyles)}),h.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=>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 Yt(t){return t&&1===t.nodeType}function Wt(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(Wt(t)));const r=[];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=Vt,r.push(n))}),t.set(n,a)});let o=0;return i.forEach(t=>Wt(t,a[o++])),r}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 r=e.parentNode;return a=i.has(r)?r:n.has(r)?1:t(r),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 zt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const a=t+"-"+n;let r=this._triggerCache[a];if(!r){const t=[],e=dt(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 - ")}`);r=function(t,e){return new Ft(t,e)}(n,e),this._triggerCache[a]=r}this._transitionEngine.registerTrigger(e,n,r)}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&&Y(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Y(this._element,this._initialStyles),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),Y(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(),he(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),de(t,"",i.join(",")))}(this._element,this._name))}}function oe(t,e,i){de(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 he(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function de(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,r,o){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=o,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 re(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=N(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=>N(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=[],r){r&&this._notifyFaultyScrubber();const o=a.filter(t=>t instanceof me),l={};it(i,n)&&o.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 h=`gen_css_kf_${this._count++}`,d=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(d);const u=ie(t,e),m=new me(t,e,h,i,n,s,c,u);return m.onDestroy(()=>{var t;(t=d).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=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,a);const o={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(o.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 h=ie(t,e=nt(t,e=e.map(t=>H(t,!1)),l));return new fe(t,e,o,h)}}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 ke(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 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 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 Pe=(()=>{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 Re=i("XNiG"),Ie=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 Ne(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var ze=i("7o/Q"),Be=i("KqfI"),je=i("n6bG");function Ve(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 ze.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(je.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 Ie.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 Ye extends Ge{constructor(t,e=Ge.now){super(t,()=>Ye.delegate&&Ye.delegate!==this?Ye.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Ye.delegate&&Ye.delegate!==this?Ye.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 We=new Ye(qe);function Qe(t,e=We){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 ze.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 ze.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 ri(t){return t?function(t){return new si.a(e=>t.schedule(()=>e.complete()))}(t):ai}function oi(t){return e=>0===t?ri():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 ze.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 hi(t){return null!=t&&"false"!==`${t}`}function di(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(LE){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,xi,ki;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==xi){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),xi=0,0===t.scrollLeft&&(t.scrollLeft=1,xi=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return xi}function Di(){if(null==ki){const t="undefined"!=typeof document?document.head:null;ki=!(!t||!t.createShadowRoot&&!t.attachShadow)}return ki}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 Re.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=hi(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=di(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})(),Pi=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ei]}),t})();function Ri(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ii=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=Ri(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=Ri(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=Ri(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 Re.a,this._typeaheadSubscription=Ie.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Re.a,this.change=new Re.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(Ve(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||Ne(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 Ni extends Li{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class zi 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(LE){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===Vi(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=Vi(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.Mc(bi))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(bi))},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 Vi(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(oi(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){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)}}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 Re.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))}_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,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(()=>{document.addEventListener("keydown",this._documentKeydownListener,Yi),document.addEventListener("mousedown",this._documentMousedownListener,Yi),document.addEventListener("touchstart",this._documentTouchstartListener,Yi),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,Yi),document.removeEventListener("mousedown",this._documentMousedownListener,Yi),document.removeEventListener("touchstart",this._documentTouchstartListener,Yi),window.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))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(s.F),Object(s.Mc)(bi))},token:t,providedIn:"root"}),t})();function Qi(t){return 0===t.buttons}let Ki=(()=>{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})(),Xi=(()=>{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(Ki))},imports:[[_i,Pi]]}),t})();const Zi=new s.v("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.db)(ye.e)}});let Ji=(()=>{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(Zi,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Zi,8))},token:t,providedIn:"root"}),t})(),tn=(()=>{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:Ji,useExisting:t}])]}),t})(),en=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const nn=new s.W("9.1.2");var sn=i("bHdf");function an(){return Object(sn.a)(1)}function rn(...t){return an()(Le(...t))}function on(...t){const e=t[t.length-1];return Object(Te.a)(e)?(t.pop(),i=>rn(t,i,e)):e=>rn(t,e)}const ln=["*",[["mat-option"],["ng-container"]]],cn=["*","mat-option, ng-container"];function hn(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 dn=["*"],un=new s.W("9.1.2"),mn=new s.v("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let pn=(()=>{class t{constructor(t,e){this._hasDoneGlobalChecks=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checksAreEnabled(){return Object(s.eb)()&&!this._isTestEnv()}_isTestEnv(){const t=this._window;return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document&&this._document.body&&"function"==typeof getComputedStyle))return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.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"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&un.full!==nn.full&&console.warn("The Angular Material version ("+un.full+") does not match the Angular CDK version ("+nn.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(Ki),s.Mc(mn,8))},imports:[[en],en]}),t})();function gn(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t)}}}function fn(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 bn(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=hi(t)}}}function _n(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 yn(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new Re.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 vn=new s.v("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(s.db)(s.z)}});class wn{constructor(){this._localeChanges=new Re.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 xn=new s.v("mat-date-formats");let kn;try{kn="undefined"!=typeof Intl}catch(LE){kn=!1}const Cn={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"]},Sn=An(31,t=>String(t+1)),Dn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},En=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function An(t,e){const i=Array(t);for(let n=0;n{class t extends wn{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(kn){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return An(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Cn[t]}getDateNames(){if(kn){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return An(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Sn}getDayOfWeekNames(t){if(kn){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return An(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Dn[t]}getYearName(t){if(kn){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(kn){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(En.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(vn,8),s.Mc(bi))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Pn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:wn,useClass:On}],imports:[[_i]]}),t})();const Rn={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 In=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:xn,useValue:Rn}],imports:[[Pn]]}),t})(),Tn=(()=>{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})(),Mn=(()=>{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 Fn(t,e){t.changes.pipe(on(t)).subscribe(({length:t})=>{Ln(e,"mat-2-line",!1),Ln(e,"mat-3-line",!1),Ln(e,"mat-multi-line",!1),2===t||3===t?Ln(e,`mat-${t}-line`,!0):t>3&&Ln(e,"mat-multi-line",!0)})}function Ln(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Nn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();class zn{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Bn={enterDuration:450,exitDuration:400},jn=Ci({passive:!0});class Vn{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=Qi(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({},Bn),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),r=t-n.left,o=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${r-a}px`,c.style.top=`${o-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 h=new zn(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}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({},Bn),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,jn)})}),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,jn)})}}const Un=new s.v("mat-ripple-global-options");let $n=(()=>{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 Vn(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(Un,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})(),Hn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,_i],pn]}),t})(),qn=(()=>{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})(),Gn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();class Yn{}const Wn=gn(Yn);let Qn=0,Kn=(()=>{class t extends Wn{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${Qn++}`}}return t.\u0275fac=function(e){return Xn(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:cn,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(s.Zc(ln),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 Xn=s.Fc(Kn);let Zn=0;class Jn{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ts=new s.v("MAT_OPTION_PARENT_COMPONENT");let es=(()=>{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-${Zn++}`,this.onSelectionChange=new s.s,this._stateChanges=new Re.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=hi(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||Ne(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 Jn(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(ts,8),s.yc(Kn,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:dn,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,hn,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,$n,qn],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 is(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 ss=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Hn,ye.c,Gn]]}),t})();const as=new s.v("mat-label-global-options"),rs=["mat-button",""],os=["*"],ls=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class cs{constructor(t){this._elementRef=t}}const hs=fn(gn(bn(cs)));let ds=(()=>{class t extends hs{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 ls)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(Wi),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($n,!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:rs,ngContentSelectors:os,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:[$n],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})(),us=(()=>{class t extends ds{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(Wi),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:rs,ngContentSelectors:os,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:[$n],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})(),ms=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Hn,pn],pn]}),t})();class ps{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Re.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 gs=(()=>{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 fs=i("DH7j"),bs=i("XoHu"),_s=i("Cfvw");function ys(...t){if(1===t.length){const e=t[0];if(Object(fs.a)(e))return vs(e,null);if(Object(bs.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return vs(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return vs(t=1===t.length&&Object(fs.a)(t[0])?t[0]:t,null).pipe(Object(ii.a)(t=>e(...t)))}return vs(t,null)}function vs(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,r=0;for(let o=0;o{c||(c=!0,r++),s[o]=t},error:t=>i.error(t),complete:()=>{a++,a!==n&&c||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}const ws=new s.v("NgValueAccessor"),xs={provide:ws,useExisting:Object(s.cb)(()=>ks),multi:!0};let ks=(()=>{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([xs])]}),t})();const Cs={provide:ws,useExisting:Object(s.cb)(()=>Ds),multi:!0},Ss=new s.v("CompositionEventMode");let Ds=(()=>{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(Ss,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([Cs])]}),t})(),Es=(()=>{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})(),As=(()=>{class t extends Es{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Os(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const Os=s.Fc(As);function Ps(){throw new Error("unimplemented")}class Rs extends Es{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Ps()}get asyncValidator(){return Ps()}}class Is{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 Ts=(()=>{class t extends Is{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Rs,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})(),Ms=(()=>{class t extends Is{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,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 Fs(t){return null==t||0===t.length}const Ls=new s.v("NgValidators"),Ns=new s.v("NgAsyncValidators"),zs=/^(?=.{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 Bs{static min(t){return e=>{if(Fs(e.value)||Fs(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(Fs(e.value)||Fs(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Fs(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Fs(t.value)?null:zs.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(Fs(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 Bs.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(Fs(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(js);return 0==e.length?null:function(t){return Us(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(js);return 0==e.length?null:function(t){return ys(function(t,e){return e.map(e=>e(t))}(t,e).map(Vs)).pipe(Object(ii.a)(Us))}}}function js(t){return null!=t}function Vs(t){const e=Object(s.Nb)(t)?Object(_s.a)(t):t;if(!Object(s.Mb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Us(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 $s(t){return t.validate?e=>t.validate(e):t}function Hs(t){return t.validate?e=>t.validate(e):t}const qs={provide:ws,useExisting:Object(s.cb)(()=>Gs),multi:!0};let Gs=(()=>{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([qs])]}),t})();const Ys={provide:ws,useExisting:Object(s.cb)(()=>Qs),multi:!0};let Ws=(()=>{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})(),Qs=(()=>{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(Rs),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(Ws),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([Ys])]}),t})();const Ks={provide:ws,useExisting:Object(s.cb)(()=>Xs),multi:!0};let Xs=(()=>{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([Ks])]}),t})();const Zs='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Js='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ta='\n
\n
\n \n
\n
';class ea{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 ${Zs}`)}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 ${Js}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ta}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${Zs}`)}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 ${Js}`)}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 ia={provide:ws,useExisting:Object(s.cb)(()=>sa),multi:!0};function na(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let sa=(()=>{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=na(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([ia])]}),t})(),aa=(()=>{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(na(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(sa,9))},t.\u0275dir=s.tc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const ra={provide:ws,useExisting:Object(s.cb)(()=>la),multi:!0};function oa(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let la=(()=>{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(oa(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(oa(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(la,9))},t.\u0275dir=s.tc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function ha(t,e){return[...e.path,t]}function da(t,e){t||ga(e,"Cannot find control with"),e.valueAccessor||ga(e,"No value accessor for form control with"),t.validator=Bs.compose([t.validator,e.validator]),t.asyncValidator=Bs.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&&ua(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&&ua(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 ua(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ma(t,e){null==t&&ga(e,"Cannot find control with"),t.validator=Bs.compose([t.validator,e.validator]),t.asyncValidator=Bs.composeAsync([t.asyncValidator,e.asyncValidator])}function pa(t){return ga(t,"There is no FormControl instance attached to form control element with")}function ga(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 fa(t){return null!=t?Bs.compose(t.map($s)):null}function ba(t){return null!=t?Bs.composeAsync(t.map(Hs)):null}function _a(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(s.Ob)(e,i.currentValue)}const ya=[ks,Xs,Gs,sa,la,Qs];function va(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function wa(t,e){if(!e)return null;Array.isArray(e)||ga(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===Ds?i=e:(a=e,ya.some(t=>a.constructor===t)?(n&&ga(t,"More than one built-in value accessor matches form control with"),n=e):(s&&ga(t,"More than one custom value accessor matches form control with"),s=e))}),s||n||i||(ga(t,"No valid value accessor for form control with"),null)}function xa(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function ka(t,e,i,n){Object(s.eb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(ea.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Ca(t){const e=Da(t)?t.validators:t;return Array.isArray(e)?fa(e):e||null}function Sa(t,e){const i=Da(e)?e.asyncValidators:t;return Array.isArray(i)?ba(i):i||null}function Da(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ea{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=Ca(t)}setAsyncValidators(t){this.asyncValidator=Sa(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=Vs(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 Oa?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Pa&&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){Da(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Aa extends Ea{constructor(t=null,e,i){super(Ca(e),Sa(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 Oa extends Ea{constructor(t,e,i){super(Ca(e),Sa(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 Aa?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 Pa extends Ea{constructor(t,e,i){super(Ca(e),Sa(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 Aa?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 Ra={provide:As,useExisting:Object(s.cb)(()=>Ta)},Ia=(()=>Promise.resolve(null))();let Ta=(()=>{class t extends As{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.s,this.form=new Oa({},fa(t),ba(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ia.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),da(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ia.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),xa(this._directives,t)})}addFormGroup(t){Ia.then(()=>{const e=this._findContainer(t.path),i=new Oa({});ma(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ia.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ia.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,va(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(Ls,10),s.yc(Ns,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([Ra]),s.hc]}),t})(),Ma=(()=>{class t extends As{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ha(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._validators)}get asyncValidator(){return ba(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Fa(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const Fa=s.Fc(Ma);class La{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 ${Zs}\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 ${Js}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ta}`)}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 ${Js}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ta}`)}}const Na={provide:As,useExisting:Object(s.cb)(()=>za)};let za=(()=>{class t extends Ma{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof Ta||La.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,5),s.yc(Ls,10),s.yc(Ns,10))},t.\u0275dir=s.tc({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[s.jc([Na]),s.hc]}),t})();const Ba={provide:Rs,useExisting:Object(s.cb)(()=>Va)},ja=(()=>Promise.resolve(null))();let Va=(()=>{class t extends Rs{constructor(t,e,i,n){super(),this.control=new Aa,this._registered=!1,this.update=new s.s,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=wa(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),_a(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ha(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(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(){da(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof za)&&this._parent instanceof Ma?La.formGroupNameException():this._parent instanceof za||this._parent instanceof Ta||La.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||La.missingNameException()}_updateValue(t){ja.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;ja.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(As,9),s.yc(Ls,10),s.yc(Ns,10),s.yc(ws,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([Ba]),s.hc,s.ic]}),t})(),Ua=(()=>{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 $a=new s.v("NgModelWithFormControlWarning"),Ha={provide:Rs,useExisting:Object(s.cb)(()=>qa)};let qa=(()=>{class t extends Rs{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=wa(this,i)}set isDisabled(t){ea.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(da(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),_a(e,this.viewModel)&&(ka("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(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(Ls,10),s.yc(Ns,10),s.yc(ws,10),s.yc($a,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([Ha]),s.hc,s.ic]}),t._ngModelWarningSentOnce=!1,t})();const Ga={provide:As,useExisting:Object(s.cb)(()=>Ya)};let Ya=(()=>{class t extends As{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 da(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){xa(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ma(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);ma(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,va(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(()=>pa(e)),e.valueAccessor.registerOnTouched(()=>pa(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&&da(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=fa(this._validators);this.form.validator=Bs.compose([this.form.validator,t]);const e=ba(this._asyncValidators);this.form.asyncValidator=Bs.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||ea.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ls,10),s.yc(Ns,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([Ga]),s.hc,s.ic]}),t})();const Wa={provide:As,useExisting:Object(s.cb)(()=>Qa)};let Qa=(()=>{class t extends Ma{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){Za(this._parent)&&ea.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,13),s.yc(Ls,10),s.yc(Ns,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s.jc([Wa]),s.hc]}),t})();const Ka={provide:As,useExisting:Object(s.cb)(()=>Xa)};let Xa=(()=>{class t extends As{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 ha(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return fa(this._validators)}get asyncValidator(){return ba(this._asyncValidators)}_checkParentType(){Za(this._parent)&&ea.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,13),s.yc(Ls,10),s.yc(Ns,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s.jc([Ka]),s.hc]}),t})();function Za(t){return!(t instanceof Qa||t instanceof Ya||t instanceof Xa)}const Ja={provide:Rs,useExisting:Object(s.cb)(()=>tr)};let tr=(()=>{class t extends Rs{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=wa(this,n)}set isDisabled(t){ea.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),_a(e,this.viewModel)&&(ka("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 ha(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Qa)&&this._parent instanceof Ma?ea.ngModelGroupException():this._parent instanceof Qa||this._parent instanceof Ya||this._parent instanceof Xa||ea.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(As,13),s.yc(Ls,10),s.yc(Ns,10),s.yc(ws,10),s.yc($a,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([Ja]),s.hc,s.ic]}),t._ngModelWarningSentOnce=!1,t})();const er={provide:Ls,useExisting:Object(s.cb)(()=>nr),multi:!0},ir={provide:Ls,useExisting:Object(s.cb)(()=>sr),multi:!0};let nr=(()=>{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?Bs.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([er])]}),t})(),sr=(()=>{class t extends nr{validate(t){return this.required?Bs.requiredTrue(t):null}}return t.\u0275fac=function(e){return ar(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([ir]),s.hc]}),t})();const ar=s.Fc(sr),rr={provide:Ls,useExisting:Object(s.cb)(()=>or),multi:!0};let or=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?Bs.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([rr])]}),t})();const lr={provide:Ls,useExisting:Object(s.cb)(()=>cr),multi:!0};let cr=(()=>{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=Bs.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([lr]),s.ic]}),t})();const hr={provide:Ls,useExisting:Object(s.cb)(()=>dr),multi:!0};let dr=(()=>{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=Bs.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([hr]),s.ic]}),t})();const ur={provide:Ls,useExisting:Object(s.cb)(()=>mr),multi:!0};let mr=(()=>{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=Bs.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([ur]),s.ic]}),t})(),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{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 Oa(i,{asyncValidators:s,updateOn:a,validators:n})}control(t,e,i){return new Aa(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Pa(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 Aa||t instanceof Oa||t instanceof Pa?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})(),fr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ws],imports:[pr]}),t})(),br=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$a,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[gr,Ws],imports:[pr]}),t})();const _r=["button"],yr=["*"],vr=new s.v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),wr={provide:ws,useExisting:Object(s.cb)(()=>Sr),multi:!0};class xr{}let kr=0;class Cr{constructor(t,e){this.source=t,this.value=e}}let Sr=(()=>{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-${kr++}`,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=hi(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=hi(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new ps(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 Cr(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(vr,8))},t.\u0275dir=s.tc({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ar,!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([wr,{provide:xr,useExisting:t}])]}),t})();class Dr{}const Er=bn(Dr);let Ar=(()=>{class t extends Er{constructor(t,e,i,n,a,r){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 o=Number(a);this.tabIndex=o||0===o?o:null,this.buttonToggleGroup=t,this.appearance=r&&r.appearance?r.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=hi(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=hi(t)}ngOnInit(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||`mat-button-toggle-${kr++}`,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 Cr(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Sr,8),s.yc(s.j),s.yc(s.q),s.yc(Wi),s.Nc("tabindex"),s.yc(vr,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&s.zd(_r,!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:yr,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:[$n],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})(),Or=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,Hn],pn]}),t})();const Pr=["*",[["mat-card-footer"]]],Rr=["*","mat-card-footer"],Ir=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Tr=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Mr=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Fr=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let Lr=(()=>{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})(),Nr=(()=>{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})(),zr=(()=>{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})(),Br=(()=>{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})(),jr=(()=>{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})(),Vr=(()=>{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})(),Ur=(()=>{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})(),$r=(()=>{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})(),Hr=(()=>{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})(),qr=(()=>{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})(),Gr=(()=>{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})(),Yr=(()=>{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:Rr,decls:2,vars:0,template:function(t,e){1&t&&(s.Zc(Pr),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})(),Wr=(()=>{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:Tr,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.Zc(Ir),s.Yc(0),s.Dc(1,"div",0),s.Yc(2,1),s.Cc(),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),Qr=(()=>{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:Fr,decls:4,vars:0,template:function(t,e){1&t&&(s.Zc(Mr),s.Dc(0,"div"),s.Yc(1),s.Cc(),s.Yc(2,1),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),Kr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const Xr=["input"],Zr=function(){return{enterDuration:150}},Jr=["*"],to=new s.v("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),eo=new s.v("mat-checkbox-click-action");let io=0;const no={provide:ws,useExisting:Object(s.cb)(()=>oo),multi:!0};class so{}class ao{constructor(t){this._elementRef=t}}const ro=_n(fn(bn(gn(ao))));let oo=(()=>{class t extends ro{constructor(t,e,i,n,a,r,o,l){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=r,this._animationMode=o,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++io}`,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=hi(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=hi(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=hi(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 so;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(Wi),s.yc(s.F),s.Nc("tabindex"),s.yc(eo,8),s.yc(Ae,8),s.yc(to,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(s.zd(Xr,!0),s.zd($n,!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([no]),s.hc],ngContentSelectors:Jr,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,Zr))}},directives:[$n,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 lo={provide:Ls,useExisting:Object(s.cb)(()=>co),multi:!0};let co=(()=>{class t extends sr{}return t.\u0275fac=function(e){return ho(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.jc([lo]),s.hc]}),t})();const ho=s.Fc(co);let uo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),mo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Hn,pn,Pi,uo],pn,uo]}),t})();function po(t){return new si.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(_s.a)(i):ri()).subscribe(e)})}var go=i("VRyK");function fo(t,e,i,n){return Object(je.a)(i)&&(n=i,i=void 0),n?fo(t,e,i).pipe(Object(ii.a)(t=>Object(fs.a)(t)?n(...t):n(t))):new si.a(n=>{!function t(e,i,n,s,a){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,a),r=()=>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),r=()=>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),r=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let r=0,o=e.length;r1?Array.prototype.slice.call(arguments):t)}),n,i)})}class bo 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 _o extends Ye{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(++nfunction(t){const e=wo[t];e&&e()}(e)),e},clearImmediate(t){delete wo[t]}};class ko 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=xo.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&&(xo.clearImmediate(e),t.scheduled=void 0)}}class Co extends Ye{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 Eo(t,e))}class Eo{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Ao(t,this.compare,this.keySelector))}}class Ao extends ze.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 Oo=i("l7GE"),Po=i("ZUHj");class Ro{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Io(t,this.durationSelector))}}class Io extends Oo.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(Po.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 To(t){return!Object(fs.a)(t)&&t-parseFloat(t)+1>=0}function Mo(t=0,e,i){let n=-1;return To(e)?n=Number(e)<1?1:Number(e):Object(Te.a)(e)&&(i=e),Object(Te.a)(i)||(i=We),new si.a(e=>{const s=To(t)?t:+t-i.now();return i.schedule(Fo,s,{index:0,period:n,subscriber:e})})}function Fo(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 Lo(t,e=We){return i=()=>Mo(t,e),function(t){return t.lift(new Ro(i))};var i}function No(t){return e=>e.lift(new zo(t))}class zo{constructor(t){this.notifier=t}call(t,e){const i=new Bo(t),n=Object(Po.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Bo extends Oo.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var jo=i("51Dv");function Vo(t,e){return"function"==typeof e?i=>i.pipe(Vo((i,n)=>Object(_s.a)(t(i,n)).pipe(Object(ii.a)((t,s)=>e(i,t,n,s))))):e=>e.lift(new Uo(t))}class Uo{constructor(t){this.project=t}call(t,e){return e.subscribe(new $o(t,this.project))}}class $o extends Oo.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 jo.a(this,void 0,void 0);this.destination.add(s),this.innerSubscription=Object(Po.a)(this,t,e,i,s)}_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 Ho 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 qo extends Ye{}const Go=new qo(Ho);function Yo(t,e){return new si.a(e?i=>e.schedule(Wo,0,{error:t,subscriber:i}):e=>e.error(t))}function Wo({error:t,subscriber:e}){e.error(t)}let Qo=(()=>{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 Yo(this.error);case"C":return ri()}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 Ko extends ze.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(Ko.dispatch,this.delay,new Xo(t,this.destination)))}_next(t){this.scheduleMessage(Qo.createNext(t))}_error(t){this.scheduleMessage(Qo.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Qo.createComplete()),this.unsubscribe()}}class Xo{constructor(t,e){this.notification=t,this.destination=e}}var Zo=i("9ppp"),Jo=i("Ylt2");class tl extends Re.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 el(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 Zo.a;if(this.isStopped||this.hasError?a=Ie.a.EMPTY:(this.observers.push(t),a=new Jo.a(this,t)),n&&t.add(t=new Ko(t,n)),e)for(let r=0;re&&(a=Math.max(a,s-e)),a>0&&n.splice(0,a),n}}class el{constructor(t,e){this.time=t,this.value=e}}let il=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._scrolled=new Re.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}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(Lo(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}_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(()=>fo(window.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))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(s.F),Object(s.Mc)(bi))},token:t,providedIn:"root"}),t})(),nl=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new Re.a,this._elementScrolled=new si.a(t=>this.ngZone.runOutsideAngular(()=>fo(this.elementRef.nativeElement,"scroll").pipe(No(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(il),s.yc(s.F),s.yc(Ji,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),sl=(()=>{class t{constructor(t,e){this._platform=t,e.runOutsideAngular(()=>{this._change=t.isBrowser?Object(go.a)(fo(window,"resize"),fo(window,"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=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Lo(t)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}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})(),al=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[en,_i],en]}),t})();function rl(){throw Error("Host already has a portal attached")}class ol{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&rl(),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 ll extends ol{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class cl extends ol{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 hl extends ol{constructor(t){super(),this.element=t instanceof s.q?t.nativeElement:t}}class dl{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()&&rl(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof ll?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof cl?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof hl?(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 ul extends dl{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 ml=(()=>{class t extends dl{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})(),pl=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();class gl{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 fl{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 bl(){return Error("Scroll strategy has already been attached.")}class _l{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 bl();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 yl{enable(){}disable(){}attach(){}}function vl(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function wl(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class xl{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 bl();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();vl(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 kl=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new yl,this.close=t=>new _l(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new fl(this._viewportRuler,this._document),this.reposition=t=>new xl(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(il),s.Mc(sl),s.Mc(s.F),s.Mc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(il),Object(s.Mc)(sl),Object(s.Mc)(s.F),Object(s.Mc)(ye.e))},token:t,providedIn:"root"}),t})();class Cl{constructor(t){if(this.scrollStrategy=new yl,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 Sl{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 Dl{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function El(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function Al(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let Ol=(()=>{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 Pl=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Rl=(()=>{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||Pl){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 Re.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(oi(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(No(Object(go.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 Tl=/([A-Za-z%]+)$/;class Ml{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 Re.a,this._resizeSubscription=Ie.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 r=this._getOriginPoint(t,a),o=this._getOverlayPoint(r,e,a),l=this._getOverlayFit(o,e,i,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,r);this._canFitWithFlexibleDimensions(l,o,i)?n.push({position:a,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,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&&Fl(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,r=this._getOffset(n,"x"),o=this._getOffset(n,"y");r&&(s+=r),o&&(a+=o);let l=0-a,c=a+e.height-i.height,h=this._subtractOverflows(e.width,0-s,s+e.width-i.width),d=this._subtractOverflows(e.height,l,c),u=h*d;return{visibleArea:u,isCompletelyWithinViewport:e.width*e.height===u,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,a=Ll(this._overlayRef.getConfig().minHeight),r=Ll(this._overlayRef.getConfig().minWidth),o=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=a&&a<=n)&&o}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),r=Math.max(n.top-i.top-t.y,0),o=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?o||-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,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,o=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;o=2*e,l=t.x-e,o>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:a,left:l,bottom:r,right:c,width:o,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,Fl(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Fl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Fl(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();Fl(i,this._getExactOverlayY(e,t,n)),Fl(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",o=this._getOffset(e,"x"),l=this._getOffset(e,"y");o&&(r+=`translateX(${o}px) `),l&&(r+=`translateY(${l}px)`),i.transform=r.trim(),a.maxHeight&&(n?i.maxHeight=mi(a.maxHeight):s&&(i.maxHeight="")),a.maxWidth&&(n?i.maxWidth=mi(a.maxWidth):s&&(i.maxWidth="")),Fl(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:wl(t,i),isOriginOutsideView:vl(t,i),isOverlayClipped:wl(e,i),isOverlayOutsideView:vl(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=>{Al("originX",t.originX),El("originY",t.originY),Al("overlayX",t.overlayX),El("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 HTMLElement)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 Fl(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Ll(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Tl);return i&&"px"!==i?null:parseFloat(e)}return t||null}class Nl{constructor(t,e,i,n,s,a,r){this._preferredPositions=[],this._positionStrategy=new Ml(i,n,s,a,r).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 Sl(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 zl{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:r}=i,o=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=o?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,o?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 Bl=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new zl}connectedTo(t,e,i){return new Nl(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Ml(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(sl),s.Mc(ye.e),s.Mc(bi),s.Mc(Rl))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(sl),Object(s.Mc)(ye.e),Object(s.Mc)(bi),Object(s.Mc)(Rl))},token:t,providedIn:"root"}),t})(),jl=0,Vl=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=a,this._ngZone=r,this._document=o,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Cl(t);return s.direction=s.direction||this._directionality.value,new Il(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-${jl++}`,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 ul(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(kl),s.Mc(Rl),s.Mc(s.n),s.Mc(Bl),s.Mc(Ol),s.Mc(s.w),s.Mc(s.F),s.Mc(ye.e),s.Mc(Ji),s.Mc(ye.n,8))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Ul=[{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"}],$l=new s.v("cdk-connected-overlay-scroll-strategy");let Hl=(()=>{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})(),ql=(()=>{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=Ie.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 cl(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=hi(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=hi(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=hi(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=hi(t)}get push(){return this._push}set push(t){this._push=hi(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=Ul),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||Ne(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Cl({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(Vl),s.yc(s.U),s.yc(s.X),s.yc($l),s.yc(Ji,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 Gl={provide:$l,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Yl=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Vl,Gl],imports:[[en,pl,al],al]}),t})();function Wl(t,e=We){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new Ql(n,e))}class Ql{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Kl(t,this.delay,this.scheduler))}}class Kl extends ze.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(Kl.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Xl(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Qo.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Qo.createComplete()),this.unsubscribe()}}class Xl{constructor(t,e){this.time=t,this.notification=e}}const Zl=["underline"],Jl=["connectionContainer"],tc=["inputContainer"],ec=["label"];function ic(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 nc(t,e){1&t&&(s.Dc(0,"div",19),s.Yc(1,1),s.Cc())}function sc(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 ac(t,e){1&t&&s.Yc(0,3,["*ngSwitchCase","true"])}function rc(t,e){1&t&&(s.Dc(0,"span",23),s.vd(1," *"),s.Cc())}function oc(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,sc,4,1,"ng-container",12),s.td(3,ac,1,0,void 0,12),s.td(4,rc,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 lc(t,e){1&t&&(s.Dc(0,"div",24),s.Yc(1,4),s.Cc())}function cc(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 hc(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 dc(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 uc(t,e){if(1&t&&(s.Dc(0,"div",28),s.td(1,dc,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 mc=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pc=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let gc=0,fc=(()=>{class t{constructor(){this.id=`mat-error-${gc++}`}}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 bc={transitionMessages:r("transitionMessages",[d("enter",h({opacity:1,transform:"translateY(0%)"})),m("void => enter",[h({opacity:0,transform:"translateY(-100%)"}),o("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t}),t})();function yc(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let vc=0,wc=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${vc++}`}}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})(),xc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-label"]]}),t})(),kc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-placeholder"]]}),t})(),Cc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","matPrefix",""]]}),t})(),Sc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","matSuffix",""]]}),t})(),Dc=0;class Ec{constructor(t){this._elementRef=t}}const Ac=fn(Ec,"primary"),Oc=new s.v("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Pc=(()=>{class t extends Ac{constructor(t,e,i,n,s,a,r,o){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=a,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Re.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Dc++}`,this._labelId=`mat-form-field-label-${Dc++}`,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,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=hi(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(on(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(No(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(No(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(go.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(on(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(on(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(No(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._showAlwaysAnimate=!0,fo(this._label.nativeElement,"transitionend").pipe(oi(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 yc("start");t=i}else if("end"===i.align){if(e)throw yc("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),r=this._getStartEnd(t.children[0].getBoundingClientRect());let o=0;for(const e of t.children)o+=e.offsetWidth;e=r-a-5,i=o>0?.75*o+10:0}for(let r=0;r{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,Pi]]}),t})();const Ic=["panel"];function Tc(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 Mc=["*"];let Fc=0;class Lc{constructor(t,e){this.source=t,this.option=e}}class Nc{}const zc=bn(Nc),Bc=new s.v("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let jc=(()=>{class t extends zc{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Ie.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-${Fc++}`,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=hi(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 Lc(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(Bc))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,es,!0),s.qc(i,Kn,!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(Ic,!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:ts,useExisting:t}]),s.hc],ngContentSelectors:Mc,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,Tc,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})(),Vc=(()=>{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 Uc=new s.v("mat-autocomplete-scroll-strategy"),$c={provide:Uc,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Hc={provide:ws,useExisting:Object(s.cb)(()=>qc),multi:!0};let qc=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=o,this._document=l,this._viewportRuler=c,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ie.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Re.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=po(()=>this.autocomplete&&this.autocomplete.options?Object(go.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(oi(1),Vo(()=>this.optionSelections))),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=hi(t)}ngAfterViewInit(){if("undefined"!=typeof window&&(this._zone.runOutsideAngular(()=>{window.addEventListener("blur",this._windowBlurHandler)}),Di())){const t=this._element.nativeElement,e=t.getRootNode?t.getRootNode():null;this._isInsideShadowRoot=e instanceof window.ShadowRoot}}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){"undefined"!=typeof window&&window.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(go.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 Jn?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(go.a)(fo(this._document,"click"),fo(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=is(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=ns(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(oi(1)),e=this.autocomplete.options.changes.pipe(Ve(()=>this._positionStrategy.reapplyLastPosition()),Wl(0));return Object(go.a)(t,e).pipe(Vo(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),oi(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 cl(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 Cl({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}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Vl),s.yc(s.X),s.yc(s.F),s.yc(s.j),s.yc(Uc),s.yc(Ji,8),s.yc(Pc,9),s.yc(ye.e,8),s.yc(sl))},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: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([Hc]),s.ic]}),t})(),Gc=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[$c],imports:[[ss,Yl,pn,ye.c],ss,pn]}),t})();function Yc(t,e){}class Wc{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 Qc={dialogContainer:r("dialogContainer",[d("void, exit",h({opacity:0,transform:"scale(0.7)"})),d("enter",h({transform:"none"})),m("* => enter",o("150ms cubic-bezier(0, 0, 0.2, 1)",h({transform:"none",opacity:1}))),m("* => void, * => exit",o("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",h({opacity:0})))])};function Kc(){throw Error("Attempting to attach dialog content after content is already attached")}let Xc=(()=>{class t extends dl{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()&&Kc(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&Kc(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&Kc(),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(Wc))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&s.rd(ml,!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,Yc,0,0,"ng-template",0)},directives:[ml],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:[Qc.dialogContainer]}}),t})(),Zc=0;class Jc{constructor(t,e,i=`mat-dialog-${Zc++}`){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Re.a,this._afterClosed=new Re.a,this._beforeClosed=new Re.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Je(t=>"done"===t.phaseName&&"enter"===t.toState),oi(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Je(t=>"done"===t.phaseName&&"exit"===t.toState),oi(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&&!Ne(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Je(t=>"start"===t.phaseName),oi(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 th=new s.v("MatDialogData"),eh=new s.v("mat-dialog-default-options"),ih=new s.v("mat-dialog-scroll-strategy"),nh={provide:ih,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.block()}};let sh=(()=>{class t{constructor(t,e,i,n,s,a,r){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=a,this._overlayContainer=r,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Re.a,this._afterOpenedAtThisLevel=new Re.a,this._ariaHiddenElements=new Map,this.afterAllClosed=po(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(on(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 Wc)).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 Cl({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:Wc,useValue:e}]}),n=new ll(Xc,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new Jc(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe(()=>{a.disableClose||a.close()}),t instanceof s.U)e.attachTemplatePortal(new cl(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),s=e.attachComponentPortal(new ll(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:Xc,useValue:i},{provide:th,useValue:t.data},{provide:Jc,useValue:e}];return!t.direction||n&&n.get(Ji,null)||a.push({provide:Ji,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(Vl),s.Mc(s.w),s.Mc(ye.n,8),s.Mc(eh,8),s.Mc(ih),s.Mc(t,12),s.Mc(Rl))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),ah=0,rh=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=hh(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(Jc,8),s.yc(s.q),s.yc(sh))},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})(),oh=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id=`mat-dialog-title-${ah++}`}ngOnInit(){this._dialogRef||(this._dialogRef=hh(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(Jc,8),s.yc(s.q),s.yc(sh))},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})(),lh=(()=>{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})(),ch=(()=>{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 hh(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 dh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[sh,nh],imports:[[Yl,pl,pn],pn]}),t})(),uh=0,mh=(()=>{class t{constructor(){this._stateChanges=new Re.a,this._openCloseAllActions=new Re.a,this.id=`cdk-accordion-${uh++}`,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=hi(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})(),ph=0,gh=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Ie.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-${ph++}`,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=hi(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=hi(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(mh,12),s.yc(s.j),s.yc(gs))},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:mh,useValue:void 0}])]}),t})(),fh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const bh=["body"];function _h(t,e){}const yh=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],vh=["mat-expansion-panel-header","*","mat-action-row"],wh=function(t,e){return{collapsedHeight:t,expandedHeight:e}},xh=function(t,e){return{value:t,params:e}};function kh(t,e){if(1&t&&s.zc(0,"span",2),2&t){const t=s.Uc();s.ad("@indicatorRotate",t._getExpandedState())}}const Ch=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Sh=["mat-panel-title","mat-panel-description","*"],Dh=new s.v("MAT_ACCORDION"),Eh={indicatorRotate:r("indicatorRotate",[d("collapsed, void",h({transform:"rotate(0deg)"})),d("expanded",h({transform:"rotate(180deg)"})),m("expanded <=> collapsed, void => collapsed",o("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:r("expansionHeight",[d("collapsed, void",h({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),d("expanded",h({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),m("expanded <=> collapsed, void => collapsed",l([g("@indicatorRotate",p(),{optional:!0}),o("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:r("bodyExpansion",[d("collapsed, void",h({height:"0px",visibility:"hidden"})),d("expanded",h({height:"*",visibility:"visible"})),m("expanded <=> collapsed, void => collapsed",o("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let Ah=(()=>{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})(),Oh=0;const Ph=new s.v("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Rh=(()=>{class t extends gh{constructor(t,e,i,n,a,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new s.s,this.afterCollapse=new s.s,this._inputChanges=new Re.a,this._headerId=`mat-expansion-panel-header-${Oh++}`,this._bodyAnimationDone=new Re.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Do((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())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=hi(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(on(null),Je(()=>this.expanded&&!this._portal),oi(1)).subscribe(()=>{this._portal=new cl(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(Dh,12),s.yc(s.j),s.yc(gs),s.yc(s.X),s.yc(ye.e),s.yc(Ae,8),s.yc(Ph,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ah,!0),2&t&&s.gd(n=s.Rc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&s.zd(bh,!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:Dh,useValue:void 0}]),s.hc,s.ic],ngContentSelectors:vh,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(yh),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,_h,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:[ml],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:[Eh.bodyExpansion]},changeDetection:0}),t})(),Ih=(()=>{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})(),Th=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=Ie.a.EMPTY,this._animationsDisabled=!0;const a=t.accordion?t.accordion._stateChanges.pipe(Je(t=>!(!t.hideToggle&&!t.togglePosition))):ai;this._parentChangeSubscription=Object(go.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:Ne(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(Rh,1),s.yc(s.q),s.yc(Wi),s.yc(s.j),s.yc(Ph,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,xh,e._getExpandedState(),s.ed(13,wh,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:Sh,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(Ch),s.Dc(0,"span",0),s.Yc(1),s.Yc(2,1),s.Yc(3,2),s.Cc(),s.td(4,kh,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:[Eh.indicatorRotate,Eh.expansionHeaderHeight]},changeDetection:0}),t})(),Mh=(()=>{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})(),Fh=(()=>{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})(),Lh=(()=>{class t extends mh{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=hi(t)}ngAfterContentInit(){this._headers.changes.pipe(on(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new zi(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;36===e?Ne(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?Ne(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return Nh(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Th,!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:Dh,useExisting:t}]),s.hc]}),t})();const Nh=s.Fc(Lh);let zh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,fh,pl]]}),t})();const Bh=["*"],jh=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],Vh=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Uh=new s.v("MAT_GRID_LIST");let $h=(()=>{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(di(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(di(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(Uh,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:Bh,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})(),Hh=(()=>{class t{constructor(t){this._element=t}ngAfterContentInit(){Fn(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,Mn,!0),2&t&&s.gd(n=s.Rc())&&(e._lines=n)},ngContentSelectors:Vh,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(s.Zc(jh),s.Yc(0),s.Dc(1,"div",0),s.Yc(2,1),s.Cc(),s.Yc(3,2))},encapsulation:2,changeDetection:0}),t})(),qh=(()=>{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})(),Gh=(()=>{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})(),Yh=(()=>{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 Wh{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 Qh(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 Jh extends Xh{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",ed(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",ed(`${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 td extends Xh{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",ed(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function ed(t){return`calc(${t})`}function id(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let nd=(()=>{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(di(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 td:t&&t.indexOf(":")>-1?new Jh(t):new Zh(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new Wh);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(Ji,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,$h,!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:Uh,useExisting:t}])],ngContentSelectors:Bh,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})(),sd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Nn,pn],Nn,pn]}),t})();function ad(t){return function(e){const i=new rd(t),n=e.lift(i);return i.caught=n}}class rd{constructor(t){this.selector=t}call(t,e){return e.subscribe(new od(t,this.selector,this.caught))}}class od extends Oo.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 jo.a(this,void 0,void 0);this.add(n),Object(Po.a)(this,i,void 0,void 0,n)}}}function ld(t){return e=>e.lift(new cd(t))}class cd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new hd(t,this.callback))}}class hd extends ze.a{constructor(t,e){super(t),this.add(new Ie.a(e))}}var dd=i("w1tV"),ud=i("5+tZ");function md(t,e){return Object(ud.a)(t,e,1)}class pd{}class gd{}class fd{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 fd?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 fd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof fd?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 bd{encodeKey(t){return _d(t)}encodeValue(t){return _d(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function _d(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 yd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new bd,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))],r=i.get(s)||[];r.push(a),i.set(s,r)}),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 yd({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 vd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function wd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function xd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class kd{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 fd),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]),o)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new kd(e,i,s,{params:l,headers:o,reportProgress:r,responseType:n,withCredentials:a})}}const Cd=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 Sd{constructor(t,e=200,i="OK"){this.headers=t.headers||new fd,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 Dd extends Sd{constructor(t={}){super(t),this.type=Cd.ResponseHeader}clone(t={}){return new Dd({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 Ed extends Sd{constructor(t={}){super(t),this.type=Cd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ed({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 Ad extends Sd{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 Od(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Pd=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof kd)n=t;else{let s=void 0;s=i.headers instanceof fd?i.headers:new fd(i.headers);let a=void 0;i.params&&(a=i.params instanceof yd?i.params:new yd({fromObject:i.params})),n=new kd(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(md(t=>this.handler.handle(t)));if(t instanceof kd||"events"===i.observe)return s;const a=s.pipe(Je(t=>t instanceof Ed));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 yd).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,Od(i,e))}post(t,e,i={}){return this.request("POST",t,Od(i,e))}put(t,e,i={}){return this.request("PUT",t,Od(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(pd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class Rd{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Id=new s.v("HTTP_INTERCEPTORS");let Td=(()=>{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 Md=/^\)\]\}',?\n/;class Fd{}let Ld=(()=>{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})(),Nd=(()=>{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 fd(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 Dd({headers:a,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:o}=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(Md,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Ed({body:l,headers:n,status:s,statusText:r,url:o||void 0})),e.complete()):e.error(new Ad({error:l,headers:n,status:s,statusText:r,url:o||void 0}))},o=t=>{const{url:n}=a(),s=new Ad({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:Cd.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},h=t=>{let i={type:Cd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",o),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:Cd.Sent}),()=>{i.removeEventListener("error",o),i.removeEventListener("load",r),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Fd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const zd=new s.v("XSRF_COOKIE_NAME"),Bd=new s.v("XSRF_HEADER_NAME");class jd{}let Vd=(()=>{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(zd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Ud=(()=>{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(jd),s.Mc(Bd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),$d=(()=>{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(Id,[]);this.chain=t.reduceRight((t,e)=>new Rd(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(gd),s.Mc(s.w))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Hd=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Ud,useClass:Td}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:zd,useValue:e.cookieName}:[],e.headerName?{provide:Bd,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ud,{provide:Id,useExisting:Ud,multi:!0},{provide:jd,useClass:Vd},{provide:zd,useValue:"XSRF-TOKEN"},{provide:Bd,useValue:"X-XSRF-TOKEN"}]}),t})(),qd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Pd,{provide:pd,useClass:$d},Nd,{provide:gd,useExisting:Nd},Ld,{provide:Fd,useExisting:Ld}],imports:[[Hd.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const Gd=["*"];function Yd(t){return Error(`Unable to find icon with the name "${t}"`)}function Wd(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Qd(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class Kd{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let Xd=(()=>{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 Kd(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const a=this._sanitizer.sanitize(s.P.HTML,i);if(!a)throw Qd(i);const r=this._createSvgElementForSingleIcon(a,n);return this._addSvgIconConfig(t,e,new Kd(r,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 Kd(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.P.HTML,e);if(!n)throw Qd(e);const a=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new Kd(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 Wd(t);const i=this._cachedIconsByUrl.get(e);return i?Le(Zd(i)):this._loadSvgIconFromConfig(new Kd(t)).pipe(Ve(t=>this._cachedIconsByUrl.set(e,t)),Object(ii.a)(t=>Zd(t)))}getNamedSvgIcon(t,e=""){const i=Jd(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):Yo(Yd(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Le(Zd(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Ve(e=>t.svgElement=e),Object(ii.a)(t=>Zd(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Le(i):ys(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(ad(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 Yd(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(dd.a)());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Jd(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(Pd,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)(Pd,8),Object(s.Mc)(n.b),Object(s.Mc)(ye.e,8),Object(s.Mc)(s.r,8))},token:t,providedIn:"root"}),t})();function Zd(t){return t.cloneNode(!0)}function Jd(t,e){return t+":"+e}class tu{constructor(t){this._elementRef=t}}const eu=fn(tu),iu=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:""}}}),nu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],su=nu.map(t=>`[${t}]`).join(", "),au=/^url\(['"]?#(.*?)['"]?\)$/;let ru=(()=>{class t extends eu{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=hi(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(oi(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(su),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],a=s.getAttribute(t),r=a?a.match(au):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Xd),s.Nc("aria-hidden"),s.yc(iu,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:Gd,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})(),ou=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const lu=Ci({passive:!0});let cu=(()=>{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 Re.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,lu),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",a,lu)}}),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})(),hu=(()=>{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(cu))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),du=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new Re.a,this._enabled=!0,this._previousMinRows=-1,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(t){this._minRows=di(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=di(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=hi(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(()=>{fo(window,"resize").pipe(Lo(16),No(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(){}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t;this._destroyed.isStopped||document.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))},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})(),uu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[_i]]}),t})(),mu=(()=>{class t extends du{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 pu(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 pu=s.Fc(mu),gu=new s.v("MAT_INPUT_VALUE_ACCESSOR"),fu=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bu=0;class _u{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const yu=yn(_u);let vu=(()=>{class t extends yu{constructor(t,e,i,n,s,a,r,o,l){super(a,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=o,this._uid=`mat-input-${bu++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new Re.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=r||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=hi(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=hi(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=hi(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(fu.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(Rs,10),s.yc(Ta,8),s.yc(Ya,8),s.yc(Tn),s.yc(gu,10),s.yc(cu),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:_c,useExisting:t}]),s.hc,s.ic]}),t})(),wu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Tn],imports:[[uu,Rc],uu,Rc]}),t})(),xu=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=hi(t)}get inset(){return this._inset}set inset(t){this._inset=hi(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})(),ku=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const Cu=["*"],Su=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Du=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Eu=["text"];function Au(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 Ou=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Pu=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class Ru{}const Iu=gn(bn(Ru));class Tu{}const Mu=bn(Tu);let Fu=(()=>{class t extends Iu{constructor(){super(...arguments),this._stateChanges=new Re.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return Lu(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:Cu,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-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}@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 Lu=s.Fc(Fu);let Nu=(()=>{class t extends Iu{constructor(t){super(),this._elementRef=t,this._stateChanges=new Re.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:Cu,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-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}@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})(),zu=(()=>{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})(),Bu=(()=>{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})(),ju=(()=>{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})(),Vu=(()=>{class t extends Mu{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new Re.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(No(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=hi(t)}ngAfterContentInit(){Fn(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(Fu,8),s.yc(Nu,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,zu,!0),s.qc(i,Bu,!0),s.qc(i,Mn,!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:Du,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(Su),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:[$n],encapsulation:2,changeDetection:0}),t})();class Uu{}const $u=bn(Uu);class Hu{}const qu=bn(Hu),Gu={provide:ws,useExisting:Object(s.cb)(()=>Qu),multi:!0};class Yu{constructor(t,e){this.source=t,this.option=e}}let Wu=(()=>{class t extends qu{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=hi(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=hi(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(){Fn(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)(()=>Qu)))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,zu,!0),s.qc(i,Bu,!0),s.qc(i,Mn,!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(Eu,!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:Pu,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(Ou),s.Dc(0,"div",0),s.zc(1,"div",1),s.td(2,Au,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:[$n,ye.t,qn],encapsulation:2,changeDetection:0}),t})(),Qu=(()=>{class t extends $u{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 ps(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new Re.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=hi(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 ps(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new zi(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(No(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(on(null),No(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(No(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=Ne(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&&Ne(t,"ctrlKey")&&!i.isTyping()?(this.options.find(t=>!t.selected)?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}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 Yu(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,Wu,!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([Gu]),s.hc,s.ic],ngContentSelectors:Cu,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-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}@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})(),Ku=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Nn,Hn,pn,Gn,ye.c],Nn,pn,Gn,ku]}),t})();const Xu=["mat-menu-item",""],Zu=["*"];function Ju(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 tm={transformMenu:r("transformMenu",[d("void",h({opacity:0,transform:"scale(0.8)"})),m("void => enter",l([g(".mat-menu-content, .mat-mdc-menu-content",o("100ms linear",h({opacity:1}))),o("120ms cubic-bezier(0, 0, 0.2, 1)",h({transform:"scale(1)"}))])),m("* => void",o("100ms 25ms linear",h({opacity:0})))]),fadeInItems:r("fadeInItems",[d("showing",h({opacity:1})),m("void => *",[h({opacity:0}),o("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let em=(()=>{class t{constructor(t,e,i,n,s,a,r){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=a,this._changeDetectorRef=r,this._attached=new Re.a}attach(t={}){this._portal||(this._portal=new cl(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new ul(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 im=new s.v("MAT_MENU_PANEL");class nm{}const sm=bn(gn(nm));let am=(()=>{class t extends sm{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new Re.a,this._focused=new Re.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=Ie.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Re.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-${om++}`}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=hi(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=hi(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 zi(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(on(this._directDescendantItems),Vo(t=>Object(go.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(on(this._directDescendantItems),Vo(t=>Object(go.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:Ne(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:Ne(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(oi(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(on(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(rm))},t.\u0275dir=s.tc({type:t,contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,em,!0),s.qc(i,am,!0),s.qc(i,am,!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})(),cm=(()=>{class t extends lm{}return t.\u0275fac=function(e){return hm(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const hm=s.Fc(cm);let dm=(()=>{class t extends cm{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(rm))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[s.jc([{provide:im,useExisting:cm},{provide:cm,useExisting:t}]),s.hc],ngContentSelectors:Zu,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,Ju,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:[tm.transformMenu,tm.fadeInItems]},changeDetection:0}),t})();const um=new s.v("mat-menu-scroll-strategy"),mm={provide:um,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},pm=Ci({passive:!0});let gm=(()=>{class t{constructor(t,e,i,n,a,r,o,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=r,this._dir=o,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ie.a.EMPTY,this._hoverSubscription=Ie.a.EMPTY,this._menuCloseSubscription=Ie.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,pm),r&&(r._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,pm),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 cm&&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(),t instanceof cm?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Je(t=>"void"===t.toState),oi(1),No(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach()),this._restoreFocus()}_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 Cl({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,r]=[n,s],[o,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=o="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(a="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:a,overlayX:o,overlayY:n,offsetY:c},{originX:i,originY:a,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:r,overlayX:o,overlayY:s,offsetY:-c},{originX:i,originY:r,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(go.a)(t,i,n,e)}_handleMousedown(t){Qi(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),Wl(0,So)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof cm&&this.menu._isAnimating?this.menu._animationDone.pipe(oi(1),Wl(0,So),No(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new cl(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Vl),s.yc(s.q),s.yc(s.X),s.yc(um),s.yc(cm,8),s.yc(am,10),s.yc(Ji,8),s.yc(Wi))},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})(),fm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[mm],imports:[pn]}),t})(),bm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[mm],imports:[[ye.c,pn,Hn,Yl,fm],fm]}),t})();const _m={};function ym(...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(fs.a)(t[0])&&(t=t[0]),Object(Me.a)(t,i).lift(new vm(e))}class vm{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new wm(t,this.resultSelector))}}class wm extends Oo.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(_m),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 Cm=new Set;let Sm,Dm=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Em}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Cm.has(t))try{Sm||(Sm=document.createElement("style"),Sm.setAttribute("type","text/css"),document.head.appendChild(Sm)),Sm.sheet&&(Sm.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Cm.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 Em(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Am=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new Re.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Om(ui(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=ym(Om(ui(t)).map(t=>this._registerQuery(t).observable));return e=rn(e.pipe(oi(1)),e.pipe(t=>t.lift(new xm(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(on(e),Object(ii.a)(e=>({query:t,matches:e.matches})),No(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Dm),s.Mc(s.F))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Dm),Object(s.Mc)(s.F))},token:t,providedIn:"root"}),t})();function Om(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Pm={tooltipState:r("state",[d("initial, void, hidden",h({opacity:0,transform:"scale(0)"})),d("visible",h({transform:"scale(1)"})),m("* => visible",o("200ms cubic-bezier(0, 0, 0.2, 1)",u([h({opacity:0,transform:"scale(0)",offset:0}),h({opacity:.5,transform:"scale(0.99)",offset:.5}),h({opacity:1,transform:"scale(1)",offset:1})]))),m("* => hidden",o("100ms cubic-bezier(0, 0, 0.2, 1)",h({opacity:0})))])},Rm=Ci({passive:!0});function Im(t){return Error(`Tooltip position "${t}" is invalid.`)}const Tm=new s.v("mat-tooltip-scroll-strategy"),Mm={provide:Tm,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Fm=new s.v("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Lm=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=a,this._ariaDescriber=r,this._focusMonitor=o,this._dir=c,this._defaultOptions=h,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 Re.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Ne(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.monitor(e).pipe(No(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=hi(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,Rm)}),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 ll(Nm,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(No(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(No(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(No(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 Im(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 Im(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(oi(1),No(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,Rm)})}_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(Vl),s.yc(s.q),s.yc(il),s.yc(s.X),s.yc(s.F),s.yc(bi),s.yc(Fi),s.yc(Wi),s.yc(Tm),s.yc(Ji,8),s.yc(Fm,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})(),Nm=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Re.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(Am))},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:[Pm.tooltipState]},changeDetection:0}),t})(),zm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Mm],imports:[[Xi,ye.c,Yl,pn],pn]}),t})();const Bm=["primaryValueBar"];class jm{constructor(t){this._elementRef=t}}const Vm=fn(jm,"primary"),Um=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 $m=0,Hm=(()=>{class t extends Vm{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=Ie.a.EMPTY,this.mode="determinate",this.progressbarId=`mat-progress-bar-${$m++}`;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=qm(di(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=qm(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=fo(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(Um,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&s.zd(Bm,!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 qm(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let Gm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,pn],pn]}),t})();function Ym(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 Wm(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 Qm(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 Km(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 Xm{constructor(t){this._elementRef=t}}const Zm=fn(Xm,"primary"),Jm=new s.v("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let tp=(()=>{class t extends Zm{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 r=t._diameters;r.has(n.head)||r.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=di(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=di(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,di(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){const i=e.head;if(i&&(i.createShadowRoot||i.attachShadow)){const e=t.getRootNode?t.getRootNode():null;if(e instanceof window.ShadowRoot)return e}}return null}(t,this._document)||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(Jm))},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,Ym,1,9,"circle",1),s.td(2,Wm,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})(),ep=(()=>{class t extends tp{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(Jm))},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,Qm,1,9,"circle",1),s.td(2,Km,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})(),ip=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,ye.c],pn]}),t})();const np=["input"],sp=function(){return{enterDuration:150}},ap=["*"],rp=new s.v("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let op=0;const lp={provide:ws,useExisting:Object(s.cb)(()=>hp),multi:!0};class cp{constructor(t,e){this.source=t,this.value=e}}let hp=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name=`mat-radio-group-${op++}`,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=hi(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=hi(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 cp(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,mp,!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([lp])]}),t})();class dp{constructor(t){this._elementRef=t}}const up=bn(_n(dp));let mp=(()=>{class t extends up{constructor(t,e,i,n,a,r,o){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=a,this._animationMode=r,this._providerOverride=o,this._uniqueId=`mat-radio-${++op}`,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=hi(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(hi(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=hi(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 cp(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(hp,8),s.yc(s.q),s.yc(s.j),s.yc(Wi),s.yc(gs),s.yc(Ae,8),s.yc(rp,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&s.zd(np,!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:ap,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,sp)),s.kc(2),s.oc("mat-radio-label-before","before"==e.labelPosition)}},directives:[$n],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})(),pp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Hn,pn],pn]}),t})();const gp=["trigger"],fp=["panel"];function bp(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 _p(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 yp(t,e){1&t&&s.Yc(0,0,["*ngSwitchCase","true"])}function vp(t,e){if(1&t&&(s.Dc(0,"span",9),s.td(1,_p,2,1,"span",10),s.td(2,yp,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 wp(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 xp=[[["mat-select-trigger"]],"*"],kp=["mat-select-trigger","*"],Cp={transformPanelWrap:r("transformPanelWrap",[m("* => void",g("@transformPanel",[p()],{optional:!0}))]),transformPanel:r("transformPanel",[d("void",h({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d("showing",h({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d("showing-multiple",h({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),m("void => *",o("120ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void",o("100ms 25ms linear",h({opacity:0})))])};let Sp=0;const Dp=new s.v("mat-select-scroll-strategy"),Ep=new s.v("MAT_SELECT_CONFIG"),Ap={provide:Dp,deps:[Vl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Op{constructor(t,e){this.source=t,this.value=e}}class Pp{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Rp=bn(_n(gn(yn(Pp))));let Ip=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-select-trigger"]]}),t})(),Tp=(()=>{class t extends Rp{constructor(t,e,i,n,a,r,o,l,c,h,d,u,m,p){super(a,n,o,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=c,this.ngControl=h,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-${Sp++}`,this._destroy=new Re.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new Re.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=po(()=>{const t=this.options;return t?t.changes.pipe(on(t),Vo(()=>Object(go.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(oi(1),Vo(()=>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(d)||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=hi(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=hi(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=hi(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=di(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ps(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Do(),No(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(No(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(No(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(on(null),No(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(oi(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&&!Ne(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||Ne(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(oi(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 Ni(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(No(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(No(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(go.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(No(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(go.a)(...this.options.map(t=>t._stateChanges)).pipe(No(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 Op(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=is(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=ns(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+=is(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)),r=t.right+s-e.width+(i?0:n);a>0?s+=a+8:r>0&&(s-=r+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 r;return this._disableOptionCentering?0:(r=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*r-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),r=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;r>s?this._adjustPanelUp(r,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(sl),s.yc(s.j),s.yc(s.F),s.yc(Tn),s.yc(s.q),s.yc(Ji,8),s.yc(Ta,8),s.yc(Ya,8),s.yc(Pc,8),s.yc(Rs,10),s.Nc("tabindex"),s.yc(Dp),s.yc(Gi),s.yc(Ep,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Ip,!0),s.qc(i,es,!0),s.qc(i,Kn,!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(gp,!0),s.zd(fp,!0),s.zd(ql,!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:_c,useExisting:t},{provide:ts,useExisting:t}]),s.hc,s.ic],ngContentSelectors:kp,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(xp),s.Dc(0,"div",0,1),s.Qc("click",(function(){return e.toggle()})),s.Dc(3,"div",2),s.td(4,bp,2,1,"span",3),s.td(5,vp,3,2,"span",4),s.Cc(),s.Dc(6,"div",5),s.zc(7,"div",6),s.Cc(),s.Cc(),s.td(8,wp,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:[Hl,ye.x,ye.y,ql,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:[Cp.transformPanelWrap,Cp.transformPanel]},changeDetection:0}),t})(),Mp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ap],imports:[[ye.c,Yl,ss,pn],Rc,ss,pn]}),t})();const Fp=["*"];function Lp(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 Np(t,e){1&t&&(s.Dc(0,"mat-drawer-content"),s.Yc(1,2),s.Cc())}const zp=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Bp=["mat-drawer","mat-drawer-content","*"];function jp(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 Vp(t,e){1&t&&(s.Dc(0,"mat-sidenav-content",3),s.Yc(1,2),s.Cc())}const Up=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],$p=["mat-sidenav","mat-sidenav-content","*"],Hp={transformDrawer:r("transform",[d("open, open-instant",h({transform:"none",visibility:"visible"})),d("void",h({"box-shadow":"none",visibility:"hidden"})),m("void => open-instant",o("0ms")),m("void <=> open, open-instant => void",o("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function qp(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const Gp=new s.v("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Yp=new s.v("MAT_DRAWER_CONTAINER");let Wp=(()=>{class t extends nl{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)(()=>Kp)),s.yc(s.q),s.yc(il),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:Fp,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},encapsulation:2,changeDetection:0}),t})(),Qp=(()=>{class t{constructor(t,e,i,n,a,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=a,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Re.a,this._animationEnd=new Re.a,this._animationState="void",this.openedChange=new s.s(!0),this._destroyed=new Re.a,this.onPositionChanged=new s.s,this._modeChanged=new Re.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{fo(this._elementRef.nativeElement,"keydown").pipe(Je(t=>27===t.keyCode&&!this.disableClose&&!Ne(t)),No(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Do((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=hi(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=hi(t)}get opened(){return this._opened}set opened(t){this.toggle(hi(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(oi(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(Wi),s.yc(bi),s.yc(s.F),s.yc(ye.e,8),s.yc(Yp,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:Fp,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:[Hp.transformDrawer]},changeDetection:0}),t})(),Kp=(()=>{class t{constructor(t,e,i,n,a,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new s.K,this.backdropClick=new s.s,this._destroyed=new Re.a,this._doCheckSubject=new Re.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Re.a,t&&t.change.pipe(No(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(No(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=hi(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:hi(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(on(this._allDrawers),No(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(on(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),No(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),No(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(No(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(No(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(oi(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(No(Object(go.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&&qp("end"),this._end=t):(null!=this._start&&qp("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(Ji,8),s.yc(s.q),s.yc(s.F),s.yc(s.j),s.yc(sl),s.yc(Gp),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,Wp,!0),s.qc(i,Qp,!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(Wp,!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:Yp,useExisting:t}])],ngContentSelectors:Bp,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(zp),s.td(0,Lp,1,2,"div",0),s.Yc(1),s.Yc(2,1),s.td(3,Np,2,0,"mat-drawer-content",1)),2&t&&(s.ad("ngIf",e.hasBackdrop),s.kc(3),s.ad("ngIf",!e._content))},directives:[ye.t,Wp],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})(),Xp=(()=>{class t extends Wp{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)(()=>tg)),s.yc(s.q),s.yc(il),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:Fp,decls:1,vars:0,template:function(t,e){1&t&&(s.Zc(),s.Yc(0))},encapsulation:2,changeDetection:0}),t})(),Zp=(()=>{class t extends Qp{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=hi(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=di(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=di(t)}}return t.\u0275fac=function(e){return Jp(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:Fp,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:[Hp.transformDrawer]},changeDetection:0}),t})();const Jp=s.Fc(Zp);let tg=(()=>{class t extends Kp{}return t.\u0275fac=function(e){return eg(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Xp,!0),s.qc(i,Zp,!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:Yp,useExisting:t}]),s.hc],ngContentSelectors:$p,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(Up),s.td(0,jp,1,2,"div",0),s.Yc(1),s.Yc(2,1),s.td(3,Vp,2,0,"mat-sidenav-content",1)),2&t&&(s.ad("ngIf",e.hasBackdrop),s.kc(3),s.ad("ngIf",!e._content))},directives:[ye.t,Xp,nl],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 eg=s.Fc(tg);let ig=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,pn,al,_i],pn]}),t})();const ng=["thumbContainer"],sg=["toggleBar"],ag=["input"],rg=function(){return{enterDuration:150}},og=["*"],lg=new s.v("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let cg=0;const hg={provide:ws,useExisting:Object(s.cb)(()=>pg),multi:!0};class dg{constructor(t,e){this.source=t,this.checked=e}}class ug{constructor(t){this._elementRef=t}}const mg=_n(fn(bn(gn(ug)),"accent"));let pg=(()=>{class t extends mg{constructor(t,e,i,n,a,r,o,l){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=r,this._animationMode=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId=`mat-slide-toggle-${++cg}`,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=hi(t)}get checked(){return this._checked}set checked(t){this._checked=hi(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 dg(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Wi),s.yc(s.j),s.Nc("tabindex"),s.yc(s.F),s.yc(lg),s.yc(Ae,8),s.yc(Ji,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(s.zd(ng,!0),s.zd(sg,!0),s.zd(ag,!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([hg]),s.hc],ngContentSelectors:og,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,rg))}},directives:[$n,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 gg={provide:Ls,useExisting:Object(s.cb)(()=>fg),multi:!0};let fg=(()=>{class t extends sr{}return t.\u0275fac=function(e){return bg(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([gg]),s.hc]}),t})();const bg=s.Fc(fg);let _g=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),yg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[_g,Hn,pn,Pi],_g,pn]}),t})();function vg(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 wg(t,e){}const xg=Math.pow(2,31)-1;class kg{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Re.a,this._afterOpened=new Re.a,this._onAction=new Re.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,xg))}_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 Cg=new s.v("MatSnackBarData");class Sg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Dg=(()=>{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(kg),s.yc(Cg))},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,vg,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,ds],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 Eg={snackBarState:r("state",[d("void, hidden",h({transform:"scale(0.8)",opacity:0})),d("visible",h({transform:"scale(1)",opacity:1})),m("* => visible",o("150ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void, * => hidden",o("75ms cubic-bezier(0.4, 0.0, 1, 1)",h({opacity:0})))])};let Ag=(()=>{class t extends dl{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new Re.a,this._onEnter=new Re.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._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(oi(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(Sg))},t.\u0275cmp=s.sc({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&s.rd(ml,!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,wg,0,0,"ng-template",0)},directives:[ml],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:[Eg.snackBarState]}}),t})(),Og=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Yl,pl,ye.c,ms,pn],pn]}),t})();const Pg=new s.v("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Sg}});let Rg=(()=>{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(Dg,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=new gl(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Sg,e]])),n=new ll(Ag,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 Sg),this._defaultConfig),e),n=this._createOverlay(i),a=this._attachSnackBarContainer(n,i),r=new kg(a,n);if(t instanceof s.U){const e=new cl(t,null,{$implicit:i.data,snackBarRef:r});r.instance=a.attachTemplatePortal(e)}else{const e=this._createInjector(i,r),n=new ll(t,void 0,e),s=a.attachComponentPortal(n);r.instance=s.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(No(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(r,i),this._openedSnackBarRef=r,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 Cl;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 gl(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[kg,e],[Cg,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Vl),s.Mc(Gi),s.Mc(s.w),s.Mc(Am),s.Mc(t,12),s.Mc(Pg))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(Vl),Object(s.Mc)(Gi),Object(s.Mc)(s.t),Object(s.Mc)(Am),Object(s.Mc)(t,12),Object(s.Mc)(Pg))},token:t,providedIn:Og}),t})();const Ig=["*",[["mat-toolbar-row"]]],Tg=["*","mat-toolbar-row"];class Mg{constructor(t){this._elementRef=t}}const Fg=fn(Mg);let Lg=(()=>{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})(),Ng=(()=>{class t extends Fg{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,Lg,!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:Tg,decls:2,vars:0,template:function(t,e){1&t&&(s.Zc(Ig),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})(),zg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();function Bg(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function jg(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Vg(t,e){const i=e?"":"none";jg(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function Ug(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function $g(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}const Hg=Ci({passive:!0}),qg=Ci({passive:!1});class Gg{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 Re.a,this._pointerMoveSubscription=Ie.a.EMPTY,this._pointerUpSubscription=Ie.a.EMPTY,this._scrollSubscription=Ie.a.EMPTY,this._resizeSubscription=Ie.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 Re.a,this.started=new Re.a,this.released=new Re.a,this.ended=new Re.a,this.entered=new Re.a,this.exited=new Re.a,this.dropped=new Re.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=hi(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=>Vg(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,qg),e.addEventListener("touchstart",this._pointerDown,Hg),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()&&Kg(this._rootElement),Kg(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&&Kg(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&Kg(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}),Xg(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=Xg(e),s=!n&&0!==e.button,a=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)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(on(null)).subscribe(()=>{this._scrollPosition=this._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.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?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=Yg(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);n=Zg(e,this._document),this._previewRef=e,t.matchSize?Jg(n,this._rootElement):n.style.transform=Yg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=Wg(t),Jg(n,t)}return jg(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),Vg(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=Yg(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=$g(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),a=$g(e,"transition-duration"),r=$g(e,"transition-delay");return Ug(a[s])+Ug(r[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),i=Zg(this._placeholderRef,this._document)):i=Wg(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=Xg(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=Xg(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,r=n.bottom-(s.height-e);i.x=Qg(i.x,n.left+t,n.right-(s.width-t)),i.y=Qg(i.y,a,r)}return i}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-s.x),r=Math.abs(i-s.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>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,Vg(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,qg),t.removeEventListener("touchstart",this._pointerDown,Hg)}_applyRootElementTransform(t,e){const i=Yg(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,r=i.top-n.top,o=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>n.height?(r>0&&(e+=r),o>0&&(e-=o)):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:Xg(t)?e.touch:e?e.mouse:0}}function Yg(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Wg(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 Re.a,this.entered=new Re.a,this.exited=new Re.a,this.dropped=new Re.a,this.sorted=new Re.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=Ie.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Re.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=We){return(!To(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=We),new si.a(i=>(i.add(e.schedule(Bg,t,{subscriber:i,counter:0,period:t})),i))}(0,yo).pipe(No(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?cf(t,-2):2===this._verticalScrollDirection&&cf(t,2),1===this._horizontalScrollDirection?hf(t,-2):2===this._horizontalScrollDirection&&hf(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,r=a.indexOf(t),o=t.getPlaceholderElement();let l=a[s];if(l===t&&(l=a[s+1]),r>-1&&a.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(o,e),a.splice(s,0,t)}else pi(this.element).appendChild(o),a.push(t);o.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?rf("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||!af(this._clientRect,e,i))return;const s=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===a&&s.length>0)return;const r="horizontal"===this._orientation,o=rf(s,e=>e.drag===t),l=s[a],c=s[o].clientRect,h=l.clientRect,d=o>a?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=r?n.x:n.y;const u=this._getItemOffsetPx(c,h,d),m=this._getSiblingOffsetPx(o,s,d),p=s.slice();tf(s,o,a),this.sorted.next({previousIndex:o,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,r?(a.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,sf(e.clientRect,0,s)):(a.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,sf(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.forEach((a,r)=>{r!==this._document&&a.clientRect&&!i&&af(a.clientRect,t,e)&&([n,s]=function(t,e,i,n){const s=df(e,n),a=uf(e,i);let r=0,o=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(a){const e=t.scrollLeft;1===a?e>0&&(o=1):t.scrollWidth-e>t.clientWidth&&(o=2)}return[r,o]}(r,a.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:a,height:r}=this._viewportRuler.getViewportSize(),o={width:a,height:r,top:0,right:a,bottom:r,left:0};n=df(o,e),s=uf(o,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=lf(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:lf(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 r=s[n?"width":"height"]*i;if(a){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=a.clientRect[t]-s[e]:r+=s[t]-a.clientRect[e]}return r}_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 rf(this._itemPositions,({drag:a,clientRect:r},o,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(r.left)&&e<=Math.floor(r.right):i>=Math.floor(r.top)&&i<=Math.floor(r.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_updateAfterScroll(t,e,i){const n=this._parentPositions.get(t).scrollPosition,s=n.top-e,a=n.left-i;this._parentPositions.forEach((e,i)=>{e.clientRect&&t!==i&&t.contains(i)&&sf(e.clientRect,s,a)}),this._itemPositions.forEach(({clientRect:t})=>{sf(t,s,a)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}),n.top=e,n.left=i}_isOverContainer(t,e){return of(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(n=>n._canReceive(t,e,i))}_canReceive(t,e,i){if(!of(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(){return this._cachedShadowRoot||(this._cachedShadowRoot=function(t){if(Di()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(pi(this.element))||this._document),this._cachedShadowRoot}}function sf(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function af(t,e,i){const{top:n,right:s,bottom:a,left:r,width:o,height:l}=t,c=.05*o,h=.05*l;return i>n-h&&ir-c&&e=n&&i<=s&&e>=a&&e<=r}function lf(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 cf(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function hf(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function df(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 uf(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 mf=Ci({passive:!1,capture:!0});let pf=(()=>{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 Re.a,this.pointerUp=new Re.a,this.scroll=new Re.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,mf)})}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,mf)}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:mf}).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:mf}),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 gf={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ff=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=gf){return new Gg(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new nf(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(sl),s.Mc(pf))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Mc)(ye.e),Object(s.Mc)(s.F),Object(s.Mc)(sl),Object(s.Mc)(pf))},token:t,providedIn:"root"}),t})();const bf=new s.v("CDK_DRAG_PARENT");let _f=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new Re.a,this._disabled=!1,this._parentDrag=e,Vg(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bf,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),yf=(()=>{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})(),vf=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=hi(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 wf=new s.v("CDK_DRAG_CONFIG"),xf=new s.v("CDK_DROP_LIST");let kf=(()=>{class t{constructor(t,e,i,n,a,r,o,l,c){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=n,this._viewContainerRef=a,this._dir=o,this._changeDetectorRef=c,this._destroyed=new Re.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:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,r&&this._assignDefaults(r),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=hi(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(oi(1),No(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(on(this._handles),Ve(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),Vo(t=>Object(go.a)(...t.map(t=>t._stateChanges.pipe(on(t))))),No(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?Cf(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 Cf(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:di(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:r,rootElementSelector:o}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),a&&(this.boundaryElement=a),o&&(this.rootElementSelector=o)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(xf,12),s.yc(ye.e),s.yc(s.F),s.yc(s.X),s.yc(wf,8),s.yc(Ji,8),s.yc(ff),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,vf,!0),s.qc(i,yf,!0),s.qc(i,_f,!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:bf,useExisting:t}]),s.ic]}),t})();function Cf(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 Sf=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(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})(),Df=0,Ef=(()=>{class t{constructor(e,i,n,a,r,o,l){this.element=e,this._changeDetectorRef=n,this._dir=a,this._group=r,this._scrollDispatcher=o,this._destroyed=new Re.a,this.connectedTo=[],this.id=`cdk-drop-list-${Df++}`,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),r&&r._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=hi(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(on(this._dir.value),No(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=hi(this.sortingDisabled),e.autoScrollDisabled=hi(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(ff),s.yc(s.j),s.yc(Ji,8),s.yc(Sf,12),s.yc(il),s.yc(wf,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:Sf,useValue:void 0},{provide:xf,useExisting:t}])]}),t._dropLists=[],t})(),Af=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[ff]}),t})();function Of(t){return ad(t)(this)}si.a.prototype.map=function(t,e){return Object(ii.a)(t,e)(this)},si.a.prototype.catch=Of,si.a.prototype._catch=Of,si.a.throw=Yo,si.a.throwError=Yo;const Pf={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 Rf extends Re.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 Zo.a;return this._value}next(t){super.next(this._value=t)}}const If=(()=>{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 Tf(t){return function(e){return 0===t?ri():e.lift(new Mf(t))}}class Mf{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new Ff(t,this.total))}}class Ff extends ze.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 Nf(t))}class Nf{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new zf(t,this.errorFactory))}}class zf extends ze.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 Bf(){return new If}function jf(t=null){return e=>e.lift(new Vf(t))}class Vf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Uf(t,this.defaultValue))}}class Uf extends ze.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 $f=i("SpAZ");function Hf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Je((e,i)=>t(e,i,n)):$f.a,Tf(1),i?jf(e):Lf(()=>new If))}function qf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Je((e,i)=>t(e,i,n)):$f.a,oi(1),i?jf(e):Lf(()=>new If))}class Gf{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new Yf(t,this.predicate,this.thisArg,this.source))}}class Yf extends ze.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 Wf(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Qf(t,e,i))}}class Qf{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Kf(t,this.accumulator,this.seed,this.hasSeed))}}class Kf extends ze.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 Xf=i("mCNh");class Zf{constructor(t,e){this.id=t,this.url=e}}class Jf extends Zf{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 tb extends Zf{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class eb extends Zf{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ib extends Zf{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nb extends Zf{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 sb extends Zf{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 ab extends Zf{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 rb extends Zf{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 ob extends Zf{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 lb{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cb{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hb{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class db{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ub{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mb{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pb{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 gb=(()=>{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[vy]},encapsulation:2}),t})();class fb{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 bb(t){return new fb(t)}function _b(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function yb(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 Eb(t){return Array.prototype.concat.apply([],t)}function Ab(t){return t.length>0?t[t.length-1]:null}function Ob(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Pb(t){return Object(s.Mb)(t)?t:Object(s.Nb)(t)?Object(_s.a)(Promise.resolve(t)):Le(t)}function Rb(t,e,i){return i?function(t,e){return Sb(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!Fb(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=>Db(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!!Fb(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!Fb(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!!Fb(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,a)}}(e,i,i.segments)}(t.root,e.root)}class Ib{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bb(this.queryParams)),this._queryParamMap}toString(){return Bb.serialize(this)}}class Tb{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ob(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jb(this)}}class Mb{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=bb(this.parameters)),this._parameterMap}toString(){return Gb(this)}}function Fb(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function Lb(t,e){let i=[];return Ob(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),Ob(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class Nb{}class zb{parse(t){const e=new Xb(t);return new Ib(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return jb(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return Ob(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=Lb(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${jb(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=>`${Ub(e)}=${Ub(t)}`).join("&"):`${Ub(e)}=${Ub(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Bb=new zb;function jb(t){return t.segments.map(t=>Gb(t)).join("/")}function Vb(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ub(t){return Vb(t).replace(/%3B/gi,";")}function $b(t){return Vb(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hb(t){return decodeURIComponent(t)}function qb(t){return Hb(t.replace(/\+/g,"%20"))}function Gb(t){return`${$b(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${$b(t)}=${$b(e[t])}`).join("")}`;var e}const Yb=/^[^\/()?;=#]+/;function Wb(t){const e=t.match(Yb);return e?e[0]:""}const Qb=/^[^=?&#]+/,Kb=/^[^?&#]+/;class Xb{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Tb([],{}):new Tb([],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 Tb(t,e)),i}parseSegment(){const t=Wb(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Mb(Hb(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Wb(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Wb(this.remaining);t&&(i=t,this.capture(i))}t[Hb(e)]=Hb(i)}parseQueryParam(t){const e=function(t){const e=t.match(Qb);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(Kb);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=qb(e),s=qb(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=Wb(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 Tb([],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 Zb{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=Jb(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jb(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=t_(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return t_(t,this._root).map(t=>t.value)}}function Jb(t,e){if(t===e.value)return e;for(const i of e.children){const e=Jb(t,i);if(e)return e}return null}function t_(t,e){if(t===e.value)return[e];for(const i of e.children){const n=t_(t,i);if(n.length)return n.unshift(e),n}return[]}class e_{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function i_(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class n_ extends Zb{constructor(t,e){super(t),this.snapshot=e,c_(this,t)}toString(){return this.snapshot.toString()}}function s_(t,e){const i=function(t,e){const i=new o_([],{},{},"",{},"primary",e,null,t.root,-1,{});return new l_("",new e_(i,[]))}(t,e),n=new Rf([new Mb("",{})]),s=new Rf({}),a=new Rf({}),r=new Rf({}),o=new Rf(""),l=new a_(n,s,r,o,a,"primary",e,i.root);return l.snapshot=i.root,new n_(new e_(l,[]),i)}class a_{constructor(t,e,i,n,s,a,r,o){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=r,this._futureSnapshot=o}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=>bb(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ii.a)(t=>bb(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function r_(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 o_{constructor(t,e,i,n,s,a,r,o,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=r,this.routeConfig=o,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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=bb(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bb(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l_ extends Zb{constructor(t,e){super(e),this.url=t,c_(this,e)}toString(){return h_(this._root)}}function c_(t,e){e.value._routerState=t,e.children.forEach(e=>c_(t,e))}function h_(t){const e=t.children.length>0?` { ${t.children.map(h_).join(", ")} } `:"";return`${t.value}${e}`}function d_(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Sb(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Sb(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iSb(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||u_(t.parent,e.parent))}function m_(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function p_(t,e,i,n,s){let a={};return n&&Ob(n,(t,e)=>{a[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Ib(i.root===t?e:function t(e,i,n){const s={};return Ob(e.children,(e,a)=>{s[a]=e===i?n:t(e,i,n)}),new Tb(e.segments,s)}(i.root,t,e),a,s)}class g_{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&m_(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!==Ab(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class f_{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function b_(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function __(t,e,i){if(t||(t=new Tb([],{})),0===t.segments.length&&t.hasChildren())return y_(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],r=b_(i[n]),o=n0&&void 0===r)break;if(r&&o&&"object"==typeof o&&void 0===o.outlets){if(!k_(r,o,e))return a;n+=2}else{if(!k_(r,{},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]=__(t.children[n],e,i))}),Ob(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Tb(t.segments,s)}}function v_(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=v_(new Tb([],{}),0,t))}),e}function x_(t){const e={};return Ob(t,(t,i)=>e[i]=`${t}`),e}function k_(t,e,i){return t==i.path&&Sb(e,i.parameters)}class C_{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),d_(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=i_(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Ob(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=i_(t),s=t.value.component?i.children:e;Ob(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=i_(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new mb(t.value.snapshot))}),t.children.length&&this.forwardEvent(new db(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(d_(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),S_(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 S_(t){d_(t.value),t.children.forEach(S_)}function D_(t){return"function"==typeof t}function E_(t){return t instanceof Ib}class A_{constructor(t){this.segmentGroup=t||null}}class O_{constructor(t){this.urlTree=t}}function P_(t){return new si.a(e=>e.error(new A_(t)))}function R_(t){return new si.a(e=>e.error(new O_(t)))}function I_(t){return new si.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class T_{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(ad(t=>{if(t instanceof O_)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof A_)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(ad(t=>{if(t instanceof A_)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 Tb([],{primary:t}):t;return new Ib(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 Tb([],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 Ob(t,(t,a)=>{const r=e(a,t).pipe(Object(ii.a)(t=>s[a]=t));"primary"===a?i.push(r):n.push(r)}),Le.apply(null,i.concat(n)).pipe(an(),Hf(),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)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,a).pipe(ad(t=>{if(t instanceof A_)return Le(null);throw t}))),an(),qf(t=>!!t),ad((t,i)=>{if(t instanceof If||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Le(new Tb([],{}));throw new A_(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,a,r){return N_(n)!==a?P_(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a):P_(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("/")?R_(s):this.lineralizeSegments(i,s).pipe(Object(ud.a)(i=>{const s=new Tb(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){const{matched:r,consumedSegments:o,lastChild:l,positionalParamSegments:c}=M_(e,n,s);if(!r)return P_(e);const h=this.applyRedirectCommands(o,n.redirectTo,c);return n.redirectTo.startsWith("/")?R_(h):this.lineralizeSegments(n,h).pipe(Object(ud.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 Tb(n,{})))):Le(new Tb(n,{}));const{matched:s,consumedSegments:a,lastChild:r}=M_(e,i,n);if(!s)return P_(e);const o=n.slice(r);return this.getChildConfig(t,i,n).pipe(Object(ud.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:r}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>L_(t,e,i)&&"primary"!==N_(i))}(t,i,n)?{segmentGroup:F_(new Tb(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==N_(n)&&(i[N_(n)]=new Tb([],{}));return i}(n,new Tb(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>L_(t,e,i))}(t,i,n)?{segmentGroup:F_(new Tb(t.segments,function(t,e,i,n){const s={};for(const a of i)L_(t,e,a)&&!n[N_(a)]&&(s[N_(a)]=new Tb([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,o,n);return 0===r.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(ii.a)(t=>new Tb(a,t))):0===n.length&&0===r.length?Le(new Tb(a,{})):this.expandSegment(i,s,n,r,"primary",!0).pipe(Object(ii.a)(t=>new Tb(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Le(new vb(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(_s.a)(n).pipe(Object(ii.a)(n=>{const s=t.get(n);let a;if(function(t){return t&&D_(t.canLoad)}(s))a=s.canLoad(e,i);else{if(!D_(s))throw new Error("Invalid CanLoad guard");a=s(e,i)}return Pb(a)})).pipe(an(),(s=t=>!0===t,t=>t.lift(new Gf(s,void 0,t)))):Le(!0);var s}(t.injector,e,i).pipe(Object(ud.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(_b(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Le(new vb([],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 I_(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 Ib(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ob(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 Ob(e.children,(e,s)=>{a[s]=this.createSegmentGroup(t,e,i,n)}),new Tb(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 M_(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||yb)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function F_(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Tb(t.segments.concat(e.segments),e.children)}return t}function L_(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function N_(t){return t.outlet||"primary"}class z_{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class B_{constructor(t,e){this.component=t,this.route=e}}function j_(t,e,i){const n=t._root;return function t(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=i_(i);return e.children.forEach(e=>{!function(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=e.value,o=i?i.value:null,l=n?n.getContext(e.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Fb(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Fb(t.url,e.url)||!Sb(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!u_(t,e)||!Sb(t.queryParams,e.queryParams);case"paramsChange":default:return!u_(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new z_(s)):(r.data=o.data,r._resolvedData=o._resolvedData),t(e,i,r.component?l?l.children:null:n,s,a),c&&a.canDeactivateChecks.push(new B_(l&&l.outlet&&l.outlet.component||null,o))}else o&&U_(i,l,a),a.canActivateChecks.push(new z_(s)),t(e,null,r.component?l?l.children:null:n,s,a)}(e,r[e.value.outlet],n,s.concat([e.value]),a),delete r[e.value.outlet]}),Ob(r,(t,e)=>U_(t,n.getContext(e),a)),a}(n,e?e._root:null,i,[n.value])}function V_(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 U_(t,e,i){const n=i_(t),s=t.value;Ob(n,(t,n)=>{U_(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new B_(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const $_=Symbol("INITIAL_VALUE");function H_(){return Vo(t=>ym(...t.map(t=>t.pipe(oi(1),on($_)))).pipe(Wf((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==$_)return t;if(n===$_&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||E_(n))return n}return t},t)},$_),Je(t=>t!==$_),Object(ii.a)(t=>E_(t)?t:!0===t),oi(1)))}function q_(t,e){return null!==t&&e&&e(new ub(t)),Le(!0)}function G_(t,e){return null!==t&&e&&e(new hb(t)),Le(!0)}function Y_(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Le(n.map(n=>po(()=>{const s=V_(n,e,i);let a;if(function(t){return t&&D_(t.canActivate)}(s))a=Pb(s.canActivate(e,t));else{if(!D_(s))throw new Error("Invalid CanActivate guard");a=Pb(s(e,t))}return a.pipe(qf())}))).pipe(H_()):Le(!0)}function W_(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=>po(()=>Le(e.guards.map(s=>{const a=V_(s,e.node,i);let r;if(function(t){return t&&D_(t.canActivateChild)}(a))r=Pb(a.canActivateChild(n,t));else{if(!D_(a))throw new Error("Invalid CanActivateChild guard");r=Pb(a(n,t))}return r.pipe(qf())})).pipe(H_())));return Le(s).pipe(H_())}class Q_{}class K_{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=J_(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new o_([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new e_(i,e),s=new l_(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=r_(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=Lb(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 Q_))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new Q_}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new Q_;if((t.outlet||"primary")!==n)throw new Q_;let s,a=[],r=[];if("**"===t.path){const a=i.length>0?Ab(i).parameters:{};s=new o_(i,a,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,iy(t),n,t.component,t,X_(e),Z_(e)+i.length,ny(t))}else{const o=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new Q_;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||yb)(i,t,e);if(!n)throw new Q_;const s={};Ob(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=o.consumedSegments,r=i.slice(o.lastChild),s=new o_(a,o.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,iy(t),n,t.component,t,X_(e),Z_(e)+a.length,ny(t))}const o=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=J_(e,a,r,o,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(o,l);return[new e_(s,t)]}if(0===o.length&&0===c.length)return[new e_(s,[])];const h=this.processSegment(o,l,c,"primary");return[new e_(s,h)]}}function X_(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Z_(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 J_(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>ty(t,e,i)&&"primary"!==ey(i))}(t,i,n)){const s=new Tb(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"!==ey(a)){const i=new Tb([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[ey(a)]=i}return s}(t,e,n,new Tb(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=>ty(t,e,i))}(t,i,n)){const a=new Tb(t.segments,function(t,e,i,n,s,a){const r={};for(const o of n)if(ty(t,i,o)&&!s[ey(o)]){const i=new Tb([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===a?t.segments.length:e.length,r[ey(o)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}const a=new Tb(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}function ty(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function ey(t){return t.outlet||"primary"}function iy(t){return t.data||{}}function ny(t){return t.resolve||{}}function sy(t,e,i,n){const s=V_(t,e,n);return Pb(s.resolve?s.resolve(e,i):s(e,i))}function ay(t){return function(e){return e.pipe(Vo(e=>{const i=t(e);return i?Object(_s.a)(i).pipe(Object(ii.a)(()=>e)):Object(_s.a)([e])}))}}class ry{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const oy=new s.v("ROUTES");class ly{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 vb(Eb(n.injector.get(oy)).map(Cb),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(_s.a)(this.loader.load(t)):Pb(t()).pipe(Object(ud.a)(t=>t instanceof s.B?Le(t):Object(_s.a)(this.compiler.compileModuleAsync(t))))}}class cy{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function hy(t){throw t}function dy(t,e,i){return e.parse("/")}function uy(t,e){return Le(null)}let my=(()=>{class t{constructor(t,e,i,n,a,r,o,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 Re.a,this.errorHandler=hy,this.malformedUriErrorHandler=dy,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:uy,afterPreactivation:uy},this.urlHandlingStrategy=new cy,this.routeReuseStrategy=new ry,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 Ib(new Tb([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ly(r,o,t=>this.triggerEvent(new lb(t)),t=>this.triggerEvent(new cb(t))),this.routerState=s_(this.currentUrlTree,this.rootComponentType),this.transitions=new Rf({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)})),Vo(t=>{let i=!1,n=!1;return Le(t).pipe(Ve(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}}),Vo(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(Vo(t=>{const i=this.transitions.getValue();return e.next(new Jf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?ai:[t]}),Vo(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,r=this.config,function(t){return t.pipe(Vo(t=>function(t,e,i,n,s){return new T_(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,r).pipe(Object(ii.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Ve(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(ud.a)(a=>function(t,e,i,n,s="emptyOnly",a="legacy"){return new K_(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),Ve(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Ve(t=>{const i=new nb(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:r}=t,o=new Jf(i,this.serializeUrl(n),s,a);e.next(o);const l=s_(n,this.rootComponentType).snapshot;return Le(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ai}),ay(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!r})}),Ve(t=>{const e=new sb(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:j_(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(ud.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:r}}=i;return 0===r.length&&0===a.length?Le(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(_s.a)(t).pipe(Object(ud.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 r=V_(a,e,s);let o;if(function(t){return t&&D_(t.canDeactivate)}(r))o=Pb(r.canDeactivate(t,e,i,n));else{if(!D_(r))throw new Error("Invalid CanDeactivate guard");o=Pb(r(t,e,i,n))}return o.pipe(qf())})).pipe(H_()):Le(!0)}(t.component,t.route,i,e,n)),qf(t=>!0!==t,!0))}(r,n,s,t).pipe(Object(ud.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(_s.a)(e).pipe(md(e=>Object(_s.a)([G_(e.route.parent,n),q_(e.route,n),W_(t,e.path,i),Y_(t,e.route,i)]).pipe(an(),qf(t=>!0!==t,!0))),qf(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)),Ve(t=>{if(E_(t.guardsResult)){const e=_b(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Ve(t=>{const e=new ab(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 eb(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),ay(t=>{if(t.guards.canActivateChecks.length)return Le(t).pipe(Ve(t=>{const e=new rb(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(ud.a)(t=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=t;return s.length?Object(_s.a)(s).pipe(md(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 sy(t[a],e,i,n).pipe(Object(ii.a)(t=>({[a]:t})))}const a={};return Object(_s.a)(s).pipe(Object(ud.a)(s=>sy(t[s],e,i,n).pipe(Object(ii.a)(t=>(a[s]=t,t))))).pipe(Hf(),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),r_(t,i).resolve),null)))}(t.route,n,e,i)),function(t,e){return arguments.length>=2?function(i){return Object(Xf.a)(Wf(t,e),Tf(1),jf(e))(i)}:function(e){return Object(Xf.a)(Wf((e,i,n)=>t(e,i,n+1)),Tf(1))(e)}}((t,e)=>t),Object(ii.a)(e=>t)):Le(t)}))}),Ve(t=>{const e=new ob(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,i}),ay(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!r})}),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 e_(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 e_(n,a)}}var s}(t,e._root,i?i._root:void 0);return new n_(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Ve(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,r=t=>this.triggerEvent(t),Object(ii.a)(t=>(new C_(a,t.targetRouterState,t.currentRouterState,r).activate(s),t))),Ve({next(){i=!0},complete(){i=!0}}),ld(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new eb(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}),ad(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=E_(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new eb(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 ib(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,r}))}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){wb(t),this.config=t.map(Cb),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:r,queryParamsHandling:o,preserveFragment:l}=e;Object(s.eb)()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=i||this.routerState.root,h=l?this.currentUrlTree.fragment:a;let d=null;if(o)switch(o){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=r?this.currentUrlTree.queryParams:n||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,i,n,s){if(0===i.length)return p_(e.root,e.root,e,n,s);const a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new g_(!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 Ob(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 g_(i,e,n)}(i);if(a.toRoot())return p_(e.root,new Tb([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new f_(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new f_(i.snapshot._urlSegment,!0,0);const n=m_(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 f_(n,!1,s-a)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(a,e,t),o=r.processChildren?y_(r.segmentGroup,r.index,a.commands):__(r.segmentGroup,r.index,a.commands);return p_(r.segmentGroup,o,e,n,s)}(c,this.currentUrlTree,t,d,h)}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=E_(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 tb(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 r,o,l;s?(r=s.resolve,o=s.reject,l=s.promise):l=new Promise((t,e)=>{r=t,o=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:r,reject:o,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})(),py=(()=>{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:fy(this.skipLocationChange),replaceUrl:fy(this.replaceUrl),state:this.state};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:fy(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:fy(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(my),s.yc(a_),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})(),gy=(()=>{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 tb&&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:fy(this.skipLocationChange),replaceUrl:fy(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:fy(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:fy(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(my),s.yc(a_),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 fy(t){return""===t||!!t}let by=(()=>{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 tb&&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(my),s.yc(s.q),s.yc(s.L),s.yc(py,8),s.yc(gy,8))},t.\u0275dir=s.tc({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,py,!0),s.qc(i,gy,!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 _y{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new yy,this.attachRef=null}}class yy{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 _y,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let vy=(()=>{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 wy(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(yy),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 wy{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===a_?this.route:t===yy?this.childContexts:this.parent.get(t,e)}}class xy{}class ky{preload(t,e){return Le(null)}}let Cy=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ly(e,i,e=>t.triggerEvent(new lb(e)),e=>t.triggerEvent(new cb(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Je(t=>t instanceof tb),md(()=>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(_s.a)(i).pipe(Object(sn.a)(),Object(ii.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(ud.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(my),s.Mc(s.C),s.Mc(s.k),s.Mc(s.w),s.Mc(xy))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Sy=(()=>{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 Jf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof tb&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof pb&&(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 pb(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 Dy=new s.v("ROUTER_CONFIGURATION"),Ey=new s.v("ROUTER_FORROOT_GUARD"),Ay=[ye.n,{provide:Nb,useClass:zb},{provide:my,useFactory:function(t,e,i,n,s,a,r,o={},l,c){const h=new my(null,t,e,i,n,s,a,Eb(r));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),o.errorHandler&&(h.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(h.malformedUriErrorHandler=o.malformedUriErrorHandler),o.enableTracing){const t=Object(ye.N)();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return o.onSameUrlNavigation&&(h.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.urlUpdateStrategy&&(h.urlUpdateStrategy=o.urlUpdateStrategy),o.relativeLinkResolution&&(h.relativeLinkResolution=o.relativeLinkResolution),h},deps:[Nb,yy,ye.n,s.w,s.C,s.k,oy,Dy,[class{},new s.G],[class{},new s.G]]},yy,{provide:a_,useFactory:function(t){return t.routerState.root},deps:[my]},{provide:s.C,useClass:s.R},Cy,ky,class{preload(t,e){return e().pipe(ad(()=>Le(null)))}},{provide:Dy,useValue:{enableTracing:!1}}];function Oy(){return new s.E("Router",my)}let Py=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Ay,My(e),{provide:Ey,useFactory:Ty,deps:[[my,new s.G,new s.Q]]},{provide:Dy,useValue:i||{}},{provide:ye.o,useFactory:Iy,deps:[ye.D,[new s.u(ye.a),new s.G],Dy]},{provide:Sy,useFactory:Ry,deps:[my,ye.H,Dy]},{provide:xy,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:ky},{provide:s.E,multi:!0,useFactory:Oy},[Fy,{provide:s.d,multi:!0,useFactory:Ly,deps:[Fy]},{provide:zy,useFactory:Ny,deps:[Fy]},{provide:s.b,multi:!0,useExisting:zy}]]}}static forChild(e){return{ngModule:t,providers:[My(e)]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)(s.Mc(Ey,8),s.Mc(my,8))}}),t})();function Ry(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Sy(t,e,i)}function Iy(t,e,i={}){return i.useHash?new ye.h(t,e):new ye.B(t,e)}function Ty(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function My(t){return[{provide:s.a,multi:!0,useValue:t},{provide:oy,multi:!0,useValue:t}]}let Fy=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Re.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(my),n=this.injector.get(Dy);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(Dy),i=this.injector.get(Cy),n=this.injector.get(Sy),a=this.injector.get(my),r=this.injector.get(s.g);t===r.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),a.resetRootComponentType(r.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 Ly(t){return t.appInitializer.bind(t)}function Ny(t){return t.bootstrapListener.bind(t)}const zy=new s.v("Router Initializer");let By=(()=>{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=Pf,this.settings_changed=new Rf(!1),this.debugMode=!1,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(s.eb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/")}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,r=null){return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:r})}makeMP4(t,e,i,n=null,s=null,a=null,r=null){return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:r})}getFileStatusMp3(t){return this.http.post(this.path+"fileStatusMp3",{name:t})}getFileStatusMp4(t){return this.http.post(this.path+"fileStatusMp4",{name:t})}loadNavItems(){return Object(s.eb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config")}setConfig(t){return this.http.post(this.path+"setConfig",{new_config_file:t})}deleteFile(t,e,i=!1){return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{name:t,blacklistMode:i})}getMp3s(){return this.http.post(this.path+"getMp3s",{})}getMp4s(){return this.http.post(this.path+"getMp4s",{})}downloadFileFromServer(t,e,i=null,n=null){return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n},{responseType:"blob"})}downloadArchive(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob"})}getFileInfo(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i})}isPinSet(){return this.http.post(this.path+"isPinSet",{})}setPin(t){return this.http.post(this.path+"setPin",{pin:t})}checkPin(t){return this.http.post(this.path+"checkPin",{input_pin:t})}createPlaylist(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n})}updatePlaylist(t,e,i){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:i})}removePlaylist(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e})}createSubscription(t,e,i=null){return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i})}unsubscribe(t,e=!1){return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e})}deleteSubscriptionFile(t,e,i){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i})}getSubscription(t){return this.http.post(this.path+"getSubscription",{id:t})}getAllSubscriptions(){return this.http.post(this.path+"getAllSubscriptions",{})}getLatestGithubRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Pd),s.Mc(my),s.Mc(ye.e))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();si.a.of=Le;class jy{constructor(t){this.value=t}call(t,e){return e.subscribe(new Vy(t,this.value))}}class Vy extends ze.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Uy(t,e,i){return Ve(t,e,i)(this)}function $y(){return Vo($f.a)(this)}function Hy(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 qy(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 Gy(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 jy(t))}(t)(this)},i("XypG"),si.a.fromEvent=fo,si.a.prototype.filter=function(t,e){return Je(t,e)(this)},si.a.prototype.debounceTime=function(t,e=We){return Qe(t,e)(this)},si.a.prototype.do=Uy,si.a.prototype._do=Uy,si.a.prototype.switch=$y,si.a.prototype._switch=$y;let Yy=(()=>{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(By),s.yc(th),s.yc(Jc),s.yc(Rg))},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,Hy,2,1,"h4",0),s.Dc(1,"mat-dialog-content"),s.Dc(2,"div",1),s.td(3,qy,3,2,"div",2),s.td(4,Gy,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,lh,ch,ds,oh,Pc,vu,Ds,Ts,Va,ep],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),t})();const Wy={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"}},Qy={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"}},Ky={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 Xy,Zy,Jy,tv,ev,iv,nv,sv;function av(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 rv(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 ov(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,rv,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)}}Xy=$localize`:Modify args title␟d9e83ac17026e70ef6e9c0f3240a3b2450367f40␟3653857180335075556:Modify youtube-dl args`,Zy=$localize`:Simulated args title␟7fc1946abe2b40f60059c6cd19975d677095fd19␟3319938540903314395:Simulated new args`,Jy=$localize`:Add arg card title␟0b71824ae71972f236039bed43f8d2323e8fd570␟7066397187762906016:Add an arg`,tv=$localize`:Search args by category button␟c8b0e59eb491f2ac7505f0fbab747062e6b32b23␟827176536271704947:Search by category`,ev=$localize`:Use arg value checkbox␟9eeb91caef5a50256dd87e1c4b7b3e8216479377␟5487374754798278253:Use arg value`,iv=$localize`:Search args by category button␟7de2451ed3fb8d8b847979bd3f0c740b970f167b␟1014075402717090995:Add arg`,nv=$localize`:Arg modifier cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,sv=$localize`:Arg modifier modify button␟b2623aee44b70c9a4ba1fce16c8a593b0a4c7974␟3251759404563225821:Modify`;const lv=["placeholder",$localize`:Arg value placeholder␟25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd␟9086775160067017111:Arg value`],cv=function(){return{standalone:!0}};function hv(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,lv),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,cv))("disabled",!t.secondArgEnabled)("ngModel",t.secondArg)}}let dv=(()=>{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})(),uv=(()=>{class t{constructor(t,e,i){this.data=t,this.dialogRef=e,this.dialog=i,this.myGroup=new Aa,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Aa,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(on(""),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=Ky,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e);this.availableArgs=i,this.argsByCategory=t,this.argsInfo=Qy}setFirstArg(t){this.stateCtrl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(th),s.yc(Jc),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-arg-modifier-dialog"]],features:[s.jc([dv])],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,Xy),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,Zy),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,Jy),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,av,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,ov,6,3,"ng-container",13),s.Vc(28,"keyvalue"),s.Cc(),s.Dc(29,"button",14),s.Bc(30),s.Hc(31,tv),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,ev),s.Ac(),s.Cc(),s.Cc(),s.td(36,hv,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,iv),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,nv),s.Ac(),s.Cc(),s.Dc(45,"button",19),s.Bc(46),s.Hc(47,sv),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,cv))("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:[oh,lh,Yr,Pc,vu,Ua,Ms,Ta,qc,Ds,Ts,qa,jc,ye.s,dm,ds,gm,oo,Va,ye.t,ch,rh,es,Lm,ru,am],pipes:[ye.b,ye.l,dv],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),t})();var mv,pv,gv,fv,bv,_v,yv,vv,wv,xv,kv,Cv;function Sv(t,e){if(1&t&&(s.Dc(0,"mat-option",8),s.vd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Uc();s.ad("value",t),s.kc(1),s.xd(" ",i.all_locales[t].nativeName," ")}}mv=$localize`:Settings title␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,pv=$localize`:Host settings title␟fe22ca53e651df951dac25b67c17894b0980f767␟6641024648411549335:Host`,gv=$localize`:Encryption settings title␟948758e1412bb2ecdb98e3a4f1cbb6d7458456f2␟8255877266497322342:Encryption`,fv=$localize`:Downloader settings title␟0ba25ad86a240576c4f20a2fada4722ebba77b1e␟5385813889746830226:Downloader`,bv=$localize`:Extra settings title␟d5f69691f9f05711633128b5a3db696783266b58␟7419412790104674886:Extra`,_v=$localize`:API settings title␟e351b40b3869a5c7d19c3d4918cb1ac7aaab95c4␟8942351587754185907:API`,yv=$localize`:Themes settings title␟60c855c323706a04ccd2ff22d634bde9b6233bbf␟2798270190074840767:Themes`,vv=$localize`:Subscriptions settings title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,wv=$localize`:Extensions settings title␟0feab442129ba239106e55cf029069d3d4adeadc␟3139147897029202869:Extensions`,xv=$localize`:Advanced settings title␟bc2e854e111ecf2bd7db170da5e3c2ed08181d88␟6201638315245239510:Advanced`,kv=$localize`:Settings save button␟52c9a103b812f258bcddc3d90a6e3f46871d25fe␟3768927257183755959:Save`,Cv=$localize`:Settings cancel and close button␟fe8fd36dbf5deee1d56564965787a782a66eba44␟1370226763724525124:{VAR_SELECT, select, true {Close} false {Cancel} other {otha}}`,Cv=s.Lc(Cv,{VAR_SELECT:"\ufffd0\ufffd"});const Dv=["placeholder",$localize`:URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var Ev;Ev=$localize`:URL setting input hint␟54c512cca1923ab72faf1a0bd98d3d172469629a␟5463756323010996100:URL this app will be accessed from, without the port.`;const Av=["placeholder",$localize`:Port input placeholder␟cb2741a46e3560f6bc6dfd99d385e86b08b26d72␟6117946241126833991:Port`];var Ov,Pv;function Rv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Jc(5,Dv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Host.url=e})),s.Cc(),s.Dc(6,"mat-hint"),s.Bc(7),s.Hc(8,Ev),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(9,"div",14),s.Dc(10,"mat-form-field",12),s.Dc(11,"input",13),s.Jc(12,Av),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Host.port=e})),s.Cc(),s.Dc(13,"mat-hint"),s.Bc(14),s.Hc(15,Ov),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(4),s.ad("ngModel",t.new_config.Host.url),s.kc(7),s.ad("ngModel",t.new_config.Host.port)}}Ov=$localize`:Port setting input hint␟22e8f1d0423a3b784fe40fab187b92c06541b577␟12816402920404434:The desired port. Default is 17442.`,Pv=$localize`:Use encryption setting␟cbe16a57be414e84b6a68309d08fad894df797d6␟5503616660881623306:Use encryption`;const Iv=["placeholder",$localize`:Cert file path input placeholder␟0c1875a79b7ecc792cc1bebca3e063e40b5764f9␟2857997144709025078:Cert file path`],Tv=["placeholder",$localize`:Key file path input placeholder␟736551b93461d2de64b118cf4043eee1d1c2cb2c␟2320113463068090884:Key file path`];function Mv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Encryption["use-encryption"]=e})),s.Bc(4),s.Hc(5,Pv),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",16),s.Jc(9,Iv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Encryption["cert-file-path"]=e})),s.Cc(),s.Cc(),s.Cc(),s.Dc(10,"div",11),s.Dc(11,"mat-form-field",12),s.Dc(12,"input",16),s.Jc(13,Tv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Encryption["key-file-path"]=e})),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();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"])}}const Fv=["placeholder",$localize`:Audio folder path input placeholder␟ab2756805742e84ad0cc0468f4be2d8aa9f855a5␟3475061775640312711:Audio folder path`];var Lv;Lv=$localize`:Aduio path setting input hint␟c2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca␟3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder.`;const Nv=["placeholder",$localize`:Video folder path input placeholder␟46826331da1949bd6fb74624447057099c9d20cd␟3354965786971797948:Video folder path`];var zv;zv=$localize`:Video path setting input hint␟17c92e6d47a213fa95b5aa344b3f258147123f93␟2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder.`;const Bv=["placeholder",$localize`:Custom args input placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var jv,Vv;function Uv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Jc(5,Fv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Downloader["path-audio"]=e})),s.Cc(),s.Dc(6,"mat-hint"),s.Bc(7),s.Hc(8,Lv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(9,"div",14),s.Dc(10,"mat-form-field",12),s.Dc(11,"input",13),s.Jc(12,Nv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Downloader["path-video"]=e})),s.Cc(),s.Dc(13,"mat-hint"),s.Bc(14),s.Hc(15,zv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(16,"div",14),s.Dc(17,"mat-form-field",12),s.Dc(18,"textarea",17),s.Jc(19,Bv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Downloader.custom_args=e})),s.Cc(),s.Dc(20,"mat-hint"),s.Bc(21),s.Hc(22,jv),s.Ac(),s.Cc(),s.Cc(),s.Dc(23,"button",18),s.Qc("click",(function(){return s.ld(t),s.Uc().openArgsModifierDialog()})),s.vd(24,"Modify args"),s.Cc(),s.Cc(),s.Dc(25,"div",14),s.Dc(26,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Downloader.use_youtubedl_archive=e})),s.Bc(27),s.Hc(28,Vv),s.Ac(),s.Cc(),s.Dc(29,"p"),s.vd(30,"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();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(8),s.ad("ngModel",t.new_config.Downloader.use_youtubedl_archive)}}jv=$localize`:Custom args setting input hint␟f41145afc02fd47ef0576ac79acd2c47ebbf4901␟8874045538582126918:Global custom args for downloads on the home page.`,Vv=$localize`:Use youtubedl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`;const $v=["placeholder",$localize`:Top title input placeholder␟61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095␟1974727764328838461:Top title`];var Hv,qv,Gv,Yv,Wv,Qv,Kv;function Xv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Jc(5,$v),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.title_top=e})),s.Cc(),s.zc(6,"mat-hint"),s.Cc(),s.Cc(),s.Dc(7,"div",11),s.Dc(8,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.file_manager_enabled=e})),s.Bc(9),s.Hc(10,Hv),s.Ac(),s.Cc(),s.Cc(),s.Dc(11,"div",11),s.Dc(12,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.allow_quality_select=e})),s.Bc(13),s.Hc(14,qv),s.Ac(),s.Cc(),s.Cc(),s.Dc(15,"div",11),s.Dc(16,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.download_only_mode=e})),s.Bc(17),s.Hc(18,Gv),s.Ac(),s.Cc(),s.Cc(),s.Dc(19,"div",11),s.Dc(20,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.allow_multi_download_mode=e})),s.Bc(21),s.Hc(22,Yv),s.Ac(),s.Cc(),s.Cc(),s.Dc(23,"div",11),s.Dc(24,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Extra.settings_pin_required=e})),s.Bc(25),s.Hc(26,Wv),s.Ac(),s.Cc(),s.Dc(27,"button",19),s.Qc("click",(function(){return s.ld(t),s.Uc().setNewPin()})),s.Bc(28),s.Hc(29,Qv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();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)}}Hv=$localize`:File manager enabled setting␟78d3531417c0d4ba4c90f0d4ae741edc261ec8df␟488432415925701010:File manager enabled`,qv=$localize`:Allow quality seelct setting␟c33bd5392b39dbed36b8e5a1145163a15d45835f␟2252491142626131446:Allow quality select`,Gv=$localize`:Download only mode setting␟bda5508e24e0d77debb28bcd9194d8fefb1cfb92␟2765258699599899343:Download only mode`,Yv=$localize`:Allow multi-downloade mode setting␟09d31c803a7252658694e1e3176b97f5655a3fe3␟1457782201611151239:Allow multi-download mode`,Wv=$localize`:Require pin for settings setting␟d8b47221b5af9e9e4cd5cb434d76fc0c91611409␟8888472341408176239:Require pin for settings`,Qv=$localize`:Set new pin button␟f5ec7b2cdf87d41154f4fcbc86e856314409dcb9␟5079149426228636902:Set New Pin`,Kv=$localize`:Use YouTube API setting␟d5d7c61349f3b0859336066e6d453fc35d334fe5␟921806454742404419:Use YouTube API`;const Zv=["placeholder",$localize`:Youtube API Key setting placeholder␟ce10d31febb3d9d60c160750570310f303a22c22␟8352766560503075759:Youtube API Key`];var Jv,tw,ew,iw,nw;function sw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.API.use_youtube_API=e})),s.Bc(4),s.Hc(5,Kv),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",20),s.Jc(9,Zv),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.API.youtube_API_key=e})),s.Cc(),s.Dc(10,"mat-hint"),s.Dc(11,"a",21),s.Bc(12),s.Hc(13,Jv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();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 aw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-select",22),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Themes.default_theme=e})),s.Dc(4,"mat-option",23),s.Bc(5),s.Hc(6,tw),s.Ac(),s.Cc(),s.Dc(7,"mat-option",24),s.Bc(8),s.Hc(9,ew),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(10,"div",14),s.Dc(11,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Themes.allow_theme_change=e})),s.Bc(12),s.Hc(13,iw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(3),s.ad("ngModel",t.new_config.Themes.default_theme),s.kc(8),s.ad("ngModel",t.new_config.Themes.allow_theme_change)}}Jv=$localize`:Youtube API Key setting hint␟8602e313cdfa7c4cc475ccbe86459fce3c3fd986␟3231872778665115286:Generating a key is easy!`,tw=$localize`:Default theme label␟ff7cee38a2259526c519f878e71b964f41db4348␟5607669932062416162:Default`,ew=$localize`:Dark theme label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,iw=$localize`:Allow theme change setting␟7a6bacee4c31cb5c0ac2d24274fb4610d8858602␟8325128210832071900:Allow theme change`,nw=$localize`:Allow subscriptions setting␟4e3120311801c4acd18de7146add2ee4a4417773␟5800596718492516574:Allow subscriptions`;const rw=["placeholder",$localize`:Subscriptions base path input setting placeholder␟4bee2a4bef2d26d37c9b353c278e24e5cd309ce3␟6919010605968316948:Subscriptions base path`];var ow;ow=$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 lw=["placeholder",$localize`:Check interval input setting placeholder␟5bef4b25ba680da7fff06b86a91b1fc7e6a926e3␟5349606203941321178:Check interval`];var cw,hw,dw,uw,mw,pw,gw,fw,bw,_w,yw,vw,ww,xw,kw;function Cw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Subscriptions.allow_subscriptions=e})),s.Bc(4),s.Hc(5,nw),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",16),s.Jc(9,rw),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Subscriptions.subscriptions_base_path=e})),s.Cc(),s.Dc(10,"mat-hint"),s.Bc(11),s.Hc(12,ow),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(13,"div",25),s.Dc(14,"mat-form-field",12),s.Dc(15,"input",16),s.Jc(16,lw),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Subscriptions.subscriptions_check_interval=e})),s.Cc(),s.Dc(17,"mat-hint"),s.Bc(18),s.Hc(19,cw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(20,"div",14),s.Dc(21,"mat-checkbox",26),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),s.Bc(22),s.Hc(23,hw),s.Ac(),s.Cc(),s.Dc(24,"p"),s.Dc(25,"a",27),s.Bc(26),s.Hc(27,dw),s.Ac(),s.Cc(),s.vd(28,"\xa0"),s.Bc(29),s.Hc(30,uw),s.Ac(),s.Cc(),s.Dc(31,"p"),s.Bc(32),s.Hc(33,mw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();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 Sw(t,e){if(1&t&&(s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"h6"),s.vd(4,"Chrome"),s.Cc(),s.Dc(5,"p"),s.Dc(6,"a",28),s.Bc(7),s.Hc(8,pw),s.Ac(),s.Cc(),s.vd(9,"\xa0"),s.Bc(10),s.Hc(11,gw),s.Ac(),s.Cc(),s.Dc(12,"p"),s.Bc(13),s.Hc(14,fw),s.Ac(),s.Cc(),s.zc(15,"mat-divider",29),s.Cc(),s.Dc(16,"div",11),s.Dc(17,"h6"),s.vd(18,"Firefox"),s.Cc(),s.Dc(19,"p"),s.Dc(20,"a",30),s.Bc(21),s.Hc(22,bw),s.Ac(),s.Cc(),s.vd(23,"\xa0"),s.Bc(24),s.Hc(25,_w),s.Ac(),s.Cc(),s.Dc(26,"p"),s.Dc(27,"a",31),s.Bc(28),s.Hc(29,yw),s.Ac(),s.Cc(),s.vd(30,"\xa0"),s.Bc(31),s.Hc(32,vw),s.Ac(),s.Cc(),s.zc(33,"mat-divider",29),s.Cc(),s.Dc(34,"div",11),s.Dc(35,"h6"),s.vd(36,"Bookmarklet"),s.Cc(),s.Dc(37,"p"),s.Bc(38),s.Hc(39,ww),s.Ac(),s.Cc(),s.Dc(40,"p"),s.Dc(41,"a",32),s.vd(42,"YTDL-Bookmarklet"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t){const t=s.Uc();s.kc(41),s.ad("href",t.generated_bookmarklet_code,s.nd)}}function Dw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Advanced.use_default_downloading_agent=e})),s.Bc(4),s.Hc(5,xw),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",33),s.Dc(7,"mat-select",34),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Advanced.custom_downloading_agent=e})),s.Dc(8,"mat-option",35),s.vd(9,"Select a downloader"),s.Cc(),s.Dc(10,"mat-option",36),s.vd(11,"aria2c"),s.Cc(),s.Dc(12,"mat-option",37),s.vd(13,"avconv"),s.Cc(),s.Dc(14,"mat-option",38),s.vd(15,"axel"),s.Cc(),s.Dc(16,"mat-option",39),s.vd(17,"curl"),s.Cc(),s.Dc(18,"mat-option",40),s.vd(19,"ffmpeg"),s.Cc(),s.Dc(20,"mat-option",41),s.vd(21,"httpie"),s.Cc(),s.Dc(22,"mat-option",42),s.vd(23,"wget"),s.Cc(),s.Cc(),s.Cc(),s.Dc(24,"div",43),s.Dc(25,"mat-checkbox",15),s.Qc("ngModelChange",(function(e){return s.ld(t),s.Uc().new_config.Advanced.allow_advanced_download=e})),s.Bc(26),s.Hc(27,kw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Uc();s.kc(3),s.ad("ngModel",t.new_config.Advanced.use_default_downloading_agent),s.kc(4),s.ad("disabled",t.new_config.Advanced.use_default_downloading_agent)("ngModel",t.new_config.Advanced.custom_downloading_agent),s.kc(18),s.ad("ngModel",t.new_config.Advanced.allow_advanced_download)}}cw=$localize`:Check interval setting input hint␟0f56a7449b77630c114615395bbda4cab398efd8␟1580663059483543498:Unit is seconds, only include numbers.`,hw=$localize`:Use youtube-dl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,dw=$localize`:youtube-dl archive explanation prefix link␟fa9fe4255231dd1cc6b29d3d254a25cb7c764f0f␟6707903974690925048:With youtube-dl's archive`,uw=$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.`,mw=$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.`,pw=$localize`:Chrome ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,gw=$localize`:Chrome click here suffix␟7f09776373995003161235c0c8d02b7f91dbc4df␟2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually.`,fw=$localize`:Chrome setup suffix␟5b5296423906ab3371fdb2b5a5aaa83acaa2ee52␟8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL.`,bw=$localize`:Firefox ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,_w=$localize`:Firefox click here suffix␟9a2ec6da48771128384887525bdcac992632c863␟8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page.`,yw=$localize`:Firefox setup prefix link␟eb81be6b49e195e5307811d1d08a19259d411f37␟3930152199106610543:Detailed setup instructions.`,vw=$localize`:Firefox setup suffix␟cb17ff8fe3961cf90f44bee97c88a3f3347a7e55␟5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL.`,ww=$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.`,xw=$localize`:Use default downloading agent setting␟5fab47f146b0a4b809dcebf3db9da94df6299ea1␟1862425442411516950:Use default downloading agent`,kw=$localize`:Allow advanced downloading setting␟dc3d990391c944d1fbfc7cfb402f7b5e112fb3a8␟4097058672287489906:Allow advanced download`;let Ew=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.sanitizer=i,this.dialog=n,this.all_locales=Wy,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._settingsSame=!0}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())}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(Yy,{data:{resetMode:!0}})}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))%7D)()`}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(uv,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe(t=>{t&&(this.new_config.Downloader.custom_args=t)})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Rg),s.yc(n.b),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-settings"]],decls:75,vars:14,consts:[["mat-dialog-title",""],[2,"margin-bottom","10px"],[1,"locale-select",3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"settings-expansion-panel","mat-elevation-z4"],["class","container-fluid",4,"ngIf"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],[3,"value"],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-4"],["color","accent",3,"ngModel","ngModelChange"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-stroked-button","",2,"margin-left","12px",3,"click"],["mat-stroked-button","",2,"margin-left","15px",3,"disabled","click"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["color","accent",2,"width","100px",3,"ngModel","ngModelChange"],["value","default"],["value","dark"],[1,"col-12","mt-5"],["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"],["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"],["target","_blank",3,"href"],[1,"col-12","my-2"],["color","accent",2,"width","200px",3,"disabled","ngModel","ngModelChange"],["value",""],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,mv),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.vd(4," Language:\xa0\xa0\xa0"),s.Dc(5,"mat-select",2),s.Qc("selectionChange",(function(t){return e.localeSelectChanged(t.value)}))("valueChange",(function(t){return e.initialLocale=t})),s.td(6,Sv,2,2,"mat-option",3),s.Cc(),s.Cc(),s.Dc(7,"mat-expansion-panel",4),s.Dc(8,"mat-expansion-panel-header"),s.Dc(9,"mat-panel-title"),s.Bc(10),s.Hc(11,pv),s.Ac(),s.Cc(),s.Cc(),s.td(12,Rv,16,2,"div",5),s.Cc(),s.Dc(13,"mat-expansion-panel",4),s.Dc(14,"mat-expansion-panel-header"),s.Dc(15,"mat-panel-title"),s.Bc(16),s.Hc(17,gv),s.Ac(),s.Cc(),s.Cc(),s.td(18,Mv,14,5,"div",5),s.Cc(),s.Dc(19,"mat-expansion-panel",4),s.Dc(20,"mat-expansion-panel-header"),s.Dc(21,"mat-panel-title"),s.Bc(22),s.Hc(23,fv),s.Ac(),s.Cc(),s.Cc(),s.td(24,Uv,31,4,"div",5),s.Cc(),s.Dc(25,"mat-expansion-panel",4),s.Dc(26,"mat-expansion-panel-header"),s.Dc(27,"mat-panel-title"),s.Bc(28),s.Hc(29,bv),s.Ac(),s.Cc(),s.Cc(),s.td(30,Xv,30,7,"div",5),s.Cc(),s.Dc(31,"mat-expansion-panel",4),s.Dc(32,"mat-expansion-panel-header"),s.Dc(33,"mat-panel-title"),s.Bc(34),s.Hc(35,_v),s.Ac(),s.Cc(),s.Cc(),s.td(36,sw,14,3,"div",5),s.Cc(),s.Dc(37,"mat-expansion-panel",4),s.Dc(38,"mat-expansion-panel-header"),s.Dc(39,"mat-panel-title"),s.Bc(40),s.Hc(41,yv),s.Ac(),s.Cc(),s.Cc(),s.td(42,aw,14,2,"div",5),s.Cc(),s.Dc(43,"mat-expansion-panel",4),s.Dc(44,"mat-expansion-panel-header"),s.Dc(45,"mat-panel-title"),s.Bc(46),s.Hc(47,vv),s.Ac(),s.Cc(),s.Cc(),s.td(48,Cw,34,7,"div",5),s.Cc(),s.Dc(49,"mat-expansion-panel",4),s.Dc(50,"mat-expansion-panel-header"),s.Dc(51,"mat-panel-title"),s.Bc(52),s.Hc(53,wv),s.Ac(),s.Cc(),s.Cc(),s.td(54,Sw,43,1,"div",5),s.Cc(),s.Dc(55,"mat-expansion-panel",4),s.Dc(56,"mat-expansion-panel-header"),s.Dc(57,"mat-panel-title"),s.Bc(58),s.Hc(59,xv),s.Ac(),s.Cc(),s.Cc(),s.td(60,Dw,28,4,"div",5),s.Cc(),s.Cc(),s.Dc(61,"mat-dialog-actions"),s.Dc(62,"div",1),s.Dc(63,"button",6),s.Qc("click",(function(){return e.saveSettings()})),s.Dc(64,"mat-icon"),s.vd(65,"done"),s.Cc(),s.vd(66,"\xa0\xa0 "),s.Bc(67),s.Hc(68,kv),s.Ac(),s.Cc(),s.Dc(69,"button",7),s.Dc(70,"mat-icon"),s.vd(71,"cancel"),s.Cc(),s.vd(72,"\xa0\xa0 "),s.Dc(73,"span"),s.Hc(74,Cv),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t&&(s.kc(5),s.ad("value",e.initialLocale),s.kc(1),s.ad("ngForOf",e.supported_locales),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(6),s.ad("ngIf",e.new_config),s.kc(3),s.ad("disabled",e.settingsSame()),s.kc(6),s.ad("mat-dialog-close",!1),s.kc(5),s.Kc(e.settingsAreTheSame+""),s.Ic(74))},directives:[oh,lh,Tp,ye.s,Rh,Th,Fh,ye.t,ch,ds,ru,rh,es,Pc,vu,Ds,nr,Ts,Va,wc,oo,xu],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.locale-select[_ngcontent-%COMP%]{margin-bottom:10px;width:130px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}"]}),t})();var Aw,Ow,Pw,Rw,Iw,Tw,Mw,Fw,Lw;function Nw(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,Fw),s.Ac(),s.Cc()),2&t&&(s.kc(1),s.ad("diameter",22))}function zw(t,e){1&t&&(s.Dc(0,"mat-icon",14),s.vd(1,"done"),s.Cc())}function Bw(t,e){if(1&t&&(s.Dc(0,"a",2),s.Bc(1),s.Hc(2,Lw),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 jw(t,e){1&t&&(s.Dc(0,"span"),s.vd(1,"You are up to date."),s.Cc())}Aw=$localize`:About dialog title␟cec82c0a545f37420d55a9b6c45c20546e82f94e␟8863443674032361244:About YoutubeDL-Material`,Ow=$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.`,Pw=$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.`,Rw=$localize`:Version label␟a45e3b05f0529dc5246d70ef62304c94426d4c81␟5296103174605274070:Installed version:`,Iw=$localize`:About bug prefix␟b33536f59b94ec935a16bd6869d836895dc5300c␟3353248286278121979:Found a bug or have a suggestion?`,Tw=$localize`:About bug click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,Mw=$localize`:About bug suffix␟e1f398f38ff1534303d4bb80bd6cece245f24016␟1971178156716923826:to create an issue!`,Fw=$localize`:Checking for updates text␟e22f3a5351944f3a1a10cfc7da6f65dfbe0037fe␟9163379406577397382:Checking for updates...`,Lw=$localize`:View latest update␟a16e92385b4fd9677bb830a4b796b8b79c113290␟509090351011426949:Update available`;let Vw=(()=>{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.5.1"}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(By))},t.\u0275cmp=s.sc({type:t,selectors:[["app-about-dialog"]],decls:46,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,Aw),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,Ow),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,Pw),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,Rw),s.Ac(),s.vd(27),s.td(28,Nw,5,1,"span",7),s.td(29,zw,2,0,"mat-icon",8),s.vd(30,"\xa0\xa0"),s.td(31,Bw,4,2,"a",9),s.td(32,jw,2,0,"span",10),s.Cc(),s.Dc(33,"p"),s.Bc(34),s.Hc(35,Iw),s.Ac(),s.vd(36,"\xa0"),s.Dc(37,"a",2),s.Bc(38),s.Hc(39,Tw),s.Ac(),s.Cc(),s.vd(40,"\xa0"),s.Bc(41),s.Hc(42,Mw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(43,"mat-dialog-actions"),s.Dc(44,"button",11),s.vd(45,"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(1),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:[oh,lh,xu,ye.t,ch,ds,rh,ep,ru],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 Uw=["sidenav"],$w=["hamburgerMenu"];var Hw,qw,Gw,Yw,Ww;function Qw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",19,20),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 Kw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",21),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 Xw(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,Ww),s.Cc(),s.zc(5,"mat-slide-toggle",22),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)}}Hw=$localize`:Settings menu label␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,qw=$localize`:About menu label␟004b222ff9ef9dd4771b777950ca1d0e4cd4348a␟1726363342938046830:About`,Gw=$localize`:Navigation menu Home Page title␟92eee6be6de0b11c924e3ab27db30257159c0a7c␟2821179408673282599:Home`,Yw=$localize`:Navigation menu Subscriptions Page title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,Ww=$localize`:Dark mode toggle label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`;let Zw=(()=>{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=Pf,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 Jf?this.navigator=localStorage.getItem("player_navigator"):t instanceof tb&&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(Ew,{width:"80vw"})}openPinDialog(){this.dialog.open(Yy,{}).afterClosed().subscribe(t=>{t&&this.actuallyOpenSettingsDialog()})}openAboutDialog(){this.dialog.open(Vw,{width:"80vw"})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Rg),s.yc(sh),s.yc(my),s.yc(Rl),s.yc(s.q))},t.\u0275cmp=s.sc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.zd(Uw,!0),s.zd($w,!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:40,vars:9,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"],["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"]],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,Qw,4,0,"button",5),s.td(6,Kw,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,Xw,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,Hw),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,qw),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,Gw),s.Ac(),s.Cc(),s.Dc(35,"a",18),s.Qc("click",(function(){return s.ld(t),s.hd(30).close()})),s.Bc(36),s.Hc(37,Yw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(38,"mat-sidenav-content"),s.zc(39,"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]&&e.allowSubscriptions),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(22),s.sd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.rc)}},directives:[Ng,ye.t,ds,gm,ru,dm,am,tg,Zp,Fu,Vu,gy,Xp,vy,pg],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}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),t})(),Jw=(()=>{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})();const tx=function(){var t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch",t}(),ex=function(){var t={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return t[t.Basic]="Basic",t[t.Cors]="Cors",t[t.Default]="Default",t[t.Error]="Error",t[t.Opaque]="Opaque",t}(),ix=function(){var t={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return t[t.NONE]="NONE",t[t.JSON]="JSON",t[t.FORM]="FORM",t[t.FORM_DATA]="FORM_DATA",t[t.TEXT]="TEXT",t[t.BLOB]="BLOB",t[t.ARRAY_BUFFER]="ARRAY_BUFFER",t}(),nx=function(){var t={Text:0,Json:1,ArrayBuffer:2,Blob:3};return t[t.Text]="Text",t[t.Json]="Json",t[t.ArrayBuffer]="ArrayBuffer",t[t.Blob]="Blob",t}();class sx{constructor(t){this._headers=new Map,this._normalizedNames=new Map,t&&(t instanceof sx?t.forEach((t,e)=>{t.forEach(t=>this.append(e,t))}):Object.keys(t).forEach(e=>{const i=Array.isArray(t[e])?t[e]:[t[e]];this.delete(e),i.forEach(t=>this.append(e,t))}))}static fromResponseHeaderString(t){const e=new sx;return t.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const n=t.slice(0,i),s=t.slice(i+1).trim();e.set(n,s)}}),e}append(t,e){const i=this.getAll(t);null===i?this.set(t,e):i.push(e)}delete(t){const e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)}forEach(t){this._headers.forEach((e,i)=>t(e,this._normalizedNames.get(i),this._headers))}get(t){const e=this.getAll(t);return null===e?null:e.length>0?e[0]:null}has(t){return this._headers.has(t.toLowerCase())}keys(){return Array.from(this._normalizedNames.values())}set(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)}values(){return Array.from(this._headers.values())}toJSON(){const t={};return this._headers.forEach((e,i)=>{const n=[];e.forEach(t=>n.push(...t.split(","))),t[this._normalizedNames.get(i)]=n}),t}getAll(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null}entries(){throw new Error('"entries" method is not implemented on Headers class')}mayBeSetNormalizedName(t){const e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)}}class ax{constructor(t={}){const{body:e,status:i,headers:n,statusText:s,type:a,url:r}=t;this.body=null!=e?e:null,this.status=null!=i?i:null,this.headers=null!=n?n:null,this.statusText=null!=s?s:null,this.type=null!=a?a:null,this.url=null!=r?r:null}merge(t){return new ax({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})}}let rx=(()=>{class t extends ax{constructor(){super({status:200,statusText:"Ok",type:ex.Default,headers:new sx})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class ox{}class lx{}function cx(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return tx.Get;case"POST":return tx.Post;case"PUT":return tx.Put;case"DELETE":return tx.Delete;case"OPTIONS":return tx.Options;case"HEAD":return tx.Head;case"PATCH":return tx.Patch}throw new Error(`Invalid request method. The method "${t}" is not supported.`)}class hx{encodeKey(t){return dx(t)}encodeValue(t){return dx(t)}}function dx(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 ux{constructor(t="",e=new hx){this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t=""){const e=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[n,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)],a=e.get(n)||[];a.push(s),e.set(n,a)}),e}(t)}clone(){const t=new ux("",this.queryEncoder);return t.appendAll(this),t}has(t){return this.paramsMap.has(t)}get(t){const e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null}getAll(t){return this.paramsMap.get(t)||[]}set(t,e){if(null==e)return void this.delete(t);const i=this.paramsMap.get(t)||[];i.length=0,i.push(e),this.paramsMap.set(t,i)}setAll(t){t.paramsMap.forEach((t,e)=>{const i=this.paramsMap.get(e)||[];i.length=0,i.push(t[0]),this.paramsMap.set(e,i)})}append(t,e){if(null==e)return;const i=this.paramsMap.get(t)||[];i.push(e),this.paramsMap.set(t,i)}appendAll(t){t.paramsMap.forEach((t,e)=>{const i=this.paramsMap.get(e)||[];for(let n=0;n{const i=this.paramsMap.get(e)||[];i.length=0;for(let n=0;n{e.forEach(e=>t.push(this.queryEncoder.encodeKey(i)+"="+this.queryEncoder.encodeValue(e)))}),t.join("&")}delete(t){this.paramsMap.delete(t)}}class mx{json(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body}text(t="legacy"){if(this._body instanceof ux)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error(`Invalid value for encodingHint: ${t}`)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}arrayBuffer(){return this._body instanceof ArrayBuffer?this._body:function(t){const e=new Uint16Array(t.length);for(let i=0,n=t.length;i=200&&this.status<=299,this.statusText=t.statusText,this.headers=t.headers,this.type=t.type,this.url=t.url}toString(){return`Response with status: ${this.status} ${this.statusText} for URL: ${this.url}`}}const gx=/^\)\]\}',?\n/;class fx{constructor(t,e,i){this.request=t,this.response=new si.a(n=>{const s=e.build();s.open(tx[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);const a=()=>{let e=1223===s.status?204:s.status,a=null;204!==e&&(a=void 0===s.response?s.responseText:s.response,"string"==typeof a&&(a=a.replace(gx,""))),0===e&&(e=a?200:0);const r=sx.fromResponseHeaderString(s.getAllResponseHeaders()),o=("responseURL"in(l=s)?l.responseURL:/^X-Request-URL:/m.test(l.getAllResponseHeaders())?l.getResponseHeader("X-Request-URL"):null)||t.url;var l;let c=new ax({body:a,status:e,headers:r,statusText:s.statusText||"OK",url:o});null!=i&&(c=i.merge(c));const h=new px(c);if(h.ok=(t=>t>=200&&t<300)(e),h.ok)return n.next(h),void n.complete();n.error(h)},r=t=>{let e=new ax({body:t,type:ex.Error,status:s.status,statusText:s.statusText});null!=i&&(e=i.merge(e)),n.error(new px(e))};if(this.setDetectedContentType(t,s),null==t.headers&&(t.headers=new sx),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach((t,e)=>s.setRequestHeader(e,t.join(","))),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case nx.ArrayBuffer:s.responseType="arraybuffer";break;case nx.Json:s.responseType="json";break;case nx.Text:s.responseType="text";break;case nx.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",r),s.send(this.request.getBody()),()=>{s.removeEventListener("load",a),s.removeEventListener("error",r),s.abort()}})}setDetectedContentType(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case ix.NONE:break;case ix.JSON:e.setRequestHeader("content-type","application/json");break;case ix.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case ix.TEXT:e.setRequestHeader("content-type","text/plain");break;case ix.BLOB:const i=t.blob();i.type&&e.setRequestHeader("content-type",i.type)}}}class bx{constructor(t="XSRF-TOKEN",e="X-XSRF-TOKEN"){this._cookieName=t,this._headerName=e}configureRequest(t){const e=Object(ye.N)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)}}let _x=(()=>{class t{constructor(t,e,i){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=i}createConnection(t){return this._xsrfStrategy.configureRequest(t),new fx(t,this._browserXHR,this._baseResponseOptions)}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(Jw),s.Mc(ax),s.Mc(lx))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class yx{get search(){return this.params}set search(t){this.params=t}constructor(t={}){const{method:e,headers:i,body:n,url:s,search:a,params:r,withCredentials:o,responseType:l}=t;this.method=null!=e?cx(e):null,this.headers=null!=i?i:null,this.body=null!=n?n:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(r||a),this.withCredentials=null!=o?o:null,this.responseType=null!=l?l:null}merge(t){return new yx({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new sx(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})}_mergeSearchParams(t){return t?t instanceof ux?t.clone():"string"==typeof t?new ux(t):this._parseParams(t):this.params}_parseParams(t={}){const e=new ux;return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>this._appendParam(i,t,e)):this._appendParam(i,n,e)}),e}_appendParam(t,e,i){"string"!=typeof e&&(e=JSON.stringify(e)),i.append(t,e)}}let vx=(()=>{class t extends yx{constructor(){super({method:tx.Get,headers:new sx})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class wx extends mx{constructor(t){super();const e=t.url;this.url=t.url;const i=t.params||t.search;if(i){let t;if(t="object"!=typeof i||i instanceof ux?i.toString():function(t){const e=new ux;return Object.keys(t).forEach(i=>{const n=t[i];n&&Array.isArray(n)?n.forEach(t=>e.append(i,t.toString())):e.append(i,n.toString())}),e}(i).toString(),t.length>0){let i="?";-1!=this.url.indexOf("?")&&(i="&"==this.url[this.url.length-1]?"":"&"),this.url=e+i+t}}this._body=t.body,this.method=cx(t.method),this.headers=new sx(t.headers),this.contentType=this.detectContentType(),this.withCredentials=t.withCredentials,this.responseType=t.responseType}detectContentType(){switch(this.headers.get("content-type")){case"application/json":return ix.JSON;case"application/x-www-form-urlencoded":return ix.FORM;case"multipart/form-data":return ix.FORM_DATA;case"text/plain":case"text/html":return ix.TEXT;case"application/octet-stream":return this._body instanceof Dx?ix.ARRAY_BUFFER:ix.BLOB;default:return this.detectContentTypeFromBody()}}detectContentTypeFromBody(){return null==this._body?ix.NONE:this._body instanceof ux?ix.FORM:this._body instanceof Cx?ix.FORM_DATA:this._body instanceof Sx?ix.BLOB:this._body instanceof Dx?ix.ARRAY_BUFFER:this._body&&"object"==typeof this._body?ix.JSON:ix.TEXT}getBody(){switch(this.contentType){case ix.JSON:case ix.FORM:return this.text();case ix.FORM_DATA:return this._body;case ix.TEXT:return this.text();case ix.BLOB:return this.blob();case ix.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}const xx=function(){},kx="object"==typeof window?window:xx,Cx=kx.FormData||xx,Sx=kx.Blob||xx,Dx=kx.ArrayBuffer||xx;function Ex(t,e){return t.createConnection(e).response}function Ax(t,e,i,n){return t.merge(new yx(e?{method:e.method||i,url:e.url||n,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:i,url:n}))}let Ox=(()=>{class t{constructor(t,e){this._backend=t,this._defaultOptions=e}request(t,e){let i;if("string"==typeof t)i=Ex(this._backend,new wx(Ax(this._defaultOptions,e,tx.Get,t)));else{if(!(t instanceof wx))throw new Error("First argument must be a url string or Request instance.");i=Ex(this._backend,t)}return i}get(t,e){return this.request(new wx(Ax(this._defaultOptions,e,tx.Get,t)))}post(t,e,i){return this.request(new wx(Ax(this._defaultOptions.merge(new yx({body:e})),i,tx.Post,t)))}put(t,e,i){return this.request(new wx(Ax(this._defaultOptions.merge(new yx({body:e})),i,tx.Put,t)))}delete(t,e){return this.request(new wx(Ax(this._defaultOptions,e,tx.Delete,t)))}patch(t,e,i){return this.request(new wx(Ax(this._defaultOptions.merge(new yx({body:e})),i,tx.Patch,t)))}head(t,e){return this.request(new wx(Ax(this._defaultOptions,e,tx.Head,t)))}options(t,e){return this.request(new wx(Ax(this._defaultOptions,e,tx.Options,t)))}}return t.\u0275fac=function(e){return new(e||t)(s.Mc(ox),s.Mc(yx))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();function Px(){return new bx}function Rx(t,e){return new Ox(t,e)}let Ix=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:Ox,useFactory:Rx,deps:[_x,yx]},Jw,{provide:yx,useClass:vx},{provide:ax,useClass:rx},_x,{provide:lx,useFactory:Px}]}),t})();function Tx(t,e,i,n){return new(i||(i=Promise))((function(s,a){function r(t){try{l(n.next(t))}catch(e){a(e)}}function o(t){try{l(n.throw(t))}catch(e){a(e)}}function l(t){t.done?s(t.value):new i((function(e){e(t.value)})).then(r,o)}l((n=n.apply(t,e||[])).next())}))}var Mx=i("Iab2");class Fx{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=Nx(e.getMonth()+1),n=Nx(e.getDate()),s=e.getFullYear();let a;a=e.getHours();const r=Nx(e.getMinutes());let o="AM";const l=parseInt(a,10);return l>12?(o="PM",a=l-12):0===l&&(a="12"),a=Nx(a),i+"-"+n+"-"+s+" "+a+":"+r+" "+o}(Date.parse(this.uploaded))}}let Lx=(()=>{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 Fx({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(Pd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Nx(t){return t<10?"0"+t:t}var zx;zx=$localize`:Create a playlist dialog title␟17f0ea5d2d7a262b0e875acc70475f102aee84e6␟3949911572988594237:Create a playlist`;const Bx=["placeholder",$localize`:Playlist name placeholder␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];var jx,Vx;function Ux(t,e){1&t&&(s.Dc(0,"mat-label"),s.Bc(1),s.Hc(2,jx),s.Ac(),s.Cc())}function $x(t,e){1&t&&(s.Dc(0,"mat-label"),s.Bc(1),s.Hc(2,Vx),s.Ac(),s.Cc())}function Hx(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 qx(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))}jx=$localize`:Audio files title␟f47e2d56dd8a145b2e9599da9730c049d52962a2␟253926325379303932:Audio files`,Vx=$localize`:Videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const Gx=function(){return{standalone:!0}};let Yx=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Aa,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 mk(t,e){if(1&t&&(s.Dc(0,"div",34),s.td(1,uk,12,7,"span",28),s.Cc()),2&t){const t=s.Uc();s.kc(1),s.ad("ngForOf",t.results)}}var pk,gk,fk,bk;function _k(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,pk),s.Ac(),s.Cc()}if(2&t){const t=s.Uc();s.ad("disabled",t.current_download)("ngModel",t.multiDownloadMode)}}function yk(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,gk),s.Ac(),s.Cc()}}pk=$localize`:Multi-download Mode checkbox␟96a01fafe135afc58b0f8071a4ab00234495ce18␟1215999553275961560: Multi-download Mode `,gk=$localize`:Cancel download button␟6a3777f913cf3f288664f0632b9f24794fdcc24e␟6991067716289442185: Cancel `,fk=$localize`:Advanced download mode panel␟322ed150e02666fe2259c5b4614eac7066f4ffa0␟7427754392029374006: Advanced `,bk=$localize`:Use custom args checkbox␟4e4c721129466be9c3862294dc40241b64045998␟5091669664044282329: Use custom args `;const vk=["placeholder",$localize`:Custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var wk,xk;wk=$localize`:Custom Args input hint␟ccc7e92cbdd35e901acf9ad80941abee07bd8f60␟8882144118477601028: No need to include URL, just everything after. `,xk=$localize`:Use custom output checkbox␟3a92a3443c65a52f37ca7efb8f453b35dbefbf29␟5904983012542242085: Use custom output `;const kk=["placeholder",$localize`:Custom output placeholder␟d9c02face477f2f9cdaae318ccee5f89856851fb␟3075663591125020403:Custom output`];var Ck,Sk,Dk,Ek;function Ak(t,e){if(1&t&&(s.Dc(0,"p"),s.Bc(1),s.Hc(2,Dk),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)}}Ck=$localize`:Youtube-dl output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,Sk=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,Dk=$localize`:Simulated command label␟b7ffe7c6586d6f3f18a9246806a7c7d5538ab43e␟4637303589735709945: Simulated command: `,Ek=$localize`:Use authentication checkbox␟8fad10737d3e3735a6699a4d89cbf6c20f6bb55f␟294759932648923187: Use authentication `;const Ok=["placeholder",$localize`:YT Username placeholder␟08c74dc9762957593b91f6eb5d65efdfc975bf48␟5248717555542428023:Username`];function Pk(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,Ek),s.Ac(),s.Cc(),s.Dc(4,"mat-form-field",53),s.Dc(5,"input",49),s.Jc(6,Ok),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,ok)),s.kc(4),s.ad("ngModel",t.youtubeUsername)("ngModelOptions",s.cd(7,ok))("disabled",!t.youtubeAuthEnabled)}}const Rk=["placeholder",$localize`:YT Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];function Ik(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,Rk),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,ok))("disabled",!t.youtubeAuthEnabled)}}function Tk(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,fk),s.Ac(),s.Cc(),s.Cc(),s.td(7,Ak,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,bk),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,vk),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,wk),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,xk),s.Ac(),s.Cc(),s.Dc(27,"mat-form-field",48),s.Dc(28,"input",49),s.Jc(29,kk),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,Ck),s.Ac(),s.Cc(),s.vd(34,". "),s.Bc(35),s.Hc(36,Sk),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.td(37,Pk,7,8,"div",51),s.td(38,Ik,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,ok)),s.kc(7),s.ad("ngModel",t.customArgs)("ngModelOptions",s.cd(16,ok))("disabled",!t.customArgsEnabled),s.kc(6),s.ad("disabled",t.current_download)("ngModel",t.customOutputEnabled)("ngModelOptions",s.cd(17,ok)),s.kc(4),s.ad("ngModel",t.customOutput)("ngModelOptions",s.cd(18,ok))("disabled",!t.customOutputEnabled),s.kc(9),s.ad("ngIf",!t.youtubeAuthDisabledOverride),s.kc(1),s.ad("ngIf",!t.youtubeAuthDisabledOverride)}}function Mk(t,e){1&t&&s.zc(0,"mat-divider",2)}function Fk(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,Mk,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 Lk(t,e){if(1&t&&(s.Dc(0,"div",5),s.td(1,Fk,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 Nk(t,e){if(1&t&&(s.Dc(0,"div",56),s.Dc(1,"mat-card",57),s.Dc(2,"div",58),s.td(3,Lk,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 zk(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.determinateProgress&&100===t.percentDownloaded?"make-room-for-spinner":"equal-sizes"),s.kc(1),s.bd("value",t.percentDownloaded)}}function Bk(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 jk(t,e){1&t&&s.zc(0,"mat-progress-bar",70)}function Vk(t,e){if(1&t&&(s.Dc(0,"div",62),s.Dc(1,"div",63),s.td(2,zk,3,2,"div",64),s.td(3,Bk,2,1,"div",65),s.td(4,jk,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.determinateProgress)("ngIfElse",t),s.kc(1),s.ad("ngIf",e.determinateProgress&&100===e.percentDownloaded)}}function Uk(t,e){}var $k,Hk,qk,Gk,Yk,Wk,Qk,Kk;function Xk(t,e){1&t&&s.zc(0,"mat-progress-bar",82)}function Zk(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,Xk,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)("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 Jk(t,e){1&t&&s.zc(0,"mat-progress-bar",82)}function tC(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,Jk,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 eC(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,tC,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 iC(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,Wk),s.Ac(),s.Cc())}function nC(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,Zk,4,8,"mat-grid-tile",28),s.Cc(),s.zc(3,"mat-divider"),s.Dc(4,"div",75),s.Dc(5,"h6"),s.Hc(6,Yk),s.Cc(),s.Cc(),s.td(7,eC,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,iC,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 sC(t,e){1&t&&s.zc(0,"mat-progress-bar",82)}function aC(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,sC,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)("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 rC(t,e){1&t&&s.zc(0,"mat-progress-bar",82)}function oC(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,rC,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 lC(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,oC,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 cC(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,Kk),s.Ac(),s.Cc())}function hC(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,aC,4,8,"mat-grid-tile",28),s.Cc(),s.zc(3,"mat-divider"),s.Dc(4,"div",75),s.Dc(5,"h6"),s.Hc(6,Qk),s.Cc(),s.Cc(),s.td(7,lC,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,cC,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 dC(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,$k),s.Ac(),s.Cc(),s.Dc(7,"mat-panel-description"),s.Bc(8),s.Hc(9,Hk),s.Ac(),s.Cc(),s.Cc(),s.td(10,nC,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,qk),s.Ac(),s.Cc(),s.Dc(16,"mat-panel-description"),s.Bc(17),s.Hc(18,Gk),s.Ac(),s.Cc(),s.Cc(),s.td(19,hC,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 uC(t,e){}function mC(t,e){}$k=$localize`:Audio files title␟4a0dada6e841a425de3e5006e6a04df26c644fa5␟520791250454025553: Audio `,Hk=$localize`:Audio files description␟9779715ac05308973d8f1c8658b29b986e92450f␟3371870979788549262: Your audio files are here `,qk=$localize`:Video files title␟9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33␟429855630861441368: Video `,Gk=$localize`:Video files description␟960582a8b9d7942716866ecfb7718309728f2916␟691504174199627518: Your video files are here `,Yk=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,Wk=$localize`:No video playlists available text␟78bd81adb4609b68cfa4c589222bdc233ba1faaa␟5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. `,Qk=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,Kk=$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 pC=!1,gC=!1,fC=!1,bC=!1,_C=(()=>{class t{constructor(t,e,i,n,s,a,r){this.postsService=t,this.youtubeSearch=e,this.snackBar=i,this.router=n,this.dialog=s,this.platform=a,this.route=r,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 Aa("",[Bs.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},this.simulatedOutput="",this.audioOnly=!1}configLoad(){return Tx(this,void 0,void 0,(function*(){yield this.loadConfig(),this.autoStartDownload&&this.downloadClicked(),setInterval(()=>this.getSimulatedOutput(),1e3)}))}loadConfig(){return Tx(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!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){e?this.downloadHelperMp3(t,!1,!1):this.downloadHelperMp4(t,!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}])):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=!1,i=!1,n=null){if(this.downloadingfile=!1,this.multiDownloadMode&&!this.downloadOnlyMode);else if(!1===i&&this.downloadOnlyMode&&!this.iOS)if(e){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(e?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{fileNames:t,type:"audio"}]);this.removeDownloadFromCurrentDownloads(n),this.fileManagerEnabled&&(this.getMp3s(),setTimeout(()=>{this.audioFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadHelperMp4(t,e=!1,i=!1,n=null){if(this.downloadingfile=!1,this.multiDownloadMode&&!this.downloadOnlyMode);else if(!1===i&&this.downloadOnlyMode)if(e){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(e?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{fileNames:t,type:"video"}]);this.removeDownloadFromCurrentDownloads(n),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(Wx.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};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).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.audiopathEncoded,"-1"!==this.path&&this.downloadHelperMp3(this.path,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(Wx.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};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).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.videopathEncoded,"-1"!==this.path&&this.downloadHelperMp4(this.path,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(Mx.saveAs)(i,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(Mx.saveAs)(i,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(Mx.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?(pC=!0,this.audioFileCards.forEach(t=>{t.onHoverResponse()})):"video"===t&&(gC=!0,this.videoFileCards.forEach(t=>{t.onHoverResponse()}))}accordionLeft(t){"audio"===t?pC=!1:"video"===t&&(gC=!1)}accordionOpened(t){"audio"===t?fC=!0:"video"===t&&(bC=!0)}accordionClosed(t){"audio"===t?fC=!1:"video"===t&&(bC=!1)}openCreatePlaylistDialog(t){this.dialog.open(Yx,{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(uv,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{t&&(this.customArgs=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Lx),s.yc(Rg),s.yc(my),s.yc(sh),s.yc(bi),s.yc(a_))},t.\u0275cmp=s.sc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.zd(Qx,!0,s.q),s.zd(Kx,!0),s.zd(Xx,!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",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","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,Zx),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,nk,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,lk,8,5,"div",12),s.Cc(),s.Cc(),s.td(20,mk,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,Jx),s.Ac(),s.Cc(),s.td(25,_k,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,tk),s.Ac(),s.Cc(),s.td(30,yk,3,0,"button",17),s.Cc(),s.Cc(),s.Cc(),s.td(31,Tk,39,19,"div",18),s.td(32,Nk,4,1,"div",19),s.zc(33,"br"),s.td(34,Vk,7,3,"div",20),s.td(35,Uk,0,0,"ng-template",null,21,s.ud),s.td(37,dC,20,4,"div",22),s.td(38,uC,0,0,"ng-template",null,23,s.ud),s.td(40,mC,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=go.a;var yC,vC,wC,xC,kC,CC,SC,DC=i("zuWl"),EC=i.n(DC);yC=$localize`:Video name property␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,vC=$localize`:Video URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,wC=$localize`:Video ID property␟c6eb45d085384903e53ab001a3513d1de6a1dbac␟6975318892267864632:Uploader:`,xC=$localize`:Video file size property␟109c6f4a5e46efb933612ededfaf52a13178b7e0␟8712868262622854125:File size:`,kC=$localize`:Video path property␟bd630d8669b16e5f264ec4649d9b469fe03e5ff4␟2612252809311306032:Path:`,CC=$localize`:Video upload date property␟a67e7d843cef735c79d5ef1c8ba4af3e758912bb␟73382088968432490:Upload Date:`,SC=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let AC=(()=>{class t{constructor(t){this.data=t}ngOnInit(){this.filesize=EC.a,this.data&&(this.file=this.data.file)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(th))},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,yC),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,vC),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,wC),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,xC),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,kC),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,CC),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,SC),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.filesize(e.file.size)),s.kc(8),s.wd(e.file.path),s.kc(8),s.wd(e.file.upload_date))},directives:[oh,lh,ch,ds,rh],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}"]}),t})();function OC(t,e){t.className.includes(e)||(t.className+=` ${e}`)}function PC(){return"undefined"!=typeof window?window.navigator:void 0}function RC(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function IC(t){return"img"===t.nodeName.toLowerCase()}function TC(t,e,i){return IC(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function MC(t){return e=>{const i=e.parentElement.getElementsByTagName("source");for(let n=0;n{IC(e)&&RC(e)&&t(e),i&&TC(e,i,n)}}const BC=zC(FC),jC=zC(LC),VC=zC(NC),UC={finally:({element:t})=>OC(t,"ng-lazyloaded"),loadImage:({element:t,useSrcset:e,imagePath:i,decode:n})=>{let s;if(IC(t)&&RC(t)){const n=t.parentNode.cloneNode(!0);s=n.getElementsByTagName("img")[0],LC(s),TC(s,i,e)}else s=new Image,IC(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})=>{VC(t,e,i),OC(t,"ng-failed-lazyloaded")},setLoadedImage:({element:t,imagePath:e,useSrcset:i})=>{jC(t,e,i)},setup:({element:t,defaultImagePath:e,useSrcset:i})=>{BC(t,e,i),function(t,e){return t.className&&t.className.includes("ng-lazyloaded")}(t)&&function(t,e){t.className=t.className.replace("ng-lazyloaded","")}(t)},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)},$C=new WeakMap,HC=new Re.a;function qC(t){t.forEach(t=>HC.next(t))}const GC={},YC=t=>{const e=t.scrollContainer||GC,i={root:t.scrollContainer||null};t.offset&&(i.rootMargin=`${t.offset}px`);let n=$C.get(e);return n||(n=new IntersectionObserver(qC,i),$C.set(e,n)),n.observe(t.element),si.a.create(e=>{const i=HC.pipe(Je(e=>e.target===t.element)).subscribe(e);return()=>{i.unsubscribe(),n.unobserve(t.element)}})},WC=Object.assign({},UC,{isVisible:({event:t})=>t.isIntersecting,getObservable:(t,e=YC)=>t.customObservable?t.customObservable:e(t)}),QC=Object.assign({},UC,{isVisible:()=>!0,getObservable:()=>Le("load"),loadImage:({imagePath:t})=>[t]});let KC=(()=>{let t=class{constructor(t,e,i,n){this.onLoad=new s.s,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new tl,this.platformId=i,this.hooks=function(t,e){const i=WC,n=e&&e.isBot?e.isBot:i.isBot;if(n(PC(),t))return Object.assign(QC,{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(){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})}ngAfterContentInit(){if(Object(ye.J)(this.platformId)&&!this.hooks.isBot(PC(),this.platformId))return null;this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=this.propertyChanges$.pipe(Ve(t=>this.hooks.setup(t)),Vo(t=>this.hooks.getObservable(t).pipe(function(t,e){return i=>i.pipe(Je(i=>t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})),oi(1),Object(ud.a)(()=>t.loadImage(e)),Ve(i=>t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})),Object(ii.a)(()=>!0),ad(()=>(t.setErrorImage(e),Le(!1))),Ve(()=>t.finally(e)))}(this.hooks,t)))).subscribe(t=>this.onLoad.emit(t))})}ngOnDestroy(){this.scrollSubscription&&this.scrollSubscription.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"},outputs:{onLoad:"onLoad"},features:[s.ic]}),t})();var XC;let ZC=(()=>{let t=XC=class{static forRoot(t){return{ngModule:XC,providers:[{provide:"options",useValue:t}]}}};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const JC=[[["","before-svg",""]],"*",[["","after-svg",""]]],tS=["[before-svg]","*","[after-svg]"],eS=["ngx-rect",""],iS=["ngx-svg-stop",""],nS=["ngx-facebook-preset",""],sS=["ngx-instagram-preset",""],aS=["ngx-circle",""],rS=["ngx-code-preset",""],oS=["ngx-bullet-list-preset",""],lS=["ngx-list-preset",""];let cS=(()=>{class t{constructor(){this.width="400",this.height="130",this.primaryColor="#f3f3f3",this.secondaryColor="#ecebeb",this.speed="1000ms",this.preserveAspectRatio="xMidYMid meet"}get viewBox(){return`0 0 ${this.width} ${this.height}`}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["ngx-content-loading"]],inputs:{width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed",preserveAspectRatio:"preserveAspectRatio"},ngContentSelectors:tS,decls:4,vars:2,consts:[["version","1.1"]],template:function(t,e){1&t&&(s.Zc(JC),s.Yc(0),s.Tc(),s.Dc(1,"svg",0),s.Yc(2,1),s.Cc(),s.Yc(3,2)),2&t&&(s.kc(1),s.lc("preserveAspectRatio",e.preserveAspectRatio)("viewBox",e.viewBox))},styles:[""],changeDetection:0}),t})(),hS=(()=>{class t{constructor(t){this.content=t,this.clipPathId=dS(),this.linearGradientId=dS()}get clipPathUrl(){return`url(#${this.clipPathId})`}get linearGradientUrl(){return`url(#${this.linearGradientId})`}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.yc(cS))},t.\u0275cmp=s.sc({type:t,selectors:[["ngx-svg-element"]],decls:0,vars:0,template:function(t,e){},styles:[""],changeDetection:0}),t})();function dS(){return(performance.now()*Math.random()).toString()}let uS=(()=>{class t extends hS{constructor(t){super(t),this.content=t,this.rx="0",this.ry="1"}}return t.\u0275fac=function(e){return new(e||t)(s.yc(cS))},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-rect",""]],inputs:{rx:"rx",ry:"ry",y:"y",x:"x",width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed"},features:[s.hc],attrs:eS,decls:7,vars:22,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"rect"),s.Dc(1,"defs"),s.zc(2,"clipPath"),s.Dc(3,"linearGradient"),s.zc(4,"stop",0),s.zc(5,"stop",0),s.zc(6,"stop",0),s.Cc(),s.Cc()),2&t&&(s.lc("x",e.x)("y",e.y)("rx",e.rx)("ry",e.ry)("width",e.width)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl)("height",e.height),s.kc(2),s.lc("id",e.clipPathId),s.kc(1),s.lc("id",e.linearGradientId),s.kc(1),s.ad("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),s.kc(1),s.ad("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),s.kc(1),s.ad("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:function(){return[mS]},styles:[""]}),t})(),mS=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-svg-stop",""]],hostVars:2,hostBindings:function(t,e){2&t&&s.lc("offset",e.offset)("stop-color",e.color)},inputs:{speed:"speed",values:"values",offset:"offset",color:"color"},attrs:iS,decls:1,vars:2,consts:[["attributeName","offset","repeatCount","indefinite"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"animate",0)),2&t&&s.lc("values",e.values)("dur",e.speed)},styles:[""],changeDetection:0}),t})(),pS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-facebook-preset",""]],attrs:nS,decls:6,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","100","height","5","y","15","x","60","rx","5","ry","5"],["ngx-rect","","width","60","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","170","height","5","y","65","x","0","rx","5","ry","5"],["ngx-rect","","width","220","height","5","y","80","x","0","rx","5","ry","5"],["ngx-rect","","width","130","height","5","y","95","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5))},directives:function(){return[fS,uS]},styles:[""],changeDetection:0}),t})(),gS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-instagram-preset",""]],attrs:sS,decls:4,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","120","height","10","y","10","x","60","rx","5","ry","5"],["ngx-rect","","width","40","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","250","height","250","y","60","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3))},directives:function(){return[fS,uS]},styles:[""],changeDetection:0}),t})(),fS=(()=>{class t extends hS{constructor(t){super(t),this.content=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(cS))},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-circle",""]],inputs:{r:"r",cx:"cx",cy:"cy"},features:[s.hc],attrs:aS,decls:7,vars:19,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"circle"),s.Dc(1,"defs"),s.zc(2,"clipPath"),s.Dc(3,"linearGradient"),s.zc(4,"stop",0),s.zc(5,"stop",0),s.zc(6,"stop",0),s.Cc(),s.Cc()),2&t&&(s.lc("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl),s.kc(2),s.lc("id",e.clipPathId),s.kc(1),s.lc("id",e.linearGradientId),s.kc(1),s.ad("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),s.kc(1),s.ad("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),s.kc(1),s.ad("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:[mS],styles:[""]}),t})(),bS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-code-preset",""]],attrs:rS,decls:9,vars:0,consts:[["ngx-rect","","width","60","height","10","y","15","x","0","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","15","x","70","rx","5","ry","5"],["ngx-rect","","width","20","height","10","y","15","x","170","rx","5","ry","5"],["ngx-rect","","width","100","height","10","y","35","x","9","rx","5","ry","5"],["ngx-rect","","width","120","height","10","y","35","x","120","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","5","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","105","rx","5","ry","5"],["ngx-rect","","width","70","height","10","y","55","x","205","rx","5","ry","5"],["ngx-rect","","width","30","height","10","y","75","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5),s.zc(6,"g",6),s.zc(7,"g",7),s.zc(8,"g",8))},directives:[uS],encapsulation:2,changeDetection:0}),t})(),_S=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-bullet-list-preset",""]],attrs:oS,decls:8,vars:0,consts:[["ngx-circle","","cx","7","cy","7","r","7"],["ngx-circle","","cx","7","cy","37","r","7"],["ngx-circle","","cx","7","cy","67","r","7"],["ngx-circle","","cx","7","cy","97","r","7"],["ngx-rect","","width","200","height","12","y","2","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","32","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","62","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","92","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5),s.zc(6,"g",6),s.zc(7,"g",7))},directives:[fS,uS],encapsulation:2,changeDetection:0}),t})(),yS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-list-preset",""]],attrs:lS,decls:6,vars:0,consts:[["ngx-rect","","width","200","height","10","y","0","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","20","x","20","rx","5","ry","5"],["ngx-rect","","width","160","height","10","y","40","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","10","y","60","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","80","x","20","rx","5","ry","5"],["ngx-rect","","width","60","height","10","y","100","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Tc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5))},directives:[uS],encapsulation:2,changeDetection:0}),t})(),vS=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c]]}),t})();var wS,xS,kS,CS,SS;function DS(t,e){if(1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,CS),s.Ac(),s.vd(3),s.Cc()),2&t){const t=s.Uc();s.kc(3),s.xd("\xa0",t.count,"")}}function ES(t,e){1&t&&(s.Dc(0,"span"),s.Dc(1,"ngx-content-loading",14),s.Tc(),s.zc(2,"g",15),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.ad("width",500)("height",360))}function AS(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,ES,3,2,"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 OS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",16),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 PS(t,e){if(1&t&&(s.Dc(0,"button",17),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 RS(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,SS),s.Ac(),s.Cc()}}wS=$localize`:File or playlist ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,xS=$localize`:Video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,kS=$localize`:Delete video button␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,CS=$localize`:Playlist video count␟e684046d73bcee88e82f7ff01e2852789a05fc32␟6836949342567686088:Count:`,SS=$localize`:Delete and blacklist video button␟34504b488c24c27e68089be549f0eeae6ebaf30b␟593208667984994894:Delete and blacklist`;let IS=(()=>{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 Re.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.name,this.isAudio,t).subscribe(t=>{!0===t?(this.openSnackBar("Delete success!","OK."),this.removeFile.emit(this.name)):this.openSnackBar("Delete failed!","OK.")})}openVideoInfoDialog(){this.dialog.open(AC,{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(By),s.yc(Rg),s.yc(_C),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",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"],[3,"width","height"],["ngx-rect","","width","500","height","360","y","0","x","0","rx","4","ry","4"],["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)})),s.vd(6),s.Cc(),s.Cc(),s.Cc(),s.Dc(7,"span",4),s.Bc(8),s.Hc(9,wS),s.Ac(),s.vd(10),s.Cc(),s.td(11,DS,4,1,"div",5),s.Cc(),s.td(12,AS,3,4,"div",6),s.Cc(),s.td(13,OS,3,0,"button",7),s.td(14,PS,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,xS),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,kS),s.Ac(),s.Cc(),s.td(27,RS,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:[Yr,ye.t,dm,am,ru,KC,cS,uS,ds,gm],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 TS(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 MS=(()=>{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(Jc),s.yc(th))},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,TS,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:[oh,lh,Pc,vu,Ds,Ts,Va,ch,ds,rh,ye.t,ep],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();const FS=["*"],LS=["volumeBar"],NS=function(t){return{dragging:t}};function zS(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 BS(t,e){1&t&&s.zc(0,"span",2)}function jS(t,e){1&t&&(s.Dc(0,"span"),s.vd(1,"LIVE"),s.Cc())}function VS(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 US(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 $S(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 HS=(()=>{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})(),qS=(()=>{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=HS.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})(),GS=(()=>{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(qS))},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})(),YS=(()=>{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})(),WS=(()=>{let t=class{constructor(){this.isHiddenSubject=new Re.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})(),QS=(()=>{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$=fo(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=fo(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===HS.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(qS),s.yc(s.q),s.yc(WS))},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:FS,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})(),KS=(()=>{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})(),XS=(()=>{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(KS.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=fo(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&&(KS.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||KS.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})(),ZS=(()=>{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 qS&&(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(qS),s.yc(XS))},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})(),JS=(()=>{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(qS))},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})(),tD=(()=>{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(qS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&s.rd(LS,!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,NS,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})(),eD=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=HS.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 HS.VG_PLAYING:this.target.pause();break;case HS.VG_PAUSED:case HS.VG_ENDED:this.target.play()}}getState(){return this.ariaValue=this.target?this.target.state:HS.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(qS))},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})(),iD=(()=>{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 qS?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(qS))},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})(),nD=(()=>{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===HS.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(qS),s.yc(WS))},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:FS,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})(),sD=(()=>{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(qS))},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})(),aD=(()=>{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(qS))},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,zS,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})(),rD=(()=>{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(qS))},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,BS,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})(),oD=(()=>{let t=class{transform(t,e){const i=new Date(t);let n=e,s=i.getUTCSeconds(),a=i.getUTCMinutes(),r=i.getUTCHours();return s<10&&(s="0"+s),a<10&&(a="0"+a),r<10&&(r="0"+r),n=n.replace(/ss/g,s),n=n.replace(/mm/g,a),n=n.replace(/hh/g,r),n}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.xc({name:"vgUtc",type:t,pure:!0}),t})(),lD=(()=>{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(qS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:FS,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(s.Zc(),s.td(0,jS,2,0,"span",0),s.td(1,VS,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:[oD],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})(),cD=(()=>{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(qS))},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,US,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})(),hD=(()=>{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(qS))},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,$S,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})(),dD=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[WS],imports:[[ye.c]]}),t})(),uD=(()=>{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})(),mD=(()=>{let t=class{constructor(t,e){this.api=t,this.ref=e,this.state=HS.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 Re.a}ngOnInit(){this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:fo(this.elem,uD.VG_ABORT),canPlay:fo(this.elem,uD.VG_CAN_PLAY),canPlayThrough:fo(this.elem,uD.VG_CAN_PLAY_THROUGH),durationChange:fo(this.elem,uD.VG_DURATION_CHANGE),emptied:fo(this.elem,uD.VG_EMPTIED),encrypted:fo(this.elem,uD.VG_ENCRYPTED),ended:fo(this.elem,uD.VG_ENDED),error:fo(this.elem,uD.VG_ERROR),loadedData:fo(this.elem,uD.VG_LOADED_DATA),loadedMetadata:fo(this.elem,uD.VG_LOADED_METADATA),loadStart:fo(this.elem,uD.VG_LOAD_START),pause:fo(this.elem,uD.VG_PAUSE),play:fo(this.elem,uD.VG_PLAY),playing:fo(this.elem,uD.VG_PLAYING),progress:fo(this.elem,uD.VG_PROGRESS),rateChange:fo(this.elem,uD.VG_RATE_CHANGE),seeked:fo(this.elem,uD.VG_SEEKED),seeking:fo(this.elem,uD.VG_SEEKING),stalled:fo(this.elem,uD.VG_STALLED),suspend:fo(this.elem,uD.VG_SUSPEND),timeUpdate:fo(this.elem,uD.VG_TIME_UPDATE),volumeChange:fo(this.elem,uD.VG_VOLUME_CHANGE),waiting:fo(this.elem,uD.VG_WAITING),startAds:fo(this.elem,uD.VG_START_ADS),endAds:fo(this.elem,uD.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=ym(t).pipe(Object(ii.a)((...t)=>{t.some(t=>4===t.target.readyState)&&!this.syncSubscription&&(this.startSync(),this.syncSubscription.unsubscribe())})).subscribe()}startSync(){this.syncSubscription=Mo(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===HS.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!==HS.VG_PAUSED&&this.state!==HS.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=HS.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=HS.VG_ENDED,this.ref.detectChanges()}onStartPlaying(t){this.state=HS.VG_PLAYING,this.ref.detectChanges()}onPlay(t){this.state=HS.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}onPause(t){this.state=HS.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=Mo(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(qS),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),t})(),pD=(()=>{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$=fo(this.ref.nativeElement,uD.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})(),gD=(()=>{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?KS.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(qS),s.yc(XS),s.yc(WS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-player"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,mD,!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([qS,XS,WS])],ngContentSelectors:FS,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})(),fD=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[qS,XS,KS,WS,HS,uD]}),t})(),bD=(()=>{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 HS.VG_PLAYING:this.target.pause();break;case HS.VG_PAUSED:case HS.VG_ENDED:this.target.play()}}getState(){let t=HS.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(qS),s.yc(XS),s.yc(WS))},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})(),_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})();function yD(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 vD;function wD(t,e){1&t&&s.zc(0,"mat-spinner",17),2&t&&s.ad("diameter",25)}function xD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",13),s.Dc(1,"div",14),s.td(2,wD,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,vD),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 kD(t,e){1&t&&s.zc(0,"mat-spinner",22),2&t&&s.ad("diameter",50)}function CD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",23),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 SD(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,kD,1,1,"mat-spinner",20),s.Cc(),s.td(5,CD,3,0,"button",21),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)}}function DD(t,e){1&t&&s.zc(0,"mat-spinner",22),2&t&&s.ad("diameter",50)}function ED(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,DD,1,1,"mat-spinner",20),s.Cc(),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)}}function AD(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,yD,2,3,"mat-button-toggle",10),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.td(11,xD,9,2,"div",11),s.td(12,SD,6,3,"div",0),s.td(13,ED,5,2,"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)}}vD=$localize`:Playlist save changes button␟5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f␟7000649363168371045:Save changes`;let OD=(()=>{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.currentIndex=0,this.currentItem=null,this.id=null,this.subscriptionName=null,this.subPlaylist=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.downloading=!1}onResize(t){this.innerWidth=window.innerWidth}ngOnInit(){this.innerWidth=window.innerWidth,this.fileNames=this.route.snapshot.paramMap.get("fileNames").split("|nvr|"),this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),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;let i=null;"audio"===this.type?i="audio/mp3":"video"===this.type?i="video/mp4":"subscription"===this.type?i="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'.");for(let n=0;n{})}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).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(MS,{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.openSnackBar("Playlist '"+t+"' successfully created!",""),this.playlistPostCreationHandler(n.id)}})}})}playlistPostCreationHandler(t){this.id=t,this.router.navigateByUrl(this.router.url+";id="+t)}drop(t){tf(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.","")})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(a_),s.yc(sh),s.yc(my),s.yc(Rg))},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"],[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"],[1,"spinner",3,"diameter"],["color","accent","color","primary","mat-fab","",1,"favorite-button",3,"click"]],template:function(t,e){1&t&&s.td(0,AD,14,12,"div",0),2&t&&s.ad("ngIf",e.playlist.length>0)},directives:[ye.t,ye.q,gD,mD,Sr,Ef,ye.s,Ar,kf,ds,ru,ep],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:80%} .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:absolute;bottom:25px}.favorite-button[_ngcontent-%COMP%]{left:25px;position:absolute;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px}.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 PD;PD=$localize`:Subscribe dialog title␟a9806cf78ce00eb2613eeca11354a97e033377b8␟4500902888758611270:Subscribe to playlist or channel`;const RD=["placeholder",$localize`:Subscription URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var ID;ID=$localize`:Subscription URL input hint␟93efc99ae087fc116de708ecd3ace86ca237cf30␟6758330192665823220:The playlist or channel URL`;const TD=["placeholder",$localize`:Subscription custom name placeholder␟08f5d0ef937ae17feb1b04aff15ad88911e87baf␟1402261878731426139:Custom name`];var MD,FD,LD,ND;function zD(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 BD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",3),s.Bc(1),s.Hc(2,ND),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,zD,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 jD(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))}MD=$localize`:Custom name input hint␟f3f62aa84d59f3a8b900cc9a7eec3ef279a7b4e7␟8525826677893067522:This is optional`,FD=$localize`:Download all uploads subscription setting␟ea30873bd3f0d5e4fb2378eec3f0a1db77634a28␟2789218157148692814:Download all uploads`,LD=$localize`:Subscribe cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,ND=$localize`:Download time range prefix␟28a678e9cabf86e44c32594c43fa0e890135c20f␟2424458468042538424:Download videos uploaded in the last`;let VD=(()=>{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.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).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(By),s.yc(Rg),s.yc(Jc))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscribe-dialog"]],decls:31,vars:6,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,PD),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,RD),s.Qc("ngModelChange",(function(t){return e.url=t})),s.Cc(),s.Dc(9,"mat-hint"),s.Bc(10),s.Hc(11,ID),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,TD),s.Qc("ngModelChange",(function(t){return e.name=t})),s.Cc(),s.Dc(16,"mat-hint"),s.Bc(17),s.Hc(18,MD),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,FD),s.Ac(),s.Cc(),s.Cc(),s.td(23,BD,7,3,"div",9),s.Cc(),s.Cc(),s.Cc(),s.Dc(24,"mat-dialog-actions"),s.Dc(25,"button",10),s.Bc(26),s.Hc(27,LD),s.Ac(),s.Cc(),s.Dc(28,"button",11),s.Qc("click",(function(){return e.subscribeClicked()})),s.vd(29,"Subscribe"),s.Cc(),s.td(30,jD,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(5),s.ad("disabled",!e.url),s.kc(2),s.ad("ngIf",e.subscribing))},directives:[oh,lh,Pc,vu,Ds,nr,Ts,Va,wc,oo,ye.t,ch,ds,rh,Gs,Tp,ye.s,es,ep],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var UD,$D,HD,qD,GD,YD,WD;function QD(t,e){if(1&t&&(s.Dc(0,"div",1),s.Dc(1,"strong"),s.Bc(2),s.Hc(3,WD),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)}}UD=$localize`:Subscription type property␟e78c0d60ac39787f62c9159646fe0b3c1ed55a1d␟2736556170366900089:Type:`,$D=$localize`:Subscription URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,HD=$localize`:Subscription ID property␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,qD=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,GD=$localize`:Export Archive button␟8efc77bf327659c0fec1f518cf48a98cdcd9dddf␟5613381975493898311:Export Archive`,YD=$localize`:Unsubscribe button␟3042bd3ad8dffcfeca5fd1ae6159fd1047434e95␟1698114086921246480:Unsubscribe`,WD=$localize`:Subscription ID property␟a44d86aa1e6c20ced07aca3a7c081d8db9ded1c6␟2158775445713924699:Archive:`;let KD=(()=>{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(Jc),s.yc(th),s.yc(By))},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,UD),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,$D),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,HD),s.Ac(),s.vd(21,"\xa0"),s.Cc(),s.Dc(22,"span",2),s.vd(23),s.Cc(),s.Cc(),s.td(24,QD,7,1,"div",3),s.Cc(),s.Dc(25,"mat-dialog-actions"),s.Dc(26,"button",4),s.Bc(27),s.Hc(28,qD),s.Ac(),s.Cc(),s.Dc(29,"button",5),s.Qc("click",(function(){return e.downloadArchive()})),s.Bc(30),s.Hc(31,GD),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,YD),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:[oh,lh,ye.t,ch,ds,rh],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 XD,ZD,JD,tE,eE,iE,nE;function sE(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 aE(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,tE),s.Ac(),s.Cc())}function rE(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,sE,2,1,"strong",10),s.td(3,aE,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 oE(t,e){1&t&&(s.Dc(0,"div",12),s.Dc(1,"p"),s.Hc(2,eE),s.Cc(),s.Cc())}function lE(t,e){1&t&&(s.Dc(0,"div",14),s.Bc(1),s.Hc(2,iE),s.Ac(),s.Cc())}function cE(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,lE,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 hE(t,e){1&t&&(s.Dc(0,"div",12),s.Dc(1,"p"),s.Hc(2,nE),s.Cc(),s.Cc())}function dE(t,e){1&t&&(s.Dc(0,"div",15),s.zc(1,"mat-progress-bar",16),s.Cc())}XD=$localize`:Subscriptions title␟e2319dec5b4ccfb6ed9f55ccabd63650a8fdf547␟3180145612302390475:Your subscriptions`,ZD=$localize`:Subscriptions channels title␟807cf11e6ac1cde912496f764c176bdfdd6b7e19␟8181077408762380407:Channels`,JD=$localize`:Subscriptions playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,tE=$localize`:Subscription playlist not available text␟29b89f751593e1b347eef103891b7a1ff36ec03f␟973700466393519727:Name not available. Channel retrieval in progress.`,eE=$localize`:No channel subscriptions text␟4636cd4a1379c50d471e98786098c4d39e1e82ad␟2560406180065361139:You have no channel subscriptions.`,iE=$localize`:Subscription playlist not available text␟2e0a410652cb07d069f576b61eab32586a18320d␟4161141077899894301:Name not available. Playlist retrieval in progress.`,nE=$localize`:No playlist subscriptions text␟587b57ced54965d8874c3fd0e9dfedb987e5df04␟3403368727234976136:You have no playlist subscriptions.`;let uE=(()=>{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(VD,{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(KD,{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(sh),s.yc(By),s.yc(my),s.yc(Rg))},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,XD),s.Cc(),s.zc(3,"mat-divider",1),s.zc(4,"br"),s.Dc(5,"h4",2),s.Hc(6,ZD),s.Cc(),s.Dc(7,"mat-nav-list",3),s.td(8,rE,7,2,"mat-list-item",4),s.Cc(),s.td(9,oE,3,0,"div",5),s.Dc(10,"h4",6),s.Hc(11,JD),s.Cc(),s.Dc(12,"mat-nav-list",3),s.td(13,cE,8,2,"mat-list-item",4),s.Cc(),s.td(14,hE,3,0,"div",5),s.td(15,dE,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:[xu,Fu,ye.s,ye.t,ds,ru,Vu,Mn,Hm],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 mE,pE,gE,fE;function bE(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,fE),s.Ac(),s.Cc()}}function _E(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)}}mE=$localize`:Video duration label␟2054791b822475aeaea95c0119113de3200f5e1c␟7115285952699064699:Length:`,pE=$localize`:Subscription video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,gE=$localize`:Delete and redownload subscription video button␟94e01842dcee90531caa52e4147f70679bac87fe␟8460889291602192517:Delete and redownload`,fE=$localize`:Delete forever subscription video button␟2031adb51e07a41844e8ba7704b054e98345c9c1␟880206287081443054:Delete forever`;let yE=(()=>{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 Re.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(this.file.id)}openSubscriptionInfoDialog(){this.dialog.open(AC,{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(Rg),s.yc(By),s.yc(sh))},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,mE),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,pE),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,gE),s.Ac(),s.Cc(),s.td(20,bE,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,_E,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:[ds,gm,ru,dm,am,ye.t,Yr,$n],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 vE(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 wE;wE=$localize`:Subscription videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const xE=["placeholder",$localize`:Subscription videos search placeholder␟7e892ba15f2c6c17e83510e273b3e10fc32ea016␟4580988005648117665:Search`];function kE(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 CE(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 SE(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,kE,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,wE),s.Cc(),s.Cc(),s.Dc(15,"div",18),s.Dc(16,"mat-form-field",19),s.Dc(17,"input",20),s.Jc(18,xE),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,CE,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 DE(t,e){1&t&&s.zc(0,"mat-spinner",28),2&t&&s.ad("diameter",50)}let EE=(()=>{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){localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:t,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(By),s.yc(a_),s.yc(my))},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,vE,2,1,"h2",3),s.Cc(),s.zc(6,"mat-divider",4),s.zc(7,"br"),s.td(8,SE,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,DE,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:[ds,ru,ye.t,xu,Tp,Ts,Va,ye.s,Pc,ye.q,vu,Ds,Sc,es,yE,ep],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})();const AE=[{path:"home",component:_C},{path:"player",component:OD},{path:"subscriptions",component:uE},{path:"subscription",component:EE},{path:"",redirectTo:"/home",pathMatch:"full"}];let OE=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Py.forRoot(AE,{useHash:!0})],Py]}),t})();var PE;PE=$localize`:Download ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`;let RE=(()=>{class t{constructor(){this.download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!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:16,vars:10,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","margin-right","5px","position","relative","top","5px"],[2,"display","inline-block","text-align","center"],[2,"width","80%",3,"value","mode"],["mat-icon-button","","color","warn",3,"click"],["fontSet","material-icons-outlined"]],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,"h5",2),s.vd(4),s.Cc(),s.Cc(),s.Dc(5,"mat-grid-tile",1),s.Dc(6,"div",3),s.Bc(7),s.Hc(8,PE),s.Ac(),s.vd(9),s.Cc(),s.Cc(),s.Dc(10,"mat-grid-tile",1),s.zc(11,"mat-progress-bar",4),s.Cc(),s.Dc(12,"mat-grid-tile",1),s.Dc(13,"button",5),s.Qc("click",(function(){return e.cancelTheDownload()})),s.Dc(14,"mat-icon",6),s.vd(15,"cancel"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.ad("rowHeight",50)("cols",24),s.kc(1),s.ad("colspan",2),s.kc(2),s.xd("",e.queueNumber,"."),s.kc(1),s.ad("colspan",6),s.kc(4),s.xd("\xa0",e.url_id,""),s.kc(1),s.ad("colspan",13),s.kc(1),s.ad("value",e.download.percent_complete)("mode",0===e.download.percent_complete?"indeterminate":"determinate"),s.kc(1),s.ad("colspan",3))},directives:[nd,$h,Hm,ds,ru],styles:[""]}),t})();var IE=i("2Yyj"),TE=i.n(IE);function ME({element:t}){return"video"===t.id?gC||bC:pC||fC}i.d(e,"isVisible",(function(){return ME})),i.d(e,"AppModule",(function(){return FE})),Object(ye.K)(TE.a,"es");let FE=(()=>{class t{}return t.\u0275mod=s.wc({type:t,bootstrap:[Zw]}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[By],imports:[[n.a,Pe,In,pp,fr,wu,Mp,br,Ix,qd,zg,Kr,Og,ms,mo,ig,ou,Ku,sd,zh,Gm,ip,Or,Hn,bm,dh,yg,bm,Gc,zm,Af,fD,dD,_D,YS,ZC.forRoot({isVisible:ME}),vS,Py,OE]]}),t})();s.od(_C,[ye.q,ye.r,ye.s,ye.t,ye.A,ye.w,ye.x,ye.y,ye.z,ye.u,ye.v,hp,mp,tn,Ua,aa,ca,Ds,Gs,Xs,ks,sa,la,Qs,Ts,Ms,nr,cr,dr,mr,sr,or,Va,za,Ta,hu,du,fc,Pc,wc,xc,kc,Cc,Sc,vu,mu,Tp,Ip,es,Kn,qa,Ya,tr,Qa,Xa,Ng,Lg,Yr,Wr,Qr,Lr,Nr,zr,Br,jr,Ur,$r,Hr,Vr,qr,Gr,Ag,ds,us,oo,co,Qp,Kp,Wp,Zp,tg,Xp,ru,Nu,Fu,Vu,zu,Mn,Bu,ju,qn,Qu,Wu,xu,nd,$h,Hh,Gh,Yh,qh,Lh,Rh,Ih,Th,Fh,Mh,Ah,Hm,tp,ep,Sr,Ar,$n,dm,am,gm,em,Xc,rh,oh,lh,ch,fg,pg,jc,qc,Vc,Lm,Nm,Ef,Sf,kf,_f,vf,yf,mD,pD,gD,QS,ZS,JS,tD,eD,iD,nD,sD,aD,rD,lD,cD,hD,bD,GS,KC,cS,uS,fS,pS,gS,bS,_S,yS,vy,py,gy,by,gb,Zw,IS,_C,OD,MS,Yx,RE,uE,VD,EE,yE,KD,Ew,Yy,Vw,AC,uv],[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,oD,dv])},xDdU:function(t,e,i){var n,s,a=i("4fRq"),r=i("I2ZF"),o=0,l=0;t.exports=function(t,e,i){var c=e&&i||0,h=e||[],d=(t=t||{}).node||n,u=void 0!==t.clockseq?t.clockseq:s;if(null==d||null==u){var m=a();null==d&&(d=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-o+(g-l)/1e4;if(f<0&&void 0===t.clockseq&&(u=u+1&16383),(f<0||p>o)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=p,l=g,s=u;var b=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;h[c++]=b>>>24&255,h[c++]=b>>>16&255,h[c++]=b>>>8&255,h[c++]=255&b;var _=p/4294967296*1e4&268435455;h[c++]=_>>>8&255,h[c++]=255&_,h[c++]=_>>>24&15|16,h[c++]=_>>>16&255,h[c++]=u>>>8|128,h[c++]=255&u;for(var y=0;y<6;++y)h[c+y]=d[y];return e||r(h)}},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 r=(t=t||{}).random||(t.rng||n)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;++o)e[a+o]=r[o];return e||s(r)}},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,r,o,l,c,h,d,u,m,p,g,f,b,_,y=1>>((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,h=u.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){u.revokeObjectURL(h)}),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);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 h(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function m(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 y(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(t){switch(t.length){case 0:return new g;case 1:return t[0];default:return new v(t)}}function b(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=y();(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 P=null,T=!1;function R(t){P||(P=("undefined"!=typeof document?document.body:null)||{},T=!!P.style&&"WebkitAppearance"in P.style);var e=!0;return P.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in P.style)&&T)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in P.style),e}var I=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,N=((F=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return R(t)}},{key:"matchesElement",value:function(t,e){return I(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),z=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new N,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 Y(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:mt(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:mt(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:mt(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(ft(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,h=e.collectedStyles[e.currentQuerySelector],d=h[i],f=!0;d&&(r!=a&&r>=d.startTime&&a<=d.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),f=!1),r=d.startTime),f&&(h[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(ft(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ft(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==d?1:h*a:r[a],s=o*p;e.currentTime=f+m.delay+s,m.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:mt(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:mt(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:mt(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:mt(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}(),dt=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 ft(t){return!Array.isArray(t)&&"object"==typeof t}function mt(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}(),yt=new RegExp(":enter","g"),_t=new RegExp(":leave","g");function bt(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 h=u.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,u.errors,s)}return h.length?h.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(yt,"."+this._enterClassName)).replace(_t,"."+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){function e(t,n,i,a,r,o){var s,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,o.delay))).element=n,s.keyframes=i,s.preStyleProps=a,s.postStyleProps=r,s._stretchStartingKeyframe=l,s.timings={duration:o.duration,delay:o.delay,easing:o.easing},s}return _inherits(e,t),_createClass(e,[{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,h=1;h<=u;h++){var d=q(t[h],!1);d.offset=Ot((n+d.offset*i)/o),r.push(d)}i=o,n=0,a="",t=r}return gt(this.element,t,this.preStyleProps,this.postStyleProps,i,n,a,!0)}}]),e}(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){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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}}]),e}(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 Pt(t,e,n,i,a,r,o,s,l,c,u,h,d){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:h,errors:d}}var Tt={},Rt=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=[],h=this.ast.options&&this.ast.options.params||Tt,d=this.buildStyles(n,o&&o.params||Tt,u),f=s&&s.params||Tt,m=this.buildStyles(i,f,u),p=new Set,g=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=c?[]:bt(t,e,this.ast.animation,a,r,d,m,_,l,u),k=0;if(b.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),u.length)return Pt(e,this._triggerName,n,i,y,d,m,[],[],g,v,k,u);b.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 Pt(e,this._triggerName,n,i,y,d,m,b,C,g,v,k)}}]),t}(),It=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 It(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 Rt(e,t,i.states))})),this.fallbackTransition=new Rt(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=b(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=bt(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=_(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}(),Nt=[],zt={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 h=r.matchTransition(l.value,c.value,t,c.params),d=!1;if(!h){if(!a)return;h=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:d}),d||(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(Yt(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 Yt(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 _(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=zt,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 d=!h||!n.driver.containsElement(h,r),f=w.get(r),p=m.get(r),g=n._buildInstruction(t,i,p,f,d);if(!g.errors||!g.errors.length)return d?(e.onStart((function(){return Q(r,g.fromStyles)})),e.onDestroy((function(){return W(r,g.toStyles)})),void a.push(e)):t.isFallbackTransition?(e.onStart((function(){return Q(r,g.fromStyles)})),e.onDestroy((function(){return W(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 P=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,P))})),a.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){x(P,e,[]).push(t),t.destroy()}))}));var R=g.filter((function(t){return Jt(t,l,c)})),I=new Map;Qt(I,this.driver,y,c,"*").forEach((function(t){Jt(t,l,c)&&R.push(t)}));var M=new Map;f.forEach((function(t,e){Qt(M,n.driver,new Set(t),l,"!")})),R.forEach((function(t){var e=I.get(t),n=M.get(t);I.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 W(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,h=[];c=c.parentNode;){var d=T.get(c);if(d){l=d;break}h.push(c)}h.forEach((function(t){return T.set(t,l)}))}var f=n._buildAnimation(o.namespaceId,s,P,r,M,I);if(o.setRealPlayer(f),l===F)j.push(o);else{var m=n.playersByElement.get(l);m&&m.length&&(o.parentPlayer=_(m)),a.push(o)}}else Q(e,s.fromStyles),o.onDestroy((function(){return W(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=_(e);t.setRealPlayer(n)}})),a.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var N=0;N0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new 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 Yt(t){return t&&1===t.nodeType}function Wt(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Qt(t,e,n,i,a){var r=[];n.forEach((function(t){return r.push(Wt(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 Wt(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){_(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&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(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&&(Q(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),W(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=he(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=he(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 he(t,e){return t.style["animation"+e]}var de=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}(),fe=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).element=t,i._startingStyles={},i.__initialized=!1,i._styles=L(n),i}return _inherits(e,t),_createClass(e,[{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(e.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(e.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(e.prototype),"destroy",this).call(this))}}]),e}(g),me=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 R(t)}},{key:"matchesElement",value:function(t,e){return I(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 de})),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 fe(t,c);var u="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);var d=ee(t,e),f=new de(t,e,u,n,i,a,c,d);return f.onDestroy((function(){var t;(t=h).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}(),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 me}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return R(t)}},{key:"matchesElement",value:function(t,e){return I(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 ye,_e=n("ofXK"),be=((ye=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._nextAnimationId=0,i._renderer=t.createRenderer(n.body,{id:"0",encapsulation:a.Y.None,styles:[],data:{animation:[]}}),i}return _inherits(e,t),_createClass(e,[{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)}}]),e}(r)).\u0275fac=function(t){return new(t||ye)(a.Mc(a.M),a.Mc(_e.e))},ye.\u0275prov=a.uc({token:ye,factory:ye.\u0275fac}),ye),ke=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._id=t,i._renderer=n,i}return _inherits(e,t),_createClass(e,[{key:"create",value:function(t,e){return new Ce(this._id,t,e||{},this._renderer)}}]),e}(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}}]),e}(function(t){function e(t,n){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),e}(je.a)),Qe=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){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qe.now;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,(function(){return e.delegate&&e.delegate!==_assertThisInitialized(n)?e.delegate.now():i()})))).actions=[],n.active=!1,n.scheduled=void 0,n}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,i):_get(_getPrototypeOf(e.prototype),"schedule",this).call(this,t,n,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}}}}]),e}(Qe),Ke=new $e(We);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){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).dueTime=n,a.scheduler=i,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _inherits(e,t),_createClass(e,[{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)}}]),e}(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){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).predicate=n,a.thisArg=i,a.count=0,a}return _inherits(e,t),_createClass(e,[{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)}}]),e}(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 dn(t))}}var hn,dn=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 fn(t,this.total))}}]),t}(),fn=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).total=n,i.count=0,i}return _inherits(e,t),_createClass(e,[{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()))}}]),e}(Ve.a);function mn(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 yn(t){return t instanceof a.q?t.nativeElement:t}try{hn="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(GR){hn=!1}var _n,bn,kn,Cn,wn,xn,Sn=((kn=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(_e.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&&!hn)&&"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=((bn=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:bn}),bn.\u0275inj=a.vc({factory:function(t){return new(t||bn)}}),bn),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(_n)return _n;if("object"!=typeof document||!document)return _n=new Set(Dn);var t=document.createElement("input");return _n=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 Pn(){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(){if(null==xn){var t="undefined"!=typeof document?document.head:null;xn=!(!t||!t.createShadowRoot&&!t.attachShadow)}return xn}var Rn,In,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=yn(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),Nn=((In=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=mn(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||In)(a.yc(Fn),a.yc(a.q),a.yc(a.F))},In.\u0275dir=a.tc({type:In,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),In),zn=((Rn=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Rn}),Rn.\u0275inj=a.vc({factory:function(t){return new(t||Rn)},providers:[Ln]}),Rn);function Bn(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Vn,Un,Hn=0,qn=new Map,Gn=null,Yn=((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}(),Qn=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(e.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),e}(Wn),$n=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._origin="program",t}return _inherits(e,t),_createClass(e,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(e.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),e}(Wn),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(GR){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(_e.e))},Jn.\u0275prov=Object(a.uc)({factory:function(){return new Jn(Object(a.Mc)(Kn),Object(a.Mc)(a.F),Object(a.Mc)(_e.e))},token:Jn,providedIn:"root"}),Jn);"undefined"!=typeof Element&∈var ni,ii,ai=new a.v("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),ri=new a.v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),oi=((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 ze(null);var i=yn(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=yn(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=yn(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:"_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,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(){document.addEventListener("keydown",t._documentKeydownListener,si),document.addEventListener("mousedown",t._documentMousedownListener,si),document.addEventListener("touchstart",t._documentTouchstartListener,si),window.addEventListener("focus",t._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,si),document.removeEventListener("mousedown",this._documentMousedownListener,si),document.removeEventListener("touchstart",this._documentTouchstartListener,si),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}]),t}()).\u0275fac=function(t){return new(t||ii)(a.Mc(a.F),a.Mc(Sn))},ii.\u0275prov=Object(a.uc)({factory:function(){return new ii(Object(a.Mc)(a.F),Object(a.Mc)(Sn))},token:ii,providedIn:"root"}),ii);function ci(t){return 0===t.buttons}var ui,hi,di,fi,mi,pi=((hi=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||hi)(a.Mc(Sn),a.Mc(_e.e))},hi.\u0275prov=Object(a.uc)({factory:function(){return new hi(Object(a.Mc)(Sn),Object(a.Mc)(_e.e))},token:hi,providedIn:"root"}),hi),gi=((ui=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()}).\u0275mod=a.wc({type:ui}),ui.\u0275inj=a.vc({factory:function(t){return new(t||ui)(a.Mc(pi))},imports:[[On,zn]]}),ui),vi=new a.v("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(a.db)(_e.e)}}),yi=((mi=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||mi)(a.Mc(vi,8))},mi.\u0275prov=Object(a.uc)({factory:function(){return new mi(Object(a.Mc)(vi,8))},token:mi,providedIn:"root"}),mi),_i=((fi=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||fi)},fi.\u0275dir=a.tc({type:fi,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:yi,useExisting:fi}])]}),fi),bi=((di=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:di}),di.\u0275inj=a.vc({factory:function(t){return new(t||di)}}),di),ki=new a.W("9.1.2"),Ci=n("bHdf");function wi(){return Object(Ci.a)(1)}function xi(){return wi()(ze.apply(void 0,arguments))}function Si(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return(function(t){function n(){var t,i;_classCallCheck(this,n);for(var a=arguments.length,r=new Array(a),o=0;o0?n:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),Ui=new a.v("mat-date-formats");try{zi="undefined"!=typeof Intl}catch(GR){zi=!1}var Hi={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=Wi(31,(function(t){return String(t+1)})),Gi={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Yi=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Wi(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(zi){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(Yi.test(t)){var n=new Date(t);if(this.isValid(n))return n}}return _get(_getPrototypeOf(e.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)}}]),e}(Vi)).\u0275fac=function(t){return new(t||$i)(a.Mc(Bi,8),a.Mc(Sn))},$i.\u0275prov=a.uc({token:$i,factory:$i.\u0275fac}),$i),ta=((Qi=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Qi}),Qi.\u0275inj=a.vc({factory:function(t){return new(t||Qi)},providers:[{provide:Vi,useClass:Ji}],imports:[[On]]}),Qi),ea={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"}}},na=((Zi=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Zi}),Zi.\u0275inj=a.vc({factory:function(t){return new(t||Zi)},providers:[{provide:Ui,useValue:ea}],imports:[[ta]]}),Zi),ia=((Xi=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||Xi)},Xi.\u0275prov=Object(a.uc)({factory:function(){return new Xi},token:Xi,providedIn:"root"}),Xi),aa=((Ki=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ki)},Ki.\u0275dir=a.tc({type:Ki,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ki);function ra(t,e){t.changes.pipe(Si(t)).subscribe((function(t){var n=t.length;oa(e,"mat-2-line",!1),oa(e,"mat-3-line",!1),oa(e,"mat-multi-line",!1),2===n||3===n?oa(e,"mat-".concat(n,"-line"),!0):n>3&&oa(e,"mat-multi-line",!0)}))}function oa(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}var sa,la,ca,ua,ha,da,fa,ma=((sa=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:sa}),sa.\u0275inj=a.vc({factory:function(t){return new(t||sa)},imports:[[Ii],Ii]}),sa),pa=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}(),ga={enterDuration:450,exitDuration:400},va=An({passive:!0}),ya=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=ci(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({},ga),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 h=new pa(this,u,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()}),c),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},ga),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=yn(t);n&&n!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){e._triggerEvents.forEach((function(t,e){n.addEventListener(e,t,va)}))})),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,va)}))}}]),t}(),_a=new a.v("mat-ripple-global-options"),ba=((ha=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 ya(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||ha)(a.yc(a.q),a.yc(a.F),a.yc(Sn),a.yc(_a,8),a.yc(Te,8))},ha.\u0275dir=a.tc({type:ha,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"]}),ha),ka=((ua=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ua}),ua.\u0275inj=a.vc({factory:function(t){return new(t||ua)},imports:[[Ii,On],Ii]}),ua),Ca=((ca=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||ca)(a.yc(Te,8))},ca.\u0275cmp=a.sc({type:ca,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}),ca),wa=((la=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:la}),la.\u0275inj=a.vc({factory:function(t){return new(t||la)}}),la),xa=Mi((function t(){_classCallCheck(this,t)})),Sa=0,Oa=((da=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._labelId="mat-optgroup-label-".concat(Sa++),t}return _inherits(e,t),e}(xa)).\u0275fac=function(t){return Da(t||da)},da.\u0275cmp=a.sc({type:da,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:Di,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(a.Zc(Oi),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}),da),Da=a.Fc(Oa),Ea=0,Aa=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=n},Pa=new a.v("MAT_OPTION_PARENT_COMPONENT"),Ta=((fa=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(Ea++),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 Aa(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=mn(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||fa)(a.yc(a.q),a.yc(a.j),a.yc(Pa,8),a.yc(Oa,8))},fa.\u0275cmp=a.sc({type:fa,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:Pi,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,Ei,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:[_e.t,ba,Ca],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}),fa);function Ra(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 Ma,ja,La,Fa,Na,za=((Ma=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ma}),Ma.\u0275inj=a.vc({factory:function(t){return new(t||Ma)},imports:[[ka,_e.c,wa]]}),Ma),Ba=new a.v("mat-label-global-options"),Va=["mat-button",""],Ua=["*"],Ha=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qa=ji(Mi(Li((function t(e){_classCallCheck(this,t),this._elementRef=e})))),Ga=((Fa=function(t){function e(t,n,i){var a;_classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._focusMonitor=n,a._animationMode=i,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var r=!0,o=!1,s=void 0;try{for(var l,c=Ha[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;a._hasHostAttributes(u)&&a._getHostElement().classList.add(u)}}catch(h){o=!0,s=h}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return t.nativeElement.classList.add("mat-button-base"),a._focusMonitor.monitor(a._elementRef,!0),a.isRoundButton&&(a.color="accent"),a}return _inherits(e,t),_createClass(e,[{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}),Fa),Ya=((La=function(t){function e(t,n,i){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n,t,i))}return _inherits(e,t),_createClass(e,[{key:"_haltDisabledEvents",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}]),e}(Ga)).\u0275fac=function(t){return new(t||La)(a.yc(li),a.yc(a.q),a.yc(Te,8))},La.\u0275cmp=a.sc({type:La,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:Va,ngContentSelectors:Ua,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:[ba],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}),La),Wa=((ja=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ja}),ja.\u0275inj=a.vc({factory:function(t){return new(t||ja)},imports:[[ka,Ii],Ii]}),ja),Qa=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}(),$a=((Na=function(){function t(){_classCallCheck(this,t),this._listeners=[]}return _createClass(t,[{key:"notify",value:function(t,e){var n=!0,i=!1,a=void 0;try{for(var r,o=this._listeners[Symbol.iterator]();!(n=(r=o.next()).done);n=!0)(0,r.value)(t,e)}catch(s){i=!0,a=s}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}},{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||Na)},Na.\u0275prov=Object(a.uc)({factory:function(){return new Na},token:Na,providedIn:"root"}),Na),Ka=n("DH7j"),Xa=n("XoHu"),Za=n("Cfvw");function Ja(){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 kr(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return kr(t.value)?null:xr.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(kr(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(kr(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(Or);return 0==e.length?null:function(t){return Er(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(Or);return 0==e.length?null:function(t){return Ja(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(Dr)).pipe(Object(rn.a)(Er))}}}]),t}();function Or(t){return null!=t}function Dr(t){var e=Object(a.Nb)(t)?Object(Za.a)(t):t;if(!Object(a.Mb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Er(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 Ar(t){return t.validate?function(e){return t.validate(e)}:t}function Pr(t){return t.validate?function(e){return t.validate(e)}:t}var Tr,Rr,Ir,Mr,jr={provide:rr,useExisting:Object(a.cb)((function(){return Lr})),multi:!0},Lr=((Tr=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||Tr)(a.yc(a.L),a.yc(a.q))},Tr.\u0275dir=a.tc({type:Tr,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([jr])]}),Tr),Fr={provide:rr,useExisting:Object(a.cb)((function(){return zr})),multi:!0},Nr=((Ir=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||Ir)},Ir.\u0275prov=a.uc({token:Ir,factory:Ir.\u0275fac}),Ir),zr=((Rr=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(vr),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||Rr)(a.yc(a.L),a.yc(a.q),a.yc(Nr),a.yc(a.w))},Rr.\u0275dir=a.tc({type:Rr,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([Fr])]}),Rr),Br={provide:rr,useExisting:Object(a.cb)((function(){return Vr})),multi:!0},Vr=((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",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||Mr)(a.yc(a.L),a.yc(a.q))},Mr.\u0275dir=a.tc({type:Mr,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([Br])]}),Mr),Ur='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Hr='\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
',Gr=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(Ur))}},{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(Hr,"\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(Ur))}},{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(Hr))}},{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}(),Yr={provide:rr,useExisting:Object(a.cb)((function(){return Kr})),multi:!0};function Wr(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var Qr,$r,Kr=(($r=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=Wr(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 uo(t){return null!=t?Sr.compose(t.map(Ar)):null}function ho(t){return null!=t?Sr.composeAsync(t.map(Pr)):null}function fo(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(a.Ob)(e,n.currentValue)}var mo=[sr,Vr,Lr,Kr,no,zr];function po(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 go(t,e){if(!e)return null;Array.isArray(e)||co(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===ur?n=e:(r=e,mo.some((function(t){return r.constructor===t}))?(i&&co(t,"More than one built-in value accessor matches form control with"),i=e):(a&&co(t,"More than one custom value accessor matches form control with"),a=e))})),a||i||n||(co(t,"No valid value accessor for form control with"),null)}function vo(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function yo(t,e,n,i){Object(a.eb)()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(Gr.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function _o(t){var e=ko(t)?t.validators:t;return Array.isArray(e)?uo(e):e||null}function bo(t,e){var n=ko(e)?e.asyncValidators:t;return Array.isArray(n)?ho(n):n||null}function ko(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Co,wo,xo,So,Oo,Do,Eo,Ao,Po,To=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=_o(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=bo(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=Dr(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 Io?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Mo&&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){ko(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}(),Ro=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(i),bo(a,i))))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(i),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _inherits(e,t),_createClass(e,[{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}}]),e}(To),Io=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(n),bo(i,n)))).controls=t,a._initObservables(),a._setUpdateStrategy(n),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return _inherits(e,t),_createClass(e,[{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 Ro?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,"'."))}))}}]),e}(To),Mo=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(n),bo(i,n)))).controls=t,a._initObservables(),a._setUpdateStrategy(n),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return _inherits(e,t),_createClass(e,[{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 Ro?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=!0,e=!1,n=void 0;try{for(var i,a=this.controls[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){if(i.value.enabled)return!1}}catch(r){e=!0,n=r}finally{try{t||null==a.return||a.return()}finally{if(e)throw n}}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}}]),e}(To),jo={provide:dr,useExisting:Object(a.cb)((function(){return Fo}))},Lo=Promise.resolve(null),Fo=((wo=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).submitted=!1,i._directives=[],i.ngSubmit=new a.s,i.form=new Io({},uo(t),ho(n)),i}return _inherits(e,t),_createClass(e,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;Lo.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),ro(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;Lo.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),vo(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;Lo.then((function(){var n=e._findContainer(t.path),i=new Io({});so(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;Lo.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;Lo.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,po(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}}]),e}(dr)).\u0275fac=function(t){return new(t||wo)(a.yc(Cr,10),a.yc(wr,10))},wo.\u0275dir=a.tc({type:wo,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([jo]),a.hc]}),wo),No=((Co=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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 ao(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 uo(this._validators)}},{key:"asyncValidator",get:function(){return ho(this._asyncValidators)}}]),e}(dr)).\u0275fac=function(t){return zo(t||Co)},Co.\u0275dir=a.tc({type:Co,features:[a.hc]}),Co),zo=a.Fc(No),Bo=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(Ur,'\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(Hr,"\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(Hr,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(qr))}}]),t}(),Vo={provide:dr,useExisting:Object(a.cb)((function(){return Uo}))},Uo=((xo=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"_checkParentType",value:function(){this._parent instanceof e||this._parent instanceof Fo||Bo.modelGroupParentException()}}]),e}(No)).\u0275fac=function(t){return new(t||xo)(a.yc(dr,5),a.yc(Cr,10),a.yc(wr,10))},xo.\u0275dir=a.tc({type:xo,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a.jc([Vo]),a.hc]}),xo),Ho={provide:vr,useExisting:Object(a.cb)((function(){return Go}))},qo=Promise.resolve(null),Go=((Oo=function(t){function e(t,n,i,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).control=new Ro,o._registered=!1,o.update=new a.s,o._parent=t,o._rawValidators=n||[],o._rawAsyncValidators=i||[],o.valueAccessor=go(_assertThisInitialized(o),r),o}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),fo(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(){ro(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 Uo)&&this._parent instanceof No?Bo.formGroupNameException():this._parent instanceof Uo||this._parent instanceof Fo||Bo.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Bo.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?ao(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}}]),e}(vr)).\u0275fac=function(t){return new(t||Oo)(a.yc(dr,9),a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10))},Oo.\u0275dir=a.tc({type:Oo,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([Ho]),a.hc,a.ic]}),Oo),Yo=((So=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||So)},So.\u0275dir=a.tc({type:So,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),So),Wo=new a.v("NgModelWithFormControlWarning"),Qo={provide:vr,useExisting:Object(a.cb)((function(){return $o}))},$o=((Do=function(t){function e(t,n,i,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngModelWarningConfig=r,o.update=new a.s,o._ngModelWarningSent=!1,o._rawValidators=t||[],o._rawAsyncValidators=n||[],o.valueAccessor=go(_assertThisInitialized(o),i),o}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(ro(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),fo(t,this.viewModel)&&(yo("formControl",e,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){Gr.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),e}(vr)).\u0275fac=function(t){return new(t||Do)(a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10),a.yc(Wo,8))},Do.\u0275dir=a.tc({type:Do,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.jc([Qo]),a.hc,a.ic]}),Do._ngModelWarningSentOnce=!1,Do),Ko={provide:dr,useExisting:Object(a.cb)((function(){return Xo}))},Xo=((Eo=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new a.s,i}return _inherits(e,t),_createClass(e,[{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 ro(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){vo(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);so(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);so(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,po(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 lo(e)})),e.valueAccessor.registerOnTouched((function(){return lo(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&&ro(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=uo(this._validators);this.form.validator=Sr.compose([this.form.validator,t]);var e=ho(this._asyncValidators);this.form.asyncValidator=Sr.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||Gr.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),e}(dr)).\u0275fac=function(t){return new(t||Eo)(a.yc(Cr,10),a.yc(wr,10))},Eo.\u0275dir=a.tc({type:Eo,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([Ko]),a.hc,a.ic]}),Eo),Zo={provide:dr,useExisting:Object(a.cb)((function(){return Jo}))},Jo=((Ao=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"_checkParentType",value:function(){ns(this._parent)&&Gr.groupParentException()}}]),e}(No)).\u0275fac=function(t){return new(t||Ao)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10))},Ao.\u0275dir=a.tc({type:Ao,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a.jc([Zo]),a.hc]}),Ao),ts={provide:dr,useExisting:Object(a.cb)((function(){return es}))},es=((Po=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){ns(this._parent)&&Gr.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 ao(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return uo(this._validators)}},{key:"asyncValidator",get:function(){return ho(this._asyncValidators)}}]),e}(dr)).\u0275fac=function(t){return new(t||Po)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10))},Po.\u0275dir=a.tc({type:Po,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a.jc([ts]),a.hc]}),Po);function ns(t){return!(t instanceof Jo||t instanceof Xo||t instanceof es)}var is,as,rs,os,ss,ls,cs,us,hs,ds,fs,ms,ps,gs,vs,ys,_s,bs,ks,Cs,ws,xs,Ss,Os,Ds,Es,As,Ps,Ts,Rs,Is,Ms,js,Ls={provide:vr,useExisting:Object(a.cb)((function(){return Fs}))},Fs=((is=function(t){function e(t,n,i,r,o){var s;return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngModelWarningConfig=o,s._added=!1,s.update=new a.s,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=go(_assertThisInitialized(s),r),s}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),fo(t,this.viewModel)&&(yo("formControlName",e,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 Jo)&&this._parent instanceof No?Gr.ngModelGroupException():this._parent instanceof Jo||this._parent instanceof Xo||this._parent instanceof es||Gr.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){Gr.disabledAttrWarning()}},{key:"path",get:function(){return ao(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 uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}}]),e}(vr)).\u0275fac=function(t){return new(t||is)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10),a.yc(Wo,8))},is.\u0275dir=a.tc({type:is,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.jc([Ls]),a.hc,a.ic]}),is._ngModelWarningSentOnce=!1,is),Ns={provide:Cr,useExisting:Object(a.cb)((function(){return Bs})),multi:!0},zs={provide:Cr,useExisting:Object(a.cb)((function(){return Vs})),multi:!0},Bs=((rs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this.required?Sr.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||rs)},rs.\u0275dir=a.tc({type:rs,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([Ns])]}),rs),Vs=((as=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"validate",value:function(t){return this.required?Sr.requiredTrue(t):null}}]),e}(Bs)).\u0275fac=function(t){return Us(t||as)},as.\u0275dir=a.tc({type:as,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([zs]),a.hc]}),as),Us=a.Fc(Vs),Hs={provide:Cr,useExisting:Object(a.cb)((function(){return qs})),multi:!0},qs=((os=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this._enabled?Sr.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||os)},os.\u0275dir=a.tc({type:os,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a.jc([Hs])]}),os),Gs={provide:Cr,useExisting:Object(a.cb)((function(){return Ys})),multi:!0},Ys=((ss=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=Sr.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}()).\u0275fac=function(t){return new(t||ss)},ss.\u0275dir=a.tc({type:ss,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([Gs]),a.ic]}),ss),Ws={provide:Cr,useExisting:Object(a.cb)((function(){return Qs})),multi:!0},Qs=((ls=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=Sr.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}()).\u0275fac=function(t){return new(t||ls)},ls.\u0275dir=a.tc({type:ls,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([Ws]),a.ic]}),ls),$s={provide:Cr,useExisting:Object(a.cb)((function(){return Ks})),multi:!0},Ks=((fs=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=Sr.pattern(this.pattern)}}]),t}()).\u0275fac=function(t){return new(t||fs)},fs.\u0275dir=a.tc({type:fs,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([$s]),a.ic]}),fs),Xs=((ds=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ds}),ds.\u0275inj=a.vc({factory:function(t){return new(t||ds)}}),ds),Zs=((hs=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 Io(n,{asyncValidators:a,updateOn:r,validators:i})}},{key:"control",value:function(t,e,n){return new Ro(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,a=t.map((function(t){return i._createControl(t)}));return new Mo(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 Ro||t instanceof Io||t instanceof Mo?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||hs)},hs.\u0275prov=a.uc({token:hs,factory:hs.\u0275fac}),hs),Js=((us=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:us}),us.\u0275inj=a.vc({factory:function(t){return new(t||us)},providers:[Nr],imports:[Xs]}),us),tl=((cs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:Wo,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}()).\u0275mod=a.wc({type:cs}),cs.\u0275inj=a.vc({factory:function(t){return new(t||cs)},providers:[Zs,Nr],imports:[Xs]}),cs),el=["button"],nl=["*"],il=new a.v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),al={provide:rr,useExisting:Object(a.cb)((function(){return ll})),multi:!0},rl=function t(){_classCallCheck(this,t)},ol=0,sl=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},ll=((ms=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(ol++),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 Qa(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 sl(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=mn(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=mn(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))}}]),t}()).\u0275fac=function(t){return new(t||ms)(a.yc(a.j),a.yc(il,8))},ms.\u0275dir=a.tc({type:ms,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,ul,!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([al,{provide:rl,useExisting:ms}])]}),ms),cl=Li((function t(){_classCallCheck(this,t)})),ul=((gs=function(t){function e(t,n,i,r,o,s){var l;_classCallCheck(this,e),(l=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._changeDetectorRef=n,l._elementRef=i,l._focusMonitor=r,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new a.s;var c=Number(o);return l.tabIndex=c||0===c?c:null,l.buttonToggleGroup=t,l.appearance=s&&s.appearance?s.appearance:"standard",l}return _inherits(e,t),_createClass(e,[{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(ol++),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 sl(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=mn(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=mn(t)}}]),e}(cl)).\u0275fac=function(t){return new(t||gs)(a.yc(ll,8),a.yc(a.j),a.yc(a.q),a.yc(li),a.Nc("tabindex"),a.yc(il,8))},gs.\u0275cmp=a.sc({type:gs,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&a.zd(el,!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:nl,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:[ba],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}),gs),hl=((ps=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ps}),ps.\u0275inj=a.vc({factory:function(t){return new(t||ps)},imports:[[Ii,ka],Ii]}),ps),dl=["*",[["mat-card-footer"]]],fl=["*","mat-card-footer"],ml=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],pl=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],gl=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],vl=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],yl=((Ts=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ts)},Ts.\u0275dir=a.tc({type:Ts,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Ts),_l=((Ps=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ps)},Ps.\u0275dir=a.tc({type:Ps,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Ps),bl=((As=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||As)},As.\u0275dir=a.tc({type:As,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),As),kl=((Es=function t(){_classCallCheck(this,t),this.align="start"}).\u0275fac=function(t){return new(t||Es)},Es.\u0275dir=a.tc({type:Es,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"]}),Es),Cl=((Ds=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ds)},Ds.\u0275dir=a.tc({type:Ds,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),Ds),wl=((Os=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Os)},Os.\u0275dir=a.tc({type:Os,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Os),xl=((Ss=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ss)},Ss.\u0275dir=a.tc({type:Ss,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Ss),Sl=((xs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||xs)},xs.\u0275dir=a.tc({type:xs,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),xs),Ol=((ws=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ws)},ws.\u0275dir=a.tc({type:ws,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),ws),Dl=((Cs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Cs)},Cs.\u0275dir=a.tc({type:Cs,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),Cs),El=((ks=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ks)},ks.\u0275dir=a.tc({type:ks,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),ks),Al=((bs=function t(e){_classCallCheck(this,t),this._animationMode=e}).\u0275fac=function(t){return new(t||bs)(a.yc(Te,8))},bs.\u0275cmp=a.sc({type:bs,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:fl,decls:2,vars:0,template:function(t,e){1&t&&(a.Zc(dl),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}),bs),Pl=((_s=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||_s)},_s.\u0275cmp=a.sc({type:_s,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:pl,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(a.Zc(ml),a.Yc(0),a.Dc(1,"div",0),a.Yc(2,1),a.Cc(),a.Yc(3,2))},encapsulation:2,changeDetection:0}),_s),Tl=((ys=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ys)},ys.\u0275cmp=a.sc({type:ys,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:vl,decls:4,vars:0,template:function(t,e){1&t&&(a.Zc(gl),a.Dc(0,"div"),a.Yc(1),a.Cc(),a.Yc(2,1),a.Yc(3,2))},encapsulation:2,changeDetection:0}),ys),Rl=((vs=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:vs}),vs.\u0275inj=a.vc({factory:function(t){return new(t||vs)},imports:[[Ii],Ii]}),vs),Il=["input"],Ml=function(){return{enterDuration:150}},jl=["*"],Ll=new a.v("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),Fl=new a.v("mat-checkbox-click-action"),Nl=0,zl={provide:rr,useExisting:Object(a.cb)((function(){return Ul})),multi:!0},Bl=function t(){_classCallCheck(this,t)},Vl=Fi(ji(Li(Mi((function t(e){_classCallCheck(this,t),this._elementRef=e}))))),Ul=((Rs=function(t){function e(t,n,i,r,o,s,l,c){var u;return _classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._changeDetectorRef=n,u._focusMonitor=i,u._ngZone=r,u._clickAction=s,u._animationMode=l,u._options=c,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-".concat(++Nl),u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new a.s,u.indeterminateChange=new a.s,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||{},u._options.color&&(u.color=u._options.color),u.tabIndex=parseInt(o)||0,u._focusMonitor.monitor(t,!0).subscribe((function(t){t||Promise.resolve().then((function(){u._onTouched(),n.markForCheck()}))})),u._clickAction=u._clickAction||u._options.clickAction,u}return _inherits(e,t),_createClass(e,[{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 Bl;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=mn(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=mn(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=mn(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),e}(Vl)).\u0275fac=function(t){return new(t||Rs)(a.yc(a.q),a.yc(a.j),a.yc(li),a.yc(a.F),a.Nc("tabindex"),a.yc(Fl,8),a.yc(Te,8),a.yc(Ll,8))},Rs.\u0275cmp=a.sc({type:Rs,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(a.zd(Il,!0),a.zd(ba,!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([zl]),a.hc],ngContentSelectors:jl,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,Ml))}},directives:[ba,Nn],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}),Rs),Hl={provide:Cr,useExisting:Object(a.cb)((function(){return ql})),multi:!0},ql=((Is=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Vs)).\u0275fac=function(t){return Gl(t||Is)},Is.\u0275dir=a.tc({type:Is,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[a.jc([Hl]),a.hc]}),Is),Gl=a.Fc(ql),Yl=((js=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:js}),js.\u0275inj=a.vc({factory:function(t){return new(t||js)}}),js),Wl=((Ms=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ms}),Ms.\u0275inj=a.vc({factory:function(t){return new(t||Ms)},imports:[[ka,Ii,zn,Yl],Ii,Yl]}),Ms);function Ql(t){return new sn.a((function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(Za.a)(n):cn()).subscribe(e)}))}var $l=n("VRyK");function Kl(t,e,n,i){return Object(He.a)(n)&&(i=n,n=void 0),i?Kl(t,e,n).pipe(Object(rn.a)((function(t){return Object(Ka.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,h=e.length;u1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var Xl=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).scheduler=t,i.work=n,i}return _inherits(e,t),_createClass(e,[{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(e.prototype),"requestAsyncId",this).call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,n){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(e.prototype),"recycleAsyncId",this).call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)}}]),e}(We),Zl=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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(e.prototype),"requestAsyncId",this).call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=ec(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,n){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(e.prototype),"recycleAsyncId",this).call(this,t,n,i);0===t.actions.length&&(nc(n),t.scheduled=void 0)}}]),e}(We),ac=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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 fc(){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 dc(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=dc(t)?t:+t-n.now();return n.schedule(mc,a,{index:0,period:i,subscriber:e})}))}function mc(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 pc(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return e=function(){return fc(t,n)},function(t){return t.lift(new uc(e))}}function gc(t){return function(e){return e.lift(new vc(t))}}var vc=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var n=new yc(t),i=Object(cc.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),yc=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).seenValue=!1,n}return _inherits(e,t),_createClass(e,[{key:"notifyNext",value:function(t,e,n,i,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),e}(lc.a),_c=n("51Dv");function bc(t,e){return"function"==typeof e?function(n){return n.pipe(bc((function(n,i){return Object(Za.a)(t(n,i)).pipe(Object(rn.a)((function(t,a){return e(n,t,i,a)})))})))}:function(e){return e.lift(new kc(t))}}var kc=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Cc(t,this.project))}}]),t}(),Cc=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).project=n,i.index=0,i}return _inherits(e,t),_createClass(e,[{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 _c.a(this,void 0,void 0);this.destination.add(a),this.innerSubscription=Object(cc.a)(this,t,e,n,a)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(e.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(e.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,n,i,a){this.destination.next(e)}}]),e}(lc.a),wc=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).scheduler=t,i.work=n,i}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?_get(_getPrototypeOf(e.prototype),"schedule",this).call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,n){return n>0||this.closed?_get(_getPrototypeOf(e.prototype),"execute",this).call(this,t,n):this._execute(t,n)}},{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(e.prototype),"requestAsyncId",this).call(this,t,n,i):t.flush(this)}}]),e}(We),xc=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}($e))(wc);function Sc(t,e){return new sn.a(e?function(n){return e.schedule(Oc,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Oc(t){var e=t.error;t.subscriber.error(e)}var Dc,Ec,Ac,Pc,Tc,Rc=((Dc=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 ze(this.value);case"E":return Sc(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 Dc("C"),Dc.undefinedValueNotification=new Dc("N",void 0),Dc),Ic=function(t){function e(t,n){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).scheduler=n,i.delay=a,i}return _inherits(e,t),_createClass(e,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Mc(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(Rc.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(Rc.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Rc.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),e}(Ve.a),Mc=function t(e,n){_classCallCheck(this,t),this.notification=e,this.destination=n},jc=n("9ppp"),Lc=n("Ylt2"),Fc=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).scheduler=a,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _inherits(e,t),_createClass(e,[{key:"nextInfiniteTimeWindow",value:function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),_get(_getPrototypeOf(e.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new Nc(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(e.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 jc.a;if(this.isStopped||this.hasError?e=je.a.EMPTY:(this.observers.push(t),e=new Lc.a(this,t)),a&&t.add(t=new Ic(t,a)),n)for(var o=0;oe&&(r=Math.max(r,a-e)),r>0&&i.splice(0,r),i}}]),e}(Me.a),Nc=function t(e,n){_classCallCheck(this,t),this.time=e,this.value=n},zc=((Tc=function(){function t(e,n){_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._scrolled=new Me.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}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(pc(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):ze()}},{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:"_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 Kl(window.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||Tc)(a.Mc(a.F),a.Mc(Sn))},Tc.\u0275prov=Object(a.uc)({factory:function(){return new Tc(Object(a.Mc)(a.F),Object(a.Mc)(Sn))},token:Tc,providedIn:"root"}),Tc),Bc=((Pc=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 Kl(r.elementRef.nativeElement,"scroll").pipe(gc(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!=Pn()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Pn()?t.left=t.right:1==Pn()&&(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==Pn()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Pn()?"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||Pc)(a.yc(a.q),a.yc(zc),a.yc(a.F),a.yc(yi,8))},Pc.\u0275dir=a.tc({type:Pc,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Pc),Vc=((Ac=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._platform=e,n.runOutsideAngular((function(){i._change=e.isBrowser?Object($l.a)(Kl(window,"resize"),Kl(window,"orientationchange")):ze(),i._invalidateCache=i.change().subscribe((function(){return i._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=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(pc(t)):this._change}},{key:"_updateViewportSize",value:function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||Ac)(a.Mc(Sn),a.Mc(a.F))},Ac.\u0275prov=Object(a.uc)({factory:function(){return new Ac(Object(a.Mc)(Sn),Object(a.Mc)(a.F))},token:Ac,providedIn:"root"}),Ac),Uc=((Ec=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ec}),Ec.\u0275inj=a.vc({factory:function(t){return new(t||Ec)},imports:[[bi,On],bi]}),Ec);function Hc(){throw Error("Host already has a portal attached")}var qc,Gc,Yc=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()&&Hc(),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}(),Wc=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).component=t,r.viewContainerRef=n,r.injector=i,r.componentFactoryResolver=a,r}return _inherits(e,t),e}(Yc),Qc=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).templateRef=t,a.viewContainerRef=n,a.context=i,a}return _inherits(e,t),_createClass(e,[{key:"attach",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=n,_get(_getPrototypeOf(e.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(e.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),e}(Yc),$c=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).element=t instanceof a.q?t.nativeElement:t,n}return _inherits(e,t),e}(Yc),Kc=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()&&Hc(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof Wc?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Qc?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof $c?(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}(),Xc=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).outletElement=t,o._componentFactoryResolver=n,o._appRef=i,o._defaultInjector=a,o.attachDomPortal=function(t){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=t.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=o._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),o.outletElement.appendChild(n),_get(_getPrototypeOf(e.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},o._document=r,o}return _inherits(e,t),_createClass(e,[{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(e.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]}}]),e}(Kc),Zc=((Gc=function(t){function e(t,n,i){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._componentFactoryResolver=t,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new a.s,r.attachDomPortal=function(t){if(!r._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=t.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=r._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(r)),n.parentNode.insertBefore(i,n),r._getRootNode().appendChild(n),_get(_getPrototypeOf(e.prototype),"setDisposeFn",_assertThisInitialized(r)).call(_assertThisInitialized(r),(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},r._document=i,r}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(e.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=n.createComponent(i,n.length,t.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(e.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 n=this;t.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(e.prototype),"setDisposeFn",this).call(this,(function(){return n._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(e.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(e.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),e}(Kc)).\u0275fac=function(t){return new(t||Gc)(a.yc(a.n),a.yc(a.X),a.yc(_e.e))},Gc.\u0275dir=a.tc({type:Gc,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.hc]}),Gc),Jc=((qc=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:qc}),qc.\u0275inj=a.vc({factory:function(t){return new(t||qc)}}),qc),tu=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}(),eu=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 nu(){return Error("Scroll strategy has already been attached.")}var iu=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 nu();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}(),au=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function ru(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function ou(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var su,lu=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 nu();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;ru(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}(),cu=((su=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 au},this.close=function(t){return new iu(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new eu(r._viewportRuler,r._document)},this.reposition=function(t){return new lu(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=a}).\u0275fac=function(t){return new(t||su)(a.Mc(zc),a.Mc(Vc),a.Mc(a.F),a.Mc(_e.e))},su.\u0275prov=Object(a.uc)({factory:function(){return new su(Object(a.Mc)(zc),Object(a.Mc)(Vc),Object(a.Mc)(a.F),Object(a.Mc)(_e.e))},token:su,providedIn:"root"}),su),uu=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new au,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||pu)(a.Mc(_e.e))},pu.\u0275prov=Object(a.uc)({factory:function(){return new pu(Object(a.Mc)(_e.e))},token:pu,providedIn:"root"}),pu),yu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),_u=((gu=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||yu)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;np&&(p=C,m=k)}}catch(w){v=!0,y=w}finally{try{g||null==b.return||b.return()}finally{if(v)throw y}}return this._isPushed=!1,void this._applyPosition(m.position,m.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&&wu(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),h=this._subtractOverflows(e.height,l,c),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===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=xu(this._overlayRef.getConfig().minHeight),o=xu(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.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/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 d=Math.min(l.right-t.x+l.left,t.x),f=this._lastBoundingBoxSize.width;r=2*d,o=t.x-d,r>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/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,wu(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){wu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){wu(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();wu(n,this._getExactOverlayY(e,t,o)),wu(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="")),wu(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:ou(t,n),isOriginOutsideView:ru(t,n),isOverlayClipped:ou(e,n),isOverlayOutsideView:ru(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}(),Ru=((Ou=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 Tu}},{key:"connectedTo",value:function(t,e,n){return new Pu(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Cu(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||Ou)(a.Mc(Vc),a.Mc(_e.e),a.Mc(Sn),a.Mc(_u))},Ou.\u0275prov=Object(a.uc)({factory:function(){return new Ou(Object(a.Mc)(Vc),Object(a.Mc)(_e.e),Object(a.Mc)(Sn),Object(a.Mc)(_u))},token:Ou,providedIn:"root"}),Ou),Iu=0,Mu=((Su=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 uu(t);return a.direction=a.direction||this._directionality.value,new bu(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(Iu++),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 Xc(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}()).\u0275fac=function(t){return new(t||Su)(a.Mc(cu),a.Mc(_u),a.Mc(a.n),a.Mc(Ru),a.Mc(vu),a.Mc(a.w),a.Mc(a.F),a.Mc(_e.e),a.Mc(yi),a.Mc(_e.n,8))},Su.\u0275prov=a.uc({token:Su,factory:Su.\u0275fac}),Su),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"}],Lu=new a.v("cdk-connected-overlay-scroll-strategy"),Fu=((Eu=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||Eu)(a.yc(a.q))},Eu.\u0275dir=a.tc({type:Eu,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Eu),Nu=((Du=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 Qc(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=ju),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 uu({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=mn(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=mn(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=mn(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=mn(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=mn(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||Du)(a.yc(Mu),a.yc(a.U),a.yc(a.X),a.yc(Lu),a.yc(yi,8))},Du.\u0275dir=a.tc({type:Du,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]}),Du),zu={provide:Lu,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Bu=((Au=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Au}),Au.\u0275inj=a.vc({factory:function(t){return new(t||Au)},providers:[Mu,zu],imports:[[bi,Jc,Uc],Uc]}),Au);function Vu(t){var e,n=arguments.length>1&&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 Uu(i,n))}}var Uu=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 Hu(t,this.delay,this.scheduler))}}]),t}(),Hu=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).delay=n,a.scheduler=i,a.queue=[],a.active=!1,a.errored=!1,a}return _inherits(e,t),_createClass(e,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(e.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 qu(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Rc.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Rc.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}}]),e}(Ve.a),qu=function t(e,n){_classCallCheck(this,t),this.time=e,this.notification=n},Gu=["underline"],Yu=["connectionContainer"],Wu=["inputContainer"],Qu=["label"];function $u(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 Ku(t,e){1&t&&(a.Dc(0,"div",19),a.Yc(1,1),a.Cc())}function Xu(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 Zu(t,e){1&t&&a.Yc(0,3,["*ngSwitchCase","true"])}function Ju(t,e){1&t&&(a.Dc(0,"span",23),a.vd(1," *"),a.Cc())}function th(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,Xu,4,1,"ng-container",12),a.td(3,Zu,1,0,void 0,12),a.td(4,Ju,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 eh(t,e){1&t&&(a.Dc(0,"div",24),a.Yc(1,4),a.Cc())}function nh(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 ih(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 ah(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 rh(t,e){if(1&t&&(a.Dc(0,"div",28),a.td(1,ah,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 oh,sh,lh=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ch=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],uh=0,hh=((oh=function t(){_classCallCheck(this,t),this.id="mat-error-".concat(uh++)}).\u0275fac=function(t){return new(t||oh)},oh.\u0275dir=a.tc({type:oh,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"}}),oh),dh={transitionMessages:o("transitionMessages",[h("enter",u({opacity:1,transform:"translateY(0%)"})),d("void => enter",[u({opacity:0,transform:"translateY(-100%)"}),s("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fh=((sh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||sh)},sh.\u0275dir=a.tc({type:sh}),sh);function mh(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var ph,gh,vh,yh,_h,bh,kh,Ch=0,wh=((_h=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-".concat(Ch++)}).\u0275fac=function(t){return new(t||_h)},_h.\u0275dir=a.tc({type:_h,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"}}),_h),xh=((yh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||yh)},yh.\u0275dir=a.tc({type:yh,selectors:[["mat-label"]]}),yh),Sh=((vh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||vh)},vh.\u0275dir=a.tc({type:vh,selectors:[["mat-placeholder"]]}),vh),Oh=((gh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||gh)},gh.\u0275dir=a.tc({type:gh,selectors:[["","matPrefix",""]]}),gh),Dh=((ph=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ph)},ph.\u0275dir=a.tc({type:ph,selectors:[["","matSuffix",""]]}),ph),Eh=0,Ah=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Ph=new a.v("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Th=((kh=function(t){function e(t,n,i,a,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,c._changeDetectorRef=n,c._dir=a,c._defaults=r,c._platform=o,c._ngZone=s,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new Me.a,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-".concat(Eh++),c._labelId="mat-form-field-label-".concat(Eh++),c._labelOptions=i||{},c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=r&&r.appearance?r.appearance:"legacy",c._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker,c}return _inherits(e,t),_createClass(e,[{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(Si(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(gc(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(gc(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object($l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Si(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Si(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(gc(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._showAlwaysAnimate=!0,Kl(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 mh("start");t=i}else if("end"===i.align){if(e)throw mh("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=this._getStartEnd(o),l=this._getStartEnd(t.children[0].getBoundingClientRect()),c=0,u=!0,h=!1,d=void 0;try{for(var f,m=t.children[Symbol.iterator]();!(u=(f=m.next()).done);u=!0)c+=f.value.offsetWidth}catch(v){h=!0,d=v}finally{try{u||null==m.return||m.return()}finally{if(h)throw d}}e=l-s-5,n=c>0?.75*c+10:0}for(var p=0;p0&&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=Ra(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=Ia(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()})),Vu(0));return Object($l.a)(e,n).pipe(bc((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 Qc(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 uu({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:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=mn(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return Object($l.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}))):ze()).pipe(Object(rn.a)((function(t){return t instanceof Aa?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}()).\u0275fac=function(t){return new(t||Nh)(a.yc(a.q),a.yc(Mu),a.yc(a.X),a.yc(a.F),a.yc(a.j),a.yc(Yh),a.yc(yi,8),a.yc(Th,9),a.yc(_e.e,8),a.yc(Vc))},Nh.\u0275dir=a.tc({type:Nh,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: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([Qh]),a.ic]}),Nh),Kh=((Fh=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Fh}),Fh.\u0275inj=a.vc({factory:function(t){return new(t||Fh)},providers:[Wh],imports:[[za,Bu,Ii,_e.c],za,Ii]}),Fh);function Xh(t,e){}var Zh=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},Jh={dialogContainer:o("dialogContainer",[h("void, exit",u({opacity:0,transform:"scale(0.7)"})),h("enter",u({transform:"none"})),d("* => enter",s("150ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"none",opacity:1}))),d("* => void, * => exit",s("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",u({opacity:0})))])};function td(){throw Error("Attempting to attach dialog content after content is already attached")}var ed,nd,id,ad,rd,od,sd=((ed=function(t){function e(t,n,i,r,o){var s;return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,s._focusTrapFactory=n,s._changeDetectorRef=i,s._config=o,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new a.s,s.attachDomPortal=function(t){return s._portalOutlet.hasAttached()&&td(),s._savePreviouslyFocusedElement(),s._portalOutlet.attachDomPortal(t)},s._ariaLabelledBy=o.ariaLabelledBy||null,s._document=r,s}return _inherits(e,t),_createClass(e,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&td(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&td(),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()}}]),e}(Kc)).\u0275fac=function(t){return new(t||ed)(a.yc(a.q),a.yc(ei),a.yc(a.j),a.yc(_e.e,8),a.yc(Zh))},ed.\u0275cmp=a.sc({type:ed,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&a.rd(Zc,!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,Xh,0,0,"ng-template",0)},directives:[Zc],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:[Jh.dialogContainer]}}),ed),ld=0,cd=function(){function t(e,n){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(ld++);_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}(),ud=new a.v("MatDialogData"),hd=new a.v("mat-dialog-default-options"),dd=new a.v("mat-dialog-scroll-strategy"),fd={provide:dd,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},md=((od=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=Ql((function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(Si(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 Zh)).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 uu({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:Zh,useValue:e}]}),i=new Wc(sd,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new cd(n,e,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof a.U)e.attachTemplatePortal(new Qc(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),s=e.attachComponentPortal(new Wc(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:sd,useValue:n},{provide:ud,useValue:t.data},{provide:cd,useValue:e}];return!t.direction||i&&i.get(yi,null)||r.push({provide:yi,useValue:{value:t.direction,change:ze()}}),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||od)(a.Mc(Mu),a.Mc(a.w),a.Mc(_e.n,8),a.Mc(hd,8),a.Mc(dd),a.Mc(od,12),a.Mc(_u))},od.\u0275prov=a.uc({token:od,factory:od.\u0275fac}),od),pd=0,gd=((rd=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=bd(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||rd)(a.yc(cd,8),a.yc(a.q),a.yc(md))},rd.\u0275dir=a.tc({type:rd,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]}),rd),vd=((ad=function(){function t(e,n,i){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(pd++)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=bd(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||ad)(a.yc(cd,8),a.yc(a.q),a.yc(md))},ad.\u0275dir=a.tc({type:ad,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"]}),ad),yd=((id=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||id)},id.\u0275dir=a.tc({type:id,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),id),_d=((nd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||nd)},nd.\u0275dir=a.tc({type:nd,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),nd);function bd(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 kd,Cd,wd,xd,Sd=((xd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:xd}),xd.\u0275inj=a.vc({factory:function(t){return new(t||xd)},providers:[md,fd],imports:[[Bu,Jc,Ii],Ii]}),xd),Od=0,Dd=((wd=function(){function t(){_classCallCheck(this,t),this._stateChanges=new Me.a,this._openCloseAllActions=new Me.a,this.id="cdk-accordion-".concat(Od++),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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||wd)},wd.\u0275dir=a.tc({type:wd,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a.ic]}),wd),Ed=0,Ad=((Cd=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(Ed++),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=mn(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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||Cd)(a.yc(Dd,12),a.yc(a.j),a.yc($a))},Cd.\u0275dir=a.tc({type:Cd,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:Dd,useValue:void 0}])]}),Cd),Pd=((kd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:kd}),kd.\u0275inj=a.vc({factory:function(t){return new(t||kd)}}),kd),Td=["body"];function Rd(t,e){}var Id=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Md=["mat-expansion-panel-header","*","mat-action-row"],jd=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Ld=function(t,e){return{value:t,params:e}};function Fd(t,e){if(1&t&&a.zc(0,"span",2),2&t){var n=a.Uc();a.ad("@indicatorRotate",n._getExpandedState())}}var Nd,zd,Bd,Vd,Ud,Hd,qd,Gd,Yd,Wd,Qd,$d,Kd,Xd=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Zd=["mat-panel-title","mat-panel-description","*"],Jd=new a.v("MAT_ACCORDION"),tf={indicatorRotate:o("indicatorRotate",[h("collapsed, void",u({transform:"rotate(0deg)"})),h("expanded",u({transform:"rotate(180deg)"})),d("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[h("collapsed, void",u({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),h("expanded",u({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),d("expanded <=> collapsed, void => collapsed",l([m("@indicatorRotate",f(),{optional:!0}),s("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[h("collapsed, void",u({height:"0px",visibility:"hidden"})),h("expanded",u({height:"*",visibility:"visible"})),d("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},ef=((Nd=function t(e){_classCallCheck(this,t),this._template=e}).\u0275fac=function(t){return new(t||Nd)(a.yc(a.U))},Nd.\u0275dir=a.tc({type:Nd,selectors:[["ng-template","matExpansionPanelContent",""]]}),Nd),nf=0,af=new a.v("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),rf=((qd=function(t){function e(t,n,i,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i)))._viewContainerRef=r,c._animationMode=s,c._hideToggle=!1,c.afterExpand=new a.s,c.afterCollapse=new a.s,c._inputChanges=new Me.a,c._headerId="mat-expansion-panel-header-".concat(nf++),c._bodyAnimationDone=new Me.a,c.accordion=t,c._document=o,c._bodyAnimationDone.pipe(rc((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?c.afterExpand.emit():"collapsed"===t.toState&&c.afterCollapse.emit())})),l&&(c.hideToggle=l.hideToggle),c}return _inherits(e,t),_createClass(e,[{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(Si(null),en((function(){return t.expanded&&!t._portal})),un(1)).subscribe((function(){t._portal=new Qc(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(e.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=mn(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),e}(Ad)).\u0275fac=function(t){return new(t||qd)(a.yc(Jd,12),a.yc(a.j),a.yc($a),a.yc(a.X),a.yc(_e.e),a.yc(Te,8),a.yc(af,8))},qd.\u0275cmp=a.sc({type:qd,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,ef,!0),2&t&&a.gd(i=a.Rc())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&a.zd(Td,!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:Jd,useValue:void 0}]),a.hc,a.ic],ngContentSelectors:Md,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(Id),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,Rd,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:[Zc],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:[tf.bodyExpansion]},changeDetection:0}),qd),of=((Hd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Hd)},Hd.\u0275dir=a.tc({type:Hd,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),Hd),sf=((Ud=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($l.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||Ud)(a.yc(rf,1),a.yc(a.q),a.yc(li),a.yc(a.j),a.yc(af,8))},Ud.\u0275cmp=a.sc({type:Ud,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,Ld,e._getExpandedState(),a.ed(13,jd,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:Zd,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(Xd),a.Dc(0,"span",0),a.Yc(1),a.Yc(2,1),a.Yc(3,2),a.Cc(),a.td(4,Fd,1,1,"span",1)),2&t&&(a.kc(4),a.ad("ngIf",e._showToggle()))},directives:[_e.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:[tf.indicatorRotate,tf.expansionHeaderHeight]},changeDetection:0}),Ud),lf=((Vd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Vd)},Vd.\u0275dir=a.tc({type:Vd,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Vd),cf=((Bd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Bd)},Bd.\u0275dir=a.tc({type:Bd,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Bd),uf=((zd=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._ownHeaders=new a.K,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe(Si(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=mn(t)}}]),e}(Dd)).\u0275fac=function(t){return hf(t||zd)},zd.\u0275dir=a.tc({type:zd,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,sf,!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:Jd,useExisting:zd}]),a.hc]}),zd),hf=a.Fc(uf),df=((Gd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Gd}),Gd.\u0275inj=a.vc({factory:function(t){return new(t||Gd)},imports:[[_e.c,Pd,Jc]]}),Gd),ff=["*"],mf=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],pf=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],gf=new a.v("MAT_GRID_LIST"),vf=((Kd=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||Kd)(a.yc(a.q),a.yc(gf,8))},Kd.\u0275cmp=a.sc({type:Kd,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:ff,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}),Kd),yf=(($d=function(){function t(e){_classCallCheck(this,t),this._element=e}return _createClass(t,[{key:"ngAfterContentInit",value:function(){ra(this._lines,this._element)}}]),t}()).\u0275fac=function(t){return new(t||$d)(a.yc(a.q))},$d.\u0275cmp=a.sc({type:$d,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,aa,!0),2&t&&a.gd(i=a.Rc())&&(e._lines=i)},ngContentSelectors:pf,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(a.Zc(mf),a.Yc(0),a.Dc(1,"div",0),a.Yc(2,1),a.Cc(),a.Yc(3,2))},encapsulation:2,changeDetection:0}),$d),_f=((Qd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Qd)},Qd.\u0275dir=a.tc({type:Qd,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),Qd),bf=((Wd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Wd)},Wd.\u0275dir=a.tc({type:Wd,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),Wd),kf=((Yd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Yd)},Yd.\u0275dir=a.tc({type:Yd,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),Yd),Cf=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 wf(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}(),wf=function t(e,n){_classCallCheck(this,t),this.row=e,this.col=n},xf=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Sf=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=Pf(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":Af("(".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",Af(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}(),Of=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).fixedRowHeight=t,n}return _inherits(e,t),_createClass(e,[{key:"init",value:function(t,n,i,a){if(_get(_getPrototypeOf(e.prototype),"init",this).call(this,t,n,i,a),this.fixedRowHeight=Pf(this.fixedRowHeight),!xf.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",Af(this.getTileSize(this.fixedRowHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",Af("".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)}))}}]),e}(Sf),Df=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parseRatio(t),n}return _inherits(e,t),_createClass(e,[{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",Af(this.getTileSize(this.baseTileHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",Af("".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])}}]),e}(Sf),Ef=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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",Af(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)}))}}]),e}(Sf);function Af(t){return"calc(".concat(t,")")}function Pf(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var Tf,Rf,If=((Rf=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 Ef:t&&t.indexOf(":")>-1?new Df(t):new Of(t)}},{key:"_layoutTiles",value:function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new Cf);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||Rf)(a.yc(a.q),a.yc(yi,8))},Rf.\u0275cmp=a.sc({type:Rf,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,vf,!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:gf,useExisting:Rf}])],ngContentSelectors:ff,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}),Rf),Mf=((Tf=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Tf}),Tf.\u0275inj=a.vc({factory:function(t){return new(t||Tf)},imports:[[ma,Ii],ma,Ii]}),Tf);function jf(t){return function(e){var n=new Lf(t),i=e.lift(n);return n.caught=i}}var Lf=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ff(t,this.selector,this.caught))}}]),t}(),Ff=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).selector=n,a.caught=i,a}return _inherits(e,t),_createClass(e,[{key:"error",value:function(t){if(!this.isStopped){var n;try{n=this.selector(t,this.caught)}catch(a){return void _get(_getPrototypeOf(e.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var i=new _c.a(this,void 0,void 0);this.add(i),Object(cc.a)(this,n,void 0,void 0,i)}}}]),e}(lc.a);function Nf(t){return function(e){return e.lift(new zf(t))}}var zf=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Bf(t,this.callback))}}]),t}(),Bf=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).add(new je.a(n)),i}return _inherits(e,t),e}(Ve.a),Vf=n("w1tV"),Uf=n("5+tZ");function Hf(t,e){return Object(Uf.a)(t,e,1)}var qf=function t(){_classCallCheck(this,t)},Gf=function t(){_classCallCheck(this,t)},Yf=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}(),Wf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return Qf(t)}},{key:"encodeValue",value:function(t){return Qf(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Qf(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 $f=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 Wf,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 Kf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Xf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Zf(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Jf=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 Yf),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}(),tm=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}(),em=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 Yf,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},nm=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).type=tm.ResponseHeader,t}return _inherits(e,t),_createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({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})}}]),e}(em),im=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).type=tm.Response,t.body=void 0!==n.body?n.body:null,t}return _inherits(e,t),_createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({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})}}]),e}(em),am=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(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 _inherits(e,t),e}(em);function rm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var om,sm,lm,cm,um,hm,dm,fm,mm,pm=((om=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 Jf)n=t;else{var r=void 0;r=a.headers instanceof Yf?a.headers:new Yf(a.headers);var o=void 0;a.params&&(o=a.params instanceof $f?a.params:new $f({fromObject:a.params})),n=new Jf(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=ze(n).pipe(Hf((function(t){return i.handler.handle(t)})));if(t instanceof Jf||"events"===a.observe)return s;var l=s.pipe(en((function(t){return t instanceof im})));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 $f).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,rm(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,rm(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,rm(n,e))}}]),t}()).\u0275fac=function(t){return new(t||om)(a.Mc(qf))},om.\u0275prov=a.uc({token:om,factory:om.\u0275fac}),om),gm=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}(),vm=new a.v("HTTP_INTERCEPTORS"),ym=((sm=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||sm)},sm.\u0275prov=a.uc({token:sm,factory:sm.\u0275fac}),sm),_m=/^\)\]\}',?\n/,bm=function t(){_classCallCheck(this,t)},km=((cm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||cm)},cm.\u0275prov=a.uc({token:cm,factory:cm.\u0275fac}),cm),Cm=((lm=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 Yf(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 nm({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 h=c;c=c.replace(_m,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,u&&(u=!1,c={error:d,text:c})}}u?(n.next(new im({body:c,headers:a,status:r,statusText:o,url:s||void 0})),n.complete()):n.error(new am({error:c,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(t){var e=l().url,a=new am({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(a)},h=!1,d=function(e){h||(n.next(l()),h=!0);var a={type:tm.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(a.total=e.total),"text"===t.responseType&&i.responseText&&(a.partialText=i.responseText),n.next(a)},f=function(t){var e={type:tm.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",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:tm.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("load",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||lm)(a.Mc(bm))},lm.\u0275prov=a.uc({token:lm,factory:lm.\u0275fac}),lm),wm=new a.v("XSRF_COOKIE_NAME"),xm=new a.v("XSRF_HEADER_NAME"),Sm=function t(){_classCallCheck(this,t)},Om=((mm=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(_e.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||mm)(a.Mc(_e.e),a.Mc(a.I),a.Mc(wm))},mm.\u0275prov=a.uc({token:mm,factory:mm.\u0275fac}),mm),Dm=((fm=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||fm)(a.Mc(Sm),a.Mc(xm))},fm.\u0275prov=a.uc({token:fm,factory:fm.\u0275fac}),fm),Em=((dm=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(vm,[]);this.chain=e.reduceRight((function(t,e){return new gm(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||dm)(a.Mc(Gf),a.Mc(a.w))},dm.\u0275prov=a.uc({token:dm,factory:dm.\u0275fac}),dm),Am=((hm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Dm,useClass:ym}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:wm,useValue:e.cookieName}:[],e.headerName?{provide:xm,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=a.wc({type:hm}),hm.\u0275inj=a.vc({factory:function(t){return new(t||hm)},providers:[Dm,{provide:vm,useExisting:Dm,multi:!0},{provide:Sm,useClass:Om},{provide:wm,useValue:"XSRF-TOKEN"},{provide:xm,useValue:"X-XSRF-TOKEN"}]}),hm),Pm=((um=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:um}),um.\u0275inj=a.vc({factory:function(t){return new(t||um)},providers:[pm,{provide:qf,useClass:Em},Cm,{provide:Gf,useExisting:Cm},km,{provide:bm,useExisting:km}],imports:[[Am.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),um),Tm=["*"];function Rm(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Im(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 Mm(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var jm,Lm=function t(e,n){_classCallCheck(this,t),this.options=n,e.nodeName?this.svgElement=e:this.url=e},Fm=((jm=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 Lm(n,i))}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,n,i){var r=this._sanitizer.sanitize(a.P.HTML,n);if(!r)throw Mm(n);var o=this._createSvgElementForSingleIcon(r,i);return this._addSvgIconConfig(t,e,new Lm(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 Lm(e,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,n){var i=this._sanitizer.sanitize(a.P.HTML,e);if(!i)throw Mm(e);var r=this._svgElementFromString(i);return this._addSvgIconSetConfig(t,new Lm(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 Im(t);var i=this._cachedIconsByUrl.get(n);return i?ze(Nm(i)):this._loadSvgIconFromConfig(new Lm(t)).pipe(qe((function(t){return e._cachedIconsByUrl.set(n,t)})),Object(rn.a)((function(t){return Nm(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=zm(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):Sc(Rm(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?ze(Nm(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(qe((function(e){return t.svgElement=e})),Object(rn.a)((function(t){return Nm(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,i=this._extractIconWithNameFromAnySet(t,e);return i?ze(i):Ja(e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(jf((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),ze(null)})))}))).pipe(Object(rn.a)((function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw Rm(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?ze(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:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,n=t.selectionEnd;this._destroyed.isStopped||document.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=mn(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}()).\u0275fac=function(t){return new(t||qm)(a.yc(a.q),a.yc(Sn),a.yc(a.F))},qm.\u0275dir=a.tc({type:qm,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"]}),qm),lp=((Hm=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Hm}),Hm.\u0275inj=a.vc({factory:function(t){return new(t||Hm)},imports:[[On]]}),Hm),cp=((Um=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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}}]),e}(sp)).\u0275fac=function(t){return up(t||Um)},Um.\u0275dir=a.tc({type:Um,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]}),Um),up=a.Fc(cp),hp=new a.v("MAT_INPUT_VALUE_ACCESSOR"),dp=["button","checkbox","file","hidden","image","radio","range","reset","submit"],fp=0,mp=Ni((function t(e,n,i,a){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=a})),pp=((Km=function(t){function e(t,n,i,a,r,o,s,l,c){var u;_classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,o,a,r,i)))._elementRef=t,u._platform=n,u.ngControl=i,u._autofillMonitor=l,u._uid="mat-input-".concat(fp++),u._isServer=!1,u._isNativeSelect=!1,u.focused=!1,u.stateChanges=new Me.a,u.controlType="mat-input",u.autofilled=!1,u._disabled=!1,u._required=!1,u._type="text",u._readonly=!1,u._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return En().has(t)}));var h=u._elementRef.nativeElement;return u._inputValueAccessor=s||h,u._previousNativeValue=u.value,u.id=u.id,n.IOS&&c.runOutsideAngular((function(){t.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),u._isServer=!u._platform.isBrowser,u._isNativeSelect="select"===h.nodeName.toLowerCase(),u._isNativeSelect&&(u.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),u}return _inherits(e,t),_createClass(e,[{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(dp.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=mn(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=mn(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=mn(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}}]),e}(mp)).\u0275fac=function(t){return new(t||Km)(a.yc(a.q),a.yc(Sn),a.yc(vr,10),a.yc(Fo,8),a.yc(Xo,8),a.yc(ia),a.yc(hp,10),a.yc(rp),a.yc(a.F))},Km.\u0275dir=a.tc({type:Km,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:fh,useExisting:Km}]),a.hc,a.ic]}),Km),gp=(($m=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:$m}),$m.\u0275inj=a.vc({factory:function(t){return new(t||$m)},providers:[ia],imports:[[lp,Rh],lp,Rh]}),$m),vp=((Qm=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=mn(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||Qm)},Qm.\u0275cmp=a.sc({type:Qm,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}),Qm),yp=((Wm=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Wm}),Wm.\u0275inj=a.vc({factory:function(t){return new(t||Wm)},imports:[[Ii],Ii]}),Wm),_p=["*"],bp=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],kp=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Cp=["text"];function wp(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 xp,Sp,Op,Dp,Ep,Ap,Pp,Tp,Rp,Ip=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Mp=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],jp=Mi(Li((function t(){_classCallCheck(this,t)}))),Lp=Li((function t(){_classCallCheck(this,t)})),Fp=((xp=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._stateChanges=new Me.a,t}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(jp)).\u0275fac=function(t){return Np(t||xp)},xp.\u0275cmp=a.sc({type:xp,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:_p,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-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}@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}),xp),Np=a.Fc(Fp),zp=((Ap=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,n._stateChanges=new Me.a,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return _inherits(e,t),_createClass(e,[{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()}}]),e}(jp)).\u0275fac=function(t){return new(t||Ap)(a.yc(a.q))},Ap.\u0275cmp=a.sc({type:Ap,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:_p,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-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}@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}),Ap),Bp=((Ep=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ep)},Ep.\u0275dir=a.tc({type:Ep,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Ep),Vp=((Dp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Dp)},Dp.\u0275dir=a.tc({type:Dp,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Dp),Up=((Op=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Op)},Op.\u0275dir=a.tc({type:Op,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Op),Hp=((Sp=function(t){function e(t,n,i,a){var r;_classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,r._isInteractiveList=!1,r._destroyed=new Me.a,r._disabled=!1,r._isInteractiveList=!!(i||a&&"action-list"===a._getListType()),r._list=i||a;var o=r._getHostElement();return"button"!==o.nodeName.toLowerCase()||o.hasAttribute("type")||o.setAttribute("type","button"),r._list&&r._list._stateChanges.pipe(gc(r._destroyed)).subscribe((function(){n.markForCheck()})),r}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){ra(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=mn(t)}}]),e}(Lp)).\u0275fac=function(t){return new(t||Sp)(a.yc(a.q),a.yc(a.j),a.yc(Fp,8),a.yc(zp,8))},Sp.\u0275cmp=a.sc({type:Sp,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Bp,!0),a.qc(n,Vp,!0),a.qc(n,aa,!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:kp,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(bp),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:[ba],encapsulation:2,changeDetection:0}),Sp),qp=Li((function t(){_classCallCheck(this,t)})),Gp=Li((function t(){_classCallCheck(this,t)})),Yp={provide:rr,useExisting:Object(a.cb)((function(){return $p})),multi:!0},Wp=function t(e,n){_classCallCheck(this,t),this.source=e,this.option=n},Qp=((Rp=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,a._changeDetector=n,a.selectionList=i,a._selected=!1,a._disabled=!1,a._hasFocus=!1,a.checkboxPosition="after",a._inputsInitialized=!1,a}return _inherits(e,t),_createClass(e,[{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(){ra(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=mn(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=mn(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}}]),e}(Gp)).\u0275fac=function(t){return new(t||Rp)(a.yc(a.q),a.yc(a.j),a.yc(Object(a.cb)((function(){return $p}))))},Rp.\u0275cmp=a.sc({type:Rp,selectors:[["mat-list-option"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Bp,!0),a.qc(n,Vp,!0),a.qc(n,aa,!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(Cp,!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:Mp,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(Ip),a.Dc(0,"div",0),a.zc(1,"div",1),a.td(2,wp,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:[ba,_e.t,Ca],encapsulation:2,changeDetection:0}),Rp),$p=((Tp=function(t){function e(t,n,i){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,r._changeDetector=i,r._multiple=!0,r._contentInitialized=!1,r.selectionChange=new a.s,r.tabIndex=0,r.color="accent",r.compareWith=function(t,e){return t===e},r._disabled=!1,r.selectedOptions=new Qa(r._multiple),r._tabIndex=-1,r._onChange=function(t){},r._destroyed=new Me.a,r._onTouched=function(){},r}return _inherits(e,t),_createClass(e,[{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(gc(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(Si(null),gc(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(gc(this._destroyed)).subscribe((function(t){if(t.added){var e=!0,n=!1,i=void 0;try{for(var a,r=t.added[Symbol.iterator]();!(e=(a=r.next()).done);e=!0)a.value.selected=!0}catch(h){n=!0,i=h}finally{try{e||null==r.return||r.return()}finally{if(n)throw i}}}if(t.removed){var o=!0,s=!1,l=void 0;try{for(var c,u=t.removed[Symbol.iterator]();!(o=(c=u.next()).done);o=!0)c.value.selected=!1}catch(h){s=!0,l=h}finally{try{o||null==u.return||u.return()}finally{if(s)throw l}}}}))}},{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)}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 Wp(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-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}@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}),Tp),Kp=((Pp=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Pp}),Pp.\u0275inj=a.vc({factory:function(t){return new(t||Pp)},imports:[[ma,ka,Ii,wa,_e.c],ma,Ii,wa,yp]}),Pp),Xp=["mat-menu-item",""],Zp=["*"];function Jp(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 tg,eg,ng,ig,ag,rg,og,sg,lg={transformMenu:o("transformMenu",[h("void",u({opacity:0,transform:"scale(0.8)"})),d("void => enter",l([m(".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)"}))])),d("* => void",s("100ms 25ms linear",u({opacity:0})))]),fadeInItems:o("fadeInItems",[h("showing",u({opacity:1})),d("void => *",[u({opacity:0}),s("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cg=((tg=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 Qc(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xc(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||tg)(a.yc(a.U),a.yc(a.n),a.yc(a.g),a.yc(a.w),a.yc(a.X),a.yc(_e.e),a.yc(a.j))},tg.\u0275dir=a.tc({type:tg,selectors:[["ng-template","matMenuContent",""]]}),tg),ug=new a.v("MAT_MENU_PANEL"),hg=Li(Mi((function t(){_classCallCheck(this,t)}))),dg=((eg=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,r._focusMonitor=i,r._parentMenu=a,r.role="menuitem",r._hovered=new Me.a,r._focused=new Me.a,r._highlighted=!1,r._triggersSubmenu=!1,i&&i.monitor(r._elementRef,!1),a&&a.addItem&&a.addItem(_assertThisInitialized(r)),r._document=n,r}return _inherits(e,t),_createClass(e,[{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(Si(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=mn(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=mn(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||ig)(a.yc(a.q),a.yc(a.F),a.yc(fg))},ig.\u0275dir=a.tc({type:ig,contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,cg,!0),a.qc(n,dg,!0),a.qc(n,dg,!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"}}),ig),gg=((ng=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(pg)).\u0275fac=function(t){return vg(t||ng)},ng.\u0275dir=a.tc({type:ng,features:[a.hc]}),ng),vg=a.Fc(gg),yg=((ag=function(t){function e(t,n,i){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i))}return _inherits(e,t),e}(gg)).\u0275fac=function(t){return new(t||ag)(a.yc(a.q),a.yc(a.F),a.yc(fg))},ag.\u0275cmp=a.sc({type:ag,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[a.jc([{provide:ug,useExisting:gg},{provide:gg,useExisting:ag}]),a.hc],ngContentSelectors:Zp,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,Jp,3,6,"ng-template"))},directives:[_e.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:[lg.transformMenu,lg.fadeInItems]},changeDetection:0}),ag),_g=new a.v("mat-menu-scroll-strategy"),bg={provide:_g,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},kg=An({passive:!0}),Cg=((sg=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,kg),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,kg),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 gg&&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(),e instanceof gg?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(en((function(t){return"void"===t.toState})),un(1),gc(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()),this._restoreFocus()}}},{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 uu({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,h=0;this.triggersSubmenu()?(u=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",h="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:h},{originX:i,originY:s,overlayX:u,overlayY:r,offsetY:h},{originX:n,originY:l,overlayX:c,overlayY:o,offsetY:-h},{originX:i,originY:l,overlayX:u,overlayY:o,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:ze(),a=this._parentMenu?this._parentMenu._hovered().pipe(en((function(e){return e!==t._menuItemInstance})),en((function(){return t._menuOpen}))):ze();return Object($l.a)(e,i,a,n)}},{key:"_handleMousedown",value:function(t){ci(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})),Vu(0,ac)).subscribe((function(){t._openedBy="mouse",t.menu instanceof gg&&t.menu._isAnimating?t.menu._animationDone.pipe(un(1),Vu(0,ac),gc(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 Qc(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||sg)(a.yc(Mu),a.yc(a.q),a.yc(a.X),a.yc(_g),a.yc(gg,8),a.yc(dg,10),a.yc(yi,8),a.yc(li))},sg.\u0275dir=a.tc({type:sg,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"]}),sg),wg=((og=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:og}),og.\u0275inj=a.vc({factory:function(t){return new(t||og)},providers:[bg],imports:[Ii]}),og),xg=((rg=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:rg}),rg.\u0275inj=a.vc({factory:function(t){return new(t||rg)},providers:[bg],imports:[[_e.c,Ii,ka,Bu,wg],wg]}),rg),Sg={};function Og(){for(var t=arguments.length,e=new Array(t),n=0;nthis.total&&this.destination.next(t)}}]),e}(Ve.a),Ig=new Set,Mg=((Eg=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):jg}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!Ig.has(t))try{Dg||((Dg=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Dg)),Dg.sheet&&(Dg.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),Ig.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||Eg)(a.Mc(Sn))},Eg.\u0275prov=Object(a.uc)({factory:function(){return new Eg(Object(a.Mc)(Sn))},token:Eg,providedIn:"root"}),Eg);function jg(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var Lg,Fg=((Lg=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 Ng(gn(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,n=Og(Ng(gn(t)).map((function(t){return e._registerQuery(t).observable})));return(n=xi(n.pipe(un(1)),n.pipe((function(t){return t.lift(new Tg(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(Si(n),Object(rn.a)((function(e){return{query:t,matches:e.matches}})),gc(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}()).\u0275fac=function(t){return new(t||Lg)(a.Mc(Mg),a.Mc(a.F))},Lg.\u0275prov=Object(a.uc)({factory:function(){return new Lg(Object(a.Mc)(Mg),Object(a.Mc)(a.F))},token:Lg,providedIn:"root"}),Lg);function Ng(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var zg,Bg={tooltipState:o("state",[h("initial, void, hidden",u({opacity:0,transform:"scale(0)"})),h("visible",u({transform:"scale(1)"})),d("* => visible",s("200ms cubic-bezier(0, 0, 0.2, 1)",(zg=[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:zg}))),d("* => hidden",s("100ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:0})))])},Vg=An({passive:!0});function Ug(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var Hg,qg,Gg,Yg,Wg=new a.v("mat-tooltip-scroll-strategy"),Qg={provide:Wg,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},$g=new a.v("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Kg=((Gg=function(){function t(e,n,i,a,r,o,s,l,c,u,h,d){var f=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=h,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&&!Be(t)&&(t.preventDefault(),t.stopPropagation(),f._ngZone.run((function(){return f.hide(0)})))},this._scrollStrategy=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.monitor(n).pipe(gc(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return f.show()})):r.run((function(){return f.hide(0)}))})),r.runOutsideAngular((function(){n.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,n){t.removeEventListener(n,e,Vg)})),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 Wc(Xg,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(gc(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(gc(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(gc(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 Ug(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 Ug(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),gc(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,Vg)}))}},{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=mn(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||Gg)(a.yc(Mu),a.yc(a.q),a.yc(zc),a.yc(a.X),a.yc(a.F),a.yc(Sn),a.yc(Yn),a.yc(li),a.yc(Wg),a.yc(yi,8),a.yc($g,8),a.yc(a.q))},Gg.\u0275dir=a.tc({type:Gg,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"]}),Gg),Xg=((qg=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||qg)(a.yc(a.j),a.yc(Fg))},qg.\u0275cmp=a.sc({type:qg,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:[_e.q],pipes:[_e.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:[Bg.tooltipState]},changeDetection:0}),qg),Zg=((Hg=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Hg}),Hg.\u0275inj=a.vc({factory:function(t){return new(t||Hg)},providers:[Qg],imports:[[gi,_e.c,Bu,Ii],Ii]}),Hg),Jg=["primaryValueBar"],tv=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),ev=new a.v("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Object(a.db)(_e.e),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),nv=0,iv=((Yg=function(t){function e(t,n,i,r){var o;_classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,o._ngZone=n,o._animationMode=i,o._isNoopAnimation=!1,o._value=0,o._bufferValue=0,o.animationEnd=new a.s,o._animationEndSubscription=je.a.EMPTY,o.mode="determinate",o.progressbarId="mat-progress-bar-".concat(nv++);var s=r?r.getPathname().split("#")[0]:"";return o._rectangleFillValue="url('".concat(s,"#").concat(o.progressbarId,"')"),o._isNoopAnimation="NoopAnimations"===i,o}return _inherits(e,t),_createClass(e,[{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=Kl(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=av(pn(t)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(t){this._bufferValue=av(t||0)}}]),e}(tv)).\u0275fac=function(t){return new(t||Yg)(a.yc(a.q),a.yc(a.F),a.yc(Te,8),a.yc(ev,8))},Yg.\u0275cmp=a.sc({type:Yg,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&a.zd(Jg,!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:[_e.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}),Yg);function av(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 rv,ov=((rv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:rv}),rv.\u0275inj=a.vc({factory:function(t){return new(t||rv)},imports:[[_e.c,Ii],Ii]}),rv);function sv(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 lv(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 cv(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 uv(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 hv,dv,fv,mv,pv,gv,vv=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),yv=new a.v("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),_v=((fv=function(t){function e(t,n,i,a,r){var o;_classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,o._document=i,o._diameter=100,o._value=0,o._fallbackAnimation=!1,o.mode="determinate";var s=e._diameters;return s.has(i.head)||s.set(i.head,new Set([100])),o._fallbackAnimation=n.EDGE||n.TRIDENT,o._noopAnimations="NoopAnimations"===a&&!!r&&!r._forceAnimations,r&&(r.diameter&&(o.diameter=r.diameter),r.strokeWidth&&(o.strokeWidth=r.strokeWidth)),o}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){var n=e.head;if(n&&(n.createShadowRoot||n.attachShadow)){var i=t.getRootNode?t.getRootNode():null;if(i instanceof window.ShadowRoot)return i}}return null}(t,this._document)||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,n=this._diameter,i=e._diameters,a=i.get(t);if(!a||!a.has(n)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",n+""),r.textContent=this._getAnimationText(),t.appendChild(r),a||(a=new Set,i.set(t,a)),a.add(n)}}},{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}}]),e}(vv)).\u0275fac=function(t){return new(t||fv)(a.yc(a.q),a.yc(Sn),a.yc(_e.e,8),a.yc(Te,8),a.yc(yv))},fv.\u0275cmp=a.sc({type:fv,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,sv,1,9,"circle",1),a.td(2,lv,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:[_e.x,_e.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}),fv._diameters=new WeakMap,fv),bv=((dv=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i,a,r))).mode="indeterminate",o}return _inherits(e,t),e}(_v)).\u0275fac=function(t){return new(t||dv)(a.yc(a.q),a.yc(Sn),a.yc(_e.e,8),a.yc(Te,8),a.yc(yv))},dv.\u0275cmp=a.sc({type:dv,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,cv,1,9,"circle",1),a.td(2,uv,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:[_e.x,_e.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}),dv),kv=((hv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:hv}),hv.\u0275inj=a.vc({factory:function(t){return new(t||hv)},imports:[[Ii,_e.c],Ii]}),hv),Cv=["input"],wv=function(){return{enterDuration:150}},xv=["*"],Sv=new a.v("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Ov=0,Dv={provide:rr,useExisting:Object(a.cb)((function(){return Av})),multi:!0},Ev=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},Av=((mv=function(){function t(e){_classCallCheck(this,t),this._changeDetector=e,this._value=null,this._name="mat-radio-group-".concat(Ov++),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 Ev(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=mn(t),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t),this._markRadiosForCheck()}}]),t}()).\u0275fac=function(t){return new(t||mv)(a.yc(a.j))},mv.\u0275dir=a.tc({type:mv,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,Tv,!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([Dv])]}),mv),Pv=Li(Fi((function t(e){_classCallCheck(this,t),this._elementRef=e}))),Tv=((gv=function(t){function e(t,n,i,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n)))._changeDetector=i,c._focusMonitor=r,c._radioDispatcher=o,c._animationMode=s,c._providerOverride=l,c._uniqueId="mat-radio-".concat(++Ov),c.id=c._uniqueId,c.change=new a.s,c._checked=!1,c._value=null,c._removeUniqueSelectionListener=function(){},c.radioGroup=t,c._removeUniqueSelectionListener=o.listen((function(t,e){t!==c.id&&e===c.name&&(c.checked=!1)})),c}return _inherits(e,t),_createClass(e,[{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 Ev(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=mn(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(mn(t))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=mn(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")}}]),e}(Pv)).\u0275fac=function(t){return new(t||gv)(a.yc(Av,8),a.yc(a.q),a.yc(a.j),a.yc(li),a.yc($a),a.yc(Te,8),a.yc(Sv,8))},gv.\u0275cmp=a.sc({type:gv,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var n;1&t&&a.zd(Cv,!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:xv,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,wv)),a.kc(2),a.oc("mat-radio-label-before","before"==e.labelPosition)}},directives:[ba],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}),gv),Rv=((pv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:pv}),pv.\u0275inj=a.vc({factory:function(t){return new(t||pv)},imports:[[ka,Ii],Ii]}),pv),Iv=["trigger"],Mv=["panel"];function jv(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 Lv(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 Fv(t,e){1&t&&a.Yc(0,0,["*ngSwitchCase","true"])}function Nv(t,e){if(1&t&&(a.Dc(0,"span",9),a.td(1,Lv,2,1,"span",10),a.td(2,Fv,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 zv(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 Bv,Vv,Uv,Hv=[[["mat-select-trigger"]],"*"],qv=["mat-select-trigger","*"],Gv={transformPanelWrap:o("transformPanelWrap",[d("* => void",m("@transformPanel",[f()],{optional:!0}))]),transformPanel:o("transformPanel",[h("void",u({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h("showing",u({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h("showing-multiple",u({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),d("void => *",s("120ms cubic-bezier(0, 0, 0.2, 1)")),d("* => void",s("100ms 25ms linear",u({opacity:0})))])},Yv=0,Wv=new a.v("mat-select-scroll-strategy"),Qv=new a.v("MAT_SELECT_CONFIG"),$v={provide:Wv,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Kv=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},Xv=Li(Fi(Mi(Ni((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}))))),Zv=((Uv=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Uv)},Uv.\u0275dir=a.tc({type:Uv,selectors:[["mat-select-trigger"]]}),Uv),Jv=((Vv=function(t){function e(t,n,i,r,o,s,l,c,u,h,d,f,m,p){var g;return _classCallCheck(this,e),(g=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,o,r,l,c,h)))._viewportRuler=t,g._changeDetectorRef=n,g._ngZone=i,g._dir=s,g._parentFormField=u,g.ngControl=h,g._liveAnnouncer=m,g._panelOpen=!1,g._required=!1,g._scrollTop=0,g._multiple=!1,g._compareWith=function(t,e){return t===e},g._uid="mat-select-".concat(Yv++),g._destroy=new Me.a,g._triggerFontSize=0,g._onChange=function(){},g._onTouched=function(){},g._optionIds="",g._transformOrigin="top",g._panelDoneAnimatingStream=new Me.a,g._offsetY=0,g._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],g._disableOptionCentering=!1,g._focused=!1,g.controlType="mat-select",g.ariaLabel="",g.optionSelectionChanges=Ql((function(){var t=g.options;return t?t.changes.pipe(Si(t),bc((function(){return Object($l.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.onSelectionChange}))))}))):g._ngZone.onStable.asObservable().pipe(un(1),bc((function(){return g.optionSelectionChanges})))})),g.openedChange=new a.s,g._openedStream=g.openedChange.pipe(en((function(t){return t})),Object(rn.a)((function(){}))),g._closedStream=g.openedChange.pipe(en((function(t){return!t})),Object(rn.a)((function(){}))),g.selectionChange=new a.s,g.valueChange=new a.s,g.ngControl&&(g.ngControl.valueAccessor=_assertThisInitialized(g)),g._scrollStrategyFactory=f,g._scrollStrategy=g._scrollStrategyFactory(),g.tabIndex=parseInt(d)||0,g.id=g.id,p&&(null!=p.disableOptionCentering&&(g.disableOptionCentering=p.disableOptionCentering),null!=p.typeaheadDebounceInterval&&(g.typeaheadDebounceInterval=p.typeaheadDebounceInterval)),g}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new Qa(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(rc(),gc(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(gc(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(gc(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(Si(null),gc(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 Qn(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(gc(this._destroy)).subscribe((function(){!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close()})),this._keyManager.change.pipe(gc(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($l.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(gc(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Object($l.a).apply(void 0,_toConsumableArray(this.options.map((function(t){return t._stateChanges})))).pipe(gc(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 Kv(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=Ra(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Ia(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+=Ra(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=mn(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=mn(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=mn(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}}]),e}(Xv)).\u0275fac=function(t){return new(t||Vv)(a.yc(Vc),a.yc(a.j),a.yc(a.F),a.yc(ia),a.yc(a.q),a.yc(yi,8),a.yc(Fo,8),a.yc(Xo,8),a.yc(Th,8),a.yc(vr,10),a.Nc("tabindex"),a.yc(Wv),a.yc(oi),a.yc(Qv,8))},Vv.\u0275cmp=a.sc({type:Vv,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Zv,!0),a.qc(n,Ta,!0),a.qc(n,Oa,!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(Iv,!0),a.zd(Mv,!0),a.zd(Nu,!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:fh,useExisting:Vv},{provide:Pa,useExisting:Vv}]),a.hc,a.ic],ngContentSelectors:qv,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(Hv),a.Dc(0,"div",0,1),a.Qc("click",(function(){return e.toggle()})),a.Dc(3,"div",2),a.td(4,jv,2,1,"span",3),a.td(5,Nv,3,2,"span",4),a.Cc(),a.Dc(6,"div",5),a.zc(7,"div",6),a.Cc(),a.Cc(),a.td(8,zv,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:[Fu,_e.x,_e.y,Nu,_e.z,_e.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:[Gv.transformPanelWrap,Gv.transformPanel]},changeDetection:0}),Vv),ty=((Bv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Bv}),Bv.\u0275inj=a.vc({factory:function(t){return new(t||Bv)},providers:[$v],imports:[[_e.c,Bu,za,Ii],Rh,za,Ii]}),Bv),ey=["*"];function ny(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 iy(t,e){1&t&&(a.Dc(0,"mat-drawer-content"),a.Yc(1,2),a.Cc())}var ay=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ry=["mat-drawer","mat-drawer-content","*"];function oy(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 sy(t,e){1&t&&(a.Dc(0,"mat-sidenav-content",3),a.Yc(1,2),a.Cc())}var ly=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],cy=["mat-sidenav","mat-sidenav-content","*"],uy={transformDrawer:o("transform",[h("open, open-instant",u({transform:"none",visibility:"visible"})),h("void",u({"box-shadow":"none",visibility:"hidden"})),d("void => open-instant",s("0ms")),d("void <=> open, open-instant => void",s("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function hy(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var dy,fy,my,py,gy,vy,yy,_y,by,ky,Cy,wy=new a.v("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),xy=new a.v("MAT_DRAWER_CONTAINER"),Sy=((gy=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,i,a,r)))._changeDetectorRef=t,o._container=n,o}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),e}(Bc)).\u0275fac=function(t){return new(t||gy)(a.yc(a.j),a.yc(Object(a.cb)((function(){return Dy}))),a.yc(a.q),a.yc(zc),a.yc(a.F))},gy.\u0275cmp=a.sc({type:gy,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:ey,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},encapsulation:2,changeDetection:0}),gy),Oy=((py=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(){Kl(c._elementRef.nativeElement,"keydown").pipe(en((function(t){return 27===t.keyCode&&!c.disableClose&&!Be(t)})),gc(c._destroyed)).subscribe((function(t){return c._ngZone.run((function(){c.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(rc((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=mn(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=mn(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(mn(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||py)(a.yc(a.q),a.yc(ei),a.yc(li),a.yc(Sn),a.yc(a.F),a.yc(_e.e,8),a.yc(xy,8))},py.\u0275cmp=a.sc({type:py,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:ey,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:[uy.transformDrawer]},changeDetection:0}),py),Dy=((my=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(gc(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(gc(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=l}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Si(this._allDrawers),gc(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(Si(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),gc(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})),gc(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(gc(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(gc(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(gc(Object($l.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&&hy("end"),t._end=e):(null!=t._start&&hy("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=mn(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:mn(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||my)(a.yc(yi,8),a.yc(a.q),a.yc(a.F),a.yc(a.j),a.yc(Vc),a.yc(wy),a.yc(Te,8))},my.\u0275cmp=a.sc({type:my,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Sy,!0),a.qc(n,Oy,!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(Sy,!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:xy,useExisting:my}])],ngContentSelectors:ry,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(ay),a.td(0,ny,1,2,"div",0),a.Yc(1),a.Yc(2,1),a.td(3,iy,2,0,"mat-drawer-content",1)),2&t&&(a.ad("ngIf",e.hasBackdrop),a.kc(3),a.ad("ngIf",!e._content))},directives:[_e.t,Sy],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}),my),Ey=((fy=function(t){function e(t,n,i,a,r){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i,a,r))}return _inherits(e,t),e}(Sy)).\u0275fac=function(t){return new(t||fy)(a.yc(a.j),a.yc(Object(a.cb)((function(){return Ty}))),a.yc(a.q),a.yc(zc),a.yc(a.F))},fy.\u0275cmp=a.sc({type:fy,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:ey,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},encapsulation:2,changeDetection:0}),fy),Ay=((dy=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _inherits(e,t),_createClass(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=mn(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)}}]),e}(Oy)).\u0275fac=function(t){return Py(t||dy)},dy.\u0275cmp=a.sc({type:dy,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:ey,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:[uy.transformDrawer]},changeDetection:0}),dy),Py=a.Fc(Ay),Ty=((vy=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Dy)).\u0275fac=function(t){return Ry(t||vy)},vy.\u0275cmp=a.sc({type:vy,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Ey,!0),a.qc(n,Ay,!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:xy,useExisting:vy}]),a.hc],ngContentSelectors:cy,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(ly),a.td(0,oy,1,2,"div",0),a.Yc(1),a.Yc(2,1),a.td(3,sy,2,0,"mat-sidenav-content",1)),2&t&&(a.ad("ngIf",e.hasBackdrop),a.kc(3),a.ad("ngIf",!e._content))},directives:[_e.t,Ey,Bc],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}),vy),Ry=a.Fc(Ty),Iy=((yy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:yy}),yy.\u0275inj=a.vc({factory:function(t){return new(t||yy)},imports:[[_e.c,Ii,Uc,On],Ii]}),yy),My=["thumbContainer"],jy=["toggleBar"],Ly=["input"],Fy=function(){return{enterDuration:150}},Ny=["*"],zy=new a.v("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),By=0,Vy={provide:rr,useExisting:Object(a.cb)((function(){return qy})),multi:!0},Uy=function t(e,n){_classCallCheck(this,t),this.source=e,this.checked=n},Hy=Fi(ji(Li(Mi((function t(e){_classCallCheck(this,t),this._elementRef=e}))),"accent")),qy=((_y=function(t){function e(t,n,i,r,o,s,l,c){var u;return _classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._focusMonitor=n,u._changeDetectorRef=i,u.defaults=s,u._animationMode=l,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++By),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new a.s,u.toggleChange=new a.s,u.dragChange=new a.s,u.tabIndex=parseInt(r)||0,u}return _inherits(e,t),_createClass(e,[{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 Uy(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=mn(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),e}(Hy)).\u0275fac=function(t){return new(t||_y)(a.yc(a.q),a.yc(li),a.yc(a.j),a.Nc("tabindex"),a.yc(a.F),a.yc(zy),a.yc(Te,8),a.yc(yi,8))},_y.\u0275cmp=a.sc({type:_y,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(a.zd(My,!0),a.zd(jy,!0),a.zd(Ly,!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([Vy]),a.hc],ngContentSelectors:Ny,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,Fy))}},directives:[ba,Nn],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}),_y),Gy={provide:Cr,useExisting:Object(a.cb)((function(){return Yy})),multi:!0},Yy=((by=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Vs)).\u0275fac=function(t){return Wy(t||by)},by.\u0275dir=a.tc({type:by,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[a.jc([Gy]),a.hc]}),by),Wy=a.Fc(Yy),Qy=((Cy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Cy}),Cy.\u0275inj=a.vc({factory:function(t){return new(t||Cy)}}),Cy),$y=((ky=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ky}),ky.\u0275inj=a.vc({factory:function(t){return new(t||ky)},imports:[[Qy,ka,Ii,zn],Qy,Ii]}),ky);function Ky(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 Xy(t,e){}var Zy,Jy,t_,e_,n_,i_,a_,r_=Math.pow(2,31)-1,o_=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,r_))}},{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}(),s_=new a.v("MatSnackBarData"),l_=function t(){_classCallCheck(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},c_=((Zy=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||Zy)(a.yc(o_),a.yc(s_))},Zy.\u0275cmp=a.sc({type:Zy,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,Ky,3,1,"div",0)),2&t&&(a.kc(1),a.wd(e.data.message),a.kc(1),a.ad("ngIf",e.hasAction))},directives:[_e.t,Ga],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}),Zy),u_={snackBarState:o("state",[h("void, hidden",u({transform:"scale(0.8)",opacity:0})),h("visible",u({transform:"scale(1)",opacity:1})),d("* => visible",s("150ms cubic-bezier(0, 0, 0.2, 1)")),d("* => void, * => hidden",s("75ms cubic-bezier(0.4, 0.0, 1, 1)",u({opacity:0})))])},h_=((t_=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngZone=t,r._elementRef=n,r._changeDetectorRef=i,r.snackBarConfig=a,r._destroyed=!1,r._onExit=new Me.a,r._onEnter=new Me.a,r._animationState="void",r.attachDomPortal=function(t){return r._assertNotAttached(),r._applySnackBarClasses(),r._portalOutlet.attachDomPortal(t)},r._role="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?null:"status":"alert",r}return _inherits(e,t),_createClass(e,[{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._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")}}]),e}(Kc)).\u0275fac=function(t){return new(t||t_)(a.yc(a.F),a.yc(a.q),a.yc(a.j),a.yc(l_))},t_.\u0275cmp=a.sc({type:t_,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&a.rd(Zc,!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,Xy,0,0,"ng-template",0)},directives:[Zc],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:[u_.snackBarState]}}),t_),d_=((Jy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Jy}),Jy.\u0275inj=a.vc({factory:function(t){return new(t||Jy)},imports:[[Bu,Jc,_e.c,Wa,Ii],Ii]}),Jy),f_=new a.v("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new l_}}),m_=((e_=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(c_,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 tu(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[l_,e]])),i=new Wc(h_,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 l_),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),o=new o_(r,i);if(t instanceof a.U){var s=new Qc(t,null,{$implicit:n.data,snackBarRef:o});o.instance=r.attachTemplatePortal(s)}else{var l=this._createInjector(n,o),c=new Wc(t,void 0,l),u=r.attachComponentPortal(c);o.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(gc(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 uu;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 tu(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[o_,e],[s_,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||e_)(a.Mc(Mu),a.Mc(oi),a.Mc(a.w),a.Mc(Fg),a.Mc(e_,12),a.Mc(f_))},e_.\u0275prov=Object(a.uc)({factory:function(){return new e_(Object(a.Mc)(Mu),Object(a.Mc)(oi),Object(a.Mc)(a.t),Object(a.Mc)(Fg),Object(a.Mc)(e_,12),Object(a.Mc)(f_))},token:e_,providedIn:d_}),e_),p_=["*",[["mat-toolbar-row"]]],g_=["*","mat-toolbar-row"],v_=ji((function t(e){_classCallCheck(this,t),this._elementRef=e})),y_=((a_=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||a_)},a_.\u0275dir=a.tc({type:a_,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),a_),__=((i_=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._platform=n,a._document=i,a}return _inherits(e,t),_createClass(e,[{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.")}()}}]),e}(v_)).\u0275fac=function(t){return new(t||i_)(a.yc(a.q),a.yc(Sn),a.yc(_e.e))},i_.\u0275cmp=a.sc({type:i_,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,y_,!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:g_,decls:2,vars:0,template:function(t,e){1&t&&(a.Zc(p_),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}),i_),b_=((n_=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:n_}),n_.\u0275inj=a.vc({factory:function(t){return new(t||n_)},imports:[[Ii],Ii]}),n_);function k_(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}function C_(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function w_(t,e){var n=e?"":"none";C_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function x_(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function S_(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}var O_=An({passive:!0}),D_=An({passive:!1}),E_=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 yn(t)})),this._handles.forEach((function(t){return w_(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=yn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,D_),e.addEventListener("touchstart",this._pointerDown,O_),this._initialTransform=void 0,this._rootElement=e),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?yn(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()&&R_(this._rootElement),R_(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&&R_(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&R_(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}),I_(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=I_(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(Si(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?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=A_(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);t=M_(a,this._document),this._previewRef=a,e.matchSize?j_(t,this._rootElement):t.style.transform=A_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;j_(t=P_(r),r)}return C_(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),w_(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=A_(e.left,e.top);var n=function(t){var e=getComputedStyle(t),n=S_(e,"transition-property"),i=n.find((function(t){return"transform"===t||"all"===t}));if(!i)return 0;var a=n.indexOf(i),r=S_(e,"transition-duration"),o=S_(e,"transition-delay");return x_(r[a])+x_(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),t=M_(this._placeholderRef,this._document)):t=P_(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=I_(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=I_(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=T_(n.x,s.left+r,s.right-(l.width-r)),n.y=T_(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,w_(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,D_),t.removeEventListener("touchstart",this._pointerDown,O_)}},{key:"_applyRootElementTransform",value:function(t,e){var n=A_(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:I_(t)?e.touch:e?e.mouse:0}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=mn(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}}]),t}();function A_(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function P_(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(!dc(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Ke),new sn.a((function(n){return n.add(e.schedule(k_,t,{subscriber:n,counter:0,period:t})),n}))}(0,Zl).pipe(gc(o._stopScrollTimers)).subscribe((function(){var t=o._scrollNode;1===o._verticalScrollDirection?q_(t,-2):2===o._verticalScrollDirection&&q_(t,2),1===o._horizontalScrollDirection?G_(t,-2):2===o._horizontalScrollDirection&&G_(t,2)}))},this.element=yn(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=yn(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 yn(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=yn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getItemIndex",value:function(t){return this._isDragging?V_("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&&B_(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=V_(a,(function(e){return e.drag===t})),l=a[r],c=a[s].clientRect,u=l.clientRect,h=s>r?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y;var d=this._getItemOffsetPx(c,u,h),f=this._getSiblingOffsetPx(s,a,h),m=a.slice();L_(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:t}),a.forEach((function(e,n){if(m[n]!==e){var i=e.drag===t,a=i?d:f,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),z_(e.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),z_(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&&B_(o.clientRect,t,e)&&(l=_slicedToArray(function(t,e,n,i){var a=Y_(e,i),r=W_(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=Y_(c,e),r=W_(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=H_(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:H_(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=yn(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 V_(this._itemPositions,(function(o,s,l){var c=o.drag,u=o.clientRect;if(c===t)return l.length<2;if(i){var h=r?i.x:i.y;if(c===a._previousSwap.drag&&h===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=this._parentPositions.get(t).scrollPosition,r=a.top-e,o=a.left-n;this._parentPositions.forEach((function(e,n){e.clientRect&&t!==n&&t.contains(n)&&z_(e.clientRect,r,o)})),this._itemPositions.forEach((function(t){z_(t.clientRect,r,o)})),this._itemPositions.forEach((function(t){var e=t.drag;i._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})),a.top=e,a.left=n}},{key:"_isOverContainer",value:function(t,e){return U_(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(!U_(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;var i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;var a=yn(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(){return this._cachedShadowRoot||(this._cachedShadowRoot=function(t){if(Tn()){var e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(yn(this.element))||this._document),this._cachedShadowRoot}}]),t}();function z_(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function B_(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 H_(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 q_(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function G_(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function Y_(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 W_(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 Q_,$_,K_,X_,Z_,J_,tb=An({passive:!1,capture:!0}),eb=((Q_=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,tb)}))}},{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,tb)}},{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:tb}).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:tb}),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||Q_)(a.Mc(a.F),a.Mc(_e.e))},Q_.\u0275prov=Object(a.uc)({factory:function(){return new Q_(Object(a.Mc)(a.F),Object(a.Mc)(_e.e))},token:Q_,providedIn:"root"}),Q_),nb={dragStartThreshold:5,pointerDirectionChangeThreshold:5},ib=(($_=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]:nb;return new E_(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new N_(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}()).\u0275fac=function(t){return new(t||$_)(a.Mc(_e.e),a.Mc(a.F),a.Mc(Vc),a.Mc(eb))},$_.\u0275prov=Object(a.uc)({factory:function(){return new $_(Object(a.Mc)(_e.e),Object(a.Mc)(a.F),Object(a.Mc)(Vc),Object(a.Mc)(eb))},token:$_,providedIn:"root"}),$_),ab=new a.v("CDK_DRAG_PARENT"),rb=((Z_=function(){function t(e,n){_classCallCheck(this,t),this.element=e,this._stateChanges=new Me.a,this._disabled=!1,this._parentDrag=n,w_(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=mn(t),this._stateChanges.next(this)}}]),t}()).\u0275fac=function(t){return new(t||Z_)(a.yc(a.q),a.yc(ab,8))},Z_.\u0275dir=a.tc({type:Z_,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),Z_),ob=((X_=function t(e){_classCallCheck(this,t),this.templateRef=e}).\u0275fac=function(t){return new(t||X_)(a.yc(a.U))},X_.\u0275dir=a.tc({type:X_,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),X_),sb=((K_=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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||K_)(a.yc(a.U))},K_.\u0275dir=a.tc({type:K_,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),K_),lb=new a.v("CDK_DRAG_CONFIG"),cb=new a.v("CDK_DROP_LIST"),ub=((J_=function(){function t(e,n,i,r,o,s,l,c,u){var h=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=h._dragRef.moved.pipe(Object(rn.a)((function(t){return{source:h,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),gc(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(Si(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)})),bc((function(t){return Object($l.a).apply(void 0,_toConsumableArray(t.map((function(t){return t._stateChanges.pipe(Si(t))}))))})),gc(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?hb(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 hb(this.element.nativeElement,t);var e=yn(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=mn(t),this._dragRef.disabled=this._disabled}}]),t}()).\u0275fac=function(t){return new(t||J_)(a.yc(a.q),a.yc(cb,12),a.yc(_e.e),a.yc(a.F),a.yc(a.X),a.yc(lb,8),a.yc(yi,8),a.yc(ib),a.yc(a.j))},J_.\u0275dir=a.tc({type:J_,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,sb,!0),a.qc(n,ob,!0),a.qc(n,rb,!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:ab,useExisting:J_}]),a.ic]}),J_);function hb(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 db,fb,mb,pb=((mb=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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||mb)},mb.\u0275dir=a.tc({type:mb,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),mb),gb=0,vb=((fb=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(gb++),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(Si(this._dir.value),gc(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=mn(n.sortingDisabled),e.autoScrollDisabled=mn(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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||fb)(a.yc(a.q),a.yc(ib),a.yc(a.j),a.yc(yi,8),a.yc(pb,12),a.yc(zc),a.yc(lb,8))},fb.\u0275dir=a.tc({type:fb,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:pb,useValue:void 0},{provide:cb,useExisting:fb}])]}),fb._dropLists=[],fb),yb=((db=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:db}),db.\u0275inj=a.vc({factory:function(t){return new(t||db)},providers:[ib]}),db);function _b(t){return jf(t)(this)}sn.a.prototype.map=function(t,e){return Object(rn.a)(t,e)(this)},sn.a.prototype.catch=_b,sn.a.prototype._catch=_b,sn.a.throw=Sc,sn.a.throwError=Sc;var bb={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"}},kb=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._value=t,n}return _inherits(e,t),_createClass(e,[{key:"_subscribe",value:function(t){var n=_get(_getPrototypeOf(e.prototype),"_subscribe",this).call(this,t);return n&&!n.closed&&t.next(this._value),n}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new jc.a;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(e.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),e}(Me.a),Cb=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 wb(t){return function(e){return 0===t?cn():e.lift(new xb(t))}}var xb=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 Sb(t,this.total))}}]),t}(),Sb=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).total=n,i.ring=new Array,i.count=0,i}return _inherits(e,t),_createClass(e,[{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]:Ab;return function(e){return e.lift(new Db(t))}}var Db=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Eb(t,this.errorFactory))}}]),t}(),Eb=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).errorFactory=n,i.hasValue=!1,i}return _inherits(e,t),_createClass(e,[{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)}}]),e}(Ve.a);function Ab(){return new Cb}function Pb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Tb(t))}}var Tb=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Rb(t,this.defaultValue))}}]),t}(),Rb=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).defaultValue=n,i.isEmpty=!0,i}return _inherits(e,t),_createClass(e,[{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()}}]),e}(Ve.a),Ib=n("SpAZ");function Mb(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?en((function(e,n){return t(e,n,i)})):Ib.a,wb(1),n?Pb(e):Ob((function(){return new Cb})))}}function jb(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?en((function(e,n){return t(e,n,i)})):Ib.a,un(1),n?Pb(e):Ob((function(){return new Cb})))}}var Lb=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 Fb(t,this.predicate,this.thisArg,this.source))}}]),t}(),Fb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).predicate=n,r.thisArg=i,r.source=a,r.index=0,r.thisArg=i||_assertThisInitialized(r),r}return _inherits(e,t),_createClass(e,[{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)}}]),e}(Ve.a);function Nb(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Bb(t,e,n))}}var zb,Bb=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 Vb(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Vb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).accumulator=n,r._seed=i,r.hasSeed=a,r.index=0,r}return _inherits(e,t),_createClass(e,[{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}}]),e}(Ve.a),Ub=n("mCNh"),Hb=function t(e,n){_classCallCheck(this,t),this.id=e,this.url=n},qb=function(t){function e(t,n){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).navigationTrigger=a,i.restoredState=r,i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Hb),Gb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(Hb),Yb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).reason=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Hb),Wb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).error=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(Hb),Qb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Hb),$b=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Hb),Kb=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,o.state=a,o.shouldActivate=r,o}return _inherits(e,t),_createClass(e,[{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,")")}}]),e}(Hb),Xb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Hb),Zb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Hb),Jb=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}(),tk=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}(),ek=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}(),nk=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}(),ik=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}(),ak=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}(),rk=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}(),ok=((zb=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||zb)},zb.\u0275cmp=a.sc({type:zb,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&a.zc(0,"router-outlet")},directives:function(){return[vw]},encapsulation:2}),zb),sk=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 lk(t){return new sk(t)}function ck(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function uk(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 yk(t){return Array.prototype.concat.apply([],t)}function _k(t){return t.length>0?t[t.length-1]:null}function bk(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function kk(t){return Object(a.Mb)(t)?t:Object(a.Nb)(t)?Object(Za.a)(Promise.resolve(t)):ze(t)}function Ck(t,e,n){return n?function(t,e){return gk(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ok(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 vk(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!!Ok(n.segments.slice(0,a.length),a)&&!i.hasChildren();if(n.segments.length===a.length){if(!Ok(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!!Ok(n.segments,o)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var wk=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 Pk.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=lk(this.queryParams)),this._queryParamMap}}]),t}(),xk=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.segments=e,this.children=n,this.parent=null,bk(n,(function(t,e){return t.parent=i}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Tk(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),Sk=function(){function t(e,n){_classCallCheck(this,t),this.path=e,this.parameters=n}return _createClass(t,[{key:"toString",value:function(){return Fk(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=lk(this.parameters)),this._parameterMap}}]),t}();function Ok(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Dk(t,e){var n=[];return bk(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),bk(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var Ek=function t(){_classCallCheck(this,t)},Ak=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new Uk(t);return new wk(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 Tk(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",a=[];return bk(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=Dk(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:["".concat(i,":").concat(t(n,!1))]}));return"".concat(Tk(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(Ik(t),"=").concat(Ik(e))})).join("&"):"".concat(Ik(t),"=").concat(Ik(e))})),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Pk=new Ak;function Tk(t){return t.segments.map((function(t){return Fk(t)})).join("/")}function Rk(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ik(t){return Rk(t).replace(/%3B/gi,";")}function Mk(t){return Rk(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jk(t){return decodeURIComponent(t)}function Lk(t){return jk(t.replace(/\+/g,"%20"))}function Fk(t){return"".concat(Mk(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(Mk(t),"=").concat(Mk(e[t]))})).join("")));var e}var Nk=/^[^\/()?;=#]+/;function zk(t){var e=t.match(Nk);return e?e[0]:""}var Bk=/^[^=?&#]+/,Vk=/^[^?&#]+/,Uk=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 xk([],{}):new xk([],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 xk(t,e)),n}},{key:"parseSegment",value:function(){var t=zk(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Sk(jk(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=zk(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=zk(this.remaining);i&&(n=i,this.capture(n))}t[jk(e)]=jk(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Bk);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Vk);return e?e[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var a=Lk(e),r=Lk(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=zk(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 xk([],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}(),Hk=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=qk(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=qk(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Gk(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 Gk(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function qk(t,e){if(t===e.value)return e;var n=!0,i=!1,a=void 0;try{for(var r,o=e.children[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var s=qk(t,r.value);if(s)return s}}catch(l){i=!0,a=l}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return null}function Gk(t,e){if(t===e.value)return[e];var n=!0,i=!1,a=void 0;try{for(var r,o=e.children[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var s=Gk(t,r.value);if(s.length)return s.unshift(e),s}}catch(l){i=!0,a=l}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return[]}var Yk=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 Wk(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Qk=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).snapshot=n,tC(_assertThisInitialized(i),t),i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(Hk);function $k(t,e){var n=function(t,e){var n=new Zk([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Jk("",new Yk(n,[]))}(t,e),i=new kb([new Sk("",{})]),a=new kb({}),r=new kb({}),o=new kb({}),s=new kb(""),l=new Kk(i,a,o,s,r,"primary",e,n.root);return l.snapshot=n.root,new Qk(new Yk(l,[]),n)}var Kk=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 lk(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(rn.a)((function(t){return lk(t)})))),this._queryParamMap}}]),t}();function Xk(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 Zk=function(){function t(e,n,i,a,r,o,s,l,c,u,h){_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=h}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=lk(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=lk(this.queryParams)),this._queryParamMap}}]),t}(),Jk=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).url=t,tC(_assertThisInitialized(i),n),i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return eC(this._root)}}]),e}(Hk);function tC(t,e){e.value._routerState=t,e.children.forEach((function(e){return tC(t,e)}))}function eC(t){var e=t.children.length>0?" { ".concat(t.children.map(eC).join(", ")," } "):"";return"".concat(t.value).concat(e)}function nC(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,gk(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),gk(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&aC(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!==_k(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}(),sC=function t(e,n,i){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function lC(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function cC(t,e,n){if(t||(t=new xk([],{})),0===t.segments.length&&t.hasChildren())return uC(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=lC(n[i]),l=i0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!mC(s,l,o))return r;i+=2}else{if(!mC(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 xk([],{primary:t}):t;return new wk(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 xk([],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 ze({});var r=[],o=[],s={};return bk(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)})),ze.apply(null,r.concat(o)).pipe(wi(),Mb(),Object(rn.a)((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,i,a,r){var o=this;return ze.apply(void 0,_toConsumableArray(n)).pipe(Object(rn.a)((function(s){return o.expandSegmentAgainstRoute(t,e,n,s,i,a,r).pipe(jf((function(t){if(t instanceof _C)return ze(null);throw t})))})),wi(),jb((function(t){return!!t})),jf((function(t,n){if(t instanceof Cb||"EmptyError"===t.name){if(o.noLeftoversInUrl(e,i,a))return ze(new xk([],{}));throw new _C(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 EC(i)!==r?kC(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,a,r):kC(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("/")?CC(r):this.lineralizeSegments(n,r).pipe(Object(Uf.a)((function(n){var r=new xk(n,{});return a.expandSegment(t,r,e,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,a,r){var o=this,s=SC(e,i,a),l=s.matched,c=s.consumedSegments,u=s.lastChild,h=s.positionalParamSegments;if(!l)return kC(e);var d=this.applyRedirectCommands(c,i.redirectTo,h);return i.redirectTo.startsWith("/")?CC(d):this.lineralizeSegments(i,d).pipe(Object(Uf.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 xk(i,{})}))):ze(new xk(i,{}));var r=SC(e,n,i),o=r.matched,s=r.consumedSegments,l=r.lastChild;if(!o)return kC(e);var c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(Uf.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 DC(t,e,n)&&"primary"!==EC(n)}))}(t,n,i)?{segmentGroup:OC(new xk(e,function(t,e){var n={};n.primary=e;var i=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;""===l.path&&"primary"!==EC(l)&&(n[EC(l)]=new xk([],{}))}}catch(c){a=!0,r=c}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return n}(i,new xk(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return DC(t,e,n)}))}(t,n,i)?{segmentGroup:OC(new xk(t.segments,function(t,e,n,i){var a={},r=!0,o=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;DC(t,e,u)&&!i[EC(u)]&&(a[EC(u)]=new xk([],{}))}}catch(h){o=!0,s=h}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return Object.assign(Object.assign({},i),a)}(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 xk(s,t)}))):0===i.length&&0===l.length?ze(new xk(s,{})):a.expandSegment(n,o,i,l,"primary",!0).pipe(Object(rn.a)((function(t){return new xk(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?ze(new hk(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ze(e._loadedConfig):function(t,e,n){var i,a=e.canLoad;return a&&0!==a.length?Object(Za.a)(a).pipe(Object(rn.a)((function(i){var a,r=t.get(i);if(function(t){return t&&vC(t.canLoad)}(r))a=r.canLoad(e,n);else{if(!vC(r))throw new Error("Invalid CanLoad guard");a=r(e,n)}return kk(a)}))).pipe(wi(),(i=function(t){return!0===t},function(t){return t.lift(new Lb(i,void 0,t))})):ze(!0)}(t.injector,e,n).pipe(Object(Uf.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(ck("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):ze(new hk([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return ze(n);if(i.numberOfChildren>1||!i.children.primary)return wC(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 wk(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return bk(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 bk(e.children,(function(e,r){o[r]=a.createSegmentGroup(t,e,n,i)})),new xk(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=0,i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;if(l.path===t.path)return e.splice(n),l;n++}}catch(c){a=!0,r=c}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return t}}]),t}();function SC(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||uk)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function OC(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new xk(t.segments.concat(e.segments),e.children)}return t}function DC(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function EC(t){return t.outlet||"primary"}var AC=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},PC=function t(e,n){_classCallCheck(this,t),this.component=e,this.route=n};function TC(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 RC(t,e,n){var i=Wk(t),a=t.value;bk(i,(function(t,i){RC(t,a.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new PC(a.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,a))}var IC=Symbol("INITIAL_VALUE");function MC(){return bc((function(t){return Og.apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(un(1),Si(IC))})))).pipe(Nb((function(t,e){var n=!1;return e.reduce((function(t,i,a){if(t!==IC)return t;if(i===IC&&(n=!0),!n){if(!1===i)return i;if(a===e.length-1||yC(i))return i}return t}),t)}),IC),en((function(t){return t!==IC})),Object(rn.a)((function(t){return yC(t)?t:!0===t})),un(1))}))}function jC(t,e){return null!==t&&e&&e(new ik(t)),ze(!0)}function LC(t,e){return null!==t&&e&&e(new ek(t)),ze(!0)}function FC(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?ze(i.map((function(i){return Ql((function(){var a,r=TC(i,e,n);if(function(t){return t&&vC(t.canActivate)}(r))a=kk(r.canActivate(e,t));else{if(!vC(r))throw new Error("Invalid CanActivate guard");a=kk(r(e,t))}return a.pipe(jb())}))}))).pipe(MC()):ze(!0)}function NC(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 Ql((function(){return ze(e.guards.map((function(a){var r,o=TC(a,e.node,n);if(function(t){return t&&vC(t.canActivateChild)}(o))r=kk(o.canActivateChild(i,t));else{if(!vC(o))throw new Error("Invalid CanActivateChild guard");r=kk(o(i,t))}return r.pipe(jb())}))).pipe(MC())}))}));return ze(a).pipe(MC())}var zC=function t(){_classCallCheck(this,t)},BC=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=HC(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Zk([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Yk(n,e),a=new Jk(this.url,i);return this.inheritParamsAndData(a._root),ze(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=Xk(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=Dk(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=!0,r=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;try{return this.processSegmentAgainstRoute(c,e,n,i)}catch(u){if(!(u instanceof zC))throw u}}}catch(h){r=!0,o=h}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}if(this.noLeftoversInUrl(e,n,i))return[];throw new zC}},{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 zC;if((t.outlet||"primary")!==i)throw new zC;var a,r=[],o=[];if("**"===t.path){var s=n.length>0?_k(n).parameters:{};a=new Zk(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,YC(t),i,t.component,t,VC(e),UC(e)+n.length,WC(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new zC;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||uk)(n,t,e);if(!i)throw new zC;var a={};bk(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 Zk(r,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,YC(t),i,t.component,t,VC(e),UC(e)+r.length,WC(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),u=HC(e,r,o,c,this.relativeLinkResolution),h=u.segmentGroup,d=u.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new Yk(a,f)]}if(0===c.length&&0===d.length)return[new Yk(a,[])];var m=this.processSegment(c,h,d,"primary");return[new Yk(a,m)]}}]),t}();function VC(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function UC(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 HC(t,e,n,i,a){if(n.length>0&&function(t,e,n){return n.some((function(n){return qC(t,e,n)&&"primary"!==GC(n)}))}(t,n,i)){var r=new xk(e,function(t,e,n,i){var a={};a.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var r=!0,o=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;if(""===u.path&&"primary"!==GC(u)){var h=new xk([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,a[GC(u)]=h}}}catch(d){o=!0,s=d}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return a}(t,e,i,new xk(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 qC(t,e,n)}))}(t,n,i)){var o=new xk(t.segments,function(t,e,n,i,a,r){var o={},s=!0,l=!1,c=void 0;try{for(var u,h=i[Symbol.iterator]();!(s=(u=h.next()).done);s=!0){var d=u.value;if(qC(t,n,d)&&!a[GC(d)]){var f=new xk([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[GC(d)]=f}}}catch(m){l=!0,c=m}finally{try{s||null==h.return||h.return()}finally{if(l)throw c}}return Object.assign(Object.assign({},a),o)}(t,e,n,i,t.children,a));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new xk(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function qC(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function GC(t){return t.outlet||"primary"}function YC(t){return t.data||{}}function WC(t){return t.resolve||{}}function QC(t,e,n,i){var a=TC(t,e,i);return kk(a.resolve?a.resolve(e,n):a(e,n))}function $C(t){return function(e){return e.pipe(bc((function(e){var n=t(e);return n?Object(Za.a)(n).pipe(Object(rn.a)((function(){return e}))):Object(Za.a)([e])})))}}var KC=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}(),XC=new a.v("ROUTES"),ZC=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 hk(yk(a.injector.get(XC)).map(pk),a)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(Za.a)(this.loader.load(t)):kk(t()).pipe(Object(Uf.a)((function(t){return t instanceof a.B?ze(t):Object(Za.a)(e.compiler.compileModuleAsync(t))})))}}]),t}(),JC=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 tw(t){throw t}function ew(t,e,n){return e.parse("/")}function nw(t,e){return ze(null)}var iw,aw,rw,ow=((rw=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=tw,this.malformedUriErrorHandler=ew,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:nw,afterPreactivation:nw},this.urlHandlingStrategy=new JC,this.routeReuseStrategy=new KC,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 h=o.get(a.F);this.isNgZoneEnabled=h instanceof a.F,this.resetConfig(c),this.currentUrlTree=new wk(new xk([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ZC(s,l,(function(t){return u.triggerEvent(new Jb(t))}),(function(t){return u.triggerEvent(new tk(t))})),this.routerState=$k(this.currentUrlTree,this.rootComponentType),this.transitions=new kb({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)})})),bc((function(t){var i,a,r,o=!1,s=!1;return ze(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}})),bc((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 ze(t).pipe(bc((function(t){var i=e.transitions.getValue();return n.next(new qb(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?ln:[t]})),bc((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,a=e.configLoader,r=e.urlSerializer,o=e.config,function(t){return t.pipe(bc((function(t){return function(t,e,n,i,a){return new xC(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(Uf.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 BC(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 Qb(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,h=t.restoredState,d=t.extras,f=new qb(l,e.serializeUrl(c),u,h);n.next(f);var m=$k(c,e.rootComponentType).snapshot;return ze(Object.assign(Object.assign({},t),{targetSnapshot:m,urlAfterRedirects:c,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ln})),$C((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 $b(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=Wk(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!Ok(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ok(t.url,e.url)||!gk(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!iC(t,e)||!gk(t.queryParams,e.queryParams);case"paramsChange":default:return!iC(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new AC(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 PC(l&&l.outlet&&l.outlet.component||null,s))}else s&&RC(n,l,r),r.canActivateChecks.push(new AC(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]})),bk(o,(function(t,e){return RC(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(Uf.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?ze(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(Za.a)(t).pipe(Object(Uf.a)((function(t){return function(t,e,n,i,a){var r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?ze(r.map((function(r){var o,s=TC(r,e,a);if(function(t){return t&&vC(t.canDeactivate)}(s))o=kk(s.canDeactivate(t,e,n,i));else{if(!vC(s))throw new Error("Invalid CanDeactivate guard");o=kk(s(t,e,n,i))}return o.pipe(jb())}))).pipe(MC()):ze(!0)}(t.component,t.route,n,e,i)})),jb((function(t){return!0!==t}),!0))}(s,i,a,t).pipe(Object(Uf.a)((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Object(Za.a)(e).pipe(Hf((function(e){return Object(Za.a)([LC(e.route.parent,i),jC(e.route,i),NC(t,e.path,n),FC(t,e.route,n)]).pipe(wi(),jb((function(t){return!0!==t}),!0))})),jb((function(t){return!0!==t}),!0))}(i,o,t,e):ze(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(yC(t.guardsResult)){var n=ck('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),qe((function(t){var n=new Kb(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 Yb(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),$C((function(t){if(t.guards.canActivateChecks.length)return ze(t).pipe(qe((function(t){var n=new Xb(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(Uf.a)((function(t){var e=t.targetSnapshot,a=t.guards.canActivateChecks;return a.length?Object(Za.a)(a).pipe(Hf((function(t){return function(t,e,n,i){return function(t,e,n,i){var a=Object.keys(t);if(0===a.length)return ze({});if(1===a.length){var r=a[0];return QC(t[r],e,n,i).pipe(Object(rn.a)((function(t){return _defineProperty({},r,t)})))}var o={};return Object(Za.a)(a).pipe(Object(Uf.a)((function(a){return QC(t[a],e,n,i).pipe(Object(rn.a)((function(t){return o[a]=t,t})))}))).pipe(Mb(),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),Xk(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return Object(Ub.a)(Nb(t,e),wb(1),Pb(e))(n)}:function(e){return Object(Ub.a)(Nb((function(e,n,i){return t(e,n,i+1)})),wb(1))(e)}}((function(t,e){return t})),Object(rn.a)((function(e){return t}))):ze(t)})))}),qe((function(t){var n=new Zb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),$C((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=!0,r=!1,o=void 0;try{for(var s,l=i.children[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(e.shouldReuseRoute(c.value.snapshot,n.value))return t(e,n,c)}}catch(u){r=!0,o=u}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return t(e,n)}))}(e,n,i);return new Yk(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,h=null;if(s)switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=o?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,a){if(0===n.length)return rC(e.root,e.root,e,i,a);var r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new oC(!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 bk(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 oC(n,e,i)}(n);if(r.toRoot())return rC(e.root,new xk([],{}),e,i,a);var o=function(t,e,n){if(t.isAbsolute)return new sC(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new sC(n.snapshot._urlSegment,!0,0);var i=aC(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 sC(i,!1,a-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),s=o.processChildren?uC(o.segmentGroup,o.index,r.commands):cC(o.segmentGroup,o.index,r.commands);return rC(o.segmentGroup,s,e,i,a)}(c,this.currentUrlTree,t,h,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=yC(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 qb?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gb&&(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 rk&&(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 rk(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()},dw.\u0275dir=a.tc({type:dw}),dw),ww=new a.v("ROUTER_CONFIGURATION"),xw=new a.v("ROUTER_FORROOT_GUARD"),Sw=[_e.n,{provide:Ek,useClass:Ak},{provide:ow,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 ow(null,t,e,n,i,a,r,yk(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 h=Object(_e.N)();u.events.subscribe((function(t){h.logGroup("Router Event: ".concat(t.constructor.name)),h.log(t.toString()),h.log(t),h.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:[Ek,gw,_e.n,a.w,a.C,a.k,XC,ww,[function(){return function t(){_classCallCheck(this,t)}}(),new a.G],[function(){return function t(){_classCallCheck(this,t)}}(),new a.G]]},gw,{provide:Kk,useFactory:function(t){return t.routerState.root},deps:[ow]},{provide:a.C,useClass:a.R},kw,bw,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(jf((function(){return ze(null)})))}}]),t}(),{provide:ww,useValue:{enableTracing:!1}}];function Ow(){return new a.E("Router",ow)}var Dw,Ew=((Dw=function(){function t(e,n){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Sw,Rw(e),{provide:xw,useFactory:Tw,deps:[[ow,new a.G,new a.Q]]},{provide:ww,useValue:n||{}},{provide:_e.o,useFactory:Pw,deps:[_e.D,[new a.u(_e.a),new a.G],ww]},{provide:Cw,useFactory:Aw,deps:[ow,_e.H,ww]},{provide:_w,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:bw},{provide:a.E,multi:!0,useFactory:Ow},[Mw,{provide:a.d,multi:!0,useFactory:jw,deps:[Mw]},{provide:Nw,useFactory:Lw,deps:[Mw]},{provide:a.b,multi:!0,useExisting:Nw}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Rw(e)]}}}]),t}()).\u0275mod=a.wc({type:Dw}),Dw.\u0275inj=a.vc({factory:function(t){return new(t||Dw)(a.Mc(xw,8),a.Mc(ow,8))}}),Dw);function Aw(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Cw(t,e,n)}function Pw(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new _e.h(t,e):new _e.B(t,e)}function Tw(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Rw(t){return[{provide:a.a,multi:!0,useValue:t},{provide:XC,multi:!0,useValue:t}]}var Iw,Mw=((Iw=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(_e.m,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(ow),a=t.injector.get(ww);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?ze(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(ww),n=this.injector.get(kw),i=this.injector.get(Cw),r=this.injector.get(ow),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||Iw)(a.Mc(a.w))},Iw.\u0275prov=a.uc({token:Iw,factory:Iw.\u0275fac}),Iw);function jw(t){return t.appInitializer.bind(t)}function Lw(t){return t.bootstrapListener.bind(t)}var Fw,Nw=new a.v("Router Initializer"),zw=((Fw=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=bb,this.settings_changed=new kb(!1),this.debugMode=!1,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(a.eb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/")}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;return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:n,customArgs:i,customOutput:a,youtubeUsername:r,youtubePassword:o})}},{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;return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:n,customArgs:i,customOutput:a,youtubeUsername:r,youtubePassword:o})}},{key:"getFileStatusMp3",value:function(t){return this.http.post(this.path+"fileStatusMp3",{name:t})}},{key:"getFileStatusMp4",value:function(t){return this.http.post(this.path+"fileStatusMp4",{name:t})}},{key:"loadNavItems",value:function(){return Object(a.eb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config")}},{key:"setConfig",value:function(t){return this.http.post(this.path+"setConfig",{new_config_file:t})}},{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",{name:t,blacklistMode:n})}},{key:"getMp3s",value:function(){return this.http.post(this.path+"getMp3s",{})}},{key:"getMp4s",value:function(){return this.http.post(this.path+"getMp4s",{})}},{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;return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:n,fullPathProvided:i},{responseType:"blob"})}},{key:"downloadArchive",value:function(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob"})}},{key:"getFileInfo",value:function(t,e,n){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:n})}},{key:"isPinSet",value:function(){return this.http.post(this.path+"isPinSet",{})}},{key:"setPin",value:function(t){return this.http.post(this.path+"setPin",{pin:t})}},{key:"checkPin",value:function(t){return this.http.post(this.path+"checkPin",{input_pin:t})}},{key:"createPlaylist",value:function(t,e,n,i){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:n,thumbnailURL:i})}},{key:"updatePlaylist",value:function(t,e,n){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:n})}},{key:"removePlaylist",value:function(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e})}},{key:"createSubscription",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:n})}},{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})}},{key:"deleteSubscriptionFile",value:function(t,e,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:n})}},{key:"getSubscription",value:function(t){return this.http.post(this.path+"getSubscription",{id:t})}},{key:"getAllSubscriptions",value:function(){return this.http.post(this.path+"getAllSubscriptions",{})}}]),t}()).\u0275fac=function(t){return new(t||Fw)(a.Mc(pm),a.Mc(ow),a.Mc(_e.e))},Fw.\u0275prov=a.uc({token:Fw,factory:Fw.\u0275fac}),Fw);sn.a.of=ze;var Bw=function(){function t(e){_classCallCheck(this,t),this.value=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Vw(t,this.value))}}]),t}(),Vw=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).value=n,i}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),e}(Ve.a);function Uw(t,e,n){return qe(t,e,n)(this)}function Hw(){return bc(Ib.a)(this)}function qw(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 Gw(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 Yw(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 Bw(t))}}(t)(this)},n("XypG"),sn.a.fromEvent=Kl,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=Uw,sn.a.prototype._do=Uw,sn.a.prototype.switch=Hw,sn.a.prototype._switch=Hw;var Ww,Qw,$w,Kw,Xw,Zw,Jw,tx,ex,nx=((Ww=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||Ww)(a.yc(zw),a.yc(ud),a.yc(cd),a.yc(m_))},Ww.\u0275cmp=a.sc({type:Ww,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,qw,2,1,"h4",0),a.Dc(1,"mat-dialog-content"),a.Dc(2,"div",1),a.td(3,Gw,3,2,"div",2),a.td(4,Yw,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:[_e.t,yd,_d,Ga,vd,Th,pp,ur,_r,Go,bv],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),Ww),ix={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"}},ax={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"}},rx={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 ox(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 sx(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 lx(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,sx,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)}}Qw=$localize(_templateObject()),$w=$localize(_templateObject2()),Kw=$localize(_templateObject3()),Xw=$localize(_templateObject4()),Zw=$localize(_templateObject5()),Jw=$localize(_templateObject6()),tx=$localize(_templateObject7()),ex=$localize(_templateObject8());var cx=["placeholder",$localize(_templateObject9())],ux=function(){return{standalone:!0}};function hx(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,cx),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,ux))("disabled",!i.secondArgEnabled)("ngModel",i.secondArg)}}var dx,fx,mx,px,gx,vx,yx,_x,bx,kx,Cx,wx,xx,Sx,Ox=((fx=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||fx)},fx.\u0275pipe=a.xc({name:"highlight",type:fx,pure:!0}),fx),Dx=((dx=function(){function t(e,n,i){_classCallCheck(this,t),this.data=e,this.dialogRef=n,this.dialog=i,this.myGroup=new Ro,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Ro,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(Si(""),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=rx,e=Object.keys(t).map((function(e){return t[e]})),n=[].concat.apply([],e);this.availableArgs=n,this.argsByCategory=t,this.argsInfo=ax}},{key:"setFirstArg",value:function(t){this.stateCtrl.setValue(t)}}],[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275fac=function(t){return new(t||dx)(a.yc(ud),a.yc(cd),a.yc(md))},dx.\u0275cmp=a.sc({type:dx,selectors:[["app-arg-modifier-dialog"]],features:[a.jc([Ox])],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,Qw),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,$w),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,Kw),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,ox,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,lx,6,3,"ng-container",13),a.Vc(28,"keyvalue"),a.Cc(),a.Dc(29,"button",14),a.Bc(30),a.Hc(31,Xw),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,Zw),a.Ac(),a.Cc(),a.Cc(),a.td(36,hx,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,Jw),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,tx),a.Ac(),a.Cc(),a.Dc(45,"button",19),a.Bc(46),a.Hc(47,ex),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,ux))("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:[vd,yd,Al,Th,pp,Yo,br,Fo,$h,ur,_r,$o,qh,_e.s,yg,Ga,Cg,Ul,Go,_e.t,_d,gd,Ta,Kg,np,dg],pipes:[_e.b,_e.l,Ox],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),dx);function Ex(t,e){if(1&t&&(a.Dc(0,"mat-option",8),a.vd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Uc();a.ad("value",n),a.kc(1),a.xd(" ",i.all_locales[n].nativeName," ")}}mx=$localize(_templateObject10()),px=$localize(_templateObject11()),gx=$localize(_templateObject12()),vx=$localize(_templateObject13()),yx=$localize(_templateObject14()),_x=$localize(_templateObject15()),bx=$localize(_templateObject16()),kx=$localize(_templateObject17()),Cx=$localize(_templateObject18()),wx=$localize(_templateObject19()),xx=$localize(_templateObject20()),Sx=$localize(_templateObject21()),Sx=a.Lc(Sx,{VAR_SELECT:"\ufffd0\ufffd"});var Ax,Px=["placeholder",$localize(_templateObject22())];Ax=$localize(_templateObject23());var Tx,Rx,Ix=["placeholder",$localize(_templateObject24())];function Mx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Jc(5,Px),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Host.url=t})),a.Cc(),a.Dc(6,"mat-hint"),a.Bc(7),a.Hc(8,Ax),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(9,"div",14),a.Dc(10,"mat-form-field",12),a.Dc(11,"input",13),a.Jc(12,Ix),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Host.port=t})),a.Cc(),a.Dc(13,"mat-hint"),a.Bc(14),a.Hc(15,Tx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(4),a.ad("ngModel",i.new_config.Host.url),a.kc(7),a.ad("ngModel",i.new_config.Host.port)}}Tx=$localize(_templateObject25()),Rx=$localize(_templateObject26());var jx=["placeholder",$localize(_templateObject27())],Lx=["placeholder",$localize(_templateObject28())];function Fx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Encryption["use-encryption"]=t})),a.Bc(4),a.Hc(5,Rx),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",16),a.Jc(9,jx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Encryption["cert-file-path"]=t})),a.Cc(),a.Cc(),a.Cc(),a.Dc(10,"div",11),a.Dc(11,"mat-form-field",12),a.Dc(12,"input",16),a.Jc(13,Lx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Encryption["key-file-path"]=t})),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();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"])}}var Nx,zx=["placeholder",$localize(_templateObject29())];Nx=$localize(_templateObject30());var Bx,Vx=["placeholder",$localize(_templateObject31())];Bx=$localize(_templateObject32());var Ux,Hx,qx=["placeholder",$localize(_templateObject33())];function Gx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Jc(5,zx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Downloader["path-audio"]=t})),a.Cc(),a.Dc(6,"mat-hint"),a.Bc(7),a.Hc(8,Nx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(9,"div",14),a.Dc(10,"mat-form-field",12),a.Dc(11,"input",13),a.Jc(12,Vx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Downloader["path-video"]=t})),a.Cc(),a.Dc(13,"mat-hint"),a.Bc(14),a.Hc(15,Bx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(16,"div",14),a.Dc(17,"mat-form-field",12),a.Dc(18,"textarea",17),a.Jc(19,qx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Downloader.custom_args=t})),a.Cc(),a.Dc(20,"mat-hint"),a.Bc(21),a.Hc(22,Ux),a.Ac(),a.Cc(),a.Cc(),a.Dc(23,"button",18),a.Qc("click",(function(){return a.ld(n),a.Uc().openArgsModifierDialog()})),a.vd(24,"Modify args"),a.Cc(),a.Cc(),a.Dc(25,"div",14),a.Dc(26,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Downloader.use_youtubedl_archive=t})),a.Bc(27),a.Hc(28,Hx),a.Ac(),a.Cc(),a.Dc(29,"p"),a.vd(30,"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();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(8),a.ad("ngModel",i.new_config.Downloader.use_youtubedl_archive)}}Ux=$localize(_templateObject34()),Hx=$localize(_templateObject35());var Yx,Wx,Qx,$x,Kx,Xx,Zx,Jx=["placeholder",$localize(_templateObject36())];function tS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Jc(5,Jx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.title_top=t})),a.Cc(),a.zc(6,"mat-hint"),a.Cc(),a.Cc(),a.Dc(7,"div",11),a.Dc(8,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.file_manager_enabled=t})),a.Bc(9),a.Hc(10,Yx),a.Ac(),a.Cc(),a.Cc(),a.Dc(11,"div",11),a.Dc(12,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.allow_quality_select=t})),a.Bc(13),a.Hc(14,Wx),a.Ac(),a.Cc(),a.Cc(),a.Dc(15,"div",11),a.Dc(16,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.download_only_mode=t})),a.Bc(17),a.Hc(18,Qx),a.Ac(),a.Cc(),a.Cc(),a.Dc(19,"div",11),a.Dc(20,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.allow_multi_download_mode=t})),a.Bc(21),a.Hc(22,$x),a.Ac(),a.Cc(),a.Cc(),a.Dc(23,"div",11),a.Dc(24,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.settings_pin_required=t})),a.Bc(25),a.Hc(26,Kx),a.Ac(),a.Cc(),a.Dc(27,"button",19),a.Qc("click",(function(){return a.ld(n),a.Uc().setNewPin()})),a.Bc(28),a.Hc(29,Xx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();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)}}Yx=$localize(_templateObject37()),Wx=$localize(_templateObject38()),Qx=$localize(_templateObject39()),$x=$localize(_templateObject40()),Kx=$localize(_templateObject41()),Xx=$localize(_templateObject42()),Zx=$localize(_templateObject43());var eS,nS,iS,aS,rS,oS=["placeholder",$localize(_templateObject44())];function sS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.API.use_youtube_API=t})),a.Bc(4),a.Hc(5,Zx),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",20),a.Jc(9,oS),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.API.youtube_API_key=t})),a.Cc(),a.Dc(10,"mat-hint"),a.Dc(11,"a",21),a.Bc(12),a.Hc(13,eS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();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 lS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-select",22),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Themes.default_theme=t})),a.Dc(4,"mat-option",23),a.Bc(5),a.Hc(6,nS),a.Ac(),a.Cc(),a.Dc(7,"mat-option",24),a.Bc(8),a.Hc(9,iS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(10,"div",14),a.Dc(11,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Themes.allow_theme_change=t})),a.Bc(12),a.Hc(13,aS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(3),a.ad("ngModel",i.new_config.Themes.default_theme),a.kc(8),a.ad("ngModel",i.new_config.Themes.allow_theme_change)}}eS=$localize(_templateObject45()),nS=$localize(_templateObject46()),iS=$localize(_templateObject47()),aS=$localize(_templateObject48()),rS=$localize(_templateObject49());var cS,uS=["placeholder",$localize(_templateObject50())];cS=$localize(_templateObject51());var hS,dS,fS,mS,pS,gS,vS,yS,_S,bS,kS,CS,wS,xS,SS,OS=["placeholder",$localize(_templateObject52())];function DS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Subscriptions.allow_subscriptions=t})),a.Bc(4),a.Hc(5,rS),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",16),a.Jc(9,uS),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Subscriptions.subscriptions_base_path=t})),a.Cc(),a.Dc(10,"mat-hint"),a.Bc(11),a.Hc(12,cS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(13,"div",25),a.Dc(14,"mat-form-field",12),a.Dc(15,"input",16),a.Jc(16,OS),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Subscriptions.subscriptions_check_interval=t})),a.Cc(),a.Dc(17,"mat-hint"),a.Bc(18),a.Hc(19,hS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(20,"div",14),a.Dc(21,"mat-checkbox",26),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Subscriptions.subscriptions_use_youtubedl_archive=t})),a.Bc(22),a.Hc(23,dS),a.Ac(),a.Cc(),a.Dc(24,"p"),a.Dc(25,"a",27),a.Bc(26),a.Hc(27,fS),a.Ac(),a.Cc(),a.vd(28,"\xa0"),a.Bc(29),a.Hc(30,mS),a.Ac(),a.Cc(),a.Dc(31,"p"),a.Bc(32),a.Hc(33,pS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();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 ES(t,e){if(1&t&&(a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"h6"),a.vd(4,"Chrome"),a.Cc(),a.Dc(5,"p"),a.Dc(6,"a",28),a.Bc(7),a.Hc(8,gS),a.Ac(),a.Cc(),a.vd(9,"\xa0"),a.Bc(10),a.Hc(11,vS),a.Ac(),a.Cc(),a.Dc(12,"p"),a.Bc(13),a.Hc(14,yS),a.Ac(),a.Cc(),a.zc(15,"mat-divider",29),a.Cc(),a.Dc(16,"div",11),a.Dc(17,"h6"),a.vd(18,"Firefox"),a.Cc(),a.Dc(19,"p"),a.Dc(20,"a",30),a.Bc(21),a.Hc(22,_S),a.Ac(),a.Cc(),a.vd(23,"\xa0"),a.Bc(24),a.Hc(25,bS),a.Ac(),a.Cc(),a.Dc(26,"p"),a.Dc(27,"a",31),a.Bc(28),a.Hc(29,kS),a.Ac(),a.Cc(),a.vd(30,"\xa0"),a.Bc(31),a.Hc(32,CS),a.Ac(),a.Cc(),a.zc(33,"mat-divider",29),a.Cc(),a.Dc(34,"div",11),a.Dc(35,"h6"),a.vd(36,"Bookmarklet"),a.Cc(),a.Dc(37,"p"),a.Bc(38),a.Hc(39,wS),a.Ac(),a.Cc(),a.Dc(40,"p"),a.Dc(41,"a",32),a.vd(42,"YTDL-Bookmarklet"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()),2&t){var n=a.Uc();a.kc(41),a.ad("href",n.generated_bookmarklet_code,a.nd)}}function AS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Advanced.use_default_downloading_agent=t})),a.Bc(4),a.Hc(5,xS),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",33),a.Dc(7,"mat-select",34),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Advanced.custom_downloading_agent=t})),a.Dc(8,"mat-option",35),a.vd(9,"Select a downloader"),a.Cc(),a.Dc(10,"mat-option",36),a.vd(11,"aria2c"),a.Cc(),a.Dc(12,"mat-option",37),a.vd(13,"avconv"),a.Cc(),a.Dc(14,"mat-option",38),a.vd(15,"axel"),a.Cc(),a.Dc(16,"mat-option",39),a.vd(17,"curl"),a.Cc(),a.Dc(18,"mat-option",40),a.vd(19,"ffmpeg"),a.Cc(),a.Dc(20,"mat-option",41),a.vd(21,"httpie"),a.Cc(),a.Dc(22,"mat-option",42),a.vd(23,"wget"),a.Cc(),a.Cc(),a.Cc(),a.Dc(24,"div",43),a.Dc(25,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Advanced.allow_advanced_download=t})),a.Bc(26),a.Hc(27,SS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(3),a.ad("ngModel",i.new_config.Advanced.use_default_downloading_agent),a.kc(4),a.ad("disabled",i.new_config.Advanced.use_default_downloading_agent)("ngModel",i.new_config.Advanced.custom_downloading_agent),a.kc(18),a.ad("ngModel",i.new_config.Advanced.allow_advanced_download)}}hS=$localize(_templateObject53()),dS=$localize(_templateObject54()),fS=$localize(_templateObject55()),mS=$localize(_templateObject56()),pS=$localize(_templateObject57()),gS=$localize(_templateObject58()),vS=$localize(_templateObject59()),yS=$localize(_templateObject60()),_S=$localize(_templateObject61()),bS=$localize(_templateObject62()),kS=$localize(_templateObject63()),CS=$localize(_templateObject64()),wS=$localize(_templateObject65()),xS=$localize(_templateObject66()),SS=$localize(_templateObject67());var PS,TS,RS,IS,MS,jS,LS,FS,NS,zS=((PS=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=ix,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._settingsSame=!0}return _createClass(t,[{key:"ngOnInit",value:function(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}},{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(nx,{data:{resetMode:!0}})}},{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))%7D)()")}},{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(Dx,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe((function(e){e&&(t.new_config.Downloader.custom_args=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||PS)(a.yc(zw),a.yc(m_),a.yc(i.b),a.yc(md))},PS.\u0275cmp=a.sc({type:PS,selectors:[["app-settings"]],decls:75,vars:14,consts:[["mat-dialog-title",""],[1,"locale-select",3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"settings-expansion-panel"],["class","container-fluid",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],[3,"value"],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-4"],["color","accent",3,"ngModel","ngModelChange"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-stroked-button","",2,"margin-left","12px",3,"click"],["mat-stroked-button","",2,"margin-left","15px",3,"disabled","click"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["color","accent",2,"width","100px",3,"ngModel","ngModelChange"],["value","default"],["value","dark"],[1,"col-12","mt-5"],["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"],["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"],["target","_blank",3,"href"],[1,"col-12","my-2"],["color","accent",2,"width","200px",3,"disabled","ngModel","ngModelChange"],["value",""],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,mx),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div"),a.vd(4," Language:\xa0\xa0\xa0"),a.Dc(5,"mat-select",1),a.Qc("selectionChange",(function(t){return e.localeSelectChanged(t.value)}))("valueChange",(function(t){return e.initialLocale=t})),a.td(6,Ex,2,2,"mat-option",2),a.Cc(),a.Cc(),a.Dc(7,"mat-expansion-panel",3),a.Dc(8,"mat-expansion-panel-header"),a.Dc(9,"mat-panel-title"),a.Bc(10),a.Hc(11,px),a.Ac(),a.Cc(),a.Cc(),a.td(12,Mx,16,2,"div",4),a.Cc(),a.Dc(13,"mat-expansion-panel",3),a.Dc(14,"mat-expansion-panel-header"),a.Dc(15,"mat-panel-title"),a.Bc(16),a.Hc(17,gx),a.Ac(),a.Cc(),a.Cc(),a.td(18,Fx,14,5,"div",4),a.Cc(),a.Dc(19,"mat-expansion-panel",3),a.Dc(20,"mat-expansion-panel-header"),a.Dc(21,"mat-panel-title"),a.Bc(22),a.Hc(23,vx),a.Ac(),a.Cc(),a.Cc(),a.td(24,Gx,31,4,"div",4),a.Cc(),a.Dc(25,"mat-expansion-panel",3),a.Dc(26,"mat-expansion-panel-header"),a.Dc(27,"mat-panel-title"),a.Bc(28),a.Hc(29,yx),a.Ac(),a.Cc(),a.Cc(),a.td(30,tS,30,7,"div",4),a.Cc(),a.Dc(31,"mat-expansion-panel",3),a.Dc(32,"mat-expansion-panel-header"),a.Dc(33,"mat-panel-title"),a.Bc(34),a.Hc(35,_x),a.Ac(),a.Cc(),a.Cc(),a.td(36,sS,14,3,"div",4),a.Cc(),a.Dc(37,"mat-expansion-panel",3),a.Dc(38,"mat-expansion-panel-header"),a.Dc(39,"mat-panel-title"),a.Bc(40),a.Hc(41,bx),a.Ac(),a.Cc(),a.Cc(),a.td(42,lS,14,2,"div",4),a.Cc(),a.Dc(43,"mat-expansion-panel",3),a.Dc(44,"mat-expansion-panel-header"),a.Dc(45,"mat-panel-title"),a.Bc(46),a.Hc(47,kx),a.Ac(),a.Cc(),a.Cc(),a.td(48,DS,34,7,"div",4),a.Cc(),a.Dc(49,"mat-expansion-panel",3),a.Dc(50,"mat-expansion-panel-header"),a.Dc(51,"mat-panel-title"),a.Bc(52),a.Hc(53,Cx),a.Ac(),a.Cc(),a.Cc(),a.td(54,ES,43,1,"div",4),a.Cc(),a.Dc(55,"mat-expansion-panel",3),a.Dc(56,"mat-expansion-panel-header"),a.Dc(57,"mat-panel-title"),a.Bc(58),a.Hc(59,wx),a.Ac(),a.Cc(),a.Cc(),a.td(60,AS,28,4,"div",4),a.Cc(),a.Cc(),a.Dc(61,"mat-dialog-actions"),a.Dc(62,"div",5),a.Dc(63,"button",6),a.Qc("click",(function(){return e.saveSettings()})),a.Dc(64,"mat-icon"),a.vd(65,"done"),a.Cc(),a.vd(66,"\xa0\xa0 "),a.Bc(67),a.Hc(68,xx),a.Ac(),a.Cc(),a.Dc(69,"button",7),a.Dc(70,"mat-icon"),a.vd(71,"cancel"),a.Cc(),a.vd(72,"\xa0\xa0 "),a.Dc(73,"span"),a.Hc(74,Sx),a.Cc(),a.Cc(),a.Cc(),a.Cc()),2&t&&(a.kc(5),a.ad("value",e.initialLocale),a.kc(1),a.ad("ngForOf",e.supported_locales),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(3),a.ad("disabled",e.settingsSame()),a.kc(6),a.ad("mat-dialog-close",!1),a.kc(5),a.Kc(e.settingsAreTheSame+""),a.Ic(74))},directives:[vd,yd,Jv,_e.s,rf,sf,cf,_e.t,_d,Ga,np,gd,Ta,Th,pp,ur,Bs,_r,Go,wh,Ul,vp],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.locale-select[_ngcontent-%COMP%]{margin-bottom:10px;width:130px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}"]}),PS);TS=$localize(_templateObject68()),RS=$localize(_templateObject69()),IS=$localize(_templateObject70()),MS=$localize(_templateObject71()),jS=$localize(_templateObject72()),LS=$localize(_templateObject73()),FS=$localize(_templateObject74()),NS=$localize(_templateObject75());var BS,VS,US,HS,qS,GS,YS=((BS=function(){function t(){_classCallCheck(this,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.version="v3.5"}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||BS)},BS.\u0275cmp=a.sc({type:BS,selectors:[["app-about-dialog"]],decls:38,vars:4,consts:[["mat-dialog-title",""],[2,"margin-bottom","5px"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px","margin-bottom","10px"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,TS),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"p"),a.Dc(5,"i"),a.vd(6,"YoutubeDL-Material"),a.Cc(),a.vd(7,"\xa0"),a.Bc(8),a.Hc(9,RS),a.Ac(),a.Cc(),a.Dc(10,"p"),a.Dc(11,"i"),a.vd(12,"YoutubeDL-Material"),a.Cc(),a.vd(13,"\xa0"),a.Bc(14),a.Hc(15,IS),a.Ac(),a.Cc(),a.Dc(16,"p"),a.Bc(17),a.Hc(18,MS),a.Ac(),a.vd(19,"\xa0"),a.Dc(20,"a",2),a.Bc(21),a.Hc(22,jS),a.Ac(),a.Cc(),a.vd(23,"\xa0"),a.Bc(24),a.Hc(25,LS),a.Ac(),a.Cc(),a.Dc(26,"a",2),a.zc(27,"img",3),a.Cc(),a.Dc(28,"p"),a.Bc(29),a.Hc(30,FS),a.Ac(),a.vd(31),a.Dc(32,"a",2),a.Bc(33),a.Hc(34,NS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(35,"mat-dialog-actions"),a.Dc(36,"button",4),a.vd(37,"Close"),a.Cc(),a.Cc()),2&t&&(a.kc(20),a.ad("href",e.issuesLink,a.nd),a.kc(6),a.ad("href",e.projectLink,a.nd),a.kc(5),a.xd("\xa0",e.version," - "),a.kc(1),a.ad("href",e.latestUpdateLink,a.nd))},directives:[vd,yd,_d,Ga,gd],styles:["i[_ngcontent-%COMP%]{margin-right:1px}"]}),BS),WS=["sidenav"],QS=["hamburgerMenu"];function $S(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",17,18),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 KS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",19),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 XS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",11),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,GS),a.Cc(),a.zc(5,"mat-slide-toggle",20),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)}}VS=$localize(_templateObject76()),US=$localize(_templateObject77()),HS=$localize(_templateObject78()),qS=$localize(_templateObject79()),GS=$localize(_templateObject80());var ZS,JS,tO=((ZS=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=bb,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 qb?s.navigator=localStorage.getItem("player_navigator"):t instanceof Gb&&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(zS,{width:"80vw"})}},{key:"openPinDialog",value:function(){var t=this;this.dialog.open(nx,{}).afterClosed().subscribe((function(e){e&&t.actuallyOpenSettingsDialog()}))}},{key:"openAboutDialog",value:function(){this.dialog.open(YS,{width:"80vw"})}}]),t}()).\u0275fac=function(t){return new(t||ZS)(a.yc(zw),a.yc(m_),a.yc(md),a.yc(ow),a.yc(_u),a.yc(a.q))},ZS.\u0275cmp=a.sc({type:ZS,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(a.zd(WS,!0),a.zd(QS,!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:40,vars:9,consts:[[2,"width","100%","height","100%"],["color","primary",1,"top"],["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"],[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"],[2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/subscriptions",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"]],template:function(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",0),a.Dc(1,"div"),a.Dc(2,"mat-toolbar",1),a.Dc(3,"div",2),a.Dc(4,"div",3),a.td(5,$S,4,0,"button",4),a.td(6,KS,3,0,"button",5),a.Cc(),a.Dc(7,"div",6),a.Dc(8,"div"),a.vd(9),a.Cc(),a.Cc(),a.Dc(10,"div",7),a.Dc(11,"button",8),a.Dc(12,"mat-icon"),a.vd(13,"more_vert"),a.Cc(),a.Cc(),a.Dc(14,"mat-menu",null,9),a.td(16,XS,6,2,"button",10),a.Dc(17,"button",11),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,VS),a.Cc(),a.Cc(),a.Dc(22,"button",11),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,US),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(27,"div",12),a.Dc(28,"mat-sidenav-container",13),a.Dc(29,"mat-sidenav",null,14),a.Dc(31,"mat-nav-list"),a.Dc(32,"a",15),a.Qc("click",(function(){return a.ld(n),a.hd(30).close()})),a.Bc(33),a.Hc(34,HS),a.Ac(),a.Cc(),a.Dc(35,"a",16),a.Qc("click",(function(){return a.ld(n),a.hd(30).close()})),a.Bc(36),a.Hc(37,qS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(38,"mat-sidenav-content"),a.zc(39,"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]&&e.allowSubscriptions),a.kc(1),a.ad("ngIf","/player"===e.router.url.split(";")[0]),a.kc(3),a.wd(e.topBarTitle),a.kc(2),a.ad("matMenuTriggerFor",i),a.kc(5),a.ad("ngIf",e.allowThemeChange),a.kc(22),a.sd("background",e.postsService.theme?e.postsService.theme.background_color:null,a.rc)}},directives:[__,_e.t,Ga,Cg,np,yg,dg,Ty,Ay,Fp,Hp,lw,Ey,vw,qy],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}"]}),ZS),eO=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.uc({token:t,factory:t.\u0275fac}),t}(),nO=function(){var t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch",t}(),iO=function(){var t={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return t[t.Basic]="Basic",t[t.Cors]="Cors",t[t.Default]="Default",t[t.Error]="Error",t[t.Opaque]="Opaque",t}(),aO=function(){var t={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return t[t.NONE]="NONE",t[t.JSON]="JSON",t[t.FORM]="FORM",t[t.FORM_DATA]="FORM_DATA",t[t.TEXT]="TEXT",t[t.BLOB]="BLOB",t[t.ARRAY_BUFFER]="ARRAY_BUFFER",t}(),rO=function(){var t={Text:0,Json:1,ArrayBuffer:2,Blob:3};return t[t.Text]="Text",t[t.Json]="Json",t[t.ArrayBuffer]="ArrayBuffer",t[t.Blob]="Blob",t}(),oO=function(){function t(e){var n=this;_classCallCheck(this,t),this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach((function(t,e){t.forEach((function(t){return n.append(e,t)}))})):Object.keys(e).forEach((function(t){var i=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),i.forEach((function(e){return n.append(t,e)}))})))}return _createClass(t,[{key:"append",value:function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)}},{key:"delete",value:function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)}},{key:"forEach",value:function(t){var e=this;this._headers.forEach((function(n,i){return t(n,e._normalizedNames.get(i),e._headers)}))}},{key:"get",value:function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null}},{key:"has",value:function(t){return this._headers.has(t.toLowerCase())}},{key:"keys",value:function(){return Array.from(this._normalizedNames.values())}},{key:"set",value:function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)}},{key:"values",value:function(){return Array.from(this._headers.values())}},{key:"toJSON",value:function(){var t=this,e={};return this._headers.forEach((function(n,i){var a=[];n.forEach((function(t){return a.push.apply(a,_toConsumableArray(t.split(",")))})),e[t._normalizedNames.get(i)]=a})),e}},{key:"getAll",value:function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null}},{key:"entries",value:function(){throw new Error('"entries" method is not implemented on Headers class')}},{key:"mayBeSetNormalizedName",value:function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)}}],[{key:"fromResponseHeaderString",value:function(e){var n=new t;return e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),a=t.slice(e+1).trim();n.set(i,a)}})),n}}]),t}(),sO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t);var n=e.body,i=e.status,a=e.headers,r=e.statusText,o=e.type,s=e.url;this.body=null!=n?n:null,this.status=null!=i?i:null,this.headers=null!=a?a:null,this.statusText=null!=r?r:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return _createClass(t,[{key:"merge",value:function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})}}]),t}(),lO=((JS=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,{status:200,statusText:"Ok",type:iO.Default,headers:new oO}))}return _inherits(e,t),e}(sO)).\u0275fac=function(t){return new(t||JS)},JS.\u0275prov=a.uc({token:JS,factory:JS.\u0275fac}),JS),cO=function t(){_classCallCheck(this,t)},uO=function t(){_classCallCheck(this,t)};function hO(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return nO.Get;case"POST":return nO.Post;case"PUT":return nO.Put;case"DELETE":return nO.Delete;case"OPTIONS":return nO.Options;case"HEAD":return nO.Head;case"PATCH":return nO.Patch}throw new Error('Invalid request method. The method "'.concat(t,'" is not supported.'))}var dO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return fO(t)}},{key:"encodeValue",value:function(t){return fO(t)}}]),t}();function fO(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 mO,pO,gO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new dO;_classCallCheck(this,t),this.rawParams=e,this.queryEncoder=n,this.paramsMap=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=new Map;return t.length>0&&t.split("&").forEach((function(t){var n=t.indexOf("="),i=_slicedToArray(-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],2),a=i[0],r=i[1],o=e.get(a)||[];o.push(r),e.set(a,o)})),e}(e)}return _createClass(t,[{key:"clone",value:function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e}},{key:"has",value:function(t){return this.paramsMap.has(t)}},{key:"get",value:function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null}},{key:"getAll",value:function(t){return this.paramsMap.get(t)||[]}},{key:"set",value:function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)}},{key:"setAll",value:function(t){var e=this;t.paramsMap.forEach((function(t,n){var i=e.paramsMap.get(n)||[];i.length=0,i.push(t[0]),e.paramsMap.set(n,i)}))}},{key:"append",value:function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}}},{key:"appendAll",value:function(t){var e=this;t.paramsMap.forEach((function(t,n){for(var i=e.paramsMap.get(n)||[],a=0;a0&&void 0!==arguments[0]?arguments[0]:"legacy";if(this._body instanceof gO)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: ".concat(t))}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}},{key:"arrayBuffer",value:function(){return this._body instanceof ArrayBuffer?this._body:function(t){for(var e=new Uint16Array(t.length),n=0,i=t.length;n=200&&n.status<=299,n.statusText=t.statusText,n.headers=t.headers,n.type=t.type,n.url=t.url,n}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"Response with status: ".concat(this.status," ").concat(this.statusText," for URL: ").concat(this.url)}}]),e}(vO),_O=/^\)\]\}',?\n/,bO=function(){function t(e,n,i){var a=this;_classCallCheck(this,t),this.request=e,this.response=new sn.a((function(t){var r=n.build();r.open(nO[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(r.withCredentials=e.withCredentials);var o=function(){var n=1223===r.status?204:r.status,a=null;204!==n&&("string"==typeof(a=void 0===r.response?r.responseText:r.response)&&(a=a.replace(_O,""))),0===n&&(n=a?200:0);var o,s=oO.fromResponseHeaderString(r.getAllResponseHeaders()),l=("responseURL"in(o=r)?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null)||e.url,c=new sO({body:a,status:n,headers:s,statusText:r.statusText||"OK",url:l});null!=i&&(c=i.merge(c));var u=new yO(c);if(u.ok=function(t){return t>=200&&t<300}(n),u.ok)return t.next(u),void t.complete();t.error(u)},s=function(e){var n=new sO({body:e,type:iO.Error,status:r.status,statusText:r.statusText});null!=i&&(n=i.merge(n)),t.error(new yO(n))};if(a.setDetectedContentType(e,r),null==e.headers&&(e.headers=new oO),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach((function(t,e){return r.setRequestHeader(e,t.join(","))})),null!=e.responseType&&null!=r.responseType)switch(e.responseType){case rO.ArrayBuffer:r.responseType="arraybuffer";break;case rO.Json:r.responseType="json";break;case rO.Text:r.responseType="text";break;case rO.Blob:r.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return r.addEventListener("load",o),r.addEventListener("error",s),r.send(a.request.getBody()),function(){r.removeEventListener("load",o),r.removeEventListener("error",s),r.abort()}}))}return _createClass(t,[{key:"setDetectedContentType",value:function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case aO.NONE:break;case aO.JSON:e.setRequestHeader("content-type","application/json");break;case aO.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case aO.TEXT:e.setRequestHeader("content-type","text/plain");break;case aO.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}}}]),t}(),kO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"XSRF-TOKEN",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"X-XSRF-TOKEN";_classCallCheck(this,t),this._cookieName=e,this._headerName=n}return _createClass(t,[{key:"configureRequest",value:function(t){var e=Object(_e.N)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)}}]),t}(),CO=((mO=function(){function t(e,n,i){_classCallCheck(this,t),this._browserXHR=e,this._baseResponseOptions=n,this._xsrfStrategy=i}return _createClass(t,[{key:"createConnection",value:function(t){return this._xsrfStrategy.configureRequest(t),new bO(t,this._browserXHR,this._baseResponseOptions)}}]),t}()).\u0275fac=function(t){return new(t||mO)(a.Mc(eO),a.Mc(sO),a.Mc(uO))},mO.\u0275prov=a.uc({token:mO,factory:mO.\u0275fac}),mO),wO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t);var n=e.method,i=e.headers,a=e.body,r=e.url,o=e.search,s=e.params,l=e.withCredentials,c=e.responseType;this.method=null!=n?hO(n):null,this.headers=null!=i?i:null,this.body=null!=a?a:null,this.url=null!=r?r:null,this.params=this._mergeSearchParams(s||o),this.withCredentials=null!=l?l:null,this.responseType=null!=c?c:null}return _createClass(t,[{key:"search",get:function(){return this.params},set:function(t){this.params=t}}]),_createClass(t,[{key:"merge",value:function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new oO(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})}},{key:"_mergeSearchParams",value:function(t){return t?t instanceof gO?t.clone():"string"==typeof t?new gO(t):this._parseParams(t):this.params}},{key:"_parseParams",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new gO;return Object.keys(e).forEach((function(i){var a=e[i];Array.isArray(a)?a.forEach((function(e){return t._appendParam(i,e,n)})):t._appendParam(i,a,n)})),n}},{key:"_appendParam",value:function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)}}]),t}(),xO=((pO=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,{method:nO.Get,headers:new oO}))}return _inherits(e,t),e}(wO)).\u0275fac=function(t){return new(t||pO)},pO.\u0275prov=a.uc({token:pO,factory:pO.\u0275fac}),pO),SO=function(t){function e(t){var n;_classCallCheck(this,e),n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this));var i=t.url;n.url=t.url;var a,r=t.params||t.search;if(r&&(a="object"!=typeof r||r instanceof gO?r.toString():function(t){var e=new gO;return Object.keys(t).forEach((function(n){var i=t[n];i&&Array.isArray(i)?i.forEach((function(t){return e.append(n,t.toString())})):e.append(n,i.toString())})),e}(r).toString()).length>0){var o="?";-1!=n.url.indexOf("?")&&(o="&"==n.url[n.url.length-1]?"":"&"),n.url=i+o+a}return n._body=t.body,n.method=hO(t.method),n.headers=new oO(t.headers),n.contentType=n.detectContentType(),n.withCredentials=t.withCredentials,n.responseType=t.responseType,n}return _inherits(e,t),_createClass(e,[{key:"detectContentType",value:function(){switch(this.headers.get("content-type")){case"application/json":return aO.JSON;case"application/x-www-form-urlencoded":return aO.FORM;case"multipart/form-data":return aO.FORM_DATA;case"text/plain":case"text/html":return aO.TEXT;case"application/octet-stream":return this._body instanceof PO?aO.ARRAY_BUFFER:aO.BLOB;default:return this.detectContentTypeFromBody()}}},{key:"detectContentTypeFromBody",value:function(){return null==this._body?aO.NONE:this._body instanceof gO?aO.FORM:this._body instanceof EO?aO.FORM_DATA:this._body instanceof AO?aO.BLOB:this._body instanceof PO?aO.ARRAY_BUFFER:this._body&&"object"==typeof this._body?aO.JSON:aO.TEXT}},{key:"getBody",value:function(){switch(this.contentType){case aO.JSON:case aO.FORM:return this.text();case aO.FORM_DATA:return this._body;case aO.TEXT:return this.text();case aO.BLOB:return this.blob();case aO.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}]),e}(vO),OO=function(){},DO="object"==typeof window?window:OO,EO=DO.FormData||OO,AO=DO.Blob||OO,PO=DO.ArrayBuffer||OO;function TO(t,e){return t.createConnection(e).response}function RO(t,e,n,i){return t.merge(new wO(e?{method:e.method||n,url:e.url||i,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:i}))}var IO,MO=((IO=function(){function t(e,n){_classCallCheck(this,t),this._backend=e,this._defaultOptions=n}return _createClass(t,[{key:"request",value:function(t,e){var n;if("string"==typeof t)n=TO(this._backend,new SO(RO(this._defaultOptions,e,nO.Get,t)));else{if(!(t instanceof SO))throw new Error("First argument must be a url string or Request instance.");n=TO(this._backend,t)}return n}},{key:"get",value:function(t,e){return this.request(new SO(RO(this._defaultOptions,e,nO.Get,t)))}},{key:"post",value:function(t,e,n){return this.request(new SO(RO(this._defaultOptions.merge(new wO({body:e})),n,nO.Post,t)))}},{key:"put",value:function(t,e,n){return this.request(new SO(RO(this._defaultOptions.merge(new wO({body:e})),n,nO.Put,t)))}},{key:"delete",value:function(t,e){return this.request(new SO(RO(this._defaultOptions,e,nO.Delete,t)))}},{key:"patch",value:function(t,e,n){return this.request(new SO(RO(this._defaultOptions.merge(new wO({body:e})),n,nO.Patch,t)))}},{key:"head",value:function(t,e){return this.request(new SO(RO(this._defaultOptions,e,nO.Head,t)))}},{key:"options",value:function(t,e){return this.request(new SO(RO(this._defaultOptions,e,nO.Options,t)))}}]),t}()).\u0275fac=function(t){return new(t||IO)(a.Mc(cO),a.Mc(wO))},IO.\u0275prov=a.uc({token:IO,factory:IO.\u0275fac}),IO);function jO(){return new kO}function LO(t,e){return new MO(t,e)}var FO,NO=((FO=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:FO}),FO.\u0275inj=a.vc({factory:function(t){return new(t||FO)},providers:[{provide:MO,useFactory:LO,deps:[CO,wO]},eO,{provide:wO,useClass:xO},{provide:sO,useClass:lO},CO,{provide:uO,useFactory:jO}]}),FO);function zO(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){t.done?a(t.value):new n((function(e){e(t.value)})).then(o,s)}l((i=i.apply(t,e||[])).next())}))}var BO,VO,UO=n("Iab2"),HO=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=GO(n.getMonth()+1),a=GO(n.getDate()),r=n.getFullYear();e=n.getHours();var o=GO(n.getMinutes()),s="AM",l=parseInt(e,10);return l>12?(s="PM",e=l-12):0===l&&(e="12"),i+"-"+a+"-"+r+" "+(e=GO(e))+":"+o+" "+s}(Date.parse(this.uploaded))},qO=((BO=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 HO({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||BO)(a.Mc(pm))},BO.\u0275prov=a.uc({token:BO,factory:BO.\u0275fac,providedIn:"root"}),BO);function GO(t){return t<10?"0"+t:t}VO=$localize(_templateObject81());var YO,WO,QO=["placeholder",$localize(_templateObject82())];function $O(t,e){1&t&&(a.Dc(0,"mat-label"),a.Bc(1),a.Hc(2,YO),a.Ac(),a.Cc())}function KO(t,e){1&t&&(a.Dc(0,"mat-label"),a.Bc(1),a.Hc(2,WO),a.Ac(),a.Cc())}function XO(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 ZO(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))}YO=$localize(_templateObject83()),WO=$localize(_templateObject84());var JO,tD,eD,nD,iD,aD,rD=function(){return{standalone:!0}},oD=((JO=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 Ro,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 SD(t,e){if(1&t&&(a.Dc(0,"div",34),a.td(1,xD,12,7,"span",28),a.Cc()),2&t){var n=a.Uc();a.kc(1),a.ad("ngForOf",n.results)}}function OD(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,_D),a.Ac(),a.Cc()}if(2&t){var i=a.Uc();a.ad("disabled",i.current_download)("ngModel",i.multiDownloadMode)}}function DD(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,bD),a.Ac(),a.Cc()}}_D=$localize(_templateObject92()),bD=$localize(_templateObject93()),kD=$localize(_templateObject94()),CD=$localize(_templateObject95());var ED,AD,PD=["placeholder",$localize(_templateObject96())];ED=$localize(_templateObject97()),AD=$localize(_templateObject98());var TD,RD,ID,MD,jD=["placeholder",$localize(_templateObject99())];function LD(t,e){if(1&t&&(a.Dc(0,"p"),a.Bc(1),a.Hc(2,ID),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)}}TD=$localize(_templateObject100()),RD=$localize(_templateObject101()),ID=$localize(_templateObject102()),MD=$localize(_templateObject103());var FD=["placeholder",$localize(_templateObject104())];function ND(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,MD),a.Ac(),a.Cc(),a.Dc(4,"mat-form-field",53),a.Dc(5,"input",49),a.Jc(6,FD),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,vD)),a.kc(4),a.ad("ngModel",i.youtubeUsername)("ngModelOptions",a.cd(7,vD))("disabled",!i.youtubeAuthEnabled)}}var zD,BD,VD,UD,HD,qD,GD,YD,WD=["placeholder",$localize(_templateObject105())];function QD(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,WD),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,vD))("disabled",!i.youtubeAuthEnabled)}}function $D(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,kD),a.Ac(),a.Cc(),a.Cc(),a.td(7,LD,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,CD),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,PD),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,ED),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,AD),a.Ac(),a.Cc(),a.Dc(27,"mat-form-field",48),a.Dc(28,"input",49),a.Jc(29,jD),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,TD),a.Ac(),a.Cc(),a.vd(34,". "),a.Bc(35),a.Hc(36,RD),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.td(37,ND,7,8,"div",51),a.td(38,QD,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,vD)),a.kc(7),a.ad("ngModel",i.customArgs)("ngModelOptions",a.cd(16,vD))("disabled",!i.customArgsEnabled),a.kc(6),a.ad("disabled",i.current_download)("ngModel",i.customOutputEnabled)("ngModelOptions",a.cd(17,vD)),a.kc(4),a.ad("ngModel",i.customOutput)("ngModelOptions",a.cd(18,vD))("disabled",!i.customOutputEnabled),a.kc(9),a.ad("ngIf",!i.youtubeAuthDisabledOverride),a.kc(1),a.ad("ngIf",!i.youtubeAuthDisabledOverride)}}function KD(t,e){1&t&&a.zc(0,"mat-divider",2)}function XD(t,e){if(1&t){var n=a.Ec();a.Bc(0),a.Dc(1,"app-download-item",59),a.Qc("cancelDownload",(function(t){return a.ld(n),a.Uc(3).cancelDownload(t)})),a.Cc(),a.td(2,KD,1,0,"mat-divider",60),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 ZD(t,e){if(1&t&&(a.Dc(0,"div",5),a.td(1,XD,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)}}function JD(t,e){if(1&t&&(a.Dc(0,"div",56),a.Dc(1,"mat-card",1),a.Dc(2,"div",57),a.td(3,ZD,2,1,"div",58),a.Cc(),a.Cc(),a.Cc()),2&t){var n=a.Uc();a.kc(3),a.ad("ngForOf",n.downloads)}}function tE(t,e){if(1&t&&(a.Dc(0,"div",66),a.zc(1,"mat-progress-bar",67),a.zc(2,"br"),a.Cc()),2&t){var n=a.Uc(2);a.ad("ngClass",n.determinateProgress&&100===n.percentDownloaded?"make-room-for-spinner":"equal-sizes"),a.kc(1),a.bd("value",n.percentDownloaded)}}function eE(t,e){1&t&&(a.Dc(0,"div",68),a.zc(1,"mat-spinner",33),a.Cc()),2&t&&(a.kc(1),a.ad("diameter",25))}function nE(t,e){1&t&&a.zc(0,"mat-progress-bar",69)}function iE(t,e){if(1&t&&(a.Dc(0,"div",61),a.Dc(1,"div",62),a.td(2,tE,3,2,"div",63),a.td(3,eE,2,1,"div",64),a.td(4,nE,1,0,"ng-template",null,65,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.determinateProgress)("ngIfElse",n),a.kc(1),a.ad("ngIf",i.determinateProgress&&100===i.percentDownloaded)}}function aE(t,e){}function rE(t,e){1&t&&a.zc(0,"mat-progress-bar",81)}function oE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",78,79),a.Qc("removeFile",(function(t){return a.ld(n),a.Uc(3).removeFromMp3(t)})),a.Cc(),a.td(3,rE,1,0,"mat-progress-bar",80),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)("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 sE(t,e){1&t&&a.zc(0,"mat-progress-bar",81)}function lE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",83,79),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,sE,1,0,"mat-progress-bar",80),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 cE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-list",82),a.Qc("resize",(function(t){return a.ld(n),a.Uc(3).onResize(t)}),!1,a.kd),a.td(1,lE,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 uE(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,qD),a.Ac(),a.Cc())}function hE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-grid-list",73),a.Qc("resize",(function(t){return a.ld(n),a.Uc(2).onResize(t)}),!1,a.kd),a.td(2,oE,4,8,"mat-grid-tile",28),a.Cc(),a.zc(3,"mat-divider"),a.Dc(4,"div",74),a.Dc(5,"h6"),a.Hc(6,HD),a.Cc(),a.Cc(),a.td(7,cE,2,2,"mat-grid-list",75),a.Dc(8,"div",76),a.Dc(9,"button",77),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,uE,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 dE(t,e){1&t&&a.zc(0,"mat-progress-bar",81)}function fE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",78,84),a.Qc("removeFile",(function(t){return a.ld(n),a.Uc(3).removeFromMp4(t)})),a.Cc(),a.td(3,dE,1,0,"mat-progress-bar",80),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)("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 mE(t,e){1&t&&a.zc(0,"mat-progress-bar",81)}function pE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",83,84),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,mE,1,0,"mat-progress-bar",80),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 gE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-list",82),a.Qc("resize",(function(t){return a.ld(n),a.Uc(3).onResize(t)}),!1,a.kd),a.td(1,pE,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 vE(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,YD),a.Ac(),a.Cc())}function yE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-grid-list",73),a.Qc("resize",(function(t){return a.ld(n),a.Uc(2).onResize(t)}),!1,a.kd),a.td(2,fE,4,8,"mat-grid-tile",28),a.Cc(),a.zc(3,"mat-divider"),a.Dc(4,"div",74),a.Dc(5,"h6"),a.Hc(6,GD),a.Cc(),a.Cc(),a.td(7,gE,2,2,"mat-grid-list",75),a.Dc(8,"div",76),a.Dc(9,"button",77),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,vE,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 _E(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",70),a.Dc(1,"mat-accordion"),a.Dc(2,"mat-expansion-panel",71),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,zD),a.Ac(),a.Cc(),a.Dc(7,"mat-panel-description"),a.Bc(8),a.Hc(9,BD),a.Ac(),a.Cc(),a.Cc(),a.td(10,hE,13,4,"div",72),a.Cc(),a.Dc(11,"mat-expansion-panel",71),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,VD),a.Ac(),a.Cc(),a.Dc(16,"mat-panel-description"),a.Bc(17),a.Hc(18,UD),a.Ac(),a.Cc(),a.Cc(),a.td(19,yE,13,4,"div",72),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 bE(t,e){}function kE(t,e){}zD=$localize(_templateObject106()),BD=$localize(_templateObject107()),VD=$localize(_templateObject108()),UD=$localize(_templateObject109()),HD=$localize(_templateObject110()),qD=$localize(_templateObject111()),GD=$localize(_templateObject112()),YD=$localize(_templateObject113());var CE,wE=!1,xE=!1,SE=!1,OE=!1,DE=((CE=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 Ro("",[Sr.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},this.simulatedOutput="",this.audioOnly=!1}return _createClass(t,[{key:"configLoad",value:function(){return zO(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 zO(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!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;a1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(this.downloadingfile=!1,a&&this.current_download!==a);else if(!this.multiDownloadMode||!a)if(!1===i&&this.downloadOnlyMode&&!this.iOS)if(n){var r=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",r)}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"}]);this.removeDownloadFromCurrentDownloads(a),this.fileManagerEnabled&&(this.getMp3s(),setTimeout((function(){e.audioFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadHelperMp4",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(this.downloadingfile=!1,a&&this.current_download!==a);else if(!this.multiDownloadMode||!a)if(!1===i&&this.downloadOnlyMode)if(n){var r=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",r)}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"}]);this.removeDownloadFromCurrentDownloads(a),this.fileManagerEnabled&&(this.getMp4s(),setTimeout((function(){e.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(sD.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};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).subscribe((function(e){r.downloading=!1,r.percent_complete=100;var n=!!e.file_names;t.path=n?e.file_names:e.audiopathEncoded,"-1"!==t.path&&t.downloadHelperMp3(t.path,n,!1,r)}),(function(e){t.downloadingfile=!1,t.current_download=null,r.downloading=!1,t.openSnackBar("Download failed!","OK.")}))}else{var s={uid:Object(sD.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};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).subscribe((function(e){s.downloading=!1,s.percent_complete=100;var n=!!e.file_names;t.path=n?e.file_names:e.videopathEncoded,"-1"!==t.path&&t.downloadHelperMp4(t.path,n,!1,s)}),(function(e){t.downloadingfile=!1,t.current_download=null,s.downloading=!1,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(UO.saveAs)(i,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(UO.saveAs)(i,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(UO.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;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?".mp3":".mp4",o=["-o",(this.audioOnly?this.audioFolderPath:this.videoFolderPath)+"%(title)s"+r];if(this.customOutputEnabled&&this.customOutput&&(o=["-o",this.customOutput+r]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||i.push("--external-downloader","aria2c"),(e=i).push.apply(e,_toConsumableArray(o)),this.audioOnly){var s,l=[],c=this.getSelectedAudioFormat();c?l.push("-f",c):this.selectedQuality&&l.push("--audio-quality",this.selectedQuality),(s=i).splice.apply(s,[2,0].concat(l)),i.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{var u,h=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"],d=this.getSelectedVideoFormat();d?h=["-f",d]:this.selectedQuality&&(h=["bestvideo[height=".concat(this.selectedQuality,"]+bestaudio/best[height=").concat(this.selectedQuality,"]")]),(u=i).splice.apply(u,[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?(wE=!0,this.audioFileCards.forEach((function(t){t.onHoverResponse()}))):"video"===t&&(xE=!0,this.videoFileCards.forEach((function(t){t.onHoverResponse()})))}},{key:"accordionLeft",value:function(t){"audio"===t?wE=!1:"video"===t&&(xE=!1)}},{key:"accordionOpened",value:function(t){"audio"===t?SE=!0:"video"===t&&(OE=!0)}},{key:"accordionClosed",value:function(t){"audio"===t?SE=!1:"video"===t&&(OE=!1)}},{key:"openCreatePlaylistDialog",value:function(t){var e=this;this.dialog.open(oD,{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(Dx,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(e){e&&(t.customArgs=e)}))}}]),t}()).\u0275fac=function(t){return new(t||CE)(a.yc(zw),a.yc(qO),a.yc(m_),a.yc(ow),a.yc(md),a.yc(Sn),a.yc(Kk))},CE.\u0275cmp=a.sc({type:CE,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(a.zd(lD,!0,a.q),a.zd(cD,!0),a.zd(uD,!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:17,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px"],[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"],[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"],[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",3,"value"],[1,"spinner"],["mode","indeterminate"],[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","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,tD),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,hD,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,yD,8,5,"div",12),a.Cc(),a.Cc(),a.td(20,SD,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,eD),a.Ac(),a.Cc(),a.td(25,OD,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,nD),a.Ac(),a.Cc(),a.td(30,DD,3,0,"button",17),a.Cc(),a.Cc(),a.Cc(),a.td(31,$D,39,19,"div",18),a.td(32,JD,4,1,"div",19),a.zc(33,"br"),a.td(34,iE,7,3,"div",20),a.td(35,aE,0,0,"ng-template",null,21,a.ud),a.td(37,_E,20,4,"div",22),a.td(38,bE,0,0,"ng-template",null,23,a.ud),a.td(40,kE,0,0,"ng-template",null,24,a.ud)),2&t){var n=a.hd(36);a.kc(11),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}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}"]}),CE);sn.a.merge=$l.a;var EE,AE,PE,TE,RE,IE,ME,jE=n("zuWl"),LE=n.n(jE);EE=$localize(_templateObject114()),AE=$localize(_templateObject115()),PE=$localize(_templateObject116()),TE=$localize(_templateObject117()),RE=$localize(_templateObject118()),IE=$localize(_templateObject119()),ME=$localize(_templateObject120());var FE,NE=((FE=function(){function t(e){_classCallCheck(this,t),this.data=e}return _createClass(t,[{key:"ngOnInit",value:function(){this.filesize=LE.a,this.data&&(this.file=this.data.file)}}]),t}()).\u0275fac=function(t){return new(t||FE)(a.yc(ud))},FE.\u0275cmp=a.sc({type:FE,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,EE),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,AE),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,PE),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,TE),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,RE),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,IE),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,ME),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.filesize(e.file.size)),a.kc(8),a.wd(e.file.path),a.kc(8),a.wd(e.file.upload_date))},directives:[vd,yd,_d,Ga,gd],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}"]}),FE);function zE(t,e){t.className.includes(e)||(t.className+=" ".concat(e))}function BE(){return"undefined"!=typeof window?window.navigator:void 0}function VE(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function UE(t){return"img"===t.nodeName.toLowerCase()}function HE(t,e,n){return UE(t)?n&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage="url('".concat(e,"')"),t}function qE(t){return function(e){for(var n=e.parentElement.getElementsByTagName("source"),i=0;i1&&void 0!==arguments[1]?arguments[1]:lA;return t.customObservable?t.customObservable:e(t)}}),uA=Object.assign({},ZE,{isVisible:function(){return!0},getObservable:function(){return ze("load")},loadImage:function(t){return[t.imagePath]}}),hA=((nA=function(){function t(e,n,i,r){_classCallCheck(this,t),this.onLoad=new a.s,this.elementRef=e,this.ngZone=n,this.propertyChanges$=new Fc,this.platformId=i,this.hooks=function(t,e){var n=cA,i=e&&e.isBot?e.isBot:n.isBot;if(i(BE(),t))return Object.assign(uA,{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(){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})}},{key:"ngAfterContentInit",value:function(){var t=this;if(Object(_e.J)(this.platformId)&&!this.hooks.isBot(BE(),this.platformId))return null;this.ngZone.runOutsideAngular((function(){t.scrollSubscription=t.propertyChanges$.pipe(qe((function(e){return t.hooks.setup(e)})),bc((function(e){return t.hooks.getObservable(e).pipe(function(t,e){return function(n){return n.pipe(en((function(n){return t.isVisible({element:e.element,event:n,offset:e.offset,scrollContainer:e.scrollContainer})})),un(1),Object(Uf.a)((function(){return t.loadImage(e)})),qe((function(n){return t.setLoadedImage({element:e.element,imagePath:n,useSrcset:e.useSrcset})})),Object(rn.a)((function(){return!0})),jf((function(){return t.setErrorImage(e),ze(!1)})),qe((function(){return t.finally(e)})))}}(t.hooks,e))}))).subscribe((function(e){return t.onLoad.emit(e)}))}))}},{key:"ngOnDestroy",value:function(){this.scrollSubscription&&this.scrollSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||nA)(a.yc(a.q),a.yc(a.F),a.yc(a.I),a.yc("options",8))},nA.\u0275dir=a.tc({type:nA,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode"},outputs:{onLoad:"onLoad"},features:[a.ic]}),nA),dA=((aA=iA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(t){return{ngModule:iA,providers:[{provide:"options",useValue:t}]}}}]),t}()).\u0275mod=a.wc({type:aA}),aA.\u0275inj=a.vc({factory:function(t){return new(t||aA)}}),aA),fA=[[["","before-svg",""]],"*",[["","after-svg",""]]],mA=["[before-svg]","*","[after-svg]"],pA=["ngx-rect",""],gA=["ngx-svg-stop",""],vA=["ngx-facebook-preset",""],yA=["ngx-instagram-preset",""],_A=["ngx-circle",""],bA=["ngx-code-preset",""],kA=["ngx-bullet-list-preset",""],CA=["ngx-list-preset",""],wA=((oA=function(){function t(){_classCallCheck(this,t),this.width="400",this.height="130",this.primaryColor="#f3f3f3",this.secondaryColor="#ecebeb",this.speed="1000ms",this.preserveAspectRatio="xMidYMid meet"}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"viewBox",get:function(){return"0 0 ".concat(this.width," ").concat(this.height)}}]),t}()).\u0275fac=function(t){return new(t||oA)},oA.\u0275cmp=a.sc({type:oA,selectors:[["ngx-content-loading"]],inputs:{width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed",preserveAspectRatio:"preserveAspectRatio"},ngContentSelectors:mA,decls:4,vars:2,consts:[["version","1.1"]],template:function(t,e){1&t&&(a.Zc(fA),a.Yc(0),a.Tc(),a.Dc(1,"svg",0),a.Yc(2,1),a.Cc(),a.Yc(3,2)),2&t&&(a.kc(1),a.lc("preserveAspectRatio",e.preserveAspectRatio)("viewBox",e.viewBox))},styles:[""],changeDetection:0}),oA),xA=((rA=function(){function t(e){_classCallCheck(this,t),this.content=e,this.clipPathId=SA(),this.linearGradientId=SA()}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"clipPathUrl",get:function(){return"url(#".concat(this.clipPathId,")")}},{key:"linearGradientUrl",get:function(){return"url(#".concat(this.linearGradientId,")")}}]),t}()).\u0275fac=function(t){return new(t||rA)(a.yc(wA))},rA.\u0275cmp=a.sc({type:rA,selectors:[["ngx-svg-element"]],decls:0,vars:0,template:function(t,e){},styles:[""],changeDetection:0}),rA);function SA(){return(performance.now()*Math.random()).toString()}var OA,DA,EA,AA,PA,TA,RA,IA,MA,jA,LA,FA,NA,zA,BA=((MA=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).content=t,n.rx="0",n.ry="1",n}return _inherits(e,t),e}(xA)).\u0275fac=function(t){return new(t||MA)(a.yc(wA))},MA.\u0275cmp=a.sc({type:MA,selectors:[["","ngx-rect",""]],inputs:{rx:"rx",ry:"ry",y:"y",x:"x",width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed"},features:[a.hc],attrs:pA,decls:7,vars:22,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"rect"),a.Dc(1,"defs"),a.zc(2,"clipPath"),a.Dc(3,"linearGradient"),a.zc(4,"stop",0),a.zc(5,"stop",0),a.zc(6,"stop",0),a.Cc(),a.Cc()),2&t&&(a.lc("x",e.x)("y",e.y)("rx",e.rx)("ry",e.ry)("width",e.width)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl)("height",e.height),a.kc(2),a.lc("id",e.clipPathId),a.kc(1),a.lc("id",e.linearGradientId),a.kc(1),a.ad("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),a.kc(1),a.ad("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),a.kc(1),a.ad("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:function(){return[VA]},styles:[""]}),MA),VA=((IA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||IA)},IA.\u0275cmp=a.sc({type:IA,selectors:[["","ngx-svg-stop",""]],hostVars:2,hostBindings:function(t,e){2&t&&a.lc("offset",e.offset)("stop-color",e.color)},inputs:{speed:"speed",values:"values",offset:"offset",color:"color"},attrs:gA,decls:1,vars:2,consts:[["attributeName","offset","repeatCount","indefinite"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"animate",0)),2&t&&a.lc("values",e.values)("dur",e.speed)},styles:[""],changeDetection:0}),IA),UA=((RA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||RA)},RA.\u0275cmp=a.sc({type:RA,selectors:[["","ngx-facebook-preset",""]],attrs:vA,decls:6,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","100","height","5","y","15","x","60","rx","5","ry","5"],["ngx-rect","","width","60","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","170","height","5","y","65","x","0","rx","5","ry","5"],["ngx-rect","","width","220","height","5","y","80","x","0","rx","5","ry","5"],["ngx-rect","","width","130","height","5","y","95","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5))},directives:function(){return[qA,BA]},styles:[""],changeDetection:0}),RA),HA=((TA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||TA)},TA.\u0275cmp=a.sc({type:TA,selectors:[["","ngx-instagram-preset",""]],attrs:yA,decls:4,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","120","height","10","y","10","x","60","rx","5","ry","5"],["ngx-rect","","width","40","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","250","height","250","y","60","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3))},directives:function(){return[qA,BA]},styles:[""],changeDetection:0}),TA),qA=((PA=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).content=t,n}return _inherits(e,t),e}(xA)).\u0275fac=function(t){return new(t||PA)(a.yc(wA))},PA.\u0275cmp=a.sc({type:PA,selectors:[["","ngx-circle",""]],inputs:{r:"r",cx:"cx",cy:"cy"},features:[a.hc],attrs:_A,decls:7,vars:19,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"circle"),a.Dc(1,"defs"),a.zc(2,"clipPath"),a.Dc(3,"linearGradient"),a.zc(4,"stop",0),a.zc(5,"stop",0),a.zc(6,"stop",0),a.Cc(),a.Cc()),2&t&&(a.lc("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl),a.kc(2),a.lc("id",e.clipPathId),a.kc(1),a.lc("id",e.linearGradientId),a.kc(1),a.ad("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),a.kc(1),a.ad("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),a.kc(1),a.ad("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:[VA],styles:[""]}),PA),GA=((AA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||AA)},AA.\u0275cmp=a.sc({type:AA,selectors:[["","ngx-code-preset",""]],attrs:bA,decls:9,vars:0,consts:[["ngx-rect","","width","60","height","10","y","15","x","0","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","15","x","70","rx","5","ry","5"],["ngx-rect","","width","20","height","10","y","15","x","170","rx","5","ry","5"],["ngx-rect","","width","100","height","10","y","35","x","9","rx","5","ry","5"],["ngx-rect","","width","120","height","10","y","35","x","120","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","5","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","105","rx","5","ry","5"],["ngx-rect","","width","70","height","10","y","55","x","205","rx","5","ry","5"],["ngx-rect","","width","30","height","10","y","75","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5),a.zc(6,"g",6),a.zc(7,"g",7),a.zc(8,"g",8))},directives:[BA],encapsulation:2,changeDetection:0}),AA),YA=((EA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||EA)},EA.\u0275cmp=a.sc({type:EA,selectors:[["","ngx-bullet-list-preset",""]],attrs:kA,decls:8,vars:0,consts:[["ngx-circle","","cx","7","cy","7","r","7"],["ngx-circle","","cx","7","cy","37","r","7"],["ngx-circle","","cx","7","cy","67","r","7"],["ngx-circle","","cx","7","cy","97","r","7"],["ngx-rect","","width","200","height","12","y","2","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","32","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","62","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","92","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5),a.zc(6,"g",6),a.zc(7,"g",7))},directives:[qA,BA],encapsulation:2,changeDetection:0}),EA),WA=((DA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||DA)},DA.\u0275cmp=a.sc({type:DA,selectors:[["","ngx-list-preset",""]],attrs:CA,decls:6,vars:0,consts:[["ngx-rect","","width","200","height","10","y","0","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","20","x","20","rx","5","ry","5"],["ngx-rect","","width","160","height","10","y","40","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","10","y","60","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","80","x","20","rx","5","ry","5"],["ngx-rect","","width","60","height","10","y","100","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5))},directives:[BA],encapsulation:2,changeDetection:0}),DA),QA=((OA=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:OA}),OA.\u0275inj=a.vc({factory:function(t){return new(t||OA)},imports:[[_e.c]]}),OA);function $A(t,e){if(1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,NA),a.Ac(),a.vd(3),a.Cc()),2&t){var n=a.Uc();a.kc(3),a.xd("\xa0",n.count,"")}}function KA(t,e){1&t&&(a.Dc(0,"span"),a.Dc(1,"ngx-content-loading",14),a.Tc(),a.zc(2,"g",15),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.ad("width",500)("height",360))}function XA(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,KA,3,2,"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 ZA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",16),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 JA(t,e){if(1&t&&(a.Dc(0,"button",17),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 tP(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,zA),a.Ac(),a.Cc()}}jA=$localize(_templateObject121()),LA=$localize(_templateObject122()),FA=$localize(_templateObject123()),NA=$localize(_templateObject124()),zA=$localize(_templateObject125());var eP,nP=((eP=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.name,this.isAudio,e).subscribe((function(e){!0===e?(t.openSnackBar("Delete success!","OK."),t.removeFile.emit(t.name)):t.openSnackBar("Delete failed!","OK.")}))}},{key:"openVideoInfoDialog",value:function(){this.dialog.open(NE,{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||eP)(a.yc(zw),a.yc(m_),a.yc(DE),a.yc(md))},eP.\u0275cmp=a.sc({type:eP,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",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"],[3,"width","height"],["ngx-rect","","width","500","height","360","y","0","x","0","rx","4","ry","4"],["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)})),a.vd(6),a.Cc(),a.Cc(),a.Cc(),a.Dc(7,"span",4),a.Bc(8),a.Hc(9,jA),a.Ac(),a.vd(10),a.Cc(),a.td(11,$A,4,1,"div",5),a.Cc(),a.td(12,XA,3,4,"div",6),a.Cc(),a.td(13,ZA,3,0,"button",7),a.td(14,JA,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,LA),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,FA),a.Ac(),a.Cc(),a.td(27,tP,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:[Al,_e.t,yg,dg,np,hA,wA,BA,Ga,Cg],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}}"]}),eP);function iP(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 aP,rP=((aP=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||aP)(a.yc(cd),a.yc(ud))},aP.\u0275cmp=a.sc({type:aP,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,iP,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:[vd,yd,Th,pp,ur,_r,Go,_d,Ga,gd,_e.t,bv],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),aP),oP=["*"],sP=["volumeBar"],lP=function(t){return{dragging:t}};function cP(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 uP(t,e){1&t&&a.zc(0,"span",2)}function hP(t,e){1&t&&(a.Dc(0,"span"),a.vd(1,"LIVE"),a.Cc())}function dP(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 fP(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 mP(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 pP,gP,vP,yP,_P,bP,kP,CP,wP,xP,SP,OP,DP,EP,AP,PP,TP,RP,IP,MP,jP,LP,FP,NP,zP,BP,VP,UP,HP,qP,GP=((HP=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||HP)},HP.\u0275prov=a.uc({token:HP,factory:HP.\u0275fac}),HP.VG_ENDED="ended",HP.VG_PAUSED="paused",HP.VG_PLAYING="playing",HP.VG_LOADING="waiting",HP),YP=((UP=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=GP.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||UP)},UP.\u0275prov=a.uc({token:UP,factory:UP.\u0275fac}),UP),WP=((VP=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||VP)(a.yc(a.q),a.yc(YP))},VP.\u0275cmp=a.sc({type:VP,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}),VP),QP=((BP=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:BP}),BP.\u0275inj=a.vc({factory:function(t){return new(t||BP)},imports:[[_e.c]]}),BP),$P=((zP=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||zP)},zP.\u0275prov=a.uc({token:zP,factory:zP.\u0275fac}),zP),KP=((NP=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$=Kl(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=Kl(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===GP.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||NP)(a.yc(YP),a.yc(a.q),a.yc($P))},NP.\u0275cmp=a.sc({type:NP,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:oP,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}),NP),XP=((FP=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||FP)},FP.\u0275prov=Object(a.uc)({factory:function(){return new FP},token:FP,providedIn:"root"}),FP),ZP=((LP=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(XP.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=Kl(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&&(XP.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||XP.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||LP)},LP.\u0275prov=a.uc({token:LP,factory:LP.\u0275fac}),LP),JP=((jP=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 YP&&(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||jP)(a.yc(a.q),a.yc(YP),a.yc(ZP))},jP.\u0275cmp=a.sc({type:jP,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}),jP),tT=((MP=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||MP)(a.yc(a.q),a.yc(YP))},MP.\u0275cmp=a.sc({type:MP,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}),MP),eT=((IP=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||IP)(a.yc(a.q),a.yc(YP))},IP.\u0275cmp=a.sc({type:IP,selectors:[["vg-volume"]],viewQuery:function(t,e){var n;1&t&&a.rd(sP,!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,lP,e.isDragging)),a.kc(1),a.sd("width",85*e.getVolume()+"%"),a.kc(1),a.sd("left",85*e.getVolume()+"%"))},directives:[_e.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}),IP),nT=((RP=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.ariaValue=GP.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 GP.VG_PLAYING:this.target.pause();break;case GP.VG_PAUSED:case GP.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){return this.ariaValue=this.target?this.target.state:GP.VG_PAUSED,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||RP)(a.yc(a.q),a.yc(YP))},RP.\u0275cmp=a.sc({type:RP,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}),RP),iT=((TP=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 YP?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||TP)(a.yc(a.q),a.yc(YP))},TP.\u0275cmp=a.sc({type:TP,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}),TP),aT=((PP=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===GP.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||PP)(a.yc(a.q),a.yc(YP),a.yc($P))},PP.\u0275cmp=a.sc({type:PP,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:oP,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}),PP),rT=((AP=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||AP)(a.yc(a.q),a.yc(YP))},AP.\u0275cmp=a.sc({type:AP,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}),AP),oT=((EP=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||EP)(a.yc(a.q),a.yc(YP))},EP.\u0275cmp=a.sc({type:EP,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,cP,1,4,"span",1),a.Cc()),2&t&&(a.kc(1),a.ad("ngForOf",e.cuePoints))},directives:[_e.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}),EP),sT=((DP=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||DP)(a.yc(a.q),a.yc(YP))},DP.\u0275cmp=a.sc({type:DP,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,uP,1,0,"span",1)),2&t&&(a.sd("width",e.getPercentage()),a.kc(1),a.ad("ngIf",e.vgSlider))},directives:[_e.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}),DP),lT=((OP=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||OP)},OP.\u0275pipe=a.xc({name:"vgUtc",type:OP,pure:!0}),OP),cT=((SP=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||SP)(a.yc(a.q),a.yc(YP))},SP.\u0275cmp=a.sc({type:SP,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:oP,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(a.Zc(),a.td(0,hP,2,0,"span",0),a.td(1,dP,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:[_e.t],pipes:[lT],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}),SP),uT=((xP=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||xP)(a.yc(a.q),a.yc(YP))},xP.\u0275cmp=a.sc({type:xP,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,fP,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:[_e.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}),xP),hT=((wP=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||wP)(a.yc(a.q),a.yc(YP))},wP.\u0275cmp=a.sc({type:wP,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,mP,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:[_e.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}),wP),dT=((CP=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:CP}),CP.\u0275inj=a.vc({factory:function(t){return new(t||CP)},providers:[$P],imports:[[_e.c]]}),CP),fT=((kP=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||kP)},kP.\u0275prov=a.uc({token:kP,factory:kP.\u0275fac}),kP.VG_ABORT="abort",kP.VG_CAN_PLAY="canplay",kP.VG_CAN_PLAY_THROUGH="canplaythrough",kP.VG_DURATION_CHANGE="durationchange",kP.VG_EMPTIED="emptied",kP.VG_ENCRYPTED="encrypted",kP.VG_ENDED="ended",kP.VG_ERROR="error",kP.VG_LOADED_DATA="loadeddata",kP.VG_LOADED_METADATA="loadedmetadata",kP.VG_LOAD_START="loadstart",kP.VG_PAUSE="pause",kP.VG_PLAY="play",kP.VG_PLAYING="playing",kP.VG_PROGRESS="progress",kP.VG_RATE_CHANGE="ratechange",kP.VG_SEEK="seek",kP.VG_SEEKED="seeked",kP.VG_SEEKING="seeking",kP.VG_STALLED="stalled",kP.VG_SUSPEND="suspend",kP.VG_TIME_UPDATE="timeupdate",kP.VG_VOLUME_CHANGE="volumechange",kP.VG_WAITING="waiting",kP.VG_LOAD="load",kP.VG_ENTER="enter",kP.VG_EXIT="exit",kP.VG_START_ADS="startads",kP.VG_END_ADS="endads",kP),mT=((bP=function(){function t(e,n){_classCallCheck(this,t),this.api=e,this.ref=n,this.state=GP.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:Kl(this.elem,fT.VG_ABORT),canPlay:Kl(this.elem,fT.VG_CAN_PLAY),canPlayThrough:Kl(this.elem,fT.VG_CAN_PLAY_THROUGH),durationChange:Kl(this.elem,fT.VG_DURATION_CHANGE),emptied:Kl(this.elem,fT.VG_EMPTIED),encrypted:Kl(this.elem,fT.VG_ENCRYPTED),ended:Kl(this.elem,fT.VG_ENDED),error:Kl(this.elem,fT.VG_ERROR),loadedData:Kl(this.elem,fT.VG_LOADED_DATA),loadedMetadata:Kl(this.elem,fT.VG_LOADED_METADATA),loadStart:Kl(this.elem,fT.VG_LOAD_START),pause:Kl(this.elem,fT.VG_PAUSE),play:Kl(this.elem,fT.VG_PLAY),playing:Kl(this.elem,fT.VG_PLAYING),progress:Kl(this.elem,fT.VG_PROGRESS),rateChange:Kl(this.elem,fT.VG_RATE_CHANGE),seeked:Kl(this.elem,fT.VG_SEEKED),seeking:Kl(this.elem,fT.VG_SEEKING),stalled:Kl(this.elem,fT.VG_STALLED),suspend:Kl(this.elem,fT.VG_SUSPEND),timeUpdate:Kl(this.elem,fT.VG_TIME_UPDATE),volumeChange:Kl(this.elem,fT.VG_VOLUME_CHANGE),waiting:Kl(this.elem,fT.VG_WAITING),startAds:Kl(this.elem,fT.VG_START_ADS),endAds:Kl(this.elem,fT.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=Og(e).pipe(Object(rn.a)((function(){for(var e=arguments.length,n=new Array(e),i=0;i.3?(t.playAtferSync=t.state===GP.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!==GP.VG_PAUSED&&this.state!==GP.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=GP.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=GP.VG_ENDED,this.ref.detectChanges()}},{key:"onStartPlaying",value:function(t){this.state=GP.VG_PLAYING,this.ref.detectChanges()}},{key:"onPlay",value:function(t){this.state=GP.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}},{key:"onPause",value:function(t){this.state=GP.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=fc(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||bP)(a.yc(YP),a.yc(a.j))},bP.\u0275dir=a.tc({type:bP,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),bP),pT=((_P=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$=Kl(this.ref.nativeElement,fT.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)}}qP=$localize(_templateObject126());var AT,PT,TT=((AT=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.currentIndex=0,this.currentItem=null,this.id=null,this.subscriptionName=null,this.subPlaylist=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=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.fileNames=this.route.snapshot.paramMap.get("fileNames").split("|nvr|"),this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),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;var i=null;"audio"===t.type?i="audio/mp3":"video"===t.type?i="video/mp4":"subscription"===t.type?i="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'.");for(var a=0;a0)},directives:[_e.t,_e.q,gT,mT,ll,vb,_e.s,ul,ub,Ga,np,bv],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:80%} .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:absolute;bottom:25px}.favorite-button[_ngcontent-%COMP%]{left:25px;position:absolute;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px}.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}"]}),AT);PT=$localize(_templateObject127());var RT,IT=["placeholder",$localize(_templateObject128())];RT=$localize(_templateObject129());var MT,jT,LT,FT,NT=["placeholder",$localize(_templateObject130())];function zT(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 BT(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",3),a.Bc(1),a.Hc(2,FT),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,zT,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 VT(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))}MT=$localize(_templateObject131()),jT=$localize(_templateObject132()),LT=$localize(_templateObject133()),FT=$localize(_templateObject134());var UT,HT,qT,GT,YT,WT,QT,$T,KT=((UT=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.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).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||UT)(a.yc(zw),a.yc(m_),a.yc(cd))},UT.\u0275cmp=a.sc({type:UT,selectors:[["app-subscribe-dialog"]],decls:31,vars:6,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,PT),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,IT),a.Qc("ngModelChange",(function(t){return e.url=t})),a.Cc(),a.Dc(9,"mat-hint"),a.Bc(10),a.Hc(11,RT),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,NT),a.Qc("ngModelChange",(function(t){return e.name=t})),a.Cc(),a.Dc(16,"mat-hint"),a.Bc(17),a.Hc(18,MT),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,jT),a.Ac(),a.Cc(),a.Cc(),a.td(23,BT,7,3,"div",9),a.Cc(),a.Cc(),a.Cc(),a.Dc(24,"mat-dialog-actions"),a.Dc(25,"button",10),a.Bc(26),a.Hc(27,LT),a.Ac(),a.Cc(),a.Dc(28,"button",11),a.Qc("click",(function(){return e.subscribeClicked()})),a.vd(29,"Subscribe"),a.Cc(),a.td(30,VT,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(5),a.ad("disabled",!e.url),a.kc(2),a.ad("ngIf",e.subscribing))},directives:[vd,yd,Th,pp,ur,Bs,_r,Go,wh,Ul,_e.t,_d,Ga,gd,Lr,Jv,_e.s,Ta,bv],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),UT);function XT(t,e){if(1&t&&(a.Dc(0,"div",1),a.Dc(1,"strong"),a.Bc(2),a.Hc(3,$T),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)}}HT=$localize(_templateObject135()),qT=$localize(_templateObject136()),GT=$localize(_templateObject137()),YT=$localize(_templateObject138()),WT=$localize(_templateObject139()),QT=$localize(_templateObject140()),$T=$localize(_templateObject141());var ZT,JT,tR,eR,nR,iR,aR,rR,oR=((ZT=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||ZT)(a.yc(cd),a.yc(ud),a.yc(zw))},ZT.\u0275cmp=a.sc({type:ZT,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,HT),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,qT),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,GT),a.Ac(),a.vd(21,"\xa0"),a.Cc(),a.Dc(22,"span",2),a.vd(23),a.Cc(),a.Cc(),a.td(24,XT,7,1,"div",3),a.Cc(),a.Dc(25,"mat-dialog-actions"),a.Dc(26,"button",4),a.Bc(27),a.Hc(28,YT),a.Ac(),a.Cc(),a.Dc(29,"button",5),a.Qc("click",(function(){return e.downloadArchive()})),a.Bc(30),a.Hc(31,WT),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,QT),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:[vd,yd,_e.t,_d,Ga,gd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),ZT);function sR(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 lR(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,nR),a.Ac(),a.Cc())}function cR(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,sR,2,1,"strong",10),a.td(3,lR,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 uR(t,e){1&t&&(a.Dc(0,"div",12),a.Dc(1,"p"),a.Hc(2,iR),a.Cc(),a.Cc())}function hR(t,e){1&t&&(a.Dc(0,"div",14),a.Bc(1),a.Hc(2,aR),a.Ac(),a.Cc())}function dR(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,hR,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 fR(t,e){1&t&&(a.Dc(0,"div",12),a.Dc(1,"p"),a.Hc(2,rR),a.Cc(),a.Cc())}function mR(t,e){1&t&&(a.Dc(0,"div",15),a.zc(1,"mat-progress-bar",16),a.Cc())}JT=$localize(_templateObject142()),tR=$localize(_templateObject143()),eR=$localize(_templateObject144()),nR=$localize(_templateObject145()),iR=$localize(_templateObject146()),aR=$localize(_templateObject147()),rR=$localize(_templateObject148());var pR,gR,vR,yR,_R,bR=((pR=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||pR)(a.yc(md),a.yc(zw),a.yc(ow),a.yc(m_))},pR.\u0275cmp=a.sc({type:pR,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,JT),a.Cc(),a.zc(3,"mat-divider",1),a.zc(4,"br"),a.Dc(5,"h4",2),a.Hc(6,tR),a.Cc(),a.Dc(7,"mat-nav-list",3),a.td(8,cR,7,2,"mat-list-item",4),a.Cc(),a.td(9,uR,3,0,"div",5),a.Dc(10,"h4",6),a.Hc(11,eR),a.Cc(),a.Dc(12,"mat-nav-list",3),a.td(13,dR,8,2,"mat-list-item",4),a.Cc(),a.td(14,fR,3,0,"div",5),a.td(15,mR,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:[vp,Fp,_e.s,_e.t,Ga,np,Hp,aa,iv],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%}"]}),pR);function kR(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,_R),a.Ac(),a.Cc()}}function CR(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)}}gR=$localize(_templateObject149()),vR=$localize(_templateObject150()),yR=$localize(_templateObject151()),_R=$localize(_templateObject152());var wR,xR,SR=((wR=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(this.file.id)}},{key:"openSubscriptionInfoDialog",value:function(){this.dialog.open(NE,{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||wR)(a.yc(m_),a.yc(zw),a.yc(md))},wR.\u0275cmp=a.sc({type:wR,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,gR),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,vR),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,yR),a.Ac(),a.Cc(),a.td(20,kR,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,CR,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:[Ga,Cg,np,yg,dg,_e.t,Al,ba],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}}"]}),wR);function OR(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," ")}}xR=$localize(_templateObject153());var DR=["placeholder",$localize(_templateObject154())];function ER(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 AR(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 PR(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,ER,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,xR),a.Cc(),a.Cc(),a.Dc(15,"div",18),a.Dc(16,"mat-form-field",19),a.Dc(17,"input",20),a.Jc(18,DR),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,AR,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 TR(t,e){1&t&&a.zc(0,"mat-spinner",28),2&t&&a.ad("diameter",50)}var RR,IR,MR,jR=((RR=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){localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:t,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;ns)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,l=p,a=d;var v=(1e4*(268435455&(m+=122192928e5))+p)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var y=m/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var _=0;_<6;++_)u[c+_]=h[_];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,h,d,f,m,p,g,v,y,_=1>>((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,h=u.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){u.revokeObjectURL(h)}),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);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 h(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function m(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 y(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(t){switch(t.length){case 0:return new g;case 1:return t[0];default:return new v(t)}}function b(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=y();(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 P=null,R=!1;function T(t){P||(P=("undefined"!=typeof document?document.body:null)||{},R=!!P.style&&"WebkitAppearance"in P.style);var e=!0;return P.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in P.style)&&R)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in P.style),e}var I=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,N=((F=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return T(t)}},{key:"matchesElement",value:function(t,e){return I(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),z=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new N,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 Y(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:mt(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:mt(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:mt(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(ft(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,h=e.collectedStyles[e.currentQuerySelector],d=h[i],f=!0;d&&(r!=a&&r>=d.startTime&&a<=d.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),f=!1),r=d.startTime),f&&(h[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(ft(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ft(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==d?1:h*a:r[a],s=o*p;e.currentTime=f+m.delay+s,m.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:mt(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:mt(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:mt(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:mt(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}(),dt=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 ft(t){return!Array.isArray(t)&&"object"==typeof t}function mt(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}(),yt=new RegExp(":enter","g"),_t=new RegExp(":leave","g");function bt(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 h=u.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,u.errors,s)}return h.length?h.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(yt,"."+this._enterClassName)).replace(_t,"."+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){function e(t,n,i,a,r,o){var s,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,o.delay))).element=n,s.keyframes=i,s.preStyleProps=a,s.postStyleProps=r,s._stretchStartingKeyframe=l,s.timings={duration:o.duration,delay:o.delay,easing:o.easing},s}return _inherits(e,t),_createClass(e,[{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,h=1;h<=u;h++){var d=q(t[h],!1);d.offset=Ot((n+d.offset*i)/o),r.push(d)}i=o,n=0,a="",t=r}return gt(this.element,t,this.preStyleProps,this.postStyleProps,i,n,a,!0)}}]),e}(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){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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}}]),e}(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 Pt(t,e,n,i,a,r,o,s,l,c,u,h,d){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:h,errors:d}}var Rt={},Tt=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=[],h=this.ast.options&&this.ast.options.params||Rt,d=this.buildStyles(n,o&&o.params||Rt,u),f=s&&s.params||Rt,m=this.buildStyles(i,f,u),p=new Set,g=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=c?[]:bt(t,e,this.ast.animation,a,r,d,m,_,l,u),k=0;if(b.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),u.length)return Pt(e,this._triggerName,n,i,y,d,m,[],[],g,v,k,u);b.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 Pt(e,this._triggerName,n,i,y,d,m,b,C,g,v,k)}}]),t}(),It=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 It(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 Tt(e,t,i.states))})),this.fallbackTransition=new Tt(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=b(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=bt(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=_(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}(),Nt=[],zt={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 h=r.matchTransition(l.value,c.value,t,c.params),d=!1;if(!h){if(!a)return;h=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:d}),d||(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(Yt(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 Yt(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 _(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=zt,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 d=!h||!n.driver.containsElement(h,r),f=w.get(r),p=m.get(r),g=n._buildInstruction(t,i,p,f,d);if(!g.errors||!g.errors.length)return d?(e.onStart((function(){return Q(r,g.fromStyles)})),e.onDestroy((function(){return W(r,g.toStyles)})),void a.push(e)):t.isFallbackTransition?(e.onStart((function(){return Q(r,g.fromStyles)})),e.onDestroy((function(){return W(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 P=new Map,R=new Map;o.forEach((function(t){var e=t.element;i.has(e)&&(R.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,P))})),a.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){x(P,e,[]).push(t),t.destroy()}))}));var T=g.filter((function(t){return Jt(t,l,c)})),I=new Map;Qt(I,this.driver,y,c,"*").forEach((function(t){Jt(t,l,c)&&T.push(t)}));var M=new Map;f.forEach((function(t,e){Qt(M,n.driver,new Set(t),l,"!")})),T.forEach((function(t){var e=I.get(t),n=M.get(t);I.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 W(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void a.push(o);var l=F;if(R.size>1){for(var c=e,h=[];c=c.parentNode;){var d=R.get(c);if(d){l=d;break}h.push(c)}h.forEach((function(t){return R.set(t,l)}))}var f=n._buildAnimation(o.namespaceId,s,P,r,M,I);if(o.setRealPlayer(f),l===F)j.push(o);else{var m=n.playersByElement.get(l);m&&m.length&&(o.parentPlayer=_(m)),a.push(o)}}else Q(e,s.fromStyles),o.onDestroy((function(){return W(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=_(e);t.setRealPlayer(n)}})),a.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var N=0;N0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new 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 Yt(t){return t&&1===t.nodeType}function Wt(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Qt(t,e,n,i,a){var r=[];n.forEach((function(t){return r.push(Wt(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 Wt(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){_(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&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(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&&(Q(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),W(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=he(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=he(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 he(t,e){return t.style["animation"+e]}var de=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}(),fe=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).element=t,i._startingStyles={},i.__initialized=!1,i._styles=L(n),i}return _inherits(e,t),_createClass(e,[{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(e.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(e.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(e.prototype),"destroy",this).call(this))}}]),e}(g),me=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 T(t)}},{key:"matchesElement",value:function(t,e){return I(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 de})),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 fe(t,c);var u="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);var d=ee(t,e),f=new de(t,e,u,n,i,a,c,d);return f.onDestroy((function(){var t;(t=h).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}(),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 me}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return T(t)}},{key:"matchesElement",value:function(t,e){return I(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 ye,_e=n("ofXK"),be=((ye=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._nextAnimationId=0,i._renderer=t.createRenderer(n.body,{id:"0",encapsulation:a.Y.None,styles:[],data:{animation:[]}}),i}return _inherits(e,t),_createClass(e,[{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)}}]),e}(r)).\u0275fac=function(t){return new(t||ye)(a.Mc(a.M),a.Mc(_e.e))},ye.\u0275prov=a.uc({token:ye,factory:ye.\u0275fac}),ye),ke=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._id=t,i._renderer=n,i}return _inherits(e,t),_createClass(e,[{key:"create",value:function(t,e){return new Ce(this._id,t,e||{},this._renderer)}}]),e}(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}}]),e}(function(t){function e(t,n){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),e}(je.a)),Qe=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){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qe.now;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,(function(){return e.delegate&&e.delegate!==_assertThisInitialized(n)?e.delegate.now():i()})))).actions=[],n.active=!1,n.scheduled=void 0,n}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,i):_get(_getPrototypeOf(e.prototype),"schedule",this).call(this,t,n,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}}}}]),e}(Qe),Ke=new $e(We);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){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).dueTime=n,a.scheduler=i,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _inherits(e,t),_createClass(e,[{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)}}]),e}(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){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).predicate=n,a.thisArg=i,a.count=0,a}return _inherits(e,t),_createClass(e,[{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)}}]),e}(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 dn(t))}}var hn,dn=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 fn(t,this.total))}}]),t}(),fn=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).total=n,i.count=0,i}return _inherits(e,t),_createClass(e,[{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()))}}]),e}(Ve.a);function mn(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 yn(t){return t instanceof a.q?t.nativeElement:t}try{hn="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(KT){hn=!1}var _n,bn,kn,Cn,wn,xn,Sn=((kn=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(_e.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&&!hn)&&"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=((bn=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:bn}),bn.\u0275inj=a.vc({factory:function(t){return new(t||bn)}}),bn),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(_n)return _n;if("object"!=typeof document||!document)return _n=new Set(Dn);var t=document.createElement("input");return _n=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 Pn(){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 Rn(){if(null==xn){var t="undefined"!=typeof document?document.head:null;xn=!(!t||!t.createShadowRoot&&!t.attachShadow)}return xn}var Tn,In,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=yn(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),Nn=((In=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=mn(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||In)(a.yc(Fn),a.yc(a.q),a.yc(a.F))},In.\u0275dir=a.tc({type:In,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),In),zn=((Tn=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Tn}),Tn.\u0275inj=a.vc({factory:function(t){return new(t||Tn)},providers:[Ln]}),Tn);function Bn(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Vn,Un,Hn=0,qn=new Map,Gn=null,Yn=((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}(),Qn=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(e.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),e}(Wn),$n=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._origin="program",t}return _inherits(e,t),_createClass(e,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(e.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),e}(Wn),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(KT){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(_e.e))},Jn.\u0275prov=Object(a.uc)({factory:function(){return new Jn(Object(a.Mc)(Kn),Object(a.Mc)(a.F),Object(a.Mc)(_e.e))},token:Jn,providedIn:"root"}),Jn);"undefined"!=typeof Element&∈var ni,ii,ai=new a.v("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),ri=new a.v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),oi=((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 ze(null);var i=yn(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=yn(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=yn(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:"_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,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(){document.addEventListener("keydown",t._documentKeydownListener,si),document.addEventListener("mousedown",t._documentMousedownListener,si),document.addEventListener("touchstart",t._documentTouchstartListener,si),window.addEventListener("focus",t._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,si),document.removeEventListener("mousedown",this._documentMousedownListener,si),document.removeEventListener("touchstart",this._documentTouchstartListener,si),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}]),t}()).\u0275fac=function(t){return new(t||ii)(a.Mc(a.F),a.Mc(Sn))},ii.\u0275prov=Object(a.uc)({factory:function(){return new ii(Object(a.Mc)(a.F),Object(a.Mc)(Sn))},token:ii,providedIn:"root"}),ii);function ci(t){return 0===t.buttons}var ui,hi,di,fi,mi,pi=((hi=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||hi)(a.Mc(Sn),a.Mc(_e.e))},hi.\u0275prov=Object(a.uc)({factory:function(){return new hi(Object(a.Mc)(Sn),Object(a.Mc)(_e.e))},token:hi,providedIn:"root"}),hi),gi=((ui=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()}).\u0275mod=a.wc({type:ui}),ui.\u0275inj=a.vc({factory:function(t){return new(t||ui)(a.Mc(pi))},imports:[[On,zn]]}),ui),vi=new a.v("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(a.db)(_e.e)}}),yi=((mi=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||mi)(a.Mc(vi,8))},mi.\u0275prov=Object(a.uc)({factory:function(){return new mi(Object(a.Mc)(vi,8))},token:mi,providedIn:"root"}),mi),_i=((fi=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||fi)},fi.\u0275dir=a.tc({type:fi,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:yi,useExisting:fi}])]}),fi),bi=((di=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:di}),di.\u0275inj=a.vc({factory:function(t){return new(t||di)}}),di),ki=new a.W("9.1.2"),Ci=n("bHdf");function wi(){return Object(Ci.a)(1)}function xi(){return wi()(ze.apply(void 0,arguments))}function Si(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return(function(t){function n(){var t,i;_classCallCheck(this,n);for(var a=arguments.length,r=new Array(a),o=0;o0?n:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),Ui=new a.v("mat-date-formats");try{zi="undefined"!=typeof Intl}catch(KT){zi=!1}var Hi={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=Wi(31,(function(t){return String(t+1)})),Gi={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Yi=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Wi(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(zi){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(Yi.test(t)){var n=new Date(t);if(this.isValid(n))return n}}return _get(_getPrototypeOf(e.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)}}]),e}(Vi)).\u0275fac=function(t){return new(t||$i)(a.Mc(Bi,8),a.Mc(Sn))},$i.\u0275prov=a.uc({token:$i,factory:$i.\u0275fac}),$i),ta=((Qi=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Qi}),Qi.\u0275inj=a.vc({factory:function(t){return new(t||Qi)},providers:[{provide:Vi,useClass:Ji}],imports:[[On]]}),Qi),ea={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"}}},na=((Zi=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Zi}),Zi.\u0275inj=a.vc({factory:function(t){return new(t||Zi)},providers:[{provide:Ui,useValue:ea}],imports:[[ta]]}),Zi),ia=((Xi=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||Xi)},Xi.\u0275prov=Object(a.uc)({factory:function(){return new Xi},token:Xi,providedIn:"root"}),Xi),aa=((Ki=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ki)},Ki.\u0275dir=a.tc({type:Ki,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ki);function ra(t,e){t.changes.pipe(Si(t)).subscribe((function(t){var n=t.length;oa(e,"mat-2-line",!1),oa(e,"mat-3-line",!1),oa(e,"mat-multi-line",!1),2===n||3===n?oa(e,"mat-".concat(n,"-line"),!0):n>3&&oa(e,"mat-multi-line",!0)}))}function oa(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}var sa,la,ca,ua,ha,da,fa,ma=((sa=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:sa}),sa.\u0275inj=a.vc({factory:function(t){return new(t||sa)},imports:[[Ii],Ii]}),sa),pa=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}(),ga={enterDuration:450,exitDuration:400},va=An({passive:!0}),ya=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=ci(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({},ga),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 h=new pa(this,u,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()}),c),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},ga),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=yn(t);n&&n!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){e._triggerEvents.forEach((function(t,e){n.addEventListener(e,t,va)}))})),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,va)}))}}]),t}(),_a=new a.v("mat-ripple-global-options"),ba=((ha=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 ya(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||ha)(a.yc(a.q),a.yc(a.F),a.yc(Sn),a.yc(_a,8),a.yc(Re,8))},ha.\u0275dir=a.tc({type:ha,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"]}),ha),ka=((ua=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ua}),ua.\u0275inj=a.vc({factory:function(t){return new(t||ua)},imports:[[Ii,On],Ii]}),ua),Ca=((ca=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||ca)(a.yc(Re,8))},ca.\u0275cmp=a.sc({type:ca,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}),ca),wa=((la=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:la}),la.\u0275inj=a.vc({factory:function(t){return new(t||la)}}),la),xa=Mi((function t(){_classCallCheck(this,t)})),Sa=0,Oa=((da=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._labelId="mat-optgroup-label-".concat(Sa++),t}return _inherits(e,t),e}(xa)).\u0275fac=function(t){return Da(t||da)},da.\u0275cmp=a.sc({type:da,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:Di,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(a.Zc(Oi),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}),da),Da=a.Fc(Oa),Ea=0,Aa=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=n},Pa=new a.v("MAT_OPTION_PARENT_COMPONENT"),Ra=((fa=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(Ea++),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 Aa(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=mn(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||fa)(a.yc(a.q),a.yc(a.j),a.yc(Pa,8),a.yc(Oa,8))},fa.\u0275cmp=a.sc({type:fa,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:Pi,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,Ei,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:[_e.t,ba,Ca],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}),fa);function Ta(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 Ma,ja,La,Fa,Na,za=((Ma=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ma}),Ma.\u0275inj=a.vc({factory:function(t){return new(t||Ma)},imports:[[ka,_e.c,wa]]}),Ma),Ba=new a.v("mat-label-global-options"),Va=["mat-button",""],Ua=["*"],Ha=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qa=ji(Mi(Li((function t(e){_classCallCheck(this,t),this._elementRef=e})))),Ga=((Fa=function(t){function e(t,n,i){var a;_classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._focusMonitor=n,a._animationMode=i,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var r=!0,o=!1,s=void 0;try{for(var l,c=Ha[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;a._hasHostAttributes(u)&&a._getHostElement().classList.add(u)}}catch(h){o=!0,s=h}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return t.nativeElement.classList.add("mat-button-base"),a._focusMonitor.monitor(a._elementRef,!0),a.isRoundButton&&(a.color="accent"),a}return _inherits(e,t),_createClass(e,[{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}),Fa),Ya=((La=function(t){function e(t,n,i){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n,t,i))}return _inherits(e,t),_createClass(e,[{key:"_haltDisabledEvents",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}]),e}(Ga)).\u0275fac=function(t){return new(t||La)(a.yc(li),a.yc(a.q),a.yc(Re,8))},La.\u0275cmp=a.sc({type:La,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:Va,ngContentSelectors:Ua,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:[ba],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}),La),Wa=((ja=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ja}),ja.\u0275inj=a.vc({factory:function(t){return new(t||ja)},imports:[[ka,Ii],Ii]}),ja),Qa=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}(),$a=((Na=function(){function t(){_classCallCheck(this,t),this._listeners=[]}return _createClass(t,[{key:"notify",value:function(t,e){var n=!0,i=!1,a=void 0;try{for(var r,o=this._listeners[Symbol.iterator]();!(n=(r=o.next()).done);n=!0)(0,r.value)(t,e)}catch(s){i=!0,a=s}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}},{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||Na)},Na.\u0275prov=Object(a.uc)({factory:function(){return new Na},token:Na,providedIn:"root"}),Na),Ka=n("DH7j"),Xa=n("XoHu"),Za=n("Cfvw");function Ja(){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 kr(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return kr(t.value)?null:xr.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(kr(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(kr(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(Or);return 0==e.length?null:function(t){return Er(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(Or);return 0==e.length?null:function(t){return Ja(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(Dr)).pipe(Object(rn.a)(Er))}}}]),t}();function Or(t){return null!=t}function Dr(t){var e=Object(a.Nb)(t)?Object(Za.a)(t):t;if(!Object(a.Mb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Er(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 Ar(t){return t.validate?function(e){return t.validate(e)}:t}function Pr(t){return t.validate?function(e){return t.validate(e)}:t}var Rr,Tr,Ir,Mr,jr={provide:rr,useExisting:Object(a.cb)((function(){return Lr})),multi:!0},Lr=((Rr=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||Rr)(a.yc(a.L),a.yc(a.q))},Rr.\u0275dir=a.tc({type:Rr,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([jr])]}),Rr),Fr={provide:rr,useExisting:Object(a.cb)((function(){return zr})),multi:!0},Nr=((Ir=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||Ir)},Ir.\u0275prov=a.uc({token:Ir,factory:Ir.\u0275fac}),Ir),zr=((Tr=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(vr),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||Tr)(a.yc(a.L),a.yc(a.q),a.yc(Nr),a.yc(a.w))},Tr.\u0275dir=a.tc({type:Tr,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([Fr])]}),Tr),Br={provide:rr,useExisting:Object(a.cb)((function(){return Vr})),multi:!0},Vr=((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",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||Mr)(a.yc(a.L),a.yc(a.q))},Mr.\u0275dir=a.tc({type:Mr,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([Br])]}),Mr),Ur='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Hr='\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
',Gr=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(Ur))}},{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(Hr,"\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(Ur))}},{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(Hr))}},{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}(),Yr={provide:rr,useExisting:Object(a.cb)((function(){return Kr})),multi:!0};function Wr(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var Qr,$r,Kr=(($r=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=Wr(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 uo(t){return null!=t?Sr.compose(t.map(Ar)):null}function ho(t){return null!=t?Sr.composeAsync(t.map(Pr)):null}function fo(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(a.Ob)(e,n.currentValue)}var mo=[sr,Vr,Lr,Kr,no,zr];function po(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 go(t,e){if(!e)return null;Array.isArray(e)||co(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===ur?n=e:(r=e,mo.some((function(t){return r.constructor===t}))?(i&&co(t,"More than one built-in value accessor matches form control with"),i=e):(a&&co(t,"More than one custom value accessor matches form control with"),a=e))})),a||i||n||(co(t,"No valid value accessor for form control with"),null)}function vo(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function yo(t,e,n,i){Object(a.eb)()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(Gr.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function _o(t){var e=ko(t)?t.validators:t;return Array.isArray(e)?uo(e):e||null}function bo(t,e){var n=ko(e)?e.asyncValidators:t;return Array.isArray(n)?ho(n):n||null}function ko(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Co,wo,xo,So,Oo,Do,Eo,Ao,Po,Ro=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=_o(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=bo(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=Dr(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 Io?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Mo&&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){ko(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}(),To=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(i),bo(a,i))))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(i),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _inherits(e,t),_createClass(e,[{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}}]),e}(Ro),Io=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(n),bo(i,n)))).controls=t,a._initObservables(),a._setUpdateStrategy(n),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return _inherits(e,t),_createClass(e,[{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 To?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,"'."))}))}}]),e}(Ro),Mo=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(n),bo(i,n)))).controls=t,a._initObservables(),a._setUpdateStrategy(n),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return _inherits(e,t),_createClass(e,[{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 To?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=!0,e=!1,n=void 0;try{for(var i,a=this.controls[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){if(i.value.enabled)return!1}}catch(r){e=!0,n=r}finally{try{t||null==a.return||a.return()}finally{if(e)throw n}}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}}]),e}(Ro),jo={provide:dr,useExisting:Object(a.cb)((function(){return Fo}))},Lo=Promise.resolve(null),Fo=((wo=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).submitted=!1,i._directives=[],i.ngSubmit=new a.s,i.form=new Io({},uo(t),ho(n)),i}return _inherits(e,t),_createClass(e,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;Lo.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),ro(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;Lo.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),vo(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;Lo.then((function(){var n=e._findContainer(t.path),i=new Io({});so(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;Lo.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;Lo.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,po(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}}]),e}(dr)).\u0275fac=function(t){return new(t||wo)(a.yc(Cr,10),a.yc(wr,10))},wo.\u0275dir=a.tc({type:wo,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([jo]),a.hc]}),wo),No=((Co=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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 ao(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 uo(this._validators)}},{key:"asyncValidator",get:function(){return ho(this._asyncValidators)}}]),e}(dr)).\u0275fac=function(t){return zo(t||Co)},Co.\u0275dir=a.tc({type:Co,features:[a.hc]}),Co),zo=a.Fc(No),Bo=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(Ur,'\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(Hr,"\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(Hr,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(qr))}}]),t}(),Vo={provide:dr,useExisting:Object(a.cb)((function(){return Uo}))},Uo=((xo=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"_checkParentType",value:function(){this._parent instanceof e||this._parent instanceof Fo||Bo.modelGroupParentException()}}]),e}(No)).\u0275fac=function(t){return new(t||xo)(a.yc(dr,5),a.yc(Cr,10),a.yc(wr,10))},xo.\u0275dir=a.tc({type:xo,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a.jc([Vo]),a.hc]}),xo),Ho={provide:vr,useExisting:Object(a.cb)((function(){return Go}))},qo=Promise.resolve(null),Go=((Oo=function(t){function e(t,n,i,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).control=new To,o._registered=!1,o.update=new a.s,o._parent=t,o._rawValidators=n||[],o._rawAsyncValidators=i||[],o.valueAccessor=go(_assertThisInitialized(o),r),o}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),fo(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(){ro(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 Uo)&&this._parent instanceof No?Bo.formGroupNameException():this._parent instanceof Uo||this._parent instanceof Fo||Bo.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Bo.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?ao(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}}]),e}(vr)).\u0275fac=function(t){return new(t||Oo)(a.yc(dr,9),a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10))},Oo.\u0275dir=a.tc({type:Oo,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([Ho]),a.hc,a.ic]}),Oo),Yo=((So=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||So)},So.\u0275dir=a.tc({type:So,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),So),Wo=new a.v("NgModelWithFormControlWarning"),Qo={provide:vr,useExisting:Object(a.cb)((function(){return $o}))},$o=((Do=function(t){function e(t,n,i,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngModelWarningConfig=r,o.update=new a.s,o._ngModelWarningSent=!1,o._rawValidators=t||[],o._rawAsyncValidators=n||[],o.valueAccessor=go(_assertThisInitialized(o),i),o}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(ro(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),fo(t,this.viewModel)&&(yo("formControl",e,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){Gr.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),e}(vr)).\u0275fac=function(t){return new(t||Do)(a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10),a.yc(Wo,8))},Do.\u0275dir=a.tc({type:Do,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.jc([Qo]),a.hc,a.ic]}),Do._ngModelWarningSentOnce=!1,Do),Ko={provide:dr,useExisting:Object(a.cb)((function(){return Xo}))},Xo=((Eo=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new a.s,i}return _inherits(e,t),_createClass(e,[{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 ro(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){vo(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);so(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);so(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,po(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 lo(e)})),e.valueAccessor.registerOnTouched((function(){return lo(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&&ro(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=uo(this._validators);this.form.validator=Sr.compose([this.form.validator,t]);var e=ho(this._asyncValidators);this.form.asyncValidator=Sr.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||Gr.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),e}(dr)).\u0275fac=function(t){return new(t||Eo)(a.yc(Cr,10),a.yc(wr,10))},Eo.\u0275dir=a.tc({type:Eo,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([Ko]),a.hc,a.ic]}),Eo),Zo={provide:dr,useExisting:Object(a.cb)((function(){return Jo}))},Jo=((Ao=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"_checkParentType",value:function(){ns(this._parent)&&Gr.groupParentException()}}]),e}(No)).\u0275fac=function(t){return new(t||Ao)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10))},Ao.\u0275dir=a.tc({type:Ao,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a.jc([Zo]),a.hc]}),Ao),ts={provide:dr,useExisting:Object(a.cb)((function(){return es}))},es=((Po=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){ns(this._parent)&&Gr.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 ao(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return uo(this._validators)}},{key:"asyncValidator",get:function(){return ho(this._asyncValidators)}}]),e}(dr)).\u0275fac=function(t){return new(t||Po)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10))},Po.\u0275dir=a.tc({type:Po,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a.jc([ts]),a.hc]}),Po);function ns(t){return!(t instanceof Jo||t instanceof Xo||t instanceof es)}var is,as,rs,os,ss,ls,cs,us,hs,ds,fs,ms,ps,gs,vs,ys,_s,bs,ks,Cs,ws,xs,Ss,Os,Ds,Es,As,Ps,Rs,Ts,Is,Ms,js,Ls={provide:vr,useExisting:Object(a.cb)((function(){return Fs}))},Fs=((is=function(t){function e(t,n,i,r,o){var s;return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngModelWarningConfig=o,s._added=!1,s.update=new a.s,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=go(_assertThisInitialized(s),r),s}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),fo(t,this.viewModel)&&(yo("formControlName",e,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 Jo)&&this._parent instanceof No?Gr.ngModelGroupException():this._parent instanceof Jo||this._parent instanceof Xo||this._parent instanceof es||Gr.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){Gr.disabledAttrWarning()}},{key:"path",get:function(){return ao(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 uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}}]),e}(vr)).\u0275fac=function(t){return new(t||is)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10),a.yc(Wo,8))},is.\u0275dir=a.tc({type:is,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.jc([Ls]),a.hc,a.ic]}),is._ngModelWarningSentOnce=!1,is),Ns={provide:Cr,useExisting:Object(a.cb)((function(){return Bs})),multi:!0},zs={provide:Cr,useExisting:Object(a.cb)((function(){return Vs})),multi:!0},Bs=((rs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this.required?Sr.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||rs)},rs.\u0275dir=a.tc({type:rs,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([Ns])]}),rs),Vs=((as=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"validate",value:function(t){return this.required?Sr.requiredTrue(t):null}}]),e}(Bs)).\u0275fac=function(t){return Us(t||as)},as.\u0275dir=a.tc({type:as,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([zs]),a.hc]}),as),Us=a.Fc(Vs),Hs={provide:Cr,useExisting:Object(a.cb)((function(){return qs})),multi:!0},qs=((os=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this._enabled?Sr.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||os)},os.\u0275dir=a.tc({type:os,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a.jc([Hs])]}),os),Gs={provide:Cr,useExisting:Object(a.cb)((function(){return Ys})),multi:!0},Ys=((ss=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=Sr.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}()).\u0275fac=function(t){return new(t||ss)},ss.\u0275dir=a.tc({type:ss,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([Gs]),a.ic]}),ss),Ws={provide:Cr,useExisting:Object(a.cb)((function(){return Qs})),multi:!0},Qs=((ls=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=Sr.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}()).\u0275fac=function(t){return new(t||ls)},ls.\u0275dir=a.tc({type:ls,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([Ws]),a.ic]}),ls),$s={provide:Cr,useExisting:Object(a.cb)((function(){return Ks})),multi:!0},Ks=((fs=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=Sr.pattern(this.pattern)}}]),t}()).\u0275fac=function(t){return new(t||fs)},fs.\u0275dir=a.tc({type:fs,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([$s]),a.ic]}),fs),Xs=((ds=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ds}),ds.\u0275inj=a.vc({factory:function(t){return new(t||ds)}}),ds),Zs=((hs=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 Io(n,{asyncValidators:a,updateOn:r,validators:i})}},{key:"control",value:function(t,e,n){return new To(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,a=t.map((function(t){return i._createControl(t)}));return new Mo(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 To||t instanceof Io||t instanceof Mo?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||hs)},hs.\u0275prov=a.uc({token:hs,factory:hs.\u0275fac}),hs),Js=((us=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:us}),us.\u0275inj=a.vc({factory:function(t){return new(t||us)},providers:[Nr],imports:[Xs]}),us),tl=((cs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:Wo,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}()).\u0275mod=a.wc({type:cs}),cs.\u0275inj=a.vc({factory:function(t){return new(t||cs)},providers:[Zs,Nr],imports:[Xs]}),cs),el=["button"],nl=["*"],il=new a.v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),al={provide:rr,useExisting:Object(a.cb)((function(){return ll})),multi:!0},rl=function t(){_classCallCheck(this,t)},ol=0,sl=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},ll=((ms=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(ol++),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 Qa(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 sl(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=mn(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=mn(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))}}]),t}()).\u0275fac=function(t){return new(t||ms)(a.yc(a.j),a.yc(il,8))},ms.\u0275dir=a.tc({type:ms,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,ul,!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([al,{provide:rl,useExisting:ms}])]}),ms),cl=Li((function t(){_classCallCheck(this,t)})),ul=((gs=function(t){function e(t,n,i,r,o,s){var l;_classCallCheck(this,e),(l=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._changeDetectorRef=n,l._elementRef=i,l._focusMonitor=r,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new a.s;var c=Number(o);return l.tabIndex=c||0===c?c:null,l.buttonToggleGroup=t,l.appearance=s&&s.appearance?s.appearance:"standard",l}return _inherits(e,t),_createClass(e,[{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(ol++),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 sl(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=mn(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=mn(t)}}]),e}(cl)).\u0275fac=function(t){return new(t||gs)(a.yc(ll,8),a.yc(a.j),a.yc(a.q),a.yc(li),a.Nc("tabindex"),a.yc(il,8))},gs.\u0275cmp=a.sc({type:gs,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&a.zd(el,!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:nl,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:[ba],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}),gs),hl=((ps=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ps}),ps.\u0275inj=a.vc({factory:function(t){return new(t||ps)},imports:[[Ii,ka],Ii]}),ps),dl=["*",[["mat-card-footer"]]],fl=["*","mat-card-footer"],ml=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],pl=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],gl=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],vl=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],yl=((Rs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Rs)},Rs.\u0275dir=a.tc({type:Rs,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Rs),_l=((Ps=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ps)},Ps.\u0275dir=a.tc({type:Ps,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Ps),bl=((As=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||As)},As.\u0275dir=a.tc({type:As,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),As),kl=((Es=function t(){_classCallCheck(this,t),this.align="start"}).\u0275fac=function(t){return new(t||Es)},Es.\u0275dir=a.tc({type:Es,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"]}),Es),Cl=((Ds=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ds)},Ds.\u0275dir=a.tc({type:Ds,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),Ds),wl=((Os=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Os)},Os.\u0275dir=a.tc({type:Os,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Os),xl=((Ss=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ss)},Ss.\u0275dir=a.tc({type:Ss,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Ss),Sl=((xs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||xs)},xs.\u0275dir=a.tc({type:xs,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),xs),Ol=((ws=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ws)},ws.\u0275dir=a.tc({type:ws,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),ws),Dl=((Cs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Cs)},Cs.\u0275dir=a.tc({type:Cs,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),Cs),El=((ks=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ks)},ks.\u0275dir=a.tc({type:ks,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),ks),Al=((bs=function t(e){_classCallCheck(this,t),this._animationMode=e}).\u0275fac=function(t){return new(t||bs)(a.yc(Re,8))},bs.\u0275cmp=a.sc({type:bs,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:fl,decls:2,vars:0,template:function(t,e){1&t&&(a.Zc(dl),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}),bs),Pl=((_s=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||_s)},_s.\u0275cmp=a.sc({type:_s,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:pl,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(a.Zc(ml),a.Yc(0),a.Dc(1,"div",0),a.Yc(2,1),a.Cc(),a.Yc(3,2))},encapsulation:2,changeDetection:0}),_s),Rl=((ys=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ys)},ys.\u0275cmp=a.sc({type:ys,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:vl,decls:4,vars:0,template:function(t,e){1&t&&(a.Zc(gl),a.Dc(0,"div"),a.Yc(1),a.Cc(),a.Yc(2,1),a.Yc(3,2))},encapsulation:2,changeDetection:0}),ys),Tl=((vs=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:vs}),vs.\u0275inj=a.vc({factory:function(t){return new(t||vs)},imports:[[Ii],Ii]}),vs),Il=["input"],Ml=function(){return{enterDuration:150}},jl=["*"],Ll=new a.v("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),Fl=new a.v("mat-checkbox-click-action"),Nl=0,zl={provide:rr,useExisting:Object(a.cb)((function(){return Ul})),multi:!0},Bl=function t(){_classCallCheck(this,t)},Vl=Fi(ji(Li(Mi((function t(e){_classCallCheck(this,t),this._elementRef=e}))))),Ul=((Ts=function(t){function e(t,n,i,r,o,s,l,c){var u;return _classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._changeDetectorRef=n,u._focusMonitor=i,u._ngZone=r,u._clickAction=s,u._animationMode=l,u._options=c,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-".concat(++Nl),u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new a.s,u.indeterminateChange=new a.s,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||{},u._options.color&&(u.color=u._options.color),u.tabIndex=parseInt(o)||0,u._focusMonitor.monitor(t,!0).subscribe((function(t){t||Promise.resolve().then((function(){u._onTouched(),n.markForCheck()}))})),u._clickAction=u._clickAction||u._options.clickAction,u}return _inherits(e,t),_createClass(e,[{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 Bl;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=mn(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=mn(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=mn(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),e}(Vl)).\u0275fac=function(t){return new(t||Ts)(a.yc(a.q),a.yc(a.j),a.yc(li),a.yc(a.F),a.Nc("tabindex"),a.yc(Fl,8),a.yc(Re,8),a.yc(Ll,8))},Ts.\u0275cmp=a.sc({type:Ts,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(a.zd(Il,!0),a.zd(ba,!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([zl]),a.hc],ngContentSelectors:jl,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,Ml))}},directives:[ba,Nn],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}),Ts),Hl={provide:Cr,useExisting:Object(a.cb)((function(){return ql})),multi:!0},ql=((Is=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Vs)).\u0275fac=function(t){return Gl(t||Is)},Is.\u0275dir=a.tc({type:Is,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[a.jc([Hl]),a.hc]}),Is),Gl=a.Fc(ql),Yl=((js=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:js}),js.\u0275inj=a.vc({factory:function(t){return new(t||js)}}),js),Wl=((Ms=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ms}),Ms.\u0275inj=a.vc({factory:function(t){return new(t||Ms)},imports:[[ka,Ii,zn,Yl],Ii,Yl]}),Ms);function Ql(t){return new sn.a((function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(Za.a)(n):cn()).subscribe(e)}))}var $l=n("VRyK");function Kl(t,e,n,i){return Object(He.a)(n)&&(i=n,n=void 0),i?Kl(t,e,n).pipe(Object(rn.a)((function(t){return Object(Ka.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,h=e.length;u1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var Xl=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).scheduler=t,i.work=n,i}return _inherits(e,t),_createClass(e,[{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(e.prototype),"requestAsyncId",this).call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,n){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(e.prototype),"recycleAsyncId",this).call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)}}]),e}(We),Zl=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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(e.prototype),"requestAsyncId",this).call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=ec(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,n){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(e.prototype),"recycleAsyncId",this).call(this,t,n,i);0===t.actions.length&&(nc(n),t.scheduled=void 0)}}]),e}(We),ac=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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 fc(){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 dc(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=dc(t)?t:+t-n.now();return n.schedule(mc,a,{index:0,period:i,subscriber:e})}))}function mc(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 pc(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return e=function(){return fc(t,n)},function(t){return t.lift(new uc(e))}}function gc(t){return function(e){return e.lift(new vc(t))}}var vc=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var n=new yc(t),i=Object(cc.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),yc=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).seenValue=!1,n}return _inherits(e,t),_createClass(e,[{key:"notifyNext",value:function(t,e,n,i,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),e}(lc.a),_c=n("51Dv");function bc(t,e){return"function"==typeof e?function(n){return n.pipe(bc((function(n,i){return Object(Za.a)(t(n,i)).pipe(Object(rn.a)((function(t,a){return e(n,t,i,a)})))})))}:function(e){return e.lift(new kc(t))}}var kc=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Cc(t,this.project))}}]),t}(),Cc=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).project=n,i.index=0,i}return _inherits(e,t),_createClass(e,[{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 _c.a(this,void 0,void 0);this.destination.add(a),this.innerSubscription=Object(cc.a)(this,t,e,n,a)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(e.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(e.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,n,i,a){this.destination.next(e)}}]),e}(lc.a),wc=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).scheduler=t,i.work=n,i}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?_get(_getPrototypeOf(e.prototype),"schedule",this).call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,n){return n>0||this.closed?_get(_getPrototypeOf(e.prototype),"execute",this).call(this,t,n):this._execute(t,n)}},{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(e.prototype),"requestAsyncId",this).call(this,t,n,i):t.flush(this)}}]),e}(We),xc=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}($e))(wc);function Sc(t,e){return new sn.a(e?function(n){return e.schedule(Oc,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Oc(t){var e=t.error;t.subscriber.error(e)}var Dc,Ec,Ac,Pc,Rc,Tc=((Dc=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 ze(this.value);case"E":return Sc(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 Dc("C"),Dc.undefinedValueNotification=new Dc("N",void 0),Dc),Ic=function(t){function e(t,n){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).scheduler=n,i.delay=a,i}return _inherits(e,t),_createClass(e,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Mc(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(Tc.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(Tc.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Tc.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),e}(Ve.a),Mc=function t(e,n){_classCallCheck(this,t),this.notification=e,this.destination=n},jc=n("9ppp"),Lc=n("Ylt2"),Fc=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).scheduler=a,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _inherits(e,t),_createClass(e,[{key:"nextInfiniteTimeWindow",value:function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),_get(_getPrototypeOf(e.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new Nc(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(e.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 jc.a;if(this.isStopped||this.hasError?e=je.a.EMPTY:(this.observers.push(t),e=new Lc.a(this,t)),a&&t.add(t=new Ic(t,a)),n)for(var o=0;oe&&(r=Math.max(r,a-e)),r>0&&i.splice(0,r),i}}]),e}(Me.a),Nc=function t(e,n){_classCallCheck(this,t),this.time=e,this.value=n},zc=((Rc=function(){function t(e,n){_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._scrolled=new Me.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}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(pc(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):ze()}},{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:"_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 Kl(window.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||Rc)(a.Mc(a.F),a.Mc(Sn))},Rc.\u0275prov=Object(a.uc)({factory:function(){return new Rc(Object(a.Mc)(a.F),Object(a.Mc)(Sn))},token:Rc,providedIn:"root"}),Rc),Bc=((Pc=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 Kl(r.elementRef.nativeElement,"scroll").pipe(gc(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!=Pn()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Pn()?t.left=t.right:1==Pn()&&(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==Pn()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Pn()?"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||Pc)(a.yc(a.q),a.yc(zc),a.yc(a.F),a.yc(yi,8))},Pc.\u0275dir=a.tc({type:Pc,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Pc),Vc=((Ac=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._platform=e,n.runOutsideAngular((function(){i._change=e.isBrowser?Object($l.a)(Kl(window,"resize"),Kl(window,"orientationchange")):ze(),i._invalidateCache=i.change().subscribe((function(){return i._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=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(pc(t)):this._change}},{key:"_updateViewportSize",value:function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||Ac)(a.Mc(Sn),a.Mc(a.F))},Ac.\u0275prov=Object(a.uc)({factory:function(){return new Ac(Object(a.Mc)(Sn),Object(a.Mc)(a.F))},token:Ac,providedIn:"root"}),Ac),Uc=((Ec=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ec}),Ec.\u0275inj=a.vc({factory:function(t){return new(t||Ec)},imports:[[bi,On],bi]}),Ec);function Hc(){throw Error("Host already has a portal attached")}var qc,Gc,Yc=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()&&Hc(),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}(),Wc=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).component=t,r.viewContainerRef=n,r.injector=i,r.componentFactoryResolver=a,r}return _inherits(e,t),e}(Yc),Qc=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).templateRef=t,a.viewContainerRef=n,a.context=i,a}return _inherits(e,t),_createClass(e,[{key:"attach",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=n,_get(_getPrototypeOf(e.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(e.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),e}(Yc),$c=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).element=t instanceof a.q?t.nativeElement:t,n}return _inherits(e,t),e}(Yc),Kc=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()&&Hc(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof Wc?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Qc?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof $c?(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}(),Xc=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).outletElement=t,o._componentFactoryResolver=n,o._appRef=i,o._defaultInjector=a,o.attachDomPortal=function(t){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=t.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=o._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),o.outletElement.appendChild(n),_get(_getPrototypeOf(e.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},o._document=r,o}return _inherits(e,t),_createClass(e,[{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(e.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]}}]),e}(Kc),Zc=((Gc=function(t){function e(t,n,i){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._componentFactoryResolver=t,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new a.s,r.attachDomPortal=function(t){if(!r._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=t.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=r._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(r)),n.parentNode.insertBefore(i,n),r._getRootNode().appendChild(n),_get(_getPrototypeOf(e.prototype),"setDisposeFn",_assertThisInitialized(r)).call(_assertThisInitialized(r),(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},r._document=i,r}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(e.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=n.createComponent(i,n.length,t.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(e.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 n=this;t.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(e.prototype),"setDisposeFn",this).call(this,(function(){return n._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(e.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(e.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),e}(Kc)).\u0275fac=function(t){return new(t||Gc)(a.yc(a.n),a.yc(a.X),a.yc(_e.e))},Gc.\u0275dir=a.tc({type:Gc,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.hc]}),Gc),Jc=((qc=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:qc}),qc.\u0275inj=a.vc({factory:function(t){return new(t||qc)}}),qc),tu=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}(),eu=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 nu(){return Error("Scroll strategy has already been attached.")}var iu=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 nu();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}(),au=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function ru(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function ou(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var su,lu=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 nu();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;ru(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}(),cu=((su=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 au},this.close=function(t){return new iu(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new eu(r._viewportRuler,r._document)},this.reposition=function(t){return new lu(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=a}).\u0275fac=function(t){return new(t||su)(a.Mc(zc),a.Mc(Vc),a.Mc(a.F),a.Mc(_e.e))},su.\u0275prov=Object(a.uc)({factory:function(){return new su(Object(a.Mc)(zc),Object(a.Mc)(Vc),Object(a.Mc)(a.F),Object(a.Mc)(_e.e))},token:su,providedIn:"root"}),su),uu=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new au,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||pu)(a.Mc(_e.e))},pu.\u0275prov=Object(a.uc)({factory:function(){return new pu(Object(a.Mc)(_e.e))},token:pu,providedIn:"root"}),pu),yu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),_u=((gu=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||yu)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;np&&(p=C,m=k)}}catch(w){v=!0,y=w}finally{try{g||null==b.return||b.return()}finally{if(v)throw y}}return this._isPushed=!1,void this._applyPosition(m.position,m.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&&wu(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),h=this._subtractOverflows(e.height,l,c),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===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=xu(this._overlayRef.getConfig().minHeight),o=xu(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.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/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 d=Math.min(l.right-t.x+l.left,t.x),f=this._lastBoundingBoxSize.width;r=2*d,o=t.x-d,r>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/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,wu(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){wu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){wu(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();wu(n,this._getExactOverlayY(e,t,o)),wu(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="")),wu(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:ou(t,n),isOriginOutsideView:ru(t,n),isOverlayClipped:ou(e,n),isOverlayOutsideView:ru(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}(),Tu=((Ou=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 Ru}},{key:"connectedTo",value:function(t,e,n){return new Pu(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Cu(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||Ou)(a.Mc(Vc),a.Mc(_e.e),a.Mc(Sn),a.Mc(_u))},Ou.\u0275prov=Object(a.uc)({factory:function(){return new Ou(Object(a.Mc)(Vc),Object(a.Mc)(_e.e),Object(a.Mc)(Sn),Object(a.Mc)(_u))},token:Ou,providedIn:"root"}),Ou),Iu=0,Mu=((Su=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 uu(t);return a.direction=a.direction||this._directionality.value,new bu(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(Iu++),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 Xc(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}()).\u0275fac=function(t){return new(t||Su)(a.Mc(cu),a.Mc(_u),a.Mc(a.n),a.Mc(Tu),a.Mc(vu),a.Mc(a.w),a.Mc(a.F),a.Mc(_e.e),a.Mc(yi),a.Mc(_e.n,8))},Su.\u0275prov=a.uc({token:Su,factory:Su.\u0275fac}),Su),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"}],Lu=new a.v("cdk-connected-overlay-scroll-strategy"),Fu=((Eu=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||Eu)(a.yc(a.q))},Eu.\u0275dir=a.tc({type:Eu,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Eu),Nu=((Du=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 Qc(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=ju),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 uu({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=mn(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=mn(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=mn(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=mn(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=mn(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||Du)(a.yc(Mu),a.yc(a.U),a.yc(a.X),a.yc(Lu),a.yc(yi,8))},Du.\u0275dir=a.tc({type:Du,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]}),Du),zu={provide:Lu,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Bu=((Au=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Au}),Au.\u0275inj=a.vc({factory:function(t){return new(t||Au)},providers:[Mu,zu],imports:[[bi,Jc,Uc],Uc]}),Au);function Vu(t){var e,n=arguments.length>1&&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 Uu(i,n))}}var Uu=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 Hu(t,this.delay,this.scheduler))}}]),t}(),Hu=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).delay=n,a.scheduler=i,a.queue=[],a.active=!1,a.errored=!1,a}return _inherits(e,t),_createClass(e,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(e.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 qu(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Tc.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Tc.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}}]),e}(Ve.a),qu=function t(e,n){_classCallCheck(this,t),this.time=e,this.notification=n},Gu=["underline"],Yu=["connectionContainer"],Wu=["inputContainer"],Qu=["label"];function $u(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 Ku(t,e){1&t&&(a.Dc(0,"div",19),a.Yc(1,1),a.Cc())}function Xu(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 Zu(t,e){1&t&&a.Yc(0,3,["*ngSwitchCase","true"])}function Ju(t,e){1&t&&(a.Dc(0,"span",23),a.vd(1," *"),a.Cc())}function th(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,Xu,4,1,"ng-container",12),a.td(3,Zu,1,0,void 0,12),a.td(4,Ju,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 eh(t,e){1&t&&(a.Dc(0,"div",24),a.Yc(1,4),a.Cc())}function nh(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 ih(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 ah(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 rh(t,e){if(1&t&&(a.Dc(0,"div",28),a.td(1,ah,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 oh,sh,lh=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ch=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],uh=0,hh=((oh=function t(){_classCallCheck(this,t),this.id="mat-error-".concat(uh++)}).\u0275fac=function(t){return new(t||oh)},oh.\u0275dir=a.tc({type:oh,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"}}),oh),dh={transitionMessages:o("transitionMessages",[h("enter",u({opacity:1,transform:"translateY(0%)"})),d("void => enter",[u({opacity:0,transform:"translateY(-100%)"}),s("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fh=((sh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||sh)},sh.\u0275dir=a.tc({type:sh}),sh);function mh(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var ph,gh,vh,yh,_h,bh,kh,Ch=0,wh=((_h=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-".concat(Ch++)}).\u0275fac=function(t){return new(t||_h)},_h.\u0275dir=a.tc({type:_h,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"}}),_h),xh=((yh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||yh)},yh.\u0275dir=a.tc({type:yh,selectors:[["mat-label"]]}),yh),Sh=((vh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||vh)},vh.\u0275dir=a.tc({type:vh,selectors:[["mat-placeholder"]]}),vh),Oh=((gh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||gh)},gh.\u0275dir=a.tc({type:gh,selectors:[["","matPrefix",""]]}),gh),Dh=((ph=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ph)},ph.\u0275dir=a.tc({type:ph,selectors:[["","matSuffix",""]]}),ph),Eh=0,Ah=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Ph=new a.v("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Rh=((kh=function(t){function e(t,n,i,a,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,c._changeDetectorRef=n,c._dir=a,c._defaults=r,c._platform=o,c._ngZone=s,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new Me.a,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-".concat(Eh++),c._labelId="mat-form-field-label-".concat(Eh++),c._labelOptions=i||{},c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=r&&r.appearance?r.appearance:"legacy",c._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker,c}return _inherits(e,t),_createClass(e,[{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(Si(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(gc(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(gc(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object($l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Si(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Si(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(gc(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._showAlwaysAnimate=!0,Kl(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 mh("start");t=i}else if("end"===i.align){if(e)throw mh("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=this._getStartEnd(o),l=this._getStartEnd(t.children[0].getBoundingClientRect()),c=0,u=!0,h=!1,d=void 0;try{for(var f,m=t.children[Symbol.iterator]();!(u=(f=m.next()).done);u=!0)c+=f.value.offsetWidth}catch(v){h=!0,d=v}finally{try{u||null==m.return||m.return()}finally{if(h)throw d}}e=l-s-5,n=c>0?.75*c+10:0}for(var p=0;p0&&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=Ta(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=Ia(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()})),Vu(0));return Object($l.a)(e,n).pipe(bc((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 Qc(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 uu({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:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=mn(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return Object($l.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}))):ze()).pipe(Object(rn.a)((function(t){return t instanceof Aa?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}()).\u0275fac=function(t){return new(t||Nh)(a.yc(a.q),a.yc(Mu),a.yc(a.X),a.yc(a.F),a.yc(a.j),a.yc(Yh),a.yc(yi,8),a.yc(Rh,9),a.yc(_e.e,8),a.yc(Vc))},Nh.\u0275dir=a.tc({type:Nh,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: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([Qh]),a.ic]}),Nh),Kh=((Fh=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Fh}),Fh.\u0275inj=a.vc({factory:function(t){return new(t||Fh)},providers:[Wh],imports:[[za,Bu,Ii,_e.c],za,Ii]}),Fh);function Xh(t,e){}var Zh=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},Jh={dialogContainer:o("dialogContainer",[h("void, exit",u({opacity:0,transform:"scale(0.7)"})),h("enter",u({transform:"none"})),d("* => enter",s("150ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"none",opacity:1}))),d("* => void, * => exit",s("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",u({opacity:0})))])};function td(){throw Error("Attempting to attach dialog content after content is already attached")}var ed,nd,id,ad,rd,od,sd=((ed=function(t){function e(t,n,i,r,o){var s;return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,s._focusTrapFactory=n,s._changeDetectorRef=i,s._config=o,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new a.s,s.attachDomPortal=function(t){return s._portalOutlet.hasAttached()&&td(),s._savePreviouslyFocusedElement(),s._portalOutlet.attachDomPortal(t)},s._ariaLabelledBy=o.ariaLabelledBy||null,s._document=r,s}return _inherits(e,t),_createClass(e,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&td(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&td(),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()}}]),e}(Kc)).\u0275fac=function(t){return new(t||ed)(a.yc(a.q),a.yc(ei),a.yc(a.j),a.yc(_e.e,8),a.yc(Zh))},ed.\u0275cmp=a.sc({type:ed,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&a.rd(Zc,!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,Xh,0,0,"ng-template",0)},directives:[Zc],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:[Jh.dialogContainer]}}),ed),ld=0,cd=function(){function t(e,n){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(ld++);_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}(),ud=new a.v("MatDialogData"),hd=new a.v("mat-dialog-default-options"),dd=new a.v("mat-dialog-scroll-strategy"),fd={provide:dd,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},md=((od=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=Ql((function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(Si(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 Zh)).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 uu({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:Zh,useValue:e}]}),i=new Wc(sd,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new cd(n,e,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof a.U)e.attachTemplatePortal(new Qc(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),s=e.attachComponentPortal(new Wc(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:sd,useValue:n},{provide:ud,useValue:t.data},{provide:cd,useValue:e}];return!t.direction||i&&i.get(yi,null)||r.push({provide:yi,useValue:{value:t.direction,change:ze()}}),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||od)(a.Mc(Mu),a.Mc(a.w),a.Mc(_e.n,8),a.Mc(hd,8),a.Mc(dd),a.Mc(od,12),a.Mc(_u))},od.\u0275prov=a.uc({token:od,factory:od.\u0275fac}),od),pd=0,gd=((rd=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=bd(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||rd)(a.yc(cd,8),a.yc(a.q),a.yc(md))},rd.\u0275dir=a.tc({type:rd,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]}),rd),vd=((ad=function(){function t(e,n,i){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(pd++)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=bd(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||ad)(a.yc(cd,8),a.yc(a.q),a.yc(md))},ad.\u0275dir=a.tc({type:ad,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"]}),ad),yd=((id=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||id)},id.\u0275dir=a.tc({type:id,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),id),_d=((nd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||nd)},nd.\u0275dir=a.tc({type:nd,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),nd);function bd(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 kd,Cd,wd,xd,Sd=((xd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:xd}),xd.\u0275inj=a.vc({factory:function(t){return new(t||xd)},providers:[md,fd],imports:[[Bu,Jc,Ii],Ii]}),xd),Od=0,Dd=((wd=function(){function t(){_classCallCheck(this,t),this._stateChanges=new Me.a,this._openCloseAllActions=new Me.a,this.id="cdk-accordion-".concat(Od++),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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||wd)},wd.\u0275dir=a.tc({type:wd,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a.ic]}),wd),Ed=0,Ad=((Cd=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(Ed++),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=mn(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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||Cd)(a.yc(Dd,12),a.yc(a.j),a.yc($a))},Cd.\u0275dir=a.tc({type:Cd,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:Dd,useValue:void 0}])]}),Cd),Pd=((kd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:kd}),kd.\u0275inj=a.vc({factory:function(t){return new(t||kd)}}),kd),Rd=["body"];function Td(t,e){}var Id=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Md=["mat-expansion-panel-header","*","mat-action-row"],jd=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Ld=function(t,e){return{value:t,params:e}};function Fd(t,e){if(1&t&&a.zc(0,"span",2),2&t){var n=a.Uc();a.ad("@indicatorRotate",n._getExpandedState())}}var Nd,zd,Bd,Vd,Ud,Hd,qd,Gd,Yd,Wd,Qd,$d,Kd,Xd=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Zd=["mat-panel-title","mat-panel-description","*"],Jd=new a.v("MAT_ACCORDION"),tf={indicatorRotate:o("indicatorRotate",[h("collapsed, void",u({transform:"rotate(0deg)"})),h("expanded",u({transform:"rotate(180deg)"})),d("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[h("collapsed, void",u({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),h("expanded",u({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),d("expanded <=> collapsed, void => collapsed",l([m("@indicatorRotate",f(),{optional:!0}),s("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[h("collapsed, void",u({height:"0px",visibility:"hidden"})),h("expanded",u({height:"*",visibility:"visible"})),d("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},ef=((Nd=function t(e){_classCallCheck(this,t),this._template=e}).\u0275fac=function(t){return new(t||Nd)(a.yc(a.U))},Nd.\u0275dir=a.tc({type:Nd,selectors:[["ng-template","matExpansionPanelContent",""]]}),Nd),nf=0,af=new a.v("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),rf=((qd=function(t){function e(t,n,i,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i)))._viewContainerRef=r,c._animationMode=s,c._hideToggle=!1,c.afterExpand=new a.s,c.afterCollapse=new a.s,c._inputChanges=new Me.a,c._headerId="mat-expansion-panel-header-".concat(nf++),c._bodyAnimationDone=new Me.a,c.accordion=t,c._document=o,c._bodyAnimationDone.pipe(rc((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?c.afterExpand.emit():"collapsed"===t.toState&&c.afterCollapse.emit())})),l&&(c.hideToggle=l.hideToggle),c}return _inherits(e,t),_createClass(e,[{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(Si(null),en((function(){return t.expanded&&!t._portal})),un(1)).subscribe((function(){t._portal=new Qc(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(e.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=mn(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),e}(Ad)).\u0275fac=function(t){return new(t||qd)(a.yc(Jd,12),a.yc(a.j),a.yc($a),a.yc(a.X),a.yc(_e.e),a.yc(Re,8),a.yc(af,8))},qd.\u0275cmp=a.sc({type:qd,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,ef,!0),2&t&&a.gd(i=a.Rc())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&a.zd(Rd,!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:Jd,useValue:void 0}]),a.hc,a.ic],ngContentSelectors:Md,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(Id),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,Td,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:[Zc],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:[tf.bodyExpansion]},changeDetection:0}),qd),of=((Hd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Hd)},Hd.\u0275dir=a.tc({type:Hd,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),Hd),sf=((Ud=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($l.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||Ud)(a.yc(rf,1),a.yc(a.q),a.yc(li),a.yc(a.j),a.yc(af,8))},Ud.\u0275cmp=a.sc({type:Ud,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,Ld,e._getExpandedState(),a.ed(13,jd,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:Zd,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(Xd),a.Dc(0,"span",0),a.Yc(1),a.Yc(2,1),a.Yc(3,2),a.Cc(),a.td(4,Fd,1,1,"span",1)),2&t&&(a.kc(4),a.ad("ngIf",e._showToggle()))},directives:[_e.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:[tf.indicatorRotate,tf.expansionHeaderHeight]},changeDetection:0}),Ud),lf=((Vd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Vd)},Vd.\u0275dir=a.tc({type:Vd,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Vd),cf=((Bd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Bd)},Bd.\u0275dir=a.tc({type:Bd,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Bd),uf=((zd=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._ownHeaders=new a.K,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe(Si(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=mn(t)}}]),e}(Dd)).\u0275fac=function(t){return hf(t||zd)},zd.\u0275dir=a.tc({type:zd,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,sf,!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:Jd,useExisting:zd}]),a.hc]}),zd),hf=a.Fc(uf),df=((Gd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Gd}),Gd.\u0275inj=a.vc({factory:function(t){return new(t||Gd)},imports:[[_e.c,Pd,Jc]]}),Gd),ff=["*"],mf=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],pf=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],gf=new a.v("MAT_GRID_LIST"),vf=((Kd=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||Kd)(a.yc(a.q),a.yc(gf,8))},Kd.\u0275cmp=a.sc({type:Kd,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:ff,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}),Kd),yf=(($d=function(){function t(e){_classCallCheck(this,t),this._element=e}return _createClass(t,[{key:"ngAfterContentInit",value:function(){ra(this._lines,this._element)}}]),t}()).\u0275fac=function(t){return new(t||$d)(a.yc(a.q))},$d.\u0275cmp=a.sc({type:$d,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,aa,!0),2&t&&a.gd(i=a.Rc())&&(e._lines=i)},ngContentSelectors:pf,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(a.Zc(mf),a.Yc(0),a.Dc(1,"div",0),a.Yc(2,1),a.Cc(),a.Yc(3,2))},encapsulation:2,changeDetection:0}),$d),_f=((Qd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Qd)},Qd.\u0275dir=a.tc({type:Qd,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),Qd),bf=((Wd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Wd)},Wd.\u0275dir=a.tc({type:Wd,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),Wd),kf=((Yd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Yd)},Yd.\u0275dir=a.tc({type:Yd,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),Yd),Cf=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 wf(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}(),wf=function t(e,n){_classCallCheck(this,t),this.row=e,this.col=n},xf=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Sf=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=Pf(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":Af("(".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",Af(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}(),Of=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).fixedRowHeight=t,n}return _inherits(e,t),_createClass(e,[{key:"init",value:function(t,n,i,a){if(_get(_getPrototypeOf(e.prototype),"init",this).call(this,t,n,i,a),this.fixedRowHeight=Pf(this.fixedRowHeight),!xf.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",Af(this.getTileSize(this.fixedRowHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",Af("".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)}))}}]),e}(Sf),Df=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parseRatio(t),n}return _inherits(e,t),_createClass(e,[{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",Af(this.getTileSize(this.baseTileHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",Af("".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])}}]),e}(Sf),Ef=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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",Af(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)}))}}]),e}(Sf);function Af(t){return"calc(".concat(t,")")}function Pf(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var Rf,Tf,If=((Tf=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 Ef:t&&t.indexOf(":")>-1?new Df(t):new Of(t)}},{key:"_layoutTiles",value:function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new Cf);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||Tf)(a.yc(a.q),a.yc(yi,8))},Tf.\u0275cmp=a.sc({type:Tf,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,vf,!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:gf,useExisting:Tf}])],ngContentSelectors:ff,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}),Tf),Mf=((Rf=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Rf}),Rf.\u0275inj=a.vc({factory:function(t){return new(t||Rf)},imports:[[ma,Ii],ma,Ii]}),Rf);function jf(t){return function(e){var n=new Lf(t),i=e.lift(n);return n.caught=i}}var Lf=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ff(t,this.selector,this.caught))}}]),t}(),Ff=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).selector=n,a.caught=i,a}return _inherits(e,t),_createClass(e,[{key:"error",value:function(t){if(!this.isStopped){var n;try{n=this.selector(t,this.caught)}catch(a){return void _get(_getPrototypeOf(e.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var i=new _c.a(this,void 0,void 0);this.add(i),Object(cc.a)(this,n,void 0,void 0,i)}}}]),e}(lc.a);function Nf(t){return function(e){return e.lift(new zf(t))}}var zf=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Bf(t,this.callback))}}]),t}(),Bf=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).add(new je.a(n)),i}return _inherits(e,t),e}(Ve.a),Vf=n("w1tV"),Uf=n("5+tZ");function Hf(t,e){return Object(Uf.a)(t,e,1)}var qf=function t(){_classCallCheck(this,t)},Gf=function t(){_classCallCheck(this,t)},Yf=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}(),Wf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return Qf(t)}},{key:"encodeValue",value:function(t){return Qf(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Qf(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 $f=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 Wf,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 Kf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Xf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Zf(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Jf=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 Yf),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}(),tm=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}(),em=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 Yf,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},nm=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).type=tm.ResponseHeader,t}return _inherits(e,t),_createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({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})}}]),e}(em),im=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).type=tm.Response,t.body=void 0!==n.body?n.body:null,t}return _inherits(e,t),_createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({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})}}]),e}(em),am=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(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 _inherits(e,t),e}(em);function rm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var om,sm,lm,cm,um,hm,dm,fm,mm,pm=((om=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 Jf)n=t;else{var r=void 0;r=a.headers instanceof Yf?a.headers:new Yf(a.headers);var o=void 0;a.params&&(o=a.params instanceof $f?a.params:new $f({fromObject:a.params})),n=new Jf(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=ze(n).pipe(Hf((function(t){return i.handler.handle(t)})));if(t instanceof Jf||"events"===a.observe)return s;var l=s.pipe(en((function(t){return t instanceof im})));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 $f).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,rm(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,rm(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,rm(n,e))}}]),t}()).\u0275fac=function(t){return new(t||om)(a.Mc(qf))},om.\u0275prov=a.uc({token:om,factory:om.\u0275fac}),om),gm=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}(),vm=new a.v("HTTP_INTERCEPTORS"),ym=((sm=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||sm)},sm.\u0275prov=a.uc({token:sm,factory:sm.\u0275fac}),sm),_m=/^\)\]\}',?\n/,bm=function t(){_classCallCheck(this,t)},km=((cm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||cm)},cm.\u0275prov=a.uc({token:cm,factory:cm.\u0275fac}),cm),Cm=((lm=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 Yf(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 nm({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 h=c;c=c.replace(_m,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,u&&(u=!1,c={error:d,text:c})}}u?(n.next(new im({body:c,headers:a,status:r,statusText:o,url:s||void 0})),n.complete()):n.error(new am({error:c,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(t){var e=l().url,a=new am({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(a)},h=!1,d=function(e){h||(n.next(l()),h=!0);var a={type:tm.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(a.total=e.total),"text"===t.responseType&&i.responseText&&(a.partialText=i.responseText),n.next(a)},f=function(t){var e={type:tm.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",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:tm.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("load",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||lm)(a.Mc(bm))},lm.\u0275prov=a.uc({token:lm,factory:lm.\u0275fac}),lm),wm=new a.v("XSRF_COOKIE_NAME"),xm=new a.v("XSRF_HEADER_NAME"),Sm=function t(){_classCallCheck(this,t)},Om=((mm=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(_e.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||mm)(a.Mc(_e.e),a.Mc(a.I),a.Mc(wm))},mm.\u0275prov=a.uc({token:mm,factory:mm.\u0275fac}),mm),Dm=((fm=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||fm)(a.Mc(Sm),a.Mc(xm))},fm.\u0275prov=a.uc({token:fm,factory:fm.\u0275fac}),fm),Em=((dm=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(vm,[]);this.chain=e.reduceRight((function(t,e){return new gm(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||dm)(a.Mc(Gf),a.Mc(a.w))},dm.\u0275prov=a.uc({token:dm,factory:dm.\u0275fac}),dm),Am=((hm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Dm,useClass:ym}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:wm,useValue:e.cookieName}:[],e.headerName?{provide:xm,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=a.wc({type:hm}),hm.\u0275inj=a.vc({factory:function(t){return new(t||hm)},providers:[Dm,{provide:vm,useExisting:Dm,multi:!0},{provide:Sm,useClass:Om},{provide:wm,useValue:"XSRF-TOKEN"},{provide:xm,useValue:"X-XSRF-TOKEN"}]}),hm),Pm=((um=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:um}),um.\u0275inj=a.vc({factory:function(t){return new(t||um)},providers:[pm,{provide:qf,useClass:Em},Cm,{provide:Gf,useExisting:Cm},km,{provide:bm,useExisting:km}],imports:[[Am.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),um),Rm=["*"];function Tm(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Im(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 Mm(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var jm,Lm=function t(e,n){_classCallCheck(this,t),this.options=n,e.nodeName?this.svgElement=e:this.url=e},Fm=((jm=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 Lm(n,i))}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,n,i){var r=this._sanitizer.sanitize(a.P.HTML,n);if(!r)throw Mm(n);var o=this._createSvgElementForSingleIcon(r,i);return this._addSvgIconConfig(t,e,new Lm(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 Lm(e,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,n){var i=this._sanitizer.sanitize(a.P.HTML,e);if(!i)throw Mm(e);var r=this._svgElementFromString(i);return this._addSvgIconSetConfig(t,new Lm(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 Im(t);var i=this._cachedIconsByUrl.get(n);return i?ze(Nm(i)):this._loadSvgIconFromConfig(new Lm(t)).pipe(qe((function(t){return e._cachedIconsByUrl.set(n,t)})),Object(rn.a)((function(t){return Nm(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=zm(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):Sc(Tm(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?ze(Nm(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(qe((function(e){return t.svgElement=e})),Object(rn.a)((function(t){return Nm(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,i=this._extractIconWithNameFromAnySet(t,e);return i?ze(i):Ja(e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(jf((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),ze(null)})))}))).pipe(Object(rn.a)((function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw Tm(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?ze(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:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,n=t.selectionEnd;this._destroyed.isStopped||document.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=mn(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}()).\u0275fac=function(t){return new(t||qm)(a.yc(a.q),a.yc(Sn),a.yc(a.F))},qm.\u0275dir=a.tc({type:qm,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"]}),qm),lp=((Hm=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Hm}),Hm.\u0275inj=a.vc({factory:function(t){return new(t||Hm)},imports:[[On]]}),Hm),cp=((Um=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{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}}]),e}(sp)).\u0275fac=function(t){return up(t||Um)},Um.\u0275dir=a.tc({type:Um,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]}),Um),up=a.Fc(cp),hp=new a.v("MAT_INPUT_VALUE_ACCESSOR"),dp=["button","checkbox","file","hidden","image","radio","range","reset","submit"],fp=0,mp=Ni((function t(e,n,i,a){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=a})),pp=((Km=function(t){function e(t,n,i,a,r,o,s,l,c){var u;_classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,o,a,r,i)))._elementRef=t,u._platform=n,u.ngControl=i,u._autofillMonitor=l,u._uid="mat-input-".concat(fp++),u._isServer=!1,u._isNativeSelect=!1,u.focused=!1,u.stateChanges=new Me.a,u.controlType="mat-input",u.autofilled=!1,u._disabled=!1,u._required=!1,u._type="text",u._readonly=!1,u._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return En().has(t)}));var h=u._elementRef.nativeElement;return u._inputValueAccessor=s||h,u._previousNativeValue=u.value,u.id=u.id,n.IOS&&c.runOutsideAngular((function(){t.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),u._isServer=!u._platform.isBrowser,u._isNativeSelect="select"===h.nodeName.toLowerCase(),u._isNativeSelect&&(u.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),u}return _inherits(e,t),_createClass(e,[{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(dp.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=mn(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=mn(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=mn(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}}]),e}(mp)).\u0275fac=function(t){return new(t||Km)(a.yc(a.q),a.yc(Sn),a.yc(vr,10),a.yc(Fo,8),a.yc(Xo,8),a.yc(ia),a.yc(hp,10),a.yc(rp),a.yc(a.F))},Km.\u0275dir=a.tc({type:Km,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:fh,useExisting:Km}]),a.hc,a.ic]}),Km),gp=(($m=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:$m}),$m.\u0275inj=a.vc({factory:function(t){return new(t||$m)},providers:[ia],imports:[[lp,Th],lp,Th]}),$m),vp=((Qm=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=mn(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||Qm)},Qm.\u0275cmp=a.sc({type:Qm,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}),Qm),yp=((Wm=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Wm}),Wm.\u0275inj=a.vc({factory:function(t){return new(t||Wm)},imports:[[Ii],Ii]}),Wm),_p=["*"],bp=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],kp=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Cp=["text"];function wp(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 xp,Sp,Op,Dp,Ep,Ap,Pp,Rp,Tp,Ip=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Mp=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],jp=Mi(Li((function t(){_classCallCheck(this,t)}))),Lp=Li((function t(){_classCallCheck(this,t)})),Fp=((xp=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._stateChanges=new Me.a,t}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(jp)).\u0275fac=function(t){return Np(t||xp)},xp.\u0275cmp=a.sc({type:xp,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:_p,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-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}@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}),xp),Np=a.Fc(Fp),zp=((Ap=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,n._stateChanges=new Me.a,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return _inherits(e,t),_createClass(e,[{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()}}]),e}(jp)).\u0275fac=function(t){return new(t||Ap)(a.yc(a.q))},Ap.\u0275cmp=a.sc({type:Ap,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:_p,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-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}@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}),Ap),Bp=((Ep=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ep)},Ep.\u0275dir=a.tc({type:Ep,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Ep),Vp=((Dp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Dp)},Dp.\u0275dir=a.tc({type:Dp,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Dp),Up=((Op=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Op)},Op.\u0275dir=a.tc({type:Op,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Op),Hp=((Sp=function(t){function e(t,n,i,a){var r;_classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,r._isInteractiveList=!1,r._destroyed=new Me.a,r._disabled=!1,r._isInteractiveList=!!(i||a&&"action-list"===a._getListType()),r._list=i||a;var o=r._getHostElement();return"button"!==o.nodeName.toLowerCase()||o.hasAttribute("type")||o.setAttribute("type","button"),r._list&&r._list._stateChanges.pipe(gc(r._destroyed)).subscribe((function(){n.markForCheck()})),r}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){ra(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=mn(t)}}]),e}(Lp)).\u0275fac=function(t){return new(t||Sp)(a.yc(a.q),a.yc(a.j),a.yc(Fp,8),a.yc(zp,8))},Sp.\u0275cmp=a.sc({type:Sp,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Bp,!0),a.qc(n,Vp,!0),a.qc(n,aa,!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:kp,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(bp),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:[ba],encapsulation:2,changeDetection:0}),Sp),qp=Li((function t(){_classCallCheck(this,t)})),Gp=Li((function t(){_classCallCheck(this,t)})),Yp={provide:rr,useExisting:Object(a.cb)((function(){return $p})),multi:!0},Wp=function t(e,n){_classCallCheck(this,t),this.source=e,this.option=n},Qp=((Tp=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,a._changeDetector=n,a.selectionList=i,a._selected=!1,a._disabled=!1,a._hasFocus=!1,a.checkboxPosition="after",a._inputsInitialized=!1,a}return _inherits(e,t),_createClass(e,[{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(){ra(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=mn(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=mn(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}}]),e}(Gp)).\u0275fac=function(t){return new(t||Tp)(a.yc(a.q),a.yc(a.j),a.yc(Object(a.cb)((function(){return $p}))))},Tp.\u0275cmp=a.sc({type:Tp,selectors:[["mat-list-option"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Bp,!0),a.qc(n,Vp,!0),a.qc(n,aa,!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(Cp,!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:Mp,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(Ip),a.Dc(0,"div",0),a.zc(1,"div",1),a.td(2,wp,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:[ba,_e.t,Ca],encapsulation:2,changeDetection:0}),Tp),$p=((Rp=function(t){function e(t,n,i){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,r._changeDetector=i,r._multiple=!0,r._contentInitialized=!1,r.selectionChange=new a.s,r.tabIndex=0,r.color="accent",r.compareWith=function(t,e){return t===e},r._disabled=!1,r.selectedOptions=new Qa(r._multiple),r._tabIndex=-1,r._onChange=function(t){},r._destroyed=new Me.a,r._onTouched=function(){},r}return _inherits(e,t),_createClass(e,[{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(gc(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(Si(null),gc(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(gc(this._destroyed)).subscribe((function(t){if(t.added){var e=!0,n=!1,i=void 0;try{for(var a,r=t.added[Symbol.iterator]();!(e=(a=r.next()).done);e=!0)a.value.selected=!0}catch(h){n=!0,i=h}finally{try{e||null==r.return||r.return()}finally{if(n)throw i}}}if(t.removed){var o=!0,s=!1,l=void 0;try{for(var c,u=t.removed[Symbol.iterator]();!(o=(c=u.next()).done);o=!0)c.value.selected=!1}catch(h){s=!0,l=h}finally{try{o||null==u.return||u.return()}finally{if(s)throw l}}}}))}},{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)}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 Wp(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-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}@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}),Rp),Kp=((Pp=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Pp}),Pp.\u0275inj=a.vc({factory:function(t){return new(t||Pp)},imports:[[ma,ka,Ii,wa,_e.c],ma,Ii,wa,yp]}),Pp),Xp=["mat-menu-item",""],Zp=["*"];function Jp(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 tg,eg,ng,ig,ag,rg,og,sg,lg={transformMenu:o("transformMenu",[h("void",u({opacity:0,transform:"scale(0.8)"})),d("void => enter",l([m(".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)"}))])),d("* => void",s("100ms 25ms linear",u({opacity:0})))]),fadeInItems:o("fadeInItems",[h("showing",u({opacity:1})),d("void => *",[u({opacity:0}),s("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cg=((tg=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 Qc(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xc(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||tg)(a.yc(a.U),a.yc(a.n),a.yc(a.g),a.yc(a.w),a.yc(a.X),a.yc(_e.e),a.yc(a.j))},tg.\u0275dir=a.tc({type:tg,selectors:[["ng-template","matMenuContent",""]]}),tg),ug=new a.v("MAT_MENU_PANEL"),hg=Li(Mi((function t(){_classCallCheck(this,t)}))),dg=((eg=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,r._focusMonitor=i,r._parentMenu=a,r.role="menuitem",r._hovered=new Me.a,r._focused=new Me.a,r._highlighted=!1,r._triggersSubmenu=!1,i&&i.monitor(r._elementRef,!1),a&&a.addItem&&a.addItem(_assertThisInitialized(r)),r._document=n,r}return _inherits(e,t),_createClass(e,[{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(Si(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=mn(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=mn(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||ig)(a.yc(a.q),a.yc(a.F),a.yc(fg))},ig.\u0275dir=a.tc({type:ig,contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,cg,!0),a.qc(n,dg,!0),a.qc(n,dg,!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"}}),ig),gg=((ng=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(pg)).\u0275fac=function(t){return vg(t||ng)},ng.\u0275dir=a.tc({type:ng,features:[a.hc]}),ng),vg=a.Fc(gg),yg=((ag=function(t){function e(t,n,i){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i))}return _inherits(e,t),e}(gg)).\u0275fac=function(t){return new(t||ag)(a.yc(a.q),a.yc(a.F),a.yc(fg))},ag.\u0275cmp=a.sc({type:ag,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[a.jc([{provide:ug,useExisting:gg},{provide:gg,useExisting:ag}]),a.hc],ngContentSelectors:Zp,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,Jp,3,6,"ng-template"))},directives:[_e.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:[lg.transformMenu,lg.fadeInItems]},changeDetection:0}),ag),_g=new a.v("mat-menu-scroll-strategy"),bg={provide:_g,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},kg=An({passive:!0}),Cg=((sg=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,kg),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,kg),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 gg&&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(),e instanceof gg?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(en((function(t){return"void"===t.toState})),un(1),gc(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()),this._restoreFocus()}}},{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 uu({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,h=0;this.triggersSubmenu()?(u=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",h="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:h},{originX:i,originY:s,overlayX:u,overlayY:r,offsetY:h},{originX:n,originY:l,overlayX:c,overlayY:o,offsetY:-h},{originX:i,originY:l,overlayX:u,overlayY:o,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:ze(),a=this._parentMenu?this._parentMenu._hovered().pipe(en((function(e){return e!==t._menuItemInstance})),en((function(){return t._menuOpen}))):ze();return Object($l.a)(e,i,a,n)}},{key:"_handleMousedown",value:function(t){ci(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})),Vu(0,ac)).subscribe((function(){t._openedBy="mouse",t.menu instanceof gg&&t.menu._isAnimating?t.menu._animationDone.pipe(un(1),Vu(0,ac),gc(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 Qc(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||sg)(a.yc(Mu),a.yc(a.q),a.yc(a.X),a.yc(_g),a.yc(gg,8),a.yc(dg,10),a.yc(yi,8),a.yc(li))},sg.\u0275dir=a.tc({type:sg,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"]}),sg),wg=((og=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:og}),og.\u0275inj=a.vc({factory:function(t){return new(t||og)},providers:[bg],imports:[Ii]}),og),xg=((rg=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:rg}),rg.\u0275inj=a.vc({factory:function(t){return new(t||rg)},providers:[bg],imports:[[_e.c,Ii,ka,Bu,wg],wg]}),rg),Sg={};function Og(){for(var t=arguments.length,e=new Array(t),n=0;nthis.total&&this.destination.next(t)}}]),e}(Ve.a),Ig=new Set,Mg=((Eg=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):jg}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!Ig.has(t))try{Dg||((Dg=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Dg)),Dg.sheet&&(Dg.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),Ig.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||Eg)(a.Mc(Sn))},Eg.\u0275prov=Object(a.uc)({factory:function(){return new Eg(Object(a.Mc)(Sn))},token:Eg,providedIn:"root"}),Eg);function jg(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var Lg,Fg=((Lg=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 Ng(gn(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,n=Og(Ng(gn(t)).map((function(t){return e._registerQuery(t).observable})));return(n=xi(n.pipe(un(1)),n.pipe((function(t){return t.lift(new Rg(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(Si(n),Object(rn.a)((function(e){return{query:t,matches:e.matches}})),gc(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}()).\u0275fac=function(t){return new(t||Lg)(a.Mc(Mg),a.Mc(a.F))},Lg.\u0275prov=Object(a.uc)({factory:function(){return new Lg(Object(a.Mc)(Mg),Object(a.Mc)(a.F))},token:Lg,providedIn:"root"}),Lg);function Ng(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var zg,Bg={tooltipState:o("state",[h("initial, void, hidden",u({opacity:0,transform:"scale(0)"})),h("visible",u({transform:"scale(1)"})),d("* => visible",s("200ms cubic-bezier(0, 0, 0.2, 1)",(zg=[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:zg}))),d("* => hidden",s("100ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:0})))])},Vg=An({passive:!0});function Ug(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var Hg,qg,Gg,Yg,Wg=new a.v("mat-tooltip-scroll-strategy"),Qg={provide:Wg,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},$g=new a.v("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Kg=((Gg=function(){function t(e,n,i,a,r,o,s,l,c,u,h,d){var f=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=h,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&&!Be(t)&&(t.preventDefault(),t.stopPropagation(),f._ngZone.run((function(){return f.hide(0)})))},this._scrollStrategy=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.monitor(n).pipe(gc(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return f.show()})):r.run((function(){return f.hide(0)}))})),r.runOutsideAngular((function(){n.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,n){t.removeEventListener(n,e,Vg)})),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 Wc(Xg,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(gc(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(gc(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(gc(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 Ug(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 Ug(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),gc(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,Vg)}))}},{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=mn(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||Gg)(a.yc(Mu),a.yc(a.q),a.yc(zc),a.yc(a.X),a.yc(a.F),a.yc(Sn),a.yc(Yn),a.yc(li),a.yc(Wg),a.yc(yi,8),a.yc($g,8),a.yc(a.q))},Gg.\u0275dir=a.tc({type:Gg,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"]}),Gg),Xg=((qg=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||qg)(a.yc(a.j),a.yc(Fg))},qg.\u0275cmp=a.sc({type:qg,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:[_e.q],pipes:[_e.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:[Bg.tooltipState]},changeDetection:0}),qg),Zg=((Hg=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Hg}),Hg.\u0275inj=a.vc({factory:function(t){return new(t||Hg)},providers:[Qg],imports:[[gi,_e.c,Bu,Ii],Ii]}),Hg),Jg=["primaryValueBar"],tv=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),ev=new a.v("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Object(a.db)(_e.e),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),nv=0,iv=((Yg=function(t){function e(t,n,i,r){var o;_classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,o._ngZone=n,o._animationMode=i,o._isNoopAnimation=!1,o._value=0,o._bufferValue=0,o.animationEnd=new a.s,o._animationEndSubscription=je.a.EMPTY,o.mode="determinate",o.progressbarId="mat-progress-bar-".concat(nv++);var s=r?r.getPathname().split("#")[0]:"";return o._rectangleFillValue="url('".concat(s,"#").concat(o.progressbarId,"')"),o._isNoopAnimation="NoopAnimations"===i,o}return _inherits(e,t),_createClass(e,[{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=Kl(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=av(pn(t)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(t){this._bufferValue=av(t||0)}}]),e}(tv)).\u0275fac=function(t){return new(t||Yg)(a.yc(a.q),a.yc(a.F),a.yc(Re,8),a.yc(ev,8))},Yg.\u0275cmp=a.sc({type:Yg,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&a.zd(Jg,!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:[_e.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}),Yg);function av(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 rv,ov=((rv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:rv}),rv.\u0275inj=a.vc({factory:function(t){return new(t||rv)},imports:[[_e.c,Ii],Ii]}),rv);function sv(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 lv(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 cv(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 uv(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 hv,dv,fv,mv,pv,gv,vv=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),yv=new a.v("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),_v=((fv=function(t){function e(t,n,i,a,r){var o;_classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,o._document=i,o._diameter=100,o._value=0,o._fallbackAnimation=!1,o.mode="determinate";var s=e._diameters;return s.has(i.head)||s.set(i.head,new Set([100])),o._fallbackAnimation=n.EDGE||n.TRIDENT,o._noopAnimations="NoopAnimations"===a&&!!r&&!r._forceAnimations,r&&(r.diameter&&(o.diameter=r.diameter),r.strokeWidth&&(o.strokeWidth=r.strokeWidth)),o}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){var n=e.head;if(n&&(n.createShadowRoot||n.attachShadow)){var i=t.getRootNode?t.getRootNode():null;if(i instanceof window.ShadowRoot)return i}}return null}(t,this._document)||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,n=this._diameter,i=e._diameters,a=i.get(t);if(!a||!a.has(n)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",n+""),r.textContent=this._getAnimationText(),t.appendChild(r),a||(a=new Set,i.set(t,a)),a.add(n)}}},{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}}]),e}(vv)).\u0275fac=function(t){return new(t||fv)(a.yc(a.q),a.yc(Sn),a.yc(_e.e,8),a.yc(Re,8),a.yc(yv))},fv.\u0275cmp=a.sc({type:fv,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,sv,1,9,"circle",1),a.td(2,lv,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:[_e.x,_e.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}),fv._diameters=new WeakMap,fv),bv=((dv=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i,a,r))).mode="indeterminate",o}return _inherits(e,t),e}(_v)).\u0275fac=function(t){return new(t||dv)(a.yc(a.q),a.yc(Sn),a.yc(_e.e,8),a.yc(Re,8),a.yc(yv))},dv.\u0275cmp=a.sc({type:dv,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,cv,1,9,"circle",1),a.td(2,uv,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:[_e.x,_e.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}),dv),kv=((hv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:hv}),hv.\u0275inj=a.vc({factory:function(t){return new(t||hv)},imports:[[Ii,_e.c],Ii]}),hv),Cv=["input"],wv=function(){return{enterDuration:150}},xv=["*"],Sv=new a.v("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Ov=0,Dv={provide:rr,useExisting:Object(a.cb)((function(){return Av})),multi:!0},Ev=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},Av=((mv=function(){function t(e){_classCallCheck(this,t),this._changeDetector=e,this._value=null,this._name="mat-radio-group-".concat(Ov++),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 Ev(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=mn(t),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t),this._markRadiosForCheck()}}]),t}()).\u0275fac=function(t){return new(t||mv)(a.yc(a.j))},mv.\u0275dir=a.tc({type:mv,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,Rv,!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([Dv])]}),mv),Pv=Li(Fi((function t(e){_classCallCheck(this,t),this._elementRef=e}))),Rv=((gv=function(t){function e(t,n,i,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n)))._changeDetector=i,c._focusMonitor=r,c._radioDispatcher=o,c._animationMode=s,c._providerOverride=l,c._uniqueId="mat-radio-".concat(++Ov),c.id=c._uniqueId,c.change=new a.s,c._checked=!1,c._value=null,c._removeUniqueSelectionListener=function(){},c.radioGroup=t,c._removeUniqueSelectionListener=o.listen((function(t,e){t!==c.id&&e===c.name&&(c.checked=!1)})),c}return _inherits(e,t),_createClass(e,[{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 Ev(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=mn(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(mn(t))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=mn(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")}}]),e}(Pv)).\u0275fac=function(t){return new(t||gv)(a.yc(Av,8),a.yc(a.q),a.yc(a.j),a.yc(li),a.yc($a),a.yc(Re,8),a.yc(Sv,8))},gv.\u0275cmp=a.sc({type:gv,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var n;1&t&&a.zd(Cv,!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:xv,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,wv)),a.kc(2),a.oc("mat-radio-label-before","before"==e.labelPosition)}},directives:[ba],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}),gv),Tv=((pv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:pv}),pv.\u0275inj=a.vc({factory:function(t){return new(t||pv)},imports:[[ka,Ii],Ii]}),pv),Iv=["trigger"],Mv=["panel"];function jv(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 Lv(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 Fv(t,e){1&t&&a.Yc(0,0,["*ngSwitchCase","true"])}function Nv(t,e){if(1&t&&(a.Dc(0,"span",9),a.td(1,Lv,2,1,"span",10),a.td(2,Fv,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 zv(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 Bv,Vv,Uv,Hv=[[["mat-select-trigger"]],"*"],qv=["mat-select-trigger","*"],Gv={transformPanelWrap:o("transformPanelWrap",[d("* => void",m("@transformPanel",[f()],{optional:!0}))]),transformPanel:o("transformPanel",[h("void",u({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h("showing",u({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h("showing-multiple",u({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),d("void => *",s("120ms cubic-bezier(0, 0, 0.2, 1)")),d("* => void",s("100ms 25ms linear",u({opacity:0})))])},Yv=0,Wv=new a.v("mat-select-scroll-strategy"),Qv=new a.v("MAT_SELECT_CONFIG"),$v={provide:Wv,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Kv=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},Xv=Li(Fi(Mi(Ni((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}))))),Zv=((Uv=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Uv)},Uv.\u0275dir=a.tc({type:Uv,selectors:[["mat-select-trigger"]]}),Uv),Jv=((Vv=function(t){function e(t,n,i,r,o,s,l,c,u,h,d,f,m,p){var g;return _classCallCheck(this,e),(g=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,o,r,l,c,h)))._viewportRuler=t,g._changeDetectorRef=n,g._ngZone=i,g._dir=s,g._parentFormField=u,g.ngControl=h,g._liveAnnouncer=m,g._panelOpen=!1,g._required=!1,g._scrollTop=0,g._multiple=!1,g._compareWith=function(t,e){return t===e},g._uid="mat-select-".concat(Yv++),g._destroy=new Me.a,g._triggerFontSize=0,g._onChange=function(){},g._onTouched=function(){},g._optionIds="",g._transformOrigin="top",g._panelDoneAnimatingStream=new Me.a,g._offsetY=0,g._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],g._disableOptionCentering=!1,g._focused=!1,g.controlType="mat-select",g.ariaLabel="",g.optionSelectionChanges=Ql((function(){var t=g.options;return t?t.changes.pipe(Si(t),bc((function(){return Object($l.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.onSelectionChange}))))}))):g._ngZone.onStable.asObservable().pipe(un(1),bc((function(){return g.optionSelectionChanges})))})),g.openedChange=new a.s,g._openedStream=g.openedChange.pipe(en((function(t){return t})),Object(rn.a)((function(){}))),g._closedStream=g.openedChange.pipe(en((function(t){return!t})),Object(rn.a)((function(){}))),g.selectionChange=new a.s,g.valueChange=new a.s,g.ngControl&&(g.ngControl.valueAccessor=_assertThisInitialized(g)),g._scrollStrategyFactory=f,g._scrollStrategy=g._scrollStrategyFactory(),g.tabIndex=parseInt(d)||0,g.id=g.id,p&&(null!=p.disableOptionCentering&&(g.disableOptionCentering=p.disableOptionCentering),null!=p.typeaheadDebounceInterval&&(g.typeaheadDebounceInterval=p.typeaheadDebounceInterval)),g}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new Qa(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(rc(),gc(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(gc(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(gc(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(Si(null),gc(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 Qn(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(gc(this._destroy)).subscribe((function(){!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close()})),this._keyManager.change.pipe(gc(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($l.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(gc(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Object($l.a).apply(void 0,_toConsumableArray(this.options.map((function(t){return t._stateChanges})))).pipe(gc(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 Kv(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=Ta(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Ia(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+=Ta(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=mn(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=mn(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=mn(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}}]),e}(Xv)).\u0275fac=function(t){return new(t||Vv)(a.yc(Vc),a.yc(a.j),a.yc(a.F),a.yc(ia),a.yc(a.q),a.yc(yi,8),a.yc(Fo,8),a.yc(Xo,8),a.yc(Rh,8),a.yc(vr,10),a.Nc("tabindex"),a.yc(Wv),a.yc(oi),a.yc(Qv,8))},Vv.\u0275cmp=a.sc({type:Vv,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Zv,!0),a.qc(n,Ra,!0),a.qc(n,Oa,!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(Iv,!0),a.zd(Mv,!0),a.zd(Nu,!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:fh,useExisting:Vv},{provide:Pa,useExisting:Vv}]),a.hc,a.ic],ngContentSelectors:qv,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(Hv),a.Dc(0,"div",0,1),a.Qc("click",(function(){return e.toggle()})),a.Dc(3,"div",2),a.td(4,jv,2,1,"span",3),a.td(5,Nv,3,2,"span",4),a.Cc(),a.Dc(6,"div",5),a.zc(7,"div",6),a.Cc(),a.Cc(),a.td(8,zv,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:[Fu,_e.x,_e.y,Nu,_e.z,_e.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:[Gv.transformPanelWrap,Gv.transformPanel]},changeDetection:0}),Vv),ty=((Bv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Bv}),Bv.\u0275inj=a.vc({factory:function(t){return new(t||Bv)},providers:[$v],imports:[[_e.c,Bu,za,Ii],Th,za,Ii]}),Bv),ey=["*"];function ny(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 iy(t,e){1&t&&(a.Dc(0,"mat-drawer-content"),a.Yc(1,2),a.Cc())}var ay=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ry=["mat-drawer","mat-drawer-content","*"];function oy(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 sy(t,e){1&t&&(a.Dc(0,"mat-sidenav-content",3),a.Yc(1,2),a.Cc())}var ly=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],cy=["mat-sidenav","mat-sidenav-content","*"],uy={transformDrawer:o("transform",[h("open, open-instant",u({transform:"none",visibility:"visible"})),h("void",u({"box-shadow":"none",visibility:"hidden"})),d("void => open-instant",s("0ms")),d("void <=> open, open-instant => void",s("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function hy(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var dy,fy,my,py,gy,vy,yy,_y,by,ky,Cy,wy=new a.v("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),xy=new a.v("MAT_DRAWER_CONTAINER"),Sy=((gy=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,i,a,r)))._changeDetectorRef=t,o._container=n,o}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),e}(Bc)).\u0275fac=function(t){return new(t||gy)(a.yc(a.j),a.yc(Object(a.cb)((function(){return Dy}))),a.yc(a.q),a.yc(zc),a.yc(a.F))},gy.\u0275cmp=a.sc({type:gy,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:ey,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},encapsulation:2,changeDetection:0}),gy),Oy=((py=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(){Kl(c._elementRef.nativeElement,"keydown").pipe(en((function(t){return 27===t.keyCode&&!c.disableClose&&!Be(t)})),gc(c._destroyed)).subscribe((function(t){return c._ngZone.run((function(){c.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(rc((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=mn(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=mn(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(mn(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||py)(a.yc(a.q),a.yc(ei),a.yc(li),a.yc(Sn),a.yc(a.F),a.yc(_e.e,8),a.yc(xy,8))},py.\u0275cmp=a.sc({type:py,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:ey,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:[uy.transformDrawer]},changeDetection:0}),py),Dy=((my=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(gc(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(gc(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=l}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Si(this._allDrawers),gc(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(Si(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),gc(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})),gc(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(gc(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(gc(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(gc(Object($l.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&&hy("end"),t._end=e):(null!=t._start&&hy("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=mn(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:mn(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||my)(a.yc(yi,8),a.yc(a.q),a.yc(a.F),a.yc(a.j),a.yc(Vc),a.yc(wy),a.yc(Re,8))},my.\u0275cmp=a.sc({type:my,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Sy,!0),a.qc(n,Oy,!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(Sy,!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:xy,useExisting:my}])],ngContentSelectors:ry,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(ay),a.td(0,ny,1,2,"div",0),a.Yc(1),a.Yc(2,1),a.td(3,iy,2,0,"mat-drawer-content",1)),2&t&&(a.ad("ngIf",e.hasBackdrop),a.kc(3),a.ad("ngIf",!e._content))},directives:[_e.t,Sy],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}),my),Ey=((fy=function(t){function e(t,n,i,a,r){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i,a,r))}return _inherits(e,t),e}(Sy)).\u0275fac=function(t){return new(t||fy)(a.yc(a.j),a.yc(Object(a.cb)((function(){return Ry}))),a.yc(a.q),a.yc(zc),a.yc(a.F))},fy.\u0275cmp=a.sc({type:fy,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:ey,decls:1,vars:0,template:function(t,e){1&t&&(a.Zc(),a.Yc(0))},encapsulation:2,changeDetection:0}),fy),Ay=((dy=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _inherits(e,t),_createClass(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=mn(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)}}]),e}(Oy)).\u0275fac=function(t){return Py(t||dy)},dy.\u0275cmp=a.sc({type:dy,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:ey,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:[uy.transformDrawer]},changeDetection:0}),dy),Py=a.Fc(Ay),Ry=((vy=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Dy)).\u0275fac=function(t){return Ty(t||vy)},vy.\u0275cmp=a.sc({type:vy,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Ey,!0),a.qc(n,Ay,!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:xy,useExisting:vy}]),a.hc],ngContentSelectors:cy,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(ly),a.td(0,oy,1,2,"div",0),a.Yc(1),a.Yc(2,1),a.td(3,sy,2,0,"mat-sidenav-content",1)),2&t&&(a.ad("ngIf",e.hasBackdrop),a.kc(3),a.ad("ngIf",!e._content))},directives:[_e.t,Ey,Bc],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}),vy),Ty=a.Fc(Ry),Iy=((yy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:yy}),yy.\u0275inj=a.vc({factory:function(t){return new(t||yy)},imports:[[_e.c,Ii,Uc,On],Ii]}),yy),My=["thumbContainer"],jy=["toggleBar"],Ly=["input"],Fy=function(){return{enterDuration:150}},Ny=["*"],zy=new a.v("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),By=0,Vy={provide:rr,useExisting:Object(a.cb)((function(){return qy})),multi:!0},Uy=function t(e,n){_classCallCheck(this,t),this.source=e,this.checked=n},Hy=Fi(ji(Li(Mi((function t(e){_classCallCheck(this,t),this._elementRef=e}))),"accent")),qy=((_y=function(t){function e(t,n,i,r,o,s,l,c){var u;return _classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._focusMonitor=n,u._changeDetectorRef=i,u.defaults=s,u._animationMode=l,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++By),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new a.s,u.toggleChange=new a.s,u.dragChange=new a.s,u.tabIndex=parseInt(r)||0,u}return _inherits(e,t),_createClass(e,[{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 Uy(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=mn(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),e}(Hy)).\u0275fac=function(t){return new(t||_y)(a.yc(a.q),a.yc(li),a.yc(a.j),a.Nc("tabindex"),a.yc(a.F),a.yc(zy),a.yc(Re,8),a.yc(yi,8))},_y.\u0275cmp=a.sc({type:_y,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(a.zd(My,!0),a.zd(jy,!0),a.zd(Ly,!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([Vy]),a.hc],ngContentSelectors:Ny,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,Fy))}},directives:[ba,Nn],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}),_y),Gy={provide:Cr,useExisting:Object(a.cb)((function(){return Yy})),multi:!0},Yy=((by=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Vs)).\u0275fac=function(t){return Wy(t||by)},by.\u0275dir=a.tc({type:by,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[a.jc([Gy]),a.hc]}),by),Wy=a.Fc(Yy),Qy=((Cy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Cy}),Cy.\u0275inj=a.vc({factory:function(t){return new(t||Cy)}}),Cy),$y=((ky=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ky}),ky.\u0275inj=a.vc({factory:function(t){return new(t||ky)},imports:[[Qy,ka,Ii,zn],Qy,Ii]}),ky);function Ky(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 Xy(t,e){}var Zy,Jy,t_,e_,n_,i_,a_,r_=Math.pow(2,31)-1,o_=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,r_))}},{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}(),s_=new a.v("MatSnackBarData"),l_=function t(){_classCallCheck(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},c_=((Zy=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||Zy)(a.yc(o_),a.yc(s_))},Zy.\u0275cmp=a.sc({type:Zy,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,Ky,3,1,"div",0)),2&t&&(a.kc(1),a.wd(e.data.message),a.kc(1),a.ad("ngIf",e.hasAction))},directives:[_e.t,Ga],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}),Zy),u_={snackBarState:o("state",[h("void, hidden",u({transform:"scale(0.8)",opacity:0})),h("visible",u({transform:"scale(1)",opacity:1})),d("* => visible",s("150ms cubic-bezier(0, 0, 0.2, 1)")),d("* => void, * => hidden",s("75ms cubic-bezier(0.4, 0.0, 1, 1)",u({opacity:0})))])},h_=((t_=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngZone=t,r._elementRef=n,r._changeDetectorRef=i,r.snackBarConfig=a,r._destroyed=!1,r._onExit=new Me.a,r._onEnter=new Me.a,r._animationState="void",r.attachDomPortal=function(t){return r._assertNotAttached(),r._applySnackBarClasses(),r._portalOutlet.attachDomPortal(t)},r._role="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?null:"status":"alert",r}return _inherits(e,t),_createClass(e,[{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._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")}}]),e}(Kc)).\u0275fac=function(t){return new(t||t_)(a.yc(a.F),a.yc(a.q),a.yc(a.j),a.yc(l_))},t_.\u0275cmp=a.sc({type:t_,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&a.rd(Zc,!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,Xy,0,0,"ng-template",0)},directives:[Zc],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:[u_.snackBarState]}}),t_),d_=((Jy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Jy}),Jy.\u0275inj=a.vc({factory:function(t){return new(t||Jy)},imports:[[Bu,Jc,_e.c,Wa,Ii],Ii]}),Jy),f_=new a.v("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new l_}}),m_=((e_=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(c_,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 tu(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[l_,e]])),i=new Wc(h_,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 l_),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),o=new o_(r,i);if(t instanceof a.U){var s=new Qc(t,null,{$implicit:n.data,snackBarRef:o});o.instance=r.attachTemplatePortal(s)}else{var l=this._createInjector(n,o),c=new Wc(t,void 0,l),u=r.attachComponentPortal(c);o.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(gc(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 uu;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 tu(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[o_,e],[s_,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||e_)(a.Mc(Mu),a.Mc(oi),a.Mc(a.w),a.Mc(Fg),a.Mc(e_,12),a.Mc(f_))},e_.\u0275prov=Object(a.uc)({factory:function(){return new e_(Object(a.Mc)(Mu),Object(a.Mc)(oi),Object(a.Mc)(a.t),Object(a.Mc)(Fg),Object(a.Mc)(e_,12),Object(a.Mc)(f_))},token:e_,providedIn:d_}),e_),p_=["*",[["mat-toolbar-row"]]],g_=["*","mat-toolbar-row"],v_=ji((function t(e){_classCallCheck(this,t),this._elementRef=e})),y_=((a_=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||a_)},a_.\u0275dir=a.tc({type:a_,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),a_),__=((i_=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._platform=n,a._document=i,a}return _inherits(e,t),_createClass(e,[{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.")}()}}]),e}(v_)).\u0275fac=function(t){return new(t||i_)(a.yc(a.q),a.yc(Sn),a.yc(_e.e))},i_.\u0275cmp=a.sc({type:i_,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,y_,!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:g_,decls:2,vars:0,template:function(t,e){1&t&&(a.Zc(p_),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}),i_),b_=((n_=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:n_}),n_.\u0275inj=a.vc({factory:function(t){return new(t||n_)},imports:[[Ii],Ii]}),n_);function k_(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}function C_(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function w_(t,e){var n=e?"":"none";C_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function x_(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function S_(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}var O_=An({passive:!0}),D_=An({passive:!1}),E_=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 yn(t)})),this._handles.forEach((function(t){return w_(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=yn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,D_),e.addEventListener("touchstart",this._pointerDown,O_),this._initialTransform=void 0,this._rootElement=e),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?yn(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()&&T_(this._rootElement),T_(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&&T_(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&T_(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}),I_(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=I_(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(Si(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?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=A_(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);t=M_(a,this._document),this._previewRef=a,e.matchSize?j_(t,this._rootElement):t.style.transform=A_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;j_(t=P_(r),r)}return C_(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),w_(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=A_(e.left,e.top);var n=function(t){var e=getComputedStyle(t),n=S_(e,"transition-property"),i=n.find((function(t){return"transform"===t||"all"===t}));if(!i)return 0;var a=n.indexOf(i),r=S_(e,"transition-duration"),o=S_(e,"transition-delay");return x_(r[a])+x_(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),t=M_(this._placeholderRef,this._document)):t=P_(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=I_(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=I_(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=R_(n.x,s.left+r,s.right-(l.width-r)),n.y=R_(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,w_(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,D_),t.removeEventListener("touchstart",this._pointerDown,O_)}},{key:"_applyRootElementTransform",value:function(t,e){var n=A_(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:I_(t)?e.touch:e?e.mouse:0}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=mn(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}}]),t}();function A_(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function P_(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(!dc(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Ke),new sn.a((function(n){return n.add(e.schedule(k_,t,{subscriber:n,counter:0,period:t})),n}))}(0,Zl).pipe(gc(o._stopScrollTimers)).subscribe((function(){var t=o._scrollNode;1===o._verticalScrollDirection?q_(t,-2):2===o._verticalScrollDirection&&q_(t,2),1===o._horizontalScrollDirection?G_(t,-2):2===o._horizontalScrollDirection&&G_(t,2)}))},this.element=yn(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=yn(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 yn(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=yn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getItemIndex",value:function(t){return this._isDragging?V_("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&&B_(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=V_(a,(function(e){return e.drag===t})),l=a[r],c=a[s].clientRect,u=l.clientRect,h=s>r?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y;var d=this._getItemOffsetPx(c,u,h),f=this._getSiblingOffsetPx(s,a,h),m=a.slice();L_(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:t}),a.forEach((function(e,n){if(m[n]!==e){var i=e.drag===t,a=i?d:f,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),z_(e.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),z_(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&&B_(o.clientRect,t,e)&&(l=_slicedToArray(function(t,e,n,i){var a=Y_(e,i),r=W_(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=Y_(c,e),r=W_(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=H_(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:H_(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=yn(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 V_(this._itemPositions,(function(o,s,l){var c=o.drag,u=o.clientRect;if(c===t)return l.length<2;if(i){var h=r?i.x:i.y;if(c===a._previousSwap.drag&&h===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=this._parentPositions.get(t).scrollPosition,r=a.top-e,o=a.left-n;this._parentPositions.forEach((function(e,n){e.clientRect&&t!==n&&t.contains(n)&&z_(e.clientRect,r,o)})),this._itemPositions.forEach((function(t){z_(t.clientRect,r,o)})),this._itemPositions.forEach((function(t){var e=t.drag;i._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})),a.top=e,a.left=n}},{key:"_isOverContainer",value:function(t,e){return U_(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(!U_(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;var i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;var a=yn(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(){return this._cachedShadowRoot||(this._cachedShadowRoot=function(t){if(Rn()){var e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(yn(this.element))||this._document),this._cachedShadowRoot}}]),t}();function z_(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function B_(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 H_(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 q_(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function G_(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function Y_(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 W_(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 Q_,$_,K_,X_,Z_,J_,tb=An({passive:!1,capture:!0}),eb=((Q_=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,tb)}))}},{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,tb)}},{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:tb}).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:tb}),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||Q_)(a.Mc(a.F),a.Mc(_e.e))},Q_.\u0275prov=Object(a.uc)({factory:function(){return new Q_(Object(a.Mc)(a.F),Object(a.Mc)(_e.e))},token:Q_,providedIn:"root"}),Q_),nb={dragStartThreshold:5,pointerDirectionChangeThreshold:5},ib=(($_=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]:nb;return new E_(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new N_(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}()).\u0275fac=function(t){return new(t||$_)(a.Mc(_e.e),a.Mc(a.F),a.Mc(Vc),a.Mc(eb))},$_.\u0275prov=Object(a.uc)({factory:function(){return new $_(Object(a.Mc)(_e.e),Object(a.Mc)(a.F),Object(a.Mc)(Vc),Object(a.Mc)(eb))},token:$_,providedIn:"root"}),$_),ab=new a.v("CDK_DRAG_PARENT"),rb=((Z_=function(){function t(e,n){_classCallCheck(this,t),this.element=e,this._stateChanges=new Me.a,this._disabled=!1,this._parentDrag=n,w_(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=mn(t),this._stateChanges.next(this)}}]),t}()).\u0275fac=function(t){return new(t||Z_)(a.yc(a.q),a.yc(ab,8))},Z_.\u0275dir=a.tc({type:Z_,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),Z_),ob=((X_=function t(e){_classCallCheck(this,t),this.templateRef=e}).\u0275fac=function(t){return new(t||X_)(a.yc(a.U))},X_.\u0275dir=a.tc({type:X_,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),X_),sb=((K_=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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||K_)(a.yc(a.U))},K_.\u0275dir=a.tc({type:K_,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),K_),lb=new a.v("CDK_DRAG_CONFIG"),cb=new a.v("CDK_DROP_LIST"),ub=((J_=function(){function t(e,n,i,r,o,s,l,c,u){var h=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=h._dragRef.moved.pipe(Object(rn.a)((function(t){return{source:h,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),gc(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(Si(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)})),bc((function(t){return Object($l.a).apply(void 0,_toConsumableArray(t.map((function(t){return t._stateChanges.pipe(Si(t))}))))})),gc(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?hb(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 hb(this.element.nativeElement,t);var e=yn(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=mn(t),this._dragRef.disabled=this._disabled}}]),t}()).\u0275fac=function(t){return new(t||J_)(a.yc(a.q),a.yc(cb,12),a.yc(_e.e),a.yc(a.F),a.yc(a.X),a.yc(lb,8),a.yc(yi,8),a.yc(ib),a.yc(a.j))},J_.\u0275dir=a.tc({type:J_,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,sb,!0),a.qc(n,ob,!0),a.qc(n,rb,!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:ab,useExisting:J_}]),a.ic]}),J_);function hb(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 db,fb,mb,pb=((mb=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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||mb)},mb.\u0275dir=a.tc({type:mb,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),mb),gb=0,vb=((fb=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(gb++),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(Si(this._dir.value),gc(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=mn(n.sortingDisabled),e.autoScrollDisabled=mn(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=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||fb)(a.yc(a.q),a.yc(ib),a.yc(a.j),a.yc(yi,8),a.yc(pb,12),a.yc(zc),a.yc(lb,8))},fb.\u0275dir=a.tc({type:fb,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:pb,useValue:void 0},{provide:cb,useExisting:fb}])]}),fb._dropLists=[],fb),yb=((db=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:db}),db.\u0275inj=a.vc({factory:function(t){return new(t||db)},providers:[ib]}),db);function _b(t){return jf(t)(this)}sn.a.prototype.map=function(t,e){return Object(rn.a)(t,e)(this)},sn.a.prototype.catch=_b,sn.a.prototype._catch=_b,sn.a.throw=Sc,sn.a.throwError=Sc;var bb={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"}},kb=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._value=t,n}return _inherits(e,t),_createClass(e,[{key:"_subscribe",value:function(t){var n=_get(_getPrototypeOf(e.prototype),"_subscribe",this).call(this,t);return n&&!n.closed&&t.next(this._value),n}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new jc.a;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(e.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),e}(Me.a),Cb=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 wb(t){return function(e){return 0===t?cn():e.lift(new xb(t))}}var xb=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 Sb(t,this.total))}}]),t}(),Sb=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).total=n,i.ring=new Array,i.count=0,i}return _inherits(e,t),_createClass(e,[{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]:Ab;return function(e){return e.lift(new Db(t))}}var Db=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Eb(t,this.errorFactory))}}]),t}(),Eb=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).errorFactory=n,i.hasValue=!1,i}return _inherits(e,t),_createClass(e,[{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)}}]),e}(Ve.a);function Ab(){return new Cb}function Pb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Rb(t))}}var Rb=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Tb(t,this.defaultValue))}}]),t}(),Tb=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).defaultValue=n,i.isEmpty=!0,i}return _inherits(e,t),_createClass(e,[{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()}}]),e}(Ve.a),Ib=n("SpAZ");function Mb(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?en((function(e,n){return t(e,n,i)})):Ib.a,wb(1),n?Pb(e):Ob((function(){return new Cb})))}}function jb(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?en((function(e,n){return t(e,n,i)})):Ib.a,un(1),n?Pb(e):Ob((function(){return new Cb})))}}var Lb=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 Fb(t,this.predicate,this.thisArg,this.source))}}]),t}(),Fb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).predicate=n,r.thisArg=i,r.source=a,r.index=0,r.thisArg=i||_assertThisInitialized(r),r}return _inherits(e,t),_createClass(e,[{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)}}]),e}(Ve.a);function Nb(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Bb(t,e,n))}}var zb,Bb=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 Vb(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Vb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).accumulator=n,r._seed=i,r.hasSeed=a,r.index=0,r}return _inherits(e,t),_createClass(e,[{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}}]),e}(Ve.a),Ub=n("mCNh"),Hb=function t(e,n){_classCallCheck(this,t),this.id=e,this.url=n},qb=function(t){function e(t,n){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).navigationTrigger=a,i.restoredState=r,i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Hb),Gb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(Hb),Yb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).reason=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Hb),Wb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).error=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(Hb),Qb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Hb),$b=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Hb),Kb=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,o.state=a,o.shouldActivate=r,o}return _inherits(e,t),_createClass(e,[{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,")")}}]),e}(Hb),Xb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Hb),Zb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Hb),Jb=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}(),tk=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}(),ek=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}(),nk=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}(),ik=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}(),ak=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}(),rk=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}(),ok=((zb=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||zb)},zb.\u0275cmp=a.sc({type:zb,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&a.zc(0,"router-outlet")},directives:function(){return[vw]},encapsulation:2}),zb),sk=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 lk(t){return new sk(t)}function ck(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function uk(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 yk(t){return Array.prototype.concat.apply([],t)}function _k(t){return t.length>0?t[t.length-1]:null}function bk(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function kk(t){return Object(a.Mb)(t)?t:Object(a.Nb)(t)?Object(Za.a)(Promise.resolve(t)):ze(t)}function Ck(t,e,n){return n?function(t,e){return gk(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ok(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 vk(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!!Ok(n.segments.slice(0,a.length),a)&&!i.hasChildren();if(n.segments.length===a.length){if(!Ok(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!!Ok(n.segments,o)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var wk=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 Pk.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=lk(this.queryParams)),this._queryParamMap}}]),t}(),xk=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.segments=e,this.children=n,this.parent=null,bk(n,(function(t,e){return t.parent=i}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Rk(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),Sk=function(){function t(e,n){_classCallCheck(this,t),this.path=e,this.parameters=n}return _createClass(t,[{key:"toString",value:function(){return Fk(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=lk(this.parameters)),this._parameterMap}}]),t}();function Ok(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Dk(t,e){var n=[];return bk(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),bk(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var Ek=function t(){_classCallCheck(this,t)},Ak=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new Uk(t);return new wk(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 Rk(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",a=[];return bk(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=Dk(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:["".concat(i,":").concat(t(n,!1))]}));return"".concat(Rk(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(Ik(t),"=").concat(Ik(e))})).join("&"):"".concat(Ik(t),"=").concat(Ik(e))})),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Pk=new Ak;function Rk(t){return t.segments.map((function(t){return Fk(t)})).join("/")}function Tk(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ik(t){return Tk(t).replace(/%3B/gi,";")}function Mk(t){return Tk(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jk(t){return decodeURIComponent(t)}function Lk(t){return jk(t.replace(/\+/g,"%20"))}function Fk(t){return"".concat(Mk(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(Mk(t),"=").concat(Mk(e[t]))})).join("")));var e}var Nk=/^[^\/()?;=#]+/;function zk(t){var e=t.match(Nk);return e?e[0]:""}var Bk=/^[^=?&#]+/,Vk=/^[^?&#]+/,Uk=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 xk([],{}):new xk([],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 xk(t,e)),n}},{key:"parseSegment",value:function(){var t=zk(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Sk(jk(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=zk(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=zk(this.remaining);i&&(n=i,this.capture(n))}t[jk(e)]=jk(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Bk);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Vk);return e?e[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var a=Lk(e),r=Lk(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=zk(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 xk([],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}(),Hk=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=qk(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=qk(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Gk(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 Gk(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function qk(t,e){if(t===e.value)return e;var n=!0,i=!1,a=void 0;try{for(var r,o=e.children[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var s=qk(t,r.value);if(s)return s}}catch(l){i=!0,a=l}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return null}function Gk(t,e){if(t===e.value)return[e];var n=!0,i=!1,a=void 0;try{for(var r,o=e.children[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var s=Gk(t,r.value);if(s.length)return s.unshift(e),s}}catch(l){i=!0,a=l}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return[]}var Yk=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 Wk(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Qk=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).snapshot=n,tC(_assertThisInitialized(i),t),i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(Hk);function $k(t,e){var n=function(t,e){var n=new Zk([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Jk("",new Yk(n,[]))}(t,e),i=new kb([new Sk("",{})]),a=new kb({}),r=new kb({}),o=new kb({}),s=new kb(""),l=new Kk(i,a,o,s,r,"primary",e,n.root);return l.snapshot=n.root,new Qk(new Yk(l,[]),n)}var Kk=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 lk(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(rn.a)((function(t){return lk(t)})))),this._queryParamMap}}]),t}();function Xk(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 Zk=function(){function t(e,n,i,a,r,o,s,l,c,u,h){_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=h}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=lk(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=lk(this.queryParams)),this._queryParamMap}}]),t}(),Jk=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).url=t,tC(_assertThisInitialized(i),n),i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return eC(this._root)}}]),e}(Hk);function tC(t,e){e.value._routerState=t,e.children.forEach((function(e){return tC(t,e)}))}function eC(t){var e=t.children.length>0?" { ".concat(t.children.map(eC).join(", ")," } "):"";return"".concat(t.value).concat(e)}function nC(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,gk(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),gk(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&aC(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!==_k(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}(),sC=function t(e,n,i){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function lC(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function cC(t,e,n){if(t||(t=new xk([],{})),0===t.segments.length&&t.hasChildren())return uC(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=lC(n[i]),l=i0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!mC(s,l,o))return r;i+=2}else{if(!mC(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 xk([],{primary:t}):t;return new wk(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 xk([],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 ze({});var r=[],o=[],s={};return bk(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)})),ze.apply(null,r.concat(o)).pipe(wi(),Mb(),Object(rn.a)((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,i,a,r){var o=this;return ze.apply(void 0,_toConsumableArray(n)).pipe(Object(rn.a)((function(s){return o.expandSegmentAgainstRoute(t,e,n,s,i,a,r).pipe(jf((function(t){if(t instanceof _C)return ze(null);throw t})))})),wi(),jb((function(t){return!!t})),jf((function(t,n){if(t instanceof Cb||"EmptyError"===t.name){if(o.noLeftoversInUrl(e,i,a))return ze(new xk([],{}));throw new _C(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 EC(i)!==r?kC(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,a,r):kC(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("/")?CC(r):this.lineralizeSegments(n,r).pipe(Object(Uf.a)((function(n){var r=new xk(n,{});return a.expandSegment(t,r,e,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,a,r){var o=this,s=SC(e,i,a),l=s.matched,c=s.consumedSegments,u=s.lastChild,h=s.positionalParamSegments;if(!l)return kC(e);var d=this.applyRedirectCommands(c,i.redirectTo,h);return i.redirectTo.startsWith("/")?CC(d):this.lineralizeSegments(i,d).pipe(Object(Uf.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 xk(i,{})}))):ze(new xk(i,{}));var r=SC(e,n,i),o=r.matched,s=r.consumedSegments,l=r.lastChild;if(!o)return kC(e);var c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(Uf.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 DC(t,e,n)&&"primary"!==EC(n)}))}(t,n,i)?{segmentGroup:OC(new xk(e,function(t,e){var n={};n.primary=e;var i=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;""===l.path&&"primary"!==EC(l)&&(n[EC(l)]=new xk([],{}))}}catch(c){a=!0,r=c}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return n}(i,new xk(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return DC(t,e,n)}))}(t,n,i)?{segmentGroup:OC(new xk(t.segments,function(t,e,n,i){var a={},r=!0,o=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;DC(t,e,u)&&!i[EC(u)]&&(a[EC(u)]=new xk([],{}))}}catch(h){o=!0,s=h}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return Object.assign(Object.assign({},i),a)}(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 xk(s,t)}))):0===i.length&&0===l.length?ze(new xk(s,{})):a.expandSegment(n,o,i,l,"primary",!0).pipe(Object(rn.a)((function(t){return new xk(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?ze(new hk(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ze(e._loadedConfig):function(t,e,n){var i,a=e.canLoad;return a&&0!==a.length?Object(Za.a)(a).pipe(Object(rn.a)((function(i){var a,r=t.get(i);if(function(t){return t&&vC(t.canLoad)}(r))a=r.canLoad(e,n);else{if(!vC(r))throw new Error("Invalid CanLoad guard");a=r(e,n)}return kk(a)}))).pipe(wi(),(i=function(t){return!0===t},function(t){return t.lift(new Lb(i,void 0,t))})):ze(!0)}(t.injector,e,n).pipe(Object(Uf.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(ck("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):ze(new hk([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return ze(n);if(i.numberOfChildren>1||!i.children.primary)return wC(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 wk(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return bk(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 bk(e.children,(function(e,r){o[r]=a.createSegmentGroup(t,e,n,i)})),new xk(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=0,i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;if(l.path===t.path)return e.splice(n),l;n++}}catch(c){a=!0,r=c}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return t}}]),t}();function SC(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||uk)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function OC(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new xk(t.segments.concat(e.segments),e.children)}return t}function DC(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function EC(t){return t.outlet||"primary"}var AC=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},PC=function t(e,n){_classCallCheck(this,t),this.component=e,this.route=n};function RC(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 TC(t,e,n){var i=Wk(t),a=t.value;bk(i,(function(t,i){TC(t,a.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new PC(a.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,a))}var IC=Symbol("INITIAL_VALUE");function MC(){return bc((function(t){return Og.apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(un(1),Si(IC))})))).pipe(Nb((function(t,e){var n=!1;return e.reduce((function(t,i,a){if(t!==IC)return t;if(i===IC&&(n=!0),!n){if(!1===i)return i;if(a===e.length-1||yC(i))return i}return t}),t)}),IC),en((function(t){return t!==IC})),Object(rn.a)((function(t){return yC(t)?t:!0===t})),un(1))}))}function jC(t,e){return null!==t&&e&&e(new ik(t)),ze(!0)}function LC(t,e){return null!==t&&e&&e(new ek(t)),ze(!0)}function FC(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?ze(i.map((function(i){return Ql((function(){var a,r=RC(i,e,n);if(function(t){return t&&vC(t.canActivate)}(r))a=kk(r.canActivate(e,t));else{if(!vC(r))throw new Error("Invalid CanActivate guard");a=kk(r(e,t))}return a.pipe(jb())}))}))).pipe(MC()):ze(!0)}function NC(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 Ql((function(){return ze(e.guards.map((function(a){var r,o=RC(a,e.node,n);if(function(t){return t&&vC(t.canActivateChild)}(o))r=kk(o.canActivateChild(i,t));else{if(!vC(o))throw new Error("Invalid CanActivateChild guard");r=kk(o(i,t))}return r.pipe(jb())}))).pipe(MC())}))}));return ze(a).pipe(MC())}var zC=function t(){_classCallCheck(this,t)},BC=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=HC(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Zk([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Yk(n,e),a=new Jk(this.url,i);return this.inheritParamsAndData(a._root),ze(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=Xk(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=Dk(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=!0,r=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;try{return this.processSegmentAgainstRoute(c,e,n,i)}catch(u){if(!(u instanceof zC))throw u}}}catch(h){r=!0,o=h}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}if(this.noLeftoversInUrl(e,n,i))return[];throw new zC}},{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 zC;if((t.outlet||"primary")!==i)throw new zC;var a,r=[],o=[];if("**"===t.path){var s=n.length>0?_k(n).parameters:{};a=new Zk(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,YC(t),i,t.component,t,VC(e),UC(e)+n.length,WC(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new zC;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||uk)(n,t,e);if(!i)throw new zC;var a={};bk(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 Zk(r,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,YC(t),i,t.component,t,VC(e),UC(e)+r.length,WC(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),u=HC(e,r,o,c,this.relativeLinkResolution),h=u.segmentGroup,d=u.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new Yk(a,f)]}if(0===c.length&&0===d.length)return[new Yk(a,[])];var m=this.processSegment(c,h,d,"primary");return[new Yk(a,m)]}}]),t}();function VC(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function UC(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 HC(t,e,n,i,a){if(n.length>0&&function(t,e,n){return n.some((function(n){return qC(t,e,n)&&"primary"!==GC(n)}))}(t,n,i)){var r=new xk(e,function(t,e,n,i){var a={};a.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var r=!0,o=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;if(""===u.path&&"primary"!==GC(u)){var h=new xk([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,a[GC(u)]=h}}}catch(d){o=!0,s=d}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return a}(t,e,i,new xk(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 qC(t,e,n)}))}(t,n,i)){var o=new xk(t.segments,function(t,e,n,i,a,r){var o={},s=!0,l=!1,c=void 0;try{for(var u,h=i[Symbol.iterator]();!(s=(u=h.next()).done);s=!0){var d=u.value;if(qC(t,n,d)&&!a[GC(d)]){var f=new xk([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[GC(d)]=f}}}catch(m){l=!0,c=m}finally{try{s||null==h.return||h.return()}finally{if(l)throw c}}return Object.assign(Object.assign({},a),o)}(t,e,n,i,t.children,a));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new xk(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function qC(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function GC(t){return t.outlet||"primary"}function YC(t){return t.data||{}}function WC(t){return t.resolve||{}}function QC(t,e,n,i){var a=RC(t,e,i);return kk(a.resolve?a.resolve(e,n):a(e,n))}function $C(t){return function(e){return e.pipe(bc((function(e){var n=t(e);return n?Object(Za.a)(n).pipe(Object(rn.a)((function(){return e}))):Object(Za.a)([e])})))}}var KC=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}(),XC=new a.v("ROUTES"),ZC=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 hk(yk(a.injector.get(XC)).map(pk),a)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(Za.a)(this.loader.load(t)):kk(t()).pipe(Object(Uf.a)((function(t){return t instanceof a.B?ze(t):Object(Za.a)(e.compiler.compileModuleAsync(t))})))}}]),t}(),JC=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 tw(t){throw t}function ew(t,e,n){return e.parse("/")}function nw(t,e){return ze(null)}var iw,aw,rw,ow=((rw=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=tw,this.malformedUriErrorHandler=ew,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:nw,afterPreactivation:nw},this.urlHandlingStrategy=new JC,this.routeReuseStrategy=new KC,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 h=o.get(a.F);this.isNgZoneEnabled=h instanceof a.F,this.resetConfig(c),this.currentUrlTree=new wk(new xk([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ZC(s,l,(function(t){return u.triggerEvent(new Jb(t))}),(function(t){return u.triggerEvent(new tk(t))})),this.routerState=$k(this.currentUrlTree,this.rootComponentType),this.transitions=new kb({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)})})),bc((function(t){var i,a,r,o=!1,s=!1;return ze(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}})),bc((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 ze(t).pipe(bc((function(t){var i=e.transitions.getValue();return n.next(new qb(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?ln:[t]})),bc((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,a=e.configLoader,r=e.urlSerializer,o=e.config,function(t){return t.pipe(bc((function(t){return function(t,e,n,i,a){return new xC(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(Uf.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 BC(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 Qb(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,h=t.restoredState,d=t.extras,f=new qb(l,e.serializeUrl(c),u,h);n.next(f);var m=$k(c,e.rootComponentType).snapshot;return ze(Object.assign(Object.assign({},t),{targetSnapshot:m,urlAfterRedirects:c,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ln})),$C((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 $b(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=Wk(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!Ok(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ok(t.url,e.url)||!gk(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!iC(t,e)||!gk(t.queryParams,e.queryParams);case"paramsChange":default:return!iC(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new AC(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 PC(l&&l.outlet&&l.outlet.component||null,s))}else s&&TC(n,l,r),r.canActivateChecks.push(new AC(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]})),bk(o,(function(t,e){return TC(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(Uf.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?ze(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(Za.a)(t).pipe(Object(Uf.a)((function(t){return function(t,e,n,i,a){var r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?ze(r.map((function(r){var o,s=RC(r,e,a);if(function(t){return t&&vC(t.canDeactivate)}(s))o=kk(s.canDeactivate(t,e,n,i));else{if(!vC(s))throw new Error("Invalid CanDeactivate guard");o=kk(s(t,e,n,i))}return o.pipe(jb())}))).pipe(MC()):ze(!0)}(t.component,t.route,n,e,i)})),jb((function(t){return!0!==t}),!0))}(s,i,a,t).pipe(Object(Uf.a)((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Object(Za.a)(e).pipe(Hf((function(e){return Object(Za.a)([LC(e.route.parent,i),jC(e.route,i),NC(t,e.path,n),FC(t,e.route,n)]).pipe(wi(),jb((function(t){return!0!==t}),!0))})),jb((function(t){return!0!==t}),!0))}(i,o,t,e):ze(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(yC(t.guardsResult)){var n=ck('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),qe((function(t){var n=new Kb(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 Yb(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),$C((function(t){if(t.guards.canActivateChecks.length)return ze(t).pipe(qe((function(t){var n=new Xb(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(Uf.a)((function(t){var e=t.targetSnapshot,a=t.guards.canActivateChecks;return a.length?Object(Za.a)(a).pipe(Hf((function(t){return function(t,e,n,i){return function(t,e,n,i){var a=Object.keys(t);if(0===a.length)return ze({});if(1===a.length){var r=a[0];return QC(t[r],e,n,i).pipe(Object(rn.a)((function(t){return _defineProperty({},r,t)})))}var o={};return Object(Za.a)(a).pipe(Object(Uf.a)((function(a){return QC(t[a],e,n,i).pipe(Object(rn.a)((function(t){return o[a]=t,t})))}))).pipe(Mb(),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),Xk(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return Object(Ub.a)(Nb(t,e),wb(1),Pb(e))(n)}:function(e){return Object(Ub.a)(Nb((function(e,n,i){return t(e,n,i+1)})),wb(1))(e)}}((function(t,e){return t})),Object(rn.a)((function(e){return t}))):ze(t)})))}),qe((function(t){var n=new Zb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),$C((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=!0,r=!1,o=void 0;try{for(var s,l=i.children[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(e.shouldReuseRoute(c.value.snapshot,n.value))return t(e,n,c)}}catch(u){r=!0,o=u}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return t(e,n)}))}(e,n,i);return new Yk(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,h=null;if(s)switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=o?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,a){if(0===n.length)return rC(e.root,e.root,e,i,a);var r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new oC(!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 bk(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 oC(n,e,i)}(n);if(r.toRoot())return rC(e.root,new xk([],{}),e,i,a);var o=function(t,e,n){if(t.isAbsolute)return new sC(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new sC(n.snapshot._urlSegment,!0,0);var i=aC(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 sC(i,!1,a-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),s=o.processChildren?uC(o.segmentGroup,o.index,r.commands):cC(o.segmentGroup,o.index,r.commands);return rC(o.segmentGroup,s,e,i,a)}(c,this.currentUrlTree,t,h,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=yC(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 qb?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gb&&(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 rk&&(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 rk(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()},dw.\u0275dir=a.tc({type:dw}),dw),ww=new a.v("ROUTER_CONFIGURATION"),xw=new a.v("ROUTER_FORROOT_GUARD"),Sw=[_e.n,{provide:Ek,useClass:Ak},{provide:ow,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 ow(null,t,e,n,i,a,r,yk(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 h=Object(_e.N)();u.events.subscribe((function(t){h.logGroup("Router Event: ".concat(t.constructor.name)),h.log(t.toString()),h.log(t),h.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:[Ek,gw,_e.n,a.w,a.C,a.k,XC,ww,[function(){return function t(){_classCallCheck(this,t)}}(),new a.G],[function(){return function t(){_classCallCheck(this,t)}}(),new a.G]]},gw,{provide:Kk,useFactory:function(t){return t.routerState.root},deps:[ow]},{provide:a.C,useClass:a.R},kw,bw,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(jf((function(){return ze(null)})))}}]),t}(),{provide:ww,useValue:{enableTracing:!1}}];function Ow(){return new a.E("Router",ow)}var Dw,Ew=((Dw=function(){function t(e,n){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Sw,Tw(e),{provide:xw,useFactory:Rw,deps:[[ow,new a.G,new a.Q]]},{provide:ww,useValue:n||{}},{provide:_e.o,useFactory:Pw,deps:[_e.D,[new a.u(_e.a),new a.G],ww]},{provide:Cw,useFactory:Aw,deps:[ow,_e.H,ww]},{provide:_w,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:bw},{provide:a.E,multi:!0,useFactory:Ow},[Mw,{provide:a.d,multi:!0,useFactory:jw,deps:[Mw]},{provide:Nw,useFactory:Lw,deps:[Mw]},{provide:a.b,multi:!0,useExisting:Nw}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Tw(e)]}}}]),t}()).\u0275mod=a.wc({type:Dw}),Dw.\u0275inj=a.vc({factory:function(t){return new(t||Dw)(a.Mc(xw,8),a.Mc(ow,8))}}),Dw);function Aw(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Cw(t,e,n)}function Pw(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new _e.h(t,e):new _e.B(t,e)}function Rw(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Tw(t){return[{provide:a.a,multi:!0,useValue:t},{provide:XC,multi:!0,useValue:t}]}var Iw,Mw=((Iw=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(_e.m,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(ow),a=t.injector.get(ww);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?ze(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(ww),n=this.injector.get(kw),i=this.injector.get(Cw),r=this.injector.get(ow),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||Iw)(a.Mc(a.w))},Iw.\u0275prov=a.uc({token:Iw,factory:Iw.\u0275fac}),Iw);function jw(t){return t.appInitializer.bind(t)}function Lw(t){return t.bootstrapListener.bind(t)}var Fw,Nw=new a.v("Router Initializer"),zw=((Fw=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=bb,this.settings_changed=new kb(!1),this.debugMode=!1,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(a.eb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/")}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;return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:n,customArgs:i,customOutput:a,youtubeUsername:r,youtubePassword:o})}},{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;return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:n,customArgs:i,customOutput:a,youtubeUsername:r,youtubePassword:o})}},{key:"getFileStatusMp3",value:function(t){return this.http.post(this.path+"fileStatusMp3",{name:t})}},{key:"getFileStatusMp4",value:function(t){return this.http.post(this.path+"fileStatusMp4",{name:t})}},{key:"loadNavItems",value:function(){return Object(a.eb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config")}},{key:"setConfig",value:function(t){return this.http.post(this.path+"setConfig",{new_config_file:t})}},{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",{name:t,blacklistMode:n})}},{key:"getMp3s",value:function(){return this.http.post(this.path+"getMp3s",{})}},{key:"getMp4s",value:function(){return this.http.post(this.path+"getMp4s",{})}},{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;return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:n,fullPathProvided:i},{responseType:"blob"})}},{key:"downloadArchive",value:function(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob"})}},{key:"getFileInfo",value:function(t,e,n){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:n})}},{key:"isPinSet",value:function(){return this.http.post(this.path+"isPinSet",{})}},{key:"setPin",value:function(t){return this.http.post(this.path+"setPin",{pin:t})}},{key:"checkPin",value:function(t){return this.http.post(this.path+"checkPin",{input_pin:t})}},{key:"createPlaylist",value:function(t,e,n,i){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:n,thumbnailURL:i})}},{key:"updatePlaylist",value:function(t,e,n){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:n})}},{key:"removePlaylist",value:function(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e})}},{key:"createSubscription",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:n})}},{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})}},{key:"deleteSubscriptionFile",value:function(t,e,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:n})}},{key:"getSubscription",value:function(t){return this.http.post(this.path+"getSubscription",{id:t})}},{key:"getAllSubscriptions",value:function(){return this.http.post(this.path+"getAllSubscriptions",{})}},{key:"getLatestGithubRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}}]),t}()).\u0275fac=function(t){return new(t||Fw)(a.Mc(pm),a.Mc(ow),a.Mc(_e.e))},Fw.\u0275prov=a.uc({token:Fw,factory:Fw.\u0275fac}),Fw);sn.a.of=ze;var Bw=function(){function t(e){_classCallCheck(this,t),this.value=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Vw(t,this.value))}}]),t}(),Vw=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).value=n,i}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),e}(Ve.a);function Uw(t,e,n){return qe(t,e,n)(this)}function Hw(){return bc(Ib.a)(this)}function qw(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 Gw(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 Yw(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 Bw(t))}}(t)(this)},n("XypG"),sn.a.fromEvent=Kl,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=Uw,sn.a.prototype._do=Uw,sn.a.prototype.switch=Hw,sn.a.prototype._switch=Hw;var Ww,Qw,$w,Kw,Xw,Zw,Jw,tx,ex,nx=((Ww=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||Ww)(a.yc(zw),a.yc(ud),a.yc(cd),a.yc(m_))},Ww.\u0275cmp=a.sc({type:Ww,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,qw,2,1,"h4",0),a.Dc(1,"mat-dialog-content"),a.Dc(2,"div",1),a.td(3,Gw,3,2,"div",2),a.td(4,Yw,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:[_e.t,yd,_d,Ga,vd,Rh,pp,ur,_r,Go,bv],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),Ww),ix={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"}},ax={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"}},rx={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 ox(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 sx(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 lx(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,sx,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)}}Qw=$localize(_templateObject()),$w=$localize(_templateObject2()),Kw=$localize(_templateObject3()),Xw=$localize(_templateObject4()),Zw=$localize(_templateObject5()),Jw=$localize(_templateObject6()),tx=$localize(_templateObject7()),ex=$localize(_templateObject8());var cx=["placeholder",$localize(_templateObject9())],ux=function(){return{standalone:!0}};function hx(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,cx),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,ux))("disabled",!i.secondArgEnabled)("ngModel",i.secondArg)}}var dx,fx,mx,px,gx,vx,yx,_x,bx,kx,Cx,wx,xx,Sx,Ox=((fx=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||fx)},fx.\u0275pipe=a.xc({name:"highlight",type:fx,pure:!0}),fx),Dx=((dx=function(){function t(e,n,i){_classCallCheck(this,t),this.data=e,this.dialogRef=n,this.dialog=i,this.myGroup=new To,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new To,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(Si(""),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=rx,e=Object.keys(t).map((function(e){return t[e]})),n=[].concat.apply([],e);this.availableArgs=n,this.argsByCategory=t,this.argsInfo=ax}},{key:"setFirstArg",value:function(t){this.stateCtrl.setValue(t)}}],[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275fac=function(t){return new(t||dx)(a.yc(ud),a.yc(cd),a.yc(md))},dx.\u0275cmp=a.sc({type:dx,selectors:[["app-arg-modifier-dialog"]],features:[a.jc([Ox])],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,Qw),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,$w),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,Kw),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,ox,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,lx,6,3,"ng-container",13),a.Vc(28,"keyvalue"),a.Cc(),a.Dc(29,"button",14),a.Bc(30),a.Hc(31,Xw),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,Zw),a.Ac(),a.Cc(),a.Cc(),a.td(36,hx,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,Jw),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,tx),a.Ac(),a.Cc(),a.Dc(45,"button",19),a.Bc(46),a.Hc(47,ex),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,ux))("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:[vd,yd,Al,Rh,pp,Yo,br,Fo,$h,ur,_r,$o,qh,_e.s,yg,Ga,Cg,Ul,Go,_e.t,_d,gd,Ra,Kg,np,dg],pipes:[_e.b,_e.l,Ox],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),dx);function Ex(t,e){if(1&t&&(a.Dc(0,"mat-option",8),a.vd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Uc();a.ad("value",n),a.kc(1),a.xd(" ",i.all_locales[n].nativeName," ")}}mx=$localize(_templateObject10()),px=$localize(_templateObject11()),gx=$localize(_templateObject12()),vx=$localize(_templateObject13()),yx=$localize(_templateObject14()),_x=$localize(_templateObject15()),bx=$localize(_templateObject16()),kx=$localize(_templateObject17()),Cx=$localize(_templateObject18()),wx=$localize(_templateObject19()),xx=$localize(_templateObject20()),Sx=$localize(_templateObject21()),Sx=a.Lc(Sx,{VAR_SELECT:"\ufffd0\ufffd"});var Ax,Px=["placeholder",$localize(_templateObject22())];Ax=$localize(_templateObject23());var Rx,Tx,Ix=["placeholder",$localize(_templateObject24())];function Mx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Jc(5,Px),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Host.url=t})),a.Cc(),a.Dc(6,"mat-hint"),a.Bc(7),a.Hc(8,Ax),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(9,"div",14),a.Dc(10,"mat-form-field",12),a.Dc(11,"input",13),a.Jc(12,Ix),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Host.port=t})),a.Cc(),a.Dc(13,"mat-hint"),a.Bc(14),a.Hc(15,Rx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(4),a.ad("ngModel",i.new_config.Host.url),a.kc(7),a.ad("ngModel",i.new_config.Host.port)}}Rx=$localize(_templateObject25()),Tx=$localize(_templateObject26());var jx=["placeholder",$localize(_templateObject27())],Lx=["placeholder",$localize(_templateObject28())];function Fx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Encryption["use-encryption"]=t})),a.Bc(4),a.Hc(5,Tx),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",16),a.Jc(9,jx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Encryption["cert-file-path"]=t})),a.Cc(),a.Cc(),a.Cc(),a.Dc(10,"div",11),a.Dc(11,"mat-form-field",12),a.Dc(12,"input",16),a.Jc(13,Lx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Encryption["key-file-path"]=t})),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();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"])}}var Nx,zx=["placeholder",$localize(_templateObject29())];Nx=$localize(_templateObject30());var Bx,Vx=["placeholder",$localize(_templateObject31())];Bx=$localize(_templateObject32());var Ux,Hx,qx=["placeholder",$localize(_templateObject33())];function Gx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Jc(5,zx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Downloader["path-audio"]=t})),a.Cc(),a.Dc(6,"mat-hint"),a.Bc(7),a.Hc(8,Nx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(9,"div",14),a.Dc(10,"mat-form-field",12),a.Dc(11,"input",13),a.Jc(12,Vx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Downloader["path-video"]=t})),a.Cc(),a.Dc(13,"mat-hint"),a.Bc(14),a.Hc(15,Bx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(16,"div",14),a.Dc(17,"mat-form-field",12),a.Dc(18,"textarea",17),a.Jc(19,qx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Downloader.custom_args=t})),a.Cc(),a.Dc(20,"mat-hint"),a.Bc(21),a.Hc(22,Ux),a.Ac(),a.Cc(),a.Cc(),a.Dc(23,"button",18),a.Qc("click",(function(){return a.ld(n),a.Uc().openArgsModifierDialog()})),a.vd(24,"Modify args"),a.Cc(),a.Cc(),a.Dc(25,"div",14),a.Dc(26,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Downloader.use_youtubedl_archive=t})),a.Bc(27),a.Hc(28,Hx),a.Ac(),a.Cc(),a.Dc(29,"p"),a.vd(30,"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();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(8),a.ad("ngModel",i.new_config.Downloader.use_youtubedl_archive)}}Ux=$localize(_templateObject34()),Hx=$localize(_templateObject35());var Yx,Wx,Qx,$x,Kx,Xx,Zx,Jx=["placeholder",$localize(_templateObject36())];function tS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Jc(5,Jx),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.title_top=t})),a.Cc(),a.zc(6,"mat-hint"),a.Cc(),a.Cc(),a.Dc(7,"div",11),a.Dc(8,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.file_manager_enabled=t})),a.Bc(9),a.Hc(10,Yx),a.Ac(),a.Cc(),a.Cc(),a.Dc(11,"div",11),a.Dc(12,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.allow_quality_select=t})),a.Bc(13),a.Hc(14,Wx),a.Ac(),a.Cc(),a.Cc(),a.Dc(15,"div",11),a.Dc(16,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.download_only_mode=t})),a.Bc(17),a.Hc(18,Qx),a.Ac(),a.Cc(),a.Cc(),a.Dc(19,"div",11),a.Dc(20,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.allow_multi_download_mode=t})),a.Bc(21),a.Hc(22,$x),a.Ac(),a.Cc(),a.Cc(),a.Dc(23,"div",11),a.Dc(24,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Extra.settings_pin_required=t})),a.Bc(25),a.Hc(26,Kx),a.Ac(),a.Cc(),a.Dc(27,"button",19),a.Qc("click",(function(){return a.ld(n),a.Uc().setNewPin()})),a.Bc(28),a.Hc(29,Xx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();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)}}Yx=$localize(_templateObject37()),Wx=$localize(_templateObject38()),Qx=$localize(_templateObject39()),$x=$localize(_templateObject40()),Kx=$localize(_templateObject41()),Xx=$localize(_templateObject42()),Zx=$localize(_templateObject43());var eS,nS,iS,aS,rS,oS=["placeholder",$localize(_templateObject44())];function sS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.API.use_youtube_API=t})),a.Bc(4),a.Hc(5,Zx),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",20),a.Jc(9,oS),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.API.youtube_API_key=t})),a.Cc(),a.Dc(10,"mat-hint"),a.Dc(11,"a",21),a.Bc(12),a.Hc(13,eS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();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 lS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-select",22),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Themes.default_theme=t})),a.Dc(4,"mat-option",23),a.Bc(5),a.Hc(6,nS),a.Ac(),a.Cc(),a.Dc(7,"mat-option",24),a.Bc(8),a.Hc(9,iS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(10,"div",14),a.Dc(11,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Themes.allow_theme_change=t})),a.Bc(12),a.Hc(13,aS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(3),a.ad("ngModel",i.new_config.Themes.default_theme),a.kc(8),a.ad("ngModel",i.new_config.Themes.allow_theme_change)}}eS=$localize(_templateObject45()),nS=$localize(_templateObject46()),iS=$localize(_templateObject47()),aS=$localize(_templateObject48()),rS=$localize(_templateObject49());var cS,uS=["placeholder",$localize(_templateObject50())];cS=$localize(_templateObject51());var hS,dS,fS,mS,pS,gS,vS,yS,_S,bS,kS,CS,wS,xS,SS,OS=["placeholder",$localize(_templateObject52())];function DS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Subscriptions.allow_subscriptions=t})),a.Bc(4),a.Hc(5,rS),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",16),a.Jc(9,uS),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Subscriptions.subscriptions_base_path=t})),a.Cc(),a.Dc(10,"mat-hint"),a.Bc(11),a.Hc(12,cS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(13,"div",25),a.Dc(14,"mat-form-field",12),a.Dc(15,"input",16),a.Jc(16,OS),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Subscriptions.subscriptions_check_interval=t})),a.Cc(),a.Dc(17,"mat-hint"),a.Bc(18),a.Hc(19,hS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(20,"div",14),a.Dc(21,"mat-checkbox",26),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Subscriptions.subscriptions_use_youtubedl_archive=t})),a.Bc(22),a.Hc(23,dS),a.Ac(),a.Cc(),a.Dc(24,"p"),a.Dc(25,"a",27),a.Bc(26),a.Hc(27,fS),a.Ac(),a.Cc(),a.vd(28,"\xa0"),a.Bc(29),a.Hc(30,mS),a.Ac(),a.Cc(),a.Dc(31,"p"),a.Bc(32),a.Hc(33,pS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();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 ES(t,e){if(1&t&&(a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"h6"),a.vd(4,"Chrome"),a.Cc(),a.Dc(5,"p"),a.Dc(6,"a",28),a.Bc(7),a.Hc(8,gS),a.Ac(),a.Cc(),a.vd(9,"\xa0"),a.Bc(10),a.Hc(11,vS),a.Ac(),a.Cc(),a.Dc(12,"p"),a.Bc(13),a.Hc(14,yS),a.Ac(),a.Cc(),a.zc(15,"mat-divider",29),a.Cc(),a.Dc(16,"div",11),a.Dc(17,"h6"),a.vd(18,"Firefox"),a.Cc(),a.Dc(19,"p"),a.Dc(20,"a",30),a.Bc(21),a.Hc(22,_S),a.Ac(),a.Cc(),a.vd(23,"\xa0"),a.Bc(24),a.Hc(25,bS),a.Ac(),a.Cc(),a.Dc(26,"p"),a.Dc(27,"a",31),a.Bc(28),a.Hc(29,kS),a.Ac(),a.Cc(),a.vd(30,"\xa0"),a.Bc(31),a.Hc(32,CS),a.Ac(),a.Cc(),a.zc(33,"mat-divider",29),a.Cc(),a.Dc(34,"div",11),a.Dc(35,"h6"),a.vd(36,"Bookmarklet"),a.Cc(),a.Dc(37,"p"),a.Bc(38),a.Hc(39,wS),a.Ac(),a.Cc(),a.Dc(40,"p"),a.Dc(41,"a",32),a.vd(42,"YTDL-Bookmarklet"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()),2&t){var n=a.Uc();a.kc(41),a.ad("href",n.generated_bookmarklet_code,a.nd)}}function AS(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Advanced.use_default_downloading_agent=t})),a.Bc(4),a.Hc(5,xS),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",33),a.Dc(7,"mat-select",34),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Advanced.custom_downloading_agent=t})),a.Dc(8,"mat-option",35),a.vd(9,"Select a downloader"),a.Cc(),a.Dc(10,"mat-option",36),a.vd(11,"aria2c"),a.Cc(),a.Dc(12,"mat-option",37),a.vd(13,"avconv"),a.Cc(),a.Dc(14,"mat-option",38),a.vd(15,"axel"),a.Cc(),a.Dc(16,"mat-option",39),a.vd(17,"curl"),a.Cc(),a.Dc(18,"mat-option",40),a.vd(19,"ffmpeg"),a.Cc(),a.Dc(20,"mat-option",41),a.vd(21,"httpie"),a.Cc(),a.Dc(22,"mat-option",42),a.vd(23,"wget"),a.Cc(),a.Cc(),a.Cc(),a.Dc(24,"div",43),a.Dc(25,"mat-checkbox",15),a.Qc("ngModelChange",(function(t){return a.ld(n),a.Uc().new_config.Advanced.allow_advanced_download=t})),a.Bc(26),a.Hc(27,SS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Uc();a.kc(3),a.ad("ngModel",i.new_config.Advanced.use_default_downloading_agent),a.kc(4),a.ad("disabled",i.new_config.Advanced.use_default_downloading_agent)("ngModel",i.new_config.Advanced.custom_downloading_agent),a.kc(18),a.ad("ngModel",i.new_config.Advanced.allow_advanced_download)}}hS=$localize(_templateObject53()),dS=$localize(_templateObject54()),fS=$localize(_templateObject55()),mS=$localize(_templateObject56()),pS=$localize(_templateObject57()),gS=$localize(_templateObject58()),vS=$localize(_templateObject59()),yS=$localize(_templateObject60()),_S=$localize(_templateObject61()),bS=$localize(_templateObject62()),kS=$localize(_templateObject63()),CS=$localize(_templateObject64()),wS=$localize(_templateObject65()),xS=$localize(_templateObject66()),SS=$localize(_templateObject67());var PS,RS,TS,IS,MS,jS,LS,FS,NS,zS,BS=((PS=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=ix,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._settingsSame=!0}return _createClass(t,[{key:"ngOnInit",value:function(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}},{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(nx,{data:{resetMode:!0}})}},{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))%7D)()")}},{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(Dx,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe((function(e){e&&(t.new_config.Downloader.custom_args=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||PS)(a.yc(zw),a.yc(m_),a.yc(i.b),a.yc(md))},PS.\u0275cmp=a.sc({type:PS,selectors:[["app-settings"]],decls:75,vars:14,consts:[["mat-dialog-title",""],[2,"margin-bottom","10px"],[1,"locale-select",3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"settings-expansion-panel","mat-elevation-z4"],["class","container-fluid",4,"ngIf"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],[3,"value"],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-4"],["color","accent",3,"ngModel","ngModelChange"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-stroked-button","",2,"margin-left","12px",3,"click"],["mat-stroked-button","",2,"margin-left","15px",3,"disabled","click"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["color","accent",2,"width","100px",3,"ngModel","ngModelChange"],["value","default"],["value","dark"],[1,"col-12","mt-5"],["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"],["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"],["target","_blank",3,"href"],[1,"col-12","my-2"],["color","accent",2,"width","200px",3,"disabled","ngModel","ngModelChange"],["value",""],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,mx),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.vd(4," Language:\xa0\xa0\xa0"),a.Dc(5,"mat-select",2),a.Qc("selectionChange",(function(t){return e.localeSelectChanged(t.value)}))("valueChange",(function(t){return e.initialLocale=t})),a.td(6,Ex,2,2,"mat-option",3),a.Cc(),a.Cc(),a.Dc(7,"mat-expansion-panel",4),a.Dc(8,"mat-expansion-panel-header"),a.Dc(9,"mat-panel-title"),a.Bc(10),a.Hc(11,px),a.Ac(),a.Cc(),a.Cc(),a.td(12,Mx,16,2,"div",5),a.Cc(),a.Dc(13,"mat-expansion-panel",4),a.Dc(14,"mat-expansion-panel-header"),a.Dc(15,"mat-panel-title"),a.Bc(16),a.Hc(17,gx),a.Ac(),a.Cc(),a.Cc(),a.td(18,Fx,14,5,"div",5),a.Cc(),a.Dc(19,"mat-expansion-panel",4),a.Dc(20,"mat-expansion-panel-header"),a.Dc(21,"mat-panel-title"),a.Bc(22),a.Hc(23,vx),a.Ac(),a.Cc(),a.Cc(),a.td(24,Gx,31,4,"div",5),a.Cc(),a.Dc(25,"mat-expansion-panel",4),a.Dc(26,"mat-expansion-panel-header"),a.Dc(27,"mat-panel-title"),a.Bc(28),a.Hc(29,yx),a.Ac(),a.Cc(),a.Cc(),a.td(30,tS,30,7,"div",5),a.Cc(),a.Dc(31,"mat-expansion-panel",4),a.Dc(32,"mat-expansion-panel-header"),a.Dc(33,"mat-panel-title"),a.Bc(34),a.Hc(35,_x),a.Ac(),a.Cc(),a.Cc(),a.td(36,sS,14,3,"div",5),a.Cc(),a.Dc(37,"mat-expansion-panel",4),a.Dc(38,"mat-expansion-panel-header"),a.Dc(39,"mat-panel-title"),a.Bc(40),a.Hc(41,bx),a.Ac(),a.Cc(),a.Cc(),a.td(42,lS,14,2,"div",5),a.Cc(),a.Dc(43,"mat-expansion-panel",4),a.Dc(44,"mat-expansion-panel-header"),a.Dc(45,"mat-panel-title"),a.Bc(46),a.Hc(47,kx),a.Ac(),a.Cc(),a.Cc(),a.td(48,DS,34,7,"div",5),a.Cc(),a.Dc(49,"mat-expansion-panel",4),a.Dc(50,"mat-expansion-panel-header"),a.Dc(51,"mat-panel-title"),a.Bc(52),a.Hc(53,Cx),a.Ac(),a.Cc(),a.Cc(),a.td(54,ES,43,1,"div",5),a.Cc(),a.Dc(55,"mat-expansion-panel",4),a.Dc(56,"mat-expansion-panel-header"),a.Dc(57,"mat-panel-title"),a.Bc(58),a.Hc(59,wx),a.Ac(),a.Cc(),a.Cc(),a.td(60,AS,28,4,"div",5),a.Cc(),a.Cc(),a.Dc(61,"mat-dialog-actions"),a.Dc(62,"div",1),a.Dc(63,"button",6),a.Qc("click",(function(){return e.saveSettings()})),a.Dc(64,"mat-icon"),a.vd(65,"done"),a.Cc(),a.vd(66,"\xa0\xa0 "),a.Bc(67),a.Hc(68,xx),a.Ac(),a.Cc(),a.Dc(69,"button",7),a.Dc(70,"mat-icon"),a.vd(71,"cancel"),a.Cc(),a.vd(72,"\xa0\xa0 "),a.Dc(73,"span"),a.Hc(74,Sx),a.Cc(),a.Cc(),a.Cc(),a.Cc()),2&t&&(a.kc(5),a.ad("value",e.initialLocale),a.kc(1),a.ad("ngForOf",e.supported_locales),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(6),a.ad("ngIf",e.new_config),a.kc(3),a.ad("disabled",e.settingsSame()),a.kc(6),a.ad("mat-dialog-close",!1),a.kc(5),a.Kc(e.settingsAreTheSame+""),a.Ic(74))},directives:[vd,yd,Jv,_e.s,rf,sf,cf,_e.t,_d,Ga,np,gd,Ra,Rh,pp,ur,Bs,_r,Go,wh,Ul,vp],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.locale-select[_ngcontent-%COMP%]{margin-bottom:10px;width:130px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}"]}),PS);function VS(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,NS),a.Ac(),a.Cc()),2&t&&(a.kc(1),a.ad("diameter",22))}function US(t,e){1&t&&(a.Dc(0,"mat-icon",14),a.vd(1,"done"),a.Cc())}function HS(t,e){if(1&t&&(a.Dc(0,"a",2),a.Bc(1),a.Hc(2,zS),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 qS(t,e){1&t&&(a.Dc(0,"span"),a.vd(1,"You are up to date."),a.Cc())}RS=$localize(_templateObject68()),TS=$localize(_templateObject69()),IS=$localize(_templateObject70()),MS=$localize(_templateObject71()),jS=$localize(_templateObject72()),LS=$localize(_templateObject73()),FS=$localize(_templateObject74()),NS=$localize(_templateObject75()),zS=$localize(_templateObject76());var GS,YS,WS,QS,$S,KS,XS=((GS=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.5.1"}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||GS)(a.yc(zw))},GS.\u0275cmp=a.sc({type:GS,selectors:[["app-about-dialog"]],decls:46,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,RS),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,TS),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,IS),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,MS),a.Ac(),a.vd(27),a.td(28,VS,5,1,"span",7),a.td(29,US,2,0,"mat-icon",8),a.vd(30,"\xa0\xa0"),a.td(31,HS,4,2,"a",9),a.td(32,qS,2,0,"span",10),a.Cc(),a.Dc(33,"p"),a.Bc(34),a.Hc(35,jS),a.Ac(),a.vd(36,"\xa0"),a.Dc(37,"a",2),a.Bc(38),a.Hc(39,LS),a.Ac(),a.Cc(),a.vd(40,"\xa0"),a.Bc(41),a.Hc(42,FS),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(43,"mat-dialog-actions"),a.Dc(44,"button",11),a.vd(45,"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(1),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:[vd,yd,vp,_e.t,_d,Ga,gd,bv,np],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}"]}),GS),ZS=["sidenav"],JS=["hamburgerMenu"];function tO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",19,20),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 eO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",21),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 nO(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,KS),a.Cc(),a.zc(5,"mat-slide-toggle",22),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)}}YS=$localize(_templateObject77()),WS=$localize(_templateObject78()),QS=$localize(_templateObject79()),$S=$localize(_templateObject80()),KS=$localize(_templateObject81());var iO,aO,rO=((iO=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=bb,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 qb?s.navigator=localStorage.getItem("player_navigator"):t instanceof Gb&&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(BS,{width:"80vw"})}},{key:"openPinDialog",value:function(){var t=this;this.dialog.open(nx,{}).afterClosed().subscribe((function(e){e&&t.actuallyOpenSettingsDialog()}))}},{key:"openAboutDialog",value:function(){this.dialog.open(XS,{width:"80vw"})}}]),t}()).\u0275fac=function(t){return new(t||iO)(a.yc(zw),a.yc(m_),a.yc(md),a.yc(ow),a.yc(_u),a.yc(a.q))},iO.\u0275cmp=a.sc({type:iO,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(a.zd(ZS,!0),a.zd(JS,!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:40,vars:9,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"],["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"]],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,tO,4,0,"button",5),a.td(6,eO,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,nO,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,YS),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,WS),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,QS),a.Ac(),a.Cc(),a.Dc(35,"a",18),a.Qc("click",(function(){return a.ld(n),a.hd(30).close()})),a.Bc(36),a.Hc(37,$S),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(38,"mat-sidenav-content"),a.zc(39,"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]&&e.allowSubscriptions),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(22),a.sd("background",e.postsService.theme?e.postsService.theme.background_color:null,a.rc)}},directives:[__,_e.t,Ga,Cg,np,yg,dg,Ry,Ay,Fp,Hp,lw,Ey,vw,qy],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}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),iO),oO=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.uc({token:t,factory:t.\u0275fac}),t}(),sO=function(){var t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch",t}(),lO=function(){var t={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return t[t.Basic]="Basic",t[t.Cors]="Cors",t[t.Default]="Default",t[t.Error]="Error",t[t.Opaque]="Opaque",t}(),cO=function(){var t={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return t[t.NONE]="NONE",t[t.JSON]="JSON",t[t.FORM]="FORM",t[t.FORM_DATA]="FORM_DATA",t[t.TEXT]="TEXT",t[t.BLOB]="BLOB",t[t.ARRAY_BUFFER]="ARRAY_BUFFER",t}(),uO=function(){var t={Text:0,Json:1,ArrayBuffer:2,Blob:3};return t[t.Text]="Text",t[t.Json]="Json",t[t.ArrayBuffer]="ArrayBuffer",t[t.Blob]="Blob",t}(),hO=function(){function t(e){var n=this;_classCallCheck(this,t),this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach((function(t,e){t.forEach((function(t){return n.append(e,t)}))})):Object.keys(e).forEach((function(t){var i=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),i.forEach((function(e){return n.append(t,e)}))})))}return _createClass(t,[{key:"append",value:function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)}},{key:"delete",value:function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)}},{key:"forEach",value:function(t){var e=this;this._headers.forEach((function(n,i){return t(n,e._normalizedNames.get(i),e._headers)}))}},{key:"get",value:function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null}},{key:"has",value:function(t){return this._headers.has(t.toLowerCase())}},{key:"keys",value:function(){return Array.from(this._normalizedNames.values())}},{key:"set",value:function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)}},{key:"values",value:function(){return Array.from(this._headers.values())}},{key:"toJSON",value:function(){var t=this,e={};return this._headers.forEach((function(n,i){var a=[];n.forEach((function(t){return a.push.apply(a,_toConsumableArray(t.split(",")))})),e[t._normalizedNames.get(i)]=a})),e}},{key:"getAll",value:function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null}},{key:"entries",value:function(){throw new Error('"entries" method is not implemented on Headers class')}},{key:"mayBeSetNormalizedName",value:function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)}}],[{key:"fromResponseHeaderString",value:function(e){var n=new t;return e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),a=t.slice(e+1).trim();n.set(i,a)}})),n}}]),t}(),dO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t);var n=e.body,i=e.status,a=e.headers,r=e.statusText,o=e.type,s=e.url;this.body=null!=n?n:null,this.status=null!=i?i:null,this.headers=null!=a?a:null,this.statusText=null!=r?r:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return _createClass(t,[{key:"merge",value:function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})}}]),t}(),fO=((aO=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,{status:200,statusText:"Ok",type:lO.Default,headers:new hO}))}return _inherits(e,t),e}(dO)).\u0275fac=function(t){return new(t||aO)},aO.\u0275prov=a.uc({token:aO,factory:aO.\u0275fac}),aO),mO=function t(){_classCallCheck(this,t)},pO=function t(){_classCallCheck(this,t)};function gO(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return sO.Get;case"POST":return sO.Post;case"PUT":return sO.Put;case"DELETE":return sO.Delete;case"OPTIONS":return sO.Options;case"HEAD":return sO.Head;case"PATCH":return sO.Patch}throw new Error('Invalid request method. The method "'.concat(t,'" is not supported.'))}var vO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return yO(t)}},{key:"encodeValue",value:function(t){return yO(t)}}]),t}();function yO(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 _O,bO,kO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new vO;_classCallCheck(this,t),this.rawParams=e,this.queryEncoder=n,this.paramsMap=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=new Map;return t.length>0&&t.split("&").forEach((function(t){var n=t.indexOf("="),i=_slicedToArray(-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],2),a=i[0],r=i[1],o=e.get(a)||[];o.push(r),e.set(a,o)})),e}(e)}return _createClass(t,[{key:"clone",value:function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e}},{key:"has",value:function(t){return this.paramsMap.has(t)}},{key:"get",value:function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null}},{key:"getAll",value:function(t){return this.paramsMap.get(t)||[]}},{key:"set",value:function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)}},{key:"setAll",value:function(t){var e=this;t.paramsMap.forEach((function(t,n){var i=e.paramsMap.get(n)||[];i.length=0,i.push(t[0]),e.paramsMap.set(n,i)}))}},{key:"append",value:function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}}},{key:"appendAll",value:function(t){var e=this;t.paramsMap.forEach((function(t,n){for(var i=e.paramsMap.get(n)||[],a=0;a0&&void 0!==arguments[0]?arguments[0]:"legacy";if(this._body instanceof kO)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: ".concat(t))}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}},{key:"arrayBuffer",value:function(){return this._body instanceof ArrayBuffer?this._body:function(t){for(var e=new Uint16Array(t.length),n=0,i=t.length;n=200&&n.status<=299,n.statusText=t.statusText,n.headers=t.headers,n.type=t.type,n.url=t.url,n}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"Response with status: ".concat(this.status," ").concat(this.statusText," for URL: ").concat(this.url)}}]),e}(CO),xO=/^\)\]\}',?\n/,SO=function(){function t(e,n,i){var a=this;_classCallCheck(this,t),this.request=e,this.response=new sn.a((function(t){var r=n.build();r.open(sO[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(r.withCredentials=e.withCredentials);var o=function(){var n=1223===r.status?204:r.status,a=null;204!==n&&("string"==typeof(a=void 0===r.response?r.responseText:r.response)&&(a=a.replace(xO,""))),0===n&&(n=a?200:0);var o,s=hO.fromResponseHeaderString(r.getAllResponseHeaders()),l=("responseURL"in(o=r)?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null)||e.url,c=new dO({body:a,status:n,headers:s,statusText:r.statusText||"OK",url:l});null!=i&&(c=i.merge(c));var u=new wO(c);if(u.ok=function(t){return t>=200&&t<300}(n),u.ok)return t.next(u),void t.complete();t.error(u)},s=function(e){var n=new dO({body:e,type:lO.Error,status:r.status,statusText:r.statusText});null!=i&&(n=i.merge(n)),t.error(new wO(n))};if(a.setDetectedContentType(e,r),null==e.headers&&(e.headers=new hO),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach((function(t,e){return r.setRequestHeader(e,t.join(","))})),null!=e.responseType&&null!=r.responseType)switch(e.responseType){case uO.ArrayBuffer:r.responseType="arraybuffer";break;case uO.Json:r.responseType="json";break;case uO.Text:r.responseType="text";break;case uO.Blob:r.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return r.addEventListener("load",o),r.addEventListener("error",s),r.send(a.request.getBody()),function(){r.removeEventListener("load",o),r.removeEventListener("error",s),r.abort()}}))}return _createClass(t,[{key:"setDetectedContentType",value:function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case cO.NONE:break;case cO.JSON:e.setRequestHeader("content-type","application/json");break;case cO.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case cO.TEXT:e.setRequestHeader("content-type","text/plain");break;case cO.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}}}]),t}(),OO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"XSRF-TOKEN",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"X-XSRF-TOKEN";_classCallCheck(this,t),this._cookieName=e,this._headerName=n}return _createClass(t,[{key:"configureRequest",value:function(t){var e=Object(_e.N)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)}}]),t}(),DO=((_O=function(){function t(e,n,i){_classCallCheck(this,t),this._browserXHR=e,this._baseResponseOptions=n,this._xsrfStrategy=i}return _createClass(t,[{key:"createConnection",value:function(t){return this._xsrfStrategy.configureRequest(t),new SO(t,this._browserXHR,this._baseResponseOptions)}}]),t}()).\u0275fac=function(t){return new(t||_O)(a.Mc(oO),a.Mc(dO),a.Mc(pO))},_O.\u0275prov=a.uc({token:_O,factory:_O.\u0275fac}),_O),EO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t);var n=e.method,i=e.headers,a=e.body,r=e.url,o=e.search,s=e.params,l=e.withCredentials,c=e.responseType;this.method=null!=n?gO(n):null,this.headers=null!=i?i:null,this.body=null!=a?a:null,this.url=null!=r?r:null,this.params=this._mergeSearchParams(s||o),this.withCredentials=null!=l?l:null,this.responseType=null!=c?c:null}return _createClass(t,[{key:"search",get:function(){return this.params},set:function(t){this.params=t}}]),_createClass(t,[{key:"merge",value:function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new hO(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})}},{key:"_mergeSearchParams",value:function(t){return t?t instanceof kO?t.clone():"string"==typeof t?new kO(t):this._parseParams(t):this.params}},{key:"_parseParams",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new kO;return Object.keys(e).forEach((function(i){var a=e[i];Array.isArray(a)?a.forEach((function(e){return t._appendParam(i,e,n)})):t._appendParam(i,a,n)})),n}},{key:"_appendParam",value:function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)}}]),t}(),AO=((bO=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,{method:sO.Get,headers:new hO}))}return _inherits(e,t),e}(EO)).\u0275fac=function(t){return new(t||bO)},bO.\u0275prov=a.uc({token:bO,factory:bO.\u0275fac}),bO),PO=function(t){function e(t){var n;_classCallCheck(this,e),n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this));var i=t.url;n.url=t.url;var a,r=t.params||t.search;if(r&&(a="object"!=typeof r||r instanceof kO?r.toString():function(t){var e=new kO;return Object.keys(t).forEach((function(n){var i=t[n];i&&Array.isArray(i)?i.forEach((function(t){return e.append(n,t.toString())})):e.append(n,i.toString())})),e}(r).toString()).length>0){var o="?";-1!=n.url.indexOf("?")&&(o="&"==n.url[n.url.length-1]?"":"&"),n.url=i+o+a}return n._body=t.body,n.method=gO(t.method),n.headers=new hO(t.headers),n.contentType=n.detectContentType(),n.withCredentials=t.withCredentials,n.responseType=t.responseType,n}return _inherits(e,t),_createClass(e,[{key:"detectContentType",value:function(){switch(this.headers.get("content-type")){case"application/json":return cO.JSON;case"application/x-www-form-urlencoded":return cO.FORM;case"multipart/form-data":return cO.FORM_DATA;case"text/plain":case"text/html":return cO.TEXT;case"application/octet-stream":return this._body instanceof jO?cO.ARRAY_BUFFER:cO.BLOB;default:return this.detectContentTypeFromBody()}}},{key:"detectContentTypeFromBody",value:function(){return null==this._body?cO.NONE:this._body instanceof kO?cO.FORM:this._body instanceof IO?cO.FORM_DATA:this._body instanceof MO?cO.BLOB:this._body instanceof jO?cO.ARRAY_BUFFER:this._body&&"object"==typeof this._body?cO.JSON:cO.TEXT}},{key:"getBody",value:function(){switch(this.contentType){case cO.JSON:case cO.FORM:return this.text();case cO.FORM_DATA:return this._body;case cO.TEXT:return this.text();case cO.BLOB:return this.blob();case cO.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}]),e}(CO),RO=function(){},TO="object"==typeof window?window:RO,IO=TO.FormData||RO,MO=TO.Blob||RO,jO=TO.ArrayBuffer||RO;function LO(t,e){return t.createConnection(e).response}function FO(t,e,n,i){return t.merge(new EO(e?{method:e.method||n,url:e.url||i,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:i}))}var NO,zO=((NO=function(){function t(e,n){_classCallCheck(this,t),this._backend=e,this._defaultOptions=n}return _createClass(t,[{key:"request",value:function(t,e){var n;if("string"==typeof t)n=LO(this._backend,new PO(FO(this._defaultOptions,e,sO.Get,t)));else{if(!(t instanceof PO))throw new Error("First argument must be a url string or Request instance.");n=LO(this._backend,t)}return n}},{key:"get",value:function(t,e){return this.request(new PO(FO(this._defaultOptions,e,sO.Get,t)))}},{key:"post",value:function(t,e,n){return this.request(new PO(FO(this._defaultOptions.merge(new EO({body:e})),n,sO.Post,t)))}},{key:"put",value:function(t,e,n){return this.request(new PO(FO(this._defaultOptions.merge(new EO({body:e})),n,sO.Put,t)))}},{key:"delete",value:function(t,e){return this.request(new PO(FO(this._defaultOptions,e,sO.Delete,t)))}},{key:"patch",value:function(t,e,n){return this.request(new PO(FO(this._defaultOptions.merge(new EO({body:e})),n,sO.Patch,t)))}},{key:"head",value:function(t,e){return this.request(new PO(FO(this._defaultOptions,e,sO.Head,t)))}},{key:"options",value:function(t,e){return this.request(new PO(FO(this._defaultOptions,e,sO.Options,t)))}}]),t}()).\u0275fac=function(t){return new(t||NO)(a.Mc(mO),a.Mc(EO))},NO.\u0275prov=a.uc({token:NO,factory:NO.\u0275fac}),NO);function BO(){return new OO}function VO(t,e){return new zO(t,e)}var UO,HO=((UO=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:UO}),UO.\u0275inj=a.vc({factory:function(t){return new(t||UO)},providers:[{provide:zO,useFactory:VO,deps:[DO,EO]},oO,{provide:EO,useClass:AO},{provide:dO,useClass:fO},DO,{provide:pO,useFactory:BO}]}),UO);function qO(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){t.done?a(t.value):new n((function(e){e(t.value)})).then(o,s)}l((i=i.apply(t,e||[])).next())}))}var GO,YO,WO=n("Iab2"),QO=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=KO(n.getMonth()+1),a=KO(n.getDate()),r=n.getFullYear();e=n.getHours();var o=KO(n.getMinutes()),s="AM",l=parseInt(e,10);return l>12?(s="PM",e=l-12):0===l&&(e="12"),i+"-"+a+"-"+r+" "+(e=KO(e))+":"+o+" "+s}(Date.parse(this.uploaded))},$O=((GO=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 QO({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||GO)(a.Mc(pm))},GO.\u0275prov=a.uc({token:GO,factory:GO.\u0275fac,providedIn:"root"}),GO);function KO(t){return t<10?"0"+t:t}YO=$localize(_templateObject82());var XO,ZO,JO=["placeholder",$localize(_templateObject83())];function tD(t,e){1&t&&(a.Dc(0,"mat-label"),a.Bc(1),a.Hc(2,XO),a.Ac(),a.Cc())}function eD(t,e){1&t&&(a.Dc(0,"mat-label"),a.Bc(1),a.Hc(2,ZO),a.Ac(),a.Cc())}function nD(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 iD(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))}XO=$localize(_templateObject84()),ZO=$localize(_templateObject85());var aD,rD,oD,sD,lD,cD,uD=function(){return{standalone:!0}},hD=((aD=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 To,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 PD(t,e){if(1&t&&(a.Dc(0,"div",34),a.td(1,AD,12,7,"span",28),a.Cc()),2&t){var n=a.Uc();a.kc(1),a.ad("ngForOf",n.results)}}function RD(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,xD),a.Ac(),a.Cc()}if(2&t){var i=a.Uc();a.ad("disabled",i.current_download)("ngModel",i.multiDownloadMode)}}function TD(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,SD),a.Ac(),a.Cc()}}xD=$localize(_templateObject93()),SD=$localize(_templateObject94()),OD=$localize(_templateObject95()),DD=$localize(_templateObject96());var ID,MD,jD=["placeholder",$localize(_templateObject97())];ID=$localize(_templateObject98()),MD=$localize(_templateObject99());var LD,FD,ND,zD,BD=["placeholder",$localize(_templateObject100())];function VD(t,e){if(1&t&&(a.Dc(0,"p"),a.Bc(1),a.Hc(2,ND),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)}}LD=$localize(_templateObject101()),FD=$localize(_templateObject102()),ND=$localize(_templateObject103()),zD=$localize(_templateObject104());var UD=["placeholder",$localize(_templateObject105())];function HD(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,zD),a.Ac(),a.Cc(),a.Dc(4,"mat-form-field",53),a.Dc(5,"input",49),a.Jc(6,UD),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,CD)),a.kc(4),a.ad("ngModel",i.youtubeUsername)("ngModelOptions",a.cd(7,CD))("disabled",!i.youtubeAuthEnabled)}}var qD,GD,YD,WD,QD,$D,KD,XD,ZD=["placeholder",$localize(_templateObject106())];function JD(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,ZD),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,CD))("disabled",!i.youtubeAuthEnabled)}}function tE(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,OD),a.Ac(),a.Cc(),a.Cc(),a.td(7,VD,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,DD),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,jD),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,ID),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,MD),a.Ac(),a.Cc(),a.Dc(27,"mat-form-field",48),a.Dc(28,"input",49),a.Jc(29,BD),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,LD),a.Ac(),a.Cc(),a.vd(34,". "),a.Bc(35),a.Hc(36,FD),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.td(37,HD,7,8,"div",51),a.td(38,JD,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,CD)),a.kc(7),a.ad("ngModel",i.customArgs)("ngModelOptions",a.cd(16,CD))("disabled",!i.customArgsEnabled),a.kc(6),a.ad("disabled",i.current_download)("ngModel",i.customOutputEnabled)("ngModelOptions",a.cd(17,CD)),a.kc(4),a.ad("ngModel",i.customOutput)("ngModelOptions",a.cd(18,CD))("disabled",!i.customOutputEnabled),a.kc(9),a.ad("ngIf",!i.youtubeAuthDisabledOverride),a.kc(1),a.ad("ngIf",!i.youtubeAuthDisabledOverride)}}function eE(t,e){1&t&&a.zc(0,"mat-divider",2)}function nE(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,eE,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 iE(t,e){if(1&t&&(a.Dc(0,"div",5),a.td(1,nE,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 aE(t,e){if(1&t&&(a.Dc(0,"div",56),a.Dc(1,"mat-card",57),a.Dc(2,"div",58),a.td(3,iE,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 rE(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.determinateProgress&&100===n.percentDownloaded?"make-room-for-spinner":"equal-sizes"),a.kc(1),a.bd("value",n.percentDownloaded)}}function oE(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 sE(t,e){1&t&&a.zc(0,"mat-progress-bar",70)}function lE(t,e){if(1&t&&(a.Dc(0,"div",62),a.Dc(1,"div",63),a.td(2,rE,3,2,"div",64),a.td(3,oE,2,1,"div",65),a.td(4,sE,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.determinateProgress)("ngIfElse",n),a.kc(1),a.ad("ngIf",i.determinateProgress&&100===i.percentDownloaded)}}function cE(t,e){}function uE(t,e){1&t&&a.zc(0,"mat-progress-bar",82)}function hE(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,uE,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)("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 dE(t,e){1&t&&a.zc(0,"mat-progress-bar",82)}function fE(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,dE,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 mE(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,fE,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 pE(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,$D),a.Ac(),a.Cc())}function gE(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,hE,4,8,"mat-grid-tile",28),a.Cc(),a.zc(3,"mat-divider"),a.Dc(4,"div",75),a.Dc(5,"h6"),a.Hc(6,QD),a.Cc(),a.Cc(),a.td(7,mE,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,pE,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 vE(t,e){1&t&&a.zc(0,"mat-progress-bar",82)}function yE(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,vE,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)("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 _E(t,e){1&t&&a.zc(0,"mat-progress-bar",82)}function bE(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,_E,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 kE(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,bE,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 CE(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,XD),a.Ac(),a.Cc())}function wE(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,yE,4,8,"mat-grid-tile",28),a.Cc(),a.zc(3,"mat-divider"),a.Dc(4,"div",75),a.Dc(5,"h6"),a.Hc(6,KD),a.Cc(),a.Cc(),a.td(7,kE,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,CE,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 xE(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,qD),a.Ac(),a.Cc(),a.Dc(7,"mat-panel-description"),a.Bc(8),a.Hc(9,GD),a.Ac(),a.Cc(),a.Cc(),a.td(10,gE,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,YD),a.Ac(),a.Cc(),a.Dc(16,"mat-panel-description"),a.Bc(17),a.Hc(18,WD),a.Ac(),a.Cc(),a.Cc(),a.td(19,wE,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 SE(t,e){}function OE(t,e){}qD=$localize(_templateObject107()),GD=$localize(_templateObject108()),YD=$localize(_templateObject109()),WD=$localize(_templateObject110()),QD=$localize(_templateObject111()),$D=$localize(_templateObject112()),KD=$localize(_templateObject113()),XD=$localize(_templateObject114());var DE,EE=!1,AE=!1,PE=!1,RE=!1,TE=((DE=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 To("",[Sr.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},this.simulatedOutput="",this.audioOnly=!1}return _createClass(t,[{key:"configLoad",value:function(){return qO(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 qO(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!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;a1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(this.downloadingfile=!1,this.multiDownloadMode&&!this.downloadOnlyMode);else if(!1===i&&this.downloadOnlyMode&&!this.iOS)if(n){var r=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",r)}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"}]);this.removeDownloadFromCurrentDownloads(a),this.fileManagerEnabled&&(this.getMp3s(),setTimeout((function(){e.audioFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadHelperMp4",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(this.downloadingfile=!1,this.multiDownloadMode&&!this.downloadOnlyMode);else if(!1===i&&this.downloadOnlyMode)if(n){var r=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",r)}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"}]);this.removeDownloadFromCurrentDownloads(a),this.fileManagerEnabled&&(this.getMp4s(),setTimeout((function(){e.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(dD.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};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).subscribe((function(e){r.downloading=!1,r.percent_complete=100;var n=!!e.file_names;t.path=n?e.file_names:e.audiopathEncoded,"-1"!==t.path&&t.downloadHelperMp3(t.path,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(dD.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};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).subscribe((function(e){s.downloading=!1,s.percent_complete=100;var n=!!e.file_names;t.path=n?e.file_names:e.videopathEncoded,"-1"!==t.path&&t.downloadHelperMp4(t.path,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(WO.saveAs)(i,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(WO.saveAs)(i,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(WO.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 h,d=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"],f=this.getSelectedVideoFormat();f?d=["-f",f]:this.selectedQuality&&(d=["bestvideo[height=".concat(this.selectedQuality,"]+bestaudio/best[height=").concat(this.selectedQuality,"]")]),(h=i).splice.apply(h,[2,0].concat(_toConsumableArray(d))),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?(EE=!0,this.audioFileCards.forEach((function(t){t.onHoverResponse()}))):"video"===t&&(AE=!0,this.videoFileCards.forEach((function(t){t.onHoverResponse()})))}},{key:"accordionLeft",value:function(t){"audio"===t?EE=!1:"video"===t&&(AE=!1)}},{key:"accordionOpened",value:function(t){"audio"===t?PE=!0:"video"===t&&(RE=!0)}},{key:"accordionClosed",value:function(t){"audio"===t?PE=!1:"video"===t&&(RE=!1)}},{key:"openCreatePlaylistDialog",value:function(t){var e=this;this.dialog.open(hD,{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(Dx,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(e){e&&(t.customArgs=e)}))}}]),t}()).\u0275fac=function(t){return new(t||DE)(a.yc(zw),a.yc($O),a.yc(m_),a.yc(ow),a.yc(md),a.yc(Sn),a.yc(Kk))},DE.\u0275cmp=a.sc({type:DE,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(a.zd(fD,!0,a.q),a.zd(mD,!0),a.zd(pD,!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",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","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,rD),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,gD,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,wD,8,5,"div",12),a.Cc(),a.Cc(),a.td(20,PD,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,oD),a.Ac(),a.Cc(),a.td(25,RD,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,sD),a.Ac(),a.Cc(),a.td(30,TD,3,0,"button",17),a.Cc(),a.Cc(),a.Cc(),a.td(31,tE,39,19,"div",18),a.td(32,aE,4,1,"div",19),a.zc(33,"br"),a.td(34,lE,7,3,"div",20),a.td(35,cE,0,0,"ng-template",null,21,a.ud),a.td(37,xE,20,4,"div",22),a.td(38,SE,0,0,"ng-template",null,23,a.ud),a.td(40,OE,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}}"]}),DE);sn.a.merge=$l.a;var IE,ME,jE,LE,FE,NE,zE,BE=n("zuWl"),VE=n.n(BE);IE=$localize(_templateObject115()),ME=$localize(_templateObject116()),jE=$localize(_templateObject117()),LE=$localize(_templateObject118()),FE=$localize(_templateObject119()),NE=$localize(_templateObject120()),zE=$localize(_templateObject121());var UE,HE=((UE=function(){function t(e){_classCallCheck(this,t),this.data=e}return _createClass(t,[{key:"ngOnInit",value:function(){this.filesize=VE.a,this.data&&(this.file=this.data.file)}}]),t}()).\u0275fac=function(t){return new(t||UE)(a.yc(ud))},UE.\u0275cmp=a.sc({type:UE,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,IE),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,ME),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,jE),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,LE),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,FE),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,NE),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,zE),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.filesize(e.file.size)),a.kc(8),a.wd(e.file.path),a.kc(8),a.wd(e.file.upload_date))},directives:[vd,yd,_d,Ga,gd],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}"]}),UE);function qE(t,e){t.className.includes(e)||(t.className+=" ".concat(e))}function GE(){return"undefined"!=typeof window?window.navigator:void 0}function YE(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function WE(t){return"img"===t.nodeName.toLowerCase()}function QE(t,e,n){return WE(t)?n&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage="url('".concat(e,"')"),t}function $E(t){return function(e){for(var n=e.parentElement.getElementsByTagName("source"),i=0;i1&&void 0!==arguments[1]?arguments[1]:fA;return t.customObservable?t.customObservable:e(t)}}),pA=Object.assign({},iA,{isVisible:function(){return!0},getObservable:function(){return ze("load")},loadImage:function(t){return[t.imagePath]}}),gA=((sA=function(){function t(e,n,i,r){_classCallCheck(this,t),this.onLoad=new a.s,this.elementRef=e,this.ngZone=n,this.propertyChanges$=new Fc,this.platformId=i,this.hooks=function(t,e){var n=mA,i=e&&e.isBot?e.isBot:n.isBot;if(i(GE(),t))return Object.assign(pA,{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(){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})}},{key:"ngAfterContentInit",value:function(){var t=this;if(Object(_e.J)(this.platformId)&&!this.hooks.isBot(GE(),this.platformId))return null;this.ngZone.runOutsideAngular((function(){t.scrollSubscription=t.propertyChanges$.pipe(qe((function(e){return t.hooks.setup(e)})),bc((function(e){return t.hooks.getObservable(e).pipe(function(t,e){return function(n){return n.pipe(en((function(n){return t.isVisible({element:e.element,event:n,offset:e.offset,scrollContainer:e.scrollContainer})})),un(1),Object(Uf.a)((function(){return t.loadImage(e)})),qe((function(n){return t.setLoadedImage({element:e.element,imagePath:n,useSrcset:e.useSrcset})})),Object(rn.a)((function(){return!0})),jf((function(){return t.setErrorImage(e),ze(!1)})),qe((function(){return t.finally(e)})))}}(t.hooks,e))}))).subscribe((function(e){return t.onLoad.emit(e)}))}))}},{key:"ngOnDestroy",value:function(){this.scrollSubscription&&this.scrollSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||sA)(a.yc(a.q),a.yc(a.F),a.yc(a.I),a.yc("options",8))},sA.\u0275dir=a.tc({type:sA,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode"},outputs:{onLoad:"onLoad"},features:[a.ic]}),sA),vA=((cA=lA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(t){return{ngModule:lA,providers:[{provide:"options",useValue:t}]}}}]),t}()).\u0275mod=a.wc({type:cA}),cA.\u0275inj=a.vc({factory:function(t){return new(t||cA)}}),cA),yA=[[["","before-svg",""]],"*",[["","after-svg",""]]],_A=["[before-svg]","*","[after-svg]"],bA=["ngx-rect",""],kA=["ngx-svg-stop",""],CA=["ngx-facebook-preset",""],wA=["ngx-instagram-preset",""],xA=["ngx-circle",""],SA=["ngx-code-preset",""],OA=["ngx-bullet-list-preset",""],DA=["ngx-list-preset",""],EA=((hA=function(){function t(){_classCallCheck(this,t),this.width="400",this.height="130",this.primaryColor="#f3f3f3",this.secondaryColor="#ecebeb",this.speed="1000ms",this.preserveAspectRatio="xMidYMid meet"}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"viewBox",get:function(){return"0 0 ".concat(this.width," ").concat(this.height)}}]),t}()).\u0275fac=function(t){return new(t||hA)},hA.\u0275cmp=a.sc({type:hA,selectors:[["ngx-content-loading"]],inputs:{width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed",preserveAspectRatio:"preserveAspectRatio"},ngContentSelectors:_A,decls:4,vars:2,consts:[["version","1.1"]],template:function(t,e){1&t&&(a.Zc(yA),a.Yc(0),a.Tc(),a.Dc(1,"svg",0),a.Yc(2,1),a.Cc(),a.Yc(3,2)),2&t&&(a.kc(1),a.lc("preserveAspectRatio",e.preserveAspectRatio)("viewBox",e.viewBox))},styles:[""],changeDetection:0}),hA),AA=((uA=function(){function t(e){_classCallCheck(this,t),this.content=e,this.clipPathId=PA(),this.linearGradientId=PA()}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"clipPathUrl",get:function(){return"url(#".concat(this.clipPathId,")")}},{key:"linearGradientUrl",get:function(){return"url(#".concat(this.linearGradientId,")")}}]),t}()).\u0275fac=function(t){return new(t||uA)(a.yc(EA))},uA.\u0275cmp=a.sc({type:uA,selectors:[["ngx-svg-element"]],decls:0,vars:0,template:function(t,e){},styles:[""],changeDetection:0}),uA);function PA(){return(performance.now()*Math.random()).toString()}var RA,TA,IA,MA,jA,LA,FA,NA,zA,BA,VA,UA,HA,qA,GA=((zA=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).content=t,n.rx="0",n.ry="1",n}return _inherits(e,t),e}(AA)).\u0275fac=function(t){return new(t||zA)(a.yc(EA))},zA.\u0275cmp=a.sc({type:zA,selectors:[["","ngx-rect",""]],inputs:{rx:"rx",ry:"ry",y:"y",x:"x",width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed"},features:[a.hc],attrs:bA,decls:7,vars:22,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"rect"),a.Dc(1,"defs"),a.zc(2,"clipPath"),a.Dc(3,"linearGradient"),a.zc(4,"stop",0),a.zc(5,"stop",0),a.zc(6,"stop",0),a.Cc(),a.Cc()),2&t&&(a.lc("x",e.x)("y",e.y)("rx",e.rx)("ry",e.ry)("width",e.width)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl)("height",e.height),a.kc(2),a.lc("id",e.clipPathId),a.kc(1),a.lc("id",e.linearGradientId),a.kc(1),a.ad("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),a.kc(1),a.ad("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),a.kc(1),a.ad("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:function(){return[YA]},styles:[""]}),zA),YA=((NA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||NA)},NA.\u0275cmp=a.sc({type:NA,selectors:[["","ngx-svg-stop",""]],hostVars:2,hostBindings:function(t,e){2&t&&a.lc("offset",e.offset)("stop-color",e.color)},inputs:{speed:"speed",values:"values",offset:"offset",color:"color"},attrs:kA,decls:1,vars:2,consts:[["attributeName","offset","repeatCount","indefinite"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"animate",0)),2&t&&a.lc("values",e.values)("dur",e.speed)},styles:[""],changeDetection:0}),NA),WA=((FA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||FA)},FA.\u0275cmp=a.sc({type:FA,selectors:[["","ngx-facebook-preset",""]],attrs:CA,decls:6,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","100","height","5","y","15","x","60","rx","5","ry","5"],["ngx-rect","","width","60","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","170","height","5","y","65","x","0","rx","5","ry","5"],["ngx-rect","","width","220","height","5","y","80","x","0","rx","5","ry","5"],["ngx-rect","","width","130","height","5","y","95","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5))},directives:function(){return[$A,GA]},styles:[""],changeDetection:0}),FA),QA=((LA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||LA)},LA.\u0275cmp=a.sc({type:LA,selectors:[["","ngx-instagram-preset",""]],attrs:wA,decls:4,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","120","height","10","y","10","x","60","rx","5","ry","5"],["ngx-rect","","width","40","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","250","height","250","y","60","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3))},directives:function(){return[$A,GA]},styles:[""],changeDetection:0}),LA),$A=((jA=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).content=t,n}return _inherits(e,t),e}(AA)).\u0275fac=function(t){return new(t||jA)(a.yc(EA))},jA.\u0275cmp=a.sc({type:jA,selectors:[["","ngx-circle",""]],inputs:{r:"r",cx:"cx",cy:"cy"},features:[a.hc],attrs:xA,decls:7,vars:19,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"circle"),a.Dc(1,"defs"),a.zc(2,"clipPath"),a.Dc(3,"linearGradient"),a.zc(4,"stop",0),a.zc(5,"stop",0),a.zc(6,"stop",0),a.Cc(),a.Cc()),2&t&&(a.lc("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl),a.kc(2),a.lc("id",e.clipPathId),a.kc(1),a.lc("id",e.linearGradientId),a.kc(1),a.ad("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),a.kc(1),a.ad("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),a.kc(1),a.ad("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:[YA],styles:[""]}),jA),KA=((MA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||MA)},MA.\u0275cmp=a.sc({type:MA,selectors:[["","ngx-code-preset",""]],attrs:SA,decls:9,vars:0,consts:[["ngx-rect","","width","60","height","10","y","15","x","0","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","15","x","70","rx","5","ry","5"],["ngx-rect","","width","20","height","10","y","15","x","170","rx","5","ry","5"],["ngx-rect","","width","100","height","10","y","35","x","9","rx","5","ry","5"],["ngx-rect","","width","120","height","10","y","35","x","120","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","5","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","105","rx","5","ry","5"],["ngx-rect","","width","70","height","10","y","55","x","205","rx","5","ry","5"],["ngx-rect","","width","30","height","10","y","75","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5),a.zc(6,"g",6),a.zc(7,"g",7),a.zc(8,"g",8))},directives:[GA],encapsulation:2,changeDetection:0}),MA),XA=((IA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||IA)},IA.\u0275cmp=a.sc({type:IA,selectors:[["","ngx-bullet-list-preset",""]],attrs:OA,decls:8,vars:0,consts:[["ngx-circle","","cx","7","cy","7","r","7"],["ngx-circle","","cx","7","cy","37","r","7"],["ngx-circle","","cx","7","cy","67","r","7"],["ngx-circle","","cx","7","cy","97","r","7"],["ngx-rect","","width","200","height","12","y","2","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","32","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","62","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","92","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5),a.zc(6,"g",6),a.zc(7,"g",7))},directives:[$A,GA],encapsulation:2,changeDetection:0}),IA),ZA=((TA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||TA)},TA.\u0275cmp=a.sc({type:TA,selectors:[["","ngx-list-preset",""]],attrs:DA,decls:6,vars:0,consts:[["ngx-rect","","width","200","height","10","y","0","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","20","x","20","rx","5","ry","5"],["ngx-rect","","width","160","height","10","y","40","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","10","y","60","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","80","x","20","rx","5","ry","5"],["ngx-rect","","width","60","height","10","y","100","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Tc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5))},directives:[GA],encapsulation:2,changeDetection:0}),TA),JA=((RA=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:RA}),RA.\u0275inj=a.vc({factory:function(t){return new(t||RA)},imports:[[_e.c]]}),RA);function tP(t,e){if(1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,HA),a.Ac(),a.vd(3),a.Cc()),2&t){var n=a.Uc();a.kc(3),a.xd("\xa0",n.count,"")}}function eP(t,e){1&t&&(a.Dc(0,"span"),a.Dc(1,"ngx-content-loading",14),a.Tc(),a.zc(2,"g",15),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.ad("width",500)("height",360))}function nP(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,eP,3,2,"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 iP(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",16),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 aP(t,e){if(1&t&&(a.Dc(0,"button",17),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 rP(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,qA),a.Ac(),a.Cc()}}BA=$localize(_templateObject122()),VA=$localize(_templateObject123()),UA=$localize(_templateObject124()),HA=$localize(_templateObject125()),qA=$localize(_templateObject126());var oP,sP=((oP=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.name,this.isAudio,e).subscribe((function(e){!0===e?(t.openSnackBar("Delete success!","OK."),t.removeFile.emit(t.name)):t.openSnackBar("Delete failed!","OK.")}))}},{key:"openVideoInfoDialog",value:function(){this.dialog.open(HE,{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||oP)(a.yc(zw),a.yc(m_),a.yc(TE),a.yc(md))},oP.\u0275cmp=a.sc({type:oP,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",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"],[3,"width","height"],["ngx-rect","","width","500","height","360","y","0","x","0","rx","4","ry","4"],["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)})),a.vd(6),a.Cc(),a.Cc(),a.Cc(),a.Dc(7,"span",4),a.Bc(8),a.Hc(9,BA),a.Ac(),a.vd(10),a.Cc(),a.td(11,tP,4,1,"div",5),a.Cc(),a.td(12,nP,3,4,"div",6),a.Cc(),a.td(13,iP,3,0,"button",7),a.td(14,aP,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,VA),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,UA),a.Ac(),a.Cc(),a.td(27,rP,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:[Al,_e.t,yg,dg,np,gA,EA,GA,Ga,Cg],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}}"]}),oP);function lP(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 cP,uP=((cP=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||cP)(a.yc(cd),a.yc(ud))},cP.\u0275cmp=a.sc({type:cP,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,lP,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:[vd,yd,Rh,pp,ur,_r,Go,_d,Ga,gd,_e.t,bv],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),cP),hP=["*"],dP=["volumeBar"],fP=function(t){return{dragging:t}};function mP(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 pP(t,e){1&t&&a.zc(0,"span",2)}function gP(t,e){1&t&&(a.Dc(0,"span"),a.vd(1,"LIVE"),a.Cc())}function vP(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 yP(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 _P(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 bP,kP,CP,wP,xP,SP,OP,DP,EP,AP,PP,RP,TP,IP,MP,jP,LP,FP,NP,zP,BP,VP,UP,HP,qP,GP,YP,WP,QP,$P,KP=((QP=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||QP)},QP.\u0275prov=a.uc({token:QP,factory:QP.\u0275fac}),QP.VG_ENDED="ended",QP.VG_PAUSED="paused",QP.VG_PLAYING="playing",QP.VG_LOADING="waiting",QP),XP=((WP=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=KP.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||WP)},WP.\u0275prov=a.uc({token:WP,factory:WP.\u0275fac}),WP),ZP=((YP=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||YP)(a.yc(a.q),a.yc(XP))},YP.\u0275cmp=a.sc({type:YP,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}),YP),JP=((GP=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:GP}),GP.\u0275inj=a.vc({factory:function(t){return new(t||GP)},imports:[[_e.c]]}),GP),tR=((qP=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||qP)},qP.\u0275prov=a.uc({token:qP,factory:qP.\u0275fac}),qP),eR=((HP=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$=Kl(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=Kl(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===KP.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||HP)(a.yc(XP),a.yc(a.q),a.yc(tR))},HP.\u0275cmp=a.sc({type:HP,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:hP,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}),HP),nR=((UP=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||UP)},UP.\u0275prov=Object(a.uc)({factory:function(){return new UP},token:UP,providedIn:"root"}),UP),iR=((VP=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(nR.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=Kl(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&&(nR.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||nR.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||VP)},VP.\u0275prov=a.uc({token:VP,factory:VP.\u0275fac}),VP),aR=((BP=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 XP&&(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||BP)(a.yc(a.q),a.yc(XP),a.yc(iR))},BP.\u0275cmp=a.sc({type:BP,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}),BP),rR=((zP=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||zP)(a.yc(a.q),a.yc(XP))},zP.\u0275cmp=a.sc({type:zP,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}),zP),oR=((NP=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||NP)(a.yc(a.q),a.yc(XP))},NP.\u0275cmp=a.sc({type:NP,selectors:[["vg-volume"]],viewQuery:function(t,e){var n;1&t&&a.rd(dP,!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,fP,e.isDragging)),a.kc(1),a.sd("width",85*e.getVolume()+"%"),a.kc(1),a.sd("left",85*e.getVolume()+"%"))},directives:[_e.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}),NP),sR=((FP=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.ariaValue=KP.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 KP.VG_PLAYING:this.target.pause();break;case KP.VG_PAUSED:case KP.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){return this.ariaValue=this.target?this.target.state:KP.VG_PAUSED,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||FP)(a.yc(a.q),a.yc(XP))},FP.\u0275cmp=a.sc({type:FP,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}),FP),lR=((LP=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 XP?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||LP)(a.yc(a.q),a.yc(XP))},LP.\u0275cmp=a.sc({type:LP,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}),LP),cR=((jP=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===KP.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||jP)(a.yc(a.q),a.yc(XP),a.yc(tR))},jP.\u0275cmp=a.sc({type:jP,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:hP,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}),jP),uR=((MP=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||MP)(a.yc(a.q),a.yc(XP))},MP.\u0275cmp=a.sc({type:MP,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}),MP),hR=((IP=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||IP)(a.yc(a.q),a.yc(XP))},IP.\u0275cmp=a.sc({type:IP,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,mP,1,4,"span",1),a.Cc()),2&t&&(a.kc(1),a.ad("ngForOf",e.cuePoints))},directives:[_e.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}),IP),dR=((TP=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||TP)(a.yc(a.q),a.yc(XP))},TP.\u0275cmp=a.sc({type:TP,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,pP,1,0,"span",1)),2&t&&(a.sd("width",e.getPercentage()),a.kc(1),a.ad("ngIf",e.vgSlider))},directives:[_e.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}),TP),fR=((RP=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||RP)},RP.\u0275pipe=a.xc({name:"vgUtc",type:RP,pure:!0}),RP),mR=((PP=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||PP)(a.yc(a.q),a.yc(XP))},PP.\u0275cmp=a.sc({type:PP,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:hP,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(a.Zc(),a.td(0,gP,2,0,"span",0),a.td(1,vP,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:[_e.t],pipes:[fR],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}),PP),pR=((AP=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||AP)(a.yc(a.q),a.yc(XP))},AP.\u0275cmp=a.sc({type:AP,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,yP,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:[_e.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}),AP),gR=((EP=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||EP)(a.yc(a.q),a.yc(XP))},EP.\u0275cmp=a.sc({type:EP,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,_P,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:[_e.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}),EP),vR=((DP=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:DP}),DP.\u0275inj=a.vc({factory:function(t){return new(t||DP)},providers:[tR],imports:[[_e.c]]}),DP),yR=((OP=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||OP)},OP.\u0275prov=a.uc({token:OP,factory:OP.\u0275fac}),OP.VG_ABORT="abort",OP.VG_CAN_PLAY="canplay",OP.VG_CAN_PLAY_THROUGH="canplaythrough",OP.VG_DURATION_CHANGE="durationchange",OP.VG_EMPTIED="emptied",OP.VG_ENCRYPTED="encrypted",OP.VG_ENDED="ended",OP.VG_ERROR="error",OP.VG_LOADED_DATA="loadeddata",OP.VG_LOADED_METADATA="loadedmetadata",OP.VG_LOAD_START="loadstart",OP.VG_PAUSE="pause",OP.VG_PLAY="play",OP.VG_PLAYING="playing",OP.VG_PROGRESS="progress",OP.VG_RATE_CHANGE="ratechange",OP.VG_SEEK="seek",OP.VG_SEEKED="seeked",OP.VG_SEEKING="seeking",OP.VG_STALLED="stalled",OP.VG_SUSPEND="suspend",OP.VG_TIME_UPDATE="timeupdate",OP.VG_VOLUME_CHANGE="volumechange",OP.VG_WAITING="waiting",OP.VG_LOAD="load",OP.VG_ENTER="enter",OP.VG_EXIT="exit",OP.VG_START_ADS="startads",OP.VG_END_ADS="endads",OP),_R=((SP=function(){function t(e,n){_classCallCheck(this,t),this.api=e,this.ref=n,this.state=KP.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:Kl(this.elem,yR.VG_ABORT),canPlay:Kl(this.elem,yR.VG_CAN_PLAY),canPlayThrough:Kl(this.elem,yR.VG_CAN_PLAY_THROUGH),durationChange:Kl(this.elem,yR.VG_DURATION_CHANGE),emptied:Kl(this.elem,yR.VG_EMPTIED),encrypted:Kl(this.elem,yR.VG_ENCRYPTED),ended:Kl(this.elem,yR.VG_ENDED),error:Kl(this.elem,yR.VG_ERROR),loadedData:Kl(this.elem,yR.VG_LOADED_DATA),loadedMetadata:Kl(this.elem,yR.VG_LOADED_METADATA),loadStart:Kl(this.elem,yR.VG_LOAD_START),pause:Kl(this.elem,yR.VG_PAUSE),play:Kl(this.elem,yR.VG_PLAY),playing:Kl(this.elem,yR.VG_PLAYING),progress:Kl(this.elem,yR.VG_PROGRESS),rateChange:Kl(this.elem,yR.VG_RATE_CHANGE),seeked:Kl(this.elem,yR.VG_SEEKED),seeking:Kl(this.elem,yR.VG_SEEKING),stalled:Kl(this.elem,yR.VG_STALLED),suspend:Kl(this.elem,yR.VG_SUSPEND),timeUpdate:Kl(this.elem,yR.VG_TIME_UPDATE),volumeChange:Kl(this.elem,yR.VG_VOLUME_CHANGE),waiting:Kl(this.elem,yR.VG_WAITING),startAds:Kl(this.elem,yR.VG_START_ADS),endAds:Kl(this.elem,yR.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=Og(e).pipe(Object(rn.a)((function(){for(var e=arguments.length,n=new Array(e),i=0;i.3?(t.playAtferSync=t.state===KP.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!==KP.VG_PAUSED&&this.state!==KP.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=KP.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=KP.VG_ENDED,this.ref.detectChanges()}},{key:"onStartPlaying",value:function(t){this.state=KP.VG_PLAYING,this.ref.detectChanges()}},{key:"onPlay",value:function(t){this.state=KP.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}},{key:"onPause",value:function(t){this.state=KP.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=fc(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||SP)(a.yc(XP),a.yc(a.j))},SP.\u0275dir=a.tc({type:SP,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),SP),bR=((xP=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$=Kl(this.ref.nativeElement,yR.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)}}$P=$localize(_templateObject127());var MR,jR,LR=((MR=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.currentIndex=0,this.currentItem=null,this.id=null,this.subscriptionName=null,this.subPlaylist=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=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.fileNames=this.route.snapshot.paramMap.get("fileNames").split("|nvr|"),this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),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;var i=null;"audio"===t.type?i="audio/mp3":"video"===t.type?i="video/mp4":"subscription"===t.type?i="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'.");for(var a=0;a0)},directives:[_e.t,_e.q,kR,_R,ll,vb,_e.s,ul,ub,Ga,np,bv],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:80%} .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:absolute;bottom:25px}.favorite-button[_ngcontent-%COMP%]{left:25px;position:absolute;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px}.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}"]}),MR);jR=$localize(_templateObject128());var FR,NR=["placeholder",$localize(_templateObject129())];FR=$localize(_templateObject130());var zR,BR,VR,UR,HR=["placeholder",$localize(_templateObject131())];function qR(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 GR(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",3),a.Bc(1),a.Hc(2,UR),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,qR,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 YR(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))}zR=$localize(_templateObject132()),BR=$localize(_templateObject133()),VR=$localize(_templateObject134()),UR=$localize(_templateObject135());var WR,QR,$R,KR,XR,ZR,JR,tT,eT=((WR=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.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).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||WR)(a.yc(zw),a.yc(m_),a.yc(cd))},WR.\u0275cmp=a.sc({type:WR,selectors:[["app-subscribe-dialog"]],decls:31,vars:6,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,jR),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,NR),a.Qc("ngModelChange",(function(t){return e.url=t})),a.Cc(),a.Dc(9,"mat-hint"),a.Bc(10),a.Hc(11,FR),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,HR),a.Qc("ngModelChange",(function(t){return e.name=t})),a.Cc(),a.Dc(16,"mat-hint"),a.Bc(17),a.Hc(18,zR),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,BR),a.Ac(),a.Cc(),a.Cc(),a.td(23,GR,7,3,"div",9),a.Cc(),a.Cc(),a.Cc(),a.Dc(24,"mat-dialog-actions"),a.Dc(25,"button",10),a.Bc(26),a.Hc(27,VR),a.Ac(),a.Cc(),a.Dc(28,"button",11),a.Qc("click",(function(){return e.subscribeClicked()})),a.vd(29,"Subscribe"),a.Cc(),a.td(30,YR,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(5),a.ad("disabled",!e.url),a.kc(2),a.ad("ngIf",e.subscribing))},directives:[vd,yd,Rh,pp,ur,Bs,_r,Go,wh,Ul,_e.t,_d,Ga,gd,Lr,Jv,_e.s,Ra,bv],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),WR);function nT(t,e){if(1&t&&(a.Dc(0,"div",1),a.Dc(1,"strong"),a.Bc(2),a.Hc(3,tT),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)}}QR=$localize(_templateObject136()),$R=$localize(_templateObject137()),KR=$localize(_templateObject138()),XR=$localize(_templateObject139()),ZR=$localize(_templateObject140()),JR=$localize(_templateObject141()),tT=$localize(_templateObject142());var iT,aT,rT,oT,sT,lT,cT,uT,hT=((iT=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||iT)(a.yc(cd),a.yc(ud),a.yc(zw))},iT.\u0275cmp=a.sc({type:iT,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,QR),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,$R),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,KR),a.Ac(),a.vd(21,"\xa0"),a.Cc(),a.Dc(22,"span",2),a.vd(23),a.Cc(),a.Cc(),a.td(24,nT,7,1,"div",3),a.Cc(),a.Dc(25,"mat-dialog-actions"),a.Dc(26,"button",4),a.Bc(27),a.Hc(28,XR),a.Ac(),a.Cc(),a.Dc(29,"button",5),a.Qc("click",(function(){return e.downloadArchive()})),a.Bc(30),a.Hc(31,ZR),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,JR),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:[vd,yd,_e.t,_d,Ga,gd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),iT);function dT(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 fT(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,sT),a.Ac(),a.Cc())}function mT(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,dT,2,1,"strong",10),a.td(3,fT,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 pT(t,e){1&t&&(a.Dc(0,"div",12),a.Dc(1,"p"),a.Hc(2,lT),a.Cc(),a.Cc())}function gT(t,e){1&t&&(a.Dc(0,"div",14),a.Bc(1),a.Hc(2,cT),a.Ac(),a.Cc())}function vT(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,gT,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 yT(t,e){1&t&&(a.Dc(0,"div",12),a.Dc(1,"p"),a.Hc(2,uT),a.Cc(),a.Cc())}function _T(t,e){1&t&&(a.Dc(0,"div",15),a.zc(1,"mat-progress-bar",16),a.Cc())}aT=$localize(_templateObject143()),rT=$localize(_templateObject144()),oT=$localize(_templateObject145()),sT=$localize(_templateObject146()),lT=$localize(_templateObject147()),cT=$localize(_templateObject148()),uT=$localize(_templateObject149());var bT,kT,CT,wT,xT,ST=((bT=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||bT)(a.yc(md),a.yc(zw),a.yc(ow),a.yc(m_))},bT.\u0275cmp=a.sc({type:bT,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,aT),a.Cc(),a.zc(3,"mat-divider",1),a.zc(4,"br"),a.Dc(5,"h4",2),a.Hc(6,rT),a.Cc(),a.Dc(7,"mat-nav-list",3),a.td(8,mT,7,2,"mat-list-item",4),a.Cc(),a.td(9,pT,3,0,"div",5),a.Dc(10,"h4",6),a.Hc(11,oT),a.Cc(),a.Dc(12,"mat-nav-list",3),a.td(13,vT,8,2,"mat-list-item",4),a.Cc(),a.td(14,yT,3,0,"div",5),a.td(15,_T,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:[vp,Fp,_e.s,_e.t,Ga,np,Hp,aa,iv],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%}"]}),bT);function OT(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,xT),a.Ac(),a.Cc()}}function DT(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)}}kT=$localize(_templateObject150()),CT=$localize(_templateObject151()),wT=$localize(_templateObject152()),xT=$localize(_templateObject153());var ET,AT,PT=((ET=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(this.file.id)}},{key:"openSubscriptionInfoDialog",value:function(){this.dialog.open(HE,{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||ET)(a.yc(m_),a.yc(zw),a.yc(md))},ET.\u0275cmp=a.sc({type:ET,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,kT),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,CT),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,wT),a.Ac(),a.Cc(),a.td(20,OT,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,DT,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:[Ga,Cg,np,yg,dg,_e.t,Al,ba],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}}"]}),ET);function RT(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," ")}}AT=$localize(_templateObject154());var TT=["placeholder",$localize(_templateObject155())];function IT(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 MT(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 jT(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,IT,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,AT),a.Cc(),a.Cc(),a.Dc(15,"div",18),a.Dc(16,"mat-form-field",19),a.Dc(17,"input",20),a.Jc(18,TT),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,MT,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 LT(t,e){1&t&&a.zc(0,"mat-spinner",28),2&t&&a.ad("diameter",50)}var FT,NT,zT,BT=((FT=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){localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:t,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;ns)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,l=p,a=d;var v=(1e4*(268435455&(m+=122192928e5))+p)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var y=m/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var _=0;_<6;++_)u[c+_]=h[_];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,h,d,f,m,p,g,v,y,_=1