diff --git a/pom.xml b/pom.xml index 3c44277..c198dae 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.openvidu classroom-demo - 2.23.0 + 2.24.0 war classroom-demo diff --git a/src/angular/frontend/package-lock.json b/src/angular/frontend/package-lock.json index 89bdeb6..0168070 100644 --- a/src/angular/frontend/package-lock.json +++ b/src/angular/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "openvidu-classroom-demo", - "version": "2.23.0", + "version": "2.24.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openvidu-classroom-demo", - "version": "2.23.0", + "version": "2.24.0", "license": "Apache-2.0", "dependencies": { "@angular/animations": "13.2.5", @@ -20,7 +20,7 @@ "@angular/platform-browser": "13.2.5", "@angular/platform-browser-dynamic": "13.2.5", "@angular/router": "13.2.5", - "openvidu-browser": "2.23.0", + "openvidu-browser": "2.24.0", "rxjs": "7.5.4", "zone.js": "0.11.5" }, @@ -7771,9 +7771,9 @@ } }, "node_modules/openvidu-browser": { - "version": "2.23.0", - "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.23.0.tgz", - "integrity": "sha512-qiErP48E09ly7wVgbDvOFTTFz2yF6IB3bYqoPcq+FYbkTMpkq1pLeLdXgQx+tg4O9uPtuMjWVwbKaWpa4TUHLA==", + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.24.0.tgz", + "integrity": "sha512-aE0ZvQhw4vDnaj2+NAu5W8f5oCkgrNCAB3XQW3czhnZFkhrlVN3lv909QzekiqldWFhYQ1mS9XEq7O2HA/OxCw==", "dependencies": { "events": "3.3.0", "freeice": "2.2.2", @@ -16591,9 +16591,9 @@ } }, "openvidu-browser": { - "version": "2.23.0", - "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.23.0.tgz", - "integrity": "sha512-qiErP48E09ly7wVgbDvOFTTFz2yF6IB3bYqoPcq+FYbkTMpkq1pLeLdXgQx+tg4O9uPtuMjWVwbKaWpa4TUHLA==", + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.24.0.tgz", + "integrity": "sha512-aE0ZvQhw4vDnaj2+NAu5W8f5oCkgrNCAB3XQW3czhnZFkhrlVN3lv909QzekiqldWFhYQ1mS9XEq7O2HA/OxCw==", "requires": { "events": "3.3.0", "freeice": "2.2.2", diff --git a/src/angular/frontend/package.json b/src/angular/frontend/package.json index 02650c4..5627819 100644 --- a/src/angular/frontend/package.json +++ b/src/angular/frontend/package.json @@ -36,5 +36,5 @@ "start": "ng serve", "test": "ng test" }, - "version": "2.23.0" + "version": "2.24.0" } \ No newline at end of file diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index a52f480..36fba91 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -14,7 +14,7 @@
- + \ No newline at end of file diff --git a/src/main/resources/static/main.4ba77dbda96acfe5.js b/src/main/resources/static/main.4ba77dbda96acfe5.js new file mode 100644 index 0000000..c47504b --- /dev/null +++ b/src/main/resources/static/main.4ba77dbda96acfe5.js @@ -0,0 +1 @@ +(self.webpackChunkopenvidu_sample_app=self.webpackChunkopenvidu_sample_app||[]).push([[179],{5247:function(_e,U,B){"use strict";function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function z(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&null!==(e=I(e)););return e}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(r,t,n){var i=z(r,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},O.apply(this,arguments)}function R(e,r){for(var t=0;te.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var l=t.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function H(e){if(Array.isArray(e))return e}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function W(e,r){return H(e)||function S(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,n=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(o=t.next()).done)&&(n.push(o.value),!r||n.length!==r);i=!0);}catch(u){a=!0,s=u}finally{try{!i&&null!=t.return&&t.return()}finally{if(a)throw s}}return n}}(e,r)||ie(e,r)||G()}function D(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){return function $(e){if(Array.isArray(e))return V(e)}(e)||y(e)||ie(e)||function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,r,t){return(Q=k()?Reflect.construct:function(i,a,o){var s=[null];s.push.apply(s,a);var l=new(Function.bind.apply(i,s));return o&&L(l,o.prototype),l}).apply(null,arguments)}function oe(e){var r="function"==typeof Map?new Map:void 0;return oe=function(n){if(null===n||!function X(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return Q(n,arguments,I(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),L(i,n)},oe(e)}function g(e){return"function"==typeof e}function P(e){var t=e(function(i){Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var x=P(function(e){return function(t){e(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(n,i){return"".concat(i+1,") ").concat(n.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function m(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var e,E=function(){function e(r){d(this,e),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return f(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n)){var a,i=K(n);try{for(i.s();!(a=i.n()).done;)a.value.remove(this)}catch(v){i.e(v)}finally{i.f()}}else n.remove(this);var s=this.initialTeardown;if(g(s))try{s()}catch(v){t=v instanceof x?v.errors:[v]}var u=this._teardowns;if(u){this._teardowns=null;var c,l=K(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;try{J(h)}catch(v){t=null!=t?t:[],v instanceof x?t=[].concat(C(t),C(v.errors)):t.push(v)}}}catch(v){l.e(v)}finally{l.f()}}if(t)throw new x(t)}}},{key:"add",value:function(t){var n;if(t&&t!==this)if(this.closed)J(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}}},{key:"_hasParent",value:function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)}},{key:"_addParent",value:function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}},{key:"_removeParent",value:function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&m(n,t)}},{key:"remove",value:function(t){var n=this._teardowns;n&&m(n,t),t instanceof e&&t._removeParent(this)}}]),e}();E.EMPTY=((e=new E).closed=!0,e);var N=E.EMPTY;function ae(e){return e instanceof E||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function J(e){g(e)?e():e.unsubscribe()}var ke={setTimeout:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=ke.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,arguments)}),clearTimeout:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=ke.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)}),delegate:void 0};function De(e){ke.setTimeout(function(){throw e})}function Oe(){}var Le=le("C",void 0,void 0);function le(e,r,t){return{kind:e,value:r,error:t}}function Ve(e){e()}var se=function(e){p(t,e);var r=b(t);function t(n){var i;return d(this,t),(i=r.call(this)).isStopped=!1,n?(i.destination=n,ae(n)&&n.add(q(i))):i.destination=Mt,i}return f(t,[{key:"next",value:function(i){this.isStopped?xe(function We(e){return le("N",e,void 0)}(i),this):this._next(i)}},{key:"error",value:function(i){this.isStopped?xe(function Ke(e){return le("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}},{key:"complete",value:function(){this.isStopped?xe(Le,this):(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,O(I(t.prototype),"unsubscribe",this).call(this),this.destination=null)}},{key:"_next",value:function(i){this.destination.next(i)}},{key:"_error",value:function(i){try{this.destination.error(i)}finally{this.unsubscribe()}}},{key:"_complete",value:function(){try{this.destination.complete()}finally{this.unsubscribe()}}}],[{key:"create",value:function(i,a,o){return new re(i,a,o)}}]),t}(E);var fe=function(){function e(r){d(this,e),this.partialObserver=r}return f(e,[{key:"next",value:function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){pe(i)}}},{key:"error",value:function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){pe(i)}else pe(t)}},{key:"complete",value:function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){pe(n)}}}]),e}(),re=function(e){p(t,e);var r=b(t);function t(n,i,a){var o,s;return d(this,t),o=r.call(this),g(n)||!n?s={next:null!=n?n:void 0,error:null!=i?i:void 0,complete:null!=a?a:void 0}:(q(o),s=n),o.destination=new fe(s),o}return f(t)}(se);function pe(e){De(e)}function xe(e,r){var t=null;t&&ke.setTimeout(function(){return t(e,r)})}var Mt={closed:!0,next:Oe,error:function Ce(e){throw e},complete:Oe},gn="function"==typeof Symbol&&Symbol.observable||"@@observable";function en(e){return e}function On(e){return 0===e.length?en:1===e.length?e[0]:function(t){return e.reduce(function(n,i){return i(n)},t)}}var ct=function(){var e=function(){function r(t){d(this,r),t&&(this._subscribe=t)}return f(r,[{key:"lift",value:function(n){var i=new r;return i.source=this,i.operator=n,i}},{key:"subscribe",value:function(n,i,a){var o=this,s=function un(e){return e&&e instanceof se||function sn(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}(e)&&ae(e)}(n)?n:new re(n,i,a);return Ve(function(){var u=o.operator,l=o.source;s.add(u?u.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s}},{key:"_trySubscribe",value:function(n){try{return this._subscribe(n)}catch(i){n.error(i)}}},{key:"forEach",value:function(n,i){var a=this;return new(i=Cr(i))(function(o,s){var u=new re({next:function(c){try{n(c)}catch(h){s(h),u.unsubscribe()}},error:s,complete:o});a.subscribe(u)})}},{key:"_subscribe",value:function(n){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(n)}},{key:gn,value:function(){return this}},{key:"pipe",value:function(){for(var n=arguments.length,i=new Array(n),a=0;a0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),O(I(n.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var u=this.observers;return this.hasError||this.isStopped?N:(u.push(a),new E(function(){return m(u,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var u=this.isStopped;this.hasError?a.error(this.thrownError):u&&a.complete()}},{key:"asObservable",value:function(){var a=new ct;return a.source=this,a}}]),n}(ct);return e.create=function(r,t){return new Rn(r,t)},e}(),Rn=function(e){p(t,e);var r=b(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).destination=n,a.source=i,a}return f(t,[{key:"next",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,i)}},{key:"error",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,i)}},{key:"complete",value:function(){var i,a;null===(a=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===a||a.call(i)}},{key:"_subscribe",value:function(i){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(i))&&void 0!==o?o:N}}]),t}(Fe);function fa(e){return g(null==e?void 0:e.lift)}function Yt(e){return function(r){if(fa(r))return r.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function zt(e,r,t,n,i){return new ux(e,r,t,n,i)}var ux=function(e){p(t,e);var r=b(t);function t(n,i,a,o,s,u){var l,c,h,v;return d(this,t),(v=r.call(this,n)).onFinalize=s,v.shouldUnsubscribe=u,v._next=i?function(_){try{i(_)}catch(F){n.error(F)}}:O((l=q(v),I(t.prototype)),"_next",l),v._error=o?function(_){try{o(_)}catch(F){n.error(F)}finally{this.unsubscribe()}}:O((c=q(v),I(t.prototype)),"_error",c),v._complete=a?function(){try{a()}catch(_){n.error(_)}finally{this.unsubscribe()}}:O((h=q(v),I(t.prototype)),"_complete",h),v}return f(t,[{key:"unsubscribe",value:function(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;O(I(t.prototype),"unsubscribe",this).call(this),!a&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}]),t}(se);function Xe(e,r){return Yt(function(t,n){var i=0;t.subscribe(zt(n,function(a){n.next(e.call(r,a,i++))}))})}var lx=B(7757),Ju=B.n(lx);function ha(e){return this instanceof ha?(this.v=e,this):new ha(e)}function fx(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=t.apply(e,r||[]),a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(_){return new Promise(function(F,Y){a.push([v,_,F,Y])>1||s(v,_)})})}function s(v,_){try{!function u(v){v.value instanceof ha?Promise.resolve(v.value.v).then(l,c):h(a[0][2],v)}(n[v](_))}catch(F){h(a[0][3],F)}}function l(v){s("next",v)}function c(v){s("throw",v)}function h(v,_){v(_),a.shift(),a.length&&s(a[0][0],a[0][1])}}function hx(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function tm(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(s,u){!function i(a,o,s,u){Promise.resolve(u).then(function(l){a({value:l,done:s})},o)}(s,u,(o=e[a](o)).done,o.value)})}}}var Ld=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function nm(e){return g(null==e?void 0:e.then)}function rm(e){return g(e[gn])}function im(e){return Symbol.asyncIterator&&g(null==e?void 0:e[Symbol.asyncIterator])}function am(e){return new TypeError("You provided ".concat(null!==e&&"object"==typeof e?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var om=function px(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sm(e){return g(null==e?void 0:e[om])}function um(e){return fx(this,arguments,Ju().mark(function r(){var t,n,i;return Ju().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=e.getReader(),s.prev=1;case 2:return s.next=5,ha(t.read());case 5:if(i=(n=s.sent).value,!n.done){s.next=12;break}return s.next=11,ha(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,ha(i);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function lm(e){return g(null==e?void 0:e.getReader)}function or(e){if(e instanceof ct)return e;if(null!=e){if(rm(e))return function gx(e){return new ct(function(r){var t=e[gn]();if(g(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ld(e))return function mx(e){return new ct(function(r){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}function Ex(e,r,t,n,i,a,o,s){var u=[],l=0,c=0,h=!1,v=function(){h&&!u.length&&!l&&r.complete()},_=function(ne){return l2&&void 0!==arguments[2]?arguments[2]:1/0;return g(r)?Sn(function(n,i){return Xe(function(a,o){return r(n,a,i,o)})(or(e(n,i)))},t):("number"==typeof r&&(t=r),Yt(function(n,i){return Ex(n,i,e,t)}))}function hs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Sn(en,e)}var ri=new ct(function(e){return e.complete()});function dm(e){return e&&g(e.schedule)}function Nd(e){return e[e.length-1]}function fm(e){return g(Nd(e))?e.pop():void 0}function vs(e){return dm(Nd(e))?e.pop():void 0}function kx(e,r){return"number"==typeof Nd(e)?e.pop():r}function hm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yt(function(t,n){t.subscribe(zt(n,function(i){return Ci(n,e,function(){return n.next(i)},r)},function(){return Ci(n,e,function(){return n.complete()},r)},function(i){return Ci(n,e,function(){return n.error(i)},r)}))})}function vm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yt(function(t,n){n.add(e.schedule(function(){return t.subscribe(n)},r))})}function pm(e,r){if(!e)throw new Error("Iterable cannot be null");return new ct(function(t){Ci(t,r,function(){var n=e[Symbol.asyncIterator]();Ci(t,r,function(){n.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function In(e,r){return r?function Tx(e,r){if(null!=e){if(rm(e))return function Sx(e,r){return or(e).pipe(vm(r),hm(r))}(e,r);if(Ld(e))return function Ax(e,r){return new ct(function(t){var n=0;return r.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}(e,r);if(nm(e))return function Dx(e,r){return or(e).pipe(vm(r),hm(r))}(e,r);if(im(e))return pm(e,r);if(sm(e))return function xx(e,r){return new ct(function(t){var n;return Ci(t,r,function(){n=e[om](),Ci(t,r,function(){var i,a;try{var o=n.next();i=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(i)},0,!0)}),function(){return g(null==n?void 0:n.return)&&n.return()}})}(e,r);if(lm(e))return function Mx(e,r){return pm(um(e),r)}(e,r)}throw am(e)}(e,r):or(e)}function Qa(){for(var e=arguments.length,r=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=e.connector,t=void 0===r?function(){return new Fe}:r,n=e.resetOnError,i=void 0===n||n,a=e.resetOnComplete,o=void 0===a||a,s=e.resetOnRefCountZero,u=void 0===s||s;return function(l){var c=null,h=null,v=null,_=0,F=!1,Y=!1,ne=function(){null==h||h.unsubscribe(),h=null},ce=function(){ne(),c=v=null,F=Y=!1},ee=function(){var be=c;ce(),null==be||be.unsubscribe()};return Yt(function(ye,be){_++,!Y&&!F&&ne();var Te=v=null!=v?v:t();be.add(function(){0==--_&&!Y&&!F&&(h=Vd(ee,u))}),Te.subscribe(be),c||(c=new re({next:function(qe){return Te.next(qe)},error:function(qe){Y=!0,ne(),h=Vd(ce,i,qe),Te.error(qe)},complete:function(){F=!0,ne(),h=Vd(ce,o),Te.complete()}}),In(ye).subscribe(c))})(l)}}function Vd(e,r){if(!0===r)return e(),null;if(!1===r)return null;for(var t=arguments.length,n=new Array(t>2?t-2:0),i=2;i ".concat(t," ").concat(n," ").concat(r," <=Actual]")))}(r,e,null,"!=")}function Se(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ud(e){return ym(e,tl)||ym(e,bm)}function ym(e,r){return e.hasOwnProperty(r)?e[r]:null}function _m(e){return e&&(e.hasOwnProperty(Gd)||e.hasOwnProperty(Vx))?e[Gd]:null}var zd,tl=Vt({"\u0275prov":Vt}),Gd=Vt({"\u0275inj":Vt}),bm=Vt({ngInjectableDef:Vt}),Vx=Vt({ngInjectorDef:Vt}),tt=function(){return(tt=tt||{})[tt.Default=0]="Default",tt[tt.Host=1]="Host",tt[tt.Self=2]="Self",tt[tt.SkipSelf=4]="SkipSelf",tt[tt.Optional=8]="Optional",tt}();function Bx(){return zd}function zi(e){var r=zd;return zd=e,r}function Cm(e,r,t){var n=Ud(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&tt.Optional?null:void 0!==r?r:void el(Rt(e),"Injector")}function Wi(e){return{toString:e}.toString()}var Vr=function(){return(Vr=Vr||{})[Vr.OnPush=0]="OnPush",Vr[Vr.Default=1]="Default",Vr}(),Br=function(){return function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Br||(Br={})),Br}(),jx="undefined"!=typeof globalThis&&globalThis,Hx="undefined"!=typeof window&&window,Ux="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Gx="undefined"!=typeof global&&global,Lt=jx||Gx||Hx||Ux,Ya={},Bt=[],nl=Vt({"\u0275cmp":Vt}),Wd=Vt({"\u0275dir":Vt}),qd=Vt({"\u0275pipe":Vt}),Em=Vt({"\u0275mod":Vt}),wi=Vt({"\u0275fac":Vt}),ps=Vt({__NG_ELEMENT_ID__:Vt}),zx=0;function jt(e){return Wi(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Vr.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Bt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Br.Emulated,id:"c",styles:e.styles||Bt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,a=e.features,o=e.pipes;return n.id+=zx++,n.inputs=Dm(e.inputs,t),n.outputs=Dm(e.outputs),a&&a.forEach(function(s){return s(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(wm)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(km)}:null,n})}function wm(e){return Gn(e)||function qi(e){return e[Wd]||null}(e)}function km(e){return function va(e){return e[qd]||null}(e)}var Sm={};function gt(e){return Wi(function(){var r={type:e.type,bootstrap:e.bootstrap||Bt,declarations:e.declarations||Bt,imports:e.imports||Bt,exports:e.exports||Bt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Sm[e.id]=e.type),r})}function Dm(e,r){if(null==e)return Ya;var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),t[i]=n,r&&(r[i]=a)}return t}var Ee=jt;function Gn(e){return e[nl]||null}function Er(e,r){var t=e[Em]||null;if(!t&&!0===r)throw new Error("Type ".concat(Rt(e)," does not have '\u0275mod' property."));return t}function ii(e){return Array.isArray(e)&&"object"==typeof e[1]}function Hr(e){return Array.isArray(e)&&!0===e[1]}function Yd(e){return 0!=(8&e.flags)}function ol(e){return 2==(2&e.flags)}function sl(e){return 1==(1&e.flags)}function Ur(e){return null!==e.template}function $x(e){return 0!=(512&e[2])}function ya(e,r){return e.hasOwnProperty(wi)?e[wi]:null}var Jx=function(){function e(r,t,n){d(this,e),this.previousValue=r,this.currentValue=t,this.firstChange=n}return f(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Wn(){return xm}function xm(e){return e.type.prototype.ngOnChanges&&(e.setInput=tM),eM}function eM(){var e=Tm(this),r=null==e?void 0:e.current;if(r){var t=e.previous;if(t===Ya)e.previous=r;else for(var n in r)t[n]=r[n];e.current=null,this.ngOnChanges(r)}}function tM(e,r,t,n){var i=Tm(e)||function nM(e,r){return e[Mm]=r}(e,{previous:Ya,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[t],u=o[s];a[s]=new Jx(u&&u.currentValue,r,o===Ya),e[n]=r}Wn.ngInherit=!0;var Mm="__ngSimpleChanges__";function Tm(e){return e[Mm]||null}var ef=void 0;function tf(){return void 0!==ef?ef:"undefined"!=typeof document?document:void 0}function ln(e){return!!e.listen}var Om={createRenderer:function(r,t){return tf()}};function _n(e){for(;Array.isArray(e);)e=e[0];return e}function ul(e,r){return _n(r[e])}function Sr(e,r){return _n(r[e.index])}function nf(e,r){return e.data[r]}function cr(e,r){var t=r[e];return ii(t)?t:t[0]}function Rm(e){return 4==(4&e[2])}function rf(e){return 128==(128&e[2])}function Ki(e,r){return null==r?null:e[r]}function Im(e){e[18]=0}function af(e,r){e[5]+=r;for(var t=e,n=e[3];null!==n&&(1===r&&1===t[5]||-1===r&&0===t[5]);)n[5]+=r,t=n,n=n[3]}var nt={lFrame:Hm(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Pm(){return nt.bindingsEnabled}function Ae(){return nt.lFrame.lView}function St(){return nt.lFrame.tView}function yt(e){return nt.lFrame.contextLView=e,e[8]}function Dn(){for(var e=Fm();null!==e&&64===e.type;)e=e.parent;return e}function Fm(){return nt.lFrame.currentTNode}function ai(e,r){var t=nt.lFrame;t.currentTNode=e,t.isParent=r}function sf(){return nt.lFrame.isParent}function uf(){nt.lFrame.isParent=!1}function ll(){return nt.isInCheckNoChangesMode}function cl(e){nt.isInCheckNoChangesMode=e}function Xn(){var e=nt.lFrame,r=e.bindingRootIndex;return-1===r&&(r=e.bindingRootIndex=e.tView.bindingStartIndex),r}function to(){return nt.lFrame.bindingIndex++}function _M(e,r){var t=nt.lFrame;t.bindingIndex=t.bindingRootIndex=e,lf(r)}function lf(e){nt.lFrame.currentDirectiveIndex=e}function cf(e){var r=nt.lFrame.currentDirectiveIndex;return-1===r?null:e[r]}function Vm(){return nt.lFrame.currentQueryIndex}function df(e){nt.lFrame.currentQueryIndex=e}function CM(e){var r=e[1];return 2===r.type?r.declTNode:1===r.type?e[6]:null}function Bm(e,r,t){if(t&tt.SkipSelf){for(var n=r,i=e;!(null!==(n=n.parent)||t&tt.Host||null===(n=CM(i))||(i=i[15],10&n.type)););if(null===n)return!1;r=n,e=i}var a=nt.lFrame=jm();return a.currentTNode=r,a.lView=e,!0}function dl(e){var r=jm(),t=e[1];nt.lFrame=r,r.currentTNode=t.firstChild,r.lView=e,r.tView=t,r.contextLView=e,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function jm(){var e=nt.lFrame,r=null===e?null:e.child;return null===r?Hm(e):r}function Hm(e){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=r),r}function Um(){var e=nt.lFrame;return nt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Gm=Um;function fl(){var e=Um();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function EM(e){var r=nt.lFrame.contextLView=function wM(e,r){for(;e>0;)r=r[15],e--;return r}(e,nt.lFrame.contextLView);return r[8]}function Zn(){return nt.lFrame.selectedIndex}function Qi(e){nt.lFrame.selectedIndex=e}function cn(){var e=nt.lFrame;return nf(e.tView,e.selectedIndex)}function hl(e,r){for(var t=r.directiveStart,n=r.directiveEnd;t=n)break}else r[u]<0&&(e[18]+=65536),(s>11>16&&(3&e[2])===r){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var bs=f(function e(r,t,n){d(this,e),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n});function gl(e,r,t){for(var n=ln(e),i=0;ir){o=a-1;break}}}for(;a>16}(e),n=r;t>0;)n=n[15],t--;return n}var pf=!0;function yl(e){var r=pf;return pf=e,r}var FM=0;function Es(e,r){var t=mf(e,r);if(-1!==t)return t;var n=r[1];n.firstCreatePass&&(e.injectorIndex=r.length,gf(n.data,e),gf(r,null),gf(n.blueprint,null));var i=_l(e,r),a=e.injectorIndex;if(Ym(i))for(var o=no(i),s=ro(i,r),u=s[1].data,l=0;l<8;l++)r[a+l]=s[o+l]|u[o+l];return r[a+8]=i,a}function gf(e,r){e.push(0,0,0,0,0,0,0,0,r)}function mf(e,r){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===r[e.injectorIndex+8]?-1:e.injectorIndex}function _l(e,r){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,i=r;null!==i;){var a=i[1],o=a.type;if(null===(n=2===o?a.declTNode:1===o?i[6]:null))return-1;if(t++,i=i[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function bl(e,r,t){!function LM(e,r,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(ps)&&(n=t[ps]),null==n&&(n=t[ps]=FM++);var i=255&n;r.data[e+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:tt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=jM(t);if("function"==typeof a){if(!Bm(r,e,n))return n&tt.Host?Zm(i,t,n):Jm(r,t,n,i);try{var o=a(n);if(null!=o||n&tt.Optional)return o;el(t)}finally{Gm()}}else if("number"==typeof a){var s=null,u=mf(e,r),l=-1,c=n&tt.Host?r[16][6]:null;for((-1===u||n&tt.SkipSelf)&&(-1!==(l=-1===u?_l(e,r):r[u+8])&&ry(n,!1)?(s=r[1],u=no(l),r=ro(l,r)):u=-1);-1!==u;){var h=r[1];if(ny(a,u,h.data)){var v=BM(u,r,t,s,n,c);if(v!==ty)return v}-1!==(l=r[u+8])&&ry(n,r[1].data[u+8]===c)&&ny(a,u,r)?(s=h,u=no(l),r=ro(l,r)):u=-1}}}return Jm(r,t,n,i)}var ty={};function VM(){return new io(Dn(),Ae())}function BM(e,r,t,n,i,a){var o=r[1],s=o.data[e+8],c=Cl(s,o,t,null==n?ol(s)&&pf:n!=o&&0!=(3&s.type),i&tt.Host&&a===s);return null!==c?ws(r,o,c,s):ty}function Cl(e,r,t,n,i){for(var a=e.providerIndexes,o=r.data,s=1048575&a,u=e.directiveStart,c=a>>20,v=i?s+c:e.directiveEnd,_=n?s:s+c;_=u&&F.type===t)return _}if(i){var Y=o[u];if(Y&&Ur(Y)&&Y.type===t)return u}return null}function ws(e,r,t,n){var i=e[t],a=r.data;if(function MM(e){return e instanceof bs}(i)){var o=i;o.resolving&&function Rx(e,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(e):"";throw new Ue(-200,"Circular dependency in DI detected for ".concat(e).concat(t))}($n(a[t]));var s=yl(o.canSeeViewProviders);o.resolving=!0;var u=o.injectImpl?zi(o.injectImpl):null;Bm(e,n,tt.Default);try{i=e[t]=o.factory(void 0,a,e,n),r.firstCreatePass&&t>=n.directiveStart&&function AM(e,r,t){var n=r.type.prototype,a=n.ngOnInit,o=n.ngDoCheck;if(n.ngOnChanges){var s=xm(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,a[t],r)}finally{null!==u&&zi(u),yl(s),o.resolving=!1,Gm()}}return i}function jM(e){if("string"==typeof e)return e.charCodeAt(0)||0;var r=e.hasOwnProperty(ps)?e[ps]:void 0;return"number"==typeof r?r>=0?255&r:VM:r}function ny(e,r,t){return!!(t[r+(e>>5)]&1<=e.length?e.push(t):e.splice(r,0,t)}function El(e,r){return r>=e.length-1?e.pop():e.splice(r,1)[0]}function Ds(e,r){for(var t=[],n=0;n=0?e[1|n]=t:function WM(e,r,t,n){var i=e.length;if(i==r)e.push(t,n);else if(1===i)e.push(n,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>r;)e[i]=e[i-2],i--;e[r]=t,e[r+1]=n}}(e,n=~n,r,t),n}function Cf(e,r){var t=lo(e,r);if(t>=0)return e[1|t]}function lo(e,r){return function uy(e,r,t){for(var n=0,i=e.length>>t;i!==n;){var a=n+(i-n>>1),o=e[a<r?i=a:n=a+1}return~(i<1&&void 0!==arguments[1]?arguments[1]:tt.Default;if(void 0===xs){var t="";throw new Ue(203,t)}return null===xs?Cm(e,void 0,r):xs.get(e,r&tt.Optional?null:void 0,r)}function de(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt.Default;return(Bx()||nT)(dt(e),r)}var co=de;function kf(e){for(var r=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Rt(r);if(Array.isArray(r))i=r.map(Rt).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Rt(s)))}i="{".concat(a.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(i,"]: ").concat(e.replace(JM,"\n "))}("\n"+e.message,i,t,n),e.ngTokenPath=i,e[kl]=null,e}var Al,xl,Sl=Ms(uo("Inject",function(e){return{token:e}}),-1),Gr=Ms(uo("Optional"),8),fo=Ms(uo("SkipSelf"),4);function vo(e){var r;return(null===(r=function Df(){if(void 0===Al&&(Al=null,Lt.trustedTypes))try{Al=Lt.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return Al}())||void 0===r?void 0:r.createHTML(e))||e}function my(e){var r;return(null===(r=function Af(){if(void 0===xl&&(xl=null,Lt.trustedTypes))try{xl=Lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return xl}())||void 0===r?void 0:r.createHTML(e))||e}var _a=function(){function e(r){d(this,e),this.changingThisBreaksApplicationSecurity=r}return f(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),gT=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(_a),mT=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(_a),yT=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(_a),_T=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(_a),bT=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(_a);function fr(e){return e instanceof _a?e.changingThisBreaksApplicationSecurity:e}function si(e,r){var t=by(e);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function by(e){return e instanceof _a&&e.getTypeName()||null}var DT=function(){function e(r){d(this,e),this.inertDocumentHelper=r}return f(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(vo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(i){return null}}}]),e}(),AT=function(){function e(r){if(d(this,e),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return f(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=vo(t),n;var i=this.inertDocument.createElement("body");return i.innerHTML=vo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,i=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();xf.hasOwnProperty(n)&&!wy.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Ay(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),VT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BT=/([^\#-~ |!])/g;function Ay(e){return e.replace(/&/g,"&").replace(VT,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(BT,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function xy(e,r){var t=null;try{Ml=Ml||function Cy(e){var r=new AT(e);return function xT(){try{return!!(new window.DOMParser).parseFromString(vo(""),"text/html")}catch(e){return!1}}()?new DT(r):r}(e);var n=r?String(r):"";t=Ml.getInertBodyElement(n);var i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=t.innerHTML,t=Ml.getInertBodyElement(n)}while(n!==a);return vo((new NT).sanitizeChildren(Of(t)||t))}finally{if(t)for(var u=Of(t)||t;u.firstChild;)u.removeChild(u.firstChild)}}function Of(e){return"content"in e&&function jT(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xt=function(){return(xt=xt||{})[xt.NONE=0]="NONE",xt[xt.HTML=1]="HTML",xt[xt.STYLE=2]="STYLE",xt[xt.SCRIPT=3]="SCRIPT",xt[xt.URL=4]="URL",xt[xt.RESOURCE_URL=5]="RESOURCE_URL",xt}();function My(e){var r=function Is(){var e=Ae();return e&&e[12]}();return r?my(r.sanitize(xt.HTML,e)||""):si(e,"HTML")?my(fr(e)):xy(tf(),it(e))}var Ry="__ngContext__";function qn(e,r){e[Ry]=r}function Pf(e){var r=function Ps(e){return e[Ry]||null}(e);return r?Array.isArray(r)?r:r.lView:null}function Lf(e){return e.ngOriginalError}function nO(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n0&&(e[t-1][4]=n[4]);var a=El(e,10+r);!function yO(e,r){Ls(e,r,r[11],2,null,null),r[0]=null,r[6]=null}(n[1],n);var o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function zy(e,r){if(!(256&r[2])){var t=r[11];ln(t)&&t.destroyNode&&Ls(e,r,t,3,null,null),function CO(e){var r=e[13];if(!r)return zf(e[1],e);for(;r;){var t=null;if(ii(r))t=r[13];else{var n=r[10];n&&(t=n)}if(!t){for(;r&&!r[4]&&r!==e;)ii(r)&&zf(r[1],r),r=r[3];null===r&&(r=e),ii(r)&&zf(r[1],r),t=r&&r[4]}r=t}}(r)}}function zf(e,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function SO(e,r){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[i=l]():n[i=-l].unsubscribe(),a+=2}else{var c=n[i=t[a+1]];t[a].call(c)}if(null!==n){for(var h=i+1;ha?"":i[h+1].toLowerCase();var _=8&n?v:null;if(_&&-1!==r_(_,l,0)||2&n&&l!==v){if(zr(n))return!1;o=!0}}}}else{if(!o&&!zr(n)&&!zr(u))return!1;if(o&&zr(u))continue;o=!1,n=u|1&n}}return zr(n)||o}function zr(e){return 0==(1&e)}function PO(e,r,t,n){if(null===r)return-1;var i=0;if(n||!t){for(var a=!1;i-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?i+="."+o:4&n&&(i+=" "+o);else""!==i&&!zr(o)&&(r+=s_(a,i),i=""),n=o,a=a||!zr(n);t++}return""!==i&&(r+=s_(a,i)),r}var at={};function we(e){u_(St(),Ae(),Zn()+e,ll())}function u_(e,r,t,n){if(!n)if(3==(3&r[2])){var a=e.preOrderCheckHooks;null!==a&&vl(r,a,t)}else{var o=e.preOrderHooks;null!==o&&pl(r,o,0,t)}Qi(t)}function Il(e,r){return e<<17|r<<2}function Wr(e){return e>>17&32767}function Yf(e){return 2|e}function Di(e){return(131068&e)>>2}function $f(e,r){return-131069&e|r<<2}function Xf(e){return 1|e}function __(e,r){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&u_(e,r,20,ll()),t(n,i)}finally{Qi(a)}}function C_(e,r,t){if(Yd(r))for(var i=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Sr,n=r.localNames;if(null!==n)for(var i=r.index+1,a=0;a0;){var t=e[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=u&&s.push(u),s.push(n,i,o)}}function M_(e,r){null!==e.hostBindings&&e.hostBindings(1,r)}function T_(e,r){r.flags|=2,(e.components||(e.components=[])).push(r.index)}function p1(e,r,t){if(t){if(r.exportAs)for(var n=0;n0&&dh(t)}}function dh(e){for(var r=Bf(e);null!==r;r=jf(r))for(var t=10;t0&&dh(n)}var o=e[1].components;if(null!==o)for(var s=0;s0&&dh(u)}}function E1(e,r){var t=cr(r,e),n=t[1];(function w1(e,r){for(var t=r.length;t1&&void 0!==arguments[1]?arguments[1]:As;if(n===As){var i=new Error("NullInjectorError: No provider for ".concat(Rt(t),"!"));throw i.name="NullInjectorError",i}return n}}]),e}(),mh=new Ne("Set Injector scope."),Bs={},T1={},yh=void 0;function H_(){return void 0===yh&&(yh=new j_),yh}function U_(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i=G_(e,r,t,n);return i._resolveInjectorDefTypes(),i}function G_(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new O1(e,t,r||H_(),n)}var O1=function(){function e(r,t,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;d(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&oi(t,function(u){return i.processProvider(u,r,t)}),oi([r],function(u){return i.processInjectorType(u,[],o)}),this.records.set(gh,bo(void 0,this));var s=this.records.get(mh);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:Rt(r))}return f(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:As,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tt.Default;this.assertNotDestroyed();var a=dy(this),o=zi(void 0);try{if(!(i&tt.SkipSelf)){var s=this.records.get(t);if(void 0===s){var u=B1(t)&&Ud(t);s=u&&this.injectableDefInScope(u)?bo(_h(t),Bs):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var l=i&tt.Self?H_():this.parent;return l.get(t,n=i&tt.Optional&&n===As?null:n)}catch(h){if("NullInjectorError"===h.name){var c=h[kl]=h[kl]||[];if(c.unshift(Rt(t)),a)throw h;return iT(h,t,"R3InjectorError",this.source)}throw h}finally{zi(o),dy(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(i,a){return t.push(Rt(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Ue(205,!1)}},{key:"processInjectorType",value:function(t,n,i){var a=this;if(!(t=dt(t)))return!1;var o=_m(t),s=null==o&&t.ngModule||void 0,u=void 0===s?t:s,h=-1!==i.indexOf(u);if(void 0!==s&&(o=_m(s)),null==o)return!1;if(null!=o.imports&&!h){var v;i.push(u);try{oi(o.imports,function(ee){a.processInjectorType(ee,n,i)&&(void 0===v&&(v=[]),v.push(ee))})}finally{}if(void 0!==v)for(var _=function(ye){var be=v[ye],Te=be.ngModule,Pe=be.providers;oi(Pe,function(qe){return a.processProvider(qe,Te,Pe||Bt)})},F=0;F0)throw Ds(r,"?"),new Ue(204,!1);var n=function Lx(e){var r=e&&(e[tl]||e[bm]);if(r){var t=function Nx(e){if(e.hasOwnProperty("name"))return e.name;var r=(""+e).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),r}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Ue(204,!1)}function z_(e,r,t){var n=void 0;if(Co(e)){var i=dt(e);return ya(i)||_h(i)}if(W_(e))n=function(){return dt(e.useValue)};else if(function F1(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,C(kf(e.deps||[])))};else if(function P1(e){return!(!e||!e.useExisting)}(e))n=function(){return de(dt(e.useExisting))};else{var a=dt(e&&(e.useClass||e.provide));if(!function N1(e){return!!e.deps}(e))return ya(a)||_h(a);n=function(){return Q(a,C(kf(e.deps)))}}return n}function bo(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:r,multi:t?[]:void 0}}function W_(e){return null!==e&&"object"==typeof e&&tT in e}function Co(e){return"function"==typeof e}function B1(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ne}var qt=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"create",value:function(n,i){var a;if(Array.isArray(n))return U_({name:""},i,n,"");var o=null!==(a=n.name)&&void 0!==a?a:"";return U_({name:o},n.parent,n.providers,o)}}]),r}();return e.THROW_IF_NOT_FOUND=As,e.NULL=new j_,e.\u0275prov=Se({token:e,providedIn:"any",factory:function(){return de(gh)}}),e.__NG_ELEMENT_ID__=-1,e}();function $1(e,r){hl(Pf(e)[1],Dn())}function Re(e){for(var r=function J_(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];r;){var i=void 0;if(Ur(e))i=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new Ue(903,"");i=r.\u0275dir}if(i){if(t){n.push(i);var o=e;o.inputs=Ch(e.inputs),o.declaredInputs=Ch(e.declaredInputs),o.outputs=Ch(e.outputs);var s=i.hostBindings;s&&eR(e,s);var u=i.viewQuery,l=i.contentQueries;if(u&&Z1(e,u),l&&J1(e,l),Bd(e.inputs,i.inputs),Bd(e.declaredInputs,i.declaredInputs),Bd(e.outputs,i.outputs),Ur(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var h=i.features;if(h)for(var v=0;v=0;n--){var i=e[n];i.hostVars=r+=i.hostVars,i.hostAttrs=ml(i.hostAttrs,t=ml(t,i.hostAttrs))}}(n)}function Ch(e){return e===Ya?{}:e===Bt?[]:e}function Z1(e,r){var t=e.viewQuery;e.viewQuery=t?function(n,i){r(n,i),t(n,i)}:r}function J1(e,r){var t=e.contentQueries;e.contentQueries=t?function(n,i,a){r(n,i,a),t(n,i,a)}:r}function eR(e,r){var t=e.hostBindings;e.hostBindings=t?function(n,i){r(n,i),t(n,i)}:r}var Bl=null;function Eo(){if(!Bl){var e=Lt.Symbol;if(e&&e.iterator)Bl=e.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:tt.Default,t=Ae();if(null===t)return de(e,r);var n=Dn();return ey(n,t,dt(e),r)}function Us(){throw new Error("invalid")}function Me(e,r,t){var n=Ae();return Kn(n,to(),r)&&vr(St(),cn(),n,e,r,n[11],t,!1),Me}function Dh(e,r,t,n,i){var o=i?"class":"style";B_(e,t,r.inputs[o],o,n)}function ge(e,r,t,n){var i=Ae(),a=St(),o=20+e,s=i[11],u=i[o]=Uf(s,r,function DM(){return nt.lFrame.currentNamespace}()),l=a.firstCreatePass?function DR(e,r,t,n,i,a,o){var s=r.consts,l=mo(r,e,2,i,Ki(s,a));return lh(r,t,l,Ki(s,o)),null!==l.attrs&&Vl(l,l.attrs,!1),null!==l.mergedAttrs&&Vl(l,l.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,l),l}(o,a,i,0,r,t,n):a.data[o];ai(l,!0);var c=l.mergedAttrs;null!==c&&gl(s,u,c);var h=l.classes;null!==h&&Qf(s,u,h);var v=l.styles;return null!==v&&n_(s,u,v),64!=(64&l.flags)&&Ol(a,i,u,l),0===function fM(){return nt.lFrame.elementDepthCount}()&&qn(u,i),function hM(){nt.lFrame.elementDepthCount++}(),sl(l)&&(sh(a,i,l),C_(a,l,i)),null!==n&&uh(i,l),ge}function me(){var e=Dn();sf()?uf():ai(e=e.parent,!1);var r=e;!function vM(){nt.lFrame.elementDepthCount--}();var t=St();return t.firstCreatePass&&(hl(t,e),Yd(e)&&t.queries.elementEnd(e)),null!=r.classesWithoutHost&&function OM(e){return 0!=(16&e.flags)}(r)&&Dh(t,r,Ae(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function RM(e){return 0!=(32&e.flags)}(r)&&Dh(t,r,Ae(),r.stylesWithoutHost,!1),me}function Xt(e,r,t,n){return ge(e,r,t,n),me(),Xt}function Gs(e,r,t){var n=Ae(),i=St(),a=e+20,o=i.firstCreatePass?function AR(e,r,t,n,i){var a=r.consts,o=Ki(a,n),s=mo(r,e,8,"ng-container",o);return null!==o&&Vl(s,o,!0),lh(r,t,s,Ki(a,i)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,i,n,r,t):i.data[a];ai(o,!0);var s=n[a]=n[11].createComment("");return Ol(i,n,s,o),qn(s,n),sl(o)&&(sh(i,n,o),C_(i,o,n)),null!=t&&uh(n,o),Gs}function zs(){var e=Dn(),r=St();return sf()?uf():ai(e=e.parent,!1),r.firstCreatePass&&(hl(r,e),Yd(e)&&r.queries.elementEnd(e)),zs}function Nt(){return Ae()}function Ws(e){return!!e&&"function"==typeof e.then}var Ah=function Cb(e){return!!e&&"function"==typeof e.subscribe};function Ge(e,r,t,n){var i=Ae(),a=St(),o=Dn();return Eb(a,i,i[11],o,e,r,!!t,n),Ge}function qs(e,r){var t=Dn(),n=Ae(),i=St();return Eb(i,n,N_(cf(i.data),t,n),t,e,r,!1),qs}function Eb(e,r,t,n,i,a,o,s){var u=sl(n),c=e.firstCreatePass&&L_(e),h=r[8],v=F_(r),_=!0;if(3&n.type||s){var F=Sr(n,r),Y=s?s(F):F,ne=v.length,ce=s?function(Ui){return s(_n(Ui[n.index]))}:n.index;if(ln(t)){var ee=null;if(!s&&u&&(ee=function xR(e,r,t,n){var i=e.cleanup;if(null!=i)for(var a=0;au?s[u]:null}"string"==typeof o&&(a+=2)}return null}(e,r,i,n.index)),null!==ee)(ee.__ngLastListenerFn__||ee).__ngNextListenerFn__=a,ee.__ngLastListenerFn__=a,_=!1;else{a=xh(n,r,h,a,!1);var be=t.listen(Y,i,a);v.push(a,be),c&&c.push(i,ce,ne,ne+1)}}else a=xh(n,r,h,a,!0),Y.addEventListener(i,a,o),v.push(a),c&&c.push(i,ce,ne,o)}else a=xh(n,r,h,a,!1);var Pe,Te=n.outputs;if(_&&null!==Te&&(Pe=Te[i])){var qe=Pe.length;if(qe)for(var bt=0;bt0&&void 0!==arguments[0]?arguments[0]:1;return EM(e)}function MR(e,r){for(var t=null,n=function FO(e){var r=e.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Ae(),i=St(),a=mo(i,20+e,16,null,t||null);null===a.projection&&(a.projection=r),uf(),64!=(64&a.flags)&&xO(i,n,a)}function Ib(e,r,t,n,i){for(var a=e[t+1],o=null===r,s=n?Wr(a):Di(a),u=!1;0!==s&&(!1===u||o);){var c=e[s+1];RR(e[s],r)&&(u=!0,e[s+1]=n?Xf(c):Yf(c)),s=n?Wr(c):Di(c)}u&&(e[t+1]=n?Yf(a):Xf(a))}function RR(e,r){return null===e||null==r||(Array.isArray(e)?e[1]:e)===r||!(!Array.isArray(e)||"string"!=typeof r)&&lo(e,r)>=0}function xi(e,r,t){return Kr(e,r,t,!1),xi}function It(e,r){return Kr(e,r,null,!0),It}function Kr(e,r,t,n){var i=Ae(),a=St(),o=function Si(e){var r=nt.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+e,t}(2);a.firstUpdatePass&&function Hb(e,r,t,n){var i=e.data;if(null===i[t+1]){var a=i[Zn()],o=function jb(e,r){return r>=e.expandoStartIndex}(e,t);(function Wb(e,r){return 0!=(e.flags&(r?16:32))})(a,n)&&null===r&&!o&&(r=!1),r=function HR(e,r,t,n){var i=cf(e),a=n?r.residualClasses:r.residualStyles;if(null===i)0===(n?r.classBindings:r.styleBindings)&&(t=Ks(t=Th(null,e,r,t,n),r.attrs,n),a=null);else{var s=r.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Th(i,e,r,t,n),null===a){var l=function UR(e,r,t){var n=t?r.classBindings:r.styleBindings;if(0!==Di(n))return e[Wr(n)]}(e,r,n);void 0!==l&&Array.isArray(l)&&function GR(e,r,t,n){e[Wr(t?r.classBindings:r.styleBindings)]=n}(e,r,n,l=Ks(l=Th(null,e,r,l[1],n),r.attrs,n))}else a=function zR(e,r,t){for(var n=void 0,i=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(l=!0):c=t,i)if(0!==u){var _=Wr(e[s+1]);e[n+1]=Il(_,s),0!==_&&(e[_+1]=$f(e[_+1],n)),e[s+1]=function UO(e,r){return 131071&e|r<<17}(e[s+1],n)}else e[n+1]=Il(s,0),0!==s&&(e[s+1]=$f(e[s+1],n)),s=n;else e[n+1]=Il(u,0),0===s?s=n:e[u+1]=$f(e[u+1],n),u=n;l&&(e[n+1]=Yf(e[n+1])),Ib(e,c,n,!0),Ib(e,c,n,!1),function OR(e,r,t,n,i){var a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof r&&lo(a,r)>=0&&(t[n+1]=Xf(t[n+1]))}(r,c,e,n,a),o=Il(s,u),a?r.classBindings=o:r.styleBindings=o}(i,a,r,t,o,n)}}(a,e,o,n),r!==at&&Kn(i,o,r)&&function Gb(e,r,t,n,i,a,o,s){if(3&r.type){var u=e.data,l=u[s+1];Hl(function d_(e){return 1==(1&e)}(l)?zb(u,r,t,i,Di(l),o):void 0)||(Hl(a)||function c_(e){return 2==(2&e)}(l)&&(a=zb(u,null,t,i,s,o)),function TO(e,r,t,n,i){var a=ln(e);if(r)i?a?e.addClass(t,n):t.classList.add(n):a?e.removeClass(t,n):t.classList.remove(n);else{var o=-1===n.indexOf("-")?void 0:hr.DashCase;if(null==i)a?e.removeStyle(t,n,o):t.style.removeProperty(n);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),o|=hr.Important),a?e.setStyle(t,n,i,o):t.style.setProperty(n,i,s?"important":"")}}}(n,o,ul(Zn(),t),i,a))}}(a,a.data[Zn()],i,i[11],e,i[o+1]=function KR(e,r){return null==e||("string"==typeof r?e+=r:"object"==typeof e&&(e=Rt(fr(e)))),e}(r,t),n,o)}function Th(e,r,t,n,i){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,v=t[i+1];v===at&&(v=h?Bt:void 0);var _=h?Cf(v,n):c===n?v:void 0;if(l&&!Hl(_)&&(_=Cf(u,n)),Hl(_)&&(s=_,o))return s;var F=e[i+1];i=o?Wr(F):Di(F)}if(null!==r){var Y=a?r.residualClasses:r.residualStyles;null!=Y&&(s=Cf(Y,n))}return s}function Hl(e){return void 0!==e}function Ie(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Ae(),n=St(),i=e+20,a=n.firstCreatePass?mo(n,i,1,r,null):n.data[i],o=t[i]=Hf(t[11],r);Ol(n,t,o,a),ai(a,!1)}function bn(e){return Oh("",e,""),bn}function Oh(e,r,t){var n=Ae(),i=function ko(e,r,t,n){return Kn(e,to(),t)?r+it(t)+n:at}(n,e,r,t);return i!==at&&Ai(n,Zn(),i),Oh}function Po(e,r,t){var n=Ae();return Kn(n,to(),r)&&vr(St(),cn(),n,e,r,n[11],t,!0),Po}function Qs(e,r,t){var n=Ae();if(Kn(n,to(),r)){var a=St(),o=cn();vr(a,o,n,e,r,N_(cf(a.data),o,n),t,!0)}return Qs}var Ul="en-US";function lP(e,r,t){var n=St();if(n.firstCreatePass){var i=Ur(e);Ph(t,n.data,n.blueprint,i,!0),Ph(r,n.data,n.blueprint,i,!1)}}function Ph(e,r,t,n,i){if(e=dt(e),Array.isArray(e))for(var a=0;a>20;if(Co(e)||!e.multi){var F=new bs(l,i,j),Y=Lh(u,r,i?h:h+_,v);-1===Y?(bl(Es(c,s),o,u),Fh(o,e,r.length),r.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(F),s.push(F)):(t[Y]=F,s[Y]=F)}else{var ne=Lh(u,r,h+_,v),ce=Lh(u,r,h,h+_),ye=ce>=0&&t[ce];if(i&&!ye||!i&&!(ne>=0&&t[ne])){bl(Es(c,s),o,u);var be=function fP(e,r,t,n,i){var a=new bs(e,t,j);return a.multi=[],a.index=r,a.componentProviders=0,FC(a,i,n&&!t),a}(i?dP:cP,t.length,i,n,l);!i&&ye&&(t[ce].providerFactory=be),Fh(o,e,r.length,0),r.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(be),s.push(be)}else Fh(o,e,ne>-1?ne:ce,FC(t[i?ce:ne],l,!i&&n));!i&&n&&ye&&t[ce].componentProviders++}}}function Fh(e,r,t,n){var i=Co(r),a=function L1(e){return!!e.useClass}(r);if(i||a){var u=(a?dt(r.useClass):r).prototype.ngOnDestroy;if(u){var l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&r.multi){var c=l.indexOf(t);-1===c?l.push(t,[n,u]):l[c+1].push(n,u)}else l.push(t,u)}}}function FC(e,r,t){return t&&e.componentProviders++,e.multi.push(r)-1}function Lh(e,r,t,n){for(var i=t;i1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,i){return lP(n,i?i(e):e,r)}}}var hP=f(function e(){d(this,e)}),LC=f(function e(){d(this,e)}),pP=function(){function e(){d(this,e)}return f(e,[{key:"resolveComponentFactory",value:function(t){throw function vP(e){var r=Error("No component factory found for ".concat(Rt(e),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=e,r}(t)}}]),e}(),wa=function(){var e=f(function r(){d(this,r)});return e.NULL=new pP,e}();function gP(){return No(Dn(),Ae())}function No(e,r){return new Ye(Sr(e,r))}var Ye=function(){var e=f(function r(t){d(this,r),this.nativeElement=t});return e.__NG_ELEMENT_ID__=gP,e}();function mP(e){return e instanceof Ye?e.nativeElement:e}var Js=f(function e(){d(this,e)}),Yr=function(){var e=f(function r(){d(this,r)});return e.__NG_ELEMENT_ID__=function(){return function _P(){var e=Ae(),t=cr(Dn().index,e);return function yP(e){return e[11]}(ii(t)?t:e)}()},e}(),bP=function(){var e=f(function r(){d(this,r)});return e.\u0275prov=Se({token:e,providedIn:"root",factory:function(){return null}}),e}(),ea=f(function e(r){d(this,e),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),CP=new ea("13.2.5"),Vh={};function Kl(e,r,t,n){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&n.push(_n(a)),Hr(a))for(var o=10;o-1&&(Gf(t,i),El(n,i))}this._attachedToViewContainer=!1}zy(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){S_(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){fh(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){vh(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function S1(e,r,t){cl(!0);try{vh(e,r,t)}finally{cl(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Ue(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function bO(e,r){Ls(e,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Ue(902,"");this._appRef=t}}]),e}(),EP=function(e){p(t,e);var r=b(t);function t(n){var i;return d(this,t),(i=r.call(this,n))._view=n,i}return f(t,[{key:"detectChanges",value:function(){P_(this._view)}},{key:"checkNoChanges",value:function(){!function D1(e){cl(!0);try{P_(e)}finally{cl(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(eu),VC=function(e){p(t,e);var r=b(t);function t(n){var i;return d(this,t),(i=r.call(this)).ngModule=n,i}return f(t,[{key:"resolveComponentFactory",value:function(i){var a=Gn(i);return new Bh(a,this.ngModule)}}]),t}(wa);function BC(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&r.push({propName:e[t],templateName:t});return r}var Bh=function(e){p(t,e);var r=b(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).componentDef=n,a.ngModule=i,a.componentType=n.type,a.selector=function jO(e){return e.map(BO).join(",")}(n.selectors),a.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],a.isBoundToModule=!!i,a}return f(t,[{key:"inputs",get:function(){return BC(this.componentDef.inputs)}},{key:"outputs",get:function(){return BC(this.componentDef.outputs)}},{key:"create",value:function(i,a,o,s){var ee,ye,u=(s=s||this.ngModule)?function kP(e,r){return{get:function(n,i,a){var o=e.get(n,Vh,a);return o!==Vh||i===Vh?o:r.get(n,i,a)}}}(i,s.injector):i,l=u.get(Js,Om),c=u.get(bP,null),h=l.createRenderer(null,this.componentDef),v=this.componentDef.selectors[0][0]||"div",_=o?function k_(e,r,t){if(ln(e))return e.selectRootElement(r,t===Br.ShadowDom);var i="string"==typeof r?e.querySelector(r):r;return i.textContent="",i}(h,o,this.componentDef.encapsulation):Uf(l.createRenderer(null,this.componentDef),v,function wP(e){var r=e.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(v)),F=this.componentDef.onPush?576:528,Y=function Z_(e,r){return{components:[],scheduler:e||fO,clean:A1,playerHandler:r||null,flags:0}}(),ne=Ll(0,null,null,1,0,null,null,null,null,null),ce=Ns(null,ne,Y,F,null,null,l,h,c,u);dl(ce);try{var be=function $_(e,r,t,n,i,a){var o=t[1];t[20]=e;var u=mo(o,20,2,"#host",null),l=u.mergedAttrs=r.hostAttrs;null!==l&&(Vl(u,l,!0),null!==e&&(gl(i,e,l),null!==u.classes&&Qf(i,e,u.classes),null!==u.styles&&n_(i,e,u.styles)));var c=n.createRenderer(e,r),h=Ns(t,E_(r),null,r.onPush?64:16,t[20],u,n,c,a||null,null);return o.firstCreatePass&&(bl(Es(u,t),o,r.type),T_(o,u),O_(u,t.length,1)),Nl(t,h),t[20]=h}(_,this.componentDef,ce,l,h);if(_)if(o)gl(h,_,["ng-version",CP.full]);else{var Te=function HO(e){for(var r=[],t=[],n=1,i=2;n0&&Qf(h,_,qe.join(" "))}if(ye=nf(ne,20),void 0!==a)for(var bt=ye.projection=[],on=0;on1&&void 0!==arguments[1]?arguments[1]:qt.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tt.Default;return i===qt||i===Mi||i===gh?this:this._r3Injector.get(i,a,o)}},{key:"destroy",value:function(){var i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(i){this.destroyCbs.push(i)}}]),t}(Mi),jh=function(e){p(t,e);var r=b(t);function t(n){var i;return d(this,t),(i=r.call(this)).moduleType=n,null!==Er(n)&&function xP(e){var r=new Set;!function t(n){var i=Er(n,!0),a=i.id;null!==a&&(function HC(e,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Rt(r)," vs ").concat(Rt(r.name)))}(a,Vo.get(a),n),Vo.set(a,n));var l,u=K(li(i.imports));try{for(u.s();!(l=u.n()).done;){var c=l.value;r.has(c)||(r.add(c),t(c))}}catch(h){u.e(h)}finally{u.f()}}(e)}(n),i}return f(t,[{key:"create",value:function(i){return new GC(this.moduleType,i)}}]),t}(jC);function tu(e,r,t){var n=Xn()+e,i=Ae();return i[n]===at?di(i,n,t?r.call(t):r()):function Hs(e,r){return e[r]}(i,n)}function Hh(e,r,t,n){return function zC(e,r,t,n,i,a){var o=r+t;return Kn(e,o,i)?di(e,o+1,a?n.call(a,i):n(i)):function nu(e,r){var t=e[r];return t===at?void 0:t}(e,o+1)}(Ae(),Xn(),e,r,t,n)}var zP=function(e){p(t,e);var r=b(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d(this,t),(n=r.call(this)).__isAsync=i,n}return f(t,[{key:"emit",value:function(i){O(I(t.prototype),"next",this).call(this,i)}},{key:"subscribe",value:function(i,a,o){var s,u,l,c=i,h=a||function(){return null},v=o;if(i&&"object"==typeof i){var _=i;c=null===(s=_.next)||void 0===s?void 0:s.bind(_),h=null===(u=_.error)||void 0===u?void 0:u.bind(_),v=null===(l=_.complete)||void 0===l?void 0:l.bind(_)}this.__isAsync&&(h=Uh(h),c&&(c=Uh(c)),v&&(v=Uh(v)));var F=O(I(t.prototype),"subscribe",this).call(this,{next:c,error:h,complete:v});return i instanceof E&&i.add(F),F}}]),t}(Fe);function Uh(e){return function(r){setTimeout(e,void 0,r)}}var Dt=zP;function WP(){return this._results[Eo()]()}var YC=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d(this,e),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=Eo(),n=e.prototype;n[t]||(n[t]=WP)}return f(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Dt)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var i=this;i.dirty=!1;var a=Dr(t);(this._changesDetected=!function GM(e,r,t){if(e.length!==r.length)return!1;for(var n=0;n0;)this.remove(this.length-1)}},{key:"get",value:function(i){var a=XC(this._lContainer);return null!==a&&a[i]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(i,a,o){var s=i.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(i,a,o,s,u){var c,l=i&&!function Ss(e){return"function"==typeof e}(i);if(l)c=a;else{var h=a||{};c=h.index,o=h.injector,s=h.projectableNodes,u=h.ngModuleRef}var v=l?i:new Bh(Gn(i)),_=o||this.parentInjector;if(!u&&null==v.ngModule){var Y=(l?_:this.parentInjector).get(Mi,null);Y&&(u=Y)}var ne=v.create(_,s,void 0,u);return this.insert(ne.hostView,c),ne}},{key:"insert",value:function(i,a){var o=i._lView,s=o[1];if(function dM(e){return Hr(e[3])}(o)){var u=this.indexOf(i);if(-1!==u)this.detach(u);else{var l=o[3],c=new $C(l,l[6],l[3]);c.detach(c.indexOf(i))}}var h=this._adjustIndex(a),v=this._lContainer;!function EO(e,r,t,n){var i=10+n,a=t.length;n>0&&(t[i-1][4]=r),n1&&void 0!==arguments[1]?arguments[1]:0;return null==i?this.length+a:i}}]),t}(Mr);function XC(e){return e[8]}function Gh(e){return e[8]||(e[8]=[])}function ZC(e,r){var t,n=r[e.index];if(Hr(n))t=n;else{var i;if(8&e.type)i=_n(n);else{var a=r[11];i=a.createComment("");var o=Sr(e,r);ba(a,Tl(a,o),i,function AO(e,r){return ln(e)?e.nextSibling(r):r.nextSibling}(a,o),!1)}r[e.index]=t=I_(n,r,i,e),Nl(r,t)}return new $C(t,e,r)}var JP=function(){function e(r){d(this,e),this.queryList=r,this.matches=null}return f(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),eF=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d(this,e),this.queries=r}return f(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;d(this,e),this.predicate=r,this.flags=t,this.read=n}),tF=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d(this,e),this.queries=r}return f(e,[{key:"elementStart",value:function(t,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;d(this,e),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return f(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var i=this.metadata.predicate;if(Array.isArray(i))for(var a=0;a0)n.push(o[s/2]);else{for(var l=a[s+1],c=r[-u],h=10;h0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(u){return u.timeoutId!==s}),n(o._didWork,o.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(n,i,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,i,a){return[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(st))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),DE=function(){var e=function(){function r(){d(this,r),this._applications=new Map,iv.addToWindow(this)}return f(r,[{key:"registerApplication",value:function(n,i){this._applications.set(n,i)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return iv.findTestabilityInTree(this,n,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),LF=function(){function e(){d(this,e)}return f(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,i){return null}}]),e}(),iv=new LF;function VF(e,r,t){var n=new jh(t);return Promise.resolve(n)}var AE=new Ne("AllowMultipleToken"),xE=f(function e(r,t){d(this,e),this.name=r,this.token=t});function jF(e){if(Xr&&!Xr.destroyed&&!Xr.injector.get(AE,!1))throw new Ue(400,"");Xr=e.get(OE);var t=e.get(CE,null);return t&&t.forEach(function(n){return n()}),Xr}function ME(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(r),i=new Ne(n);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=TE();if(!o||o.injector.get(AE,!1))if(e)e(t.concat(a).concat({provide:i,useValue:!0}));else{var s=t.concat(a).concat({provide:i,useValue:!0},{provide:mh,useValue:"platform"});jF(qt.create({providers:s,name:n}))}return HF()}}function HF(e){var r=TE();if(!r)throw new Ue(401,"");return r}function TE(){return Xr&&!Xr.destroyed?Xr:null}var OE=function(){var e=function(){function r(t){d(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return f(r,[{key:"bootstrapModuleFactory",value:function(n,i){var a=this,l=function UF(e,r){return"noop"===e?new FF:("zone.js"===e?void 0:e)||new st({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:st,useValue:l}];return l.run(function(){var h=qt.create({providers:c,parent:a.injector,name:n.moduleType.name}),v=n.create(h),_=v.injector.get(Xi,null);if(!_)throw new Ue(402,"");return l.runOutsideAngular(function(){var Y=l.onError.subscribe({next:function(ce){_.handleError(ce)}});v.onDestroy(function(){av(a._modules,v),Y.unsubscribe()})}),function GF(e,r,t){try{var n=t();return Ws(n)?n.catch(function(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}):n}catch(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}}(_,l,function(){var Y=v.injector.get(Xh);return Y.runInitializers(),Y.donePromise.then(function(){return function yI(e){ur(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}(v.injector.get(Ti,Ul)||Ul),a._moduleDoBootstrap(v),v})})})}},{key:"bootstrapModule",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=RE({},a);return VF(0,0,n).then(function(s){return i.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(n){var i=n.injector.get(Zl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(o){return i.bootstrap(o)});else{if(!n.instance.ngDoBootstrap)throw new Ue(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Ue(404,"");this._modules.slice().forEach(function(i){return i.destroy()}),this._destroyListeners.forEach(function(i){return i()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(qt))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function RE(e,r){return Array.isArray(r)?r.reduce(RE,e):Object.assign(Object.assign({},e),r)}var Zl=function(){var e=function(){function r(t,n,i,a,o){var s=this;d(this,r),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new ct(function(c){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){c.next(s._stable),c.complete()})}),l=new ct(function(c){var h;s._zone.runOutsideAngular(function(){h=s._zone.onStable.subscribe(function(){st.assertNotInAngularZone(),ev(function(){!s._stable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks&&(s._stable=!0,c.next(!0))})})});var v=s._zone.onUnstable.subscribe(function(){st.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){c.next(!1)}))});return function(){h.unsubscribe(),v.unsubscribe()}});this.isStable=Qa(u,l.pipe(gm()))}return f(r,[{key:"bootstrap",value:function(n,i){var s,a=this;if(!this._initStatus.done)throw new Ue(405,"");s=n instanceof LC?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);var u=function BF(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Mi),c=s.create(qt.NULL,[],i||s.selector,u),h=c.location.nativeElement,v=c.injector.get(rv,null),_=v&&c.injector.get(DE);return v&&_&&_.registerApplication(h,v),c.onDestroy(function(){a.detachView(c.hostView),av(a.components,c),_&&_.unregisterApplication(h)}),this._loadComponent(c),c}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Ue(101,"");try{this._runningTick=!0;var o,a=K(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(h){a.e(h)}finally{a.f()}}catch(h){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(h)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var i=n;this._views.push(i),i.attachToAppRef(this)}},{key:"detachView",value:function(n){var i=n;av(this._views,i),i.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Jh,[]).concat(this._bootstrapListeners).forEach(function(a){return a(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(st),de(qt),de(Xi),de(wa),de(Xh))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function av(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var gr=function(){var e=f(function r(){d(this,r)});return e.__NG_ELEMENT_ID__=qF,e}();function qF(e){return function KF(e,r,t){if(ol(e)&&!t){var n=cr(e.index,r);return new eu(n,n)}return 47&e.type?new eu(r[16],r):null}(Dn(),Ae(),16==(16&e))}var BE=function(){function e(){d(this,e)}return f(e,[{key:"supports",value:function(t){return js(t)}},{key:"create",value:function(t){return new XF(t)}}]),e}(),$F=function(r,t){return t},XF=function(){function e(r){d(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||$F}return f(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,i=this._removalsHead,a=0,o=null;n||i;){var s=!i||n&&n.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),n}(Da);return e.\u0275fac=function(t){return new(t||e)(de(ot))},e.\u0275prov=Se({token:e,factory:function(){return function fL(){return new WE(de(ot))}()},providedIn:"platform"}),e}();function qE(){return!!window.history.pushState}function dv(e,r){if(0==e.length)return r;if(0==r.length)return e;var t=0;return e.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?e+r.substring(1):1==t?e+r:e+"/"+r}function KE(e){var r=e.match(/#|\?|$/),t=r&&r.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Oi(e){return e&&"?"!==e[0]?"?"+e:e}var jo=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:function(){return function hL(e){var r=de(ot).location;return new QE(de(Da),r&&r.origin||"")}()},providedIn:"root"}),e}(),fv=new Ne("appBaseHref"),QE=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a){var o;if(d(this,n),(o=t.call(this))._platformLocation=i,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=a,o}return f(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return dv(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+Oi(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Oi(u));this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Oi(u));this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(jo);return e.\u0275fac=function(t){return new(t||e)(de(Da),de(fv,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),vL=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._platformLocation=i,o._baseHref="",o._removeListenerFns=[],null!=a&&(o._baseHref=a),o}return f(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}},{key:"prepareExternalUrl",value:function(a){var o=dv(this._baseHref,a);return o.length>0?"#"+o:o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Oi(u));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Oi(u));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(jo);return e.\u0275fac=function(t){return new(t||e)(de(Da),de(fv,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),Aa=function(){var e=function(){function r(t,n){var i=this;d(this,r),this._subject=new Dt,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=KE(YE(a)),this._platformStrategy.onPopState(function(o){i._subject.emit({url:i.path(!0),pop:!0,state:o.state,type:o.type})})}return f(r,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+Oi(i))}},{key:"normalize",value:function(n){return r.stripTrailingSlash(function gL(e,r){return e&&r.startsWith(e)?r.substring(e.length):r}(this._baseHref,YE(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Oi(i)),a)}},{key:"replaceState",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Oi(i)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var i,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,n)}},{key:"onUrlChange",value:function(n){var i=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){i._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(n,i)})}},{key:"subscribe",value:function(n,i,a){return this._subject.subscribe({next:n,error:i,complete:a})}}]),r}();return e.normalizeQueryParams=Oi,e.joinWithSlash=dv,e.stripTrailingSlash=KE,e.\u0275fac=function(t){return new(t||e)(de(jo),de(Da))},e.\u0275prov=Se({token:e,factory:function(){return function pL(){return new Aa(de(jo),de(Da))}()},providedIn:"root"}),e}();function YE(e){return e.replace(/\/index.html$/,"")}function iw(e,r){r=encodeURIComponent(r);var n,t=K(e.split(";"));try{for(t.s();!(n=t.n()).done;){var i=n.value,a=i.indexOf("="),s=W(-1==a?[i,""]:[i.slice(0,a),i.slice(a+1)],2),l=s[1];if(s[0].trim()===r)return decodeURIComponent(l)}}catch(c){t.e(c)}finally{t.f()}return null}var lc=function(){var e=function(){function r(t,n,i,a){d(this,r),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return f(r,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(js(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var i=this._keyValueDiffer.diff(this._rawClass);i&&this._applyKeyValueChanges(i)}}},{key:"_applyKeyValueChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachChangedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachRemovedItem(function(a){a.previousValue&&i._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Rt(a.item)));i._toggleClass(a.item,!0)}),n.forEachRemovedItem(function(a){return i._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!0)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!!n[a])}))}},{key:"_removeClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!1)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(n,i){var a=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(o){i?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(ou),j(Sa),j(Ye),j(Yr))},e.\u0275dir=Ee({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),eN=function(){function e(r,t,n,i){d(this,e),this.$implicit=r,this.ngForOf=t,this.index=n,this.count=i}return f(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Ev=function(){var e=function(){function r(t,n,i){d(this,r),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return f(r,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(n){var i=this,a=this._viewContainer;n.forEachOperation(function(c,h,v){if(null==c.previousIndex)a.createEmbeddedView(i._template,new eN(c.item,i._ngForOf,-1,-1),null===v?void 0:v);else if(null==v)a.remove(null===h?void 0:h);else if(null!==h){var _=a.get(h);a.move(_,v),aw(_,c)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(i,a);if(null==o)throw new Error("Could not find testability for element.");return o},Lt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Lt.getAllAngularRootElements=function(){return t.getAllRootElements()},Lt.frameworkStabilizers||(Lt.frameworkStabilizers=[]),Lt.frameworkStabilizers.push(function(a){var o=Lt.getAllAngularTestabilities(),s=o.length,u=!1,l=function(h){u=u||h,0==--s&&a(u)};o.forEach(function(c){c.whenStable(l)})})}},{key:"findTestabilityInTree",value:function(t,n,i){if(null==n)return null;var a=t.getTestability(n);return null!=a?a:i?vi().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function NF(e){iv=e}(new e)}}]),e}(),BN=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),hc=new Ne("EventManagerPlugins"),vc=function(){var e=function(){function r(t,n){var i=this;d(this,r),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=i}),this._plugins=t.slice().reverse()}return f(r,[{key:"addEventListener",value:function(n,i,a){return this._findPluginFor(i).addEventListener(n,i,a)}},{key:"addGlobalEventListener",value:function(n,i,a){return this._findPluginFor(i).addGlobalEventListener(n,i,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var i=this._eventNameToPlugin.get(n);if(i)return i;for(var a=this._plugins,o=0;o-1&&(o.splice(v,1),l+=h+".")}),l+=u,0!=o.length||0===u.length)return null;var c={};return c.domEventName=s,c.fullKey=l,c}},{key:"getEventFullKey",value:function(a){var o="",s=function ZN(e){var r=e.key;if(null==r){if(null==(r=e.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===e.location&&Cw.hasOwnProperty(r)&&(r=Cw[r]))}return YN[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),bw.forEach(function(u){u!=s&&(0,$N[u])(a)&&(o+=u+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(u){n.getEventFullKey(u)===a&&s.runGuarded(function(){return o(u)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),n}(hw);return e.\u0275fac=function(t){return new(t||e)(de(ot))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),n2=[{provide:pr,useValue:cw},{provide:CE,useValue:function JN(){IN.makeCurrent(),VN.init()},multi:!0},{provide:ot,useFactory:function t2(){return function sM(e){ef=e}(document),document},deps:[]}],r2=ME(aL,"browser",n2),a2=[{provide:mh,useValue:"root"},{provide:Xi,useFactory:function e2(){return new Xi},deps:[]},{provide:hc,useClass:KN,multi:!0,deps:[ot,st,pr]},{provide:hc,useClass:XN,multi:!0,deps:[ot]},{provide:gc,useClass:gc,deps:[vc,cu,au]},{provide:Js,useExisting:gc},{provide:vw,useExisting:cu},{provide:cu,useClass:cu,deps:[ot]},{provide:rv,useClass:rv,deps:[st]},{provide:vc,useClass:vc,deps:[hc,st]},{provide:Av,useClass:BN,deps:[]}],Ew=function(){var e=function(){function r(t){if(d(this,r),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return f(r,null,[{key:"withServerTransition",value:function(n){return{ngModule:r,providers:[{provide:au,useValue:n.appId},{provide:fw,useExisting:au},NN]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(e,12))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:a2,imports:[dc,oL]}),e}();"undefined"!=typeof window&&window;var mc=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:function(t){return t?new(t||e):de(Sw)},providedIn:"root"}),e}(),Sw=function(){var e=function(r){p(n,r);var t=b(n);function n(i){var a;return d(this,n),(a=t.call(this))._doc=i,a}return f(n,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case xt.NONE:return o;case xt.HTML:return si(o,"HTML")?fr(o):xy(this._doc,String(o)).toString();case xt.STYLE:return si(o,"Style")?fr(o):o;case xt.SCRIPT:if(si(o,"Script"))return fr(o);throw new Error("unsafe value used in a script context");case xt.URL:return by(o),si(o,"URL")?fr(o):Os(String(o));case xt.RESOURCE_URL:if(si(o,"ResourceURL"))return fr(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function CT(e){return new gT(e)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function ET(e){return new mT(e)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function wT(e){return new yT(e)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function kT(e){return new _T(e)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function ST(e){return new bT(e)}(a)}}]),n}(mc);return e.\u0275fac=function(t){return new(t||e)(de(ot))},e.\u0275prov=Se({token:e,factory:function(t){var n;return n=t?new t:function h2(e){return new Sw(e.get(ot))}(de(qt)),n},providedIn:"root"}),e}(),v2=Array.isArray,p2=Object.getPrototypeOf,g2=Object.prototype,m2=Object.keys;function Dw(e){if(1===e.length){var r=e[0];if(v2(r))return{args:r,keys:null};if(function y2(e){return e&&"object"==typeof e&&p2(e)===g2}(r)){var t=m2(r);return{args:t.map(function(n){return r[n]}),keys:t}}}return{args:e,keys:null}}var _2=Array.isArray;function Rv(e){return Xe(function(r){return function b2(e,r){return _2(r)?e.apply(void 0,C(r)):e(r)}(e,r)})}function Aw(e,r){return e.reduce(function(t,n,i){return t[n]=r[i],t},{})}function xw(){for(var e=arguments.length,r=new Array(e),t=0;te?{max:{max:e,actual:r.value}}:null}}(t)}},{key:"required",value:function(t){return Pw(t)}},{key:"requiredTrue",value:function(t){return function Fw(e){return!0===e.value?null:{required:!0}}(t)}},{key:"email",value:function(t){return function Lw(e){return ta(e.value)||S2.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function Nw(e){return function(r){return ta(r.value)||!Ow(r.value)?null:r.value.lengthe?{maxlength:{requiredLength:e,actualLength:r.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return function Bw(e){return e?("string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),r=new RegExp(t)):(t=e.toString(),r=e),function(n){if(ta(n.value))return null;var i=n.value;return r.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}):yc;var r,t}(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return Ww(t)}},{key:"composeAsync",value:function(t){return qw(t)}}]),e}();function Pw(e){return ta(e.value)?{required:!0}:null}function yc(e){return null}function jw(e){return null!=e}function Hw(e){var r=Ws(e)?In(e):e;return Ah(r),r}function Uw(e){var r={};return e.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function Gw(e,r){return r.map(function(t){return t(e)})}function zw(e){return e.map(function(r){return function A2(e){return!e.validate}(r)?r:function(t){return r.validate(t)}})}function Ww(e){if(!e)return null;var r=e.filter(jw);return 0==r.length?null:function(t){return Uw(Gw(t,r))}}function Iv(e){return null!=e?Ww(zw(e)):null}function qw(e){if(!e)return null;var r=e.filter(jw);return 0==r.length?null:function(t){return xw(Gw(t,r).map(Hw)).pipe(Xe(Uw))}}function Pv(e){return null!=e?qw(zw(e)):null}function Kw(e,r){return null===e?[r]:Array.isArray(e)?[].concat(C(e),[r]):[e,r]}function Qw(e){return e._rawValidators}function Yw(e){return e._rawAsyncValidators}function Fv(e){return e?Array.isArray(e)?e:[e]:[]}function _c(e,r){return Array.isArray(e)?e.includes(r):e===r}function $w(e,r){var t=Fv(r);return Fv(e).forEach(function(i){_c(t,i)||t.push(i)}),t}function Xw(e,r){return Fv(r).filter(function(t){return!_c(e,t)})}var Zw=function(){function e(){d(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return f(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=Iv(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Pv(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,n){return!!this.control&&this.control.hasError(t,n)}},{key:"getError",value:function(t,n){return this.control?this.control.getError(t,n):null}}]),e}(),Ii=function(e){p(t,e);var r=b(t);function t(){var n;return d(this,t),(n=r.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return f(t)}(Zw),tr=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(Zw),Jw=function(){function e(r){d(this,e),this._cd=r}return f(e,[{key:"is",value:function(t){var n,i,a;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[t])}}]),e}(),du=function(){var e=function(r){p(n,r);var t=b(n);function n(i){return d(this,n),t.call(this,i)}return f(n)}(Jw);return e.\u0275fac=function(t){return new(t||e)(j(Ii,2))},e.\u0275dir=Ee({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&It("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[Re]}),e}(),fu=function(){var e=function(r){p(n,r);var t=b(n);function n(i){return d(this,n),t.call(this,i)}return f(n)}(Jw);return e.\u0275fac=function(t){return new(t||e)(j(tr,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&It("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[Re]}),e}();function hu(e,r){Vv(e,r),r.valueAccessor.writeValue(e.value),function F2(e,r){r.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&tk(e,r)})}(e,r),function N2(e,r){var t=function(i,a){r.valueAccessor.writeValue(i),a&&r.viewToModelUpdate(i)};e.registerOnChange(t),r._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,r),function L2(e,r){r.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&tk(e,r),"submit"!==e.updateOn&&e.markAsTouched()})}(e,r),function P2(e,r){if(r.valueAccessor.setDisabledState){var t=function(i){r.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),r._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,r)}function Ec(e,r){var n=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(n),r.valueAccessor.registerOnTouched(n)),kc(e,r),e&&(r._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function wc(e,r){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function Vv(e,r){var t=Qw(e);null!==r.validator?e.setValidators(Kw(t,r.validator)):"function"==typeof t&&e.setValidators([t]);var n=Yw(e);null!==r.asyncValidator?e.setAsyncValidators(Kw(n,r.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var i=function(){return e.updateValueAndValidity()};wc(r._rawValidators,i),wc(r._rawAsyncValidators,i)}function kc(e,r){var t=!1;if(null!==e){if(null!==r.validator){var n=Qw(e);if(Array.isArray(n)&&n.length>0){var i=n.filter(function(u){return u!==r.validator});i.length!==n.length&&(t=!0,e.setValidators(i))}}if(null!==r.asyncValidator){var a=Yw(e);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(u){return u!==r.asyncValidator});o.length!==a.length&&(t=!0,e.setAsyncValidators(o))}}}var s=function(){};return wc(r._rawValidators,s),wc(r._rawAsyncValidators,s),t}function tk(e,r){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function nk(e,r){Vv(e,r)}function rk(e,r){e._syncPendingControls(),r.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Hv(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var vu="VALID",Sc="INVALID",Go="PENDING",pu="DISABLED";function Gv(e){return(Dc(e)?e.validators:e)||null}function ik(e){return Array.isArray(e)?Iv(e):e||null}function zv(e,r){return(Dc(r)?r.asyncValidators:e)||null}function ak(e){return Array.isArray(e)?Pv(e):e||null}function Dc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var ok=function(r){return r instanceof ck},Wv=function(r){return r instanceof Kv};function sk(e){return ok(e)?e.value:e.getRawValue()}function uk(e,r){var t=Wv(e),n=e.controls;if(!(t?Object.keys(n):n).length)throw new Ue(1e3,"");if(!n[r])throw new Ue(1001,"")}function lk(e,r){Wv(e),e._forEachChild(function(n,i){if(void 0===r[i])throw new Ue(1002,"")})}var qv=function(){function e(r,t){d(this,e),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=ik(this._rawValidators),this._composedAsyncValidatorFn=ak(this._rawAsyncValidators)}return f(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===vu}},{key:"invalid",get:function(){return this.status===Sc}},{key:"pending",get:function(){return this.status==Go}},{key:"disabled",get:function(){return this.status===pu}},{key:"enabled",get:function(){return this.status!==pu}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=ik(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ak(t)}},{key:"addValidators",value:function(t){this.setValidators($w(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators($w(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Xw(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Xw(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return _c(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return _c(this._rawAsyncValidators,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(n){n.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(n){n.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=Go,!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]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=pu,this.errors=null,this._forEachChild(function(i){i.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:n})),this._onDisabledChange.forEach(function(i){return i(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=vu,this._forEachChild(function(i){i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!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(),(this.status===vu||this.status===Go)&&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(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?pu:vu}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=Go,this._hasOwnPendingAsyncValidator=!0;var i=Hw(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(a){n._hasOwnPendingAsyncValidator=!1,n.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function H2(e,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var n=e;return r.forEach(function(i){n=Wv(n)?n.controls.hasOwnProperty(i)?n.controls[i]:null:function(r){return r instanceof G2}(n)&&n.at(i)||null}),n}(this,t,".")}},{key:"getError",value:function(t,n){var i=n?this.get(n):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{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 Dt,this.statusChanges=new Dt}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?pu:this.errors?Sc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Go)?Go:this._anyControlsHaveStatus(Sc)?Sc:vu}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.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){Dc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),ck=function(e){p(t,e);var r=b(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return d(this,t),(n=r.call(this,Gv(a),zv(o,a))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(i),n._setUpdateStrategy(a),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),Dc(a)&&a.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(i)?i.value:i),n}return f(t,[{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=i,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(i,a)}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(i),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(i){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(i){this._onChange.push(i)}},{key:"_unregisterOnChange",value:function(i){Hv(this._onChange,i)}},{key:"registerOnDisabledChange",value:function(i){this._onDisabledChange.push(i)}},{key:"_unregisterOnDisabledChange",value:function(i){Hv(this._onDisabledChange,i)}},{key:"_forEachChild",value:function(i){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}]),t}(qv),Kv=function(e){p(t,e);var r=b(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,Gv(i),zv(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return f(t,[{key:"registerControl",value:function(i,a){return this.controls[i]?this.controls[i]:(this.controls[i]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],a&&this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lk(this,i),Object.keys(i).forEach(function(s){uk(a,s),a.controls[s].setValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(Object.keys(i).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(i,a,o){return i[o]=sk(a),i})}},{key:"_syncPendingControls",value:function(){var i=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&i(s,o)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){a.setParent(i),a._registerOnCollectionChange(i._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(i){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),t}(qv),G2=function(e){p(t,e);var r=b(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,Gv(i),zv(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return f(t,[{key:"at",value:function(i){return this.controls[i]}},{key:"push",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(i,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),a&&(this.controls.splice(i,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lk(this,i),i.forEach(function(s,u){uk(a,u),a.at(u).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(i.forEach(function(s,u){a.at(u)&&a.at(u).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(i){return sk(i)})}},{key:"clear",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}},{key:"_syncPendingControls",value:function(){var i=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){this.controls.forEach(function(a,o){i(a,o)})}},{key:"_updateValue",value:function(){var i=this;this.value=this.controls.filter(function(a){return a.enabled||i.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(i){return this.controls.some(function(a){return a.enabled&&i(a)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){return i._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,i=K(this.controls);try{for(i.s();!(a=i.n()).done;)if(a.value.enabled)return!1}catch(s){i.e(s)}finally{i.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}]),t}(qv),z2={provide:tr,useExisting:Tt(function(){return ra})},gu=function(){return Promise.resolve(null)}(),ra=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a){var o;return d(this,n),(o=t.call(this)).submitted=!1,o._directives=new Set,o.ngSubmit=new Dt,o.form=new Kv({},Iv(i),Pv(a)),o}return f(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),hu(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.add(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),o._directives.delete(a)})}},{key:"addFormGroup",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path),u=new Kv({});nk(u,a),s.registerControl(a.name,u),u.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;gu.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,rk(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),n}(tr);return e.\u0275fac=function(t){return new(t||e)(j(Vn,10),j(na,10))},e.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&Ge("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[At([z2]),Re]}),e}(),q2={provide:Ii,useExisting:Tt(function(){return zo})},hk=function(){return Promise.resolve(null)}(),zo=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this))._changeDetectorRef=u,l.control=new ck,l._registered=!1,l.update=new Dt,l._parent=i,l._setValidators(a),l._setAsyncValidators(o),l.valueAccessor=function jv(e,r){if(!r)return null;Array.isArray(r);var t=void 0,n=void 0,i=void 0;return r.forEach(function(a){a.constructor===Uo?t=a:function j2(e){return Object.getPrototypeOf(e.constructor)===Ma}(a)?n=a:i=a}),i||n||t||null}(q(l),s),l}return f(n,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),function Bv(e,r){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){hu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(a){var o=this;hk.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,u=""===s||s&&"false"!==s;hk.then(function(){var l;u&&!o.control.disabled?o.control.disable():!u&&o.control.disabled&&o.control.enable(),null===(l=o._changeDetectorRef)||void 0===l||l.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function Cc(e,r){return[].concat(C(r.path),[e])}(a,this._parent):[a]}}]),n}(Ii);return e.\u0275fac=function(t){return new(t||e)(j(tr,9),j(Vn,10),j(na,10),j(Ir,10),j(gr,8))},e.\u0275dir=Ee({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[At([q2]),Re,Wn]}),e}(),mu=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),pk=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),Z2={provide:tr,useExisting:Tt(function(){return Ac})},Ac=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a){var o;return d(this,n),(o=t.call(this)).validators=i,o.asyncValidators=a,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new Dt,o._setValidators(i),o._setAsyncValidators(a),o}return f(n,[{key:"ngOnChanges",value:function(a){this._checkFormPresent(),a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(kc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(a){var o=this.form.get(a.path);return hu(o,a),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(a),o}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){Ec(a.control||null,a),Hv(this.directives,a)}},{key:"addFormGroup",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormGroup",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"addFormArray",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormArray",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormArray",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){this.form.get(a.path).setValue(o)}},{key:"onSubmit",value:function(a){return this.submitted=!0,rk(this.form,this.directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_updateDomValue",value:function(){var a=this;this.directives.forEach(function(o){var s=o.control,u=a.form.get(o.path);s!==u&&(Ec(s||null,o),ok(u)&&(hu(u,o),o.control=u))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(a){var o=this.form.get(a.path);nk(o,a),o.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(a){if(this.form){var o=this.form.get(a.path);if(o){var s=function V2(e,r){return kc(e,r)}(o,a);s&&o.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Vv(this.form,this),this._oldForm&&kc(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(tr);return e.\u0275fac=function(t){return new(t||e)(j(Vn,10),j(na,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&Ge("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[At([Z2]),Re,Wn]}),e}();function uV(e){return null!=e&&!1!==e&&"false"!=="".concat(e)}var Ta=function(){var e=function(){function r(){d(this,r),this._validator=yc}return f(r,[{key:"ngOnChanges",value:function(n){if(this.inputName in n){var i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):yc,this._onChange&&this._onChange()}}},{key:"validate",value:function(n){return this._validator(n)}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"enabled",value:function(n){return null!=n}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,features:[Wn]}),e}(),dV={provide:Vn,useExisting:Tt(function(){return Wo}),multi:!0},Wo=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputName="required",i.normalizeInput=function(a){return uV(a)},i.createValidator=function(a){return Pw},i}return f(n,[{key:"enabled",value:function(a){return a}}]),n}(Ta);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&Kt("required",n._enabled?"":null)},inputs:{required:"required"},features:[At([dV]),Re]}),e}(),mV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[pk]]}),e}(),yV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[mV]}),e}();function Je(){for(var e=arguments.length,r=new Array(e),t=0;t0){var a=n.slice(0,i),o=a.toLowerCase(),s=n.slice(i+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(n){var i=r[n],a=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(t.headers.set(a,i),t.maybeSetNormalizedName(n,a))})}:this.headers=new Map}return f(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){n.headers.set(i,t.headers.get(i)),n.normalizedNames.set(i,t.normalizedNames.get(i))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,n);var a=("a"===t.op?this.headers.get(n):void 0)||[];a.push.apply(a,C(i)),this.headers.set(n,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(n);if(!s)return;0===(s=s.filter(function(u){return-1===o.indexOf(u)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(n.normalizedNames.get(i),n.headers.get(i))})}}]),e}(),_V=function(){function e(){d(this,e)}return f(e,[{key:"encodeKey",value:function(t){return Pk(t)}},{key:"encodeValue",value:function(t){return Pk(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function bV(e,r){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(i){var a=i.indexOf("="),s=W(-1==a?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,a)),r.decodeValue(i.slice(a+1))],2),u=s[0],l=s[1],c=t.get(u)||[];c.push(l),t.set(u,c)}),t}var CV=/%(\d[a-f0-9])/gi,EV={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Pk(e){return encodeURIComponent(e).replace(CV,function(r,t){var n;return null!==(n=EV[t])&&void 0!==n?n:r})}function Fk(e){return"".concat(e)}var Ko=function(){function e(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(d(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _V,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=bV(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var i=t.fromObject[n];r.map.set(n,Array.isArray(i)?i:[i])})):this.map=null}return f(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[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,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(i){var a=t[i];Array.isArray(a)?a.forEach(function(o){n.push({param:i,value:o,op:"a"})}):n.push({param:i,value:a,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var i=t.encoder.encodeKey(n);return t.map.get(n).map(function(a){return i+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),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(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var i=("a"===n.op?t.map.get(n.param):void 0)||[];i.push(Fk(n.value)),t.map.set(n.param,i);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var a=t.map.get(n.param)||[],o=a.indexOf(Fk(n.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(n.param,a):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),wV=function(){function e(){d(this,e),this.map=new Map}return f(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Lk(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Nk(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Vk(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Jv=function(){function e(r,t,n,i){var a;if(d(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function kV(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,a=i):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new yu),this.context||(this.context=new wV),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,u=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,h=t.params||this.params,v=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(_,F){return _.set(F,t.setHeaders[F])},c)),t.setParams&&(h=Object.keys(t.setParams).reduce(function(_,F){return _.set(F,t.setParams[F])},h)),new e(i,a,s,{params:h,headers:c,context:v,reportProgress:l,responseType:o,withCredentials:u})}}]),e}(),wn=function(){return(wn=wn||{})[wn.Sent=0]="Sent",wn[wn.UploadProgress=1]="UploadProgress",wn[wn.ResponseHeader=2]="ResponseHeader",wn[wn.DownloadProgress=3]="DownloadProgress",wn[wn.Response=4]="Response",wn[wn.User=5]="User",wn}(),ep=f(function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";d(this,e),this.headers=r.headers||new yu,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),DV=function(e){p(t,e);var r=b(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),(n=r.call(this,i)).type=wn.ResponseHeader,n}return f(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ep),Bk=function(e){p(t,e);var r=b(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),(n=r.call(this,i)).type=wn.Response,n.body=void 0!==i.body?i.body:null,n}return f(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ep),jk=function(e){p(t,e);var r=b(t);function t(n){var i;return d(this,t),(i=r.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),i.error=n.error||null,i}return f(t)}(ep);function tp(e,r){return{body:r,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Oa=function(){var e=function(){function r(t){d(this,r),this.handler=t}return f(r,[{key:"request",value:function(n,i){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Jv)s=n;else{var u=void 0;u=o.headers instanceof yu?o.headers:new yu(o.headers);var l=void 0;o.params&&(l=o.params instanceof Ko?o.params:new Ko({fromObject:o.params})),s=new Jv(n,i,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=Je(s).pipe(qo(function(v){return a.handler.handle(v)}));if(n instanceof Jv||"events"===o.observe)return c;var h=c.pipe(fn(function(v){return v instanceof Bk}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return h.pipe(Xe(function(v){if(null!==v.body&&!(v.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return v.body}));case"blob":return h.pipe(Xe(function(v){if(null!==v.body&&!(v.body instanceof Blob))throw new Error("Response is not a Blob.");return v.body}));case"text":return h.pipe(Xe(function(v){if(null!==v.body&&"string"!=typeof v.body)throw new Error("Response is not a string.");return v.body}));default:return h.pipe(Xe(function(v){return v.body}))}case"response":return h;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,i)}},{key:"get",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,i)}},{key:"head",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,i)}},{key:"jsonp",value:function(n,i){return this.request("JSONP",n,{params:(new Ko).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,i)}},{key:"patch",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,tp(a,i))}},{key:"post",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,tp(a,i))}},{key:"put",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,tp(a,i))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Rk))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),Hk=function(){function e(r,t){d(this,e),this.next=r,this.interceptor=t}return f(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),Uk=new Ne("HTTP_INTERCEPTORS"),AV=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"intercept",value:function(n,i){return i.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),xV=/^\)\]\}',?\n/,Gk=function(){var e=function(){function r(t){d(this,r),this.xhrFactory=t}return f(r,[{key:"handle",value:function(n){var i=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ct(function(a){var o=i.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach(function(ce,ee){return o.setRequestHeader(ce,ee.join(","))}),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var s=n.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(n.responseType){var u=n.responseType.toLowerCase();o.responseType="json"!==u?u:"text"}var l=n.serializeBody(),c=null,h=function(){if(null!==c)return c;var ee=o.statusText||"OK",ye=new yu(o.getAllResponseHeaders()),be=function MV(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return c=new DV({headers:ye,status:o.status,statusText:ee,url:be})},v=function(){var ee=h(),ye=ee.headers,be=ee.status,Te=ee.statusText,Pe=ee.url,qe=null;204!==be&&(qe=void 0===o.response?o.responseText:o.response),0===be&&(be=qe?200:0);var bt=be>=200&&be<300;if("json"===n.responseType&&"string"==typeof qe){var on=qe;qe=qe.replace(xV,"");try{qe=""!==qe?JSON.parse(qe):null}catch(Jt){qe=on,bt&&(bt=!1,qe={error:Jt,text:qe})}}bt?(a.next(new Bk({body:qe,headers:ye,status:be,statusText:Te,url:Pe||void 0})),a.complete()):a.error(new jk({error:qe,headers:ye,status:be,statusText:Te,url:Pe||void 0}))},_=function(ee){var ye=h(),Te=new jk({error:ee,status:o.status||0,statusText:o.statusText||"Unknown Error",url:ye.url||void 0});a.error(Te)},F=!1,Y=function(ee){F||(a.next(h()),F=!0);var ye={type:wn.DownloadProgress,loaded:ee.loaded};ee.lengthComputable&&(ye.total=ee.total),"text"===n.responseType&&!!o.responseText&&(ye.partialText=o.responseText),a.next(ye)},ne=function(ee){var ye={type:wn.UploadProgress,loaded:ee.loaded};ee.lengthComputable&&(ye.total=ee.total),a.next(ye)};return o.addEventListener("load",v),o.addEventListener("error",_),o.addEventListener("timeout",_),o.addEventListener("abort",_),n.reportProgress&&(o.addEventListener("progress",Y),null!==l&&o.upload&&o.upload.addEventListener("progress",ne)),o.send(l),a.next({type:wn.Sent}),function(){o.removeEventListener("error",_),o.removeEventListener("abort",_),o.removeEventListener("load",v),o.removeEventListener("timeout",_),n.reportProgress&&(o.removeEventListener("progress",Y),null!==l&&o.upload&&o.upload.removeEventListener("progress",ne)),o.readyState!==o.DONE&&o.abort()}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Av))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),np=new Ne("XSRF_COOKIE_NAME"),rp=new Ne("XSRF_HEADER_NAME"),zk=f(function e(){d(this,e)}),TV=function(){var e=function(){function r(t,n,i){d(this,r),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return f(r,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=iw(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(ot),de(pr),de(np))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),ip=function(){var e=function(){function r(t,n){d(this,r),this.tokenService=t,this.headerName=n}return f(r,[{key:"intercept",value:function(n,i){var a=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||a.startsWith("http://")||a.startsWith("https://"))return i.handle(n);var o=this.tokenService.getToken();return null!==o&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,o)})),i.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(zk),de(rp))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),OV=function(){var e=function(){function r(t,n){d(this,r),this.backend=t,this.injector=n,this.chain=null}return f(r,[{key:"handle",value:function(n){if(null===this.chain){var i=this.injector.get(Uk,[]);this.chain=i.reduceRight(function(a,o){return new Hk(a,o)},this.backend)}return this.chain.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Ik),de(qt))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),RV=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"disable",value:function(){return{ngModule:r,providers:[{provide:ip,useClass:AV}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[n.cookieName?{provide:np,useValue:n.cookieName}:[],n.headerName?{provide:rp,useValue:n.headerName}:[]]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[ip,{provide:Uk,useExisting:ip,multi:!0},{provide:zk,useClass:TV},{provide:np,useValue:"XSRF-TOKEN"},{provide:rp,useValue:"X-XSRF-TOKEN"}]}),e}(),IV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[Oa,{provide:Rk,useClass:OV},Gk,{provide:Ik,useExisting:Gk}],imports:[[RV.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Wk=f(function e(){d(this,e)}),PV=f(function e(){d(this,e)}),Pi="*";function _u(e,r){return{type:7,name:e,definitions:r,options:{}}}function Fi(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:e}}function qk(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:r}}function Ln(e){return{type:6,styles:e,offset:null}}function Ra(e,r,t){return{type:0,name:e,styles:r,options:t}}function ia(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:r,options:t}}function ap(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:r,options:t}}function Kk(e){Promise.resolve(null).then(e)}var bu=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return f(e,[{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;Kk(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(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),Qk=function(){function e(r){var t=this;d(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;var n=0,i=0,a=0,o=this.players.length;0==o?Kk(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++n==o&&t._onFinish()}),s.onDestroy(function(){++i==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,u){return Math.max(s,u.totalTime)},0)}return f(e,[{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 n=t*this.totalTime;this.players.forEach(function(i){var a=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,i){return null===n||i.totalTime>n.totalTime?i:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),Et=!1;function Yk(e){return new Ue(3e3,Et)}function nB(e){return new Ue(3502,Et)}function iB(){return new Ue(3300,Et)}function aB(e){return new Ue(3504,Et)}function hB(){return"undefined"!=typeof window&&void 0!==window.document}function sp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function aa(e){switch(e.length){case 0:return new bu;case 1:return e[0];default:return new Qk(e)}}function $k(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],u=-1,l=null;if(n.forEach(function(c){var h=c.offset,v=h==u,_=v&&l||{};Object.keys(c).forEach(function(F){var Y=F,ne=c[F];if("offset"!==F)switch(Y=r.normalizePropertyName(Y,o),ne){case"!":ne=i[F];break;case Pi:ne=a[F];break;default:ne=r.normalizeStyleValue(F,Y,ne,o)}_[Y]=ne}),v||s.push(_),l=_,u=h}),o.length)throw nB();return s}function up(e,r,t,n){switch(r){case"start":e.onStart(function(){return n(t&&lp(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&lp(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&lp(t,"destroy",e))})}}function lp(e,r,t){var n=t.totalTime,a=cp(e.element,e.triggerName,e.fromState,e.toState,r||e.phaseName,null==n?e.totalTime:n,!!t.disabled),o=e._data;return null!=o&&(a._data=o),a}function cp(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:r,fromState:t,toState:n,phaseName:i,totalTime:a,disabled:!!o}}function mr(e,r,t){var n;return e instanceof Map?(n=e.get(r))||e.set(r,n=t):(n=e[r])||(n=e[r]=t),n}function Xk(e){var r=e.indexOf(":");return[e.substring(1,r),e.substr(r+1)]}var dp=function(r,t){return!1},Zk=function(r,t,n){return[]},Jk=null;function fp(e){var r=e.parentNode||e.host;return r===Jk?null:r}(sp()||"undefined"!=typeof Element)&&(hB()?(Jk=function(){return document.documentElement}(),dp=function(r,t){for(;t;){if(t===r)return!0;t=fp(t)}return!1}):dp=function(r,t){return r.contains(t)},Zk=function(r,t,n){if(n)return Array.from(r.querySelectorAll(t));var i=r.querySelector(t);return i?[i]:[]});var Ia=null,eS=!1;function tS(e){Ia||(Ia=function gB(){return"undefined"!=typeof document?document.body:null}()||{},eS=!!Ia.style&&"WebkitAppearance"in Ia.style);var r=!0;return Ia.style&&!function pB(e){return"ebkit"==e.substring(1,6)}(e)&&!(r=e in Ia.style)&&eS&&(r="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ia.style),r}var nS=dp,rS=Zk,iS=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"validateStyleProperty",value:function(n){return tS(n)}},{key:"matchesElement",value:function(n,i){return!1}},{key:"containsElement",value:function(n,i){return nS(n,i)}},{key:"getParentElement",value:function(n){return fp(n)}},{key:"query",value:function(n,i,a){return rS(n,i,a)}},{key:"computeStyle",value:function(n,i,a){return a||""}},{key:"animate",value:function(n,i,a,o,s){return new bu(a,o)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),hp=function(){var e=f(function r(){d(this,r)});return e.NOOP=new iS,e}(),oS="ng-enter",vp="ng-leave",Mc="ng-trigger",Tc=".ng-trigger",sS="ng-animating",pp=".ng-animating";function Pa(e){if("number"==typeof e)return e;var r=e.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:gp(parseFloat(r[1]),r[2])}function gp(e,r){return"s"===r?1e3*e:e}function Oc(e,r,t){return e.hasOwnProperty("duration")?e:function _B(e,r,t){var i,a=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(Yk()),{duration:0,delay:0,easing:""};i=gp(parseFloat(s[1]),s[2]);var u=s[3];null!=u&&(a=gp(parseFloat(u),s[4]));var l=s[5];l&&(o=l)}else i=e;if(!t){var c=!1,h=r.length;i<0&&(r.push(function LV(){return new Ue(3100,Et)}()),c=!0),a<0&&(r.push(function NV(){return new Ue(3101,Et)}()),c=!0),c&&r.splice(h,0,Yk())}return{duration:i,delay:a,easing:o}}(e,r,t)}function Qo(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function oa(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var n in e)t[n]=e[n];else Qo(e,t);return t}function uS(e,r,t){return t?r+":"+t+";":""}function lS(e){for(var r="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void r.push(n);e=n}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function JV(e){return new Ue(3015,Et)}()),r;var a=i[1],o=i[2],s=i[3];r.push(fS(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(fS(s,a))}(n,t,r)}):t.push(e),t}var Nc=new Set(["true","1"]),Vc=new Set(["false","0"]);function fS(e,r){var t=Nc.has(e)||Vc.has(e),n=Nc.has(r)||Vc.has(r);return function(i,a){var o="*"==e||e==i,s="*"==r||r==a;return!o&&t&&"boolean"==typeof i&&(o=i?Nc.has(e):Vc.has(e)),!s&&n&&"boolean"==typeof a&&(s=a?Nc.has(r):Vc.has(r)),o&&s}}var TB=new RegExp("s*".concat(":self","s*,?"),"g");function vS(e,r,t,n){return new OB(e).build(r,t,n)}var OB=function(){function e(r){d(this,e),this._driver=r}return f(e,[{key:"build",value:function(t,n,i){var a=new PB(n);this._resetContextStyleTimingState(a);var o=yr(this,Cu(t),a);return a.unsupportedCSSPropertiesFound.size&&C(a.unsupportedCSSPropertiesFound.keys()),o}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var i=this,a=n.queryCount=0,o=n.depCount=0,s=[],u=[];return"@"==t.name.charAt(0)&&n.errors.push(function UV(){return new Ue(3006,Et)}()),t.definitions.forEach(function(l){if(i._resetContextStyleTimingState(n),0==l.type){var c=l,h=c.name;h.toString().split(/\s*,\s*/).forEach(function(_){c.name=_,s.push(i.visitState(c,n))}),c.name=h}else if(1==l.type){var v=i.visitTransition(l,n);a+=v.queryCount,o+=v.depCount,u.push(v)}else n.errors.push(function GV(){return new Ue(3007,Et)}())}),{type:7,name:t.name,states:s,transitions:u,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,n){var i=this.visitStyle(t.styles,n),a=t.options&&t.options.params||null;if(i.containsDynamicStyles){var o=new Set,s=a||{};i.styles.forEach(function(l){if(Bc(l)){var c=l;Object.keys(c).forEach(function(h){cS(c[h]).forEach(function(v){s.hasOwnProperty(v)||o.add(v)})})}}),o.size&&(Ic(o.values()),n.errors.push(function zV(e,r){return new Ue(3008,Et)}()))}return{type:0,name:t.name,style:i,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var i=yr(this,Cu(t.animation),n);return{type:1,matchers:AB(t.expr,n.errors),animation:i,queryCount:n.queryCount,depCount:n.depCount,options:La(t.options)}}},{key:"visitSequence",value:function(t,n){var i=this;return{type:2,steps:t.steps.map(function(a){return yr(i,a,n)}),options:La(t.options)}}},{key:"visitGroup",value:function(t,n){var i=this,a=n.currentTime,o=0,s=t.steps.map(function(u){n.currentTime=a;var l=yr(i,u,n);return o=Math.max(o,n.currentTime),l});return n.currentTime=o,{type:3,steps:s,options:La(t.options)}}},{key:"visitAnimate",value:function(t,n){var i=function LB(e,r){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return _p(Oc(e,r).duration,0,"");var i=e,a=i.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(a){var o=_p(0,0,"");return o.dynamic=!0,o.strValue=i,o}return _p((t=t||Oc(i,r)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=i;var a,o=t.styles?t.styles:Ln({});if(5==o.type)a=this.visitKeyframes(o,n);else{var s=t.styles,u=!1;if(!s){u=!0;var l={};i.easing&&(l.easing=i.easing),s=Ln(l)}n.currentTime+=i.duration+i.delay;var c=this.visitStyle(s,n);c.isEmptyStep=u,a=c}return n.currentAnimateTimings=null,{type:4,timings:i,style:a,options:null}}},{key:"visitStyle",value:function(t,n){var i=this._makeStyleAst(t,n);return this._validateStyleAst(i,n),i}},{key:"_makeStyleAst",value:function(t,n){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==Pi?i.push(s):n.errors.push(function WV(e){return new Ue(3002,Et)}()):i.push(s)}):i.push(t.styles);var a=!1,o=null;return i.forEach(function(s){if(Bc(s)){var u=s,l=u.easing;if(l&&(o=l,delete u.easing),!a)for(var c in u)if(u[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,n){var i=this,a=n.currentAnimateTimings,o=n.currentTime,s=n.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(u){"string"!=typeof u&&Object.keys(u).forEach(function(l){if(!i._driver.validateStyleProperty(l))return delete u[l],void n.unsupportedCSSPropertiesFound.add(l);var c=n.collectedStyles[n.currentQuerySelector],h=c[l],v=!0;h&&(s!=o&&s>=h.startTime&&o<=h.endTime&&(n.errors.push(function qV(e,r,t,n,i){return new Ue(3010,Et)}()),v=!1),s=h.startTime),v&&(c[l]={startTime:s,endTime:o}),n.options&&function bB(e,r,t){var n=r.params||{},i=cS(e);i.length&&i.forEach(function(a){n.hasOwnProperty(a)||t.push(function VV(e){return new Ue(3001,Et)}())})}(u[l],n.options,n.errors)})})}},{key:"visitKeyframes",value:function(t,n){var i=this,a={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function KV(){return new Ue(3011,Et)}()),a;var s=0,u=[],l=!1,c=!1,h=0,v=t.steps.map(function(ye){var be=i._makeStyleAst(ye,n),Te=null!=be.offset?be.offset:function FB(e){if("string"==typeof e)return null;var r=null;if(Array.isArray(e))e.forEach(function(n){if(Bc(n)&&n.hasOwnProperty("offset")){var i=n;r=parseFloat(i.offset),delete i.offset}});else if(Bc(e)&&e.hasOwnProperty("offset")){var t=e;r=parseFloat(t.offset),delete t.offset}return r}(be.styles),Pe=0;return null!=Te&&(s++,Pe=be.offset=Te),c=c||Pe<0||Pe>1,l=l||Pe0&&s<_?n.errors.push(function $V(){return new Ue(3202,Et)}()):0==s&&(F=1/(_-1));var Y=_-1,ne=n.currentTime,ce=n.currentAnimateTimings,ee=ce.duration;return v.forEach(function(ye,be){var Te=F>0?be==Y?1:F*be:u[be],Pe=Te*ee;n.currentTime=ne+ce.delay+Pe,ce.duration=Pe,i._validateStyleAst(ye,n),ye.offset=Te,a.styles.push(ye)}),a}},{key:"visitReference",value:function(t,n){return{type:8,animation:yr(this,Cu(t.animation),n),options:La(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:La(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:La(t.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,a=t.options||{};n.queryCount++,n.currentQuery=t;var o=function RB(e){var r=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(e=e.replace(TB,"")),e=e.replace(/@\*/g,Tc).replace(/@\w+/g,function(t){return Tc+"-"+t.substr(1)}).replace(/:animating/g,pp),[e,r]}(t.selector),s=W(o,2),u=s[0],l=s[1];n.currentQuerySelector=i.length?i+" "+u:u,mr(n.collectedStyles,n.currentQuerySelector,{});var c=yr(this,Cu(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:l,animation:c,originalSelector:t.selector,options:La(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push(function XV(){return new Ue(3013,Et)}());var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Oc(t.timings,n.errors,!0);return{type:12,animation:yr(this,Cu(t.animation),n),timings:i,options:null}}}]),e}(),PB=f(function e(r){d(this,e),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set});function Bc(e){return!Array.isArray(e)&&"object"==typeof e}function La(e){return e?(e=Qo(e)).params&&(e.params=function IB(e){return e?Qo(e):null}(e.params)):e={},e}function _p(e,r,t){return{duration:e,delay:r,easing:t}}function bp(e,r,t,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:r,preStyleProps:t,postStyleProps:n,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}var Cp=function(){function e(){d(this,e),this._map=new Map}return f(e,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,n){var i,a=this._map.get(t);a||this._map.set(t,a=[]),(i=a).push.apply(i,C(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),BB=new RegExp(":enter","g"),HB=new RegExp(":leave","g");function gS(e,r,t,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new UB).buildKeyframes(e,r,t,n,i,a,o,s,u,l)}var UB=function(){function e(){d(this,e)}return f(e,[{key:"buildKeyframes",value:function(t,n,i,a,o,s,u,l,c){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new Cp;var v=new GB(t,n,c,a,o,h,[]);v.options=l,v.currentTimeline.setStyles([s],null,v.errors,l),yr(this,i,v);var _=v.timelines.filter(function(ce){return ce.containsAnimation()});if(Object.keys(u).length){for(var F,Y=_.length-1;Y>=0;Y--){var ne=_[Y];if(ne.element===n){F=ne;break}}F&&!F.allowOnlyTimelineStyles()&&F.setStyles([u],null,v.errors,l)}return _.length?_.map(function(ce){return ce.buildKeyframes()}):[bp(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var i=n.subInstructions.get(n.element);if(i){var a=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(i,a,a.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var i=n.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,i){var o=n.currentTimeline.currentTime,s=null!=i.duration?Pa(i.duration):null,u=null!=i.delay?Pa(i.delay):null;return 0!==s&&t.forEach(function(l){var c=n.appendInstructionToTimeline(l,s,u);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),yr(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var i=this,a=n.subContextCount,o=n,s=t.options;if(s&&(s.params||s.delay)&&((o=n.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=jc);var u=Pa(s.delay);o.delayNextStep(u)}t.steps.length&&(t.steps.forEach(function(l){return yr(i,l,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var i=this,a=[],o=n.currentTimeline.currentTime,s=t.options&&t.options.delay?Pa(t.options.delay):0;t.steps.forEach(function(u){var l=n.createSubContext(t.options);s&&l.delayNextStep(s),yr(i,u,l),o=Math.max(o,l.currentTimeline.currentTime),a.push(l.currentTimeline)}),a.forEach(function(u){return n.currentTimeline.mergeTimelineCollectedStyles(u)}),n.transformIntoNewTimeline(o),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var i=t.strValue;return Oc(n.params?Rc(i,n.params,n.errors):i,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var i=n.currentAnimateTimings=this._visitTiming(t.timings,n),a=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(i.duration),this.visitStyle(o,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var i=n.currentTimeline,a=n.currentAnimateTimings;!a&&i.getCurrentStyleProperties().length&&i.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var i=n.currentAnimateTimings,a=n.currentTimeline.duration,o=i.duration,u=n.createSubContext().currentTimeline;u.easing=i.easing,t.styles.forEach(function(l){u.forwardTime((l.offset||0)*o),u.setStyles(l.styles,l.easing,n.errors,n.options),u.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(u),n.transformIntoNewTimeline(a+o),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var i=this,a=n.currentTimeline.currentTime,o=t.options||{},s=o.delay?Pa(o.delay):0;s&&(6===n.previousNode.type||0==a&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=jc);var u=a,l=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=l.length;var c=null;l.forEach(function(h,v){n.currentQueryIndex=v;var _=n.createSubContext(t.options,h);s&&_.delayNextStep(s),h===n.element&&(c=_.currentTimeline),yr(i,t.animation,_),_.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,_.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(u),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var i=n.parentContext,a=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),u=s*(n.currentQueryTotal-1),l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=u-l;break;case"full":l=i.currentStaggerTime}var h=n.currentTimeline;l&&h.delayNextStep(l);var v=h.currentTime;yr(this,t.animation,n),n.previousNode=t,i.currentStaggerTime=a.currentTime-v+(a.startTime-i.currentTimeline.startTime)}}]),e}(),jc={},GB=function(){function e(r,t,n,i,a,o,s,u){d(this,e),this._driver=r,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=jc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new mS(this._driver,t,0),s.push(this.currentTimeline)}return f(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var i=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=Pa(a.duration)),null!=a.delay&&(o.delay=Pa(a.delay));var s=a.params;if(s){var u=o.params;u||(u=this.options.params={}),Object.keys(s).forEach(function(l){(!n||!u.hasOwnProperty(l))&&(u[l]=Rc(s[l],u,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var i=t.params={};Object.keys(n).forEach(function(a){i[a]=n[a]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=n||this.element,o=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=jc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,i){var a={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new zB(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{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,n,i,a,o,s){var u=[];if(a&&u.push(this.element),t.length>0){t=(t=t.replace(BB,"."+this._enterClassName)).replace(HB,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),u.push.apply(u,C(c))}return!o&&0==u.length&&s.push(function ZV(e){return new Ue(3014,Et)}()),u}}]),e}(),mS=function(){function e(r,t,n,i){d(this,e),this._driver=r,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return f(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,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,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(i){n._backFill[i]=n._globalTimelineStyles[i]||Pi,n._currentKeyframe[i]=Pi}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,i,a){var o=this;n&&(this._previousKeyframe.easing=n);var s=a&&a.params||{},u=function WB(e,r){var n,t={};return e.forEach(function(i){"*"===i?(n=n||Object.keys(r)).forEach(function(a){t[a]=Pi}):oa(i,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(u).forEach(function(l){var c=Rc(u[l],s,i);o._pendingStyles[l]=c,o._localTimelineStyles.hasOwnProperty(l)||(o._backFill[l]=o._globalTimelineStyles.hasOwnProperty(l)?o._globalTimelineStyles[l]:Pi),o._updateStyle(l,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,i=Object.keys(n);0!=i.length&&(this._pendingStyles={},i.forEach(function(a){t._currentKeyframe[a]=n[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var i=t._localTimelineStyles[n];t._pendingStyles[n]=i,t._updateStyle(n,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(i){var a=n._styleSummary[i],o=t._styleSummary[i];(!a||o.time>a.time)&&n._updateStyle(i,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,i=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(h,v){var _=oa(h,!0);Object.keys(_).forEach(function(F){var Y=_[F];"!"==Y?n.add(F):Y==Pi&&i.add(F)}),a||(_.offset=v/t.duration),o.push(_)});var s=n.size?Ic(n.values()):[],u=i.size?Ic(i.values()):[];if(a){var l=o[0],c=Qo(l);l.offset=0,c.offset=1,o=[l,c]}return bp(this.element,o,s,u,this.duration,this.startTime,this.easing,!1)}}]),e}(),zB=function(e){p(t,e);var r=b(t);function t(n,i,a,o,s,u){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return d(this,t),(l=r.call(this,n,i,u.delay)).keyframes=a,l.preStyleProps=o,l.postStyleProps=s,l._stretchStartingKeyframe=c,l.timings={duration:u.duration,delay:u.delay,easing:u.easing},l}return f(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var i=this.keyframes,a=this.timings,o=a.delay,s=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&o){var l=[],c=s+o,h=o/c,v=oa(i[0],!1);v.offset=0,l.push(v);var _=oa(i[0],!1);_.offset=yS(h),l.push(_);for(var F=i.length-1,Y=1;Y<=F;Y++){var ne=oa(i[Y],!1);ne.offset=yS((o+ne.offset*s)/c),l.push(ne)}s=c,o=0,u="",i=l}return bp(this.element,i,this.preStyleProps,this.postStyleProps,s,o,u,!0)}}]),t}(mS);function yS(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(e*t)/t}var Ep=f(function e(){d(this,e)}),qB=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"normalizePropertyName",value:function(i,a){return yp(i)}},{key:"normalizeStyleValue",value:function(i,a,o,s){var u="",l=o.toString().trim();if(KB[a]&&0!==o&&"0"!==o)if("number"==typeof o)u="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push(function HV(e,r){return new Ue(3005,Et)}())}return l+u}}]),t}(Ep),KB=function(){return function QB(e){var r={};return e.forEach(function(t){return r[t]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function _S(e,r,t,n,i,a,o,s,u,l,c,h,v){return{type:0,element:e,triggerName:r,isRemovalTransition:i,fromState:t,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:v}}var wp={},bS=function(){function e(r,t,n){d(this,e),this._triggerName=r,this.ast=t,this._stateStyles=n}return f(e,[{key:"match",value:function(t,n,i,a){return function YB(e,r,t,n,i){return e.some(function(a){return a(r,t,n,i)})}(this.ast.matchers,t,n,i,a)}},{key:"buildStyles",value:function(t,n,i){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(n,i):{};return o?o.buildStyles(n,i):s}},{key:"build",value:function(t,n,i,a,o,s,u,l,c,h){var v=[],_=this.ast.options&&this.ast.options.params||wp,Y=this.buildStyles(i,u&&u.params||wp,v),ne=l&&l.params||wp,ce=this.buildStyles(a,ne,v),ee=new Set,ye=new Map,be=new Map,Te="void"===a,Pe={params:Object.assign(Object.assign({},_),ne)},qe=h?[]:gS(t,n,this.ast.animation,o,s,Y,ce,Pe,c,v),bt=0;if(qe.forEach(function(Jt){bt=Math.max(Jt.duration+Jt.delay,bt)}),v.length)return _S(n,this._triggerName,i,a,Te,Y,ce,[],[],ye,be,bt,v);qe.forEach(function(Jt){var Un=Jt.element,ni=mr(ye,Un,{});Jt.preStyleProps.forEach(function(br){return ni[br]=!0});var Hi=mr(be,Un,{});Jt.postStyleProps.forEach(function(br){return Hi[br]=!0}),Un!==n&&ee.add(Un)});var on=Ic(ee.values());return _S(n,this._triggerName,i,a,Te,Y,ce,qe,on,ye,be,bt)}}]),e}(),$B=function(){function e(r,t,n){d(this,e),this.styles=r,this.defaultParams=t,this.normalizer=n}return f(e,[{key:"buildStyles",value:function(t,n){var i=this,a={},o=Qo(this.defaultParams);return Object.keys(t).forEach(function(s){var u=t[s];null!=u&&(o[s]=u)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var u=s;Object.keys(u).forEach(function(l){var c=u[l];c.length>1&&(c=Rc(c,o,n));var h=i.normalizer.normalizePropertyName(l,n);c=i.normalizer.normalizeStyleValue(l,h,c,n),a[h]=c})}}),a}}]),e}(),ZB=function(){function e(r,t,n){var i=this;d(this,e),this.name=r,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(a){i.states[a.name]=new $B(a.style,a.options&&a.options.params||{},n)}),CS(this.states,"true","1"),CS(this.states,"false","0"),t.transitions.forEach(function(a){i.transitionFactories.push(new bS(r,a,i.states))}),this.fallbackTransition=function JB(e,r,t){return new bS(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return f(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,i,a){return this.transitionFactories.find(function(s){return s.match(t,n,i,a)})||null}},{key:"matchStyles",value:function(t,n,i){return this.fallbackTransition.buildStyles(t,n,i)}}]),e}();function CS(e,r,t){e.hasOwnProperty(r)?e.hasOwnProperty(t)||(e[t]=e[r]):e.hasOwnProperty(t)&&(e[r]=e[t])}var e3=new Cp,t3=function(){function e(r,t,n){d(this,e),this.bodyNode=r,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return f(e,[{key:"register",value:function(t,n){var i=[],o=vS(this._driver,n,i,[]);if(i.length)throw function rB(e){return new Ue(3503,Et)}();this._animations[t]=o}},{key:"_buildPlayer",value:function(t,n,i){var a=t.element,o=$k(this._driver,this._normalizer,a,t.keyframes,n,i);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var u,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],l=new Map;if(s?(u=gS(this._driver,n,s,oS,vp,{},{},a,e3,o)).forEach(function(v){var _=mr(l,v.element,{});v.postStyleProps.forEach(function(F){return _[F]=null})}):(o.push(iB()),u=[]),o.length)throw aB();l.forEach(function(v,_){Object.keys(v).forEach(function(F){v[F]=i._driver.computeStyle(_,F,Pi)})});var c=u.map(function(v){var _=l.get(v.element);return i._buildPlayer(v,{},_)}),h=aa(c);return this._playersById[t]=h,h.onDestroy(function(){return i.destroy(t)}),this.players.push(h),h}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw function oB(e){return new Ue(3301,Et)}();return n}},{key:"listen",value:function(t,n,i,a){var o=cp(n,"","","");return up(this._getPlayer(t),i,o,a),function(){}}},{key:"command",value:function(t,n,i,a){if("register"!=i)if("create"!=i){var 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(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,a[0]||{});else this.register(t,a[0])}}]),e}(),ES="ng-animate-queued",kp="ng-animate-disabled",a3="ng-star-inserted",s3=[],wS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},u3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pr="__ng_removed",Sp=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";d(this,e),this.namespaceId=t;var n=r&&r.hasOwnProperty("value"),i=n?r.value:r;if(this.value=f3(i),n){var a=Qo(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return f(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var i=this.options.params;Object.keys(n).forEach(function(a){null==i[a]&&(i[a]=n[a])})}}}]),e}(),Eu="void",Dp=new Sp(Eu),l3=function(){function e(r,t,n){d(this,e),this.id=r,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Fr(t,this._hostClassName)}return f(e,[{key:"listen",value:function(t,n,i,a){var o=this;if(!this._triggers.hasOwnProperty(n))throw function sB(e,r){return new Ue(3302,Et)}();if(null==i||0==i.length)throw function uB(e){return new Ue(3303,Et)}();if(!function h3(e){return"start"==e||"done"==e}(i))throw function lB(e,r){return new Ue(3400,Et)}();var s=mr(this._elementListeners,t,[]),u={name:n,phase:i,callback:a};s.push(u);var l=mr(this._engine.statesByElement,t,{});return l.hasOwnProperty(n)||(Fr(t,Mc),Fr(t,Mc+"-"+n),l[n]=Dp),function(){o._engine.afterFlush(function(){var c=s.indexOf(u);c>=0&&s.splice(c,1),o._triggers[n]||delete l[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw function cB(e){return new Ue(3401,Et)}();return n}},{key:"trigger",value:function(t,n,i){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(n),u=new Ap(this.id,n,t),l=this._engine.statesByElement.get(t);l||(Fr(t,Mc),Fr(t,Mc+"-"+n),this._engine.statesByElement.set(t,l={}));var c=l[n],h=new Sp(i,this.id),v=i&&i.hasOwnProperty("value");!v&&c&&h.absorbOptions(c.options),l[n]=h,c||(c=Dp);var _=h.value===Eu;if(_||c.value!==h.value){var ce=mr(this._engine.playersByElement,t,[]);ce.forEach(function(be){be.namespaceId==a.id&&be.triggerName==n&&be.queued&&be.destroy()});var ee=s.matchTransition(c.value,h.value,t,h.params),ye=!1;if(!ee){if(!o)return;ee=s.fallbackTransition,ye=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:ee,fromState:c,toState:h,player:u,isFallbackTransition:ye}),ye||(Fr(t,ES),u.onStart(function(){Yo(t,ES)})),u.onDone(function(){var be=a.players.indexOf(u);be>=0&&a.players.splice(be,1);var Te=a._engine.playersByElement.get(t);if(Te){var Pe=Te.indexOf(u);Pe>=0&&Te.splice(Pe,1)}}),this.players.push(u),ce.push(u),u}if(!g3(c.params,h.params)){var F=[],Y=s.matchStyles(c.value,c.params,F),ne=s.matchStyles(h.value,h.params,F);F.length?this._engine.reportError(F):this._engine.afterFlush(function(){Fa(t,Y),pi(t,ne)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(i,a){delete i[t]}),this._elementListeners.forEach(function(i,a){n._elementListeners.set(a,i.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(i){return i.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var i=this,a=this._engine.driver.query(t,Tc,!0);a.forEach(function(o){if(!o[Pr]){var s=i._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(u){return u.triggerLeaveAnimation(o,n,!1,!0)}):i.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return i.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,n,i,a){var o=this,s=this._engine.statesByElement.get(t),u=new Map;if(s){var l=[];if(Object.keys(s).forEach(function(c){if(u.set(c,s[c].value),o._triggers[c]){var h=o.trigger(t,c,Eu,a);h&&l.push(h)}}),l.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,u),i&&aa(l).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,i=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(i&&a){var o=new Set;i.forEach(function(s){var u=s.name;if(!o.has(u)){o.add(u);var c=n._triggers[u].fallbackTransition,h=a[u]||Dp,v=new Sp(Eu),_=new Ap(n.id,u,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:u,transition:c,fromState:h,toState:v,player:_,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var i=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var u=t;u=u.parentNode;)if(a.statesByElement.get(u)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,n);else{var c=t[Pr];(!c||c===wS)&&(a.afterFlush(function(){return i.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Fr(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,i=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,u=n._elementListeners.get(s);u&&u.forEach(function(l){if(l.name==a.triggerName){var c=cp(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,up(a.player,l.phase,c,l.callback)}}),o.markedForDestroy?n._engine.afterFlush(function(){o.destroy()}):i.push(a)}}),this._queue=[],i.sort(function(a,o){var s=a.transition.ast.depCount,u=o.transition.ast.depCount;return 0==s||0==u?s-u:n._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(i){return i.element===t})||n}}]),e}(),c3=function(){function e(r,t,n){d(this,e),this.bodyNode=r,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(i,a){}}return f(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(i){i.queued&&t.push(i)})}),t}},{key:"createNamespace",value:function(t,n){var i=new l3(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[t]=i}},{key:"_balanceNamespaceList",value:function(t,n){var i=this._namespaceList,a=this.namespacesByHostElement,o=i.length-1;if(o>=0){var s=!1;if(void 0!==this.driver.getParentElement)for(var u=this.driver.getParentElement(n);u;){var l=a.get(u);if(l){var c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}u=this.driver.getParentElement(u)}else for(var h=o;h>=0;h--)if(this.driver.containsElement(i[h].hostElement,n)){i.splice(h+1,0,t),s=!0;break}s||i.unshift(t)}else i.push(t);return a.set(n,t),t}},{key:"register",value:function(t,n){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,n)),i}},{key:"registerTrigger",value:function(t,n,i){var a=this._namespaceLookup[t];a&&a.register(n,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var i=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(a.hostElement),delete i._namespaceLookup[t];var o=i._namespaceList.indexOf(a);o>=0&&i._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,i=this.statesByElement.get(t);if(i)for(var a=Object.keys(i),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){var u=this._fetchNamespace(t);u&&u.insertNode(n,i)}a&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Fr(t,kp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Yo(t,kp))}},{key:"removeNode",value:function(t,n,i,a){if(Hc(n)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(n,a):this.markElementAsRemoved(t,n,!1,a),i){var s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,a)}}else this._onRemovalComplete(n,a)}},{key:"markElementAsRemoved",value:function(t,n,i,a,o){this.collectedLeaveElements.push(n),n[Pr]={namespaceId:t,setForRemoval:a,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,n,i,a,o){return Hc(n)?this._fetchNamespace(t).listen(n,i,a,o):function(){}}},{key:"_buildInstruction",value:function(t,n,i,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,a,t.fromState.options,t.toState.options,n,o)}},{key:"destroyInnerAnimations",value:function(t){var n=this,i=this.driver.query(t,Tc,!0);i.forEach(function(a){return n.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,pp,!0)).forEach(function(a){return n.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(i){i.queued?i.markedForDestroy=!0:i.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(i){return i.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return aa(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var i,n=this,a=t[Pr];if(a&&a.setForRemoval){if(t[Pr]=wS,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(i=t.classList)||void 0===i?void 0:i.contains(kp))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){n.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(v,_){return t._balanceNamespaceList(v,_)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;ni--)this._namespaceList[ni].drainQueuedTransitions(n).forEach(function(He){var rt=He.player,ut=He.element;if(Jt.push(rt),i.collectedEnterElements.length){var pn=ut[Pr];if(pn&&pn.setForMove){if(pn.previousTriggersValues&&pn.previousTriggersValues.has(He.triggerName)){var fs=pn.previousTriggersValues.get(He.triggerName),da=i.statesByElement.get(He.element);da&&da[He.triggerName]&&(da[He.triggerName].value=fs)}return void rt.destroy()}}var Xu=!_||!i.driver.containsElement(_,ut),Rd=bt.get(ut),Xg=ne.get(ut),Nn=i._buildInstruction(He,a,Xg,Rd,Xu);if(Nn.errors&&Nn.errors.length)Un.push(Nn);else{if(Xu)return rt.onStart(function(){return Fa(ut,Nn.fromStyles)}),rt.onDestroy(function(){return pi(ut,Nn.toStyles)}),void o.push(rt);if(He.isFallbackTransition)return rt.onStart(function(){return Fa(ut,Nn.fromStyles)}),rt.onDestroy(function(){return pi(ut,Nn.toStyles)}),void o.push(rt);var Id=[];Nn.timelines.forEach(function(Gi){Gi.stretchStartingKeyframe=!0,i.disabledNodes.has(Gi.element)||Id.push(Gi)}),Nn.timelines=Id,a.append(ut,Nn.timelines),u.push({instruction:Nn,player:rt,element:ut}),Nn.queriedElements.forEach(function(Gi){return mr(l,Gi,[]).push(rt)}),Nn.preStyleProps.forEach(function(Gi,Zu){var Pd=Object.keys(Gi);if(Pd.length){var Ka=c.get(Zu);Ka||c.set(Zu,Ka=new Set),Pd.forEach(function(Zg){return Ka.add(Zg)})}}),Nn.postStyleProps.forEach(function(Gi,Zu){var Pd=Object.keys(Gi),Ka=h.get(Zu);Ka||h.set(Zu,Ka=new Set),Pd.forEach(function(Zg){return Ka.add(Zg)})})}});if(Un.length){var br=[];Un.forEach(function(He){br.push(function fB(e,r){return new Ue(3505,Et)}())}),Jt.forEach(function(He){return He.destroy()}),this.reportError(br)}var Ui=new Map,ca=new Map;u.forEach(function(He){var rt=He.element;a.has(rt)&&(ca.set(rt,rt),i._beforeAnimationBuild(He.player.namespaceId,He.instruction,Ui))}),o.forEach(function(He){var rt=He.element;i._getPreviousPlayers(rt,!1,He.namespaceId,He.triggerName,null).forEach(function(pn){mr(Ui,rt,[]).push(pn),pn.destroy()})});var nx=ee.filter(function(He){return xS(He,c,h)}),Od=new Map;SS(Od,this.driver,be,h,Pi).forEach(function(He){xS(He,c,h)&&nx.push(He)});var Wg=new Map;Y.forEach(function(He,rt){SS(Wg,i.driver,new Set(He),c,"!")}),nx.forEach(function(He){var rt=Od.get(He),ut=Wg.get(He);Od.set(He,Object.assign(Object.assign({},rt),ut))});var qg=[],rx=[],ix={};u.forEach(function(He){var rt=He.element,ut=He.player,pn=He.instruction;if(a.has(rt)){if(v.has(rt))return ut.onDestroy(function(){return pi(rt,pn.toStyles)}),ut.disabled=!0,ut.overrideTotalTime(pn.totalTime),void o.push(ut);var fs=ix;if(ca.size>1){for(var da=rt,Xu=[];da=da.parentNode;){var Rd=ca.get(da);if(Rd){fs=Rd;break}Xu.push(da)}Xu.forEach(function(Id){return ca.set(Id,fs)})}var Xg=i._buildAnimation(ut.namespaceId,pn,Ui,s,Wg,Od);if(ut.setRealPlayer(Xg),fs===ix)qg.push(ut);else{var Nn=i.playersByElement.get(fs);Nn&&Nn.length&&(ut.parentPlayer=aa(Nn)),o.push(ut)}}else Fa(rt,pn.fromStyles),ut.onDestroy(function(){return pi(rt,pn.toStyles)}),rx.push(ut),v.has(rt)&&o.push(ut)}),rx.forEach(function(He){var rt=s.get(He.element);if(rt&&rt.length){var ut=aa(rt);He.setRealPlayer(ut)}}),o.forEach(function(He){He.parentPlayer?He.syncPlayerEvents(He.parentPlayer):He.destroy()});for(var Kg=0;Kg0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,i):new bu(t.duration,t.delay)}}]),e}(),Ap=function(){function e(r,t,n){d(this,e),this.namespaceId=r,this.triggerName=t,this.element=n,this._player=new bu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return f(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){n._queuedCallbacks[i].forEach(function(a){return up(t,i,void 0,a)})}),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 n=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){mr(this._queuedCallbacks,t,[]).push(n)}},{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 n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function f3(e){return null!=e?e:null}function Hc(e){return e&&1===e.nodeType}function kS(e,r){var t=e.style.display;return e.style.display=null!=r?r:"none",t}function SS(e,r,t,n,i){var a=[];t.forEach(function(u){return a.push(kS(u))});var o=[];n.forEach(function(u,l){var c={};u.forEach(function(h){var v=c[h]=r.computeStyle(l,h,i);(!v||0==v.length)&&(l[Pr]=u3,o.push(l))}),e.set(l,c)});var s=0;return t.forEach(function(u){return kS(u,a[s++])}),o}function DS(e,r){var t=new Map;if(e.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var i=new Set(r),a=new Map;function o(s){if(!s)return 1;var u=a.get(s);if(u)return u;var l=s.parentNode;return u=t.has(l)?l:i.has(l)?1:o(l),a.set(s,u),u}return r.forEach(function(s){var u=o(s);1!==u&&t.get(u).push(s)}),t}function Fr(e,r){var t;null===(t=e.classList)||void 0===t||t.add(r)}function Yo(e,r){var t;null===(t=e.classList)||void 0===t||t.remove(r)}function v3(e,r,t){aa(t).onDone(function(){return e.processLeaveNode(r)})}function AS(e,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function m3(e,r){var t=null,n=null;return Array.isArray(r)&&r.length?(t=xp(r[0]),r.length>1&&(n=xp(r[r.length-1]))):r&&(t=xp(r)),t||n?new y3(e,t,n):null}var y3=function(){var e=function(){function r(t,n,i){d(this,r),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return f(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&pi(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(pi(this._element,this._initialStyles),this._endStyles&&(pi(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Fa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Fa(this._element,this._endStyles),this._endStyles=null),pi(this._element,this._initialStyles),this._state=3)}}]),r}();return e.initialStylesByElement=new WeakMap,e}();function xp(e){for(var r=null,t=Object.keys(e),n=0;n5&&void 0!==arguments[5]?arguments[5]:[],u=0==a?"both":"forwards",l={duration:i,delay:a,fill:u};o&&(l.easing=o);var c={},h=s.filter(function(_){return _ instanceof MS});wB(i,a)&&h.forEach(function(_){var F=_.currentSnapshot;Object.keys(F).forEach(function(Y){return c[Y]=F[Y]})});var v=m3(t,n=kB(t,n=n.map(function(_){return oa(_,!1)}),c));return new MS(t,n,l,v)}}]),e}(),C3=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=i.createRenderer(a.body,{id:"0",encapsulation:Br.None,styles:[],data:{animation:[]}}),o}return f(n,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?qk(a):a;return TS(this._renderer,null,o,"register",[s]),new E3(o,this._renderer)}}]),n}(Wk);return e.\u0275fac=function(t){return new(t||e)(de(Js),de(ot))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),E3=function(e){p(t,e);var r=b(t);function t(n,i){var a;return d(this,t),(a=r.call(this))._id=n,a._renderer=i,a}return f(t,[{key:"create",value:function(i,a){return new w3(this._id,i,a||{},this._renderer)}}]),t}(PV),w3=function(){function e(r,t,n,i){d(this,e),this.id=r,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return f(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,i),this.engine.onInsert(this.namespaceId,n,t,a)}},{key:"removeChild",value:function(t,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate,i)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,i,a){this.delegate.setAttribute(t,n,i,a)}},{key:"removeAttribute",value:function(t,n,i){this.delegate.removeAttribute(t,n,i)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,i,a){this.delegate.setStyle(t,n,i,a)}},{key:"removeStyle",value:function(t,n,i){this.delegate.removeStyle(t,n,i)}},{key:"setProperty",value:function(t,n,i){"@"==n.charAt(0)&&n==OS?this.disableAnimations(t,!!i):this.delegate.setProperty(t,n,i)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,i){return this.delegate.listen(t,n,i)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),S3=function(e){p(t,e);var r=b(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,i,a,o)).factory=n,s.namespaceId=i,s}return f(t,[{key:"setProperty",value:function(i,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==OS?this.disableAnimations(i,o=void 0===o||!!o):this.engine.process(this.namespaceId,i,a.substr(1),o):this.delegate.setProperty(i,a,o)}},{key:"listen",value:function(i,a,o){var s=this;if("@"==a.charAt(0)){var u=function D3(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(i),l=a.substr(1),c="";if("@"!=l.charAt(0)){var h=function A3(e){var r=e.indexOf(".");return[e.substring(0,r),e.substr(r+1)]}(l),v=W(h,2);l=v[0],c=v[1]}return this.engine.listen(this.namespaceId,u,l,c,function(_){s.factory.scheduleListenerCallback(_._data||-1,o,_)})}return this.delegate.listen(i,a,o)}}]),t}(RS),x3=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o){return d(this,n),t.call(this,i.body,a,o)}return f(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(Uc);return e.\u0275fac=function(t){return new(t||e)(de(ot),de(hp),de(Ep))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),gi=new Ne("AnimationModuleType"),IS=[{provide:Wk,useClass:C3},{provide:Ep,useFactory:function M3(){return new qB}},{provide:Uc,useClass:x3},{provide:Js,useFactory:function T3(e,r,t){return new k3(e,r,t)},deps:[gc,Uc,st]}],PS=[{provide:hp,useFactory:function(){return new b3}},{provide:gi,useValue:"BrowserAnimations"}].concat(IS),O3=[{provide:hp,useClass:iS},{provide:gi,useValue:"NoopAnimations"}].concat(IS),R3=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"withConfig",value:function(n){return{ngModule:r,providers:n.disableAnimations?O3:PS}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:PS,imports:[Ew]}),e}(),_r=function(e){p(t,e);var r=b(t);function t(n){var i;return d(this,t),(i=r.call(this))._value=n,i}return f(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(i){var a=O(I(t.prototype),"_subscribe",this).call(this,i);return!a.closed&&i.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(i){O(I(t.prototype),"next",this).call(this,this._value=i)}}]),t}(Fe);function FS(e){for(var r in e){var t=e[r]||"";switch(r){case"display":e.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+r]=t;break;case"flex-direction":e["-webkit-flex-direction"]=t=t||"row",e["flex-direction"]=t;break;case"order":e.order=e["-webkit-"+r]=isNaN(+t)?"0":t}}return e}var Mp="inline",zc=["row","column","row-reverse","column-reverse"];function LS(e){var t=W(NS(e),3);return function P3(e){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}(t[0],t[1],t[2])}function NS(e){var r,n=W((e=null!==(r=null==e?void 0:e.toLowerCase())&&void 0!==r?r:"").split(" "),3),i=n[0],a=n[1],o=n[2];return zc.find(function(s){return s===i})||(i=zc[0]),a===Mp&&(a=o!==Mp?o:"",o=Mp),[i,I3(a),!!o]}function wu(e){return W(NS(e),1)[0].indexOf("row")>-1}function I3(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}function Li(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;d(this,e),this.matches=r,this.mediaQuery=t,this.mqAlias=n,this.suffix=i,this.priority=a,this.property=""}return f(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),N3=function(){var e=function(){function r(){d(this,r),this.stylesheet=new Map}return f(r,[{key:"addStyleToElement",value:function(n,i,a){var o=this.stylesheet.get(n);o?o.set(i,a):this.stylesheet.set(n,new Map([[i,a]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(n,i){var a=this.stylesheet.get(n),o="";if(a){var s=a.get(i);("number"==typeof s||"string"==typeof s)&&(o=s+"")}return o}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Op={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ti=new Ne("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Op}}),$o=new Ne("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Rp=new Ne("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function BS(e,r){return e=e?e.clone():new ku,r&&(e.mqAlias=r.alias,e.mediaQuery=r.mediaQuery,e.suffix=r.suffix,e.priority=r.priority),e}var hn=function(){function e(){d(this,e),this.shouldCache=!0}return f(e,[{key:"sideEffect",value:function(t,n,i){}}]),e}(),Qt=function(){var e=function(){function r(t,n,i,a){d(this,r),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=a}return f(r,[{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o={};"string"==typeof i&&(o[i]=a,i=o),o=this.layoutConfig.disableVendorPrefixes?i:FS(i),this._applyMultiValueStyleToElement(o,n)}},{key:"applyStyleToElements",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=this.layoutConfig.disableVendorPrefixes?n:FS(n);a.forEach(function(s){i._applyMultiValueStyleToElement(o,s)})}},{key:"getFlowDirection",value:function(n){var i="flex-direction",a=this.lookupStyle(n,i);return[a||"row",this.lookupInlineStyle(n,i)||Ho(this._platformId)&&this._serverModuleLoaded?a:""]}},{key:"hasWrap",value:function(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}},{key:"lookupAttributeValue",value:function(n,i){var a;return null!==(a=n.getAttribute(i))&&void 0!==a?a:""}},{key:"lookupInlineStyle",value:function(n,i){return xa(this._platformId)?n.style.getPropertyValue(i):function V3(e,r){var t;return null!==(t=jS(e)[r])&&void 0!==t?t:""}(n,i)}},{key:"lookupStyle",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="";if(n){var s=o=this.lookupInlineStyle(n,i);s||(xa(this._platformId)?a||(o=getComputedStyle(n).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(n,i)))}return o?o.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(n,i){var a=this;Object.keys(n).sort().forEach(function(o){var s=n[o],u=Array.isArray(s)?s:[s];u.sort();var c,l=K(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;h=h?h+"":"",xa(a._platformId)||!a._serverModuleLoaded?xa(a._platformId)?i.style.setProperty(o,h):B3(i,o,h):a._serverStylesheet.addStyleToElement(i,o,h)}}catch(v){l.e(v)}finally{l.f()}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(N3),de($o),de(pr),de(ti))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function B3(e,r,t){r=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var n=jS(e);n[r]=null!=t?t:"",function j3(e,r){var t="";for(var n in r)r[n]&&(t+="".concat(n,":").concat(r[n],";"));e.setAttribute("style",t)}(e,n)}function jS(e){var r={},t=e.getAttribute("style");if(t)for(var n=t.split(/;+/g),i=0;i0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));r[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return r}function Su(e,r){return(r&&r.priority||0)-(e&&e.priority||0)}function H3(e,r){return(e.priority||0)-(r.priority||0)}var Ip=function(){var e=function(){function r(t,n,i){d(this,r),this._zone=t,this._platformId=n,this._document=i,this.source=new _r(new ku(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return f(r,[{key:"activations",get:function(){var n=[];return this.registry.forEach(function(i,a){i.matches&&n.push(a)}),n}},{key:"isActive",value:function(n){var i,a=this.registry.get(n);return null!==(i=null==a?void 0:a.matches)&&void 0!==i?i:this.registerQuery(n).some(function(o){return o.matches})}},{key:"observe",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&n.length){var o=this._observable$.pipe(fn(function(u){return!a||n.indexOf(u.mediaQuery)>-1})),s=new ct(function(u){var l=i.registerQuery(n);if(l.length){var c=l.pop();l.forEach(function(h){u.next(h)}),i.source.next(c)}u.complete()});return Qa(s,o)}return this._observable$}},{key:"registerQuery",value:function(n){var i=this,a=Array.isArray(n)?n:[n],o=[];return function U3(e,r){var t=e.filter(function(o){return!HS[o]});if(t.length>0){var n=t.join(", ");try{var i=r.createElement("style");if(i.setAttribute("type","text/css"),!i.styleSheet){var a="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(n," {.fx-query-test{ }}\n");i.appendChild(r.createTextNode(a))}r.head.appendChild(i),t.forEach(function(o){return HS[o]=i})}catch(o){console.error(o)}}}(a,this._document),a.forEach(function(s){var u=function(h){i._zone.run(function(){return i.source.next(new ku(h.matches,s))})},l=i.registry.get(s);l||((l=i.buildMQL(s)).addListener(u),i.pendingRemoveListenerFns.push(function(){return l.removeListener(u)}),i.registry.set(s,l)),l.matches&&o.push(new ku(!0,s))}),o}},{key:"ngOnDestroy",value:function(){for(var n;n=this.pendingRemoveListenerFns.pop();)n()}},{key:"buildMQL",value:function(n){return function G3(e,r){return r&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(n,xa(this._platformId))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(st),de(pr),de(ot))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),HS={},z3=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],US="(orientation: portrait) and (max-width: 599.98px)",GS="(orientation: landscape) and (max-width: 959.98px)",zS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",qS="(orientation: portrait) and (min-width: 840px)",KS="(orientation: landscape) and (min-width: 1280px)",Ni={HANDSET:"".concat(US,", ").concat(GS),TABLET:"".concat(zS," , ").concat(WS),WEB:"".concat(qS,", ").concat(KS," "),HANDSET_PORTRAIT:"".concat(US),TABLET_PORTRAIT:"".concat(zS," "),WEB_PORTRAIT:"".concat(qS),HANDSET_LANDSCAPE:"".concat(GS),TABLET_LANDSCAPE:"".concat(WS),WEB_LANDSCAPE:"".concat(KS)},W3=[{alias:"handset",priority:2e3,mediaQuery:Ni.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ni.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ni.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ni.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ni.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ni.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ni.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ni.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ni.WEB_PORTRAIT,overlapping:!0}],q3=/(\.|-|_)/g;function K3(e){var r=e.length>0?e.charAt(0):"",t=e.length>1?e.slice(1):"";return r.toUpperCase()+t}function Y3(e){return e.forEach(function(r){r.suffix||(r.suffix=function Q3(e){return e.replace(q3,"|").split("|").map(K3).join("")}(r.alias),r.overlapping=!!r.overlapping)}),e}var X3=new Ne("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var r=co(Rp),t=co(ti),n=[].concat.apply([],(r||[]).map(function(a){return Array.isArray(a)?a:[a]}));return function $3(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t={};return e.forEach(function(n){t[n.alias]=n}),r.forEach(function(n){t[n.alias]?Li(t[n.alias],n):t[n.alias]=n}),Y3(Object.keys(t).map(function(n){return t[n]}))}((t.disableDefaultBps?[]:z3).concat(t.addOrientationBps?W3:[]),n)}}),Pp=function(){var e=function(){function r(t){d(this,r),this.findByMap=new Map,this.items=C(t).sort(H3)}return f(r,[{key:"findByAlias",value:function(n){return n?this.findWithPredicate(n,function(i){return i.alias===n}):null}},{key:"findByQuery",value:function(n){return this.findWithPredicate(n,function(i){return i.mediaQuery===n})}},{key:"overlappings",get:function(){return this.items.filter(function(n){return n.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(n){return n.alias})}},{key:"suffixes",get:function(){return this.items.map(function(n){var i;return null!==(i=null==n?void 0:n.suffix)&&void 0!==i?i:""})}},{key:"findWithPredicate",value:function(n,i){var a,o=this.findByMap.get(n);return o||(o=null!==(a=this.items.find(i))&&void 0!==a?a:null,this.findByMap.set(n,o)),null!=o?o:null}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(X3))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Xo="print",Z3={alias:Xo,mediaQuery:Xo,priority:1e3},J3=function(){var e=function(){function r(t,n,i){d(this,r),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new ej,this.deactivations=[]}return f(r,[{key:"withPrintQuery",value:function(n){return[].concat(C(n),[Xo])}},{key:"isPrintEvent",value:function(n){return n.mediaQuery.startsWith(Xo)}},{key:"printAlias",get:function(){var n;return C(null!==(n=this.layoutConfig.printWithBreakpoints)&&void 0!==n?n:[])}},{key:"printBreakPoints",get:function(){var n=this;return this.printAlias.map(function(i){return n.breakpoints.findByAlias(i)}).filter(function(i){return null!==i})}},{key:"getEventBreakpoints",value:function(n){var a=this.breakpoints.findByQuery(n.mediaQuery);return(a?[].concat(C(this.printBreakPoints),[a]):this.printBreakPoints).sort(Su)}},{key:"updateEvent",value:function(n){var i,a=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(a=this.getEventBreakpoints(n)[0],n.mediaQuery=null!==(i=null==a?void 0:a.mediaQuery)&&void 0!==i?i:""),BS(n,a)}},{key:"registerBeforeAfterPrintHooks",value:function(n){var i=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var a=function(){i.isPrinting||(i.isPrintingBeforeAfterEvent=!0,i.startPrinting(n,i.getEventBreakpoints(new ku(!0,Xo))),n.updateStyles())},o=function(){i.isPrintingBeforeAfterEvent=!1,i.isPrinting&&(i.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",a),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(a),this.afterPrintEventListeners.push(o)}}},{key:"interceptEvents",value:function(n){var i=this;return function(a){i.isPrintEvent(a)?a.matches&&!i.isPrinting?(i.startPrinting(n,i.getEventBreakpoints(a)),n.updateStyles()):!a.matches&&i.isPrinting&&!i.isPrintingBeforeAfterEvent&&(i.stopPrinting(n),n.updateStyles()):i.collectActivations(n,a)}}},{key:"blockPropagation",value:function(){var n=this;return function(i){return!(n.isPrinting||n.isPrintEvent(i))}}},{key:"startPrinting",value:function(n,i){this.isPrinting=!0,this.formerActivations=n.activatedBreakpoints,n.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}},{key:"stopPrinting",value:function(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(n,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){var a=this.breakpoints.findByQuery(i.mediaQuery);if(a){var o=this.formerActivations&&this.formerActivations.includes(a),s=!this.formerActivations&&n.activatedBreakpoints.includes(a);(o||s)&&(this.deactivations.push(a),this.deactivations.sort(Su))}}}}},{key:"ngOnDestroy",value:function(){var n=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("beforeprint",i)}),this.afterPrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("afterprint",i)}))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Pp),de(ti),de(ot))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ej=function(){function e(){d(this,e),this.printBreakpoints=[]}return f(e,[{key:"addPrintBreakpoints",value:function(t){var n=this;return t.push(Z3),t.sort(Su),t.forEach(function(i){return n.addBreakpoint(i)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(t){t&&void 0===this.printBreakpoints.find(function(i){return i.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=function tj(e){var r;return null!==(r=null==e?void 0:e.mediaQuery.startsWith(Xo))&&void 0!==r&&r}(t)?[t].concat(C(this.printBreakpoints)):[].concat(C(this.printBreakpoints),[t]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}(),Zt=function(){var e=function(){function r(t,n,i){d(this,r),this.matchMedia=t,this.breakpoints=n,this.hook=i,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Fe,this.observeActivations()}return f(r,[{key:"activatedAlias",get:function(){var n,i;return null!==(i=null===(n=this.activatedBreakpoints[0])||void 0===n?void 0:n.alias)&&void 0!==i?i:""}},{key:"activatedBreakpoints",get:function(){return C(this._activatedBreakpoints)},set:function(n){this._activatedBreakpoints=C(n)}},{key:"useFallbacks",set:function(n){this._useFallbacks=n}},{key:"onMediaChange",value:function(n){var i=this.findByQuery(n.mediaQuery);if(i){n=BS(n,i);var a=this.activatedBreakpoints.indexOf(i);n.matches&&-1===a?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Su),this.updateStyles()):!n.matches&&-1!==a&&(this._activatedBreakpoints.splice(a,1),this._activatedBreakpoints.sort(Su),this.updateStyles())}}},{key:"init",value:function(n,i,a,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];QS(this.updateMap,n,i,a),QS(this.clearMap,n,i,o),this.buildElementKeyMap(n,i),this.watchExtraTriggers(n,i,s)}},{key:"getValue",value:function(n,i,a){var o=this.elementMap.get(n);if(o){var s=void 0!==a?o.get(a):this.getActivatedValues(o,i);if(s)return s.get(i)}}},{key:"hasValue",value:function(n,i){var a=this.elementMap.get(n);if(a){var o=this.getActivatedValues(a,i);if(o)return void 0!==o.get(i)||!1}return!1}},{key:"setValue",value:function(n,i,a,o){var s,u=this.elementMap.get(n);if(u){var l=(null!==(s=u.get(o))&&void 0!==s?s:new Map).set(i,a);u.set(o,l),this.elementMap.set(n,u)}else u=(new Map).set(o,(new Map).set(i,a)),this.elementMap.set(n,u);var c=this.getValue(n,i);void 0!==c&&this.updateElement(n,i,c)}},{key:"trackValue",value:function(n,i){return this.subject.asObservable().pipe(fn(function(a){return a.element===n&&a.key===i}))}},{key:"updateStyles",value:function(){var n=this;this.elementMap.forEach(function(i,a){var o=new Set(n.elementKeyMap.get(a)),s=n.getActivatedValues(i);s&&s.forEach(function(u,l){n.updateElement(a,l,u),o.delete(l)}),o.forEach(function(u){if(s=n.getActivatedValues(i,u)){var l=s.get(u);n.updateElement(a,u,l)}else n.clearElement(a,u)})})}},{key:"clearElement",value:function(n,i){var a=this.clearMap.get(n);if(a){var o=a.get(i);o&&(o(),this.subject.next({element:n,key:i,value:""}))}}},{key:"updateElement",value:function(n,i,a){var o=this.updateMap.get(n);if(o){var s=o.get(i);s&&(s(a),this.subject.next({element:n,key:i,value:a}))}}},{key:"releaseElement",value:function(n){var i=this.watcherMap.get(n);i&&(i.forEach(function(o){return o.unsubscribe()}),this.watcherMap.delete(n));var a=this.elementMap.get(n);a&&(a.forEach(function(o,s){return a.delete(s)}),this.elementMap.delete(n))}},{key:"triggerUpdate",value:function(n,i){var a=this,o=this.elementMap.get(n);if(o){var s=this.getActivatedValues(o,i);s&&(i?this.updateElement(n,i,s.get(i)):s.forEach(function(u,l){return a.updateElement(n,l,u)}))}}},{key:"buildElementKeyMap",value:function(n,i){var a=this.elementKeyMap.get(n);a||this.elementKeyMap.set(n,a=new Set),a.add(i)}},{key:"watchExtraTriggers",value:function(n,i,a){var o=this;if(a&&a.length){var s=this.watcherMap.get(n);if(s||this.watcherMap.set(n,s=new Map),!s.get(i)){var l=Qa.apply(void 0,C(a)).subscribe(function(){var c=o.getValue(n,i);o.updateElement(n,i,c)});s.set(i,l)}}}},{key:"findByQuery",value:function(n){return this.breakpoints.findByQuery(n)}},{key:"getActivatedValues",value:function(n,i){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),n)}},{key:"addStyles",value:function(n,i){var a=this.styleBuilder,o=a.shouldCache,s=this.styleCache.get(n);(!s||!o)&&(s=a.buildStyles(n,i),o&&this.styleCache.set(n,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),a.sideEffect(n,s,i)}},{key:"clearStyles",value:function(){var n=this;Object.keys(this.mru).forEach(function(i){n.mru[i]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n){var a=this.styler.getFlowDirection(n),o=W(a,2),s=o[0],u=o[1];if(!u&&i){var l=LS(s),c=[n];this.styler.applyStyleToElements(l,c)}return s.trim()}return"row"}},{key:"hasWrap",value:function(n){return this.styler.hasWrap(n)}},{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(a,n,i)}},{key:"setValue",value:function(n,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,i)}},{key:"updateWithValue",value:function(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(hn),j(Qt),j(Zt))},e.\u0275dir=Ee({type:e,features:[Wn]}),e}();function YS(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",n=[r,t,e],i=e.indexOf("calc");if(i>0){n[2]=$S(e.substring(i).trim());var a=e.substr(0,i).trim().split(" ");2==a.length&&(n[0]=a[0],n[1]=a[1])}else if(0==i)n[2]=$S(e.trim());else{var o=e.split(" ");n=3===o.length?o:[r,t,e]}return n}function $S(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Wc(e,r){if(void 0===r)return e;var t=function(i){var a=+i.slice(0,-"x".length);return e.endsWith("x")&&!isNaN(a)?"".concat(a*r.value).concat(r.unit):e};return e.includes(" ")?e.split(" ").map(t).join(" "):t(e)}function Ot(e){return null!=e&&"false"!=="".concat(e)}function Du(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ij(e)?Number(e):r}function ij(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function qc(e){return Array.isArray(e)?e:[e]}function kn(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Vi(e){return e instanceof Ye?e.nativeElement:e}function rn(e){return Yt(function(r,t){or(e).subscribe(zt(t,function(){return t.complete()},Oe)),!t.closed&&r.subscribe(t)})}var cj=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i,null,a,o)).ngClassInstance=c,h.DIRECTIVE_KEY="ngClass",h.ngClassInstance||(h.ngClassInstance=new lc(s,u,i,l)),h.init(),h.setValue("",""),h}return f(n,[{key:"klass",set:function(a){this.ngClassInstance.klass=a,this.setValue(a,"")}},{key:"updateWithValue",value:function(a){this.ngClassInstance.ngClass=a,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(Qt),j(Zt),j(ou),j(Sa),j(Yr),j(lc,10))},e.\u0275dir=Ee({type:e,inputs:{klass:["class","klass"]},features:[Re]}),e}(),dj=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],ZS=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=dj,i}return f(n)}(cj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Re]}),e}(),fj=function(){var e=function(r){p(n,r);var t=b(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){return{display:"true"===a?o.display||(o.isServer?"initial":""):"none"}}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),hj=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i,a,o,s)).layoutConfig=u,h.platformId=l,h.serverModuleLoaded=c,h.DIRECTIVE_KEY="show-hide",h.display="",h.hasLayout=!1,h.hasFlexChild=!1,h}return f(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var a=Array.from(this.nativeElement.children),o=0;o0&&void 0!==arguments[0])||arguments[0];if(""!==a){var o=Ho(this.platformId);this.addStyles(a?"true":"false",{display:this.display,isServer:o}),o&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(fj),j(Qt),j(Zt),j(ti),j(pr),j($o))},e.\u0275dir=Ee({type:e,features:[Re,Wn]}),e}(),Fp=new WeakMap,vj=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],JS=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=vj,i}return f(n)}(hj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[Re]}),e}(),o0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp]]}),e}(),Cj=new Ne("cdk-dir-doc",{providedIn:"root",factory:function Ej(){return co(ot)}}),wj=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,sa=function(){var e=function(){function r(t){d(this,r),this.value="ltr",this.change=new Dt,t&&(this.value=function kj(e){var r=(null==e?void 0:e.toLowerCase())||"";return"auto"===r&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wj.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}return f(r,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Cj,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Zo=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),Sj=function(){var e=function(r){p(n,r);var t=b(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){var s=o.display,u=LS(a);return Object.assign(Object.assign({},u),{display:"none"===s?s:u.display})}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Dj=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],Aj=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,i,o,a,s))._config=u,l.DIRECTIVE_KEY="layout",l.init(),l}return f(n,[{key:"updateWithValue",value:function(a){var o,u=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(o=s0.get(u))&&void 0!==o?o:new Map,s0.set(u,this.styleCache),this.currentValue!==a&&(this.addStyles(a,{display:u}),this.currentValue=a)}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(Qt),j(Sj),j(Zt),j(ti))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),Jo=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=Dj,i}return f(n)}(Aj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Re]}),e}(),s0=new Map,u0={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},xj=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._styler=i,o._config=a,o}return f(n,[{key:"buildStyles",value:function(a,o){return a.endsWith(Kc)?function Lj(e,r){var n=W(e.split(" "),2),i=n[0],a=n[1],s=function(v){return"-".concat(v)},u="0px",l=s(null!=a?a:i),c="0px";return"rtl"===r?c=s(i):u=s(i),{margin:"0px ".concat(u," ").concat(l," ").concat(c)}}(a=Wc(a=a.slice(0,a.indexOf(Kc)),this._config.multiplier),o.directionality):{}}},{key:"sideEffect",value:function(a,o,s){var u=s.items;if(a.endsWith(Kc)){var l=function Fj(e,r){var n=W(e.split(" "),2),i=n[0],a=n[1],s="0px",u=null!=a?a:i,l="0px";return"rtl"===r?l=i:s=i,{padding:"0px ".concat(s," ").concat(u," ").concat(l)}}(a=Wc(a=a.slice(0,a.indexOf(Kc)),this._config.multiplier),s.directionality);this._styler.applyStyleToElements(l,s.items)}else{a=Wc(a,this._config.multiplier),a=this.addFallbackUnit(a);var c=u.pop(),h=function Nj(e,r){var t=l0(r.directionality,r.layout),n=Object.assign({},u0);return n[t]=e,n}(a,s);this._styler.applyStyleToElements(h,u),this._styler.applyStyleToElements(u0,[c])}}},{key:"addFallbackUnit",value:function(a){return isNaN(+a)?a:"".concat(a).concat(this._config.defaultUnit)}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(de(Qt),de(ti))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Mj=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],Tj=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l){var c;d(this,n),(c=t.call(this,i,u,s,l)).zone=a,c.directionality=o,c.styleUtils=s,c.layout="row",c.DIRECTIVE_KEY="layout-gap",c.observerSubject=new Fe;var h=[c.directionality.change,c.observerSubject.asObservable()];return c.init(h),c.marshal.trackValue(c.nativeElement,"layout").pipe(rn(c.destroySubject)).subscribe(c.onLayoutChange.bind(q(c))),c}return f(n,[{key:"childrenNodes",get:function(){for(var a=this.nativeElement.children,o=[],s=a.length;s--;)o[s]=a[s];return o}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){O(I(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(a){var o=this,u=a.value.split(" ");this.layout=u[0],zc.find(function(l){return l===o.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(a){var o=this,s=this.childrenNodes.filter(function(c){return 1===c.nodeType&&o.willDisplay(c)}).sort(function(c,h){var v=+o.styler.lookupStyle(c,"order"),_=+o.styler.lookupStyle(h,"order");return isNaN(v)||isNaN(_)||v===_?0:v>_?1:-1});if(s.length>0){var u=this.directionality.value,l=this.layout;"row"===l&&"rtl"===u?this.styleCache=Oj:"row"===l&&"rtl"!==u?this.styleCache=Ij:"column"===l&&"rtl"===u?this.styleCache=Rj:"column"===l&&"rtl"!==u&&(this.styleCache=Pj),this.addStyles(a,{directionality:u,items:s,layout:l})}}},{key:"clearStyles",value:function(){var a=Object.keys(this.mru).length>0,o=a?"padding":l0(this.directionality.value,this.layout);a&&O(I(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(D({},o,""),this.childrenNodes)}},{key:"willDisplay",value:function(a){var o=this.marshal.getValue(a,"show-hide");return!0===o||void 0===o&&"none"!==this.styleUtils.lookupStyle(a,"display")}},{key:"buildChildObservable",value:function(){var a=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(a.observer=new MutationObserver(function(o){o.some(function(l){return l.addedNodes&&l.addedNodes.length>0||l.removedNodes&&l.removedNodes.length>0})&&a.observerSubject.next()}),a.observer.observe(a.nativeElement,{childList:!0}))})}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(st),j(sa),j(Qt),j(xj),j(Zt))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),Lp=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=Mj,i}return f(n)}(Tj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Re]}),e}(),Oj=new Map,Rj=new Map,Ij=new Map,Pj=new Map,Kc=" grid";function l0(e,r){switch(r){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left"}}var Np,Vj=function(){var e=function(r){p(n,r);var t=b(n);function n(i){var a;return d(this,n),(a=t.call(this)).layoutConfig=i,a}return f(n,[{key:"buildStyles",value:function(a,o){var u=function M(e){return H(e)||y(e)||ie(e)||G()}(a.split(" ")),l=u[0],c=u[1],v=u.slice(2).join(" "),_=o.direction.indexOf("column")>-1?"column":"row",F=wu(_)?"max-width":"max-height",Y=wu(_)?"min-width":"min-height",ne=String(v).indexOf("calc")>-1,ce=ne||"auto"===v,ee=String(v).indexOf("%")>-1&&!ne,ye=String(v).indexOf("px")>-1||String(v).indexOf("rem")>-1||String(v).indexOf("em")>-1||String(v).indexOf("vw")>-1||String(v).indexOf("vh")>-1,be=ne||ye;c="0"==c?0:c;var Te=!(l="0"==l?0:l)&&!c,Pe={},qe={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(v||""){case"":v="row"===_?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":l=0,v="auto";break;case"grow":v="100%";break;case"noshrink":c=0,v="auto";break;case"auto":break;case"none":l=0,c=0,v="auto";break;default:!be&&!ee&&!isNaN(v)&&(v+="%"),"0%"===v&&(be=!0),"0px"===v&&(v="0%"),Pe=Li(qe,ne?{"flex-grow":l,"flex-shrink":c,"flex-basis":be?v:"100%"}:{flex:"".concat(l," ").concat(c," ").concat(be?v:"100%")})}return Pe.flex||Pe["flex-grow"]||(Pe=Li(qe,ne?{"flex-grow":l,"flex-shrink":c,"flex-basis":v}:{flex:"".concat(l," ").concat(c," ").concat(v)})),"0%"!==v&&"0px"!==v&&"0.000000001px"!==v&&"auto"!==v&&(Pe[Y]=Te||be&&l?v:null,Pe[F]=Te||!ce&&c?v:null),Pe[Y]||Pe[F]?o.hasWrap&&(Pe[ne?"flex-basis":"flex"]=Pe[F]?ne?Pe[F]:"".concat(l," ").concat(c," ").concat(Pe[F]):ne?Pe[Y]:"".concat(l," ").concat(c," ").concat(Pe[Y])):Pe=Li(qe,ne?{"flex-grow":l,"flex-shrink":c,"flex-basis":v}:{flex:"".concat(l," ").concat(c," ").concat(v)}),Li(Pe,{"box-sizing":"border-box"})}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(de(ti))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Bj=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],jj=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,i,s,a,u)).layoutConfig=o,l.marshal=u,l.DIRECTIVE_KEY="flex",l.direction=void 0,l.wrap=void 0,l.flexGrow="1",l.flexShrink="1",l.init(),l}return f(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(a){this.flexShrink=a||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(a){this.flexGrow=a||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(rn(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(rn(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(a){var s=a.value.split(" ");this.direction=s[0],this.wrap=void 0!==s[1]&&"wrap"===s[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(a){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var s=this.direction,u=s.startsWith("row"),l=this.wrap;u&&l?this.styleCache=Gj:u&&!l?this.styleCache=Hj:!u&&l?this.styleCache=zj:!u&&!l&&(this.styleCache=Uj);var h=YS(String(a).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(h.join(" "),{direction:s,hasWrap:l})}},{key:"triggerReflow",value:function(){var a=this.activatedValue;if(void 0!==a){var o=YS(a+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,o.join(" "))}}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(Qt),j(ti),j(Vj),j(Zt))},e.\u0275dir=Ee({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Re]}),e}(),Qc=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=Bj,i}return f(n)}(jj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Re]}),e}(),Hj=new Map,Uj=new Map,Gj=new Map,zj=new Map,hH=function(){var e=function(r){p(n,r);var t=b(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){var s={},l=W(a.split(" "),2),h=l[1];switch(l[0]){case"center":s["justify-content"]="center";break;case"space-around":s["justify-content"]="space-around";break;case"space-between":s["justify-content"]="space-between";break;case"space-evenly":s["justify-content"]="space-evenly";break;case"end":case"flex-end":s["justify-content"]="flex-end";break;default:s["justify-content"]="flex-start"}switch(h){case"start":case"flex-start":s["align-items"]=s["align-content"]="flex-start";break;case"center":s["align-items"]=s["align-content"]="center";break;case"end":case"flex-end":s["align-items"]=s["align-content"]="flex-end";break;case"space-between":s["align-content"]="space-between",s["align-items"]="stretch";break;case"space-around":s["align-content"]="space-around",s["align-items"]="stretch";break;case"baseline":s["align-content"]="stretch",s["align-items"]="baseline";break;default:s["align-items"]=s["align-content"]="stretch"}return Li(s,{display:o.inline?"inline-flex":"flex","flex-direction":o.layout,"box-sizing":"border-box","max-width":"stretch"===h?wu(o.layout)?null:"100%":null,"max-height":"stretch"===h&&wu(o.layout)?"100%":null})}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),vH=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],pH=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s){var u;return d(this,n),(u=t.call(this,i,o,a,s)).DIRECTIVE_KEY="layout-align",u.layout="row",u.inline=!1,u.init(),u.marshal.trackValue(u.nativeElement,"layout").pipe(rn(u.destroySubject)).subscribe(u.onLayoutChange.bind(q(u))),u}return f(n,[{key:"updateWithValue",value:function(a){var o=this.layout||"row",s=this.inline;"row"===o&&s?this.styleCache=bH:"row"!==o||s?"row-reverse"===o&&s?this.styleCache=EH:"row-reverse"!==o||s?"column"===o&&s?this.styleCache=CH:"column"!==o||s?"column-reverse"===o&&s?this.styleCache=wH:"column-reverse"===o&&!s&&(this.styleCache=_H):this.styleCache=mH:this.styleCache=yH:this.styleCache=gH,this.addStyles(a,{layout:o,inline:s})}},{key:"onLayoutChange",value:function(a){var o=this,s=a.value.split(" ");this.layout=s[0],this.inline=a.value.includes("inline"),zc.find(function(u){return u===o.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(Qt),j(hH),j(Zt))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),es=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=vH,i}return f(n)}(pH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Re]}),e}(),gH=new Map,mH=new Map,yH=new Map,_H=new Map,bH=new Map,CH=new Map,EH=new Map,wH=new Map,c0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp,Zo]]}),e}(),y0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp]]}),e}(),WU=function(){var e=function(){function r(t,n){d(this,r),Ho(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return f(r,null,[{key:"withConfig",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:r,providers:n.serverLoaded?[{provide:ti,useValue:Object.assign(Object.assign({},Op),n)},{provide:Rp,useValue:i,multi:!0},{provide:$o,useValue:!0}]:[{provide:ti,useValue:Object.assign(Object.assign({},Op),n)},{provide:Rp,useValue:i,multi:!0}]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de($o),de(pr))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[c0,o0,y0],c0,o0,y0]}),e}();try{Np="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Np=!1}var ts,Au,$c,Na,Vp,jn=function(){var e=f(function r(t){d(this,r),this._platformId=t,this.isBrowser=this._platformId?xa(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&&!Np)&&"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 e.\u0275fac=function(t){return new(t||e)(de(pr))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),b0=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function C0(){if(ts)return ts;if("object"!=typeof document||!document)return ts=new Set(b0);var e=document.createElement("input");return ts=new Set(b0.filter(function(r){return e.setAttribute("type",r),e.type===r}))}function Yc(e){return function qU(){if(null==Au&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Au=!0}}))}finally{Au=Au||!1}return Au}()?e:!!e.capture}function E0(){if(null==Na){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Na=!1;if("scrollBehavior"in document.documentElement.style)Na=!0;else{var e=Element.prototype.scrollTo;Na=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Na}function xu(){if("object"!=typeof document||!document)return 0;if(null==$c){var e=document.createElement("div"),r=e.style;e.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";var t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",e.appendChild(t),document.body.appendChild(e),$c=0,0===e.scrollLeft&&(e.scrollLeft=1,$c=0===e.scrollLeft?1:2),e.remove()}return $c}function QU(e){if(function KU(){if(null==Vp){var e="undefined"!=typeof document?document.head:null;Vp=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Vp}()){var r=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Bp(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}function Va(e){return e.composedPath?e.composedPath()[0]:e.target}function jp(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function k0(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:en;return e=null!=e?e:e4,Yt(function(t,n){var i,a=!0;t.subscribe(zt(n,function(o){var s=r(o);(a||!e(i,s))&&(a=!1,i=s,n.next(o))}))})}function e4(e,r){return e===r}var Hp=function(){var e=function(){function r(t){d(this,r),this._platform=t}return f(r,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function i4(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var i=function r4(e){try{return e.frameElement}catch(r){return null}}(function f4(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(i&&(-1===T0(i)||!this.isVisible(i)))return!1;var a=n.nodeName.toLowerCase(),o=T0(n);return n.hasAttribute("contenteditable")?-1!==o:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function c4(e){var r=e.nodeName.toLowerCase(),t="input"===r&&e.type;return"text"===t||"password"===t||"select"===r||"textarea"===r}(n))&&("audio"===a?!!n.hasAttribute("controls")&&-1!==o:"video"===a?-1!==o&&(null!==o||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,i){return function d4(e){return!function o4(e){return function u4(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function a4(e){var r=e.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(e)||function s4(e){return function l4(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||M0(e))}(n)&&!this.isDisabled(n)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(jn))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function M0(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var r=e.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function T0(e){if(!M0(e))return null;var r=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}var h4=function(){function e(r,t,n,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];d(this,e),this._element=r,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return f(e,[{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))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]"));return"start"==t?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(t){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){var i=this._getFirstTabbableElement(n);return null==i||i.focus(t),!!i}return n.focus(t),!0}return this.focusFirstTabbableElement(t)}},{key:"focusFirstTabbableElement",value:function(t){var n=this._getRegionBoundary("start");return n&&n.focus(t),!!n}},{key:"focusLastTabbableElement",value:function(t){var n=this._getRegionBoundary("end");return n&&n.focus(t),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children,i=0;i=0;i--){var a=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(a)return a}return null}},{key:"_createAnchor",value:function(){var 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,n){t?n.setAttribute("tabindex","0"):n.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.pipe(Yn(1)).subscribe(t)}}]),e}(),O0=function(){var e=function(){function r(t,n,i){d(this,r),this._checker=t,this._ngZone=n,this._document=i}return f(r,[{key:"create",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new h4(n,this._checker,this._ngZone,this._document,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Hp),de(st),de(ot))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function R0(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}function I0(e){var r=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}var v4=new Ne("cdk-input-modality-detector-options"),p4={ignoreKeys:[18,17,224,91,16]},ns=Yc({passive:!0,capture:!0}),g4=function(){var e=function(){function r(t,n,i,a){var o=this;d(this,r),this._platform=t,this._mostRecentTarget=null,this._modality=new _r(null),this._lastTouchMs=0,this._onKeydown=function(s){var u,l;(null===(l=null===(u=o._options)||void 0===u?void 0:u.ignoreKeys)||void 0===l?void 0:l.some(function(c){return c===s.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=Va(s))},this._onMousedown=function(s){Date.now()-o._lastTouchMs<650||(o._modality.next(R0(s)?"keyboard":"mouse"),o._mostRecentTarget=Va(s))},this._onTouchstart=function(s){I0(s)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=Va(s))},this._options=Object.assign(Object.assign({},p4),a),this.modalityDetected=this._modality.pipe(S0(1)),this.modalityChanged=this.modalityDetected.pipe(D0()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,ns),i.addEventListener("mousedown",o._onMousedown,ns),i.addEventListener("touchstart",o._onTouchstart,ns)})}return f(r,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ns),document.removeEventListener("mousedown",this._onMousedown,ns),document.removeEventListener("touchstart",this._onTouchstart,ns))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(jn),de(st),de(ot),de(v4,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),m4=new Ne("liveAnnouncerElement",{providedIn:"root",factory:function y4(){return null}}),_4=new Ne("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),F0=function(){var e=function(){function r(t,n,i,a){d(this,r),this._ngZone=n,this._defaultOptions=a,this._document=i,this._liveElement=t||this._createLiveElement()}return f(r,[{key:"announce",value:function(n){for(var o,s,i=this,a=this._defaultOptions,u=arguments.length,l=new Array(u>1?u-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],a=Vi(n);if(!this._platform.isBrowser||1!==a.nodeType)return Je(null);var o=QU(a)||this._getDocument(),s=this._elementInfo.get(a);if(s)return i&&(s.checkChildren=!0),s.subject;var u={checkChildren:i,subject:new Fe,rootNode:o};return this._elementInfo.set(a,u),this._registerGlobalListeners(u),u.subject}},{key:"stopMonitoring",value:function(n){var i=Vi(n),a=this._elementInfo.get(i);a&&(a.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(a))}},{key:"focusVia",value:function(n,i,a){var o=this,s=Vi(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(function(l){var c=W(l,2);return o._originChanged(c[0],i,c[1])}):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(a))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(i,a){return n.stopMonitoring(a)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused","touch"===i),n.classList.toggle("cdk-keyboard-focused","keyboard"===i),n.classList.toggle("cdk-mouse-focused","mouse"===i),n.classList.toggle("cdk-program-focused","program"===i)}},{key:"_setOrigin",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){i._origin=n,i._originFromTouchInteraction="touch"===n&&a,0===i._detectionMode&&(clearTimeout(i._originTimeoutId),i._originTimeoutId=setTimeout(function(){return i._origin=null},i._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,i){var a=this._elementInfo.get(i),o=Va(n);!a||!a.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),a)}},{key:"_onBlur",value:function(n,i){var a=this._elementInfo.get(i);!a||a.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(a.subject,null))}},{key:"_emitOrigin",value:function(n,i){this._ngZone.run(function(){return n.next(i)})}},{key:"_registerGlobalListeners",value:function(n){var i=this;if(this._platform.isBrowser){var a=n.rootNode,o=this._rootNodeFocusListenerCount.get(a)||0;o||this._ngZone.runOutsideAngular(function(){a.addEventListener("focus",i._rootNodeFocusAndBlurListener,Xc),a.addEventListener("blur",i._rootNodeFocusAndBlurListener,Xc)}),this._rootNodeFocusListenerCount.set(a,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){i._getWindow().addEventListener("focus",i._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rn(this._stopInputModalityDetector)).subscribe(function(s){i._setOrigin(s,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){var a=this._rootNodeFocusListenerCount.get(i);a>1?this._rootNodeFocusListenerCount.set(i,a-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,i,a){this._setClasses(n,i),this._emitOrigin(a.subject,i),this._lastFocusOrigin=i}},{key:"_getClosestElementsInfo",value:function(n){var i=[];return this._elementInfo.forEach(function(a,o){(o===n||a.checkChildren&&o.contains(n))&&i.push([o,a])}),i}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(st),de(jn),de(g4),de(ot,8),de(b4,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),L0="cdk-high-contrast-black-on-white",N0="cdk-high-contrast-white-on-black",Up="cdk-high-contrast-active",C4=function(){var e=function(){function r(t,n){d(this,r),this._platform=t,this._document=n}return f(r,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var i=this._document.defaultView||window,a=i&&i.getComputedStyle?i.getComputedStyle(n):null,o=(a&&a.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(Up),n.remove(L0),n.remove(N0),this._hasCheckedHighContrastMode=!0;var i=this.getHighContrastMode();1===i?(n.add(Up),n.add(L0)):2===i&&(n.add(Up),n.add(N0))}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(jn),de(ot))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),w4=new Ne("mat-sanity-checks",{providedIn:"root",factory:function E4(){return!0}}),an=function(){var e=function(){function r(t,n,i){d(this,r),this._sanityChecks=n,this._document=i,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return f(r,[{key:"_checkIsEnabled",value:function(n){return!jp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(C4),de(w4,8),de(ot))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Zo],Zo]}),e}();function B0(e){return function(r){p(n,r);var t=b(n);function n(){var i;d(this,n);for(var a=arguments.length,o=new Array(a),s=0;s1&&void 0!==arguments[1]?arguments[1]:0;return function(t){p(i,t);var n=b(i);function i(){var a;d(this,i);for(var o=arguments.length,s=new Array(o),u=0;u2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},U0),a.animation);a.centered&&(t=o.left+o.width/2,n=o.top+o.height/2);var u=a.radius||T4(t,n,o),l=t-o.left,c=n-o.top,h=s.enterDuration,v=document.createElement("div");v.classList.add("mat-ripple-element"),v.style.left="".concat(l-u,"px"),v.style.top="".concat(c-u,"px"),v.style.height="".concat(2*u,"px"),v.style.width="".concat(2*u,"px"),null!=a.color&&(v.style.backgroundColor=a.color),v.style.transitionDuration="".concat(h,"ms"),this._containerElement.appendChild(v),M4(v),v.style.transform="scale(1)";var _=new D4(this,v,a);return _.state=0,this._activeRipples.add(_),a.persistent||(this._mostRecentTransientRipple=_),this._runTimeoutOutsideZone(function(){var F=_===i._mostRecentTransientRipple;_.state=1,!a.persistent&&(!F||!i._isPointerDown)&&_.fadeOut()},h),_}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var i=t.element,a=Object.assign(Object.assign({},U0),t.config.animation);i.style.transitionDuration="".concat(a.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.remove()},a.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=Vi(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(G0))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(z0),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=R0(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(i){n._triggerElement.addEventListener(i,n,zp)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(G0.forEach(function(n){t._triggerElement.removeEventListener(n,t,zp)}),this._pointerUpEventsRegistered&&z0.forEach(function(n){t._triggerElement.removeEventListener(n,t,zp)}))}}]),e}();function M4(e){window.getComputedStyle(e).getPropertyValue("opacity")}function T4(e,r,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),i=Math.max(Math.abs(r-t.top),Math.abs(r-t.bottom));return Math.sqrt(n*n+i*i)}var O4=new Ne("mat-ripple-global-options"),Ru=function(){var e=function(){function r(t,n,i,a,o){d(this,r),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new x4(this,n,t,i)}return f(r,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,i,Object.assign(Object.assign({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(st),j(jn),j(O4,8),j(gi,8))},e.\u0275dir=Ee({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),e}(),Wp=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),R4=["mat-button",""],I4=["*"],F4=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L4=Tu(B0(Gp(function(){return f(function e(r){d(this,e),this._elementRef=r})}()))),rs=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o){var s;d(this,n),(s=t.call(this,i))._focusMonitor=a,s._animationMode=o,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var l,u=K(F4);try{for(u.s();!(l=u.n()).done;){var c=l.value;s._hasHostAttributes(c)&&s._getHostElement().classList.add(c)}}catch(h){u.e(h)}finally{u.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return f(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._getHostElement(),a,o):this._getHostElement().focus(o)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,o=arguments.length,s=new Array(o),u=0;u*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),qp=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an],an]}),e}(),N4=["*",[["mat-card-footer"]]],V4=["*","mat-card-footer"],B4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),j4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),H4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),U4=function(){var e=f(function r(){d(this,r),this.align="start"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-card-actions-align-end","end"===n.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),Kp=function(){var e=f(function r(t){d(this,r),this._animationMode=t});return e.\u0275fac=function(t){return new(t||e)(j(gi,8))},e.\u0275cmp=jt({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,n){2&t&&It("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:V4,decls:2,vars:0,template:function(t,n){1&t&&(ir(N4),Ht(0),Ht(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;display:block;overflow:hidden}.mat-card-image img{width:100%}.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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}),e}(),W0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),G4=function(e){p(t,e);var r=b(t);function t(n,i){return d(this,t),r.call(this)}return f(t,[{key:"schedule",value:function(i){return this}}]),t}(E),Zc={setInterval:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=Zc.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,arguments)}),clearInterval:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=Zc.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)}),delegate:void 0},Qp=function(e){p(t,e);var r=b(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a.pending=!1,a}return f(t,[{key:"schedule",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=i;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Zc.setInterval(i.flush.bind(i,this),o)}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;Zc.clearInterval(a)}},{key:"execute",value:function(i,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(i,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(i,a){var s,o=!1;try{this.work(i)}catch(u){o=!0,s=u||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var i=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,m(o,this),null!=i&&(this.id=this.recycleAsyncId(a,i,null)),this.delay=null,O(I(t.prototype),"unsubscribe",this).call(this)}}}]),t}(G4),q0={now:function(){return(q0.delegate||Date).now()},delegate:void 0},Yp=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;d(this,e),this.schedulerActionCtor=r,this.now=t}return f(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 new this.schedulerActionCtor(this,t).schedule(i,n)}}]),e}();Yp.now=q0.now;var $p=function(e){p(t,e);var r=b(t);function t(n){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yp.now;return d(this,t),(i=r.call(this,n,a)).actions=[],i._active=!1,i._scheduled=void 0,i}return f(t,[{key:"flush",value:function(i){var a=this.actions;if(this._active)a.push(i);else{var o;this._active=!0;do{if(o=i.execute(i.state,i.delay))break}while(i=a.shift());if(this._active=!1,o){for(;i=a.shift();)i.unsubscribe();throw o}}}}]),t}(Yp),Xp=new $p(Qp),z4=Xp;function Zp(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xp;return Yt(function(t,n){var i=null,a=null,o=null,s=function(){if(i){i.unsubscribe(),i=null;var c=a;a=null,n.next(c)}};function u(){var l=o+e,c=r.now();if(c0&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(o,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);var u=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){s.classList.remove(u)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var a=new Z4;a.source=this,a.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(a),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(a){var s,o=this,u=null===(s=this._options)||void 0===s?void 0:s.clickAction;a.stopPropagation(),this.disabled||"noop"===u?!this.disabled&&"noop"===u&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==u&&Promise.resolve().then(function(){o._indeterminate=!1,o.indeterminateChange.emit(o._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_onInteractionEvent",value:function(a){a.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(a,o){if("NoopAnimations"===this._animationMode)return"";var s="";switch(a){case 0:if(1===o)s="unchecked-checked";else{if(3!=o)return"";s="unchecked-indeterminate"}break;case 2:s=1===o?"unchecked-checked":"unchecked-indeterminate";break;case 1:s=2===o?"checked-unchecked":"checked-indeterminate";break;case 3:s=1===o?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(s)}},{key:"_syncIndeterminate",value:function(a){var o=this._inputElement;o&&(o.nativeElement.indeterminate=a)}}]),n}(J4);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(gr),j(Mu),j(st),$i("tabindex"),j(gi,8),j(Y4,8))},e.\u0275cmp=jt({type:e,selectors:[["mat-checkbox"]],viewQuery:function(t,n){var i;1&t&&(Tr(q4,5),Tr(Ru,5)),2&t&&(Pt(i=Ft())&&(n._inputElement=i.first),Pt(i=Ft())&&(n.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(t,n){2&t&&(Po("id",n.id),Kt("tabindex",null)("aria-label",null)("aria-labelledby",null),It("mat-checkbox-indeterminate",n.indeterminate)("mat-checkbox-checked",n.checked)("mat-checkbox-disabled",n.disabled)("mat-checkbox-label-before","before"==n.labelPosition)("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[At([X4]),Re],ngContentSelectors:Q4,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,n){if(1&t&&(ir(),ge(0,"label",0,1)(2,"span",2)(3,"input",3,4),Ge("change",function(s){return n._onInteractionEvent(s)})("click",function(s){return n._onInputClick(s)}),me(),ge(5,"span",5),Xt(6,"span",6),me(),Xt(7,"span",7),ge(8,"span",8),function zm(){nt.lFrame.currentNamespace="svg"}(),ge(9,"svg",9),Xt(10,"path",10),me(),function Wm(){!function SM(){nt.lFrame.currentNamespace=null}()}(),Xt(11,"span",11),me()(),ge(12,"span",12,13),Ge("cdkObserveContent",function(){return n._onLabelTextChange()}),ge(14,"span",14),Ie(15,"\xa0"),me(),Ht(16),me()()),2&t){var i=Qn(1),a=Qn(13);Kt("for",n.inputId),we(2),It("mat-checkbox-inner-container-no-side-margin",!a.textContent||!a.textContent.trim()),we(1),Me("id",n.inputId)("required",n.required)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex),Kt("value",n.value)("name",n.name)("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-checked",n._getAriaChecked())("aria-describedby",n.ariaDescribedby),we(2),Me("matRippleTrigger",i)("matRippleDisabled",n._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Hh(19,K4,"NoopAnimations"===n._animationMode?0:150))}},directives:[Ru,Q0],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-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;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-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color: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%}\n"],encapsulation:2,changeDetection:0}),e}(),J0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),eD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an,Y0,J0],an,J0]}),e}(),nG=["addListener","removeListener"],rG=["addEventListener","removeEventListener"],iG=["on","off"];function is(e,r,t,n){if(g(t)&&(n=t,t=void 0),n)return is(e,r,t).pipe(Rv(n));var a=W(function sG(e){return g(e.addEventListener)&&g(e.removeEventListener)}(e)?rG.map(function(u){return function(l){return e[u](r,l,t)}}):function aG(e){return g(e.addListener)&&g(e.removeListener)}(e)?nG.map(tD(e,r)):function oG(e){return g(e.on)&&g(e.off)}(e)?iG.map(tD(e,r)):[],2),o=a[0],s=a[1];if(!o&&Ld(e))return Sn(function(u){return is(u,r,t)})(or(e));if(!o)throw new TypeError("Invalid event target");return new ct(function(u){var l=function(){for(var h=arguments.length,v=new Array(h),_=0;_2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?O(I(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=Iu.requestAnimationFrame(function(){return i.flush(void 0)})))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return O(I(t.prototype),"recycleAsyncId",this).call(this,i,a,o);i.actions.some(function(s){return s.id===a})||(Iu.cancelAnimationFrame(a),i._scheduled=void 0)}}]),t}(Qp),lG=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"flush",value:function(i){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;i=i||o.shift();do{if(s=i.execute(i.state,i.delay))break}while((i=o[0])&&i.id===a&&o.shift());if(this._active=!1,s){for(;(i=o[0])&&i.id===a&&o.shift();)i.unsubscribe();throw s}}}]),t}($p),dG=(new lG(uG),1),Jc={};function nD(e){return e in Jc&&(delete Jc[e],!0)}var fG=function(r){var t=dG++;return Jc[t]=!0,Jp||(Jp=Promise.resolve()),Jp.then(function(){return nD(t)&&r()}),t},hG=function(r){nD(r)},ed={setImmediate:function(){var r=ed.delegate;return((null==r?void 0:r.setImmediate)||fG).apply(void 0,arguments)},clearImmediate:function(r){var t=ed.delegate;return((null==t?void 0:t.clearImmediate)||hG)(r)},delegate:void 0},vG=function(e){p(t,e);var r=b(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a}return f(t,[{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?O(I(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=ed.setImmediate(i.flush.bind(i,void 0))))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return O(I(t.prototype),"recycleAsyncId",this).call(this,i,a,o);i.actions.some(function(s){return s.id===a})||(ed.clearImmediate(a),i._scheduled=void 0)}}]),t}(Qp),pG=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"flush",value:function(i){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;i=i||o.shift();do{if(s=i.execute(i.state,i.delay))break}while((i=o[0])&&i.id===a&&o.shift());if(this._active=!1,s){for(;(i=o[0])&&i.id===a&&o.shift();)i.unsubscribe();throw s}}}]),t}($p);new pG(vG);function mG(e){return Yt(function(r,t){var n=!1,i=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var c=i;i=null,t.next(c)}o&&t.complete()},u=function(){a=null,o&&t.complete()};r.subscribe(zt(t,function(l){n=!0,i=l,a||or(e(l)).subscribe(a=zt(t,s,u))},function(){o=!0,(!n||!a||a.closed)&&t.complete()}))})}function yG(e){return e instanceof Date&&!isNaN(e)}function _G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z4,n=-1;return null!=r&&(dm(r)?t=r:n=r),new ct(function(i){var a=yG(e)?+e-t.now():e;a<0&&(a=0);var o=0;return t.schedule(function(){i.closed||(i.next(o++),0<=n?this.schedule(void 0,n):i.complete())},a)})}function iD(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xp;return mG(function(){return _G(e,r)})}var td=function(){var e=function(){function r(t,n,i){d(this,r),this._ngZone=t,this._platform=n,this._scrolled=new Fe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return f(r,[{key:"register",value:function(n){var i=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return i._scrolled.next(n)}))}},{key:"deregister",value:function(n){var i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ct(function(a){n._globalSubscription||n._addGlobalListener();var o=i>0?n._scrolled.pipe(iD(i)).subscribe(a):n._scrolled.subscribe(a);return n._scrolledCount++,function(){o.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):Je()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(i,a){return n.deregister(a)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,i){var a=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(fn(function(o){return!o||a.indexOf(o)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var i=this,a=[];return this.scrollContainers.forEach(function(o,s){i._scrollableContainsElement(s,n)&&a.push(s)}),a}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,i){var a=Vi(i),o=n.getElementRef().nativeElement;do{if(a==o)return!0}while(a=a.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return is(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(st),de(jn),de(ot,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Pu=function(){var e=function(){function r(t,n,i,a){var o=this;d(this,r),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new Fe,this._elementScrolled=new ct(function(s){return o.ngZone.runOutsideAngular(function(){return is(o.elementRef.nativeElement,"scroll").pipe(rn(o._destroyed)).subscribe(s)})})}return f(r,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(n){var i=this.elementRef.nativeElement,a=this.dir&&"rtl"==this.dir.value;null==n.left&&(n.left=a?n.end:n.start),null==n.right&&(n.right=a?n.start:n.end),null!=n.bottom&&(n.top=i.scrollHeight-i.clientHeight-n.bottom),a&&0!=xu()?(null!=n.left&&(n.right=i.scrollWidth-i.clientWidth-n.left),2==xu()?n.left=n.right:1==xu()&&(n.left=n.right?-n.right:n.right)):null!=n.right&&(n.left=i.scrollWidth-i.clientWidth-n.right),this._applyScrollToOptions(n)}},{key:"_applyScrollToOptions",value:function(n){var i=this.elementRef.nativeElement;E0()?i.scrollTo(n):(null!=n.top&&(i.scrollTop=n.top),null!=n.left&&(i.scrollLeft=n.left))}},{key:"measureScrollOffset",value:function(n){var i="left",a="right",o=this.elementRef.nativeElement;if("top"==n)return o.scrollTop;if("bottom"==n)return o.scrollHeight-o.clientHeight-o.scrollTop;var s=this.dir&&"rtl"==this.dir.value;return"start"==n?n=s?a:i:"end"==n&&(n=s?i:a),s&&2==xu()?n==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==xu()?n==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(td),j(st),j(sa,8))},e.\u0275dir=Ee({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),eg=function(){var e=function(){function r(t,n,i){var a=this;d(this,r),this._platform=t,this._change=new Fe,this._changeListener=function(o){a._change.next(o)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var o=a._getWindow();o.addEventListener("resize",a._changeListener),o.addEventListener("orientationchange",a._changeListener)}a.change().subscribe(function(){return a._viewportSize=null})})}return f(r,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),i=this.getViewportSize(),a=i.width,o=i.height;return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+a,height:o,width:a}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,i=this._getWindow(),a=n.documentElement,o=a.getBoundingClientRect();return{top:-o.top||n.body.scrollTop||i.scrollY||a.scrollTop||0,left:-o.left||n.body.scrollLeft||i.scrollX||a.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(iD(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(jn),de(st),de(ot,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),nd=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),aD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Zo,nd],Zo,nd]}),e}(),tg=function(){function e(){d(this,e)}return f(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),Fu=function(e){p(t,e);var r=b(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this)).component=n,s.viewContainerRef=i,s.injector=a,s.componentFactoryResolver=o,s}return f(t)}(tg),ng=function(e){p(t,e);var r=b(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this)).templateRef=n,o.viewContainerRef=i,o.context=a,o}return f(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=a,O(I(t.prototype),"attach",this).call(this,i)}},{key:"detach",value:function(){return this.context=void 0,O(I(t.prototype),"detach",this).call(this)}}]),t}(tg),EG=function(e){p(t,e);var r=b(t);function t(n){var i;return d(this,t),(i=r.call(this)).element=n instanceof Ye?n.nativeElement:n,i}return f(t)}(tg),rd=function(){function e(){d(this,e),this._isDisposed=!1,this.attachDomPortal=null}return f(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof Fu?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ng?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof EG?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),wG=function(e){p(t,e);var r=b(t);function t(n,i,a,o,s){var u,l;return d(this,t),(l=r.call(this)).outletElement=n,l._componentFactoryResolver=i,l._appRef=a,l._defaultInjector=o,l.attachDomPortal=function(c){var h=c.element,v=l._document.createComment("dom-portal");h.parentNode.insertBefore(v,h),l.outletElement.appendChild(h),l._attachedPortal=c,O((u=q(l),I(t.prototype)),"setDisposeFn",u).call(u,function(){v.parentNode&&v.parentNode.replaceChild(h,v)})},l._document=s,l}return f(t,[{key:"attachComponentPortal",value:function(i){var u,a=this,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);return i.viewContainerRef?(u=i.viewContainerRef.createComponent(s,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector),this.setDisposeFn(function(){return u.destroy()})):(u=s.create(i.injector||this._defaultInjector),this._appRef.attachView(u.hostView),this.setDisposeFn(function(){a._appRef.detachView(u.hostView),u.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(u)),this._attachedPortal=i,u}},{key:"attachTemplatePortal",value:function(i){var a=this,o=i.viewContainerRef,s=o.createEmbeddedView(i.templateRef,i.context);return s.rootNodes.forEach(function(u){return a.outletElement.appendChild(u)}),s.detectChanges(),this.setDisposeFn(function(){var u=o.indexOf(s);-1!==u&&o.remove(u)}),this._attachedPortal=i,s}},{key:"dispose",value:function(){O(I(t.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(i){return i.hostView.rootNodes[0]}}]),t}(rd),id=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o){var s,u;return d(this,n),(u=t.call(this))._componentFactoryResolver=i,u._viewContainerRef=a,u._isInitialized=!1,u.attached=new Dt,u.attachDomPortal=function(l){var c=l.element,h=u._document.createComment("dom-portal");l.setAttachedHost(q(u)),c.parentNode.insertBefore(h,c),u._getRootNode().appendChild(c),u._attachedPortal=l,O((s=q(u),I(n.prototype)),"setDisposeFn",s).call(s,function(){h.parentNode&&h.parentNode.replaceChild(c,h)})},u._document=o,u}return f(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(a){this.hasAttached()&&!a&&!this._isInitialized||(this.hasAttached()&&O(I(n.prototype),"detach",this).call(this),a&&O(I(n.prototype),"attach",this).call(this,a),this._attachedPortal=a||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){O(I(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(a){a.setAttachedHost(this);var o=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,u=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component),l=o.createComponent(u,o.length,a.injector||o.injector);return o!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),O(I(n.prototype),"setDisposeFn",this).call(this,function(){return l.destroy()}),this._attachedPortal=a,this._attachedRef=l,this.attached.emit(l),l}},{key:"attachTemplatePortal",value:function(a){var o=this;a.setAttachedHost(this);var s=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context);return O(I(n.prototype),"setDisposeFn",this).call(this,function(){return o._viewContainerRef.clear()}),this._attachedPortal=a,this._attachedRef=s,this.attached.emit(s),s}},{key:"_getRootNode",value:function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(j(wa),j(Mr),j(ot))},e.\u0275dir=Ee({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Re]}),e}(),rg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),oD=E0(),kG=function(){function e(r,t){d(this,e),this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return f(e,[{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=kn(-this._previousScrollPosition.left),t.style.top=kn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,i=t.style,a=this._document.body.style,o=i.scrollBehavior||"",s=a.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),oD&&(i.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),oD&&(i.scrollBehavior=o,a.scrollBehavior=s)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var n=this._document.body,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}}]),e}(),SG=function(){function e(r,t,n,i){var a=this;d(this,e),this._scrollDispatcher=r,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return f(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var i=t._viewportRuler.getViewportScrollPosition().top;Math.abs(i-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),sD=function(){function e(){d(this,e)}return f(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function ig(e,r){return r.some(function(t){return e.bottomt.bottom||e.rightt.right})}function uD(e,r){return r.some(function(t){return e.topt.bottom||e.leftt.right})}var DG=function(){function e(r,t,n,i){d(this,e),this._scrollDispatcher=r,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}return f(e,[{key:"attach",value:function(t){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 i=t._overlayRef.overlayElement.getBoundingClientRect(),a=t._viewportRuler.getViewportSize(),o=a.width,s=a.height;ig(i,[{width:o,height:s,bottom:s,right:o,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}}]),e}(),AG=function(){var e=f(function r(t,n,i,a){var o=this;d(this,r),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new sD},this.close=function(s){return new SG(o._scrollDispatcher,o._ngZone,o._viewportRuler,s)},this.block=function(){return new kG(o._viewportRuler,o._document)},this.reposition=function(s){return new DG(o._scrollDispatcher,o._viewportRuler,o._ngZone,s)},this._document=a});return e.\u0275fac=function(t){return new(t||e)(de(td),de(eg),de(st),de(ot))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ag=f(function e(r){if(d(this,e),this.scrollStrategy=new sD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r)for(var n=0,i=Object.keys(r);nY&&(Y=ye,F=ee)}}catch(be){ne.e(be)}finally{ne.f()}return this._isPushed=!1,void this._applyPosition(F.position,F.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ba(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(lD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var n=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,n)}else this.apply()}}},{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,n,i){var a,u;if("center"==i.originX)a=t.left+t.width/2;else{var o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;a="start"==i.originX?o:s}return n.left<0&&(a-=n.left),u="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,n.top<0&&(u-=n.top),{x:a,y:u}}},{key:"_getOverlayPoint",value:function(t,n,i){var a;return a="center"==i.overlayX?-n.width/2:"start"===i.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+a,y:t.y+("center"==i.overlayY?-n.height/2:"top"==i.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,i,a){var o=dD(n),s=t.x,u=t.y,l=this._getOffset(a,"x"),c=this._getOffset(a,"y");l&&(s+=l),c&&(u+=c);var _=0-u,F=u+o.height-i.height,Y=this._subtractOverflows(o.width,0-s,s+o.width-i.width),ne=this._subtractOverflows(o.height,_,F),ce=Y*ne;return{visibleArea:ce,isCompletelyWithinViewport:o.width*o.height===ce,fitsInViewportVertically:ne===o.height,fitsInViewportHorizontally:Y==o.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,i){if(this._hasFlexibleDimensions){var a=i.bottom-n.y,o=i.right-n.x,s=cD(this._overlayRef.getConfig().minHeight),u=cD(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=a)&&(t.fitsInViewportHorizontally||null!=u&&u<=o)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var h,v,a=dD(n),o=this._viewportRect,s=Math.max(t.x+a.width-o.width,0),u=Math.max(t.y+a.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);return this._previousPushAmount={x:h=a.width<=o.width?c||-s:t.xc&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-c/2)}if("end"===n.overlayX&&!a||"start"===n.overlayX&&a)Y=i.width-t.x+this._viewportMargin,_=t.x-this._viewportMargin;else if("start"===n.overlayX&&!a||"end"===n.overlayX&&a)F=t.x,_=i.right-t.x;else{var ne=Math.min(i.right-t.x+i.left,t.x),ce=this._lastBoundingBoxSize.width;F=t.x-ne,(_=2*ne)>ce&&!this._isInitialRender&&!this._growAfterOpen&&(F=t.x-ce/2)}return{top:s,left:F,bottom:u,right:Y,width:_,height:o}}},{key:"_setBoundingBoxStyles",value:function(t,n){var i=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;a.height=kn(i.height),a.top=kn(i.top),a.bottom=kn(i.bottom),a.width=kn(i.width),a.left=kn(i.left),a.right=kn(i.right),a.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",a.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",o&&(a.maxHeight=kn(o)),s&&(a.maxWidth=kn(s))}this._lastBoundingBoxSize=i,Ba(this._boundingBox.style,a)}},{key:"_resetBoundingBoxStyles",value:function(){Ba(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ba(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var i={},a=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(a){var u=this._viewportRuler.getViewportScrollPosition();Ba(i,this._getExactOverlayY(n,t,u)),Ba(i,this._getExactOverlayX(n,t,u))}else i.position="static";var l="",c=this._getOffset(n,"x"),h=this._getOffset(n,"y");c&&(l+="translateX(".concat(c,"px) ")),h&&(l+="translateY(".concat(h,"px)")),i.transform=l.trim(),s.maxHeight&&(a?i.maxHeight=kn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(a?i.maxWidth=kn(s.maxWidth):o&&(i.maxWidth="")),Ba(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,n,i){var a={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?a.bottom="".concat(this._document.documentElement.clientHeight-(o.y+this._overlayRect.height),"px"):a.top=kn(o.y),a}},{key:"_getExactOverlayX",value:function(t,n,i){var a={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?a.right="".concat(this._document.documentElement.clientWidth-(o.x+this._overlayRect.width),"px"):a.left=kn(o.x),a}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(a){return a.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:uD(t,i),isOriginOutsideView:ig(t,i),isOverlayClipped:uD(n,i),isOverlayOutsideView:ig(n,i)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=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,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),a=i.width,o=i.height,s=i.maxWidth,u=i.maxHeight,l=!("100%"!==a&&"100vw"!==a||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||u&&"100%"!==u&&"100vh"!==u);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(fD),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),IG=function(){var e=function(){function r(t,n,i,a){d(this,r),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=a}return f(r,[{key:"global",value:function(){return new RG}},{key:"flexibleConnectedTo",value:function(n){return new OG(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(eg),de(ot),de(jn),de(og))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),hD=function(){var e=function(){function r(t){d(this,r),this._attachedOverlays=[],this._document=t}return f(r,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(ot))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),PG=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a){var o;return d(this,n),(o=t.call(this,i))._ngZone=a,o._keydownListener=function(s){for(var u=o._attachedOverlays,l=u.length-1;l>-1&&!(u[l]._keydownEvents.observers.length>0&&"break"===function(){var h=u[l]._keydownEvents;return o._ngZone?o._ngZone.run(function(){return h.next(s)}):h.next(s),"break"}());l--);},o}return f(n,[{key:"add",value:function(a){var o=this;O(I(n.prototype),"add",this).call(this,a),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return o._document.body.addEventListener("keydown",o._keydownListener)}):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(hD);return e.\u0275fac=function(t){return new(t||e)(de(ot),de(st,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),FG=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o){var s;return d(this,n),(s=t.call(this,i))._platform=a,s._ngZone=o,s._cursorStyleIsSet=!1,s._pointerDownListener=function(u){s._pointerDownEventTarget=Va(u)},s._clickListener=function(u){var l=Va(u),c="click"===u.type&&s._pointerDownEventTarget?s._pointerDownEventTarget:l;s._pointerDownEventTarget=null;for(var h=s._attachedOverlays.slice(),v=function(ne){var ce=h[ne];if(ce._outsidePointerEvents.observers.length<1||!ce.hasAttached())return"continue";if(ce.overlayElement.contains(l)||ce.overlayElement.contains(c))return"break";var ee=ce._outsidePointerEvents;s._ngZone?s._ngZone.run(function(){return ee.next(u)}):ee.next(u)},_=h.length-1;_>-1;_--){var F=v(_);if("continue"!==F&&"break"===F)break}},s}return f(n,[{key:"add",value:function(a){var o=this;if(O(I(n.prototype),"add",this).call(this,a),!this._isAttached){var s=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return o._addEventListeners(s)}):this._addEventListeners(s),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=s.style.cursor,s.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0),a.removeEventListener("click",this._clickListener,!0),a.removeEventListener("auxclick",this._clickListener,!0),a.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(a){a.addEventListener("pointerdown",this._pointerDownListener,!0),a.addEventListener("click",this._clickListener,!0),a.addEventListener("auxclick",this._clickListener,!0),a.addEventListener("contextmenu",this._clickListener,!0)}}]),n}(hD);return e.\u0275fac=function(t){return new(t||e)(de(ot),de(jn),de(st,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),LG=0,as=function(){var e=function(){function r(t,n,i,a,o,s,u,l,c,h,v){d(this,r),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=o,this._injector=s,this._ngZone=u,this._document=l,this._directionality=c,this._location=h,this._outsideClickDispatcher=v}return f(r,[{key:"create",value:function(n){var i=this._createHostElement(),a=this._createPaneElement(i),o=this._createPortalOutlet(a),s=new ag(n);return s.direction=s.direction||this._directionality.value,new MG(o,i,a,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var i=this._document.createElement("div");return i.id="cdk-overlay-".concat(LG++),i.classList.add("cdk-overlay-pane"),n.appendChild(i),i}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(Zl)),new wG(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(AG),de(og),de(wa),de(IG),de(PG),de(qt),de(st),de(ot),de(sa),de(Aa),de(FG))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),BG={provide:new Ne("cdk-connected-overlay-scroll-strategy"),deps:[as],useFactory:function VG(e){return function(){return e.scrollStrategies.reposition()}}},vD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[as,BG],imports:[[Zo,rg,aD],aD]}),e}();function sg(e){return new ct(function(r){or(e()).subscribe(r)})}function jG(){return hs(1)}function ad(){for(var e=arguments.length,r=new Array(e),t=0;t enter",Fi("150ms cubic-bezier(0, 0, 0.2, 1)",Ln({transform:"none",opacity:1}))),ia("* => void, * => exit",Fi("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ln({opacity:0})))])},GG=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l,c,h){var v;return d(this,n),(v=t.call(this))._elementRef=i,v._focusTrapFactory=a,v._changeDetectorRef=o,v._config=u,v._interactivityChecker=l,v._ngZone=c,v._focusMonitor=h,v._animationStateChanged=new Dt,v._elementFocusedBeforeDialogWasOpened=null,v._closeInteractionType=null,v.attachDomPortal=function(_){return v._portalOutlet.hasAttached(),v._portalOutlet.attachDomPortal(_)},v._ariaLabelledBy=u.ariaLabelledBy||null,v._document=s,v}return f(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}},{key:"attachComponentPortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(a)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(a,o){this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){a.addEventListener("blur",function(){return a.removeAttribute("tabindex")}),a.addEventListener("mousedown",function(){return a.removeAttribute("tabindex")})})),a.focus(o)}},{key:"_focusByCssSelector",value:function(a,o){var s=this._elementRef.nativeElement.querySelector(a);s&&this._forceFocus(s,o)}},{key:"_trapFocus",value:function(){var a=this,o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(s){s||a._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var a=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&a&&"function"==typeof a.focus){var o=Bp(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Bp())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var a=this._elementRef.nativeElement,o=Bp();return a===o||a.contains(o)}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(O0),j(gr),j(ot,8),j(ug),j(Hp),j(st),j(Mu))},e.\u0275dir=Ee({type:e,viewQuery:function(t,n){var i;1&t&&Tr(id,7),2&t&&Pt(i=Ft())&&(n._portalOutlet=i.first)},features:[Re]}),e}(),zG=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments))._state="enter",i}return f(n,[{key:"_onAnimationDone",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})):"exit"===o&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:s}))}},{key:"_onAnimationStart",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(GG);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275cmp=jt({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&qs("@dialogContainer.start",function(a){return n._onAnimationStart(a)})("@dialogContainer.done",function(a){return n._onAnimationDone(a)}),2&t&&(Po("id",n._id),Kt("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Qs("@dialogContainer",n._state))},features:[Re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&$e(0,HG,0,0,"ng-template",0)},directives:[id],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[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:[UG.dialogContainer]}}),e}(),WG=0,lg=function(){function e(r,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(WG++);d(this,e),this._overlayRef=r,this._containerInstance=t,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Fe,this._afterClosed=new Fe,this._beforeClosed=new Fe,this._state=0,t._id=i,t._animationStateChanged.pipe(fn(function(a){return"opened"===a.state}),Yn(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(fn(function(a){return"closed"===a.state}),Yn(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),r.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),r.keydownEvents().pipe(fn(function(a){return 27===a.keyCode&&!n.disableClose&&!k0(a)})).subscribe(function(a){a.preventDefault(),cg(n,"keyboard")}),r.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():cg(n,"mouse")})}return f(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(fn(function(i){return"closing"===i.state}),Yn(1)).subscribe(function(i){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},i.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function cg(e,r,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=r),e.close(t)}var qG=new Ne("MatDialogData"),KG=new Ne("mat-dialog-default-options"),pD=new Ne("mat-dialog-scroll-strategy"),YG={provide:pD,deps:[as],useFactory:function QG(e){return function(){return e.scrollStrategies.block()}}},$G=function(){var e=function(){function r(t,n,i,a,o,s,u,l,c,h){var v=this;d(this,r),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=a,this._overlayContainer=o,this._dialogRefConstructor=u,this._dialogContainerType=l,this._dialogDataToken=c,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Fe,this._afterOpenedAtThisLevel=new Fe,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=sg(function(){return v.openDialogs.length?v._getAfterAllClosed():v._getAfterAllClosed().pipe(ua(void 0))}),this._scrollStrategy=s}return f(r,[{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:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,i){var a=this;if(i=function XG(e,r){return Object.assign(Object.assign({},r),e)}(i,this._defaultOptions||new ug),i.id&&this.getDialogById(i.id),this._dialogAnimatingOpen)return this._lastDialogRef;var o=this._createOverlay(i),s=this._attachDialogContainer(o,i);if("NoopAnimations"!==this._animationMode){var u=s._animationStateChanged.subscribe(function(c){"opening"===c.state&&(a._dialogAnimatingOpen=!0),"opened"===c.state&&(a._dialogAnimatingOpen=!1,u.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new E),this._animationStateSubscriptions.add(u)}var l=this._attachDialogContent(n,s,o,i);return this._lastDialogRef=l,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(function(){return a._removeOpenDialog(l)}),this.afterOpened.next(l),s._initializeWithAttachedContent(),l}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(i){return i.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}},{key:"_createOverlay",value:function(n){var i=this._getOverlayConfig(n);return this._overlay.create(i)}},{key:"_getOverlayConfig",value:function(n){var i=new ag({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(i.backdropClass=n.backdropClass),i}},{key:"_attachDialogContainer",value:function(n,i){var o=qt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:ug,useValue:i}]}),s=new Fu(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return n.attach(s).instance}},{key:"_attachDialogContent",value:function(n,i,a,o){var s=new this._dialogRefConstructor(a,i,o.id);if(n instanceof $r)i.attachTemplatePortal(new ng(n,null,{$implicit:o.data,dialogRef:s}));else{var u=this._createInjector(o,s,i),l=i.attachComponentPortal(new Fu(n,o.viewContainerRef,u,o.componentFactoryResolver));s.componentInstance=l.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}},{key:"_createInjector",value:function(n,i,a){var o=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:i}];return n.direction&&(!o||!o.get(sa,null,tt.Optional))&&s.push({provide:sa,useValue:{value:n.direction,change:Je()}}),qt.create({parent:o||this._injector,providers:s})}},{key:"_removeOpenDialog",value:function(n){var i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,o){a?o.setAttribute("aria-hidden",a):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var i=n.parentElement.children,a=i.length-1;a>-1;a--){var o=i[a];o!==n&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var i=n.length;i--;)n[i].close()}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275dir=Ee({type:e}),e}(),od=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l,c,h){return d(this,n),t.call(this,i,a,s,l,c,u,lg,zG,qG,h)}return f(n)}($G);return e.\u0275fac=function(t){return new(t||e)(de(as),de(qt),de(Aa,8),de(KG,8),de(pD),de(e,12),de(og),de(gi,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),ZG=0,JG=function(){var e=function(){function r(t,n,i){d(this,r),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return f(r,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=gD(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var i=n._matDialogClose||n._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}},{key:"_onButtonClick",value:function(n){cg(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(lg,8),j(Ye),j(od))},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&Ge("click",function(a){return n._onButtonClick(a)}),2&t&&Kt("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Wn]}),e}(),e5=function(){var e=function(){function r(t,n,i){d(this,r),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(ZG++)}return f(r,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=gD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=n._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=n.id)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(lg,8),j(Ye),j(od))},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&Po("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),t5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),n5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function gD(e,r){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?r.find(function(n){return n.id===t.id}):null}var mD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[od,YG],imports:[[vD,rg,an],an]}),e}(),r5=["connectionContainer"],a5=["inputContainer"],o5=["label"];function s5(e,r){1&e&&(Gs(0),ge(1,"div",14),Xt(2,"div",15)(3,"div",16)(4,"div",17),me(),ge(5,"div",18),Xt(6,"div",15)(7,"div",16)(8,"div",17),me(),zs())}function u5(e,r){if(1&e){var t=Nt();ge(0,"div",19),Ge("cdkObserveContent",function(){return yt(t),ze().updateOutlineGap()}),Ht(1,1),me()}2&e&&Me("cdkObserveContentDisabled","outline"!=ze().appearance)}function l5(e,r){if(1&e&&(Gs(0),Ht(1,2),ge(2,"span"),Ie(3),me(),zs()),2&e){var t=ze(2);we(3),bn(t._control.placeholder)}}function c5(e,r){1&e&&Ht(0,3,["*ngSwitchCase","true"])}function d5(e,r){1&e&&(ge(0,"span",23),Ie(1," *"),me())}function f5(e,r){if(1&e){var t=Nt();ge(0,"label",20,21),Ge("cdkObserveContent",function(){return yt(t),ze().updateOutlineGap()}),$e(2,l5,4,1,"ng-container",12),$e(3,c5,1,0,"ng-content",12),$e(4,d5,2,0,"span",22),me()}if(2&e){var n=ze();It("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),Me("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),Kt("for",n._control.id)("aria-owns",n._control.id),we(2),Me("ngSwitchCase",!1),we(1),Me("ngSwitchCase",!0),we(1),Me("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function h5(e,r){1&e&&(ge(0,"div",24),Ht(1,4),me())}function v5(e,r){if(1&e&&(ge(0,"div",25),Xt(1,"span",26),me()),2&e){var t=ze();we(1),It("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function p5(e,r){1&e&&(ge(0,"div"),Ht(1,5),me()),2&e&&Me("@transitionMessages",ze()._subscriptAnimationState)}function g5(e,r){if(1&e&&(ge(0,"div",30),Ie(1),me()),2&e){var t=ze(2);Me("id",t._hintLabelId),we(1),bn(t.hintLabel)}}function m5(e,r){if(1&e&&(ge(0,"div",27),$e(1,g5,2,2,"div",28),Ht(2,6),Xt(3,"div",29),Ht(4,7),me()),2&e){var t=ze();Me("@transitionMessages",t._subscriptAnimationState),we(1),Me("ngIf",t.hintLabel)}}var y5=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_5=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],b5=new Ne("MatError"),C5={transitionMessages:_u("transitionMessages",[Ra("enter",Ln({opacity:1,transform:"translateY(0%)"})),ia("void => enter",[Ln({opacity:0,transform:"translateY(-5px)"}),Fi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e}),e}(),E5=new Ne("MatHint"),yD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-label"]]}),e}(),w5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-placeholder"]]}),e}(),k5=new Ne("MatPrefix"),S5=new Ne("MatSuffix"),_D=0,A5=Tu(function(){return f(function e(r){d(this,e),this._elementRef=r})}(),"primary"),x5=new Ne("MAT_FORM_FIELD_DEFAULT_OPTIONS"),CD=new Ne("MatFormField"),fg=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i))._changeDetectorRef=a,h._dir=o,h._defaults=s,h._platform=u,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new Fe,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(_D++),h._labelId="mat-form-field-label-".concat(_D++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=s&&s.appearance?s.appearance:"legacy",h._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,h}return f(n,[{key:"appearance",get:function(){return this._appearance},set:function(a){var o=this._appearance;this._appearance=a||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&o!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Ot(a)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(a){this._hintLabel=a,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(a){this._explicitFormFieldControl=a}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var a=this;this._validateControlChild();var o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(o.controlType)),o.stateChanges.pipe(ua(null)).subscribe(function(){a._validatePlaceholders(),a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe(rn(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(rn(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&a.updateOutlineGap()})}),Qa(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0,a._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ua(null)).subscribe(function(){a._processHints(),a._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ua(null)).subscribe(function(){a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rn(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return a.updateOutlineGap()})}):a.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(a){var o=this._control?this._control.ngControl:null;return o&&o[a]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,is(this._label.nativeElement,"transitionend").pipe(Yn(1)).subscribe(function(){a._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var a=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&a.push.apply(a,C(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var o=this._hintChildren?this._hintChildren.find(function(u){return"start"===u.align}):null,s=this._hintChildren?this._hintChildren.find(function(u){return"end"===u.align}):null;o?a.push(o.id):this._hintLabel&&a.push(this._hintLabelId),s&&a.push(s.id)}else this._errorChildren&&a.push.apply(a,C(this._errorChildren.map(function(u){return u.id})));this._control.setDescribedByIds(a)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var a=this._label?this._label.nativeElement:null,o=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!a||!a.children.length||!a.textContent.trim()){for(var l=o.querySelectorAll("".concat(s,", ").concat(u)),c=0;c0?.75*ye+10:0}for(var Te=0;Te<_.length;Te++)_[Te].style.width="".concat(h,"px");for(var Pe=0;Pe1&&void 0!==arguments[1]?arguments[1]:n;return this._fontCssClassesByAlias.set(n,i),this}},{key:"classNameForFontAlias",value:function(n){return this._fontCssClassesByAlias.get(n)||n}},{key:"setDefaultFontSetClass",value:function(n){return this._defaultFontSetClass=n,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(n){var i=this,a=this._sanitizer.sanitize(xt.RESOURCE_URL,n);if(!a)throw kD(n);var o=this._cachedIconsByUrl.get(a);return o?Je(cd(o)):this._loadSvgIconFromConfig(new ja(n,null)).pipe(Bn(function(s){return i._cachedIconsByUrl.set(a,s)}),Xe(function(s){return cd(s)}))}},{key:"getNamedSvgIcon",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=DD(i,n),o=this._svgIconConfigs.get(a);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,n))return this._svgIconConfigs.set(a,o),this._getSvgFromConfig(o);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(n,s):mi(wD(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(n){return n.svgText?Je(cd(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(Xe(function(i){return cd(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(n,i){var a=this,o=this._extractIconWithNameFromAnySet(n,i);return o?Je(o):xw(i.filter(function(u){return!u.svgText}).map(function(u){return a._loadSvgIconSetFromConfig(u).pipe(vn(function(l){var c=a._sanitizer.sanitize(xt.RESOURCE_URL,u.url),h="Loading icon set URL: ".concat(c," failed: ").concat(l.message);return a._errorHandler.handleError(new Error(h)),Je(null)}))})).pipe(Xe(function(){var u=a._extractIconWithNameFromAnySet(n,i);if(!u)throw wD(n);return u}))}},{key:"_extractIconWithNameFromAnySet",value:function(n,i){for(var a=i.length-1;a>=0;a--){var o=i[a];if(o.svgText&&o.svgText.toString().indexOf(n)>-1){var s=this._svgElementFromConfig(o),u=this._extractSvgIconFromSet(s,n,o.options);if(u)return u}}return null}},{key:"_loadSvgIconFromConfig",value:function(n){var i=this;return this._fetchIcon(n).pipe(Bn(function(a){return n.svgText=a}),Xe(function(){return i._svgElementFromConfig(n)}))}},{key:"_loadSvgIconSetFromConfig",value:function(n){return n.svgText?Je(null):this._fetchIcon(n).pipe(Bn(function(i){return n.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(n,i,a){var o=n.querySelector('[id="'.concat(i,'"]'));if(!o)return null;var s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,a);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),a);var u=this._svgElementFromString(Lu(""));return u.appendChild(s),this._setSvgAttributes(u,a)}},{key:"_svgElementFromString",value:function(n){var i=this._document.createElement("DIV");i.innerHTML=n;var a=i.querySelector("svg");if(!a)throw Error(" tag not found");return a}},{key:"_toSvgElement",value:function(n){for(var i=this._svgElementFromString(Lu("")),a=n.attributes,o=0;o-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,o=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&o&&o.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)}}]),n}(G5);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(jn),j(Ii,10),j(ra,8),j(Ac,8),j(H0),j(j5,10),j(B5),j(st),j(CD,8))},e.\u0275dir=Ee({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(t,n){1&t&&Ge("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(Po("disabled",n.disabled)("required",n.required),Kt("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),It("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[At([{provide:dg,useExisting:e}]),Re,Wn]}),e}(),OD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[H0],imports:[[TD,sd,an],TD,sd]}),e}(),z5=function(){var e=function(){function r(){d(this,r),this._listeners=[]}return f(r,[{key:"notify",value:function(n,i){var o,a=K(this._listeners);try{for(a.s();!(o=a.n()).done;)(0,o.value)(n,i)}catch(u){a.e(u)}finally{a.f()}}},{key:"listen",value:function(n){var i=this;return this._listeners.push(n),function(){i._listeners=i._listeners.filter(function(a){return n!==a})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),W5=["input"],q5=function(r){return{enterDuration:r}},K5=["*"],Q5=new Ne("mat-radio-default-options",{providedIn:"root",factory:function Y5(){return{color:"accent"}}}),RD=0,$5={provide:Ir,useExisting:Tt(function(){return vg}),multi:!0},ID=f(function e(r,t){d(this,e),this.source=r,this.value=t}),PD=new Ne("MatRadioGroup"),X5=function(){var e=function(){function r(t){d(this,r),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(RD++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Dt}return f(r,[{key:"name",get:function(){return this._name},set:function(n){this._name=n,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(n){this._labelPosition="before"===n?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(n){this._value!==n&&(this._value=n,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n,this.value=n?n.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=Ot(n),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(n){this._required=Ot(n),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var n=this;this._radios&&this._radios.forEach(function(i){i.name=n.name,i._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var n=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(a){a.checked=n.value===a.value,a.checked&&(n._selected=a)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new ID(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(n){return n._markForCheck()})}},{key:"writeValue",value:function(n){this.value=n,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(n){this._controlValueAccessorChangeFn=n}},{key:"registerOnTouched",value:function(n){this.onTouched=n}},{key:"setDisabledState",value:function(n){this.disabled=n,this._changeDetector.markForCheck()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(gr))},e.\u0275dir=Ee({type:e,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),e}(),vg=function(){var e=function(r){p(n,r);var t=b(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n)}(X5);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["mat-radio-group"]],contentQueries:function(t,n,i){var a;1&t&&Fn(i,pg,5),2&t&&Pt(a=Ft())&&(n._radios=a)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[At([$5,{provide:PD,useExisting:e}]),Re]}),e}(),Z5=f(function e(r){d(this,e),this._elementRef=r}),J5=Gp(j0(Z5)),e8=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l,c,h){var v;return d(this,n),(v=t.call(this,a))._changeDetector=o,v._focusMonitor=s,v._radioDispatcher=u,v._providerOverride=c,v._uniqueId="mat-radio-".concat(++RD),v.id=v._uniqueId,v.change=new Dt,v._checked=!1,v._value=null,v._removeUniqueSelectionListener=function(){},v.radioGroup=i,v._noopAnimations="NoopAnimations"===l,h&&(v.tabIndex=Du(h,0)),v._removeUniqueSelectionListener=u.listen(function(_,F){_!==v.id&&F===v.name&&(v.checked=!1)}),v}return f(n,[{key:"checked",get:function(){return this._checked},set:function(a){var o=Ot(a);this._checked!==o&&(this._checked=o,o&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!o&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),o&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(a){this._value!==a&&(this._value=a,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===a),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled(Ot(a))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=Ot(a)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(a,o){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(o){!o&&a.radioGroup&&a.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new ID(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(a){a.stopPropagation()}},{key:"_onInputInteraction",value:function(a){if(a.stopPropagation(),!this.checked&&!this.disabled){var o=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),o&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())}}]),n}(J5);return e.\u0275fac=function(t){Us()},e.\u0275dir=Ee({type:e,viewQuery:function(t,n){var i;1&t&&Tr(W5,5),2&t&&Pt(i=Ft())&&(n._inputElement=i.first)},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[Re]}),e}(),pg=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l,c,h){return d(this,n),t.call(this,i,a,o,s,u,l,c,h)}return f(n)}(e8);return e.\u0275fac=function(t){return new(t||e)(j(PD,8),j(Ye),j(gr),j(Mu),j(z5),j(gi,8),j(Q5,8),$i("tabindex"))},e.\u0275cmp=jt({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,n){1&t&&Ge("focus",function(){return n._inputElement.nativeElement.focus()}),2&t&&(Kt("tabindex",null)("id",n.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),It("mat-radio-checked",n.checked)("mat-radio-disabled",n.disabled)("_mat-animation-noopable",n._noopAnimations)("mat-primary","primary"===n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Re],ngContentSelectors:K5,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","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,n){if(1&t&&(ir(),ge(0,"label",0,1)(2,"span",2),Xt(3,"span",3)(4,"span",4),ge(5,"input",5,6),Ge("change",function(o){return n._onInputInteraction(o)})("click",function(o){return n._onInputClick(o)}),me(),ge(7,"span",7),Xt(8,"span",8),me()(),ge(9,"span",9)(10,"span",10),Ie(11,"\xa0"),me(),Ht(12),me()()),2&t){var i=Qn(1);Kt("for",n.inputId),we(5),Me("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex)("required",n.required),Kt("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),we(2),Me("matRippleTrigger",i)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Hh(18,q5,n._noopAnimations?0:150)),we(2),It("mat-radio-label-before","before"==n.labelPosition)}},directives:[Ru],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;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),FD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an],an]}),e}();function LD(e){return Xe(function(){return e})}var dd=["*"],t8=["content"];function n8(e,r){if(1&e){var t=Nt();ge(0,"div",2),Ge("click",function(){return yt(t),ze()._onBackdropClicked()}),me()}2&e&&It("mat-drawer-shown",ze()._isShowingBackdrop())}function r8(e,r){1&e&&(ge(0,"mat-drawer-content"),Ht(1,2),me())}var i8=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],a8=["mat-drawer","mat-drawer-content","*"];function o8(e,r){if(1&e){var t=Nt();ge(0,"div",2),Ge("click",function(){return yt(t),ze()._onBackdropClicked()}),me()}2&e&&It("mat-drawer-shown",ze()._isShowingBackdrop())}function s8(e,r){1&e&&(ge(0,"mat-sidenav-content"),Ht(1,2),me())}var u8=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l8=["mat-sidenav","mat-sidenav-content","*"],ND={transformDrawer:_u("transform",[Ra("open, open-instant",Ln({transform:"none",visibility:"visible"})),Ra("void",Ln({"box-shadow":"none",visibility:"hidden"})),ia("void => open-instant",Fi("0ms")),ia("void <=> open, open-instant => void",Fi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},d8=new Ne("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function f8(){return!1}}),gg=new Ne("MAT_DRAWER_CONTAINER"),fd=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,o,s,u))._changeDetectorRef=i,l._container=a,l}return f(n,[{key:"ngAfterContentInit",value:function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})}}]),n}(Pu);return e.\u0275fac=function(t){return new(t||e)(j(gr),j(Tt(function(){return BD})),j(Ye),j(td),j(st))},e.\u0275cmp=jt({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,n){2&t&&xi("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[At([{provide:Pu,useExisting:e}]),Re],ngContentSelectors:dd,decls:1,vars:0,template:function(t,n){1&t&&(ir(),Ht(0))},encapsulation:2,changeDetection:0}),e}(),VD=function(){var e=function(){function r(t,n,i,a,o,s,u,l){var c=this;d(this,r),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=a,this._ngZone=o,this._interactivityChecker=s,this._doc=u,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Fe,this._animationEnd=new Fe,this._animationState="void",this.openedChange=new Dt(!0),this._openedStream=this.openedChange.pipe(fn(function(h){return h}),Xe(function(){})),this.openedStart=this._animationStarted.pipe(fn(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),LD(void 0)),this._closedStream=this.openedChange.pipe(fn(function(h){return!h}),Xe(function(){})),this.closedStart=this._animationStarted.pipe(fn(function(h){return h.fromState!==h.toState&&"void"===h.toState}),LD(void 0)),this._destroyed=new Fe,this.onPositionChanged=new Dt,this._modeChanged=new Fe,this.openedChange.subscribe(function(h){h?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus(c._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){is(c._elementRef.nativeElement,"keydown").pipe(fn(function(h){return 27===h.keyCode&&!c.disableClose&&!k0(h)}),rn(c._destroyed)).subscribe(function(h){return c._ngZone.run(function(){c.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe(D0(function(h,v){return h.fromState===v.fromState&&h.toState===v.toState})).subscribe(function(h){var v=h.fromState,_=h.toState;(0===_.indexOf("open")&&"void"===v||"void"===_&&0===v.indexOf("open"))&&c.openedChange.emit(c._opened)})}return f(r,[{key:"position",get:function(){return this._position},set:function(n){(n="end"===n?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(n),this._position=n,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(n){this._mode=n,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(n){this._disableClose=Ot(n)}},{key:"autoFocus",get:function(){var n=this._autoFocus;return null==n?"side"===this.mode?"dialog":"first-tabbable":n},set:function(n){("true"===n||"false"===n||null==n)&&(n=Ot(n)),this._autoFocus=n}},{key:"opened",get:function(){return this._opened},set:function(n){this.toggle(Ot(n))}},{key:"_forceFocus",value:function(n,i){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(function(){n.addEventListener("blur",function(){return n.removeAttribute("tabindex")}),n.addEventListener("mousedown",function(){return n.removeAttribute("tabindex")})})),n.focus(i)}},{key:"_focusByCssSelector",value:function(n,i){var a=this._elementRef.nativeElement.querySelector(n);a&&this._forceFocus(a,i)}},{key:"_takeFocus",value:function(){var n=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(a){!a&&"function"==typeof n._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(n){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var n;this._focusTrap&&this._focusTrap.destroy(),null===(n=this._anchor)||void 0===n||n.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(n){return this.toggle(!0,n)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;n&&i&&(this._openedVia=i);var a=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),a}},{key:"_setOpen",value:function(n,i,a){var o=this;return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(a)),this._updateFocusTrapState(),new Promise(function(s){o.openedChange.pipe(Yn(1)).subscribe(function(u){return s(u?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_updatePositionInParent",value:function(n){var i=this._elementRef.nativeElement,a=i.parentNode;"end"===n?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),a.insertBefore(this._anchor,i)),a.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(O0),j(Mu),j(jn),j(st),j(Hp),j(ot,8),j(gg,8))},e.\u0275cmp=jt({type:e,selectors:[["mat-drawer"]],viewQuery:function(t,n){var i;1&t&&Tr(t8,5),2&t&&Pt(i=Ft())&&(n._content=i.first)},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,n){1&t&&qs("@transform.start",function(a){return n._animationStarted.next(a)})("@transform.done",function(a){return n._animationEnd.next(a)}),2&t&&(Kt("align",null),Qs("@transform",n._animationState),It("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:dd,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,n){1&t&&(ir(),ge(0,"div",0,1),Ht(2),me())},directives:[Pu],encapsulation:2,data:{animation:[ND.transformDrawer]},changeDetection:0}),e}(),BD=function(){var e=function(){function r(t,n,i,a,o){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;d(this,r),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=a,this._animationMode=l,this._drawers=new YC,this.backdropClick=new Dt,this._destroyed=new Fe,this._doCheckSubject=new Fe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Fe,t&&t.change.pipe(rn(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe(rn(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=u}return f(r,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(n){this._autosize=Ot(n)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(n){this._backdropOverride=null==n?null:Ot(n)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var n=this;this._allDrawers.changes.pipe(ua(this._allDrawers),rn(this._destroyed)).subscribe(function(i){n._drawers.reset(i.filter(function(a){return!a._container||a._container===n})),n._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ua(null)).subscribe(function(){n._validateDrawers(),n._drawers.forEach(function(i){n._watchDrawerToggle(i),n._watchDrawerPosition(i),n._watchDrawerMode(i)}),(!n._drawers.length||n._isDrawerOpen(n._start)||n._isDrawerOpen(n._end))&&n.updateContentMargins(),n._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){n._doCheckSubject.pipe(Zp(10),rn(n._destroyed)).subscribe(function(){return n.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(n){return n.open()})}},{key:"close",value:function(){this._drawers.forEach(function(n){return n.close()})}},{key:"updateContentMargins",value:function(){var n=this,i=0,a=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var o=this._left._getWidth();i+=o,a-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)a+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();a+=s,i-=s}a=a||null,((i=i||null)!==this._contentMargins.left||a!==this._contentMargins.right)&&(this._contentMargins={left:i,right:a},this._ngZone.run(function(){return n._contentMarginChanges.next(n._contentMargins)}))}},{key:"ngDoCheck",value:function(){var n=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return n._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(n){var i=this;n._animationStarted.pipe(fn(function(a){return a.fromState!==a.toState}),rn(this._drawers.changes)).subscribe(function(a){"open-instant"!==a.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==n.mode&&n.openedChange.pipe(rn(this._drawers.changes)).subscribe(function(){return i._setContainerClass(n.opened)})}},{key:"_watchDrawerPosition",value:function(n){var i=this;!n||n.onPositionChanged.pipe(rn(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe(Yn(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(n){var i=this;n&&n._modeChanged.pipe(rn(Qa(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(n){var i=this._element.nativeElement.classList,a="mat-drawer-container-has-open";n?i.add(a):i.remove(a)}},{key:"_validateDrawers",value:function(){var n=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?n._end=i:n._start=i}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var n=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&n._canHaveBackdrop(i)}).forEach(function(i){return i._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(n){return"side"!==n.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(n){return null!=n&&n.opened}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(sa,8),j(Ye),j(st),j(gr),j(eg),j(d8),j(gi,8))},e.\u0275cmp=jt({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(t,n,i){var a;1&t&&(Fn(i,fd,5),Fn(i,VD,5)),2&t&&(Pt(a=Ft())&&(n._content=a.first),Pt(a=Ft())&&(n._allDrawers=a))},viewQuery:function(t,n){var i;1&t&&Tr(fd,5),2&t&&Pt(i=Ft())&&(n._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-drawer-container-explicit-backdrop",n._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[At([{provide:gg,useExisting:e}])],ngContentSelectors:a8,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,n){1&t&&(ir(i8),$e(0,n8,1,2,"div",0),Ht(1),Ht(2,1),$e(3,r8,2,0,"mat-drawer-content",1)),2&t&&(Me("ngIf",n.hasBackdrop),we(3),Me("ngIf",!n._content))},directives:[fd,Jr],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),e}(),jD=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u){return d(this,n),t.call(this,i,a,o,s,u)}return f(n)}(fd);return e.\u0275fac=function(t){return new(t||e)(j(gr),j(Tt(function(){return UD})),j(Ye),j(td),j(st))},e.\u0275cmp=jt({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,n){2&t&&xi("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[At([{provide:Pu,useExisting:e}]),Re],ngContentSelectors:dd,decls:1,vars:0,template:function(t,n){1&t&&(ir(),Ht(0))},encapsulation:2,changeDetection:0}),e}(),HD=function(){var e=function(r){p(n,r);var t=b(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return f(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=Ot(a)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Du(a)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Du(a)}}]),n}(VD);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275cmp=jt({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,n){2&t&&(Kt("align",null),xi("top",n.fixedInViewport?n.fixedTopGap:null,"px")("bottom",n.fixedInViewport?n.fixedBottomGap:null,"px"),It("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened)("mat-sidenav-fixed",n.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Re],ngContentSelectors:dd,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,n){1&t&&(ir(),ge(0,"div",0,1),Ht(2),me())},directives:[Pu],encapsulation:2,data:{animation:[ND.transformDrawer]},changeDetection:0}),e}(),UD=function(){var e=function(r){p(n,r);var t=b(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n)}(BD);return e.\u0275fac=function(){var r;return function(n){return(r||(r=Qe(e)))(n||e)}}(),e.\u0275cmp=jt({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,n,i){var a;1&t&&(Fn(i,jD,5),Fn(i,HD,5)),2&t&&(Pt(a=Ft())&&(n._content=a.first),Pt(a=Ft())&&(n._allDrawers=a))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-drawer-container-explicit-backdrop",n._backdropOverride)},exportAs:["matSidenavContainer"],features:[At([{provide:gg,useExisting:e}]),Re],ngContentSelectors:l8,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,n){1&t&&(ir(u8),$e(0,o8,1,2,"div",0),Ht(1),Ht(2,1),$e(3,s8,2,0,"mat-sidenav-content",1)),2&t&&(Me("ngIf",n.hasBackdrop),we(3),Me("ngIf",!n._content))},directives:[jD,Jr],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),e}(),GD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[dc,an,nd],nd,an]}),e}();function zD(){for(var e=arguments.length,r=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:en;return function(n){WD(r,function(){for(var i=e.length,a=new Array(i),o=i,s=i,u=function(h){WD(r,function(){var v=In(e[h],r),_=!1;v.subscribe(zt(n,function(F){a[h]=F,_||(_=!0,s--),s||n.next(t(a.slice()))},function(){--o||n.complete()}))},n)},l=0;l visible",Fi("150ms cubic-bezier(0, 0, 0.2, 1)")),ia("* => void, * => hidden",Fi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ln({opacity:0})))])},w8=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this))._ngZone=i,l._elementRef=a,l._changeDetectorRef=o,l._platform=s,l.snackBarConfig=u,l._announceDelay=150,l._destroyed=!1,l._onAnnounce=new Fe,l._onExit=new Fe,l._onEnter=new Fe,l._animationState="void",l.attachDomPortal=function(c){return l._assertNotAttached(),l._applySnackBarClasses(),l._portalOutlet.attachDomPortal(c)},l._live="assertive"!==u.politeness||u.announcementMessage?"off"===u.politeness?"off":"polite":"assertive",l._platform.FIREFOX&&("polite"===l._live&&(l._role="status"),"assertive"===l._live&&(l._role="alert")),l}return f(n,[{key:"attachComponentPortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}},{key:"onAnimationEnd",value:function(a){var s=a.toState;if(("void"===s&&"void"!==a.fromState||"hidden"===s)&&this._completeExit(),"visible"===s){var u=this._onEnter;this._ngZone.run(function(){u.next(),u.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(Yn(1)).subscribe(function(){a._onExit.next(),a._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var a=this._elementRef.nativeElement,o=this.snackBarConfig.panelClass;o&&(Array.isArray(o)?o.forEach(function(s){return a.classList.add(s)}):a.classList.add(o)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var o=a._elementRef.nativeElement.querySelector("[aria-hidden]"),s=a._elementRef.nativeElement.querySelector("[aria-live]");if(o&&s){var u=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&o.contains(document.activeElement)&&(u=document.activeElement),o.removeAttribute("aria-hidden"),s.appendChild(o),null==u||u.focus(),a._onAnnounce.next(),a._onAnnounce.complete()}},a._announceDelay)})}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(j(st),j(Ye),j(gr),j(jn),j(hd))},e.\u0275cmp=jt({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var i;1&t&&Tr(id,7),2&t&&Pt(i=Ft())&&(n._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&qs("@state.done",function(a){return n.onAnimationEnd(a)}),2&t&&Qs("@state",n._animationState)},features:[Re],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(ge(0,"div",0),$e(1,_8,0,0,"ng-template",1),me(),Xt(2,"div")),2&t&&(we(2),Kt("aria-live",n._live)("role",n._role))},directives:[id],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:[E8.snackBarState]}}),e}(),yg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[vD,rg,dc,qp,an],an]}),e}(),$D=new Ne("mat-snack-bar-default-options",{providedIn:"root",factory:function k8(){return new hd}}),S8=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=a,this._parentSnackBar=o,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return f(r,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,i){return this._attach(n,i)}},{key:"openFromTemplate",value:function(n,i){return this._attach(n,i)}},{key:"open",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=Object.assign(Object.assign({},this._defaultConfig),a);return o.data={message:n,action:i},o.announcementMessage===n&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,i){var o=qt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:hd,useValue:i}]}),s=new Fu(this.snackBarContainerComponent,i.viewContainerRef,o),u=n.attach(s);return u.instance.snackBarConfig=i,u.instance}},{key:"_attach",value:function(n,i){var a=this,o=Object.assign(Object.assign(Object.assign({},new hd),this._defaultConfig),i),s=this._createOverlay(o),u=this._attachSnackBarContainer(s,o),l=new mg(u,s);if(n instanceof $r){var c=new ng(n,null,{$implicit:o.data,snackBarRef:l});l.instance=u.attachTemplatePortal(c)}else{var h=this._createInjector(o,l),v=new Fu(n,void 0,h),_=u.attachComponentPortal(v);l.instance=_.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(rn(s.detachments())).subscribe(function(F){s.overlayElement.classList.toggle(a.handsetCssClass,F.matches)}),o.announcementMessage&&u._onAnnounce.subscribe(function(){a._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,i){var a=this;n.afterDismissed().subscribe(function(){a._openedSnackBarRef==n&&(a._openedSnackBarRef=null),i.announcementMessage&&a._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),i.duration&&i.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(i.duration)})}},{key:"_createOverlay",value:function(n){var i=new ag;i.direction=n.direction;var a=this._overlay.position().global(),o="rtl"===n.direction,s="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!o||"end"===n.horizontalPosition&&o,u=!s&&"center"!==n.horizontalPosition;return s?a.left("0"):u?a.right("0"):a.centerHorizontally(),"top"===n.verticalPosition?a.top("0"):a.bottom("0"),i.positionStrategy=a,this._overlay.create(i)}},{key:"_createInjector",value:function(n,i){return qt.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:mg,useValue:i},{provide:YD,useValue:n.data}]})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(as),de(F0),de(qt),de(KD),de(e,12),de($D))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),_g=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o,s,u,l){var c;return d(this,n),(c=t.call(this,i,a,o,s,u,l)).simpleSnackBarComponent=C8,c.snackBarContainerComponent=w8,c.handsetCssClass="mat-snack-bar-handset",c}return f(n)}(S8);return e.\u0275fac=function(t){return new(t||e)(de(as),de(F0),de(qt),de(KD),de(e,12),de($D))},e.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:yg}),e}(),D8=["*",[["mat-toolbar-row"]]],A8=["*","mat-toolbar-row"],x8=Tu(function(){return f(function e(r){d(this,e),this._elementRef=r})}()),M8=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),T8=function(){var e=function(r){p(n,r);var t=b(n);function n(i,a,o){var s;return d(this,n),(s=t.call(this,i))._platform=a,s._document=o,s}return f(n,[{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return a._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(x8);return e.\u0275fac=function(t){return new(t||e)(j(Ye),j(jn),j(ot))},e.\u0275cmp=jt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,i){var a;1&t&&Fn(i,M8,5),2&t&&Pt(a=Ft())&&(n._toolbarRows=a)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&It("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Re],ngContentSelectors:A8,decls:2,vars:0,template:function(t,n){1&t&&(ir(D8),Ht(0),Ht(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),XD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),O8=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[qp,GD,XD,xD,OD,W0,sd,mD,FD,eD,yg],qp,GD,XD,xD,OD,W0,sd,mD,FD,eD,yg]}),e}(),vd=P(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function ZD(){return Yt(function(e,r){var t=null;e._refCount++;var n=zt(r,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)t=null;else{var i=e._connection,a=t;t=null,i&&(!a||i===a)&&i.unsubscribe(),r.unsubscribe()}});e.subscribe(n),n.closed||(t=e.connect())})}var R8=function(e){p(t,e);var r=b(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).source=n,a.subjectFactory=i,a._subject=null,a._refCount=0,a._connection=null,fa(n)&&(a.lift=n.lift),a}return f(t,[{key:"_subscribe",value:function(i){return this.getSubject().subscribe(i)}},{key:"getSubject",value:function(){var i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"_teardown",value:function(){this._refCount=0;var i=this._connection;this._subject=this._connection=null,null==i||i.unsubscribe()}},{key:"connect",value:function(){var i=this,a=this._connection;if(!a){a=this._connection=new E;var o=this.getSubject();a.add(this.source.subscribe(zt(o,void 0,function(){i._teardown(),o.complete()},function(s){i._teardown(),o.error(s)},function(){return i._teardown()}))),a.closed&&(this._connection=null,a=E.EMPTY)}return a}},{key:"refCount",value:function(){return ZD()(this)}}]),t}(ct);function Ha(e,r){return Yt(function(t,n){var i=null,a=0,o=!1,s=function(){return o&&!i&&n.complete()};t.subscribe(zt(n,function(u){null==i||i.unsubscribe();var l=0,c=a++;or(e(u,c)).subscribe(i=zt(n,function(h){return n.next(r?r(u,h,c,l++):h)},function(){i=null,s()}))},function(){o=!0,s()}))})}function I8(e,r,t,n,i){return function(a,o){var s=t,u=r,l=0;a.subscribe(zt(o,function(c){var h=l++;u=s?e(u,c,h):(s=!0,c),n&&o.next(u)},i&&function(){s&&o.next(u),o.complete()}))}}function JD(e,r){return Yt(I8(e,r,arguments.length>=2,!0))}function bg(e){return e<=0?function(){return ri}:Yt(function(r,t){var n=[];r.subscribe(zt(t,function(i){n.push(i),e0&&void 0!==arguments[0]?arguments[0]:P8;return Yt(function(r,t){var n=!1;r.subscribe(zt(t,function(i){n=!0,t.next(i)},function(){return n?t.complete():t.error(e())}))})}function P8(){return new vd}function tA(e){return Yt(function(r,t){var n=!1;r.subscribe(zt(t,function(i){n=!0,t.next(i)},function(){n||t.next(e),t.complete()}))})}function ss(e,r){var t=arguments.length>=2;return function(n){return n.pipe(e?fn(function(i,a){return e(i,a,n)}):en,Yn(1),t?tA(r):eA(function(){return new vd}))}}var Bi=f(function e(r,t){d(this,e),this.id=r,this.url=t}),Cg=function(e){p(t,e);var r=b(t);function t(n,i){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return d(this,t),(a=r.call(this,n,i)).navigationTrigger=o,a.restoredState=s,a}return f(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Bi),Vu=function(e){p(t,e);var r=b(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).urlAfterRedirects=a,o}return f(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(Bi),nA=function(e){p(t,e);var r=b(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).reason=a,o}return f(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Bi),L8=function(e){p(t,e);var r=b(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).error=a,o}return f(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(Bi),N8=function(e){p(t,e);var r=b(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),V8=function(e){p(t,e);var r=b(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),B8=function(e){p(t,e);var r=b(t);function t(n,i,a,o,s){var u;return d(this,t),(u=r.call(this,n,i)).urlAfterRedirects=a,u.state=o,u.shouldActivate=s,u}return f(t,[{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,")")}}]),t}(Bi),j8=function(e){p(t,e);var r=b(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),H8=function(e){p(t,e);var r=b(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),rA=function(){function e(r){d(this,e),this.route=r}return f(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),iA=function(){function e(r){d(this,e),this.route=r}return f(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),U8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),G8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),z8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),W8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),aA=function(){function e(r,t,n){d(this,e),this.routerEvent=r,this.position=t,this.anchor=n}return f(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),_t="primary",q8=function(){function e(r){d(this,e),this.params=r||{}}return f(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function us(e){return new q8(e)}var oA="ngNavigationCancelingError";function Eg(e){var r=Error("NavigationCancelingError: "+e);return r[oA]=!0,r}function Q8(e,r,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(r.hasChildren()||n.length0?e[e.length-1]:null}function Hn(e,r){for(var t in e)e.hasOwnProperty(t)&&r(e[t],t)}function _i(e){return Ah(e)?e:Ws(e)?In(Promise.resolve(e)):Je(e)}var X8={exact:function fA(e,r,t){if(!Ga(e.segments,r.segments)||!pd(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children)if(!e.children[n]||!fA(e.children[n],r.children[n],t))return!1;return!0},subset:hA},cA={exact:function Z8(e,r){return yi(e,r)},subset:function J8(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(function(t){return sA(e[t],r[t])})},ignored:function(){return!0}};function dA(e,r,t){return X8[t.paths](e.root,r.root,t.matrixParams)&&cA[t.queryParams](e.queryParams,r.queryParams)&&!("exact"===t.fragment&&e.fragment!==r.fragment)}function hA(e,r,t){return vA(e,r,r.segments,t)}function vA(e,r,t,n){if(e.segments.length>t.length){var i=e.segments.slice(0,t.length);return!(!Ga(i,t)||r.hasChildren()||!pd(i,t,n))}if(e.segments.length===t.length){if(!Ga(e.segments,t)||!pd(e.segments,t,n))return!1;for(var a in r.children)if(!e.children[a]||!hA(e.children[a],r.children[a],n))return!1;return!0}var o=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!!(Ga(e.segments,o)&&pd(e.segments,o,n)&&e.children[_t])&&vA(e.children[_t],r,s,n)}function pd(e,r,t){return r.every(function(n,i){return cA[t](e[i].parameters,n.parameters)})}var Ua=function(){function e(r,t,n){d(this,e),this.root=r,this.queryParams=t,this.fragment=n}return f(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=us(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return nz.serialize(this)}}]),e}(),wt=function(){function e(r,t){var n=this;d(this,e),this.segments=r,this.children=t,this.parent=null,Hn(t,function(i,a){return i.parent=n})}return f(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return gd(this)}}]),e}(),Bu=function(){function e(r,t){d(this,e),this.path=r,this.parameters=t}return f(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=us(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return _A(this)}}]),e}();function Ga(e,r){return e.length===r.length&&e.every(function(t,n){return t.path===r[n].path})}var pA=f(function e(){d(this,e)}),gA=function(){function e(){d(this,e)}return f(e,[{key:"parse",value:function(t){var n=new dz(t);return new Ua(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(ju(t.root,!0)),i=function az(e){var r=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(i){return"".concat(md(t),"=").concat(md(i))}).join("&"):"".concat(md(t),"=").concat(md(n))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function rz(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(i).concat(a)}}]),e}(),nz=new gA;function gd(e){return e.segments.map(function(r){return _A(r)}).join("/")}function ju(e,r){if(!e.hasChildren())return gd(e);if(r){var t=e.children[_t]?ju(e.children[_t],!1):"",n=[];return Hn(e.children,function(a,o){o!==_t&&n.push("".concat(o,":").concat(ju(a,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var i=function tz(e,r){var t=[];return Hn(e.children,function(n,i){i===_t&&(t=t.concat(r(n,i)))}),Hn(e.children,function(n,i){i!==_t&&(t=t.concat(r(n,i)))}),t}(e,function(a,o){return o===_t?[ju(e.children[_t],!1)]:["".concat(o,":").concat(ju(a,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[_t]?"".concat(gd(e),"/").concat(i[0]):"".concat(gd(e),"/(").concat(i.join("//"),")")}function mA(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function md(e){return mA(e).replace(/%3B/gi,";")}function wg(e){return mA(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yd(e){return decodeURIComponent(e)}function yA(e){return yd(e.replace(/\+/g,"%20"))}function _A(e){return"".concat(wg(e.path)).concat(function iz(e){return Object.keys(e).map(function(r){return";".concat(wg(r),"=").concat(wg(e[r]))}).join("")}(e.parameters))}var oz=/^[^\/()?;=#]+/;function _d(e){var r=e.match(oz);return r?r[0]:""}var sz=/^[^=?&#]+/,lz=/^[^&#]+/,dz=function(){function e(r){d(this,e),this.url=r,this.remaining=r}return f(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wt([],{}):new wt([],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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(i[_t]=new wt(t,n)),i}},{key:"parseSegment",value:function(){var t=_d(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Bu(yd(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=_d(this.remaining);if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var a=_d(this.remaining);a&&this.capture(i=a)}t[yd(n)]=yd(i)}}},{key:"parseQueryParam",value:function(t){var n=function uz(e){var r=e.match(sz);return r?r[0]:""}(this.remaining);if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var a=function cz(e){var r=e.match(lz);return r?r[0]:""}(this.remaining);a&&this.capture(i=a)}var o=yA(n),s=yA(i);if(t.hasOwnProperty(o)){var u=t[o];Array.isArray(u)||(t[o]=u=[u]),u.push(s)}else t[o]=s}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=_d(this.remaining),a=this.remaining[i.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;i.indexOf(":")>-1?(o=i.substr(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=_t);var s=this.parseChildren();n[o]=1===Object.keys(s).length?s[_t]:new wt([],s),this.consumeOptional("//")}return n}},{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,'".'))}}]),e}(),bA=function(){function e(r){d(this,e),this._root=r}return f(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=kg(t,this._root);return n?n.children.map(function(i){return i.value}):[]}},{key:"firstChild",value:function(t){var n=kg(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=Sg(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return Sg(t,this._root).map(function(n){return n.value})}}]),e}();function kg(e,r){if(e===r.value)return r;var n,t=K(r.children);try{for(t.s();!(n=t.n()).done;){var a=kg(e,n.value);if(a)return a}}catch(o){t.e(o)}finally{t.f()}return null}function Sg(e,r){if(e===r.value)return[r];var n,t=K(r.children);try{for(t.s();!(n=t.n()).done;){var a=Sg(e,n.value);if(a.length)return a.unshift(r),a}}catch(o){t.e(o)}finally{t.f()}return[]}var ji=function(){function e(r,t){d(this,e),this.value=r,this.children=t}return f(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ls(e){var r={};return e&&e.children.forEach(function(t){return r[t.value.outlet]=t}),r}var CA=function(e){p(t,e);var r=b(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n)).snapshot=i,Dg(q(a),n),a}return f(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(bA);function EA(e,r){var t=function fz(e,r){var o=new bd([],{},{},"",{},_t,r,null,e.root,-1,{});return new kA("",new ji(o,[]))}(e,r),n=new _r([new Bu("",{})]),i=new _r({}),a=new _r({}),o=new _r({}),s=new _r(""),u=new za(n,i,o,s,a,_t,r,t.root);return u.snapshot=t.root,new CA(new ji(u,[]),t)}var za=function(){function e(r,t,n,i,a,o,s,u){d(this,e),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}return f(e,[{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(Xe(function(t){return us(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Xe(function(t){return us(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function wA(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==r)for(n=t.length-1;n>=1;){var i=t[n],a=t[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(a.component)break;n--}}return hz(t.slice(n))}function hz(e){return e.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var bd=function(){function e(r,t,n,i,a,o,s,u,l,c,h){d(this,e),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return f(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=us(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=us(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(i){return i.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),kA=function(e){p(t,e);var r=b(t);function t(n,i){var a;return d(this,t),(a=r.call(this,i)).url=n,Dg(q(a),i),a}return f(t,[{key:"toString",value:function(){return SA(this._root)}}]),t}(bA);function Dg(e,r){r.value._routerState=e,r.children.forEach(function(t){return Dg(e,t)})}function SA(e){var r=e.children.length>0?" { ".concat(e.children.map(SA).join(", ")," } "):"";return"".concat(e.value).concat(r)}function Ag(e){if(e.snapshot){var r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,yi(r.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),r.fragment!==t.fragment&&e.fragment.next(t.fragment),yi(r.params,t.params)||e.params.next(t.params),function Y8(e,r){if(e.length!==r.length)return!1;for(var t=0;ti;){if(a-=i,!(n=n.parent))throw new Error("Invalid number of '../'");i=n.segments.length}return new Tg(n,!1,i-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,e.numberOfDoubleDots)}(a,r,e),s=o.processChildren?Ed(o.segmentGroup,o.index,a.commands):xA(o.segmentGroup,o.index,a.commands);return Mg(o.segmentGroup,s,r,n,i)}function Cd(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Uu(e){return"object"==typeof e&&null!=e&&e.outlets}function Mg(e,r,t,n,i){var a={};return n&&Hn(n,function(o,s){a[s]=Array.isArray(o)?o.map(function(u){return"".concat(u)}):"".concat(o)}),new Ua(t.root===e?r:DA(t.root,e,r),a,i)}function DA(e,r,t){var n={};return Hn(e.children,function(i,a){n[a]=i===r?t:DA(i,r,t)}),new wt(e.segments,n)}var AA=function(){function e(r,t,n){if(d(this,e),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Cd(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find(Uu);if(i&&i!==lA(n))throw new Error("{outlets:{}} has to be the last command")}return f(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Tg=f(function e(r,t,n){d(this,e),this.segmentGroup=r,this.processChildren=t,this.index=n});function xA(e,r,t){if(e||(e=new wt([],{})),0===e.segments.length&&e.hasChildren())return Ed(e,r,t);var n=function Ez(e,r,t){for(var n=0,i=r,a={match:!1,pathIndex:0,commandIndex:0};i=t.length)return a;var o=e.segments[i],s=t[n];if(Uu(s))break;var u="".concat(s),l=n0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!TA(u,l,o))return a;n+=2}else{if(!TA(u,{},o))return a;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},PA):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Q8)(t,e,r);if(!a)return Object.assign({},PA);var o={};Hn(a.posParams,function(u,l){o[l]=u.path});var s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(n=a.posParams)&&void 0!==n?n:{}}}function kd(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Vz(e,t,n)){var a=new wt(r,Nz(e,r,n,new wt(t,e.children)));return a._sourceSegment=e,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&Bz(e,t,n)){var o=new wt(e.segments,Lz(e,r,t,n,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}var s=new wt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}function Lz(e,r,t,n,i,a){var u,o={},s=K(n);try{for(s.s();!(u=s.n()).done;){var l=u.value;if(Sd(e,t,l)&&!i[Lr(l)]){var c=new wt([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===a?e.segments.length:r.length,o[Lr(l)]=c}}}catch(h){s.e(h)}finally{s.f()}return Object.assign(Object.assign({},i),o)}function Nz(e,r,t,n){var i={};i[_t]=n,n._sourceSegment=e,n._segmentIndexShift=r.length;var o,a=K(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Lr(s)!==_t){var u=new wt([],{});u._sourceSegment=e,u._segmentIndexShift=r.length,i[Lr(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return i}function Vz(e,r,t){return t.some(function(n){return Sd(e,r,n)&&Lr(n)!==_t})}function Bz(e,r,t){return t.some(function(n){return Sd(e,r,n)})}function Sd(e,r,t){return(!(e.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function FA(e,r,t,n){return!!(Lr(e)===n||n!==_t&&Sd(r,t,e))&&("**"===e.path||wd(r,e,t).matched)}function LA(e,r,t){return 0===r.length&&!e.children[t]}var qu=f(function e(r){d(this,e),this.segmentGroup=r||null}),NA=f(function e(r){d(this,e),this.urlTree=r});function Dd(e){return mi(new qu(e))}function VA(e){return mi(new NA(e))}function jz(e){return mi(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}var Gz=function(){function e(r,t,n,i,a){d(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(Mi)}return f(e,[{key:"apply",value:function(){var t=this,n=kd(this.urlTree.root,[],[],this.config).segmentGroup,i=new wt(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,i,_t).pipe(Xe(function(s){return t.createUrlTree(Fg(s),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(vn(function(s){if(s instanceof NA)return t.allowRedirects=!1,t.match(s.urlTree);throw s instanceof qu?t.noMatchError(s):s}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,_t).pipe(Xe(function(o){return n.createUrlTree(Fg(o),t.queryParams,t.fragment)})).pipe(vn(function(o){throw o instanceof qu?n.noMatchError(o):o}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,i){var a=t.segments.length>0?new wt([],D({},_t,t)):t;return new Ua(a,n,i)}},{key:"expandSegmentGroup",value:function(t,n,i,a){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,n,i).pipe(Xe(function(o){return new wt([],o)})):this.expandSegment(t,i,n,i.segments,a,!0)}},{key:"expandChildren",value:function(t,n,i){for(var a=this,o=[],s=0,u=Object.keys(i.children);s=2;return function(n){return n.pipe(e?fn(function(i,a){return e(i,a,n)}):en,bg(1),t?tA(r):eA(function(){return new vd}))}}())}},{key:"expandSegment",value:function(t,n,i,a,o,s){var u=this;return In(i).pipe(qo(function(l){return u.expandSegmentAgainstRoute(t,n,i,l,a,o,s).pipe(vn(function(h){if(h instanceof qu)return Je(null);throw h}))}),ss(function(l){return!!l}),vn(function(l,c){if(l instanceof vd||"EmptyError"===l.name){if(LA(n,a,o))return Je(new wt([],{}));throw new qu(n)}throw l}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,i,a,o,s,u){return FA(a,n,o,s)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,n,a,o,s):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,a,o,s):Dd(n):Dd(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,i,a,o,s){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,a,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,i,a,o,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,i,a){var o=this,s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?VA(s):this.lineralizeSegments(i,s).pipe(Sn(function(u){var l=new wt(u,{});return o.expandSegment(t,l,n,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,i,a,o,s){var u=this,l=wd(n,a,o),h=l.consumedSegments,v=l.remainingSegments,_=l.positionalParamSegments;if(!l.matched)return Dd(n);var F=this.applyRedirectCommands(h,a.redirectTo,_);return a.redirectTo.startsWith("/")?VA(F):this.lineralizeSegments(a,F).pipe(Sn(function(Y){return u.expandSegment(t,n,i,Y.concat(v),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,i,a,o){var s=this;if("**"===i.path)return i.loadChildren?(i._loadedConfig?Je(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(Xe(function(F){return i._loadedConfig=F,new wt(a,{})})):Je(new wt(a,{}));var l=wd(n,i,a),h=l.consumedSegments,v=l.remainingSegments;return l.matched?this.getChildConfig(t,i,a).pipe(Sn(function(F){var Y=F.module,ne=F.routes,ce=kd(n,h,v,ne),ee=ce.segmentGroup,ye=ce.slicedSegments,be=new wt(ee.segments,ee.children);if(0===ye.length&&be.hasChildren())return s.expandChildren(Y,ne,be).pipe(Xe(function(bt){return new wt(h,bt)}));if(0===ne.length&&0===ye.length)return Je(new wt(h,{}));var Pe=Lr(i)===o;return s.expandSegment(Y,be,ne,ye,Pe?_t:o,!0).pipe(Xe(function(bt){return new wt(h.concat(bt.segments),bt.children)}))})):Dd(n)}},{key:"getChildConfig",value:function(t,n,i){var a=this;return n.children?Je(new Rg(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?Je(n._loadedConfig):this.runCanLoadGuards(t.injector,n,i).pipe(Sn(function(o){return o?a.configLoader.load(t.injector,n).pipe(Xe(function(s){return n._loadedConfig=s,s})):function Hz(e){return mi(Eg("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}(n)})):Je(new Rg([],t))}},{key:"runCanLoadGuards",value:function(t,n,i){var a=this,o=n.canLoad;if(!o||0===o.length)return Je(!0);var s=o.map(function(u){var c,l=t.get(u);if(function xz(e){return e&&la(e.canLoad)}(l))c=l.canLoad(n,i);else{if(!la(l))throw new Error("Invalid CanLoad guard");c=l(n,i)}return _i(c)});return Je(s).pipe(zu(),Bn(function(u){if(Wa(u)){var l=Eg('Redirecting to "'.concat(a.urlSerializer.serialize(u),'"'));throw l.url=u,l}}),Xe(function(u){return!0===u}))}},{key:"lineralizeSegments",value:function(t,n){for(var i=[],a=n.root;;){if(i=i.concat(a.segments),0===a.numberOfChildren)return Je(i);if(a.numberOfChildren>1||!a.children[_t])return jz(t.redirectTo);a=a.children[_t]}}},{key:"applyRedirectCommands",value:function(t,n,i){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,i,a){var o=this.createSegmentGroup(t,n.root,i,a);return new Ua(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var i={};return Hn(t,function(a,o){if("string"==typeof a&&a.startsWith(":")){var u=a.substring(1);i[o]=n[u]}else i[o]=a}),i}},{key:"createSegmentGroup",value:function(t,n,i,a){var o=this,s=this.createSegments(t,n.segments,i,a),u={};return Hn(n.children,function(l,c){u[c]=o.createSegmentGroup(t,l,i,a)}),new wt(s,u)}},{key:"createSegments",value:function(t,n,i,a){var o=this;return n.map(function(s){return s.path.startsWith(":")?o.findPosParam(t,s,a):o.findOrReturn(s,i)})}},{key:"findPosParam",value:function(t,n,i){var a=i[n.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return a}},{key:"findOrReturn",value:function(t,n){var o,i=0,a=K(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.path===t.path)return n.splice(i),s;i++}}catch(u){a.e(u)}finally{a.f()}return t}}]),e}();function Fg(e){for(var r={},t=0,n=Object.keys(e.children);t0||o.hasChildren())&&(r[i]=o)}return function zz(e){if(1===e.numberOfChildren&&e.children[_t]){var r=e.children[_t];return new wt(e.segments.concat(r.segments),r.children)}return e}(new wt(e.segments,r))}var BA=f(function e(r){d(this,e),this.path=r,this.route=this.path[this.path.length-1]}),Ad=f(function e(r,t){d(this,e),this.component=r,this.route=t});function qz(e,r,t){var n=e._root;return Ku(n,r?r._root:null,t,[n.value])}function xd(e,r,t){var n=function Qz(e){if(!e)return null;for(var r=e.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(n?n.module.injector:t).get(e)}function Ku(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=ls(r);return e.children.forEach(function(o){Yz(o,a[o.value.outlet],t,n.concat([o.value]),i),delete a[o.value.outlet]}),Hn(a,function(o,s){return Qu(o,t.getContext(s),i)}),i}function Yz(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=r?r.value:null,s=t?t.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var u=$z(o,a,a.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new BA(n)):(a.data=o.data,a._resolvedData=o._resolvedData),Ku(e,r,a.component?s?s.children:null:t,n,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Ad(s.outlet.component,o))}else o&&Qu(r,s,i),i.canActivateChecks.push(new BA(n)),Ku(e,null,a.component?s?s.children:null:t,n,i);return i}function $z(e,r,t){if("function"==typeof t)return t(e,r);switch(t){case"pathParamsChange":return!Ga(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Ga(e.url,r.url)||!yi(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xg(e,r)||!yi(e.queryParams,r.queryParams);default:return!xg(e,r)}}function Qu(e,r,t){var n=ls(e),i=e.value;Hn(n,function(a,o){Qu(a,i.component?r?r.children.getContext(o):null:r,t)}),t.canDeactivateChecks.push(new Ad(i.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,i))}var a6=f(function e(){d(this,e)});function jA(e){return new ct(function(r){return r.error(e)})}var s6=function(){function e(r,t,n,i,a,o){d(this,e),this.rootComponentType=r,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return f(e,[{key:"recognize",value:function(){var t=kd(this.urlTree.root,[],[],this.config.filter(function(s){return void 0===s.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,_t);if(null===n)return null;var i=new bd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},_t,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new ji(i,n),o=new kA(this.url,a);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var n=this,i=t.value,a=wA(i,this.paramsInheritanceStrategy);i.params=Object.freeze(a.params),i.data=Object.freeze(a.data),t.children.forEach(function(o){return n.inheritParamsAndData(o)})}},{key:"processSegmentGroup",value:function(t,n,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,i)}},{key:"processChildren",value:function(t,n){for(var i=[],a=0,o=Object.keys(n.children);a0?lA(i).parameters:{};o=new bd(i,l,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zA(t),Lr(t),t.component,t,UA(n),GA(n)+i.length,WA(t))}else{var c=wd(n,t,i);if(!c.matched)return null;u=c.remainingSegments,o=new bd(s=c.consumedSegments,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zA(t),Lr(t),t.component,t,UA(n),GA(n)+s.length,WA(t))}var h=function l6(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),v=kd(n,s,u,h.filter(function(ee){return void 0===ee.redirectTo}),this.relativeLinkResolution),_=v.segmentGroup,F=v.slicedSegments;if(0===F.length&&_.hasChildren()){var Y=this.processChildren(h,_);return null===Y?null:[new ji(o,Y)]}if(0===h.length&&0===F.length)return[new ji(o,[])];var ne=Lr(t)===a,ce=this.processSegment(h,_,F,ne?_t:a);return null===ce?null:[new ji(o,ce)]}}]),e}();function HA(e){var i,r=[],t=new Set,n=K(e);try{var a=function(){var v=i.value;if(!function c6(e){var r=e.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(v))return r.push(v),"continue";var F,_=r.find(function(Y){return v.value.routeConfig===Y.value.routeConfig});void 0!==_?((F=_.children).push.apply(F,C(v.children)),t.add(_)):r.push(v)};for(n.s();!(i=n.n()).done;)a()}catch(h){n.e(h)}finally{n.f()}var u,s=K(t);try{for(s.s();!(u=s.n()).done;){var l=u.value,c=HA(l.children);r.push(new ji(l.value,c))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!t.has(h)})}function UA(e){for(var r=e;r._sourceSegment;)r=r._sourceSegment;return r}function GA(e){for(var r=e,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function zA(e){return e.data||{}}function WA(e){return e.resolve||{}}function qA(e){return[].concat(C(Object.keys(e)),C(Object.getOwnPropertySymbols(e)))}function Lg(e){return Ha(function(r){var t=e(r);return t?In(t).pipe(Xe(function(){return r})):Je(r)})}var g6=f(function e(){d(this,e)}),m6=function(){function e(){d(this,e)}return f(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}(),y6=function(e){p(t,e);var r=b(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t)}(m6),Ng=new Ne("ROUTES"),KA=function(){function e(r,t,n,i){d(this,e),this.injector=r,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}return f(e,[{key:"load",value:function(t,n){var i=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var o=this.loadModuleFactory(n.loadChildren).pipe(Xe(function(s){i.onLoadEndListener&&i.onLoadEndListener(n);var u=s.create(t);return new Rg(uA(u.injector.get(Ng,void 0,tt.Self|tt.Optional)).map(Pg),u)}),vn(function(s){throw n._loader$=void 0,s}));return n._loader$=new R8(o,function(){return new Fe}).pipe(ZD()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return _i(t()).pipe(Sn(function(i){return i instanceof jC?Je(i):In(n.compiler.compileModuleAsync(i))}))}}]),e}(),_6=f(function e(){d(this,e)}),b6=function(){function e(){d(this,e)}return f(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function C6(e){throw e}function E6(e,r,t){return r.parse("/")}function QA(e,r){return Je(null)}var w6={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},k6={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Tn=function(){var e=function(){function r(t,n,i,a,o,s,u){var l=this;d(this,r),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=a,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Fe,this.errorHandler=C6,this.malformedUriErrorHandler=E6,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:QA,afterPreactivation:QA},this.urlHandlingStrategy=new b6,this.routeReuseStrategy=new y6,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Mi),this.console=o.get(EE);var v=o.get(st);this.isNgZoneEnabled=v instanceof st&&st.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function $8(){return new Ua(new wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new KA(o,s,function(F){return l.triggerEvent(new rA(F))},function(F){return l.triggerEvent(new iA(F))}),this.routerState=EA(this.currentUrlTree,this.rootComponentType),this.transitions=new _r({id:0,targetPageId: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 f(r,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var i=this,a=this.events;return n.pipe(fn(function(o){return 0!==o.id}),Xe(function(o){return Object.assign(Object.assign({},o),{extractedUrl:i.urlHandlingStrategy.extract(o.rawUrl)})}),Ha(function(o){var s=!1,u=!1;return Je(o).pipe(Bn(function(l){i.currentNavigation={id:l.id,initialUrl:l.currentRawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ha(function(l){var c=i.browserUrlTree.toString(),h=!i.navigated||l.extractedUrl.toString()!==c||c!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Md(l.source)&&(i.browserUrlTree=l.extractedUrl),Je(l).pipe(Ha(function(Te){var Pe=i.transitions.getValue();return a.next(new Cg(Te.id,i.serializeUrl(Te.extractedUrl),Te.source,Te.restoredState)),Pe!==i.transitions.getValue()?ri:Promise.resolve(Te)}),function Wz(e,r,t,n){return Ha(function(i){return function Uz(e,r,t,n,i){return new Gz(e,r,t,n,i).apply()}(e,r,t,i.extractedUrl,n).pipe(Xe(function(a){return Object.assign(Object.assign({},i),{urlAfterRedirects:a})}))})}(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),Bn(function(Te){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Te.urlAfterRedirects})}),function d6(e,r,t,n,i){return Sn(function(a){return function o6(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new s6(e,r,t,n,i,a).recognize();return null===o?jA(new a6):Je(o)}catch(s){return jA(s)}}(e,r,a.urlAfterRedirects,t(a.urlAfterRedirects),n,i).pipe(Xe(function(o){return Object.assign(Object.assign({},a),{targetSnapshot:o})}))})}(i.rootComponentType,i.config,function(Te){return i.serializeUrl(Te)},i.paramsInheritanceStrategy,i.relativeLinkResolution),Bn(function(Te){if("eager"===i.urlUpdateStrategy){if(!Te.extras.skipLocationChange){var Pe=i.urlHandlingStrategy.merge(Te.urlAfterRedirects,Te.rawUrl);i.setBrowserUrl(Pe,Te)}i.browserUrlTree=Te.urlAfterRedirects}var qe=new N8(Te.id,i.serializeUrl(Te.extractedUrl),i.serializeUrl(Te.urlAfterRedirects),Te.targetSnapshot);a.next(qe)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var Y=l.extractedUrl,ne=l.source,ce=l.restoredState,ee=l.extras,ye=new Cg(l.id,i.serializeUrl(Y),ne,ce);a.next(ye);var be=EA(Y,i.rootComponentType).snapshot;return Je(Object.assign(Object.assign({},l),{targetSnapshot:be,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},ee),{skipLocationChange:!1,replaceUrl:!1})}))}return i.rawUrlTree=l.rawUrl,l.resolve(null),ri}),Lg(function(l){var F=l.extras;return i.hooks.beforePreactivation(l.targetSnapshot,{navigationId:l.id,appliedUrlTree:l.extractedUrl,rawUrlTree:l.rawUrl,skipLocationChange:!!F.skipLocationChange,replaceUrl:!!F.replaceUrl})}),Bn(function(l){var c=new V8(l.id,i.serializeUrl(l.extractedUrl),i.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);i.triggerEvent(c)}),Xe(function(l){return Object.assign(Object.assign({},l),{guards:qz(l.targetSnapshot,l.currentSnapshot,i.rootContexts)})}),function Xz(e,r){return Sn(function(t){var n=t.targetSnapshot,i=t.currentSnapshot,a=t.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Je(Object.assign(Object.assign({},t),{guardsResult:!0})):function Zz(e,r,t,n){return In(e).pipe(Sn(function(i){return function i6(e,r,t,n,i){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return Je(!0);var o=a.map(function(s){var l,u=xd(s,r,i);if(function Oz(e){return e&&la(e.canDeactivate)}(u))l=_i(u.canDeactivate(e,r,t,n));else{if(!la(u))throw new Error("Invalid CanDeactivate guard");l=_i(u(e,r,t,n))}return l.pipe(ss())});return Je(o).pipe(zu())}(i.component,i.route,t,r,n)}),ss(function(i){return!0!==i},!0))}(s,n,i,e).pipe(Sn(function(u){return u&&function Az(e){return"boolean"==typeof e}(u)?function Jz(e,r,t,n){return In(r).pipe(qo(function(i){return ad(function t6(e,r){return null!==e&&r&&r(new U8(e)),Je(!0)}(i.route.parent,n),function e6(e,r){return null!==e&&r&&r(new z8(e)),Je(!0)}(i.route,n),function r6(e,r,t){var n=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(function(o){return function Kz(e){var r=e.routeConfig?e.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:e,guards:r}:null}(o)}).filter(function(o){return null!==o}),a=i.map(function(o){return sg(function(){var s=o.guards.map(function(u){var c,l=xd(u,o.node,t);if(function Tz(e){return e&&la(e.canActivateChild)}(l))c=_i(l.canActivateChild(n,e));else{if(!la(l))throw new Error("Invalid CanActivateChild guard");c=_i(l(n,e))}return c.pipe(ss())});return Je(s).pipe(zu())})});return Je(a).pipe(zu())}(e,i.path,t),function n6(e,r,t){var n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||0===n.length)return Je(!0);var i=n.map(function(a){return sg(function(){var s,o=xd(a,r,t);if(function Mz(e){return e&&la(e.canActivate)}(o))s=_i(o.canActivate(r,e));else{if(!la(o))throw new Error("Invalid CanActivate guard");s=_i(o(r,e))}return s.pipe(ss())})});return Je(i).pipe(zu())}(e,i.route,t))}),ss(function(i){return!0!==i},!0))}(n,o,e,r):Je(u)}),Xe(function(u){return Object.assign(Object.assign({},t),{guardsResult:u})}))})}(i.ngModule.injector,function(l){return i.triggerEvent(l)}),Bn(function(l){if(Wa(l.guardsResult)){var c=Eg('Redirecting to "'.concat(i.serializeUrl(l.guardsResult),'"'));throw c.url=l.guardsResult,c}var h=new B8(l.id,i.serializeUrl(l.extractedUrl),i.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);i.triggerEvent(h)}),fn(function(l){return!!l.guardsResult||(i.restoreHistory(l),i.cancelNavigationTransition(l,""),!1)}),Lg(function(l){if(l.guards.canActivateChecks.length)return Je(l).pipe(Bn(function(c){var h=new j8(c.id,i.serializeUrl(c.extractedUrl),i.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);i.triggerEvent(h)}),Ha(function(c){var h=!1;return Je(c).pipe(function f6(e,r){return Sn(function(t){var n=t.targetSnapshot,i=t.guards.canActivateChecks;if(!i.length)return Je(t);var a=0;return In(i).pipe(qo(function(o){return function h6(e,r,t,n){return function v6(e,r,t,n){var i=qA(e);if(0===i.length)return Je({});var a={};return In(i).pipe(Sn(function(o){return function p6(e,r,t,n){var i=xd(e,r,n);return _i(i.resolve?i.resolve(r,t):i(r,t))}(e[o],r,t,n).pipe(Bn(function(s){a[o]=s}))}),bg(1),Sn(function(){return qA(a).length===i.length?Je(a):ri}))}(e._resolve,e,r,n).pipe(Xe(function(a){return e._resolvedData=a,e.data=Object.assign(Object.assign({},e.data),wA(e,t).resolve),null}))}(o.route,n,e,r)}),Bn(function(){return a++}),bg(1),Sn(function(o){return a===i.length?Je(t):ri}))})}(i.paramsInheritanceStrategy,i.ngModule.injector),Bn({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(c),i.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),Bn(function(c){var h=new H8(c.id,i.serializeUrl(c.extractedUrl),i.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);i.triggerEvent(h)}))}),Lg(function(l){var F=l.extras;return i.hooks.afterPreactivation(l.targetSnapshot,{navigationId:l.id,appliedUrlTree:l.extractedUrl,rawUrlTree:l.rawUrl,skipLocationChange:!!F.skipLocationChange,replaceUrl:!!F.replaceUrl})}),Xe(function(l){var c=function vz(e,r,t){var n=Hu(e,r._root,t?t._root:void 0);return new CA(n,r)}(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return Object.assign(Object.assign({},l),{targetRouterState:c})}),Bn(function(l){i.currentUrlTree=l.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),i.routerState=l.targetRouterState,"deferred"===i.urlUpdateStrategy&&(l.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,l),i.browserUrlTree=l.urlAfterRedirects)}),function(r,t,n){return Xe(function(i){return new Sz(t,i.targetRouterState,i.currentRouterState,n).activate(r),i})}(i.rootContexts,i.routeReuseStrategy,function(l){return i.triggerEvent(l)}),Bn({next:function(){s=!0},complete:function(){s=!0}}),ED(function(){var l;if(!s&&!u){var c="Navigation ID ".concat(o.id," is not equal to the current navigation id ").concat(i.navigationId);i.cancelNavigationTransition(o,c)}(null===(l=i.currentNavigation)||void 0===l?void 0:l.id)===o.id&&(i.currentNavigation=null)}),vn(function(l){if(u=!0,function K8(e){return e&&e[oA]}(l)){var c=Wa(l.url);c||(i.navigated=!0,i.restoreHistory(o,!0));var h=new nA(o.id,i.serializeUrl(o.extractedUrl),l.message);a.next(h),c?setTimeout(function(){var _=i.urlHandlingStrategy.merge(l.url,i.rawUrlTree),F={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Md(o.source)};i.scheduleNavigation(_,"imperative",null,F,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{i.restoreHistory(o,!0);var v=new L8(o.id,i.serializeUrl(o.extractedUrl),l);a.next(v);try{o.resolve(i.errorHandler(l))}catch(_){o.reject(_)}}return ri}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(i){var a="popstate"===i.type?"popstate":"hashchange";"popstate"===a&&setTimeout(function(){var o,s={replaceUrl:!0},u=(null===(o=i.state)||void 0===o?void 0:o.navigationId)?i.state:null;if(u){var l=Object.assign({},u);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}var c=n.parseUrl(i.url);n.scheduleNavigation(c,a,u,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){RA(n),this.config=n.map(Pg),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.relativeTo,o=i.queryParams,s=i.fragment,u=i.queryParamsHandling,l=i.preserveFragment,c=a||this.routerState.root,h=l?this.currentUrlTree.fragment:s,v=null;switch(u){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=o||null}return null!==v&&(v=this.removeEmptyProps(v)),mz(c,this.currentUrlTree,n,v,null!=h?h:null)}},{key:"navigateByUrl",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=Wa(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}},{key:"navigate",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return S6(n),this.navigateByUrl(this.createUrlTree(n,i),i)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var i;try{i=this.urlSerializer.parse(n)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return i}},{key:"isActive",value:function(n,i){var a;if(a=!0===i?Object.assign({},w6):!1===i?Object.assign({},k6):i,Wa(n))return dA(this.currentUrlTree,n,a);var o=this.parseUrl(n);return dA(this.currentUrlTree,o,a)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(i,a){var o=n[a];return null!=o&&(i[a]=o),i},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(i){n.navigated=!0,n.lastSuccessfulId=i.id,n.currentPageId=i.targetPageId,n.events.next(new Vu(i.id,n.serializeUrl(i.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,i.resolve(!0)},function(i){n.console.warn("Unhandled Navigation Error: ".concat(i))})}},{key:"scheduleNavigation",value:function(n,i,a,o,s){var u,l,c;if(this.disposed)return Promise.resolve(!1);var ne,ce,ee,h=this.transitions.value,v=Md(i)&&h&&!Md(h.source),_=h.rawUrl.toString()===n.toString(),F=h.id===(null===(u=this.currentNavigation)||void 0===u?void 0:u.id);if(v&&_&&F)return Promise.resolve(!0);s?(ne=s.resolve,ce=s.reject,ee=s.promise):ee=new Promise(function(Pe,qe){ne=Pe,ce=qe});var be,ye=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),be=a&&a.\u0275routerPageId?a.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):be=0,this.setTransition({id:ye,targetPageId:be,source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:ne,reject:ce,promise:ee,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ee.catch(function(Pe){return Promise.reject(Pe)})}},{key:"setBrowserUrl",value:function(n,i){var a=this.urlSerializer.serialize(n),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl?this.location.replaceState(a,"",o):this.location.go(a,"",o)}},{key:"restoreHistory",value:function(n){var a,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-n.targetPageId,u="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);u&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,i){var a=new nA(n.id,this.serializeUrl(n.extractedUrl),i);this.triggerEvent(a),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,i){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":i}:{navigationId:n}}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function S6(e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};d(this,r),this.router=t,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 f(r,[{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 n=this;return this.router.events.subscribe(function(i){i instanceof Cg?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=i.navigationTrigger,n.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Vu&&(n.lastId=i.id,n.scheduleScrollEvent(i,n.router.parseUrl(i.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(i){i instanceof aA&&(i.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,i){this.router.triggerEvent(new aA(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),qa=new Ne("ROUTER_CONFIGURATION"),ZA=new Ne("ROUTER_FORROOT_GUARD"),M6=[Aa,{provide:pA,useClass:gA},{provide:Tn,useFactory:function F6(e,r,t,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=new Tn(null,e,r,t,n,i,uA(a));return s&&(l.urlHandlingStrategy=s),u&&(l.routeReuseStrategy=u),L6(o,l),o.enableTracing&&l.events.subscribe(function(c){var h,v;null===(h=console.group)||void 0===h||h.call(console,"Router Event: ".concat(c.constructor.name)),console.log(c.toString()),console.log(c),null===(v=console.groupEnd)||void 0===v||v.call(console)}),l},deps:[pA,Wu,Aa,qt,wE,Ng,qa,[_6,new Gr],[g6,new Gr]]},Wu,{provide:za,useFactory:function N6(e){return e.routerState.root},deps:[Tn]},XA,$A,x6,{provide:qa,useValue:{enableTracing:!1}}];function T6(){return new xE("Router",Tn)}var O6=function(){var e=function(){function r(t,n){d(this,r)}return f(r,null,[{key:"forRoot",value:function(n,i){return{ngModule:r,providers:[M6,JA(n),{provide:ZA,useFactory:P6,deps:[[Tn,new Gr,new fo]]},{provide:qa,useValue:i||{}},{provide:jo,useFactory:I6,deps:[Da,[new Sl(fv),new Gr],qa]},{provide:Bg,useFactory:R6,deps:[Tn,MN,qa]},{provide:YA,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:$A},{provide:xE,multi:!0,useFactory:T6},[jg,{provide:$h,multi:!0,useFactory:V6,deps:[jg]},{provide:ex,useFactory:B6,deps:[jg]},{provide:Jh,multi:!0,useExisting:ex}]]}}},{key:"forChild",value:function(n){return{ngModule:r,providers:[JA(n)]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(ZA,8),de(Tn,8))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}();function R6(e,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new Bg(e,r,t)}function I6(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new vL(e,r):new QE(e,r)}function P6(e){return"guarded"}function JA(e){return[{provide:UM,multi:!0,useValue:e},{provide:Ng,multi:!0,useValue:e}]}function L6(e,r){e.errorHandler&&(r.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(r.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(r.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(r.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(r.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(r.canceledNavigationResolution=e.canceledNavigationResolution)}var jg=function(){var e=function(){function r(t){d(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Fe}return f(r,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(dL,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var a=null,o=new Promise(function(l){return a=l}),s=n.injector.get(Tn),u=n.injector.get(qa);return"disabled"===u.initialNavigation?(s.setUpLocationChangeListener(),a(!0)):"enabled"===u.initialNavigation||"enabledBlocking"===u.initialNavigation?(s.hooks.afterPreactivation=function(){return n.initNavigation?Je(null):(n.initNavigation=!0,a(!0),n.resultOfPreactivationDone)},s.initialNavigation()):a(!0),o})}},{key:"bootstrapListener",value:function(n){var i=this.injector.get(qa),a=this.injector.get(XA),o=this.injector.get(Bg),s=this.injector.get(Tn),u=this.injector.get(Zl);n===u.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),a.setUpPreloading(),o.init(),s.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(qt))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function V6(e){return e.appInitializer.bind(e)}function B6(e){return e.bootstrapListener.bind(e)}var ex=new Ne("Router Initializer"),bi=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.router=n,this.urlLogIn="api-logIn",this.urlLogOut="api-logOut",this.reqIsLogged()}return f(r,[{key:"logIn",value:function(n,i){var a=this;return console.log("Login service started..."),this.http.get(this.urlLogIn,{headers:{Authorization:"Basic "+H6(n+":"+i),"X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(o){return a.processLogInResponse(o),a.user}))}},{key:"logOut",value:function(){var n=this;return console.log("Logging out..."),this.http.get(this.urlLogOut).pipe(Xe(function(i){return console.log("Logout succesful!"),n.user=null,n.role=null,n.token=null,localStorage.removeItem("login"),localStorage.removeItem("rol"),n.router.navigate([""]),i}),vn(function(i){return mi(i)}))}},{key:"directLogOut",value:function(){this.logOut().subscribe(function(n){},function(n){return console.log("Error when trying to log out: "+n)})}},{key:"processLogInResponse",value:function(n){console.log("Login succesful processing..."),this.user=n,localStorage.setItem("login","OPENVIDUAPP"),-1!==this.user.roles.indexOf("ROLE_TEACHER")&&(this.role="ROLE_TEACHER",localStorage.setItem("rol","ROLE_TEACHER")),-1!==this.user.roles.indexOf("ROLE_STUDENT")&&(this.role="ROLE_STUDENT",localStorage.setItem("rol","ROLE_STUDENT"))}},{key:"reqIsLogged",value:function(){var n=this;console.log("ReqIsLogged called"),this.http.get(this.urlLogIn,{headers:{"X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(i){return n.processLogInResponse(i)}),vn(function(i){if(401!==i.status)return console.error("Error when asking if logged: "+JSON.stringify(i)),n.logOut(),mi(i)}))}},{key:"checkCredentials",value:function(){this.isLoggedIn()||this.logOut()}},{key:"isLoggedIn",value:function(){return null!=this.user&&void 0!==this.user}},{key:"getCurrentUser",value:function(){return this.user}},{key:"isTeacher",value:function(){return-1!==this.user.roles.indexOf("ROLE_TEACHER")&&"ROLE_TEACHER"===localStorage.getItem("rol")}},{key:"isStudent",value:function(){return-1!==this.user.roles.indexOf("ROLE_STUDENT")&&"ROLE_STUDENT"===localStorage.getItem("rol")}},{key:"updateUserLessons",value:function(n){this.getCurrentUser().lessons=n}},{key:"connectionBelongsToTeacher",value:function(n){return n.data.indexOf("teacher@gmail.com")>-1}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Oa),de(Tn))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function H6(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(r,t){return String.fromCharCode("0x"+t)}))}var Yu=function(){var e=function(){function r(t,n){d(this,r),this.router=t,this.authenticationService=n}return f(r,[{key:"canActivate",value:function(){return!!(localStorage.getItem("login")&&localStorage.getItem("rol")&&this.authenticationService.isLoggedIn())||(this.router.navigate([""]),!1)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Tn),de(bi))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),Hg=f(function e(r){d(this,e),this.title=r,this.attenders=[]}),U6=function(){var e=function(){function r(){d(this,r),this.quality="medium",this.joinWithVideo=!0,this.joinWithAudio=!0}return f(r,[{key:"joinSession",value:function(){var n={publishAudio:!!this.joinWithAudio,publishVideo:!!this.joinWithVideo,resolution:this.getResolution()};this.myReference.close(n)}},{key:"getResolution",value:function(){var n;switch(this.quality){case"low":n="320x240";break;case"medium":default:n="640x480";break;case"high":n="1280x720";break;case"veryhigh":n="1920x1080"}return n}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=jt({type:e,selectors:[["app-join-session-dialog"]],decls:30,vars:3,consts:[["mat-dialog-title",""],[3,"ngSubmit"],["dialogForm",""],["id","quality-div"],["name","quality","id","quality",3,"ngModel","ngModelChange"],["value","low","title","320x240"],["value","medium","title","640x480"],["value","high","title","1280x720"],["value","veryhigh","title","1920x1080"],["id","join-div"],["name","joinWithVideo","id","joinWithVideo",3,"ngModel","ngModelChange"],["name","joinWithAudio",3,"ngModel","ngModelChange"],["mat-button","","mat-dialog-close","","type","button"],["mat-button","","id","join-btn","type","submit"]],template:function(t,n){1&t&&(ge(0,"div")(1,"h1",0),Ie(2," Video options "),me(),ge(3,"form",1,2),Ge("ngSubmit",function(){return n.joinSession()}),ge(5,"mat-dialog-content")(6,"div",3)(7,"h5"),Ie(8,"Quality"),me(),ge(9,"mat-radio-group",4),Ge("ngModelChange",function(a){return n.quality=a}),ge(10,"mat-radio-button",5),Ie(11,"Low"),me(),ge(12,"mat-radio-button",6),Ie(13,"Medium"),me(),ge(14,"mat-radio-button",7),Ie(15,"High"),me(),ge(16,"mat-radio-button",8),Ie(17,"Very high"),me()()(),ge(18,"div",9)(19,"h5"),Ie(20,"Enter with active..."),me(),ge(21,"mat-checkbox",10),Ge("ngModelChange",function(a){return n.joinWithVideo=a}),Ie(22,"Video"),me(),ge(23,"mat-checkbox",11),Ge("ngModelChange",function(a){return n.joinWithAudio=a}),Ie(24,"Audio"),me()()(),ge(25,"mat-dialog-actions")(26,"button",12),Ie(27,"CANCEL"),me(),ge(28,"button",13),Ie(29,"JOIN"),me()()()()),2&t&&(we(9),Me("ngModel",n.quality),we(12),Me("ngModel",n.joinWithVideo),we(2),Me("ngModel",n.joinWithAudio))},directives:[e5,mu,fu,ra,t5,vg,du,zo,pg,Z0,n5,rs,JG],styles:["#quality-div[_ngcontent-%COMP%]{margin-top:20px}#join-div[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:20px}#quality-tag[_ngcontent-%COMP%]{display:block}h5[_ngcontent-%COMP%]{margin-bottom:10px;text-align:left}#joinWithVideo[_ngcontent-%COMP%]{margin-right:50px}mat-dialog-actions[_ngcontent-%COMP%]{display:block}#join-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),Ug=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.authenticationService=n,this.url="api-lessons"}return f(r,[{key:"getLessons",value:function(n){var i=this;return this.http.get(this.url+"/user/"+n.id,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"getLesson",value:function(n){var i=this;return this.http.get(this.url+"/lesson/"+n,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"newLesson",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/new",a,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"editLesson",value:function(n){var i=this,a=JSON.stringify(n);return this.http.put(this.url+"/edit",a,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"deleteLesson",value:function(n){var i=this;return this.http.delete(this.url+"/delete/"+n,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"addLessonAttenders",value:function(n,i){var a=this,o=JSON.stringify(i);return this.http.put(this.url+"/edit/add-attenders/lesson/"+n,o,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(s){return s}),vn(function(s){return a.handleError(s)}))}},{key:"deleteLessonAttenders",value:function(n){var i=this,a=JSON.stringify(n);return this.http.put(this.url+"/edit/delete-attenders",a,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"obtainLocalLesson",value:function(n){return this.authenticationService.getCurrentUser().lessons.find(function(i){return i.id===n})}},{key:"handleError",value:function(n){return console.error(n),mi("Server error ("+n.status+"): "+n.text())}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Oa),de(bi))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),Gg=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.authenticationService=n,this.url="api-sessions"}return f(r,[{key:"createSession",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/create-session",a).pipe(Xe(function(o){}),vn(function(o){return i.handleError(o)}))}},{key:"generateToken",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/generate-token",a,{headers:{"Content-Type":"application/json"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"removeUser",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/remove-user",a,{headers:{"Content-Type":"application/json"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"handleError",value:function(n){return console.error(n),mi(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Oa),de(bi))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function G6(e,r){if(1&e){var t=Nt();ge(0,"mat-icon",3),Ge("click",function(){return yt(t),ze().closeAlert()}),Ie(1,"clear"),me()}}var zg=function(){var e=function(){function r(){d(this,r),this.eventShowable=new Dt}return f(r,[{key:"closeAlert",value:function(){this.eventShowable.emit(!1)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=jt({type:e,selectors:[["app-error-message"]],inputs:{errorTitle:"errorTitle",errorContent:"errorContent",customClass:"customClass",closable:"closable",timeable:"timeable"},outputs:{eventShowable:"eventShowable"},decls:5,vars:4,consts:[[3,"ngClass"],[3,"click",4,"ngIf"],[3,"innerHTML"],[3,"click"]],template:function(t,n){1&t&&(ge(0,"mat-card",0),$e(1,G6,2,0,"mat-icon",1),ge(2,"mat-card-title"),Ie(3),me(),Xt(4,"mat-card-subtitle",2),me()),2&t&&(Me("ngClass",n.customClass),we(1),Me("ngIf",n.closable),we(2),bn(n.errorTitle),we(1),Me("innerHTML",n.errorContent,My))},directives:[Kp,lc,ZS,Jr,Nu,j4,H4],styles:[".fail[_ngcontent-%COMP%]{background-color:#a7384133;color:#a73841}.warning[_ngcontent-%COMP%]{background-color:#af6e0033;color:#af6e00}.correct[_ngcontent-%COMP%]{background-color:#37564640;color:#375546}mat-icon[_ngcontent-%COMP%]{cursor:pointer;float:right}mat-card[_ngcontent-%COMP%]{max-width:400px;margin-top:20px;margin-bottom:20px;box-shadow:none}"]}),e}();function z6(e,r){1&e&&(ge(0,"div",2),Xt(1,"div",3),me())}function W6(e,r){if(1&e){var t=Nt();ge(0,"mat-icon",10),Ge("click",function(){return yt(t),ze(3).addingLesson=!0}),Ie(1,"add_circle_outline"),me()}2&e&&Me("title","Add lesson")}function q6(e,r){if(1&e&&(ge(0,"div",4)(1,"div",8),Ie(2,"MY LESSONS"),me(),$e(3,W6,2,1,"mat-icon",9),me()),2&e){var t=ze(2);we(3),Me("ngIf",t.authenticationService.isTeacher())}}function K6(e,r){if(1&e){var t=Nt();ge(0,"div")(1,"div"),Ie(2,"NEW LESSON"),me(),ge(3,"form",11,12),Ge("ngSubmit",function(){yt(t);var a=Qn(4);return ze(2).newLesson(),a.reset()}),ge(5,"mat-form-field")(6,"input",13),Ge("ngModelChange",function(a){return yt(t),ze(2).lessonTitle=a}),me()(),ge(7,"div",14)(8,"button",15),Ie(9,"Send"),me(),ge(10,"button",16),Ge("click",function(){yt(t);var a=Qn(4);return ze(2).addingLesson=!1,a.reset()}),Ie(11,"Cancel"),me()()()()}if(2&e){var n=ze(2);we(3),It("filtered",n.submitNewLesson),we(3),Me("ngModel",n.lessonTitle),we(2),Me("disabled",n.submitNewLesson),we(2),Me("disabled",n.submitNewLesson)}}function Q6(e,r){if(1&e&&(ge(0,"span",22),Ie(1),me()),2&e){var t=ze().$implicit;we(1),bn(t.teacher.nickName)}}function Y6(e,r){if(1&e){var t=Nt();ge(0,"mat-icon",21),Ge("click",function(){yt(t);var i=ze().$implicit;return ze(2).goToLessonDetails(i)}),Ie(1,"mode_edit"),me()}2&e&&Me("title","Modify lesson")}function $6(e,r){if(1&e){var t=Nt();ge(0,"mat-card")(1,"div",17)(2,"span",18),Ie(3),me(),$e(4,Q6,2,1,"span",19),$e(5,Y6,2,1,"mat-icon",20),ge(6,"mat-icon",21),Ge("click",function(){var s=yt(t).$implicit;return ze(2).goToLesson(s)}),Ie(7,"play_circle_filled"),me()()()}if(2&e){var n=r.$implicit,i=ze(2);we(3),bn(n.title),we(1),Me("ngIf",i.authenticationService.isStudent()),we(1),Me("ngIf",i.authenticationService.isTeacher()),we(1),Me("title","Go to lesson!")}}function X6(e,r){1&e&&(ge(0,"div"),Xt(1,"app-error-message",23),me()),2&e&&(we(1),Me("errorTitle","You do not have any lessons")("errorContent","Your teacher must invite you")("customClass","warning")("closable",!1))}function Z6(e,r){1&e&&(ge(0,"div"),Xt(1,"app-error-message",23),me()),2&e&&(we(1),Me("errorTitle","You do not have any lessons")("errorContent","You can add one by clicking on the icon above")("customClass","warning")("closable",!1))}var J6=function(){return{width:"100%"}};function eW(e,r){if(1&e&&(ge(0,"div",4)(1,"div",5),$e(2,q6,4,1,"div",1),$e(3,K6,12,5,"div",6),$e(4,$6,8,4,"mat-card",7),$e(5,X6,2,4,"div",6),$e(6,Z6,2,4,"div",6),me()()),2&e){var t=ze();we(1),xi("xs",tu(7,J6)),we(1),Me("ngIf",!t.addingLesson),we(1),Me("ngIf",t.addingLesson),we(1),Me("ngForOf",t.lessons),we(1),Me("ngIf",0===t.lessons.length&&t.authenticationService.isStudent()&&!t.addingLesson),we(1),Me("ngIf",0===t.lessons.length&&t.authenticationService.isTeacher()&&!t.addingLesson)}}var tW=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this.lessonService=t,this.videoSessionService=n,this.router=i,this.authenticationService=a,this.snackBar=o,this.dialog=s}return f(r,[{key:"ngOnInit",value:function(){this.authenticationService.checkCredentials(),this.getLessons()}},{key:"logout",value:function(){this.authenticationService.logOut()}},{key:"getLessons",value:function(){var n=this;this.lessonService.getLessons(this.authenticationService.getCurrentUser()).subscribe(function(i){console.log("User's lessons: "),console.log(i),n.lessons=i,n.authenticationService.updateUserLessons(n.lessons)},function(i){return console.log(i)})}},{key:"goToLesson",value:function(n){var a,i=this;this.videoSessionService.lesson=n,this.authenticationService.isTeacher()?((a=this.dialog.open(U6)).componentInstance.myReference=a,a.afterClosed().subscribe(function(o){o&&(console.log("Joining session with options:"),console.log(o),i.videoSessionService.cameraOptions=o,i.router.navigate(["/lesson/"+n.id]))})):this.router.navigate(["/lesson/"+n.id])}},{key:"goToLessonDetails",value:function(n){this.router.navigate(["/lesson-details/"+n.id])}},{key:"newLesson",value:function(){var n=this;this.submitNewLesson=!0,this.lessonService.newLesson(new Hg(this.lessonTitle)).subscribe(function(i){console.log("New lesson added: "),console.log(i),n.lessons.push(i),n.authenticationService.updateUserLessons(n.lessons),n.submitNewLesson=!1,n.snackBar.open("Lesson added!",void 0,{duration:3e3}),n.addingLesson=!1},function(i){console.log(i),n.submitNewLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(Ug),j(Gg),j(Tn),j(bi),j(_g),j(od))},e.\u0275cmp=jt({type:e,selectors:[["app-dashboard"]],decls:2,vars:2,consts:[["class","cssload-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"cssload-container"],[1,"cssload-tube-tunnel"],["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],[4,"ngIf"],[4,"ngFor","ngForOf"],["fxFlex","80%"],["fxFlex","20%","fxLayoutAlign","end center",3,"title","click",4,"ngIf"],["fxFlex","20%","fxLayoutAlign","end center",3,"title","click"],[3,"ngSubmit"],["newLessonForm",""],["matInput","","placeholder","Title","name","lessonTitle","id","lessonTitle","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"block-btn"],["mat-button","","type","submit",3,"disabled"],["mat-button","",3,"disabled","click"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","10px"],["fxFlex","70%",1,"title"],["fxFlex","70%","class","teacher",4,"ngIf"],["fxFlex","15%",3,"title","click",4,"ngIf"],["fxFlex","15%",3,"title","click"],["fxFlex","70%",1,"teacher"],[3,"errorTitle","errorContent","customClass","closable"]],template:function(t,n){1&t&&($e(0,z6,2,0,"div",0),$e(1,eW,7,8,"div",1)),2&t&&(Me("ngIf",!n.lessons),we(1),Me("ngIf",n.lessons))},directives:[Jr,Jo,es,Qc,Nu,mu,fu,ra,fg,hg,Uo,Wo,du,zo,rs,Ev,Kp,Lp,zg],styles:["mat-card[_ngcontent-%COMP%]{margin-top:20px}mat-card[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{text-align:center}span.teacher[_ngcontent-%COMP%]{font-size:12px}"]}),e}(),nW=f(function e(r){d(this,e),this.id=r.id,this.name=r.name,this.nickName=r.nickName,this.roles=r.roles,this.lessons=[]});function rW(e,r){if(1&e){var t=Nt();ge(0,"div",1)(1,"mat-icon",19),Ge("click",function(){return yt(t),ze(2).router.navigate(["/lessons"])}),Ie(2,"keyboard_arrow_left"),me(),ge(3,"h2",20),Ie(4),me(),ge(5,"mat-icon",21),Ge("click",function(){yt(t);var a=ze(2);return a.editingTitle=!0,a.titleEdited=a.lesson.title}),Ie(6,"mode_edit"),me()()}if(2&e){var n=ze(2);we(1),Me("title","Back to lessons"),we(3),bn(n.lesson.title),we(1),Me("title","Edit lesson")}}function iW(e,r){if(1&e){var t=Nt();ge(0,"div",22)(1,"form",4,23),Ge("ngSubmit",function(){yt(t);var a=Qn(2);return ze(2).editLesson(),a.reset()}),ge(3,"mat-form-field")(4,"input",24),Ge("ngModelChange",function(a){return yt(t),ze(2).titleEdited=a}),me()(),ge(5,"div",8)(6,"button",9),Ie(7,"Send"),me(),ge(8,"button",10),Ge("click",function(){yt(t);var a=ze(2);return a.editingTitle=!1,a.titleEdited=""}),Ie(9,"Cancel"),me(),ge(10,"button",10),Ge("click",function(){return yt(t),ze(2).deleteLesson()}),Ie(11,"Delete lesson"),me()()()()}if(2&e){var n=ze(2);we(1),It("filtered",n.sumbitEditLesson),we(3),Me("ngModel",n.titleEdited),we(2),Me("disabled",n.sumbitEditLesson),we(2),Me("disabled",n.sumbitEditLesson),we(2),Me("disabled",n.sumbitEditLesson)}}function aW(e,r){if(1&e){var t=Nt();ge(0,"app-error-message",25),Ge("eventShowable",function(){return yt(t),ze(2).addAttendersCorrect=!1}),me()}if(2&e){var n=ze(2);Me("errorTitle",n.attCorrectTitle)("errorContent",n.attCorrectContent)("customClass","correct")("closable",!0)}}function oW(e,r){if(1&e){var t=Nt();ge(0,"app-error-message",25),Ge("eventShowable",function(){return yt(t),ze(2).addAttendersError=!1}),me()}if(2&e){var n=ze(2);Me("errorTitle",n.attErrorTitle)("errorContent",n.attErrorContent)("customClass","fail")("closable",!0)}}function sW(e,r){if(1&e){var t=Nt();ge(0,"mat-icon",31),Ge("click",function(){yt(t);var i=ze(2),a=i.index,o=i.$implicit;return ze(2).deleteLessonAttender(a,o)}),Ie(1,"clear"),me()}2&e&&Me("title","Remove attender")}function uW(e,r){1&e&&(ge(0,"mat-icon",32),Ie(1,"cached"),me())}function lW(e,r){if(1&e&&(ge(0,"div",27)(1,"div",28)(2,"div",14)(3,"div",15),Ie(4),me(),ge(5,"div",16),Ie(6),me()()(),ge(7,"div",17),$e(8,sW,2,1,"mat-icon",29),$e(9,uW,2,0,"mat-icon",30),me()()),2&e){var t=ze(),n=t.$implicit,i=t.index,a=ze(2);we(4),bn(n.nickName),we(2),bn(n.name),we(2),Me("ngIf",!a.arrayOfAttDels[i]),we(1),Me("ngIf",a.arrayOfAttDels[i])}}function cW(e,r){if(1&e&&(ge(0,"div"),$e(1,lW,10,4,"div",26),me()),2&e){var t=r.$implicit,n=ze(2);we(1),Me("ngIf",t.id!=n.authenticationService.getCurrentUser().id)}}var dW=function(){return{width:"100%"}};function fW(e,r){if(1&e){var t=Nt();ge(0,"div",1)(1,"div",2),$e(2,rW,7,3,"div",0),$e(3,iW,12,6,"div",3),ge(4,"form",4,5),Ge("ngSubmit",function(){yt(t);var a=Qn(5);return ze().addLessonAttenders(),a.reset()}),ge(6,"h4",6),Ie(7,"New attender"),me(),ge(8,"mat-form-field")(9,"input",7),Ge("ngModelChange",function(a){return yt(t),ze().emailAttender=a}),me()(),ge(10,"div",8)(11,"button",9),Ie(12,"Send"),me(),ge(13,"button",10),Ge("click",function(){return yt(t),Qn(5).reset()}),Ie(14,"Cancel"),me()()(),$e(15,aW,1,4,"app-error-message",11),$e(16,oW,1,4,"app-error-message",11),ge(17,"div",12)(18,"div",13)(19,"div",14)(20,"div",15),Ie(21),me(),ge(22,"div",16),Ie(23),me()()(),Xt(24,"div",17),me(),$e(25,cW,2,1,"div",18),me()()}if(2&e){var n=ze();we(1),xi("xs",tu(14,dW)),we(1),Me("ngIf",!n.editingTitle),we(1),Me("ngIf",n.editingTitle),we(1),It("filtered",n.sumbitAddAttenders),we(5),Me("ngModel",n.emailAttender),we(2),Me("disabled",n.sumbitAddAttenders),we(2),Me("disabled",n.sumbitAddAttenders||null==n.emailAttender),we(2),Me("ngIf",n.addAttendersCorrect),we(1),Me("ngIf",n.addAttendersError),we(5),bn(n.authenticationService.getCurrentUser().nickName),we(2),bn(n.authenticationService.getCurrentUser().name),we(2),Me("ngForOf",n.lesson.attenders)}}var hW=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this.lessonService=t,this.authenticationService=n,this.router=i,this.route=a,this.location=o,this.snackBar=s,this.editingTitle=!1,this.sumbitEditLesson=!1,this.sumbitAddAttenders=!1,this.arrayOfAttDels=[],this.addAttendersCorrect=!1,this.addAttendersError=!1}return f(r,[{key:"ngOnInit",value:function(){var n=this;this.route.params.subscribe(function(i){n.lesson=n.lessonService.obtainLocalLesson(+i.id)})}},{key:"editLesson",value:function(){var n=this;if(this.titleEdited!==this.lesson.title){this.sumbitEditLesson=!0;var i=new Hg(this.titleEdited);i.id=this.lesson.id,this.lessonService.editLesson(i).subscribe(function(a){console.log("Lesson edited: "),console.log(a),n.lesson=a,n.sumbitEditLesson=!1,n.editingTitle=!1,n.snackBar.open("Lesson edited!",void 0,{duration:3e3})},function(a){console.log(a),n.sumbitEditLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}else this.editingTitle=!1}},{key:"deleteLesson",value:function(){var n=this;this.sumbitEditLesson=!0,this.lessonService.deleteLesson(this.lesson.id).subscribe(function(i){console.log("Lesson deleted"),console.log(i),n.sumbitEditLesson=!1,n.router.navigate(["/lessons"]),n.snackBar.open("Lesson deleted!",void 0,{duration:3e3})},function(i){console.log(i),n.sumbitEditLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}},{key:"addLessonAttenders",value:function(){var n=this;this.sumbitAddAttenders=!0,this.lessonService.addLessonAttenders(this.lesson.id,[this.emailAttender]).subscribe(function(i){console.log("Attender added"),console.log(i),n.sumbitAddAttenders=!1,n.lesson.attenders=n.lesson.attenders.concat(i.attendersAdded),n.handleAttendersMessage(i)},function(i){console.log(i),n.sumbitAddAttenders=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}},{key:"deleteLessonAttender",value:function(n,i){var a=this;this.arrayOfAttDels[n]=!0;var o=new Hg(this.lesson.title);o.id=this.lesson.id;for(var s=0;s0){var s,o=K(n.attendersAdded);try{for(o.s();!(s=o.n()).done;)this.attCorrectContent+=""}catch(ee){o.e(ee)}finally{o.f()}a=!0}if(n.attendersAlreadyAdded.length>0){this.attErrorContent+="The following users were already added to the lesson";var c,l=K(n.attendersAlreadyAdded);try{for(l.s();!(c=l.n()).done;)this.attErrorContent+=""}catch(ee){l.e(ee)}finally{l.f()}i=!0}if(n.emailsValidNotRegistered.length>0){this.attErrorContent+="The following users are not registered";var _,v=K(n.emailsValidNotRegistered);try{for(v.s();!(_=v.n()).done;)this.attErrorContent+=""}catch(ee){v.e(ee)}finally{v.f()}i=!0}if(n.emailsInvalid&&n.emailsInvalid.length>0){this.attErrorContent+="These are not valid emails";var ne,Y=K(n.emailsInvalid);try{for(Y.s();!(ne=Y.n()).done;)this.attErrorContent+=""}catch(ee){Y.e(ee)}finally{Y.f()}i=!0}i?(this.attErrorTitle="There have been some problems",this.addAttendersError=!0):0===n.attendersAdded.length&&(this.attErrorTitle="No emails there!",this.addAttendersError=!0),a&&(this.attCorrectTitle="The following users where properly added",this.addAttendersCorrect=!0)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(Ug),j(bi),j(Tn),j(za),j(Aa),j(_g))},e.\u0275cmp=jt({type:e,selectors:[["app-lesson-details"]],decls:1,vars:1,consts:[["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[3,"ngSubmit"],["addAttendersForm",""],["id","new-attender-title"],["matInput","","placeholder","Email","name","attenderEmail","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"block-btn"],["mat-button","","type","submit",3,"disabled"],["mat-button","",3,"disabled","click"],[3,"errorTitle","errorContent","customClass","closable","eventShowable",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","20px","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start",1,"attender-row"],["fxFlex","90%",1,"no-margin-bottom"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start","fxLayoutGap","20px"],["fxFlex","",1,"no-margin-bottom"],["fxFlex","",1,"attender-email"],["fxFlex","10%"],[4,"ngFor","ngForOf"],["fxFlex","15%","fxLayoutAlign","start center",3,"title","click"],["fxFlex","70%"],["fxFlex","15%","fxLayoutAlign","end center",3,"title","click"],["fxLayout","row","fxLayoutAlign","start center"],["editLessonForm",""],["matInput","","placeholder","Title","name","lessonTitle","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[3,"errorTitle","errorContent","customClass","closable","eventShowable"],["fxLayout","row","fxLayoutAlign.xs","start","fxLayoutGap","20px","class","attender-row",4,"ngIf"],["fxLayout","row","fxLayoutAlign.xs","start","fxLayoutGap","20px",1,"attender-row"],["fxFlex","90%"],[3,"title","click",4,"ngIf"],["class","rotating",4,"ngIf"],[3,"title","click"],[1,"rotating"]],template:function(t,n){1&t&&$e(0,fW,26,15,"div",0),2&t&&Me("ngIf",n.lesson)},directives:[Jr,Jo,es,Nu,Qc,mu,fu,ra,fg,hg,Uo,Wo,du,zo,rs,zg,Lp,Ev],styles:[".attender-email[_ngcontent-%COMP%]{font-size:11px}.no-margin-bottom[_ngcontent-%COMP%]{margin-bottom:0!important}.attender-row[_ngcontent-%COMP%]{width:100%;margin-top:20px;min-height:27px}#new-attender-title[_ngcontent-%COMP%]{margin-bottom:5px}@keyframes rotating{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.rotating[_ngcontent-%COMP%]{animation:rotating 1s linear infinite;cursor:default!important}.rotating[_ngcontent-%COMP%]:hover{color:inherit!important}"]}),e}(),tx=function(){var e=function(){function r(t){d(this,r),this.http=t,this.url="api-users"}return f(r,[{key:"newUser",value:function(n,i,a,o){var s=this,u=JSON.stringify([n,i,a,o]);return this.http.post(this.url+"/new",u,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(l){return l}),vn(function(l){return s.handleError(l)}))}},{key:"handleError",value:function(n){return mi(n.status)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(de(Oa))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function vW(e,r){1&e&&(ge(0,"div",14),Xt(1,"div",15),me())}function pW(e,r){if(1&e){var t=Nt();ge(0,"div")(1,"mat-form-field")(2,"input",16),Ge("ngModelChange",function(a){return yt(t),ze().nickName=a}),me()()()}if(2&e){var n=ze();we(2),Me("ngModel",n.nickName)}}function gW(e,r){if(1&e){var t=Nt();ge(0,"div")(1,"mat-form-field")(2,"input",17),Ge("ngModelChange",function(a){return yt(t),ze().confirmPassword=a}),me()()()}if(2&e){var n=ze();we(2),Me("ngModel",n.confirmPassword)}}function mW(e,r){if(1&e){var t=Nt();ge(0,"div",18)(1,"span",19),Ie(2,"Sign up as..."),me(),ge(3,"mat-radio-group",20),Ge("ngModelChange",function(a){return yt(t),ze().roleUserSignup=a}),ge(4,"mat-radio-button",21),Ie(5,"Student"),me(),ge(6,"mat-radio-button",22),Ie(7,"Teacher"),me()()()}if(2&e){var n=ze();we(3),Me("ngModel",n.roleUserSignup)}}function yW(e,r){if(1&e){var t=Nt();ge(0,"app-error-message",23),Ge("eventShowable",function(){return yt(t),ze().fieldsIncorrect=!1}),me()}if(2&e){var n=ze();Me("errorTitle",n.errorTitle)("errorContent",n.errorContent)("customClass",n.customClass)("closable",!0)}}function _W(e,r){1&e&&(ge(0,"button",24),Ie(1,"Log in"),me())}function bW(e,r){1&e&&(ge(0,"button",25),Ie(1,"Sign up"),me())}function CW(e,r){1&e&&(ge(0,"div")(1,"table")(2,"tr")(3,"th"),Ie(4,"Email"),me(),ge(5,"th"),Ie(6,"Password"),me()(),ge(7,"tr")(8,"td"),Ie(9,"teacher@gmail.com"),me(),ge(10,"td"),Ie(11,"pass"),me()(),ge(12,"tr")(13,"td"),Ie(14,"student1@gmail.com"),me(),ge(15,"td"),Ie(16,"pass"),me()(),ge(17,"tr")(18,"td"),Ie(19,"student2@gmail.com"),me(),ge(20,"td"),Ie(21,"pass"),me()()()())}function EW(e,r){if(1&e){var t=Nt();ge(0,"div"),Ie(1,"Not registered yet?"),ge(2,"button",26),Ge("click",function(){yt(t);var i=ze(),a=Qn(9);return i.setLoginView(!1),a.reset()}),Ie(3,"Sign up"),me()()}}function wW(e,r){if(1&e){var t=Nt();ge(0,"div"),Ie(1,"Already registered?"),ge(2,"button",26),Ge("click",function(){yt(t);var i=ze(),a=Qn(9);return i.setLoginView(!0),a.reset()}),Ie(3,"Log in"),me()()}}var kW=function(){return{width:"100%"}},SW=function(){var e=function(){function r(t,n,i){d(this,r),this.authenticationService=t,this.userService=n,this.router=i,this.loginView=!0,this.roleUserSignup="student"}return f(r,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewChecked",value:function(){this.authenticationService.isLoggedIn()&&this.router.navigate(["/lessons"])}},{key:"setLoginView",value:function(n){this.fieldsIncorrect=!1,this.loginView=n}},{key:"onSubmit",value:function(){console.log("Submit: email = "+this.email+" , password = "+this.password+", confirmPassword = "+this.confirmPassword),this.submitProcessing=!0,this.loginView?(console.log("Logging in..."),this.logIn(this.email,this.password)):(console.log("Signing up..."),this.signUp())}},{key:"logIn",value:function(n,i){var a=this;this.authenticationService.logIn(n,i).subscribe(function(o){a.submitProcessing=!1,console.log("Login succesful! LOGGED AS "+a.authenticationService.getCurrentUser().name),a.fieldsIncorrect=!1,a.router.navigate(["/lessons"])},function(o){console.log("Login failed (error): "+o),a.errorTitle="Invalid field",a.errorContent="Please check your email or password",a.customClass="fail",a.handleError()})}},{key:"signUp",value:function(){var n=this;if(this.password!==this.confirmPassword)this.errorTitle="Your passwords don't match!",this.errorContent="",this.customClass="fail",this.handleError();else{var i=this.email,a=this.password;this.userService.newUser(i,a,this.nickName,this.roleUserSignup).subscribe(function(o){n.logIn(i,a),console.log("Sign up succesful!")},function(o){console.log("Sign up failed (error): "+o),409===o?(n.errorTitle="Invalid email",n.errorContent="That email is already in use",n.customClass="fail"):403===o&&(n.errorTitle="Invalid email format",n.errorContent="Our server has rejected that email",n.customClass="fail"),n.handleError()})}}},{key:"handleError",value:function(){this.submitProcessing=!1,this.fieldsIncorrect=!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(bi),j(tx),j(Tn))},e.\u0275cmp=jt({type:e,selectors:[["app-presentation"]],decls:27,vars:17,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],["fxLayout","column","fxLayoutAlign","space-around center"],["class","cssload-container",4,"ngIf"],[3,"ngSubmit"],["myForm",""],["matInput","","placeholder","Email","name","email","id","email","type","email","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","Password","name","password","id","password","type","password","required","",3,"ngModel","ngModelChange"],["class","radio-button-div",4,"ngIf"],[3,"errorTitle","errorContent","customClass","closable","eventShowable",4,"ngIf"],[1,"btn-container"],["mat-raised-button","","color","accent","type","submit","id","log-in-btn",4,"ngIf"],["mat-raised-button","","color","primary","type","submit","id","sign-up-btn",4,"ngIf"],[1,"cssload-container"],[1,"cssload-tube-tunnel"],["matInput","","placeholder","Name","name","nickName","id","nickName","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm password","name","confirmPassword","id","confirmPassword","type","password","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"radio-button-div"],["id","sign-up-as"],["name","roleUserSignup","id","roleUserSignup",3,"ngModel","ngModelChange"],["value","student"],["value","teacher"],[3,"errorTitle","errorContent","customClass","closable","eventShowable"],["mat-raised-button","","color","accent","type","submit","id","log-in-btn"],["mat-raised-button","","color","primary","type","submit","id","sign-up-btn"],["mat-button","",1,"card-button",3,"click"]],template:function(t,n){1&t&&(ge(0,"div",0)(1,"div",1)(2,"h1"),Ie(3,"OpenVidu Classroom Demo"),me(),ge(4,"div",2)(5,"mat-card")(6,"mat-card-content"),$e(7,vW,2,0,"div",3),ge(8,"form",4,5),Ge("ngSubmit",function(){return n.onSubmit()}),ge(10,"div")(11,"mat-form-field")(12,"input",6),Ge("ngModelChange",function(a){return n.email=a}),me()()(),$e(13,pW,3,1,"div",7),ge(14,"div")(15,"mat-form-field")(16,"input",8),Ge("ngModelChange",function(a){return n.password=a}),me()()(),$e(17,gW,3,1,"div",7),$e(18,mW,8,1,"div",9),$e(19,yW,1,4,"app-error-message",10),ge(20,"div",11),$e(21,_W,2,0,"button",12),$e(22,bW,2,0,"button",13),me()(),$e(23,CW,22,0,"div",7),me(),ge(24,"mat-card-actions"),$e(25,EW,4,0,"div",7),$e(26,wW,4,0,"div",7),me()()()()()),2&t&&(we(1),xi("xs",tu(16,kW)),we(6),Me("ngIf",n.submitProcessing),we(1),It("filtered",n.submitProcessing),we(4),Me("ngModel",n.email),we(1),Me("ngIf",!n.loginView),we(3),Me("ngModel",n.password),we(1),Me("ngIf",!n.loginView),we(1),Me("ngIf",!n.loginView),we(1),Me("ngIf",n.fieldsIncorrect),we(2),Me("ngIf",n.loginView),we(1),Me("ngIf",!n.loginView),we(1),Me("ngIf",n.loginView),we(2),Me("ngIf",n.loginView),we(1),Me("ngIf",!n.loginView))},directives:[Jo,es,Kp,B4,Jr,mu,fu,ra,fg,hg,Uo,Wo,du,zo,vg,pg,zg,rs,U4],styles:["h1[_ngcontent-%COMP%]{text-align:center;display:block}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card-actions[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;color:#9e9e9e}.btn-container[_ngcontent-%COMP%]{text-align:center;padding-top:20px}.card-button[_ngcontent-%COMP%]{margin-left:10px!important}.radio-button-div[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}#sign-up-as[_ngcontent-%COMP%]{color:#9e9e9e;display:block;margin-top:15px;margin-bottom:10px}table[_ngcontent-%COMP%]{margin:30px auto 0;text-align:left}"]}),e}(),DW=function(){return{width:"100%"}},AW=function(){var e=function(){function r(t){d(this,r),this.authenticationService=t}return f(r,[{key:"ngOnInit",value:function(){this.user=this.authenticationService.getCurrentUser()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(bi))},e.\u0275cmp=jt({type:e,selectors:[["app-profile"]],decls:15,vars:5,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"]],template:function(t,n){1&t&&(ge(0,"div",0)(1,"div",1)(2,"div"),Ie(3,"MY PROFILE"),me(),ge(4,"table")(5,"tr")(6,"td"),Ie(7,"Name"),me(),ge(8,"th"),Ie(9),me()(),ge(10,"tr")(11,"td"),Ie(12,"Email"),me(),ge(13,"th"),Ie(14),me()()()()()),2&t&&(we(1),xi("xs",tu(4,DW)),we(8),bn(n.authenticationService.getCurrentUser().nickName),we(5),bn(n.authenticationService.getCurrentUser().name))},directives:[Jo,es],styles:["table[_ngcontent-%COMP%]{margin-top:15px;border-collapse:separate;border-spacing:15px 17px}th[_ngcontent-%COMP%]{text-align:left}"]}),e}(),xW=B(5039);function MW(e,r){if(1&e){var t=Nt();ge(0,"mat-icon",2),Ge("click",function(){return yt(t),ze().toggleLocalVideo()}),Ie(1),me()}if(2&e){var n=ze();Me("title","Toggle video"),we(1),bn(n.videoIcon)}}function TW(e,r){if(1&e){var t=Nt();ge(0,"mat-icon",2),Ge("click",function(){return yt(t),ze().toggleLocalAudio()}),Ie(1),me()}if(2&e){var n=ze();Me("title","Toggle audio"),we(1),bn(n.audioIcon)}}var OW=function(){var e=function(){function r(t,n,i,a){d(this,r),this.location=t,this.authenticationService=n,this.videoSessionService=i,this.snackBar=a}return f(r,[{key:"OPEN_VIDU_CONNECTION",value:function(){var n=this;this.OV=new xW.OpenVidu,this.session=this.OV.initSession(),this.session.on("streamCreated",function(i){console.warn("STREAM CREATED!"),console.warn(i.stream),n.session.subscribe(i.stream,"subscriber",{insertMode:"APPEND"})}),this.session.on("streamDestroyed",function(i){console.warn("STREAM DESTROYED!"),console.warn(i.stream)}),this.session.on("connectionCreated",function(i){i.connection.connectionId===n.session.connection.connectionId?console.warn("YOUR OWN CONNECTION CREATED!"):console.warn("OTHER USER'S CONNECTION CREATED!"),console.warn(i.connection)}),this.session.on("connectionDestroyed",function(i){console.warn("OTHER USER'S CONNECTION DESTROYED!"),console.warn(i.connection),n.authenticationService.connectionBelongsToTeacher(i.connection)&&n.location.back()}),this.session.connect(this.token,"CLIENT:"+this.authenticationService.getCurrentUser().name).then(function(){n.authenticationService.isTeacher()&&(n.publisher=n.OV.initPublisher("publisher",n.cameraOptions),n.publisher.on("accessAllowed",function(){console.warn("CAMERA ACCESS ALLOWED!")}),n.publisher.on("accessDenied",function(){console.warn("CAMERA ACCESS DENIED!")}),n.publisher.on("streamCreated",function(i){console.warn("STREAM CREATED BY PUBLISHER!"),console.warn(i.stream)}),n.session.publish(n.publisher))}).catch(function(i){console.log("There was an error connecting to the session:",i.code,i.message)})}},{key:"ngOnInit",value:function(){var n=this;this.previousConnectionStuff(),this.authenticationService.isTeacher()?this.videoSessionService.createSession(this.lesson.id).subscribe(function(){n.videoSessionService.generateToken(n.lesson.id).subscribe(function(i){n.token=i[0],console.warn("Token: "+n.token),n.OPEN_VIDU_CONNECTION()},function(i){console.log(i)})},function(i){console.log(i)}):this.videoSessionService.generateToken(this.lesson.id).subscribe(function(i){n.token=i[0],console.warn("Token: "+n.token),n.OPEN_VIDU_CONNECTION()},function(i){console.log(i),409===i.status&&(n.snackBar.open("The teacher has not opened the lesson yet!","Undo",{duration:3e3}),n.location.back())}),this.afterConnectionStuff()}},{key:"ngAfterViewInit",value:function(){this.toggleScrollPage("hidden")}},{key:"ngOnDestroy",value:function(){this.videoSessionService.removeUser(this.lesson.id).subscribe(function(n){console.warn("You have succesfully left the lesson")},function(n){console.log(n)}),this.toggleScrollPage("auto"),this.exitFullScreen(),this.OV&&this.session.disconnect()}},{key:"toggleScrollPage",value:function(n){document.getElementsByClassName("mat-sidenav-content")[0].style.overflow=n}},{key:"toggleLocalVideo",value:function(){this.localVideoActivated=!this.localVideoActivated,this.publisher.publishVideo(this.localVideoActivated),this.videoIcon=this.localVideoActivated?"videocam":"videocam_off"}},{key:"toggleLocalAudio",value:function(){this.localAudioActivated=!this.localAudioActivated,this.publisher.publishAudio(this.localAudioActivated),this.audioIcon=this.localAudioActivated?"mic":"mic_off"}},{key:"toggleFullScreen",value:function(){var n=window.document,i=n.getElementsByTagName("html")[0];n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement||n.msFullscreenElement?(console.log("exit FULLSCREEN!"),this.fullscreenIcon="fullscreen",n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen()):(console.log("enter FULLSCREEN!"),this.fullscreenIcon="fullscreen_exit",i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen())}},{key:"exitFullScreen",value:function(){var n=window.document;n.getElementsByTagName("html"),n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen()}},{key:"previousConnectionStuff",value:function(){this.lesson=this.videoSessionService.lesson,this.cameraOptions=this.videoSessionService.cameraOptions}},{key:"afterConnectionStuff",value:function(){this.authenticationService.isTeacher()&&(this.localVideoActivated=!1!==this.cameraOptions.publishVideo,this.localAudioActivated=!1!==this.cameraOptions.publishAudio,this.videoIcon=this.localVideoActivated?"videocam":"videocam_off",this.audioIcon=this.localAudioActivated?"mic":"mic_off"),this.fullscreenIcon="fullscreen"}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(Aa),j(bi),j(Gg),j(_g))},e.\u0275cmp=jt({type:e,selectors:[["app-video-session"]],decls:11,vars:6,consts:[["id","header-div"],["id","back-btn",3,"title","click"],[1,"right-btn",3,"title","click"],["class","right-btn",3,"title","click",4,"ngIf"],["id","publisher"],["id","subscriber"]],template:function(t,n){1&t&&(ge(0,"div",0)(1,"mat-icon",1),Ge("click",function(){return n.location.back()}),Ie(2,"keyboard_arrow_left"),me(),ge(3,"mat-icon",2),Ge("click",function(){return n.toggleFullScreen()}),Ie(4),me(),$e(5,MW,2,2,"mat-icon",3),$e(6,TW,2,2,"mat-icon",3),ge(7,"h1"),Ie(8),me()(),Xt(9,"div",4)(10,"div",5)),2&t&&(we(1),Me("title","Back to lessons"),we(2),Me("title","Fullscreen"),we(1),bn(n.fullscreenIcon),we(1),Me("ngIf",n.authenticationService.isTeacher()),we(1),Me("ngIf",n.authenticationService.isTeacher()),we(2),bn(null==n.lesson?null:n.lesson.title))},directives:[Nu,Jr],styles:["h1[_ngcontent-%COMP%]{text-align:center;margin:0;color:#fff}#header-div[_ngcontent-%COMP%]{position:absolute;z-index:1000;width:100%;background:rgba(0,0,0,.4);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}mat-icon[_ngcontent-%COMP%]{font-size:38px;width:38px;height:38px;color:#fff;transition:color .2s linear}mat-icon[_ngcontent-%COMP%]:hover{color:#ffd740}#back-btn[_ngcontent-%COMP%]{float:left}.right-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),IW=O6.forRoot([{path:"",component:SW,pathMatch:"full",data:{state:"presentation"}},{path:"lessons",component:tW,canActivate:[Yu],data:{state:"lessons"}},{path:"lesson-details/:id",component:hW,canActivate:[Yu],data:{state:"lesson-details"}},{path:"profile",component:AW,canActivate:[Yu],data:{state:"profile"}},{path:"lesson/:id",component:OW,canActivate:[Yu],data:{state:"session"}}],{useHash:!0}),PW=_u("routerTransition",[ia("* <=> *",[ap(":enter, :leave",Ln({position:"fixed",width:"100%"}),{optional:!0}),function FV(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:r}}([ap(":enter",[Ln({opacity:"0"}),Fi("0.4s ease-in-out",Ln({opacity:"1"}))],{optional:!0}),ap(":leave",[Ln({opacity:"1"}),Fi("0.2s cubic-bezier(0.000, 0.900, 0.495, 0.990)",Ln({opacity:"0"}))],{optional:!0})])])]);function FW(e,r){if(1&e){var t=Nt();ge(0,"div",10)(1,"button",11),Ie(2,"Lessons"),me(),ge(3,"button",12),Ie(4,"Profile"),me(),ge(5,"button",13),Ge("click",function(){return yt(t),ze(2).authenticationService.directLogOut()}),Ie(6,"LOGOUT"),me()()}}function LW(e,r){if(1&e){var t=Nt();ge(0,"button",14),Ge("click",function(){return yt(t),ze(2),Qn(2).open()}),ge(1,"mat-icon"),Ie(2,"menu"),me()()}}function NW(e,r){if(1&e&&(ge(0,"header")(1,"mat-toolbar",5)(2,"button",6),Ie(3," OpenVidu Classroom Demo "),me(),Xt(4,"span",7),$e(5,FW,7,0,"div",8),$e(6,LW,3,0,"button",9),me()()),2&e){var t=ze();we(5),Me("ngIf",t.authenticationService.isLoggedIn()),we(1),Me("ngIf",t.authenticationService.isLoggedIn())}}function VW(e,r){1&e&&(ge(0,"footer",15)(1,"div",16)(2,"div",17)(3,"div",18)(4,"h2"),Ie(5,"This is a sample application"),me(),ge(6,"p",19),Ie(7,"Implementing a secure real time app with OpenVidu"),me()(),ge(8,"div",18)(9,"div",20)(10,"div",21)(11,"h2"),Ie(12,"Technologies"),me(),ge(13,"ul")(14,"li")(15,"a",22),Ie(16,"OpenVidu"),me()(),ge(17,"li")(18,"a",23),Ie(19,"Angular"),me()(),ge(20,"li")(21,"a",24),Ie(22,"Angular Material"),me()(),ge(23,"li")(24,"a",25),Ie(25,"Spring Framework"),me()()()(),ge(26,"div",21)(27,"h2"),Ie(28,"Connect"),me(),ge(29,"ul")(30,"li")(31,"a",26),Ie(32,"GitHub repository"),me()()()()()()()()())}var BW=function(){var e=function(){function r(t,n){d(this,r),this.router=t,this.authenticationService=n}return f(r,[{key:"isVideoSessionUrl",value:function(){return"/lesson/"===this.router.url.substring(0,8)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(j(Tn),j(bi))},e.\u0275cmp=jt({type:e,selectors:[["app-root"]],decls:14,vars:3,consts:[["sidenav",""],["mat-button","",1,"sidenav-button",3,"click"],[4,"ngIf"],["o","outlet"],["class","page-footer back-primary color-secondary mat-elevation-z5",4,"ngIf"],["color","primary",1,"mat-elevation-z6"],["mat-button","","routerLink","/","id","navbar-logo"],[1,"fill-remaining-space"],["fxLayout","row","fxShow","false","fxShow.gt-sm","",4,"ngIf"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"click",4,"ngIf"],["fxLayout","row","fxShow","false","fxShow.gt-sm",""],["mat-button","","routerLink","/lessons"],["mat-button","","routerLink","/profile"],["mat-button","",3,"click"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"click"],[1,"page-footer","back-primary","color-secondary","mat-elevation-z5"],[1,"container"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start start","fxLayoutAlign.xs","start"],["fxFlex","50%","fxFlex.xs","100%"],[1,"grey-text","text-lighten-4"],["fxLayout","row","fxLayoutAlign","end start","fxLayoutAlign.xs","start"],["fxFlex","50%"],["href","https://www.openvidu.io/","target","_blank",1,"hover-link"],["href","https://angular.io/","target","_blank",1,"hover-link"],["href","https://material.angular.io/","target","_blank",1,"hover-link"],["href","https://spring.io/","target","_blank",1,"hover-link"],["href","https://github.com/OpenVidu","target","_blank",1,"hover-link"]],template:function(t,n){if(1&t){var i=Nt();ge(0,"mat-sidenav-container")(1,"mat-sidenav",null,0)(3,"button",1),Ge("click",function(){yt(i);var s=Qn(2);return n.router.navigate(["/lessons"]),s.close()}),Ie(4,"Lessons"),me(),ge(5,"button",1),Ge("click",function(){yt(i);var s=Qn(2);return n.router.navigate(["/profile"]),s.close()}),Ie(6,"Profile"),me(),ge(7,"button",1),Ge("click",function(){return yt(i),Qn(2).close(),n.authenticationService.directLogOut()}),Ie(8,"Logout"),me()(),$e(9,NW,7,2,"header",2),ge(10,"main"),Xt(11,"router-outlet",null,3),me(),$e(13,VW,33,0,"footer",4),me()}if(2&t){var a=Qn(12);we(9),Me("ngIf",!n.isVideoSessionUrl()),we(1),Me("@routerTransition",a.isActivated&&a.activatedRoute.routeConfig.path),we(3),Me("ngIf",!n.isVideoSessionUrl())}},directives:[UD,HD,rs,Jr,T8,Td,Jo,JS,Nu,Ig,es,Qc],styles:["mat-sidenav[_ngcontent-%COMP%]{width:250px}mat-sidenav-container[_ngcontent-%COMP%]{height:100%}footer.page-footer[_ngcontent-%COMP%]{margin:0}footer[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:10px}.sidenav-button[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] .fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}header[_ngcontent-%COMP%] #navbar-logo[_ngcontent-%COMP%]{font-weight:700}footer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:0}"],data:{animation:[PW]}}),e}(),jW=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e,bootstrap:[BW]}),e.\u0275inj=vt({providers:[bi,tx,Ug,Gg,Yu],imports:[[Ew,R3,yV,IV,O8,WU,IW]]}),e}();(function WF(){false})(),r2().bootstrapModule(jW)},9069:function(_e){"use strict";var I,U="object"==typeof Reflect?Reflect:null,B=U&&"function"==typeof U.apply?U.apply:function(W,D,y){return Function.prototype.apply.call(W,D,y)};I=U&&"function"==typeof U.ownKeys?U.ownKeys:Object.getOwnPropertySymbols?function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:function(W){return Object.getOwnPropertyNames(W)};var O=Number.isNaN||function(W){return W!=W};function R(){R.init.call(this)}_e.exports=R,_e.exports.once=function K(G,W){return new Promise(function(D,y){function M(w){G.removeListener(W,$),y(w)}function $(){"function"==typeof G.removeListener&&G.removeListener("error",M),D([].slice.call(arguments))}S(G,W,$,{once:!0}),"error"!==W&&function H(G,W,D){"function"==typeof G.on&&S(G,"error",W,D)}(G,M,{once:!0})})},R.EventEmitter=R,R.prototype._events=void 0,R.prototype._eventsCount=0,R.prototype._maxListeners=void 0;var f=10;function d(G){if("function"!=typeof G)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof G)}function L(G){return void 0===G._maxListeners?R.defaultMaxListeners:G._maxListeners}function p(G,W,D,y){var M,$,w;if(d(D),void 0===($=G._events)?($=G._events=Object.create(null),G._eventsCount=0):(void 0!==$.newListener&&(G.emit("newListener",W,D.listener?D.listener:D),$=G._events),w=$[W]),void 0===w)w=$[W]=D,++G._eventsCount;else if("function"==typeof w?w=$[W]=y?[D,w]:[w,D]:y?w.unshift(D):w.push(D),(M=L(G))>0&&w.length>M&&!w.warned){w.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");C.name="MaxListenersExceededWarning",C.emitter=G,C.type=W,C.count=w.length,function z(G){console&&console.warn&&console.warn(G)}(C)}return G}function k(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T(G,W,D){var y={fired:!1,wrapFn:void 0,target:G,type:W,listener:D},M=k.bind(y);return M.listener=D,y.wrapFn=M,M}function q(G,W,D){var y=G._events;if(void 0===y)return[];var M=y[W];return void 0===M?[]:"function"==typeof M?D?[M.listener||M]:[M]:D?function ie(G){for(var W=new Array(G.length),D=0;D0&&(w=D[0]),w instanceof Error)throw w;var C=new Error("Unhandled error."+(w?" ("+w.message+")":""));throw C.context=w,C}var Q=$[W];if(void 0===Q)return!1;if("function"==typeof Q)B(Q,this,D);else{var X=Q.length,oe=b(Q,X);for(y=0;y=0;w--)if(y[w]===D||y[w].listener===D){C=y[w].listener,$=w;break}if($<0)return this;0===$?y.shift():function V(G,W){for(;W+1=0;M--)this.removeListener(W,D[M]);return this},R.prototype.listeners=function(W){return q(this,W,!0)},R.prototype.rawListeners=function(W){return q(this,W,!1)},R.listenerCount=function(G,W){return"function"==typeof G.listenerCount?G.listenerCount(W):te.call(G,W)},R.prototype.listenerCount=te,R.prototype.eventNames=function(){return this._eventsCount>0?I(this._events):[]}},4491:function(_e,U,B){"use strict";var I=B(1897);_e.exports=function(R){var p,f={stun:(R||{}).stun||B(8808),turn:(R||{}).turn||B(4576)},L=(R||{}).turnCount||0;function k(T,q){for(var V,te=[],b=[].concat(f[T]);b.length&&te.lengthL&&d[p]<0&&(L=d[p]);return L}(H,K);L.emit("volume_change",D,q);var y=0;if(D>q&&!L.speaking){for(var M=L.speakingHistory.length-3;M=2&&(L.speaking=!0,L.emit("speaking"))}else if(Dq)),W()}},T)}(),L}},3894:function(_e){_e.exports="function"==typeof Object.create?function(B,I){I&&(B.super_=I,B.prototype=Object.create(I.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}))}:function(B,I){if(I){B.super_=I;var z=function(){};z.prototype=I.prototype,B.prototype=new z,B.prototype.constructor=B}}},8659:function(_e,U){var O,B=this&&this.__extends||(O=function(f,d){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,p){L.__proto__=p}||function(L,p){for(var k in p)Object.prototype.hasOwnProperty.call(p,k)&&(L[k]=p[k])})(f,d)},function(R,f){function d(){this.constructor=R}O(R,f),R.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)});function I(O){if(!O)return I.__;Array.prototype.reduce||(Array.prototype.reduce=function(d,L){for(var p=L,k=0;k=this.maxBatchSize)this.nbrLogItemsSkipped+=m.length;else{if(null!=O.maxMessages){if(O.maxMessages<1)return;O.maxMessages-=m.length}this.batchBuffer=this.batchBuffer.concat(m);var E=this;$(this.batchTimeoutTimer,this.batchTimeout,function(){E.sendBatch.call(E)})}},x.prototype.batchBufferHasOverdueMessages=function(){for(var m=0;mthis.batchTimeout)return!0;return!1},x.prototype.batchBufferHasStrandedMessage=function(){return null!=O.maxMessages&&O.maxMessages<1&&this.batchBuffer.length>0},x.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},x.prototype.onSendingEnded=function(){M(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},x.prototype.setOptions=function(m){if(R("level",m,this),R("ipRegex",m,this),R("userAgentRegex",m,this),R("disallow",m,this),R("sendWithBufferLevel",m,this),R("storeInBufferLevel",m,this),R("bufferSize",m,this),R("batchSize",m,this),R("maxBatchSize",m,this),R("batchTimeout",m,this),R("sendTimeout",m,this),this.bufferSize0&&(this.buffer.push(De),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([De]),J>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},x.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(M(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var m=this;$(this.sendTimeoutTimer,this.sendTimeout,function(){m.onSendingEnded.call(m)}),this.sendLogItems(this.batchBuffer,function(){m.batchBuffer.splice(0,m.nbrLogItemsBeingSent),m.nbrLogItemsSkipped>0&&(m.batchBuffer.push(y(4e3,"Lost "+m.nbrLogItemsSkipped+" messages. Either connection with the server was down or logging was disabled via the enabled option. Reduce lost messages by increasing the ajaxAppender option maxBatchSize.",m.appenderName)),m.nbrLogItemsSkipped=0),m.onSendingEnded.call(m)})}},x}();O.Appender=w;var C=function(x){function m(E){return x.call(this,E,m.prototype.sendLogItemsAjax)||this}return B(m,x),m.prototype.setOptions=function(E){return R("url",E,this),R("beforeSend",E,this),x.prototype.setOptions.call(this,E),this},m.prototype.sendLogItemsAjax=function(E,N){try{if(!f(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=O._createXMLHttpRequest();var ae="/jsnlog.logger";null!=O.defaultAjaxUrl&&(ae=O.defaultAjaxUrl),this.url&&(ae=this.url),this.xhr.open("POST",ae),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",O.requestId);var J=this;this.xhr.onreadystatechange=function(){4==J.xhr.readyState&&J.xhr.status>=200&&J.xhr.status<300&&N()};var ve={r:O.requestId,lg:E};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,ve):"function"==typeof O.defaultBeforeSend&&O.defaultBeforeSend.call(this,this.xhr,ve);var ke=JSON.stringify(ve);this.xhr.send(ke)}catch(De){}},m}(w);O.AjaxAppender=C;var Q=function(x){function m(E){return x.call(this,E,m.prototype.sendLogItemsConsole)||this}return B(m,x),m.prototype.clog=function(E){O._console.log(E)},m.prototype.cerror=function(E){O._console.error?O._console.error(E):this.clog(E)},m.prototype.cwarn=function(E){O._console.warn?O._console.warn(E):this.clog(E)},m.prototype.cinfo=function(E){O._console.info?O._console.info(E):this.clog(E)},m.prototype.cdebug=function(E){O._console.debug?O._console.debug(E):this.cinfo(E)},m.prototype.sendLogItemsConsole=function(E,N){try{if(!f(this)||!O._console)return;var ae;for(ae=0;ae=this.level&&f(this)&&(N?(ve=this.buildExceptionObject(N)).logData=L(E):ve=E,d(this,(J=k(ve)).finalString))){if(this.onceOnly)for(ae=this.onceOnly.length-1;ae>=0;){if(new RegExp(this.onceOnly[ae]).test(J.finalString)){if(this.seenRegexes[ae])return this;this.seenRegexes[ae]=!0}ae--}for(J.meta=J.meta||{},ae=this.appenders.length-1;ae>=0;)this.appenders[ae].log(G(m),J.msg,J.meta,function(){},m,J.finalString,this.loggerName),ae--}return this},x.prototype.trace=function(m){return this.log(1e3,m)},x.prototype.debug=function(m){return this.log(2e3,m)},x.prototype.info=function(m){return this.log(3e3,m)},x.prototype.warn=function(m){return this.log(4e3,m)},x.prototype.error=function(m){return this.log(5e3,m)},x.prototype.fatal=function(m){return this.log(6e3,m)},x.prototype.fatalException=function(m,E){return this.log(6e3,m,E)},x}();O.Logger=X,O.createAjaxAppender=function oe(x){return new C(x)},O.createConsoleAppender=function g(x){return new Q(x)},P="undefined"!=typeof window?new C(""):new Q(""),O.__=new O.Logger(""),O.__.setOptions({level:O.getDebugLevel(),appenders:[P]})})(I||(I={})),U.__esModule=!0,U.JL=I,"function"==typeof __jsnlog_configure&&__jsnlog_configure(I),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(O,R,f,d,L){return I("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:O?O.message||O:"",url:R,"line number":f,column:d},L),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(O){I("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:O.reason?O.reason.message:O.message||null},O.reason)})},1897:function(_e){var U=["stun:","turn:"];_e.exports=function(B){var z,O,I=(B||{}).url||B,R={};return("string"==typeof I||I instanceof String)&&(I=I.trim(),z=U[U.indexOf(I.slice(0,5))])?(O=(I=I.slice(5)).split("@"),R.username=B.username,R.credential=B.credential,O.length>1&&(I=O[1],O=O[0].split(":"),R.username=O[0],R.credential=(B||{}).credential||O[1]||""),R.url=z+I,R.urls=[R.url],R):B}},7490:function(_e,U,B){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Connection=void 0;var I=B(2096),z=B(6946),O=B(7507),R=z.OpenViduLogger.getInstance(),f=function(){function d(L,p){this.session=L,this.disposed=!1;var k="'Connection' created ";p.role?(this.localOptions=p,this.connectionId=this.localOptions.id,this.creationTime=this.localOptions.createdAt,this.data=this.localOptions.metadata,this.rpcSessionId=this.localOptions.sessionId,this.role=this.localOptions.role,this.record=this.localOptions.record,k+="(local)"):(this.remoteOptions=p,this.connectionId=this.remoteOptions.id,this.creationTime=this.remoteOptions.createdAt,this.remoteOptions.metadata&&(this.data=this.remoteOptions.metadata),this.remoteOptions.streams&&this.initRemoteStreams(this.remoteOptions.streams),k+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),R.info(k)}return d.prototype.sendIceCandidate=function(L){var p=this;this.disposed?R.warn("Connection ".concat(this.connectionId," disposed when trying to send an ICE candidate. ICE candidate not sent")):(R.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,L),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:L.candidate,sdpMid:L.sdpMid,sdpMLineIndex:L.sdpMLineIndex},function(k,T){k&&(R.error("Error sending ICE candidate: "+JSON.stringify(k)),p.session.emitEvent("exception",[new O.ExceptionEvent(p.session,O.ExceptionEventName.ICE_CANDIDATE_ERROR,p.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",k)]))}))},d.prototype.initRemoteStreams=function(L){var p=this;L.forEach(function(k){var T={id:k.id,createdAt:k.createdAt,connection:p,hasAudio:k.hasAudio,hasVideo:k.hasVideo,audioActive:k.audioActive,videoActive:k.videoActive,typeOfVideo:k.typeOfVideo,frameRate:k.frameRate,videoDimensions:k.videoDimensions?JSON.parse(k.videoDimensions):void 0,filter:k.filter?k.filter:void 0},q=new I.Stream(p.session,T);p.addStream(q)}),R.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},d.prototype.addStream=function(L){L.connection=this,this.stream=L},d.prototype.removeStream=function(){delete this.stream},d.prototype.dispose=function(){this.disposed=!0,this.removeStream()},d}();U.Connection=f},8074:function(_e,U,B){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.EventDispatcher=void 0;var I=B(6946),z=B(940),O=I.OpenViduLogger.getInstance(),R=function(){function f(){this.userHandlerArrowHandler=new WeakMap,this.ee=new z}return f.prototype.onAux=function(d,L,p){var k=function(q){q?O.debug(L,q):O.debug(L),p(q)};return this.userHandlerArrowHandler.set(p,k),this.ee.on(d,k),this},f.prototype.onceAux=function(d,L,p){var k=this,T=function(te){te?O.debug(L,te):O.debug(L),p(te),k.userHandlerArrowHandler.delete(p)};return this.userHandlerArrowHandler.set(p,T),this.ee.once(d,T),this},f.prototype.offAux=function(d,L){if(L){var p=this.userHandlerArrowHandler.get(L);p&&this.ee.off(d,p),this.userHandlerArrowHandler.delete(L)}else this.ee.removeAllListeners(d);return this},f}();U.EventDispatcher=R},4540:function(_e,U,B){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Filter=void 0;var I=B(2798),z=B(4103),R=B(6946).OpenViduLogger.getInstance(),f=function(){function d(L,p){this.handlers=new Map,this.type=L,this.options=p}return d.prototype.execMethod=function(L,p){var k=this;return new Promise(function(T,q){var te;R.info("Executing filter method to stream "+k.stream.streamId);var b,V=function(S){R.info("Filter method successfully executed on Stream "+k.stream.streamId);var G=Object.assign({},k.stream.filter);return k.stream.filter.lastExecMethod={method:L,params:b},S&&(k.stream.session.emitEvent("streamPropertyChanged",[new I.StreamPropertyChangedEvent(k.stream.session,k.stream,"filter",k.stream.filter,G,"execFilterMethod")]),k.stream.streamManager.emitEvent("streamPropertyChanged",[new I.StreamPropertyChangedEvent(k.stream.streamManager,k.stream,"filter",k.stream.filter,G,"execFilterMethod")])),T()};if(k.type.startsWith("VB:")){if("string"==typeof p)try{p=JSON.parse(p)}catch(H){return q(new z.OpenViduError(z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+H))}if(b=p,"update"!==L)return q(new z.OpenViduError(z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(L,'"')));if(!(null===(te=k.stream.virtualBackgroundSinkElements)||void 0===te?void 0:te.VB))return q(new z.OpenViduError(z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));k.stream.virtualBackgroundSinkElements.VB.updateValues(p).then(function(){return V(!1)}).catch(function(H){return q(H.name===z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new z.OpenViduError(H.name,H.message):new z.OpenViduError(z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+H))})}else{var ie=void 0;if("string"!=typeof p)try{ie=JSON.stringify(p)}catch(H){var K="'params' property must be a JSON formatted object";return R.error(K),q(K)}else ie=p;b=ie,k.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:k.stream.streamId,method:L,params:ie},function(H,S){return H?(R.error("Error executing filter method for Stream "+k.stream.streamId,H),q(401===H.code?new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):H)):V(!0)})}})},d.prototype.addEventListener=function(L,p){var k=this;return new Promise(function(T,q){R.info("Adding filter event listener to event "+L+" to stream "+k.stream.streamId),k.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:k.stream.streamId,eventType:L},function(te,b){return te?(R.error("Error adding filter event listener to event "+L+"for Stream "+k.stream.streamId,te),q(401===te.code?new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):te)):(k.handlers.set(L,p),R.info("Filter event listener to event "+L+" successfully applied on Stream "+k.stream.streamId),T())})})},d.prototype.removeEventListener=function(L){var p=this;return new Promise(function(k,T){R.info("Removing filter event listener to event "+L+" to stream "+p.stream.streamId),p.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:p.stream.streamId,eventType:L},function(q,te){return q?(R.error("Error removing filter event listener to event "+L+"for Stream "+p.stream.streamId,q),T(401===q.code?new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):q)):(p.handlers.delete(L),R.info("Filter event listener to event "+L+" successfully removed on Stream "+p.stream.streamId),k())})})},d}();U.Filter=f},4289:function(_e,U,B){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.LocalRecorder=void 0;var d,I=B(5156),z=B(6946),O=B(543),R=B(8946),f=z.OpenViduLogger.getInstance(),L=function(){function p(k){this.stream=k,this.chunks=[],d=O.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=I.LocalRecorderState.READY}return p.prototype.record=function(k){var T=this;return new Promise(function(q,te){try{if("string"==typeof k||k instanceof String)return te("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(k,'" }'));if("undefined"==typeof MediaRecorder)throw f.error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder");if(T.state!==I.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+T.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");f.log("Starting local recording of stream '"+T.stream.streamId+"' of connection '"+T.connectionId+"'"),k?k.mimeType||(k.mimeType="video/webm"):k={mimeType:"video/webm"},T.mediaRecorder=new MediaRecorder(T.stream.getMediaStream(),k),T.mediaRecorder.start()}catch(b){return te(b)}return T.mediaRecorder.ondataavailable=function(b){b.data.size>0&&T.chunks.push(b.data)},T.mediaRecorder.onerror=function(b){f.error("MediaRecorder error: ",b)},T.mediaRecorder.onstart=function(){f.log("MediaRecorder started (state="+T.mediaRecorder.state+")")},T.mediaRecorder.onstop=function(){T.onStopDefault()},T.mediaRecorder.onpause=function(){f.log("MediaRecorder paused (state="+T.mediaRecorder.state+")")},T.mediaRecorder.onresume=function(){f.log("MediaRecorder resumed (state="+T.mediaRecorder.state+")")},T.state=I.LocalRecorderState.RECORDING,q()})},p.prototype.stop=function(){var k=this;return new Promise(function(T,q){try{if(k.state===I.LocalRecorderState.READY||k.state===I.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+k.state+"'). Call 'LocalRecorder.start()' before");k.mediaRecorder.onstop=function(){return k.onStopDefault(),T()},k.mediaRecorder.stop()}catch(te){return q(te)}})},p.prototype.pause=function(){var k=this;return new Promise(function(T,q){try{return k.state!==I.LocalRecorderState.RECORDING?q(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+k.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(k.mediaRecorder.pause(),k.state=I.LocalRecorderState.PAUSED,T())}catch(te){return q(te)}})},p.prototype.resume=function(){var k=this;return new Promise(function(T,q){try{if(k.state!==I.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+k.state+"'). Call 'LocalRecorder.pause()' before");return k.mediaRecorder.resume(),k.state=I.LocalRecorderState.RECORDING,T()}catch(te){return q(te)}})},p.prototype.preview=function(k){if(this.state!==I.LocalRecorderState.FINISHED)throw Error("'LocalRecord.preview()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");if(this.videoPreview=document.createElement("video"),this.videoPreview.id=this.id,this.videoPreview.autoplay=!0,d.isSafariBrowser()&&(this.videoPreview.playsInline=!0),"string"==typeof k){var T=document.getElementById(k);T&&(this.videoPreview=T.appendChild(this.videoPreview))}else this.videoPreview=k.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},p.prototype.clean=function(){var k=this,T=function(){delete k.blob,k.chunks=[],k.state=I.LocalRecorderState.READY};this.state===I.LocalRecorderState.RECORDING||this.state===I.LocalRecorderState.PAUSED?this.stop().then(function(){return T()}).catch(function(){return T()}):T()},p.prototype.download=function(){if(this.state!==I.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var k=document.createElement("a");k.style.display="none",document.body.appendChild(k);var T=globalThis.URL.createObjectURL(this.blob);k.href=T,k.download=this.id+"."+R.getExtension(this.blob.type),k.click(),globalThis.URL.revokeObjectURL(T),document.body.removeChild(k)},p.prototype.getBlob=function(){if(this.state!==I.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},p.prototype.uploadAsBinary=function(k,T){var q=this;return new Promise(function(te,b){if(q.state!==I.LocalRecorderState.FINISHED)return b(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+q.state+"'). Call 'LocalRecorder.stop()' before"));var V=new XMLHttpRequest;if(V.open("POST",k,!0),"object"==typeof T)for(var ie=0,K=Object.keys(T);ie0&&C[C.length-1])&&(6===g[0]||2===g[0])){M=0;continue}if(3===g[0]&&(!C||g[1]>C[0]&&g[1]w&&clearTimeout(E),y.getVideoDimensions().then(function(N){(N.width!==x||N.height!==m)&&(clearTimeout(E),C.sendVideoDimensionsChangedEvent(y,M,x,m,N.width,N.height))})},$)},D.prototype.sendVideoDimensionsChangedEvent=function(y,M,$,w,C,Q){var X=this;y.stream.videoDimensions={width:C||0,height:Q||0},this.sendRequest("streamPropertyChanged",{streamId:y.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(y.stream.videoDimensions),reason:M},function(oe,g){oe?S.error("Error sending 'streamPropertyChanged' event",oe):(X.session.emitEvent("streamPropertyChanged",[new L.StreamPropertyChangedEvent(X.session,y.stream,"videoDimensions",y.stream.videoDimensions,{width:$,height:w},M)]),y.emitEvent("streamPropertyChanged",[new L.StreamPropertyChangedEvent(y,y.stream,"videoDimensions",y.stream.videoDimensions,{width:$,height:w},M)]),X.session.sendVideoData(y))})},D.prototype.sendTrackChangedEvent=function(y,M,$,w){var C=this,Q={label:M},X={label:$},oe="trackReplaced";y.stream.isLocalStreamPublished?this.sendRequest("streamPropertyChanged",{streamId:y.stream.streamId,property:w,newValue:X,reason:oe},function(g,P){g?S.error("Error sending 'streamPropertyChanged' event",g):(C.session.emitEvent("streamPropertyChanged",[new L.StreamPropertyChangedEvent(C.session,y.stream,w,X,Q,oe)]),y.emitEvent("streamPropertyChanged",[new L.StreamPropertyChangedEvent(y,y.stream,w,X,Q,oe)]))}):(this.session.emitEvent("streamPropertyChanged",[new L.StreamPropertyChangedEvent(this.session,y.stream,w,X,Q,oe)]),y.emitEvent("streamPropertyChanged",[new L.StreamPropertyChangedEvent(y,y.stream,w,X,Q,oe)]))},D.prototype.generateMediaConstraints=function(y){var M=this;return new Promise(function($,w){var C={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},Q=y.audioSource,X=y.videoSource;if((null===Q||!1===Q)&&(C.constraints.audio=!1),(null===X||!1===X)&&(C.constraints.video=!1),!1===C.constraints.audio&&!1===C.constraints.video)return w(new p.OpenViduError(p.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&Q instanceof MediaStreamTrack&&(C.audioTrack=Q),"undefined"!=typeof MediaStreamTrack&&X instanceof MediaStreamTrack&&(C.videoTrack=X),void 0===Q&&(C.constraints.audio=!0),void 0===X&&(C.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==X&&!1!==X){if(y.resolution){var oe=y.resolution.toLowerCase().split("x"),g=Number(oe[0]),P=Number(oe[1]);C.constraints.video={width:{ideal:g},height:{ideal:P}}}y.frameRate&&(C.constraints.video.frameRate={ideal:y.frameRate})}return M.configureDeviceIdOrScreensharing(C,y,$,w),$(C)})},D.prototype.startWs=function(y){var M={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:y,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session),speechToTextMessage:this.session.onSpeechToTextMessage.bind(this.session),speechToTextDisconnected:this.session.onSpeechToTextDisconnected.bind(this.session)}};this.jsonRpcClient=new K.clients.JsonRpcClient(M)},D.prototype.onMasterNodeCrashedNotification=function(y){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},D.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},D.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},D.prototype.sendRequest=function(y,M,$){var w;M&&M instanceof Function&&($=M,M={}),S.debug('Sending request: {method:"'+y+'", params: '+JSON.stringify(M)+"}"),null===(w=this.jsonRpcClient)||void 0===w||w.send(y,M,$)},D.prototype.getWsUri=function(){return this.wsUri},D.prototype.getSecret=function(){return this.secret},D.prototype.getRecorder=function(){return this.recorder},D.prototype.getStt=function(){return this.stt},D.prototype.generateAudioDeviceError=function(y,M){var $,w;switch("Error"===y.name&&(y.name=y.constructor.name),y.name.toLowerCase()){case"notfounderror":return $=p.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,w=y.toString(),new p.OpenViduError($,w);case"notallowederror":return $=p.OpenViduErrorName.DEVICE_ACCESS_DENIED,w=y.toString(),new p.OpenViduError($,w);case"overconstrainederror":return"deviceid"===y.constraint.toLowerCase()?($=p.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,w="Audio input device with deviceId '"+M.audio.deviceId.exact+"' not found"):($=p.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,w="Audio input device doesn't support the value passed for constraint '"+y.constraint+"'"),new p.OpenViduError($,w);case"notreadableerror":return $=p.OpenViduErrorName.DEVICE_ALREADY_IN_USE,w=y.toString(),new p.OpenViduError($,w);default:return new p.OpenViduError(p.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,y.toString())}},D.prototype.addAlreadyProvidedTracks=function(y,M,$){return y.videoTrack&&(M.addTrack(y.videoTrack),$&&($.lastVideoTrackConstraints=y.constraints.video?y.constraints.video:y.videoTrack.getConstraints())),y.audioTrack&&M.addTrack(y.audioTrack),M},D.prototype.configureDeviceIdOrScreensharing=function(y,M,$,w){var C=this,Q=M.audioSource,X=M.videoSource;if("string"==typeof Q&&(y.constraints.audio={deviceId:{exact:Q}}),"string"==typeof X){if(this.isScreenShare(X)){if(this.checkScreenSharingCapabilities()){if(G.isElectron()){var g="screen:",x=X.substr(X.indexOf(g)+g.length);return y.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:x}},$(y)}if(!this.advancedConfiguration.screenShareChromeExtension||G.isFirefoxBrowser()||G.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return $(y);var m=G.isFirefoxBrowser()||G.isFirefoxMobileBrowser()?M.videoSource:void 0;return void te.getScreenId(m,function(E,N,ae){if(E){if("not-installed"===E){var ve=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,C.advancedConfiguration.screenShareChromeExtension?C.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return S.error(ve),w(ve)}return"installed-disabled"===E?(ve=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),S.error(ve),w(ve)):"permission-denied"===E?(ve=new p.OpenViduError(p.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),S.error(ve),w(ve)):(ve=new p.OpenViduError(p.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),S.error(ve),S.error(E),w(ve))}return y.constraints.video=ae.video,$(y)})}return void b.getScreenConstraints(function(E,N){if(!(E||N.mandatory&&"screen"===N.mandatory.chromeMediaSource))return y.constraints.video=N,$(y);if("permission-denied"===E||"PermissionDeniedError"===E){var ae=new p.OpenViduError(p.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return S.error(ae),w(ae)}var J=C.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();b.getChromeExtensionStatus(J,function(ve){if("installed-disabled"===ve){var ke=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return S.error(ke),w(ke)}if("not-installed"===ve){var De=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,C.advancedConfiguration.screenShareChromeExtension);return S.error(De),w(De)}})})}var oe=new p.OpenViduError(p.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+G.getName()+" "+G.getVersion());return S.error(oe),w(oe)}this.setVideoSource(y,X)}},D.prototype.setVideoSource=function(y,M){y.constraints.video||(y.constraints.video={}),y.constraints.video.deviceId={exact:M}},D.prototype.disconnectCallback=function(){S.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},D.prototype.reconnectingCallback=function(){S.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},D.prototype.reconnectWebsocketThroughRpcConnectMethod=function(y){var M=this;this.sendRequest("connect",{sessionId:y,reconnect:!0},function($,w){if($)if(M.isMasterNodeCrashed())S.warn("Master Node has crashed!");else{S.error($);var C=function(oe,g){S.warn(g),M.session.onLostConnection(oe),M.jsonRpcClient.close(4101,"Reconnection fault: "+g)};40007===$.code&&"reconnection error"===$.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===M.life?C("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):M.sendRequest("sessionStatus",{sessionId:M.session.sessionId},function(oe,g){null!=oe?console.error("Error checking session status",oe):M.life===g.life?C("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):C("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else M.jsonRpcClient.resetPing(),M.session.onRecoveredConnection()})},D.prototype.reconnectedCallback=function(){if(S.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{S.warn("There was no previous connection when running reconnection callback");var y=new d.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[y]),y.callDefaultBehavior()}else alert("Connection error. Please reload page.")},D.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},D.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof f.Session||(S.warn("Session instance not found"),!1)},D.prototype.isScreenShare=function(y){return"screen"===y||"window"===y||G.isElectron()&&y.startsWith("screen:")},D}();U.OpenVidu=W},4259:function(_e,U,B){"use strict";var K,I=this&&this.__extends||(K=function(S,G){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,D){W.__proto__=D}||function(W,D){for(var y in D)Object.prototype.hasOwnProperty.call(D,y)&&(W[y]=D[y])})(S,G)},function(H,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function G(){this.constructor=H}K(H,S),H.prototype=null===S?Object.create(S):(G.prototype=S.prototype,new G)}),z=this&&this.__awaiter||function(K,H,S,G){return new(S||(S=Promise))(function(D,y){function M(C){try{w(G.next(C))}catch(Q){y(Q)}}function $(C){try{w(G.throw(C))}catch(Q){y(Q)}}function w(C){C.done?D(C.value):function W(D){return D instanceof S?D:new S(function(y){y(D)})}(C.value).then(M,$)}w((G=G.apply(K,H||[])).next())})},O=this&&this.__generator||function(K,H){var G,W,D,y,S={label:0,sent:function(){if(1&D[0])throw D[1];return D[1]},trys:[],ops:[]};return y={next:M(0),throw:M(1),return:M(2)},"function"==typeof Symbol&&(y[Symbol.iterator]=function(){return this}),y;function M(w){return function(C){return function $(w){if(G)throw new TypeError("Generator is already executing.");for(;S;)try{if(G=1,W&&(D=2&w[0]?W.return:w[0]?W.throw||((D=W.return)&&D.call(W),0):W.next)&&!(D=D.call(W,w[1])).done)return D;switch(W=0,D&&(w=[2&w[0],D.value]),w[0]){case 0:case 1:D=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,W=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(!(D=(D=S.trys).length>0&&D[D.length-1])&&(6===w[0]||2===w[0])){S=0;continue}if(3===w[0]&&(!D||w[1]>D[0]&&w[1]=1?M():(S.videoReference.addEventListener("loadedmetadata",y=function(){if(S.videoReference.videoWidth)M();else var w=setInterval(function(){S.videoReference.videoWidth&&(clearInterval(w),M())},40)}),D&&document.body.appendChild(S.videoReference))})},H.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},H.prototype.initializeVideoReference=function(S){this.videoReference=document.createElement("video"),this.videoReference.style.display="none",this.videoReference.muted=!0,this.videoReference.autoplay=!0,this.videoReference.controls=!1,(V.isSafariBrowser()||V.isIPhoneOrIPad()&&(V.isChromeMobileBrowser()||V.isEdgeMobileBrowser()||V.isOperaMobileBrowser()||V.isFirefoxMobileBrowser()))&&(this.videoReference.playsInline=!0),this.stream.setMediaStream(S),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=this.stream.getMediaStream()},H.prototype.replaceTrackInMediaStream=function(S,G){var D,W=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream();"video"===S.kind?(D=W.getVideoTracks()[0],G&&(this.stream.lastVideoTrackConstraints=S.getConstraints())):D=W.getAudioTracks()[0],D.enabled=!1,D.stop(),W.removeTrack(D),W.addTrack(S);var y={oldLabel:(null==D?void 0:D.label)||"",newLabel:(null==S?void 0:S.label)||""};"video"===S.kind&&G?(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.openvidu.sendTrackChangedEvent(this,y.oldLabel,y.newLabel,"videoTrack"),this.stream.isLocalStreamPublished&&this.session.sendVideoData(this.stream.streamManager,5,!0,5)):"audio"===S.kind&&G&&this.openvidu.sendTrackChangedEvent(this,y.oldLabel,y.newLabel,"audioTrack"),"audio"===S.kind&&(this.stream.disableHarkSpeakingEvent(!1),this.stream.disableHarkStoppedSpeakingEvent(!1),this.stream.disableHarkVolumeChangeEvent(!1),this.stream.initHarkEvents())},H.prototype.setPermissionDialogTimer=function(S){var G=this;this.permissionDialogTimeout=setTimeout(function(){G.emitEvent("accessDialogOpened",[])},S)},H.prototype.clearPermissionDialogTimer=function(S,G){clearTimeout(this.permissionDialogTimeout),Date.now()-S>G&&this.emitEvent("accessDialogClosed",[])},H.prototype.replaceTrackInRtcRtpSender=function(S){return z(this,void 0,void 0,function(){var G,W;return O(this,function(D){switch(D.label){case 0:if(G=this.stream.getRTCPeerConnection().getSenders(),"video"===S.kind){if(!(W=G.find(function(y){return!!y.track&&"video"===y.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==S.kind)throw new Error("Unknown track kind "+S.kind);if(!(W=G.find(function(y){return!!y.track&&"audio"===y.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,W.replaceTrack(S)];case 1:return D.sent(),[2]}})})},H}(d.StreamManager);U.Publisher=ie},8402:function(_e,U,B){"use strict";var X,I=this&&this.__extends||(X=function(g,P){return(X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,m){x.__proto__=m}||function(x,m){for(var E in m)Object.prototype.hasOwnProperty.call(m,E)&&(x[E]=m[E])})(g,P)},function(oe,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function P(){this.constructor=oe}X(oe,g),oe.prototype=null===g?Object.create(g):(P.prototype=g.prototype,new P)}),z=this&&this.__awaiter||function(X,oe,g,P){return new(g||(g=Promise))(function(m,E){function N(ve){try{J(P.next(ve))}catch(ke){E(ke)}}function ae(ve){try{J(P.throw(ve))}catch(ke){E(ke)}}function J(ve){ve.done?m(ve.value):function x(m){return m instanceof g?m:new g(function(E){E(m)})}(ve.value).then(N,ae)}J((P=P.apply(X,oe||[])).next())})},O=this&&this.__generator||function(X,oe){var P,x,m,E,g={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return E={next:N(0),throw:N(1),return:N(2)},"function"==typeof Symbol&&(E[Symbol.iterator]=function(){return this}),E;function N(J){return function(ve){return function ae(J){if(P)throw new TypeError("Generator is already executing.");for(;g;)try{if(P=1,x&&(m=2&J[0]?x.return:J[0]?x.throw||((m=x.return)&&m.call(x),0):x.next)&&!(m=m.call(x,J[1])).done)return m;switch(x=0,m&&(J=[2&J[0],m.value]),J[0]){case 0:case 1:m=J;break;case 4:return g.label++,{value:J[1],done:!1};case 5:g.label++,x=J[1],J=[0];continue;case 7:J=g.ops.pop(),g.trys.pop();continue;default:if(!(m=(m=g.trys).length>0&&m[m.length-1])&&(6===J[0]||2===J[0])){g=0;continue}if(3===J[0]&&(!m||J[1]>m[0]&&J[1]0){var N=[];g.to.forEach(function(J){J.connectionId&&N.push(J.connectionId)}),E.to=N}else E.to=[];E.data=g.data?g.data:"";var ae=g.type?g.type:"signal";ae&&"signal:"!==ae.substring(0,7)&&(ae="signal:"+ae),E.type=ae,P.openvidu.sendRequest("sendMessage",{message:JSON.stringify(E)},function(J,ve){return J?m(J):x()})})},oe.prototype.subscribeToSpeechToText=function(g,P){var x=this;return new Promise(function(m,E){x.openvidu.sendRequest("subscribeToSpeechToText",{connectionId:g.connection.connectionId,lang:P},function(N,ae){return N?E(N):m()})})},oe.prototype.unsubscribeFromSpeechToText=function(g){var P=this;return new Promise(function(x,m){P.openvidu.sendRequest("unsubscribeFromSpeechToText",{connectionId:g.connection.connectionId},function(E,N){return E?m(E):x()})})},oe.prototype.on=function(g,P){var x,m,E,N;return X.prototype.onAux.call(this,g,"Event '"+g+"' triggered by 'Session'",P),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(ae){var J;(null===(J=ae.stream)||void 0===J?void 0:J.hasAudio)&&ae.stream.enableHarkSpeakingEvent()}),(null===(m=null===(x=this.connection)||void 0===x?void 0:x.stream)||void 0===m?void 0:m.hasAudio)&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(ae){var J;(null===(J=ae.stream)||void 0===J?void 0:J.hasAudio)&&ae.stream.enableHarkStoppedSpeakingEvent()}),(null===(N=null===(E=this.connection)||void 0===E?void 0:E.stream)||void 0===N?void 0:N.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},oe.prototype.once=function(g,P){var x,m,E,N;return X.prototype.onceAux.call(this,g,"Event '"+g+"' triggered once by 'Session'",P),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(ae){var J;(null===(J=ae.stream)||void 0===J?void 0:J.hasAudio)&&ae.stream.enableOnceHarkSpeakingEvent()}),(null===(m=null===(x=this.connection)||void 0===x?void 0:x.stream)||void 0===m?void 0:m.hasAudio)&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(ae){var J;(null===(J=ae.stream)||void 0===J?void 0:J.hasAudio)&&ae.stream.enableOnceHarkStoppedSpeakingEvent()}),(null===(N=null===(E=this.connection)||void 0===E?void 0:E.stream)||void 0===N?void 0:N.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},oe.prototype.off=function(g,P){var m,E,N,ae,x=this;return X.prototype.offAux.call(this,g,P),"publisherStartSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(J){var ve;(null===(ve=J.stream)||void 0===ve?void 0:ve.streamManager)&&(x.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,J.stream.streamManager)||J.stream.disableHarkSpeakingEvent(!1))}),(null===(E=null===(m=this.connection)||void 0===m?void 0:m.stream)||void 0===E?void 0:E.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(J){var ve;(null===(ve=J.stream)||void 0===ve?void 0:ve.streamManager)&&(x.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,J.stream.streamManager)||J.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(ae=null===(N=this.connection)||void 0===N?void 0:N.stream)||void 0===ae?void 0:ae.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},oe.prototype.onParticipantJoined=function(g){var P=this;this.getConnection(g.id,"").then(function(x){w.warn("Connection "+x.connectionId+" already exists in connections list")}).catch(function(x){var m=new R.Connection(P,g);P.remoteConnections.set(g.id,m),P.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,P,"connectionCreated",m,"")])})},oe.prototype.onParticipantLeft=function(g){var P=this;this.getRemoteConnection(g.connectionId,"onParticipantLeft").then(function(x){if(x.stream){var m=x.stream,E=new V.StreamEvent(!0,P,"streamDestroyed",m,g.reason);P.ee.emitEvent("streamDestroyed",[E]),E.callDefaultBehavior(),P.remoteStreamsCreated.delete(m.streamId)}x.dispose(),P.remoteConnections.delete(x.connectionId),P.ee.emitEvent("connectionDestroyed",[new p.ConnectionEvent(!1,P,"connectionDestroyed",x,g.reason)])}).catch(function(x){w.error(x)})},oe.prototype.onParticipantPublished=function(g){var m,P=this,x=function(N){P.remoteConnections.set(N.connectionId,N),P.remoteStreamsCreated.get(N.stream.streamId)||P.ee.emitEvent("streamCreated",[new V.StreamEvent(!1,P,"streamCreated",N.stream,"")]),P.remoteStreamsCreated.set(N.stream.streamId,!0)};this.getRemoteConnection(g.id,"onParticipantPublished").then(function(E){m=E,g.metadata=E.data,m.remoteOptions=g,m.initRemoteStreams(g.streams),x(m)}).catch(function(E){m=new R.Connection(P,g),x(m)})},oe.prototype.onParticipantUnpublished=function(g){var P=this;g.connectionId===this.connection.connectionId?this.stopPublisherStream(g.reason):this.getRemoteConnection(g.connectionId,"onParticipantUnpublished").then(function(x){var m=new V.StreamEvent(!0,P,"streamDestroyed",x.stream,g.reason);P.ee.emitEvent("streamDestroyed",[m]),m.callDefaultBehavior(),null!=x.stream&&(P.remoteStreamsCreated.delete(x.stream.streamId),x.removeStream())}).catch(function(x){w.error(x)})},oe.prototype.onParticipantEvicted=function(g){g.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,g.reason)},oe.prototype.onNewMessage=function(g){var P=this;w.info("New signal: "+JSON.stringify(g));var x=g.type?g.type.replace(/^(signal:)/,""):void 0;g.from?this.getConnection(g.from,"Connection '"+g.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(m){P.ee.emitEvent("signal",[new te.SignalEvent(P,x,g.data,m)]),g.type&&"signal"!==g.type&&P.ee.emitEvent(g.type,[new te.SignalEvent(P,x,g.data,m)])}).catch(function(m){w.error(m)}):(this.ee.emitEvent("signal",[new te.SignalEvent(this,x,g.data,void 0)]),g.type&&"signal"!==g.type&&this.ee.emitEvent(g.type,[new te.SignalEvent(this,x,g.data,void 0)]))},oe.prototype.onStreamPropertyChanged=function(g){var P=this,x=function(E){if(E.stream&&E.stream.streamId===g.streamId){var N=E.stream,ae=void 0;switch(g.property){case"audioActive":ae=N.audioActive,g.newValue="true"===g.newValue,N.audioActive=g.newValue;break;case"videoActive":ae=N.videoActive,g.newValue="true"===g.newValue,N.videoActive=g.newValue;break;case"videoTrack":case"audioTrack":g.newValue=JSON.parse(g.newValue);break;case"videoDimensions":ae=N.videoDimensions,g.newValue=JSON.parse(JSON.parse(g.newValue)),N.videoDimensions=g.newValue;break;case"filter":ae=N.filter,g.newValue=Object.keys(g.newValue).length>0?g.newValue:void 0,void 0!==g.newValue?(N.filter=new f.Filter(g.newValue.type,g.newValue.options),N.filter.stream=N,g.newValue.lastExecMethod&&(N.filter.lastExecMethod=g.newValue.lastExecMethod)):delete N.filter,g.newValue=N.filter}P.ee.emitEvent("streamPropertyChanged",[new ie.StreamPropertyChangedEvent(P,N,g.property,g.newValue,ae,g.reason)]),N.streamManager&&N.streamManager.emitEvent("streamPropertyChanged",[new ie.StreamPropertyChangedEvent(N.streamManager,N,g.property,g.newValue,ae,g.reason)])}else w.error("No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event")};g.connectionId===this.connection.connectionId?x(this.connection):this.getRemoteConnection(g.connectionId,"onStreamPropertyChanged").then(function(m){x(m)}).catch(function(m){w.error(m)})},oe.prototype.onConnectionPropertyChanged=function(g){var P;switch(g.property){case"role":P=this.connection.role.slice(),this.connection.role=g.newValue,this.connection.localOptions.role=g.newValue;break;case"record":P=this.connection.record,g.newValue="true"===g.newValue,this.connection.record=g.newValue,this.connection.localOptions.record=g.newValue}this.ee.emitEvent("connectionPropertyChanged",[new K.ConnectionPropertyChangedEvent(this,this.connection,g.property,g.newValue,P)])},oe.prototype.onNetworkQualityLevelChangedChanged=function(g){var P=this;g.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new H.NetworkQualityLevelChangedEvent(this,g.newValue,g.oldValue,this.connection)]):this.getConnection(g.connectionId,"Connection not found for connectionId "+g.connectionId).then(function(x){P.ee.emitEvent("networkQualityLevelChanged",[new H.NetworkQualityLevelChangedEvent(P,g.newValue,g.oldValue,x)])}).catch(function(x){w.error(x)})},oe.prototype.recvIceCandidate=function(g){var x=new RTCIceCandidate({candidate:g.candidate,sdpMLineIndex:g.sdpMLineIndex,sdpMid:g.sdpMid});this.getConnection(g.senderConnectionId,"Connection not found for connectionId "+g.senderConnectionId+" owning endpoint "+g.endpointName+". Ice candidate will be ignored: "+x).then(function(m){var E=m.stream;E.getWebRtcPeer().addIceCandidate(x).catch(function(N){w.error("Error adding candidate for "+E.streamId+" stream of endpoint "+g.endpointName+": "+N)})}).catch(function(m){w.error(m)})},oe.prototype.onSessionClosed=function(g){w.info("Session closed: "+JSON.stringify(g));var P=g.sessionId;void 0!==P?this.ee.emitEvent("session-closed",[{session:P}]):w.warn("Session undefined on session closed",g)},oe.prototype.onLostConnection=function(g){w.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,g)},oe.prototype.onRecoveredConnection=function(){w.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},oe.prototype.onMediaError=function(g){w.error("Media error: "+JSON.stringify(g));var P=g.error;P?this.ee.emitEvent("error-media",[{error:P}]):w.warn("Received undefined media error:",g)},oe.prototype.onRecordingStarted=function(g){this.ee.emitEvent("recordingStarted",[new T.RecordingEvent(this,"recordingStarted",g.id,g.name)])},oe.prototype.onRecordingStopped=function(g){this.ee.emitEvent("recordingStopped",[new T.RecordingEvent(this,"recordingStopped",g.id,g.name,g.reason)])},oe.prototype.onFilterEventDispatched=function(g){var P=this,x=g.connectionId;this.getConnection(x,"No connection found for connectionId "+x).then(function(m){w.info('Filter event of type "'.concat(g.eventType,'" dispatched'));var E=m.stream;if(!E||!E.filter)return w.error('Filter event of type "'.concat(g.eventType,'" dispatched for stream ').concat(E.streamId," but there is no ").concat(E?"filter":"stream"," defined"));var N=E.filter.handlers.get(g.eventType);if(!N||"function"!=typeof N){var ae=Array.from(E.filter.handlers.keys());return w.error('Filter event of type "'.concat(g.eventType,'" not handled or not a function! Active filter events: ').concat(ae.join(",")))}N.call(P,new k.FilterEvent(E.filter,g.eventType,g.data))})},oe.prototype.onForciblyReconnectSubscriber=function(g){var P=this;return new Promise(function(x,m){P.getRemoteConnection(g.connectionId,"onForciblyReconnectSubscriber").then(function(E){if(!E.stream||E.stream.streamId!==g.streamId){var J="No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event";return w.error(J),m(J)}var N=E.stream;if(N.setupReconnectionEventEmitter(x,m)){if(null!=N.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return N.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g,m("Ongoing forced subscriber reconnection");N.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g;var ae=function(){var ke=N.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete N.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,P.onForciblyReconnectSubscriber(ke)};return N.reconnectionEventEmitter.once("success",function(){ae()}),void N.reconnectionEventEmitter.once("error",function(){ae()})}N.completeWebRtcPeerReceive(!0,!0,g.sdpOffer).then(function(){return N.finalResolveForSubscription(!0,x)}).catch(function(ve){return N.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(g.streamId,": ").concat(ve.toString()),m)})}).catch(function(E){return w.error(E),m(E)})})},oe.prototype.reconnectBrokenStreams=function(){w.info("Re-establishing media connections...");var g=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(w.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),g=!0),this.remoteConnections.forEach(function(P){P.stream&&P.stream.streamIceConnectionStateBroken()&&(w.warn("Re-establishing Subscriber "+P.stream.streamId),P.stream.initWebRtcPeerReceive(!0),g=!0)}),g||w.info("There were no media streams in need of a reconnection")},oe.prototype.onSpeechToTextMessage=function(g){return z(this,void 0,void 0,function(){var P,x;return O(this,function(m){switch(m.label){case 0:return[4,this.getConnection(g.connectionId,"No connection found for connectionId "+g.connectionId)];case 1:return P=m.sent(),x=new b.SpeechToTextEvent(this,P,g.text,g.reason.toLowerCase(),g.raw,g.lang),this.ee.emitEvent("speechToTextMessage",[x]),[2]}})})},oe.prototype.onSpeechToTextDisconnected=function(g){return z(this,void 0,void 0,function(){return O(this,function(P){return this.emitEvent("exception",[new $.ExceptionEvent(this,$.ExceptionEventName.SPEECH_TO_TEXT_DISCONNECTED,this,g.message)]),[2]})})},oe.prototype.emitEvent=function(g,P){this.ee.emitEvent(g,P)},oe.prototype.leave=function(g,P){var x=this;if(w.info("Leaving Session (forced="+(g=!!g)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||g?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(E,N){E&&w.error("leaveRoom error: ".concat(JSON.stringify(E))),x.openvidu.closeWs()}),this.stopPublisherStream(P),!this.connection.disposed){var m=new q.SessionDisconnectedEvent(this,P);this.ee.emitEvent("sessionDisconnected",[m]),m.callDefaultBehavior()}}else w.warn("You were not connected to the session "+this.sessionId);w.flush()},oe.prototype.initializeParams=function(g){return{token:g||"",session:this.sessionId,platform:C.getDescription()?C.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder(),stt:this.openvidu.getStt()}},oe.prototype.sendVideoData=function(g,P,x,m){var N,ae,E=this;if(void 0===P&&(P=1),void 0===x&&(x=!1),void 0===m&&(m=1),C.isChromeBrowser()||C.isChromeMobileBrowser()||C.isOperaBrowser()||C.isOperaMobileBrowser()||C.isEdgeBrowser()||C.isEdgeMobileBrowser()||C.isElectron()||C.isSafariBrowser()&&!C.isIonicIos()||C.isAndroidBrowser()||C.isSamsungBrowser()||C.isIonicAndroid()||C.isIOSWithSafari()){var J=function(){return z(E,void 0,void 0,function(){var De,Oe,Le;return O(this,function(Ke){switch(Ke.label){case 0:return"connected"!==(De=g.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,De.getStats()];case 1:Oe=Ke.sent(),Le=[],Oe.forEach(function(We){"frameWidth"in We&&"frameHeight"in We&&0===Le.length&&Le.push(We)}),Le.length>0&&this.openvidu.sendRequest("videoData",{height:Le[0].frameHeight,width:Le[0].frameWidth,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(We,le){We&&w.error("Error sending 'videoData' event",We)}),Ke.label=2;case 2:return[2]}})})};if(x){var ve=1;this.videoDataInterval=setInterval(function(){ve0)return!0;var N=0;if(x){var ae=x.ee.getListeners(g);P&&(ae=ae.filter(function(J){return J.once})),N=ae.length}return N>0},oe.prototype.getTokenParams=function(g){var P=g.match(/^(wss?)\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(P){var x={protocol:P[1],host:P[2],hostname:P[3],port:P[4],pathname:P[5],search:P[6],hash:P[7]},m=g.split("?"),E=decodeURI(m[1]).split("&").map(function(N){return N.split("=")}).reduce(function(N,ae){return N[ae[0]]=ae[1],N},{});return{sessionId:E.sessionId,secret:E.secret,recorder:E.recorder,stt:E.stt,webrtcStatsInterval:E.webrtcStatsInterval,sendBrowserLogs:E.sendBrowserLogs,edition:E.edition,wsUri:x.protocol+"://"+x.host+"/openvidu",httpUri:"https://"+x.host}}throw new Error('Token not valid: "'.concat(g,'"'))},oe.prototype.connectAux=function(g){var P=this;return new Promise(function(x,m){P.openvidu.startWs(function(E){if(E)return m(E);var N=P.initializeParams(g);P.openvidu.sendRequest("joinRoom",N,function(ae,J){if(ae)return m(ae);P.processJoinRoomResponse(J,g),P.connection=new R.Connection(P,J);var ve={connections:new Array,streams:new Array};return J.value.forEach(function(De){var Oe=new R.Connection(P,De);P.remoteConnections.set(Oe.connectionId,Oe),ve.connections.push(Oe),Oe.stream&&(P.remoteStreamsCreated.set(Oe.stream.streamId,!0),ve.streams.push(Oe.stream))}),P.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,P,"connectionCreated",P.connection,"")]),ve.connections.forEach(function(De){P.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,P,"connectionCreated",De,"")])}),ve.streams.forEach(function(De){P.ee.emitEvent("streamCreated",[new V.StreamEvent(!1,P,"streamCreated",De,"")])}),!!J.recordingId&&!!J.recordingName&&P.ee.emitEvent("recordingStarted",[new T.RecordingEvent(P,"recordingStarted",J.recordingId,J.recordingName)]),x()})})})},oe.prototype.stopPublisherStream=function(g){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[g]))},oe.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},oe.prototype.stringClientMetadata=function(g){return"string"!=typeof g?JSON.stringify(g):g},oe.prototype.getConnection=function(g,P){var x=this;return new Promise(function(m,E){var N=x.remoteConnections.get(g);return N?m(N):x.connection.connectionId===g?m(x.connection):E(new S.OpenViduError(S.OpenViduErrorName.GENERIC_ERROR,P))})},oe.prototype.getRemoteConnection=function(g,P){var x=this;return new Promise(function(m,E){var N=x.remoteConnections.get(g);if(N)return m(N);var ae="Remote connection "+g+" unknown when '"+P+"'. Existing remote connections: "+JSON.stringify(x.remoteConnections.keys());return E(new S.OpenViduError(S.OpenViduErrorName.GENERIC_ERROR,ae))})},oe.prototype.processToken=function(g){var P=this.getTokenParams(g);this.sessionId=P.sessionId,P.secret&&(this.openvidu.secret=P.secret),P.recorder&&(this.openvidu.recorder=!0),P.stt&&(this.openvidu.stt=!0),P.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=P.webrtcStatsInterval),P.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=P.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===P.edition||"enterprise"===P.edition,this.openvidu.isEnterprise="enterprise"===P.edition,this.openvidu.wsUri=P.wsUri,this.openvidu.httpUri=P.httpUri},oe.prototype.processJoinRoomResponse=function(g,P){if(this.sessionId=g.session,null!=g.customIceServers&&g.customIceServers.length>0){this.openvidu.iceServers=[];for(var x=0,m=g.customIceServers;x0&&C[C.length-1])&&(6===g[0]||2===g[0])){M=0;continue}if(3===g[0]&&(!C||g[1]>C[0]&&g[1]0&&(!!this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=M,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo="undefined"!=typeof MediaStreamTrack&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?te.TypeOfVideo.CUSTOM:this.isSendScreen()?te.TypeOfVideo.SCREEN:te.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var w;$.streamManager.updateMediaStream($.mediaStream),S.debug("Video srcObject ["+(null===(w=$.mediaStream)||void 0===w?void 0:w.id)+"] updated in stream ["+$.streamId+"]")})}return D.prototype.reconnect=function(){return this.reconnectStream("API")},D.prototype.applyFilter=function(y,M){var $=this;return new Promise(function(w,C){return I($,void 0,void 0,function(){var Q,X,oe,g,P,x,m=this;return z(this,function(E){if(this.filter)return[2,C(new q.OpenViduError(q.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(Q=function(ae,J){if(ae)return S.error("Error applying filter for Stream "+m.streamId,ae),C(401===ae.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):ae);S.info("Filter successfully applied on Stream "+m.streamId);var ve=m.filter;return m.filter=new O.Filter(y,M),m.filter.stream=m,J&&(m.session.emitEvent("streamPropertyChanged",[new T.StreamPropertyChangedEvent(m.session,m,"filter",m.filter,ve,"applyFilter")]),m.streamManager.emitEvent("streamPropertyChanged",[new T.StreamPropertyChangedEvent(m.streamManager,m,"filter",m.filter,ve,"applyFilter")])),w(m.filter)},y.startsWith("VB:")){if(!this.hasVideo)return[2,C(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The Virtual Background filter requires a video track to be applied"))];if(!this.mediaStream||0===this.streamManager.videos.length)return[2,C(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(X=this.session.token?this.session.token:M.token))return[2,C(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Virtual Background requires the client to be connected to a Session or to have a "token" property available in "options" parameter with a valid OpenVidu token'))];if("pro"!==(oe=this.session.getTokenParams(X)).edition&&"enterprise"!==oe.edition)return[2,C(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];X=encodeURIComponent(btoa(X)),S.info("Applying Virtual Background to stream "+this.streamId),g=function(){return I(m,void 0,void 0,function(){var ae,J,ve,ke,De,Le;return z(this,function(Ke){switch(Ke.label){case 0:return Ke.trys.push([0,8,,9]),ae=this.streamId+"_"+(0,ie.v4)(),J=this.mediaStream.clone(),(ve=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+ae,ve.srcObject=J,ve.muted=!0,this.virtualBackgroundSourceElements={videoClone:ve,mediaStreamClone:J},VirtualBackground.VirtualBackground.hideHtmlElement(ve,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(ve,ae),[4,ve.play()];case 1:switch(Ke.sent(),ke=new VirtualBackground.VirtualBackground({id:ae,openviduServerUrl:new URL(oe.httpUri),openviduToken:X,inputVideo:ve,inputResolution:"160x96",outputFramerate:24}),De=void 0,y){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,ke.backgroundBlur(M)];case 3:case 5:return De=Ke.sent(),[3,7];case 4:return[4,ke.backgroundImage(M)];case 6:throw new Error("Unknown Virtual Background filter: "+y);case 7:return this.virtualBackgroundSinkElements={VB:ke,video:De},ve.style.display="none",this.streamManager.remote?this.streamManager.replaceTrackInMediaStream(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1):this.streamManager.replaceTrackAux(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1),Q(void 0,!1),[3,9];case 8:return Le=Ke.sent(),Q(Le.name===q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Le.message):Le,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((P=document.createElement("script")).type="text/javascript",P.src=oe.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+X,P.onload=function(){return I(m,void 0,void 0,function(){var N;return z(this,function(ae){switch(ae.label){case 0:return ae.trys.push([0,2,,3]),[4,g()];case 1:return ae.sent(),w(new O.Filter(y,M)),[3,3];case 2:return N=ae.sent(),C(N),[3,3];case 3:return[2]}})})},document.body.appendChild(P)):g().then(function(){return w(new O.Filter(y,M))}).catch(function(N){return C(N)})}else{if(!this.session.sessionConnected())return[2,C(this.session.notConnectedError())];S.info("Applying server filter to stream "+this.streamId),"string"!=typeof(x=M=null!=M?M:{})&&(x=JSON.stringify(x)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:y,options:x},function(N,ae){Q(N,!0)})}return[2]})})})},D.prototype.removeFilter=function(){return I(this,void 0,void 0,function(){return z(this,function(y){switch(y.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,y.sent()]}})})},D.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},D.prototype.getMediaStream=function(){return this.mediaStream},D.prototype.removeFilterAux=function(y){var M=this;return new Promise(function($,w){return I(M,void 0,void 0,function(){var C,Q,X,g,oe=this;return z(this,function(P){switch(P.label){case 0:if(C=function(m,E){if(m)return delete oe.filter,S.error("Error removing filter for Stream "+oe.streamId,m),w(401===m.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):m);S.info("Filter successfully removed from Stream "+oe.streamId);var N=oe.filter;return delete oe.filter,E&&(oe.session.emitEvent("streamPropertyChanged",[new T.StreamPropertyChangedEvent(oe.session,oe,"filter",oe.filter,N,"applyFilter")]),oe.streamManager.emitEvent("streamPropertyChanged",[new T.StreamPropertyChangedEvent(oe.streamManager,oe,"filter",oe.filter,N,"applyFilter")])),$()},!this.filter)return[3,11];if(!(null===(g=this.filter)||void 0===g?void 0:g.type.startsWith("VB:")))return[3,9];P.label=1;case 1:return P.trys.push([1,7,,8]),Q=this.virtualBackgroundSourceElements.mediaStreamClone,y?[3,5]:this.streamManager.remote?(this.streamManager.replaceTrackInMediaStream(Q.getVideoTracks()[0],!1),[3,4]):[3,2];case 2:return[4,this.streamManager.replaceTrackAux(Q.getVideoTracks()[0],!1)];case 3:P.sent(),P.label=4;case 4:return[3,6];case 5:Q.getTracks().forEach(function(x){return x.stop()}),P.label=6;case 6:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,C(void 0,!1)];case 7:return X=P.sent(),[2,C(X,!1)];case 8:return[3,10];case 9:if(!this.session.sessionConnected())return[2,w(this.session.notConnectedError())];S.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(x,m){return C(x,!0)}),P.label=10;case 10:return[3,12];case 11:return[2,w(new q.OpenViduError(q.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 12:return[2]}})})})},D.prototype.setMediaStream=function(y){this.mediaStream=y},D.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},D.prototype.getWebRtcPeer=function(){return this.webRtcPeer},D.prototype.subscribeToMyRemote=function(y){this.isSubscribeToRemote=y},D.prototype.setOutboundStreamOptions=function(y){this.outboundStreamOpts=y},D.prototype.subscribe=function(){var y=this;return new Promise(function(M,$){y.initWebRtcPeerReceive(!1).then(function(){return M()}).catch(function(w){return $(w)})})},D.prototype.publish=function(){var y=this;return new Promise(function(M,$){y.isLocalStreamReadyToPublish?y.initWebRtcPeerSend(!1).then(function(){return M()}).catch(function(w){return $(w)}):y.ee.once("stream-ready-to-publish",function(){y.publish().then(function(){return M()}).catch(function(w){return $(w)})})})},D.prototype.disposeWebRtcPeer=function(){var y;this.webRtcPeer&&(this.webRtcPeer.dispose(),y=this.webRtcPeer.getId()),this.stopWebRtcStats(),S.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+y+"] from 'Stream' with id ["+this.streamId+"] is now closed")},D.prototype.disposeMediaStream=function(){return I(this,void 0,void 0,function(){var y;return z(this,function(M){switch(M.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];M.label=1;case 1:return M.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return M.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return y=M.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),y),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function($){$.stop()}),this.mediaStream.getVideoTracks().forEach(function($){$.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function($){$.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function($){$.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),S.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},D.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},D.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},D.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},D.prototype.isSendScreen=function(){var y="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return G.isElectron()&&(y="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&y},D.prototype.enableHarkSpeakingEvent=function(){var y=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){y.session.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(y.session,"publisherStartSpeaking",y.connection,y.streamId)]),y.streamManager.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(y.streamManager,"publisherStartSpeaking",y.connection,y.streamId)]),y.harkSpeakingEnabledOnce=!1}))},D.prototype.enableOnceHarkSpeakingEvent=function(){var y=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){y.harkSpeakingEnabledOnce&&(y.session.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(y.session,"publisherStartSpeaking",y.connection,y.streamId)]),y.streamManager.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(y.streamManager,"publisherStartSpeaking",y.connection,y.streamId)])),y.disableHarkSpeakingEvent(!0)}))},D.prototype.disableHarkSpeakingEvent=function(y){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,y){if(this.harkSpeakingEnabled)return}else this.harkSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},D.prototype.enableHarkStoppedSpeakingEvent=function(){var y=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){y.session.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(y.session,"publisherStopSpeaking",y.connection,y.streamId)]),y.streamManager.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(y.streamManager,"publisherStopSpeaking",y.connection,y.streamId)]),y.harkStoppedSpeakingEnabledOnce=!1}))},D.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var y=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){y.harkStoppedSpeakingEnabledOnce&&(y.session.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(y.session,"publisherStopSpeaking",y.connection,y.streamId)]),y.streamManager.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(y.streamManager,"publisherStopSpeaking",y.connection,y.streamId)])),y.disableHarkStoppedSpeakingEvent(!0)}))},D.prototype.disableHarkStoppedSpeakingEvent=function(y){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,y){if(this.harkStoppedSpeakingEnabled)return}else this.harkStoppedSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},D.prototype.enableHarkVolumeChangeEvent=function(y){var M=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||y)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function($){var C={newValue:$,oldValue:M.speechEvent.oldVolumeValue};M.speechEvent.oldVolumeValue=$,M.streamManager.emitEvent("streamAudioVolumeChange",[new k.StreamManagerEvent(M.streamManager,"streamAudioVolumeChange",C)])})):this.harkVolumeChangeEnabled=!0},D.prototype.enableOnceHarkVolumeChangeEvent=function(y){var M=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||y)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function($){var C={newValue:$,oldValue:M.speechEvent.oldVolumeValue};M.speechEvent.oldVolumeValue=$,M.disableHarkVolumeChangeEvent(!0),M.streamManager.emitEvent("streamAudioVolumeChange",[new k.StreamManagerEvent(M.streamManager,"streamAudioVolumeChange",C)])})):this.harkVolumeChangeEnabledOnce=!0},D.prototype.disableHarkVolumeChangeEvent=function(y){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,y){if(this.harkVolumeChangeEnabled)return}else this.harkVolumeChangeEnabled=!1;this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},D.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},D.prototype.getSelectedIceCandidate=function(){var y=this;return new Promise(function(M,$){y.webRtcStats.getSelectedIceCandidateInfo().then(function(w){return M(w)}).catch(function(w){return $(w)})})},D.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},D.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},D.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return S.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var y=this.getRTCPeerConnection().iceConnectionState;return"connected"!==y&&"completed"!==y},D.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var y=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};y.interval="number"==typeof y.interval?y.interval:100,y.threshold="number"==typeof y.threshold?y.threshold:-50,this.speechEvent=K(this.mediaStream,y)}return!0}return!1},D.prototype.setupReconnectionEventEmitter=function(y,M){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new H,!1):(console.warn("Trying to reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but an ongoing reconnection process is active. Waiting for response...")),this.reconnectionEventEmitter.once("success",function(){return y()}),this.reconnectionEventEmitter.once("error",function($){return M($)}),!0)},D.prototype.initWebRtcPeerSend=function(y){var M=this;return new Promise(function($,w){var C;if(y){if(M.setupReconnectionEventEmitter($,w))return}else M.initHarkEvents();var X=function(x){var m;return y&&(null===(m=M.reconnectionEventEmitter)||void 0===m||m.emitEvent("error",[x]),delete M.reconnectionEventEmitter),w(x)},g={mediaConstraints:{audio:M.hasAudio,video:M.hasVideo},simulcast:null!==(C=M.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==C?C:M.session.openvidu.videoSimulcast,onIceCandidate:M.connection.sendIceCandidate.bind(M.connection),onIceConnectionStateException:M.onIceConnectionStateExceptionHandler.bind(M),iceServers:M.getIceServersConf(),mediaStream:M.mediaStream,mediaServer:M.session.openvidu.mediaServer,typeOfVideo:M.typeOfVideo?te.TypeOfVideo[M.typeOfVideo]:void 0};"mediasoup"!==M.session.openvidu.mediaServer&&(g.simulcast=!1),y&&M.disposeWebRtcPeer(),M.webRtcPeer=M.displayMyRemote()?new f.WebRtcPeerSendrecv(g):new f.WebRtcPeerSendonly(g),M.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+M.connection.connectionId),M.webRtcPeer.createOffer().then(function(P){M.webRtcPeer.processLocalOffer(P).then(function(){!function(x){S.debug("Sending SDP offer to publish as "+M.streamId,x);var E,m=y?"reconnectStream":"publishVideo";if(y)E={stream:M.streamId,sdpString:x};else{var N=void 0;M.isSendVideo()&&(N="undefined"!=typeof MediaStreamTrack&&M.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?te.TypeOfVideo.CUSTOM:M.isSendScreen()?te.TypeOfVideo.SCREEN:te.TypeOfVideo.CAMERA),E={doLoopback:M.displayMyRemote()||!1,hasAudio:M.isSendAudio(),hasVideo:M.isSendVideo(),audioActive:M.audioActive,videoActive:M.videoActive,typeOfVideo:N,frameRate:M.frameRate?M.frameRate:-1,videoDimensions:JSON.stringify(M.videoDimensions),filter:M.outboundStreamOpts.publisherProperties.filter,sdpOffer:x}}M.session.openvidu.sendRequest(m,E,function(ae,J){ae?X(401===ae.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(ae)):M.webRtcPeer.processRemoteAnswer(J.sdpAnswer).then(function(){M.streamId=J.id,M.creationTime=J.createdAt,M.isLocalStreamPublished=!0,M.publishedOnce=!0,M.displayMyRemote()&&(M.localMediaStreamWhenSubscribedToRemote=M.mediaStream,M.remotePeerSuccessfullyEstablished(y)),M.ee.emitEvent(y?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),M.initWebRtcStats(),S.info("'Publisher' ("+M.streamId+") successfully "+(y?"reconnected":"published")+" to session"),function(){var x;y&&(null===(x=M.reconnectionEventEmitter)||void 0===x||x.emitEvent("success"),delete M.reconnectionEventEmitter),$()}()}).catch(function(ve){X(ve)})})}(P.sdp)}).catch(function(x){X(new Error("(publish) SDP process local offer error: "+JSON.stringify(x)))})}).catch(function(P){X(new Error("(publish) SDP create offer error: "+JSON.stringify(P)))})})},D.prototype.finalResolveForSubscription=function(y,M){var $;return S.info("'Subscriber' ("+this.streamId+") successfully "+(y?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(y),this.initWebRtcStats(),y&&(null===($=this.reconnectionEventEmitter)||void 0===$||$.emitEvent("success"),delete this.reconnectionEventEmitter),M()},D.prototype.finalRejectForSubscription=function(y,M,$){var w;return S.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(y?"reconnect":"subscribe")+": "+M.toString()),y&&(null===(w=this.reconnectionEventEmitter)||void 0===w||w.emitEvent("error",[M]),delete this.reconnectionEventEmitter),$(M)},D.prototype.initWebRtcPeerReceive=function(y){var M=this;return new Promise(function($,w){y&&M.setupReconnectionEventEmitter($,w)||("mediasoup"===M.session.openvidu.mediaServer?M.initWebRtcPeerReceiveFromServer(y).then(function(){return M.finalResolveForSubscription(y,$)}).catch(function(C){return M.finalRejectForSubscription(y,C,w)}):M.initWebRtcPeerReceiveFromClient(y).then(function(){return M.finalResolveForSubscription(y,$)}).catch(function(C){return M.finalRejectForSubscription(y,C,w)}))})},D.prototype.initWebRtcPeerReceiveFromClient=function(y){var M=this;return new Promise(function($,w){M.completeWebRtcPeerReceive(y,!1).then(function(C){M.webRtcPeer.processRemoteAnswer(C.sdpAnswer).then(function(){return $()}).catch(function(Q){return w(Q)})}).catch(function(C){return w(C)})})},D.prototype.initWebRtcPeerReceiveFromServer=function(y){var M=this;return new Promise(function($,w){M.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:M.streamId,reconnect:y},function(C,Q){if(C)return w(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(C)));M.completeWebRtcPeerReceive(y,!1,Q.sdpOffer).then(function(){return $()}).catch(function(X){return w(X)})})})},D.prototype.completeWebRtcPeerReceive=function(y,M,$){var w=this;return new Promise(function(C,Q){S.debug("'Session.subscribe(Stream)' called");var X=function(P){S.debug("Sending local SDP ".concat($?"answer":"offer"," to subscribe to ").concat(w.streamId),P);var x=y?"reconnectStream":"receiveVideoFrom",m={};m[y?"stream":"sender"]=w.streamId,$?m[y?"sdpString":"sdpAnswer"]=P:m.sdpOffer=P,y&&(m.forciblyReconnect=M),w.session.openvidu.sendRequest(x,m,function(E,N){return E?Q(new Error("Error on "+x+" : "+JSON.stringify(E))):C(N)})},oe={mediaConstraints:{audio:w.hasAudio,video:w.hasVideo},simulcast:!1,onIceCandidate:w.connection.sendIceCandidate.bind(w.connection),onIceConnectionStateException:w.onIceConnectionStateExceptionHandler.bind(w),iceServers:w.getIceServersConf(),mediaServer:w.session.openvidu.mediaServer,typeOfVideo:w.typeOfVideo?te.TypeOfVideo[w.typeOfVideo]:void 0};y&&w.disposeWebRtcPeer(),w.webRtcPeer=new f.WebRtcPeerRecvonly(oe),w.webRtcPeer.addIceConnectionStateChangeListener(w.streamId),$?w.webRtcPeer.processRemoteOffer($).then(function(){w.webRtcPeer.createAnswer().then(function(g){w.webRtcPeer.processLocalAnswer(g).then(function(){X(g.sdp)}).catch(function(P){return Q(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(P)))})}).catch(function(g){return Q(new Error("(subscribe) SDP create answer error: "+JSON.stringify(g)))})}).catch(function(g){return Q(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(g)))}):w.webRtcPeer.createOffer().then(function(g){w.webRtcPeer.processLocalOffer(g).then(function(){X(g.sdp)}).catch(function(P){return Q(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(P)))})}).catch(function(g){return Q(new Error("(subscribe) SDP create offer error: "+JSON.stringify(g)))})})},D.prototype.remotePeerSuccessfullyEstablished=function(y){y&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var M,$=0,w=this.webRtcPeer.pc.getReceivers();$0},D}();U.Stream=W},8613:function(_e,U,B){"use strict";var te,I=this&&this.__extends||(te=function(V,ie){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,H){K.__proto__=H}||function(K,H){for(var S in H)Object.prototype.hasOwnProperty.call(H,S)&&(K[S]=H[S])})(V,ie)},function(b,V){if("function"!=typeof V&&null!==V)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function ie(){this.constructor=b}te(b,V),b.prototype=null===V?Object.create(V):(ie.prototype=V.prototype,new ie)});Object.defineProperty(U,"__esModule",{value:!0}),U.StreamManager=void 0;var T,z=B(8074),O=B(4006),R=B(4281),f=B(7507),d=B(6274),L=B(6946),p=B(543),k=L.OpenViduLogger.getInstance(),q=function(te){function b(V,ie){var K=te.call(this)||this;if(K.videos=[],K.lazyLaunchVideoElementCreatedEvent=!1,T=p.PlatformUtils.getInstance(),K.stream=V,K.stream.streamManager=K,K.remote=!K.stream.isLocal(),ie){var H=void 0;"string"==typeof ie?H=document.getElementById(ie):ie instanceof HTMLElement&&(H=ie),H&&(K.firstVideoElement={targetElement:H,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(T.isSafariBrowser()||T.isIPhoneOrIPad()&&(T.isChromeMobileBrowser()||T.isEdgeMobileBrowser()||T.isOperaMobileBrowser()||T.isFirefoxMobileBrowser()))&&(K.firstVideoElement.video.playsInline=!0),K.targetElement=H,K.element=H)}return K.canPlayListener=function(){K.deactivateStreamPlayingEventExceptionTimeout(),K.ee.emitEvent("streamPlaying",[new O.StreamManagerEvent(K,"streamPlaying",void 0)])},K}return I(b,te),b.prototype.on=function(V,ie){return te.prototype.onAux.call(this,V,"Event '"+V+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",ie),"videoElementCreated"===V&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new R.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===V&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new O.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===V&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===V&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===V&&this.stream.enableHarkVolumeChangeEvent(!1)),this},b.prototype.once=function(V,ie){return te.prototype.onceAux.call(this,V,"Event '"+V+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",ie),"videoElementCreated"===V&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new R.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===V&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new O.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===V&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===V&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===V&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},b.prototype.off=function(V,ie){return te.prototype.offAux.call(this,V,ie),"publisherStartSpeaking"===V&&0===this.ee.getListeners(V).length+this.stream.session.ee.getListeners(V).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===V&&0===this.ee.getListeners(V).length+this.stream.session.ee.getListeners(V).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===V&&0===this.ee.getListeners(V).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},b.prototype.addVideoElement=function(V){this.initializeVideoProperties(V),!this.remote&&this.stream.displayMyRemote()&&V.srcObject!==this.stream.getMediaStream()&&(V.srcObject=this.stream.getMediaStream());for(var ie=0,K=this.videos;ie=0;--ie)this.stream.session.streamManagers[ie]===this&&this.stream.session.streamManagers.splice(ie,1);this.videos.forEach(function(K){!!K.video&&!!K.video.removeEventListener&&K.video.removeEventListener("canplay",V.canPlayListener),K.canplayListenerAdded=!1,K.targetElement&&(K.video.parentNode.removeChild(K.video),V.ee.emitEvent("videoElementDestroyed",[new R.VideoElementEvent(K.video,V,"videoElementDestroyed")])),V.removeSrcObject(K),V.videos.filter(function(H){return!H.targetElement})})},b.prototype.disassociateVideo=function(V){for(var ie=!1,K=0;K=0;--q)b[q].id===this.stream.streamId&&b.splice(q,1)}}},k}(z.Event);U.StreamEvent=L},4006:function(_e,U,B){"use strict";var R,I=this&&this.__extends||(R=function(d,L){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,k){p.__proto__=k}||function(p,k){for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(p[T]=k[T])})(d,L)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function L(){this.constructor=f}R(f,d),f.prototype=null===d?Object.create(d):(L.prototype=d.prototype,new L)});Object.defineProperty(U,"__esModule",{value:!0}),U.StreamManagerEvent=void 0;var O=function(R){function f(d,L,p){var k=R.call(this,!1,d,L)||this;return k.value=p,k}return I(f,R),f.prototype.callDefaultBehavior=function(){},f}(B(2345).Event);U.StreamManagerEvent=O},2798:function(_e,U,B){"use strict";var R,I=this&&this.__extends||(R=function(d,L){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,k){p.__proto__=k}||function(p,k){for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(p[T]=k[T])})(d,L)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function L(){this.constructor=f}R(f,d),f.prototype=null===d?Object.create(d):(L.prototype=d.prototype,new L)});Object.defineProperty(U,"__esModule",{value:!0}),U.StreamPropertyChangedEvent=void 0;var O=function(R){function f(d,L,p,k,T,q){var te=R.call(this,!1,d,"streamPropertyChanged")||this;return te.stream=L,te.changedProperty=p,te.newValue=k,te.oldValue=T,te.reason=q,te}return I(f,R),f.prototype.callDefaultBehavior=function(){},f}(B(2345).Event);U.StreamPropertyChangedEvent=O},5810:function(_e,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0})},4281:function(_e,U,B){"use strict";var R,I=this&&this.__extends||(R=function(d,L){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,k){p.__proto__=k}||function(p,k){for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(p[T]=k[T])})(d,L)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function L(){this.constructor=f}R(f,d),f.prototype=null===d?Object.create(d):(L.prototype=d.prototype,new L)});Object.defineProperty(U,"__esModule",{value:!0}),U.VideoElementEvent=void 0;var O=function(R){function f(d,L,p){var k=R.call(this,!1,L,p)||this;return k.element=d,k}return I(f,R),f.prototype.callDefaultBehavior=function(){},f}(B(2345).Event);U.VideoElementEvent=O},6842:function(_e){function U(){var B={};this.forEach=function(I){for(var z in B){var O=B[z];for(var R in O)I(O[R])}},this.get=function(I,z){var O=B[z];if(null!=O)return O[I]},this.remove=function(I,z){var O=B[z];if(null!=O){for(var R in delete O[I],O)return!1;delete B[z]}},this.set=function(I,z,O){if(null==I)return this.remove(z,O);var R=B[O];null==R&&(B[O]=R={}),R[z]=I}}U.prototype.pop=function(B,I){var z=this.get(B,I);if(null!=z)return this.remove(B,I),z},_e.exports=U},5150:function(_e,U,B){var I=B(245);U.JsonRpcClient=I},245:function(_e,U,B){var I=B(3031),z=B(7182),O=B(6946).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var f="RECONNECTING",d="CONNECTED",L="DISCONNECTED",p=O.getInstance();_e.exports=function k(T){var H,q=this,te=T.ws,b=-1,V=0,ie=!0,K=!1,S=L,G=te.onreconnecting,W=te.onreconnected,D=te.onconnected,y=te.onerror;T.rpc.pull=function(g,P){P.reply(null,"push")},te.onreconnecting=function(){p.debug("--------- ONRECONNECTING -----------"),S!==f?(oe(),S=f,G&&G()):p.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},te.onreconnected=function(){p.debug("--------- ONRECONNECTED -----------"),S!==d?(S=d,C(),W&&W()):p.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},te.onconnected=function(){p.debug("--------- ONCONNECTED -----------"),S!==d?(S=d,ie=!0,X(),D&&D()):p.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},te.onerror=function(g){p.debug("--------- ONERROR -----------"),S=L,oe(),y&&y(g)};var M=new z(te);p.debug("Connecting websocket to URI: "+te.uri);var w=new I(I.packers.JsonRPC,{request_timeout:T.rpc.requestTimeout,ping_request_timeout:T.rpc.heartbeatRequestTimeout},M,function(g){p.debug("Received request: "+JSON.stringify(g));try{var P=T.rpc[g.method];void 0===P?p.error("Method "+g.method+" not registered in client"):P(g.params,g)}catch(x){p.error("Exception processing request: "+JSON.stringify(g)),p.error(x)}});function C(){p.debug("notReconnectIfNumLessThan = "+V+" (old="+b+")"),b=V}function Q(){if(ie){var g=null;(0==V||V==b)&&(g={interval:T.heartbeat||5e3}),V++,q.send("ping",g,(P=V,function(x,m){x&&(p.debug("Error in ping request #"+P+" ("+x.message+")"),P>b&&(ie=!1,C(),p.debug("Server did not respond to ping message #"+P+". Reconnecting... "),M.reconnectWs()))}))}else p.debug("Trying to send ping, but ping is not enabled");var P}function X(){K||(p.debug("Starting ping (if configured)"),K=!0,null!=T.heartbeat&&(H=setInterval(Q,T.heartbeat),Q()))}function oe(){clearInterval(H),K=!1,ie=!1,V=-1,w.cancel()}this.send=function(g,P,x){var m=Date.now();w.encode(g,P,function(E,N){if(E){try{p.error("ERROR:"+E.message+" in Request: method:"+g+" params:"+JSON.stringify(P)+" request:"+E.request),E.data&&p.error("ERROR DATA:"+JSON.stringify(E.data))}catch(ae){}E.requestTime=m}x&&(null!=N&&"pong"!==N.value&&p.debug("Response: "+JSON.stringify(N)),x(E,N))})},this.close=function(g,P){p.debug("Closing with code: "+g+" because: "+P),null!=H&&(p.debug("Clearing ping interval"),clearInterval(H)),K=!1,ie=!1,M.close(g,P)},this.reconnect=function(){M.reconnectWs()},this.resetPing=function(){ie=!0,V=0,X()},this.getReadyState=function(){return M.getReadyState()}}},593:function(_e,U,B){var I=B(7182);U.WebSocketWithReconnection=I},7182:function(_e,U,B){"use strict";var z=B(6946).OpenViduLogger.getInstance();_e.exports=function k(T){var te,q=!1,b=T.uri,V=!1,ie=new WebSocket(b);ie.onopen=function(){z.debug("WebSocket connected to "+b),T.onconnected&&T.onconnected()},ie.onerror=function(W){z.error("Could not connect to "+b+" (invoking onerror if defined)",W),T.onerror&&T.onerror(W)};var K=function(){3===ie.readyState?q?z.debug("Connection closed by user"):T.ismasternodecrashed()?z.error("Master Node has crashed. Stopping reconnection process"):(z.debug("Connection closed unexpectedly. Reconnecting..."),H(2e3,1)):z.debug("Close callback from previous websocket. Ignoring it")};function H(W,D){if(z.debug("reconnect (attempt #"+D+", max="+W+")"),1===D){if(V)return void z.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");V=!0,T.onreconnecting&&T.onreconnecting()}!function G(W,D){z.debug("Reconnection attempt #"+D),ie.close(4104,"Connection closed for reconnection"),b=function S(W){var D=new URLSearchParams(new URL(W).search);return D.has("reconnect")||(W=Array.from(D).length>0?W+"&reconnect=true":W+"?reconnect=true"),W}(b),(ie=new WebSocket(b)).onopen=function(){z.debug("Reconnected to "+b+" after "+D+" attempts..."),V=!1,te(),T.onreconnected()&&T.onreconnected(),ie.onclose=K},ie.onerror=function(y){z.warn("Reconnection error: ",y),D===W?T.ondisconnect&&T.ondisconnect():setTimeout(function(){H(W,D+1)},3e3)}}(W,D)}ie.onclose=K,this.close=function(W,D){q=!0,ie.close(W,D)},this.reconnectWs=function(){z.debug("reconnectWs"),H(2e3,1)},this.send=function(W){ie.send(W)},this.addEventListener=function(W,D){(te=function(){ie.addEventListener(W,D)})()},this.getReadyState=function(){return ie.readyState}}},3031:function(_e,U,B){var I=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(b){I=!0}Function.prototype.bind||(Function.prototype.bind=function(b){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var V=Array.prototype.slice.call(arguments,1),ie=this,K=function(){},H=function(){return ie.apply(this instanceof K&&b?this:b,V.concat(Array.prototype.slice.call(arguments)))};return K.prototype=this.prototype,H.prototype=new K,H});var z=B(9069).EventEmitter,O=B(3894),R=B(8080),f=B(6842),d=5e3;function p(b){if(b){if(b instanceof Function)return{send:b};if(b.send instanceof Function)return b;if(b.postMessage instanceof Function)return b.send=b.postMessage,b;if(b.write instanceof Function)return b.send=b.write,b;if(void 0===b.onmessage&&!(b.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function k(b,V){I?(this.method=b,this.params=V):(Object.defineProperty(this,"method",{value:b,enumerable:!0}),Object.defineProperty(this,"params",{value:V,enumerable:!0}))}function T(b,V,ie,K){var H=this;if(!b)throw new SyntaxError("Packer is not defined");if(!b.pack||!b.unpack)throw new SyntaxError("Packer is invalid");var S=function L(b){if(!b)return{};for(var V in b){var ie=b[V];"string"==typeof ie&&(b[V]={response:ie})}return b}(b.responseMethods);if(V instanceof Function){if(null!=ie)throw new SyntaxError("There can't be parameters after onRequest");K=V,ie=void 0,V=void 0}if(V&&V.send instanceof Function){if(ie&&!(ie instanceof Function))throw new SyntaxError("Only a function can be after transport");K=ie,ie=V,V=void 0}if(ie instanceof Function){if(null!=K)throw new SyntaxError("There can't be parameters after onRequest");K=ie,ie=void 0}if(ie&&ie.send instanceof Function&&K&&!(K instanceof Function))throw new SyntaxError("Only a function can be after transport");V=V||{},z.call(this),K&&this.on("request",K),I?this.peerID=V.peerID:Object.defineProperty(this,"peerID",{value:V.peerID});var G=V.max_retries||0;function W(E){H.decode(E.data||E)}this.getTransport=function(){return ie},this.setTransport=function(E){ie&&(ie.removeEventListener?ie.removeEventListener("message",W):ie.removeListener&&ie.removeListener("data",W)),E&&(E.addEventListener?E.addEventListener("message",W):E.addListener&&E.addListener("data",W)),ie=p(E)},I||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(ie);var D=V.request_timeout||d,y=V.ping_request_timeout||D,M=V.response_timeout||d,$=V.duplicates_timeout||d,w=0,C=new f,Q=new f,X=new f,oe={};function P(E,N){var ae=setTimeout(function(){X.remove(E,N)},$);X.set(ae,E,N)}function x(E,N,ae,J,ve){k.call(this,E,N),this.getTransport=function(){return ve},this.setTransport=function(Oe){ve=p(Oe)},I||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var ke=Q.get(ae,J);ve||H.getTransport()||(I?this.duplicated=Boolean(ke):Object.defineProperty(this,"duplicated",{value:Boolean(ke)}));var De=S[E];this.pack=b.pack.bind(b,this,ae),this.reply=function(Oe,Le,Ke){if(Oe instanceof Function||Oe&&Oe.send instanceof Function){if(null!=Le)throw new SyntaxError("There can't be parameters after callback");Ke=Oe,Le=null,Oe=void 0}else if(Le instanceof Function||Le&&Le.send instanceof Function){if(null!=Ke)throw new SyntaxError("There can't be parameters after callback");Ke=Le,Le=null}var We;return Ke=p(Ke),ke&&clearTimeout(ke.timeout),null!=J&&(Oe&&(Oe.dest=J),Le&&(Le.dest=J)),Oe||null!=Le?(null!=H.peerID&&(Oe?Oe.from=H.peerID:Le.from=H.peerID),We=b.pack(We=De?null==De.error&&Oe?{error:Oe}:{method:Oe?De.error:De.response,params:Oe||Le}:{error:Oe,result:Le},ae)):We=ke?ke.message:b.pack({result:null},ae),function g(E,N,ae){var J={message:E,timeout:setTimeout(function(){Q.remove(N,ae)},M)};Q.set(J,N,ae)}(We,ae,J),(Ke=Ke||this.getTransport()||H.getTransport())?Ke.send(We):We}}function m(E){var N=oe[E];if(N){delete oe[E];var ae=C.pop(N.id,N.dest);!ae||(clearTimeout(ae.timeout),P(N.id,N.dest))}}O(x,k),this.cancel=function(E){if(E)return m(E);for(var E in oe)m(E)},this.close=function(){var E=this.getTransport();E&&E.close&&E.close(4003,"Cancel request"),this.cancel(),X.forEach(clearTimeout),Q.forEach(function(N){clearTimeout(N.timeout)})},this.encode=function(E,N,ae,J,ve){if(N instanceof Function){if(null!=ae)throw new SyntaxError("There can't be parameters after callback");ve=N,J=void 0,ae=void 0,N=void 0}else if(ae instanceof Function){if(null!=J)throw new SyntaxError("There can't be parameters after callback");ve=ae,J=void 0,ae=void 0}else if(J instanceof Function){if(null!=ve)throw new SyntaxError("There can't be parameters after callback");ve=J,J=void 0}null!=H.peerID&&((N=N||{}).from=H.peerID),null!=ae&&((N=N||{}).dest=ae);var ke={method:E,params:N};if(ve){var De=function(se,he){H.cancel(ke),ve(se,he)},Oe=function(se){return lt.timeout=setTimeout(Ke,("ping"===E?y:D)*Math.pow(2,le++)),oe[ke]={id:We,dest:ae},C.set(lt,We,ae),(se=se||Ve||H.getTransport())?se.send(ke):ke},Le=function(se){se=p(se),console.warn(le+" retry for request message:",ke);var he=X.pop(We,ae);return clearTimeout(he),Oe(se)},Ke=function(){if(lep.instance.MAX_LENGTH_STRING_JSON&&(K="".concat(K.substring(0,p.instance.MAX_LENGTH_STRING_JSON),"...")),globalThis.LOG_JSNLOG_RESULTS&&console.log(K),K},enabled:!0}),(0,I.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=T,this.instance.info("JSNLog configured.")}}catch(b){console.error("Error configuring JSNLog: "),console.error(b),this.instance.disableLogger()}},f.getInstance=function(){return f.instance||(f.instance=new f),f.instance},f.isInvalidResponse=function(d){return 401==d.status||403==d.status||404==d.status||0==d.status},f.prototype.canConfigureJSNLog=function(d,L){return d.session.sessionId!=L.loggingSessionId},f.prototype.isOpenViduBrowserLogsDebugActive=function(d){return d.sendBrowserLogs===O.OpenViduLoggerConfiguration.debug||d.sendBrowserLogs===O.OpenViduLoggerConfiguration.debug_app},f.prototype.getConsoleWithJSNLog=function(){return d=this,{log:function(){for(var p=[],k=0;k1920?globalThis.screen.width:1920,maxHeight:globalThis.screen.height>1080?globalThis.screen.height:1080},optional:[]}};return L&&(p.audio={mandatory:{chromeMediaSource:f?"screen":"desktop"},optional:[]}),d&&(p.video.mandatory.chromeMediaSourceId=d,p.audio&&p.audio.mandatory&&(p.audio.mandatory.chromeMediaSourceId=d)),p}function I(f){z?z.isLoaded?z.contentWindow.postMessage(f?f.forEach?{captureCustomSourceId:f}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){I(f)},100):O(function(){I(f)})}var z;function O(f){z?f():((z=document.createElement("iframe")).onload=function(){z.isLoaded=!0,f()},z.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",z.style.display="none",(document.body||document.documentElement).appendChild(z))}function R(){z?z.isLoaded?z.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(R,100):O(R)}globalThis.getScreenId=function(f,d,L){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?d(null,"firefox",{video:{mozMediaSource:f,mediaSource:f}}):(globalThis.addEventListener("message",function p(k){!k.data||(k.data.chromeMediaSourceId&&("PermissionDeniedError"===k.data.chromeMediaSourceId?d("permission-denied"):d(null,k.data.chromeMediaSourceId,B(null,k.data.chromeMediaSourceId,k.data.canRequestAudioTrack)),globalThis.removeEventListener("message",p)),k.data.chromeExtensionStatus&&(d(k.data.chromeExtensionStatus,null,B(k.data.chromeExtensionStatus)),globalThis.removeEventListener("message",p)))}),setTimeout(L?function(){I(L)}:I,100)):d({video:!0})},globalThis.getScreenConstraints=function(f){O(function(){getScreenId(function(d,L,p){p||(p={video:!0}),f(d,p.video)})})},globalThis.getChromeExtensionStatus=function(f){navigator.mozGetUserMedia?f("installed-enabled"):(globalThis.addEventListener("message",function d(L){!L.data||L.data.chromeExtensionStatus&&(f(L.data.chromeExtensionStatus),globalThis.removeEventListener("message",d))}),setTimeout(R,100))},U.getScreenId=globalThis.getScreenId},4627:function(_e,U){var I,z,B="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var O=void 0!==window.InstallTrigger;!!window.opera||navigator.userAgent.indexOf(" OPR/");window,window.addEventListener("message",function(V){V.origin==window.location.origin&&function d(V){if("PermissionDeniedError"==V){if(z)return z("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==V&&(B="desktop"),V.sourceId&&z&&z(I=V.sourceId,!0===V.canRequestAudioTrack)}(V.data)})}function p(V){if(!V)throw'"callback" parameter is mandatory.';if(I)return V(I);z=V,window.postMessage("get-sourceId","*")}function b(V,ie){if(I="",O)return V(null,{mozMediaSource:"window",mediaSource:"window"});var H={mandatory:{chromeMediaSource:B,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=B||I?("desktop"==B&&(H.mandatory.chromeMediaSourceId=I),V(null,H)):ie?function T(V){if(!V)throw'"callback" parameter is mandatory.';if(I)return V(I);z=V,window.postMessage("audio-plus-tab","*")}(function(S,G){H.mandatory.chromeMediaSourceId=S,G&&(H.canRequestAudioTrack=!0),V("PermissionDeniedError"==S?S:null,H)}):p(function(S){H.mandatory.chromeMediaSourceId=S,V("PermissionDeniedError"==S?S:null,H)})}U.getScreenConstraints=b,U.getScreenConstraintsWithAudio=function te(V){b(V,!0)},U.isChromeExtensionAvailable=function L(V){if(V){if("desktop"==B)return V(!0);window.postMessage("are-you-there","*"),setTimeout(function(){V("screen"!=B)},2e3)}},U.getChromeExtensionStatus=function q(V,ie){if(O)return ie("not-chrome");2!=arguments.length&&(ie=V,V="lfcgfepafnobdloecchnfaclibenjold");var K=document.createElement("img");K.src="chrome-extension://"+V+"/icon.png",K.onload=function(){B="screen",window.postMessage("are-you-there","*"),setTimeout(function(){ie("screen"==B?"installed-disabled":"installed-enabled")},2e3)},K.onerror=function(){ie("not-installed")}},U.getSourceId=p},543:function(_e,U,B){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.PlatformUtils=void 0;var I=B(2437),z=function(){function O(){}return O.getInstance=function(){return this.instance||(this.instance=new O),O.instance},O.prototype.isChromeBrowser=function(){return"Chrome"===I.name},O.prototype.isSafariBrowser=function(){return"Safari"===I.name},O.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===I.name},O.prototype.isFirefoxBrowser=function(){return"Firefox"===I.name},O.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===I.name||"Firefox for iOS"===I.name},O.prototype.isOperaBrowser=function(){return"Opera"===I.name},O.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===I.name},O.prototype.isEdgeBrowser=function(){var R=(null==I?void 0:I.version)?parseFloat(I.version):-1;return"Microsoft Edge"===I.name&&R>=80},O.prototype.isEdgeMobileBrowser=function(){var R,f,d=(null==I?void 0:I.version)?parseFloat(I.version):-1;return"Microsoft Edge"===I.name&&("Android"===(null===(R=I.os)||void 0===R?void 0:R.family)||"iOS"===(null===(f=I.os)||void 0===f?void 0:f.family))&&d>45},O.prototype.isAndroidBrowser=function(){return"Android Browser"===I.name},O.prototype.isElectron=function(){return"Electron"===I.name},O.prototype.isNodeJs=function(){return"Node.js"===I.name},O.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===I.name||"Samsung Internet"===I.name},O.prototype.isIPhoneOrIPad=function(){var R=I.ua?I.ua:navigator.userAgent,f="ontouchend"in document,d=/\b(\w*Macintosh\w*)\b/.test(R)&&f,L=/\b(\w*iPhone\w*)\b/.test(R)&&/\b(\w*Mobile\w*)\b/.test(R)&&f;return d||L},O.prototype.isIOSWithSafari=function(){var R=I.ua?I.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(R)&&!/\b(\w*CriOS\w*)\b/.test(R)&&!/\b(\w*FxiOS\w*)\b/.test(R)},O.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===I.ua.indexOf("Safari")},O.prototype.isIonicAndroid=function(){return"Android"===I.os.family&&"Android Browser"==I.name},O.prototype.isMobileDevice=function(){return"iOS"===I.os.family||"Android"===I.os.family},O.prototype.isReactNative=function(){return!1},O.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},O.prototype.canScreenShare=function(){var R=(null==I?void 0:I.version)?parseFloat(I.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&R>=13)},O.prototype.getName=function(){return I.name||""},O.prototype.getVersion=function(){return I.version||""},O.prototype.getFamily=function(){return I.os.family||""},O.prototype.getDescription=function(){return I.description||""},O}();U.PlatformUtils=z},4641:function(_e,U,B){"use strict";var K,I=this&&this.__extends||(K=function(S,G){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,D){W.__proto__=D}||function(W,D){for(var y in D)Object.prototype.hasOwnProperty.call(D,y)&&(W[y]=D[y])})(S,G)},function(H,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function G(){this.constructor=H}K(H,S),H.prototype=null===S?Object.create(S):(G.prototype=S.prototype,new G)}),z=this&&this.__assign||function(){return z=Object.assign||function(K){for(var H,S=1,G=arguments.length;S0&&D[D.length-1])&&(6===w[0]||2===w[0])){S=0;continue}if(3===w[0]&&(!D||w[1]>D[0]&&w[1]0?H.iceServers:f(),mediaStream:void 0!==H.mediaStream?H.mediaStream:null,mode:H.mode?H.mode:"sendrecv",id:H.id?H.id:this.generateUniqueId()}),T.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(G){if(null!==G.candidate){var D=new RTCIceCandidate(G.candidate);S.configuration.onIceCandidate(D),""!==D.candidate&&S.localCandidatesQueue.push(D)}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===S.pc.signalingState)for(;S.iceCandidateList.length>0;){var G=S.iceCandidateList.shift();S.pc.addIceCandidate(G)}})}return K.prototype.getId=function(){return this.configuration.id},K.prototype.dispose=function(){if(T.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},K.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var G={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return T.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(G)),this.pc.createOffer(G)},K.prototype.createOffer=function(){var H,S,G,W,D,y,M,$;return O(this,void 0,void 0,function(){var w,C,Q,X,oe,g,P,x,m,E,N,ae,J,ve,ke,De,Oe,Le,Ke,We,le,lt,Ve;return R(this,function(pt){switch(pt.label){case 0:if(!("addTransceiver"in this.pc))return T.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(T.debug("[createOffer] Method RTCPeerConnection.addTransceiver() is available; using it"),"recvonly"===this.configuration.mode)return[3,7];if(!this.configuration.mediaStream)throw new Error("[WebRtcPeer.createOffer] Direction is '".concat(this.configuration.mode,"', but no stream was configured to be sent"));w=0,C=this.configuration.mediaStream.getTracks(),pt.label=1;case 1:if(!(w=518400?3:m>=129600?2:1,X.sendEncodings=[],N=0;N0&&b[b.length-1])&&(6===H[0]||2===H[0])){T=0;continue}if(3===H[0]&&(!b||H[1]>b[0]&&H[1]=0||N.candidate.indexOf(w.address)>=0)&&N.candidate.indexOf(w.port)>=0}),w.raw=[],C=0,Q=g;C=0||N.candidate.indexOf(X.address)>=0)&&N.candidate.indexOf(X.port)>=0}),X.raw=[],P=0,x=g;P-1&&(D="video"),null!=$&&null!=D&&null!=w&&null!=V[$][D]?V[$][D][w]=Number(W[w]):null!=$&&null!=w&&K.includes(w)&&(V[$][w]=Number(W[w])))};switch(W.type){case"outbound-rtp":y("outbound","bytesSent"),y("outbound","packetsSent"),y("outbound","framesEncoded"),y("outbound","nackCount"),y("outbound","firCount"),y("outbound","pliCount"),y("outbound","qpSum");break;case"inbound-rtp":y("inbound","bytesReceived"),y("inbound","packetsReceived"),y("inbound","packetsLost"),y("inbound","jitter"),y("inbound","framesDecoded"),y("inbound","nackCount"),y("inbound","firCount"),y("inbound","pliCount");break;case"track":y("inbound","jitterBufferDelay"),y("inbound","framesReceived"),y("outbound","framesDropped"),y("outbound","framesSent"),y(S.stream.isLocal()?"outbound":"inbound","frameHeight"),y(S.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":y("candidatepair","currentRoundTripTime"),y("candidatepair","availableOutgoingBitrate")}}),(!(null==V?void 0:V.candidatepair)||0===Object.keys(V.candidatepair).length)&&delete V.candidatepair,[2,q(V)];case 2:return H=G.sent(),f.error("Error getting common stats: ",H),[2,te(H)];case 3:return[2]}})})})]})})},p.prototype.generateJSONStatsResponse=function(k){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:d.getName(),platform_description:d.getDescription(),stream:"webRTC",webrtc_stats:k}},p.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},p}();U.WebRtcStats=L},5039:function(_e,U,B){"use strict";var I=this&&this.__createBinding||(Object.create?function(m,E,N,ae){void 0===ae&&(ae=N),Object.defineProperty(m,ae,{enumerable:!0,get:function(){return E[N]}})}:function(m,E,N,ae){void 0===ae&&(ae=N),m[ae]=E[N]}),z=this&&this.__exportStar||function(m,E){for(var N in m)"default"!==N&&!Object.prototype.hasOwnProperty.call(E,N)&&I(E,m,N)};Object.defineProperty(U,"__esModule",{value:!0}),U.EventDispatcher=U.ExceptionEventName=U.ExceptionEvent=U.SpeechToTextEvent=U.NetworkQualityLevelChangedEvent=U.FilterEvent=U.ConnectionPropertyChangedEvent=U.StreamPropertyChangedEvent=U.VideoElementEvent=U.StreamManagerEvent=U.StreamEvent=U.SignalEvent=U.SessionDisconnectedEvent=U.RecordingEvent=U.PublisherSpeakingEvent=U.ConnectionEvent=U.Event=U.VideoInsertMode=U.TypeOfVideo=U.OpenViduErrorName=U.OpenViduError=U.LocalRecorderState=U.Filter=U.LocalRecorder=U.Connection=U.Stream=U.StreamManager=U.Subscriber=U.Publisher=U.Session=U.OpenVidu=void 0;var O=B(8659),R=B(763);Object.defineProperty(U,"OpenVidu",{enumerable:!0,get:function(){return R.OpenVidu}});var f=B(8402);Object.defineProperty(U,"Session",{enumerable:!0,get:function(){return f.Session}});var d=B(4259);Object.defineProperty(U,"Publisher",{enumerable:!0,get:function(){return d.Publisher}});var L=B(1758);Object.defineProperty(U,"Subscriber",{enumerable:!0,get:function(){return L.Subscriber}});var p=B(8613);Object.defineProperty(U,"StreamManager",{enumerable:!0,get:function(){return p.StreamManager}});var k=B(2096);Object.defineProperty(U,"Stream",{enumerable:!0,get:function(){return k.Stream}});var T=B(7490);Object.defineProperty(U,"Connection",{enumerable:!0,get:function(){return T.Connection}});var q=B(4289);Object.defineProperty(U,"LocalRecorder",{enumerable:!0,get:function(){return q.LocalRecorder}});var te=B(4540);Object.defineProperty(U,"Filter",{enumerable:!0,get:function(){return te.Filter}});var b=B(5156);Object.defineProperty(U,"LocalRecorderState",{enumerable:!0,get:function(){return b.LocalRecorderState}});var V=B(4103);Object.defineProperty(U,"OpenViduError",{enumerable:!0,get:function(){return V.OpenViduError}}),Object.defineProperty(U,"OpenViduErrorName",{enumerable:!0,get:function(){return V.OpenViduErrorName}});var ie=B(5913);Object.defineProperty(U,"TypeOfVideo",{enumerable:!0,get:function(){return ie.TypeOfVideo}});var K=B(6274);Object.defineProperty(U,"VideoInsertMode",{enumerable:!0,get:function(){return K.VideoInsertMode}});var H=B(2345);Object.defineProperty(U,"Event",{enumerable:!0,get:function(){return H.Event}});var S=B(8702);Object.defineProperty(U,"ConnectionEvent",{enumerable:!0,get:function(){return S.ConnectionEvent}});var G=B(805);Object.defineProperty(U,"PublisherSpeakingEvent",{enumerable:!0,get:function(){return G.PublisherSpeakingEvent}});var W=B(7936);Object.defineProperty(U,"RecordingEvent",{enumerable:!0,get:function(){return W.RecordingEvent}});var D=B(1018);Object.defineProperty(U,"SessionDisconnectedEvent",{enumerable:!0,get:function(){return D.SessionDisconnectedEvent}});var y=B(5785);Object.defineProperty(U,"SignalEvent",{enumerable:!0,get:function(){return y.SignalEvent}});var M=B(2299);Object.defineProperty(U,"StreamEvent",{enumerable:!0,get:function(){return M.StreamEvent}});var $=B(4006);Object.defineProperty(U,"StreamManagerEvent",{enumerable:!0,get:function(){return $.StreamManagerEvent}});var w=B(4281);Object.defineProperty(U,"VideoElementEvent",{enumerable:!0,get:function(){return w.VideoElementEvent}});var C=B(2798);Object.defineProperty(U,"StreamPropertyChangedEvent",{enumerable:!0,get:function(){return C.StreamPropertyChangedEvent}});var Q=B(865);Object.defineProperty(U,"ConnectionPropertyChangedEvent",{enumerable:!0,get:function(){return Q.ConnectionPropertyChangedEvent}});var X=B(2156);Object.defineProperty(U,"FilterEvent",{enumerable:!0,get:function(){return X.FilterEvent}});var oe=B(6237);Object.defineProperty(U,"NetworkQualityLevelChangedEvent",{enumerable:!0,get:function(){return oe.NetworkQualityLevelChangedEvent}});var g=B(6282);Object.defineProperty(U,"SpeechToTextEvent",{enumerable:!0,get:function(){return g.SpeechToTextEvent}});var P=B(7507);Object.defineProperty(U,"ExceptionEvent",{enumerable:!0,get:function(){return P.ExceptionEvent}}),Object.defineProperty(U,"ExceptionEventName",{enumerable:!0,get:function(){return P.ExceptionEventName}});var x=B(8074);Object.defineProperty(U,"EventDispatcher",{enumerable:!0,get:function(){return x.EventDispatcher}}),z(B(5810),U),O.JL.setOptions({enabled:!1})},835:function(_e){"use strict";function U(){this._types=Object.create(null),this._extensions=Object.create(null);for(var B=0;Bf)throw new TypeError("version is longer than ".concat(f," characters"));O("SemVer",ie,K),this.options=K,this.loose=!!K.loose,this.includePrerelease=!!K.includePrerelease;var H=ie.trim().match(K.loose?p[k.LOOSE]:p[k.FULL]);if(!H)throw new TypeError("Invalid Version: ".concat(ie));if(this.raw=ie,this.major=+H[1],this.minor=+H[2],this.patch=+H[3],this.major>d||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=H[4]?H[4].split(".").map(function(S){if(/^[0-9]+$/.test(S)){var G=+S;if(G>=0&&G=0;)"number"==typeof this.prerelease[S]&&(this.prerelease[S]++,S=-2);-1===S&&this.prerelease.push(0)}H&&(0===te(this.prerelease[0],H)?isNaN(this.prerelease[1])&&(this.prerelease=[H,0]):this.prerelease=[H,0]);break;default:throw new Error("invalid increment argument: ".concat(K))}return this.format(),this.raw=this.version,this}}]),V}()},4778:function(_e,U,B){var I=B(2463);_e.exports=function(R,f){return new I(R,f).major}},3042:function(_e,U,B){var I=B(2463);_e.exports=function(R,f){return new I(R,f).minor}},3054:function(_e){_e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},8977:function(_e){var U="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var B,I=arguments.length,z=new Array(I),O=0;O)?=?)"),p("XRANGEIDENTIFIERLOOSE","".concat(f[d.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),p("XRANGEIDENTIFIER","".concat(f[d.NUMERICIDENTIFIER],"|x|X|\\*")),p("XRANGEPLAIN","[v=\\s]*(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:".concat(f[d.PRERELEASE],")?").concat(f[d.BUILD],"?")+")?)?"),p("XRANGEPLAINLOOSE","[v=\\s]*(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(f[d.PRERELEASELOOSE],")?").concat(f[d.BUILD],"?")+")?)?"),p("XRANGE","^".concat(f[d.GTLT],"\\s*").concat(f[d.XRANGEPLAIN],"$")),p("XRANGELOOSE","^".concat(f[d.GTLT],"\\s*").concat(f[d.XRANGEPLAINLOOSE],"$")),p("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(z,"})")+"(?:\\.(\\d{1,".concat(z,"}))?")+"(?:\\.(\\d{1,".concat(z,"}))?")+"(?:$|[^\\d])"),p("COERCERTL",f[d.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM","(\\s*)".concat(f[d.LONETILDE],"\\s+"),!0),U.tildeTrimReplace="$1~",p("TILDE","^".concat(f[d.LONETILDE]).concat(f[d.XRANGEPLAIN],"$")),p("TILDELOOSE","^".concat(f[d.LONETILDE]).concat(f[d.XRANGEPLAINLOOSE],"$")),p("LONECARET","(?:\\^)"),p("CARETTRIM","(\\s*)".concat(f[d.LONECARET],"\\s+"),!0),U.caretTrimReplace="$1^",p("CARET","^".concat(f[d.LONECARET]).concat(f[d.XRANGEPLAIN],"$")),p("CARETLOOSE","^".concat(f[d.LONECARET]).concat(f[d.XRANGEPLAINLOOSE],"$")),p("COMPARATORLOOSE","^".concat(f[d.GTLT],"\\s*(").concat(f[d.LOOSEPLAIN],")$|^$")),p("COMPARATOR","^".concat(f[d.GTLT],"\\s*(").concat(f[d.FULLPLAIN],")$|^$")),p("COMPARATORTRIM","(\\s*)".concat(f[d.GTLT],"\\s*(").concat(f[d.LOOSEPLAIN],"|").concat(f[d.XRANGEPLAIN],")"),!0),U.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE","^\\s*(".concat(f[d.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(f[d.XRANGEPLAIN],")")+"\\s*$"),p("HYPHENRANGELOOSE","^\\s*(".concat(f[d.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(f[d.XRANGEPLAINLOOSE],")")+"\\s*$"),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2437:function(_e,U,B){var I;_e=B.nmd(_e),function(){"use strict";var z={function:!0,object:!0},O=z[typeof window]&&window||this,L=z[typeof U]&&U&&z.object&&_e&&!_e.nodeType&&_e&&"object"==typeof global&&global;L&&(L.global===L||L.window===L||L.self===L)&&(O=L);var p=Math.pow(2,53)-1,k=/\bOpera/,q=Object.prototype,te=q.hasOwnProperty,b=q.toString;function V(C){return(C=String(C)).charAt(0).toUpperCase()+C.slice(1)}function H(C){return C=M(C),/^(?:webOS|i(?:OS|P))/.test(C)?C:V(C)}function S(C,Q){for(var X in C)te.call(C,X)&&Q(C[X],X,C)}function G(C){return null==C?V(C):b.call(C).slice(8,-1)}function D(C){return String(C).replace(/([ -])(?!$)/g,"$1?")}function y(C,Q){var X=null;return function K(C,Q){var X=-1,oe=C?C.length:0;if("number"==typeof oe&&oe>-1&&oe<=p)for(;++X3?"WebKit":/\bOpera\b/.test(re)&&(/\bOPR\b/.test(C)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(fe)&&"WebKit"||!fe&&/\bMSIE\b/i.test(C)&&("Mac OS"==xe?"Tasman":"Trident")||"WebKit"==fe&&/\bPlayStation\b(?! Vita\b)/i.test(re)&&"NetFront")&&(fe=[le]),"IE"==re&&(le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(re+=" Mobile",xe="Windows Phone "+(/\+$/.test(le)?le:le+".x"),Ve.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(re="IE Mobile",xe="Windows Phone 8.x",Ve.unshift("desktop mode"),he||(he=(/\brv:([\d.]+)/.exec(C)||0)[1])):"IE"!=re&&"Trident"==fe&&(le=/\brv:([\d.]+)/.exec(C))&&(re&&Ve.push("identifying as "+re+(he?" "+he:"")),re="IE",he=le[1]),se){if(function W(C,Q){var X=null!=C?typeof C[Q]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(X)||"object"==X&&!C[Q])}(Q,"global"))if(ve&&(lt=(le=ve.lang.System).getProperty("os.arch"),xe=xe||le.getProperty("os.name")+" "+le.getProperty("os.version")),ke){try{he=Q.require("ringo/engine").version.join("."),re="RingoJS"}catch(un){(le=Q.system)&&le.global.system==Q.system&&(re="Narwhal",xe||(xe=le[0].os||null))}re||(re="Rhino")}else"object"==typeof Q.process&&!Q.process.browser&&(le=Q.process)&&("object"==typeof le.versions&&("string"==typeof le.versions.electron?(Ve.push("Node "+le.versions.node),re="Electron",he=le.versions.electron):"string"==typeof le.versions.nw&&(Ve.push("Chromium "+he,"Node "+le.versions.node),re="NW.js",he=le.versions.nw)),re||(re="Node.js",lt=le.arch,xe=le.platform,he=(he=/[\d.]+/.exec(le.version))?he[0]:null));else G(le=Q.runtime)==E?(re="Adobe AIR",xe=le.flash.system.Capabilities.os):G(le=Q.phantom)==J?(re="PhantomJS",he=(le=le.version||null)&&le.major+"."+le.minor+"."+le.patch):"number"==typeof Le.documentMode&&(le=/\bTrident\/(\d+)/i.exec(C))?((le=+le[1]+4)!=(he=[he,Le.documentMode])[1]&&(Ve.push("IE "+he[1]+" mode"),fe&&(fe[1]=""),he[1]=le),he="IE"==re?String(he[1].toFixed(1)):he[0]):"number"==typeof Le.documentMode&&/^(?:Chrome|Firefox)\b/.test(re)&&(Ve.push("masking as "+re+" "+he),re="IE",he="11.0",fe=["Trident"],xe="Windows");xe=xe&&H(xe)}if(he&&(le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(he)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(se&&oe.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(pt=/b/i.test(le)?"beta":"alpha",he=he.replace(RegExp(le+"\\+?$"),"")+("beta"==pt?Oe:De)+(/\d+\+?/.exec(le)||"")),"Fennec"==re||"Firefox"==re&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(xe))re="Firefox Mobile";else if("Maxthon"==re&&he)he=he.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(pe))"Xbox 360"==pe&&(xe=null),"Xbox 360"==pe&&/\bIEMobile\b/.test(C)&&Ve.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(re)&&(!re||pe||/Browser|Mobi/.test(re))||"Windows CE"!=xe&&!/Mobi/i.test(C))if("IE"==re&&se)try{null===Q.external&&Ve.unshift("platform preview")}catch(un){Ve.unshift("embedded")}else(/\bBlackBerry\b/.test(pe)||/\bBB10\b/.test(C))&&(le=(RegExp(pe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||he)?(xe=((le=[le,/BB10/.test(C)])[1]?(pe=null,Ce="BlackBerry"):"Device Software")+" "+le[0],he=null):this!=S&&"Wii"!=pe&&(se&&Ke||/Opera/.test(re)&&/\b(?:MSIE|Firefox)\b/i.test(C)||"Firefox"==re&&/\bOS X (?:\d+\.){2,}/.test(xe)||"IE"==re&&(xe&&!/^Win/.test(xe)&&he>5.5||/\bWindows XP\b/.test(xe)&&he>8||8==he&&!/\bTrident\b/.test(C)))&&!k.test(le=$.call(S,C.replace(k,"")+";"))&&le.name&&(le="ing as "+le.name+((le=le.version)?" "+le:""),k.test(re)?(/\bIE\b/.test(le)&&"Mac OS"==xe&&(xe=null),le="identify"+le):(le="mask"+le,re=We?H(We.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(le)&&(xe=null),se||(he=null)),fe=["Presto"],Ve.push(le));else re+=" Mobile";(le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(le=[parseFloat(le.replace(/\.(\d)$/,".0$1")),le],"Safari"==re&&"+"==le[1].slice(-1)?(re="WebKit Nightly",pt="alpha",he=le[1].slice(0,-1)):(he==le[1]||he==(le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&(he=null),le[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(C)||0)[1],537.36==le[0]&&537.36==le[2]&&parseFloat(le[1])>=28&&"WebKit"==fe&&(fe=["Blink"]),se&&(x||le[1])?(fe&&(fe[1]="like Chrome"),le=le[1]||((le=le[0])<530?1:le<532?2:le<532.05?3:le<533?4:le<534.03?5:le<534.07?6:le<534.1?7:le<534.13?8:le<534.16?9:le<534.24?10:le<534.3?11:le<535.01?12:le<535.02?"13+":le<535.07?15:le<535.11?16:le<535.19?17:le<536.05?18:le<536.1?19:le<537.01?20:le<537.11?"21+":le<537.13?23:le<537.18?24:le<537.24?25:le<537.36?26:"Blink"!=fe?"27":"28")):(fe&&(fe[1]="like Safari"),le=(le=le[0])<400?1:le<500?2:le<526?3:le<533?4:le<534?"4+":le<535?5:le<537?6:le<538?7:le<601?8:le<602?9:le<604?10:le<606?11:le<608?12:"12"),fe&&(fe[1]+=" "+(le+="number"==typeof le?".x":/[.+]/.test(le)?"":"+")),"Safari"==re&&(!he||parseInt(he)>45)?he=le:"Chrome"==re&&/\bHeadlessChrome/i.test(C)&&Ve.unshift("headless")),"Opera"==re&&(le=/\bzbov|zvav$/.exec(xe))?(re+=" ",Ve.unshift("desktop mode"),"zvav"==le?(re+="Mini",he=null):re+="Mobile",xe=xe.replace(RegExp(" *"+le+"$"),"")):"Safari"==re&&/\bChrome\b/.exec(fe&&fe[1])?(Ve.unshift("desktop mode"),re="Chrome Mobile",he=null,/\bOS X\b/.test(xe)?(Ce="Apple",xe="iOS 4.3+"):xe=null):/\bSRWare Iron\b/.test(re)&&!he&&(he=ct("Chrome")),he&&0==he.indexOf(le=/[\d.]+$/.exec(xe))&&C.indexOf("/"+le+"-")>-1&&(xe=M(xe.replace(le,""))),xe&&-1!=xe.indexOf(re)&&!RegExp(re+" OS").test(xe)&&(xe=xe.replace(RegExp(" *"+D(re)+" *"),"")),fe&&!/\b(?:Avant|Nook)\b/.test(re)&&(/Browser|Lunascape|Maxthon/.test(re)||"Safari"!=re&&/^iOS/.test(xe)&&/\bSafari\b/.test(fe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(re)&&fe[1])&&(le=fe[fe.length-1])&&Ve.push(le),Ve.length&&(Ve=["("+Ve.join("; ")+")"]),Ce&&pe&&pe.indexOf(Ce)<0&&Ve.push("on "+Ce),pe&&Ve.push((/^on /.test(Ve[Ve.length-1])?"":"on ")+pe),xe&&(le=/ ([\d.+]+)$/.exec(xe),ue=le&&"/"==xe.charAt(xe.length-le[0].length-1),xe={architecture:32,family:le&&!ue?xe.replace(le[0],""):xe,version:le?le[1]:null,toString:function(){var kt=this.version;return this.family+(kt&&!ue?" "+kt:"")+(64==this.architecture?" 64-bit":"")}}),(le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(lt))&&!/\bi686\b/i.test(lt)?(xe&&(xe.architecture=64,xe.family=xe.family.replace(RegExp(" *"+le),"")),re&&(/\bWOW64\b/i.test(C)||se&&/\w(?:86|32)$/.test(oe.cpuClass||oe.platform)&&!/\bWin64; x64\b/i.test(C))&&Ve.unshift("32-bit")):xe&&/^OS X/.test(xe.family)&&"Chrome"==re&&parseFloat(he)>=39&&(xe.architecture=64),C||(C=null);var sn={};return sn.description=C,sn.layout=fe&&fe[0],sn.manufacturer=Ce,sn.name=re,sn.prerelease=pt,sn.product=pe,sn.ua=C,sn.version=re&&he,sn.os=xe||{architecture:null,family:null,version:null,toString:function(){return"null"}},sn.parse=$,sn.toString=function Cr(){return this.description||""},sn.version&&Ve.unshift(he),sn.name&&Ve.unshift(re),xe&&re&&!(xe==String(xe).split(" ")[0]&&(xe==re.split(" ")[0]||pe))&&Ve.push(pe?"("+xe+")":"on "+xe),Ve.length&&(sn.description=Ve.join(" ")),sn}();O.platform=w,void 0!==(I=function(){return w}.call(U,B,U,_e))&&(_e.exports=I)}.call(this)},7854:function(_e){var U=function(B){"use strict";var O,I=Object.prototype,z=I.hasOwnProperty,R="function"==typeof Symbol?Symbol:{},f=R.iterator||"@@iterator",d=R.asyncIterator||"@@asyncIterator",L=R.toStringTag||"@@toStringTag";function p(x,m,E){return Object.defineProperty(x,m,{value:E,enumerable:!0,configurable:!0,writable:!0}),x[m]}try{p({},"")}catch(x){p=function(E,N,ae){return E[N]=ae}}function k(x,m,E,N){var J=Object.create((m&&m.prototype instanceof K?m:K).prototype),ve=new oe(N||[]);return J._invoke=function w(x,m,E){var N=q;return function(J,ve){if(N===b)throw new Error("Generator is already running");if(N===V){if("throw"===J)throw ve;return P()}for(E.method=J,E.arg=ve;;){var ke=E.delegate;if(ke){var De=C(ke,E);if(De){if(De===ie)continue;return De}}if("next"===E.method)E.sent=E._sent=E.arg;else if("throw"===E.method){if(N===q)throw N=V,E.arg;E.dispatchException(E.arg)}else"return"===E.method&&E.abrupt("return",E.arg);N=b;var Oe=T(x,m,E);if("normal"===Oe.type){if(N=E.done?V:te,Oe.arg===ie)continue;return{value:Oe.arg,done:E.done}}"throw"===Oe.type&&(N=V,E.method="throw",E.arg=Oe.arg)}}}(x,E,ve),J}function T(x,m,E){try{return{type:"normal",arg:x.call(m,E)}}catch(N){return{type:"throw",arg:N}}}B.wrap=k;var q="suspendedStart",te="suspendedYield",b="executing",V="completed",ie={};function K(){}function H(){}function S(){}var G={};p(G,f,function(){return this});var W=Object.getPrototypeOf,D=W&&W(W(g([])));D&&D!==I&&z.call(D,f)&&(G=D);var y=S.prototype=K.prototype=Object.create(G);function M(x){["next","throw","return"].forEach(function(m){p(x,m,function(E){return this._invoke(m,E)})})}function $(x,m){function E(J,ve,ke,De){var Oe=T(x[J],x,ve);if("throw"!==Oe.type){var Le=Oe.arg,Ke=Le.value;return Ke&&"object"==typeof Ke&&z.call(Ke,"__await")?m.resolve(Ke.__await).then(function(We){E("next",We,ke,De)},function(We){E("throw",We,ke,De)}):m.resolve(Ke).then(function(We){Le.value=We,ke(Le)},function(We){return E("throw",We,ke,De)})}De(Oe.arg)}var N;this._invoke=function ae(J,ve){function ke(){return new m(function(De,Oe){E(J,ve,De,Oe)})}return N=N?N.then(ke,ke):ke()}}function C(x,m){var E=x.iterator[m.method];if(E===O){if(m.delegate=null,"throw"===m.method){if(x.iterator.return&&(m.method="return",m.arg=O,C(x,m),"throw"===m.method))return ie;m.method="throw",m.arg=new TypeError("The iterator does not provide a 'throw' method")}return ie}var N=T(E,x.iterator,m.arg);if("throw"===N.type)return m.method="throw",m.arg=N.arg,m.delegate=null,ie;var ae=N.arg;return ae?ae.done?(m[x.resultName]=ae.value,m.next=x.nextLoc,"return"!==m.method&&(m.method="next",m.arg=O),m.delegate=null,ie):ae:(m.method="throw",m.arg=new TypeError("iterator result is not an object"),m.delegate=null,ie)}function Q(x){var m={tryLoc:x[0]};1 in x&&(m.catchLoc=x[1]),2 in x&&(m.finallyLoc=x[2],m.afterLoc=x[3]),this.tryEntries.push(m)}function X(x){var m=x.completion||{};m.type="normal",delete m.arg,x.completion=m}function oe(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(Q,this),this.reset(!0)}function g(x){if(x){var m=x[f];if(m)return m.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var E=-1,N=function ae(){for(;++E=0;--ae){var J=this.tryEntries[ae],ve=J.completion;if("root"===J.tryLoc)return N("end");if(J.tryLoc<=this.prev){var ke=z.call(J,"catchLoc"),De=z.call(J,"finallyLoc");if(ke&&De){if(this.prev=0;--N){var ae=this.tryEntries[N];if(ae.tryLoc<=this.prev&&z.call(ae,"finallyLoc")&&this.prev=0;--E){var N=this.tryEntries[E];if(N.finallyLoc===m)return this.complete(N.completion,N.afterLoc),X(N),ie}},catch:function(m){for(var E=this.tryEntries.length-1;E>=0;--E){var N=this.tryEntries[E];if(N.tryLoc===m){var ae=N.completion;if("throw"===ae.type){var J=ae.arg;X(N)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(m,E,N){return this.delegate={iterator:g(m),resultName:E,nextLoc:N},"next"===this.method&&(this.arg=O),ie}},B}(_e.exports);try{regeneratorRuntime=U}catch(B){"object"==typeof globalThis?globalThis.regeneratorRuntime=U:Function("r","regeneratorRuntime = r")(U)}},1464:function(_e,U,B){"use strict";B.r(U),B.d(U,{NIL:function(){return lt},parse:function(){return S},stringify:function(){return T},v1:function(){return K},v3:function(){return J},v4:function(){return ke},v5:function(){return le},validate:function(){return d},version:function(){return pt}});var I,z=new Uint8Array(16);function O(){if(!I&&!(I="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(z)}for(var R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,d=function f(se){return"string"==typeof se&&R.test(se)},L=[],p=0;p<256;++p)L.push((p+256).toString(16).substr(1));var q,te,T=function k(se){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ue=(L[se[he+0]]+L[se[he+1]]+L[se[he+2]]+L[se[he+3]]+"-"+L[se[he+4]]+L[se[he+5]]+"-"+L[se[he+6]]+L[se[he+7]]+"-"+L[se[he+8]]+L[se[he+9]]+"-"+L[se[he+10]]+L[se[he+11]]+L[se[he+12]]+L[se[he+13]]+L[se[he+14]]+L[se[he+15]]).toLowerCase();if(!d(ue))throw TypeError("Stringified UUID is invalid");return ue},b=0,V=0,K=function ie(se,he,ue){var fe=he&&ue||0,re=he||new Array(16),pe=(se=se||{}).node||q,Ce=void 0!==se.clockseq?se.clockseq:te;if(null==pe||null==Ce){var xe=se.random||(se.rng||O)();null==pe&&(pe=q=[1|xe[0],xe[1],xe[2],xe[3],xe[4],xe[5]]),null==Ce&&(Ce=te=16383&(xe[6]<<8|xe[7]))}var Mt=void 0!==se.msecs?se.msecs:Date.now(),gn=void 0!==se.nsecs?se.nsecs:V+1,en=Mt-b+(gn-V)/1e4;if(en<0&&void 0===se.clockseq&&(Ce=Ce+1&16383),(en<0||Mt>b)&&void 0===se.nsecs&&(gn=0),gn>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b=Mt,V=gn,te=Ce;var Nr=(1e4*(268435455&(Mt+=122192928e5))+gn)%4294967296;re[fe++]=Nr>>>24&255,re[fe++]=Nr>>>16&255,re[fe++]=Nr>>>8&255,re[fe++]=255&Nr;var On=Mt/4294967296*1e4&268435455;re[fe++]=On>>>8&255,re[fe++]=255&On,re[fe++]=On>>>24&15|16,re[fe++]=On>>>16&255,re[fe++]=Ce>>>8|128,re[fe++]=255&Ce;for(var ct=0;ct<6;++ct)re[fe+ct]=pe[ct];return he||T(re)},S=function H(se){if(!d(se))throw TypeError("Invalid UUID");var he,ue=new Uint8Array(16);return ue[0]=(he=parseInt(se.slice(0,8),16))>>>24,ue[1]=he>>>16&255,ue[2]=he>>>8&255,ue[3]=255&he,ue[4]=(he=parseInt(se.slice(9,13),16))>>>8,ue[5]=255&he,ue[6]=(he=parseInt(se.slice(14,18),16))>>>8,ue[7]=255&he,ue[8]=(he=parseInt(se.slice(19,23),16))>>>8,ue[9]=255&he,ue[10]=(he=parseInt(se.slice(24,36),16))/1099511627776&255,ue[11]=he/4294967296&255,ue[12]=he>>>24&255,ue[13]=he>>>16&255,ue[14]=he>>>8&255,ue[15]=255&he,ue};function y(se,he,ue){function fe(re,pe,Ce,xe){if("string"==typeof re&&(re=function G(se){se=unescape(encodeURIComponent(se));for(var he=[],ue=0;ue>>9<<4)+1}function X(se,he){var ue=(65535&se)+(65535&he);return(se>>16)+(he>>16)+(ue>>16)<<16|65535&ue}function g(se,he,ue,fe,re,pe){return X(function oe(se,he){return se<>>32-he}(X(X(he,se),X(fe,pe)),re),ue)}function P(se,he,ue,fe,re,pe,Ce){return g(he&ue|~he&fe,se,he,re,pe,Ce)}function x(se,he,ue,fe,re,pe,Ce){return g(he&fe|ue&~fe,se,he,re,pe,Ce)}function m(se,he,ue,fe,re,pe,Ce){return g(he^ue^fe,se,he,re,pe,Ce)}function E(se,he,ue,fe,re,pe,Ce){return g(ue^(he|~fe),se,he,re,pe,Ce)}var J=y("v3",48,function M(se){if("string"==typeof se){var he=unescape(encodeURIComponent(se));se=new Uint8Array(he.length);for(var ue=0;ue>5]>>>re%32&255,Ce=parseInt(fe.charAt(pe>>>4&15)+fe.charAt(15&pe),16);he.push(Ce)}return he}(function C(se,he){se[he>>5]|=128<>5]|=(255&se[fe/8])<>>32-he}var le=y("v5",80,function Le(se){var he=[1518500249,1859775393,2400959708,3395469782],ue=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof se){var fe=unescape(encodeURIComponent(se));se=[];for(var re=0;re>>0;Rn=Fe,Fe=kt,kt=Oe(un,30)>>>0,un=sn,sn=zt}ue[0]=ue[0]+sn>>>0,ue[1]=ue[1]+un>>>0,ue[2]=ue[2]+kt>>>0,ue[3]=ue[3]+Fe>>>0,ue[4]=ue[4]+Rn>>>0}return[ue[0]>>24&255,ue[0]>>16&255,ue[0]>>8&255,255&ue[0],ue[1]>>24&255,ue[1]>>16&255,ue[1]>>8&255,255&ue[1],ue[2]>>24&255,ue[2]>>16&255,ue[2]>>8&255,255&ue[2],ue[3]>>24&255,ue[3]>>16&255,ue[3]>>8&255,255&ue[3],ue[4]>>24&255,ue[4]>>16&255,ue[4]>>8&255,255&ue[4]]}),lt="00000000-0000-0000-0000-000000000000",pt=function Ve(se){if(!d(se))throw TypeError("Invalid UUID");return parseInt(se.substr(14,1),16)}},2069:function(_e){function U(){}_e.exports=U,U.mixin=function(B){var I=B.prototype||B;I.isWildEmitter=!0,I.on=function(z,O,R){this.callbacks=this.callbacks||{};var f=3===arguments.length,d=f?arguments[1]:void 0,L=f?arguments[2]:arguments[1];return L._groupName=d,(this.callbacks[z]=this.callbacks[z]||[]).push(L),this},I.once=function(z,O,R){var f=this,d=3===arguments.length,L=d?arguments[1]:void 0,p=d?arguments[2]:arguments[1];function k(){f.off(z,k),p.apply(this,arguments)}return this.on(z,L,k),this},I.releaseGroup=function(z){var O,R,f,d;for(O in this.callbacks=this.callbacks||{},this.callbacks)for(R=0,f=(d=this.callbacks[O]).length;Re.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var l=t.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function j(e){if(Array.isArray(e))return e}function W(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(e,r){return j(e)||function D(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,n=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(o=t.next()).done)&&(n.push(o.value),!r||n.length!==r);i=!0);}catch(u){a=!0,s=u}finally{try{!i&&null!=t.return&&t.return()}finally{if(a)throw s}}return n}}(e,r)||re(e,r)||W()}function S(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function E(e){return function $(e){if(Array.isArray(e))return H(e)}(e)||m(e)||re(e)||function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,r,t){return(G=w()?Reflect.construct:function(i,a,o){var s=[null];s.push.apply(s,a);var l=new(Function.bind.apply(i,s));return o&&P(l,o.prototype),l}).apply(null,arguments)}function V(e){var r="function"==typeof Map?new Map:void 0;return V=function(n){if(null===n||!function g(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return G(n,arguments,k(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),P(i,n)},V(e)}function L(e){return"function"==typeof e}function N(e){var t=e(function(i){Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var x=N(function(e){return function(t){e(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(n,i){return"".concat(i+1,") ").concat(n.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function b(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var e,F=function(){function e(r){d(this,e),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return f(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n)){var a,i=Y(n);try{for(i.s();!(a=i.n()).done;)a.value.remove(this)}catch(v){i.e(v)}finally{i.f()}}else n.remove(this);var s=this.initialTeardown;if(L(s))try{s()}catch(v){t=v instanceof x?v.errors:[v]}var u=this._teardowns;if(u){this._teardowns=null;var c,l=Y(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;try{ve(h)}catch(v){t=null!=t?t:[],v instanceof x?t=[].concat(E(t),E(v.errors)):t.push(v)}}}catch(v){l.e(v)}finally{l.f()}}if(t)throw new x(t)}}},{key:"add",value:function(t){var n;if(t&&t!==this)if(this.closed)ve(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}}},{key:"_hasParent",value:function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)}},{key:"_addParent",value:function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}},{key:"_removeParent",value:function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&b(n,t)}},{key:"remove",value:function(t){var n=this._teardowns;n&&b(n,t),t instanceof e&&t._removeParent(this)}}]),e}();F.EMPTY=((e=new F).closed=!0,e);var z=F.EMPTY;function de(e){return e instanceof F||e&&"closed"in e&&L(e.remove)&&L(e.add)&&L(e.unsubscribe)}function ve(e){L(e)?e():e.unsubscribe()}var De={setTimeout:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=De.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,arguments)}),clearTimeout:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=De.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)}),delegate:void 0};function Me(e){De.setTimeout(function(){throw e})}function Fe(){}var Le=se("C",void 0,void 0);function se(e,r,t){return{kind:e,value:r,error:t}}function Ve(e){e()}var ae=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this)).isStopped=!1,n?(i.destination=n,de(n)&&n.add(Q(i))):i.destination=Mt,i}return f(t,[{key:"next",value:function(i){this.isStopped?Ae(function Qe(e){return se("N",e,void 0)}(i),this):this._next(i)}},{key:"error",value:function(i){this.isStopped?Ae(function Ke(e){return se("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}},{key:"complete",value:function(){this.isStopped?Ae(Le,this):(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,M(k(t.prototype),"unsubscribe",this).call(this),this.destination=null)}},{key:"_next",value:function(i){this.destination.next(i)}},{key:"_error",value:function(i){try{this.destination.error(i)}finally{this.unsubscribe()}}},{key:"_complete",value:function(){try{this.destination.complete()}finally{this.unsubscribe()}}}],[{key:"create",value:function(i,a,o){return new ne(i,a,o)}}]),t}(F);var ce=function(){function e(r){d(this,e),this.partialObserver=r}return f(e,[{key:"next",value:function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){he(i)}}},{key:"error",value:function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){he(i)}else he(t)}},{key:"complete",value:function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){he(n)}}}]),e}(),ne=function(e){p(t,e);var r=y(t);function t(n,i,a){var o,s;return d(this,t),o=r.call(this),L(n)||!n?s={next:null!=n?n:void 0,error:null!=i?i:void 0,complete:null!=a?a:void 0}:(Q(o),s=n),o.destination=new ce(s),o}return f(t)}(ae);function he(e){Me(e)}function Ae(e,r){var t=null;t&&De.setTimeout(function(){return t(e,r)})}var Mt={closed:!0,next:Fe,error:function Ce(e){throw e},complete:Fe},gn="function"==typeof Symbol&&Symbol.observable||"@@observable";function en(e){return e}function Rn(e){return 0===e.length?en:1===e.length?e[0]:function(t){return e.reduce(function(n,i){return i(n)},t)}}var ct=function(){var e=function(){function r(t){d(this,r),t&&(this._subscribe=t)}return f(r,[{key:"lift",value:function(n){var i=new r;return i.source=this,i.operator=n,i}},{key:"subscribe",value:function(n,i,a){var o=this,s=function un(e){return e&&e instanceof ae||function sn(e){return e&&L(e.next)&&L(e.error)&&L(e.complete)}(e)&&de(e)}(n)?n:new ne(n,i,a);return Ve(function(){var u=o.operator,l=o.source;s.add(u?u.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s}},{key:"_trySubscribe",value:function(n){try{return this._subscribe(n)}catch(i){n.error(i)}}},{key:"forEach",value:function(n,i){var a=this;return new(i=Cr(i))(function(o,s){var u=new ne({next:function(c){try{n(c)}catch(h){s(h),u.unsubscribe()}},error:s,complete:o});a.subscribe(u)})}},{key:"_subscribe",value:function(n){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(n)}},{key:gn,value:function(){return this}},{key:"pipe",value:function(){for(var n=arguments.length,i=new Array(n),a=0;a0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),M(k(n.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var u=this.observers;return this.hasError||this.isStopped?z:(u.push(a),new F(function(){return b(u,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var u=this.isStopped;this.hasError?a.error(this.thrownError):u&&a.complete()}},{key:"asObservable",value:function(){var a=new ct;return a.source=this,a}}]),n}(ct);return e.create=function(r,t){return new On(r,t)},e}(),On=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).destination=n,a.source=i,a}return f(t,[{key:"next",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,i)}},{key:"error",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,i)}},{key:"complete",value:function(){var i,a;null===(a=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===a||a.call(i)}},{key:"_subscribe",value:function(i){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(i))&&void 0!==o?o:z}}]),t}(Pe);function fa(e){return L(null==e?void 0:e.lift)}function Yt(e){return function(r){if(fa(r))return r.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function zt(e,r,t,n,i){return new ux(e,r,t,n,i)}var ux=function(e){p(t,e);var r=y(t);function t(n,i,a,o,s,u){var l,c,h,v;return d(this,t),(v=r.call(this,n)).onFinalize=s,v.shouldUnsubscribe=u,v._next=i?function(_){try{i(_)}catch(O){n.error(O)}}:M((l=Q(v),k(t.prototype)),"_next",l),v._error=o?function(_){try{o(_)}catch(O){n.error(O)}finally{this.unsubscribe()}}:M((c=Q(v),k(t.prototype)),"_error",c),v._complete=a?function(){try{a()}catch(_){n.error(_)}finally{this.unsubscribe()}}:M((h=Q(v),k(t.prototype)),"_complete",h),v}return f(t,[{key:"unsubscribe",value:function(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;M(k(t.prototype),"unsubscribe",this).call(this),!a&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}]),t}(ae);function Xe(e,r){return Yt(function(t,n){var i=0;t.subscribe(zt(n,function(a){n.next(e.call(r,a,i++))}))})}var lx=U(7757),Ju=U.n(lx);function ha(e){return this instanceof ha?(this.v=e,this):new ha(e)}function fx(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=t.apply(e,r||[]),a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(_){return new Promise(function(O,J){a.push([v,_,O,J])>1||s(v,_)})})}function s(v,_){try{!function u(v){v.value instanceof ha?Promise.resolve(v.value.v).then(l,c):h(a[0][2],v)}(n[v](_))}catch(O){h(a[0][3],O)}}function l(v){s("next",v)}function c(v){s("throw",v)}function h(v,_){v(_),a.shift(),a.length&&s(a[0][0],a[0][1])}}function hx(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function tm(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(s,u){!function i(a,o,s,u){Promise.resolve(u).then(function(l){a({value:l,done:s})},o)}(s,u,(o=e[a](o)).done,o.value)})}}}var Ld=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function nm(e){return L(null==e?void 0:e.then)}function rm(e){return L(e[gn])}function im(e){return Symbol.asyncIterator&&L(null==e?void 0:e[Symbol.asyncIterator])}function am(e){return new TypeError("You provided ".concat(null!==e&&"object"==typeof e?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var om=function px(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sm(e){return L(null==e?void 0:e[om])}function um(e){return fx(this,arguments,Ju().mark(function r(){var t,n,i;return Ju().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=e.getReader(),s.prev=1;case 2:return s.next=5,ha(t.read());case 5:if(i=(n=s.sent).value,!n.done){s.next=12;break}return s.next=11,ha(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,ha(i);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function lm(e){return L(null==e?void 0:e.getReader)}function or(e){if(e instanceof ct)return e;if(null!=e){if(rm(e))return function gx(e){return new ct(function(r){var t=e[gn]();if(L(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ld(e))return function mx(e){return new ct(function(r){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}function Ex(e,r,t,n,i,a,o,s){var u=[],l=0,c=0,h=!1,v=function(){h&&!u.length&&!l&&r.complete()},_=function(te){return l2&&void 0!==arguments[2]?arguments[2]:1/0;return L(r)?Sn(function(n,i){return Xe(function(a,o){return r(n,a,i,o)})(or(e(n,i)))},t):("number"==typeof r&&(t=r),Yt(function(n,i){return Ex(n,i,e,t)}))}function hs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Sn(en,e)}var ri=new ct(function(e){return e.complete()});function dm(e){return e&&L(e.schedule)}function Nd(e){return e[e.length-1]}function fm(e){return L(Nd(e))?e.pop():void 0}function vs(e){return dm(Nd(e))?e.pop():void 0}function wx(e,r){return"number"==typeof Nd(e)?e.pop():r}function hm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yt(function(t,n){t.subscribe(zt(n,function(i){return Ci(n,e,function(){return n.next(i)},r)},function(){return Ci(n,e,function(){return n.complete()},r)},function(i){return Ci(n,e,function(){return n.error(i)},r)}))})}function vm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yt(function(t,n){n.add(e.schedule(function(){return t.subscribe(n)},r))})}function pm(e,r){if(!e)throw new Error("Iterable cannot be null");return new ct(function(t){Ci(t,r,function(){var n=e[Symbol.asyncIterator]();Ci(t,r,function(){n.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function In(e,r){return r?function Tx(e,r){if(null!=e){if(rm(e))return function Sx(e,r){return or(e).pipe(vm(r),hm(r))}(e,r);if(Ld(e))return function Ax(e,r){return new ct(function(t){var n=0;return r.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}(e,r);if(nm(e))return function Dx(e,r){return or(e).pipe(vm(r),hm(r))}(e,r);if(im(e))return pm(e,r);if(sm(e))return function xx(e,r){return new ct(function(t){var n;return Ci(t,r,function(){n=e[om](),Ci(t,r,function(){var i,a;try{var o=n.next();i=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(i)},0,!0)}),function(){return L(null==n?void 0:n.return)&&n.return()}})}(e,r);if(lm(e))return function Mx(e,r){return pm(um(e),r)}(e,r)}throw am(e)}(e,r):or(e)}function Qa(){for(var e=arguments.length,r=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=e.connector,t=void 0===r?function(){return new Pe}:r,n=e.resetOnError,i=void 0===n||n,a=e.resetOnComplete,o=void 0===a||a,s=e.resetOnRefCountZero,u=void 0===s||s;return function(l){var c=null,h=null,v=null,_=0,O=!1,J=!1,te=function(){null==h||h.unsubscribe(),h=null},ue=function(){te(),c=v=null,O=J=!1},ee=function(){var _e=c;ue(),null==_e||_e.unsubscribe()};return Yt(function(ye,_e){_++,!J&&!O&&te();var Te=v=null!=v?v:t();_e.add(function(){0==--_&&!J&&!O&&(h=Vd(ee,u))}),Te.subscribe(_e),c||(c=new ne({next:function(We){return Te.next(We)},error:function(We){J=!0,te(),h=Vd(ue,i,We),Te.error(We)},complete:function(){O=!0,te(),h=Vd(ue,o),Te.complete()}}),In(ye).subscribe(c))})(l)}}function Vd(e,r){if(!0===r)return e(),null;if(!1===r)return null;for(var t=arguments.length,n=new Array(t>2?t-2:0),i=2;i ".concat(t," ").concat(n," ").concat(r," <=Actual]")))}(r,e,null,"!=")}function we(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ud(e){return ym(e,tl)||ym(e,bm)}function ym(e,r){return e.hasOwnProperty(r)?e[r]:null}function _m(e){return e&&(e.hasOwnProperty(Gd)||e.hasOwnProperty(Vx))?e[Gd]:null}var zd,tl=Vt({"\u0275prov":Vt}),Gd=Vt({"\u0275inj":Vt}),bm=Vt({ngInjectableDef:Vt}),Vx=Vt({ngInjectorDef:Vt}),tt=function(){return(tt=tt||{})[tt.Default=0]="Default",tt[tt.Host=1]="Host",tt[tt.Self=2]="Self",tt[tt.SkipSelf=4]="SkipSelf",tt[tt.Optional=8]="Optional",tt}();function Bx(){return zd}function zi(e){var r=zd;return zd=e,r}function Cm(e,r,t){var n=Ud(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&tt.Optional?null:void 0!==r?r:void el(Ot(e),"Injector")}function Wi(e){return{toString:e}.toString()}var Vr=function(){return(Vr=Vr||{})[Vr.OnPush=0]="OnPush",Vr[Vr.Default=1]="Default",Vr}(),Br=function(){return function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Br||(Br={})),Br}(),Hx="undefined"!=typeof globalThis&&globalThis,jx="undefined"!=typeof window&&window,Ux="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Gx="undefined"!=typeof global&&global,Lt=Hx||Gx||jx||Ux,Ya={},Bt=[],nl=Vt({"\u0275cmp":Vt}),Wd=Vt({"\u0275dir":Vt}),qd=Vt({"\u0275pipe":Vt}),Em=Vt({"\u0275mod":Vt}),ki=Vt({"\u0275fac":Vt}),ps=Vt({__NG_ELEMENT_ID__:Vt}),zx=0;function Ht(e){return Wi(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Vr.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Bt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Br.Emulated,id:"c",styles:e.styles||Bt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,a=e.features,o=e.pipes;return n.id+=zx++,n.inputs=Dm(e.inputs,t),n.outputs=Dm(e.outputs),a&&a.forEach(function(s){return s(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(km)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(wm)}:null,n})}function km(e){return Gn(e)||function qi(e){return e[Wd]||null}(e)}function wm(e){return function va(e){return e[qd]||null}(e)}var Sm={};function gt(e){return Wi(function(){var r={type:e.type,bootstrap:e.bootstrap||Bt,declarations:e.declarations||Bt,imports:e.imports||Bt,exports:e.exports||Bt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Sm[e.id]=e.type),r})}function Dm(e,r){if(null==e)return Ya;var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),t[i]=n,r&&(r[i]=a)}return t}var Ee=Ht;function Gn(e){return e[nl]||null}function Er(e,r){var t=e[Em]||null;if(!t&&!0===r)throw new Error("Type ".concat(Ot(e)," does not have '\u0275mod' property."));return t}function ii(e){return Array.isArray(e)&&"object"==typeof e[1]}function jr(e){return Array.isArray(e)&&!0===e[1]}function Yd(e){return 0!=(8&e.flags)}function ol(e){return 2==(2&e.flags)}function sl(e){return 1==(1&e.flags)}function Ur(e){return null!==e.template}function $x(e){return 0!=(512&e[2])}function ya(e,r){return e.hasOwnProperty(ki)?e[ki]:null}var Jx=function(){function e(r,t,n){d(this,e),this.previousValue=r,this.currentValue=t,this.firstChange=n}return f(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Wn(){return xm}function xm(e){return e.type.prototype.ngOnChanges&&(e.setInput=tM),eM}function eM(){var e=Tm(this),r=null==e?void 0:e.current;if(r){var t=e.previous;if(t===Ya)e.previous=r;else for(var n in r)t[n]=r[n];e.current=null,this.ngOnChanges(r)}}function tM(e,r,t,n){var i=Tm(e)||function nM(e,r){return e[Mm]=r}(e,{previous:Ya,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[t],u=o[s];a[s]=new Jx(u&&u.currentValue,r,o===Ya),e[n]=r}Wn.ngInherit=!0;var Mm="__ngSimpleChanges__";function Tm(e){return e[Mm]||null}var ef=void 0;function tf(){return void 0!==ef?ef:"undefined"!=typeof document?document:void 0}function ln(e){return!!e.listen}var Rm={createRenderer:function(r,t){return tf()}};function _n(e){for(;Array.isArray(e);)e=e[0];return e}function ul(e,r){return _n(r[e])}function Sr(e,r){return _n(r[e.index])}function nf(e,r){return e.data[r]}function cr(e,r){var t=r[e];return ii(t)?t:t[0]}function Om(e){return 4==(4&e[2])}function rf(e){return 128==(128&e[2])}function Ki(e,r){return null==r?null:e[r]}function Im(e){e[18]=0}function af(e,r){e[5]+=r;for(var t=e,n=e[3];null!==n&&(1===r&&1===t[5]||-1===r&&0===t[5]);)n[5]+=r,t=n,n=n[3]}var nt={lFrame:jm(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Fm(){return nt.bindingsEnabled}function Se(){return nt.lFrame.lView}function St(){return nt.lFrame.tView}function yt(e){return nt.lFrame.contextLView=e,e[8]}function Dn(){for(var e=Pm();null!==e&&64===e.type;)e=e.parent;return e}function Pm(){return nt.lFrame.currentTNode}function ai(e,r){var t=nt.lFrame;t.currentTNode=e,t.isParent=r}function sf(){return nt.lFrame.isParent}function uf(){nt.lFrame.isParent=!1}function ll(){return nt.isInCheckNoChangesMode}function cl(e){nt.isInCheckNoChangesMode=e}function Xn(){var e=nt.lFrame,r=e.bindingRootIndex;return-1===r&&(r=e.bindingRootIndex=e.tView.bindingStartIndex),r}function to(){return nt.lFrame.bindingIndex++}function _M(e,r){var t=nt.lFrame;t.bindingIndex=t.bindingRootIndex=e,lf(r)}function lf(e){nt.lFrame.currentDirectiveIndex=e}function cf(e){var r=nt.lFrame.currentDirectiveIndex;return-1===r?null:e[r]}function Vm(){return nt.lFrame.currentQueryIndex}function df(e){nt.lFrame.currentQueryIndex=e}function CM(e){var r=e[1];return 2===r.type?r.declTNode:1===r.type?e[6]:null}function Bm(e,r,t){if(t&tt.SkipSelf){for(var n=r,i=e;!(null!==(n=n.parent)||t&tt.Host||null===(n=CM(i))||(i=i[15],10&n.type)););if(null===n)return!1;r=n,e=i}var a=nt.lFrame=Hm();return a.currentTNode=r,a.lView=e,!0}function dl(e){var r=Hm(),t=e[1];nt.lFrame=r,r.currentTNode=t.firstChild,r.lView=e,r.tView=t,r.contextLView=e,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function Hm(){var e=nt.lFrame,r=null===e?null:e.child;return null===r?jm(e):r}function jm(e){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=r),r}function Um(){var e=nt.lFrame;return nt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Gm=Um;function fl(){var e=Um();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function EM(e){var r=nt.lFrame.contextLView=function kM(e,r){for(;e>0;)r=r[15],e--;return r}(e,nt.lFrame.contextLView);return r[8]}function Zn(){return nt.lFrame.selectedIndex}function Qi(e){nt.lFrame.selectedIndex=e}function cn(){var e=nt.lFrame;return nf(e.tView,e.selectedIndex)}function hl(e,r){for(var t=r.directiveStart,n=r.directiveEnd;t=n)break}else r[u]<0&&(e[18]+=65536),(s>11>16&&(3&e[2])===r){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var bs=f(function e(r,t,n){d(this,e),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n});function gl(e,r,t){for(var n=ln(e),i=0;ir){o=a-1;break}}}for(;a>16}(e),n=r;t>0;)n=n[15],t--;return n}var pf=!0;function yl(e){var r=pf;return pf=e,r}var PM=0;function Es(e,r){var t=mf(e,r);if(-1!==t)return t;var n=r[1];n.firstCreatePass&&(e.injectorIndex=r.length,gf(n.data,e),gf(r,null),gf(n.blueprint,null));var i=_l(e,r),a=e.injectorIndex;if(Ym(i))for(var o=no(i),s=ro(i,r),u=s[1].data,l=0;l<8;l++)r[a+l]=s[o+l]|u[o+l];return r[a+8]=i,a}function gf(e,r){e.push(0,0,0,0,0,0,0,0,r)}function mf(e,r){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===r[e.injectorIndex+8]?-1:e.injectorIndex}function _l(e,r){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,i=r;null!==i;){var a=i[1],o=a.type;if(null===(n=2===o?a.declTNode:1===o?i[6]:null))return-1;if(t++,i=i[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function bl(e,r,t){!function LM(e,r,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(ps)&&(n=t[ps]),null==n&&(n=t[ps]=PM++);var i=255&n;r.data[e+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:tt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=HM(t);if("function"==typeof a){if(!Bm(r,e,n))return n&tt.Host?Zm(i,t,n):Jm(r,t,n,i);try{var o=a(n);if(null!=o||n&tt.Optional)return o;el(t)}finally{Gm()}}else if("number"==typeof a){var s=null,u=mf(e,r),l=-1,c=n&tt.Host?r[16][6]:null;for((-1===u||n&tt.SkipSelf)&&(-1!==(l=-1===u?_l(e,r):r[u+8])&&ry(n,!1)?(s=r[1],u=no(l),r=ro(l,r)):u=-1);-1!==u;){var h=r[1];if(ny(a,u,h.data)){var v=BM(u,r,t,s,n,c);if(v!==ty)return v}-1!==(l=r[u+8])&&ry(n,r[1].data[u+8]===c)&&ny(a,u,r)?(s=h,u=no(l),r=ro(l,r)):u=-1}}}return Jm(r,t,n,i)}var ty={};function VM(){return new io(Dn(),Se())}function BM(e,r,t,n,i,a){var o=r[1],s=o.data[e+8],c=Cl(s,o,t,null==n?ol(s)&&pf:n!=o&&0!=(3&s.type),i&tt.Host&&a===s);return null!==c?ks(r,o,c,s):ty}function Cl(e,r,t,n,i){for(var a=e.providerIndexes,o=r.data,s=1048575&a,u=e.directiveStart,c=a>>20,v=i?s+c:e.directiveEnd,_=n?s:s+c;_=u&&O.type===t)return _}if(i){var J=o[u];if(J&&Ur(J)&&J.type===t)return u}return null}function ks(e,r,t,n){var i=e[t],a=r.data;if(function MM(e){return e instanceof bs}(i)){var o=i;o.resolving&&function Ox(e,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(e):"";throw new Ue(-200,"Circular dependency in DI detected for ".concat(e).concat(t))}($n(a[t]));var s=yl(o.canSeeViewProviders);o.resolving=!0;var u=o.injectImpl?zi(o.injectImpl):null;Bm(e,n,tt.Default);try{i=e[t]=o.factory(void 0,a,e,n),r.firstCreatePass&&t>=n.directiveStart&&function AM(e,r,t){var n=r.type.prototype,a=n.ngOnInit,o=n.ngDoCheck;if(n.ngOnChanges){var s=xm(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,a[t],r)}finally{null!==u&&zi(u),yl(s),o.resolving=!1,Gm()}}return i}function HM(e){if("string"==typeof e)return e.charCodeAt(0)||0;var r=e.hasOwnProperty(ps)?e[ps]:void 0;return"number"==typeof r?r>=0?255&r:VM:r}function ny(e,r,t){return!!(t[r+(e>>5)]&1<=e.length?e.push(t):e.splice(r,0,t)}function El(e,r){return r>=e.length-1?e.pop():e.splice(r,1)[0]}function Ds(e,r){for(var t=[],n=0;n=0?e[1|n]=t:function WM(e,r,t,n){var i=e.length;if(i==r)e.push(t,n);else if(1===i)e.push(n,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>r;)e[i]=e[i-2],i--;e[r]=t,e[r+1]=n}}(e,n=~n,r,t),n}function Cf(e,r){var t=lo(e,r);if(t>=0)return e[1|t]}function lo(e,r){return function uy(e,r,t){for(var n=0,i=e.length>>t;i!==n;){var a=n+(i-n>>1),o=e[a<r?i=a:n=a+1}return~(i<1&&void 0!==arguments[1]?arguments[1]:tt.Default;if(void 0===xs){var t="";throw new Ue(203,t)}return null===xs?Cm(e,void 0,r):xs.get(e,r&tt.Optional?null:void 0,r)}function le(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt.Default;return(Bx()||nT)(dt(e),r)}var co=le;function wf(e){for(var r=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Ot(r);if(Array.isArray(r))i=r.map(Ot).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Ot(s)))}i="{".concat(a.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(i,"]: ").concat(e.replace(JM,"\n "))}("\n"+e.message,i,t,n),e.ngTokenPath=i,e[wl]=null,e}var Al,xl,Sl=Ms(uo("Inject",function(e){return{token:e}}),-1),Gr=Ms(uo("Optional"),8),fo=Ms(uo("SkipSelf"),4);function vo(e){var r;return(null===(r=function Df(){if(void 0===Al&&(Al=null,Lt.trustedTypes))try{Al=Lt.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return Al}())||void 0===r?void 0:r.createHTML(e))||e}function my(e){var r;return(null===(r=function Af(){if(void 0===xl&&(xl=null,Lt.trustedTypes))try{xl=Lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return xl}())||void 0===r?void 0:r.createHTML(e))||e}var _a=function(){function e(r){d(this,e),this.changingThisBreaksApplicationSecurity=r}return f(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),gT=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(_a),mT=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(_a),yT=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(_a),_T=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(_a),bT=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(_a);function fr(e){return e instanceof _a?e.changingThisBreaksApplicationSecurity:e}function si(e,r){var t=by(e);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function by(e){return e instanceof _a&&e.getTypeName()||null}var DT=function(){function e(r){d(this,e),this.inertDocumentHelper=r}return f(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(vo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(i){return null}}}]),e}(),AT=function(){function e(r){if(d(this,e),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return f(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=vo(t),n;var i=this.inertDocument.createElement("body");return i.innerHTML=vo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,i=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();xf.hasOwnProperty(n)&&!ky.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Ay(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),VT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BT=/([^\#-~ |!])/g;function Ay(e){return e.replace(/&/g,"&").replace(VT,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(BT,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function xy(e,r){var t=null;try{Ml=Ml||function Cy(e){var r=new AT(e);return function xT(){try{return!!(new window.DOMParser).parseFromString(vo(""),"text/html")}catch(e){return!1}}()?new DT(r):r}(e);var n=r?String(r):"";t=Ml.getInertBodyElement(n);var i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=t.innerHTML,t=Ml.getInertBodyElement(n)}while(n!==a);return vo((new NT).sanitizeChildren(Rf(t)||t))}finally{if(t)for(var u=Rf(t)||t;u.firstChild;)u.removeChild(u.firstChild)}}function Rf(e){return"content"in e&&function HT(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xt=function(){return(xt=xt||{})[xt.NONE=0]="NONE",xt[xt.HTML=1]="HTML",xt[xt.STYLE=2]="STYLE",xt[xt.SCRIPT=3]="SCRIPT",xt[xt.URL=4]="URL",xt[xt.RESOURCE_URL=5]="RESOURCE_URL",xt}();function My(e){var r=function Is(){var e=Se();return e&&e[12]}();return r?my(r.sanitize(xt.HTML,e)||""):si(e,"HTML")?my(fr(e)):xy(tf(),it(e))}var Oy="__ngContext__";function qn(e,r){e[Oy]=r}function Ff(e){var r=function Fs(e){return e[Oy]||null}(e);return r?Array.isArray(r)?r:r.lView:null}function Lf(e){return e.ngOriginalError}function n1(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n0&&(e[t-1][4]=n[4]);var a=El(e,10+r);!function _1(e,r){Ls(e,r,r[11],2,null,null),r[0]=null,r[6]=null}(n[1],n);var o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function zy(e,r){if(!(256&r[2])){var t=r[11];ln(t)&&t.destroyNode&&Ls(e,r,t,3,null,null),function E1(e){var r=e[13];if(!r)return zf(e[1],e);for(;r;){var t=null;if(ii(r))t=r[13];else{var n=r[10];n&&(t=n)}if(!t){for(;r&&!r[4]&&r!==e;)ii(r)&&zf(r[1],r),r=r[3];null===r&&(r=e),ii(r)&&zf(r[1],r),t=r&&r[4]}r=t}}(r)}}function zf(e,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function D1(e,r){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[i=l]():n[i=-l].unsubscribe(),a+=2}else{var c=n[i=t[a+1]];t[a].call(c)}if(null!==n){for(var h=i+1;ha?"":i[h+1].toLowerCase();var _=8&n?v:null;if(_&&-1!==r_(_,l,0)||2&n&&l!==v){if(zr(n))return!1;o=!0}}}}else{if(!o&&!zr(n)&&!zr(u))return!1;if(o&&zr(u))continue;o=!1,n=u|1&n}}return zr(n)||o}function zr(e){return 0==(1&e)}function P1(e,r,t,n){if(null===r)return-1;var i=0;if(n||!t){for(var a=!1;i-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?i+="."+o:4&n&&(i+=" "+o);else""!==i&&!zr(o)&&(r+=s_(a,i),i=""),n=o,a=a||!zr(n);t++}return""!==i&&(r+=s_(a,i)),r}var at={};function ke(e){u_(St(),Se(),Zn()+e,ll())}function u_(e,r,t,n){if(!n)if(3==(3&r[2])){var a=e.preOrderCheckHooks;null!==a&&vl(r,a,t)}else{var o=e.preOrderHooks;null!==o&&pl(r,o,0,t)}Qi(t)}function Il(e,r){return e<<17|r<<2}function Wr(e){return e>>17&32767}function Yf(e){return 2|e}function Di(e){return(131068&e)>>2}function $f(e,r){return-131069&e|r<<2}function Xf(e){return 1|e}function __(e,r){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&u_(e,r,20,ll()),t(n,i)}finally{Qi(a)}}function C_(e,r,t){if(Yd(r))for(var i=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Sr,n=r.localNames;if(null!==n)for(var i=r.index+1,a=0;a0;){var t=e[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=u&&s.push(u),s.push(n,i,o)}}function M_(e,r){null!==e.hostBindings&&e.hostBindings(1,r)}function T_(e,r){r.flags|=2,(e.components||(e.components=[])).push(r.index)}function pR(e,r,t){if(t){if(r.exportAs)for(var n=0;n0&&dh(t)}}function dh(e){for(var r=Bf(e);null!==r;r=Hf(r))for(var t=10;t0&&dh(n)}var o=e[1].components;if(null!==o)for(var s=0;s0&&dh(u)}}function ER(e,r){var t=cr(r,e),n=t[1];(function kR(e,r){for(var t=r.length;t1&&void 0!==arguments[1]?arguments[1]:As;if(n===As){var i=new Error("NullInjectorError: No provider for ".concat(Ot(t),"!"));throw i.name="NullInjectorError",i}return n}}]),e}(),mh=new Ne("Set Injector scope."),Bs={},TR={},yh=void 0;function j_(){return void 0===yh&&(yh=new H_),yh}function U_(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i=G_(e,r,t,n);return i._resolveInjectorDefTypes(),i}function G_(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new RR(e,t,r||j_(),n)}var RR=function(){function e(r,t,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;d(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&oi(t,function(u){return i.processProvider(u,r,t)}),oi([r],function(u){return i.processInjectorType(u,[],o)}),this.records.set(gh,bo(void 0,this));var s=this.records.get(mh);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:Ot(r))}return f(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:As,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tt.Default;this.assertNotDestroyed();var a=dy(this),o=zi(void 0);try{if(!(i&tt.SkipSelf)){var s=this.records.get(t);if(void 0===s){var u=BR(t)&&Ud(t);s=u&&this.injectableDefInScope(u)?bo(_h(t),Bs):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var l=i&tt.Self?j_():this.parent;return l.get(t,n=i&tt.Optional&&n===As?null:n)}catch(h){if("NullInjectorError"===h.name){var c=h[wl]=h[wl]||[];if(c.unshift(Ot(t)),a)throw h;return iT(h,t,"R3InjectorError",this.source)}throw h}finally{zi(o),dy(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(i,a){return t.push(Ot(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Ue(205,!1)}},{key:"processInjectorType",value:function(t,n,i){var a=this;if(!(t=dt(t)))return!1;var o=_m(t),s=null==o&&t.ngModule||void 0,u=void 0===s?t:s,h=-1!==i.indexOf(u);if(void 0!==s&&(o=_m(s)),null==o)return!1;if(null!=o.imports&&!h){var v;i.push(u);try{oi(o.imports,function(ee){a.processInjectorType(ee,n,i)&&(void 0===v&&(v=[]),v.push(ee))})}finally{}if(void 0!==v)for(var _=function(ye){var _e=v[ye],Te=_e.ngModule,Ie=_e.providers;oi(Ie,function(We){return a.processProvider(We,Te,Ie||Bt)})},O=0;O0)throw Ds(r,"?"),new Ue(204,!1);var n=function Lx(e){var r=e&&(e[tl]||e[bm]);if(r){var t=function Nx(e){if(e.hasOwnProperty("name"))return e.name;var r=(""+e).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),r}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Ue(204,!1)}function z_(e,r,t){var n=void 0;if(Co(e)){var i=dt(e);return ya(i)||_h(i)}if(W_(e))n=function(){return dt(e.useValue)};else if(function PR(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,E(wf(e.deps||[])))};else if(function FR(e){return!(!e||!e.useExisting)}(e))n=function(){return le(dt(e.useExisting))};else{var a=dt(e&&(e.useClass||e.provide));if(!function NR(e){return!!e.deps}(e))return ya(a)||_h(a);n=function(){return G(a,E(wf(e.deps)))}}return n}function bo(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:r,multi:t?[]:void 0}}function W_(e){return null!==e&&"object"==typeof e&&tT in e}function Co(e){return"function"==typeof e}function BR(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ne}var qt=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"create",value:function(n,i){var a;if(Array.isArray(n))return U_({name:""},i,n,"");var o=null!==(a=n.name)&&void 0!==a?a:"";return U_({name:o},n.parent,n.providers,o)}}]),r}();return e.THROW_IF_NOT_FOUND=As,e.NULL=new H_,e.\u0275prov=we({token:e,providedIn:"any",factory:function(){return le(gh)}}),e.__NG_ELEMENT_ID__=-1,e}();function $R(e,r){hl(Ff(e)[1],Dn())}function Re(e){for(var r=function J_(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];r;){var i=void 0;if(Ur(e))i=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new Ue(903,"");i=r.\u0275dir}if(i){if(t){n.push(i);var o=e;o.inputs=Ch(e.inputs),o.declaredInputs=Ch(e.declaredInputs),o.outputs=Ch(e.outputs);var s=i.hostBindings;s&&eO(e,s);var u=i.viewQuery,l=i.contentQueries;if(u&&ZR(e,u),l&&JR(e,l),Bd(e.inputs,i.inputs),Bd(e.declaredInputs,i.declaredInputs),Bd(e.outputs,i.outputs),Ur(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var h=i.features;if(h)for(var v=0;v=0;n--){var i=e[n];i.hostVars=r+=i.hostVars,i.hostAttrs=ml(i.hostAttrs,t=ml(t,i.hostAttrs))}}(n)}function Ch(e){return e===Ya?{}:e===Bt?[]:e}function ZR(e,r){var t=e.viewQuery;e.viewQuery=t?function(n,i){r(n,i),t(n,i)}:r}function JR(e,r){var t=e.contentQueries;e.contentQueries=t?function(n,i,a){r(n,i,a),t(n,i,a)}:r}function eO(e,r){var t=e.hostBindings;e.hostBindings=t?function(n,i){r(n,i),t(n,i)}:r}var Bl=null;function Eo(){if(!Bl){var e=Lt.Symbol;if(e&&e.iterator)Bl=e.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:tt.Default,t=Se();if(null===t)return le(e,r);var n=Dn();return ey(n,t,dt(e),r)}function Us(){throw new Error("invalid")}function xe(e,r,t){var n=Se();return Kn(n,to(),r)&&vr(St(),cn(),n,e,r,n[11],t,!1),xe}function Dh(e,r,t,n,i){var o=i?"class":"style";B_(e,t,r.inputs[o],o,n)}function pe(e,r,t,n){var i=Se(),a=St(),o=20+e,s=i[11],u=i[o]=Uf(s,r,function DM(){return nt.lFrame.currentNamespace}()),l=a.firstCreatePass?function DO(e,r,t,n,i,a,o){var s=r.consts,l=mo(r,e,2,i,Ki(s,a));return lh(r,t,l,Ki(s,o)),null!==l.attrs&&Vl(l,l.attrs,!1),null!==l.mergedAttrs&&Vl(l,l.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,l),l}(o,a,i,0,r,t,n):a.data[o];ai(l,!0);var c=l.mergedAttrs;null!==c&&gl(s,u,c);var h=l.classes;null!==h&&Qf(s,u,h);var v=l.styles;return null!==v&&n_(s,u,v),64!=(64&l.flags)&&Rl(a,i,u,l),0===function fM(){return nt.lFrame.elementDepthCount}()&&qn(u,i),function hM(){nt.lFrame.elementDepthCount++}(),sl(l)&&(sh(a,i,l),C_(a,l,i)),null!==n&&uh(i,l),pe}function ge(){var e=Dn();sf()?uf():ai(e=e.parent,!1);var r=e;!function vM(){nt.lFrame.elementDepthCount--}();var t=St();return t.firstCreatePass&&(hl(t,e),Yd(e)&&t.queries.elementEnd(e)),null!=r.classesWithoutHost&&function RM(e){return 0!=(16&e.flags)}(r)&&Dh(t,r,Se(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function OM(e){return 0!=(32&e.flags)}(r)&&Dh(t,r,Se(),r.stylesWithoutHost,!1),ge}function Xt(e,r,t,n){return pe(e,r,t,n),ge(),Xt}function Gs(e,r,t){var n=Se(),i=St(),a=e+20,o=i.firstCreatePass?function AO(e,r,t,n,i){var a=r.consts,o=Ki(a,n),s=mo(r,e,8,"ng-container",o);return null!==o&&Vl(s,o,!0),lh(r,t,s,Ki(a,i)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,i,n,r,t):i.data[a];ai(o,!0);var s=n[a]=n[11].createComment("");return Rl(i,n,s,o),qn(s,n),sl(o)&&(sh(i,n,o),C_(i,o,n)),null!=t&&uh(n,o),Gs}function zs(){var e=Dn(),r=St();return sf()?uf():ai(e=e.parent,!1),r.firstCreatePass&&(hl(r,e),Yd(e)&&r.queries.elementEnd(e)),zs}function Nt(){return Se()}function Ws(e){return!!e&&"function"==typeof e.then}var Ah=function Cb(e){return!!e&&"function"==typeof e.subscribe};function Ge(e,r,t,n){var i=Se(),a=St(),o=Dn();return Eb(a,i,i[11],o,e,r,!!t,n),Ge}function qs(e,r){var t=Dn(),n=Se(),i=St();return Eb(i,n,N_(cf(i.data),t,n),t,e,r,!1),qs}function Eb(e,r,t,n,i,a,o,s){var u=sl(n),c=e.firstCreatePass&&L_(e),h=r[8],v=P_(r),_=!0;if(3&n.type||s){var O=Sr(n,r),J=s?s(O):O,te=v.length,ue=s?function(Ui){return s(_n(Ui[n.index]))}:n.index;if(ln(t)){var ee=null;if(!s&&u&&(ee=function xO(e,r,t,n){var i=e.cleanup;if(null!=i)for(var a=0;au?s[u]:null}"string"==typeof o&&(a+=2)}return null}(e,r,i,n.index)),null!==ee)(ee.__ngLastListenerFn__||ee).__ngNextListenerFn__=a,ee.__ngLastListenerFn__=a,_=!1;else{a=xh(n,r,h,a,!1);var _e=t.listen(J,i,a);v.push(a,_e),c&&c.push(i,ue,te,te+1)}}else a=xh(n,r,h,a,!0),J.addEventListener(i,a,o),v.push(a),c&&c.push(i,ue,te,o)}else a=xh(n,r,h,a,!1);var Ie,Te=n.outputs;if(_&&null!==Te&&(Ie=Te[i])){var We=Ie.length;if(We)for(var bt=0;bt0&&void 0!==arguments[0]?arguments[0]:1;return EM(e)}function MO(e,r){for(var t=null,n=function L1(e){var r=e.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Se(),i=St(),a=mo(i,20+e,16,null,t||null);null===a.projection&&(a.projection=r),uf(),64!=(64&a.flags)&&M1(i,n,a)}function Ib(e,r,t,n,i){for(var a=e[t+1],o=null===r,s=n?Wr(a):Di(a),u=!1;0!==s&&(!1===u||o);){var c=e[s+1];OO(e[s],r)&&(u=!0,e[s+1]=n?Xf(c):Yf(c)),s=n?Wr(c):Di(c)}u&&(e[t+1]=n?Yf(a):Xf(a))}function OO(e,r){return null===e||null==r||(Array.isArray(e)?e[1]:e)===r||!(!Array.isArray(e)||"string"!=typeof r)&&lo(e,r)>=0}function xi(e,r,t){return Kr(e,r,t,!1),xi}function It(e,r){return Kr(e,r,null,!0),It}function Kr(e,r,t,n){var i=Se(),a=St(),o=function Si(e){var r=nt.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+e,t}(2);a.firstUpdatePass&&function jb(e,r,t,n){var i=e.data;if(null===i[t+1]){var a=i[Zn()],o=function Hb(e,r){return r>=e.expandoStartIndex}(e,t);(function Wb(e,r){return 0!=(e.flags&(r?16:32))})(a,n)&&null===r&&!o&&(r=!1),r=function jO(e,r,t,n){var i=cf(e),a=n?r.residualClasses:r.residualStyles;if(null===i)0===(n?r.classBindings:r.styleBindings)&&(t=Ks(t=Th(null,e,r,t,n),r.attrs,n),a=null);else{var s=r.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Th(i,e,r,t,n),null===a){var l=function UO(e,r,t){var n=t?r.classBindings:r.styleBindings;if(0!==Di(n))return e[Wr(n)]}(e,r,n);void 0!==l&&Array.isArray(l)&&function GO(e,r,t,n){e[Wr(t?r.classBindings:r.styleBindings)]=n}(e,r,n,l=Ks(l=Th(null,e,r,l[1],n),r.attrs,n))}else a=function zO(e,r,t){for(var n=void 0,i=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(l=!0):c=t,i)if(0!==u){var _=Wr(e[s+1]);e[n+1]=Il(_,s),0!==_&&(e[_+1]=$f(e[_+1],n)),e[s+1]=function G1(e,r){return 131071&e|r<<17}(e[s+1],n)}else e[n+1]=Il(s,0),0!==s&&(e[s+1]=$f(e[s+1],n)),s=n;else e[n+1]=Il(u,0),0===s?s=n:e[u+1]=$f(e[u+1],n),u=n;l&&(e[n+1]=Yf(e[n+1])),Ib(e,c,n,!0),Ib(e,c,n,!1),function RO(e,r,t,n,i){var a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof r&&lo(a,r)>=0&&(t[n+1]=Xf(t[n+1]))}(r,c,e,n,a),o=Il(s,u),a?r.classBindings=o:r.styleBindings=o}(i,a,r,t,o,n)}}(a,e,o,n),r!==at&&Kn(i,o,r)&&function Gb(e,r,t,n,i,a,o,s){if(3&r.type){var u=e.data,l=u[s+1];jl(function d_(e){return 1==(1&e)}(l)?zb(u,r,t,i,Di(l),o):void 0)||(jl(a)||function c_(e){return 2==(2&e)}(l)&&(a=zb(u,null,t,i,s,o)),function R1(e,r,t,n,i){var a=ln(e);if(r)i?a?e.addClass(t,n):t.classList.add(n):a?e.removeClass(t,n):t.classList.remove(n);else{var o=-1===n.indexOf("-")?void 0:hr.DashCase;if(null==i)a?e.removeStyle(t,n,o):t.style.removeProperty(n);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),o|=hr.Important),a?e.setStyle(t,n,i,o):t.style.setProperty(n,i,s?"important":"")}}}(n,o,ul(Zn(),t),i,a))}}(a,a.data[Zn()],i,i[11],e,i[o+1]=function KO(e,r){return null==e||("string"==typeof r?e+=r:"object"==typeof e&&(e=Ot(fr(e)))),e}(r,t),n,o)}function Th(e,r,t,n,i){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,v=t[i+1];v===at&&(v=h?Bt:void 0);var _=h?Cf(v,n):c===n?v:void 0;if(l&&!jl(_)&&(_=Cf(u,n)),jl(_)&&(s=_,o))return s;var O=e[i+1];i=o?Wr(O):Di(O)}if(null!==r){var J=a?r.residualClasses:r.residualStyles;null!=J&&(s=Cf(J,n))}return s}function jl(e){return void 0!==e}function Oe(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Se(),n=St(),i=e+20,a=n.firstCreatePass?mo(n,i,1,r,null):n.data[i],o=t[i]=jf(t[11],r);Rl(n,t,o,a),ai(a,!1)}function bn(e){return Rh("",e,""),bn}function Rh(e,r,t){var n=Se(),i=function wo(e,r,t,n){return Kn(e,to(),t)?r+it(t)+n:at}(n,e,r,t);return i!==at&&Ai(n,Zn(),i),Rh}function Fo(e,r,t){var n=Se();return Kn(n,to(),r)&&vr(St(),cn(),n,e,r,n[11],t,!0),Fo}function Qs(e,r,t){var n=Se();if(Kn(n,to(),r)){var a=St(),o=cn();vr(a,o,n,e,r,N_(cf(a.data),o,n),t,!0)}return Qs}var Ul="en-US";function lF(e,r,t){var n=St();if(n.firstCreatePass){var i=Ur(e);Fh(t,n.data,n.blueprint,i,!0),Fh(r,n.data,n.blueprint,i,!1)}}function Fh(e,r,t,n,i){if(e=dt(e),Array.isArray(e))for(var a=0;a>20;if(Co(e)||!e.multi){var O=new bs(l,i,B),J=Lh(u,r,i?h:h+_,v);-1===J?(bl(Es(c,s),o,u),Ph(o,e,r.length),r.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(O),s.push(O)):(t[J]=O,s[J]=O)}else{var te=Lh(u,r,h+_,v),ue=Lh(u,r,h,h+_),ye=ue>=0&&t[ue];if(i&&!ye||!i&&!(te>=0&&t[te])){bl(Es(c,s),o,u);var _e=function fF(e,r,t,n,i){var a=new bs(e,t,B);return a.multi=[],a.index=r,a.componentProviders=0,PC(a,i,n&&!t),a}(i?dF:cF,t.length,i,n,l);!i&&ye&&(t[ue].providerFactory=_e),Ph(o,e,r.length,0),r.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(_e),s.push(_e)}else Ph(o,e,te>-1?te:ue,PC(t[i?ue:te],l,!i&&n));!i&&n&&ye&&t[ue].componentProviders++}}}function Ph(e,r,t,n){var i=Co(r),a=function LR(e){return!!e.useClass}(r);if(i||a){var u=(a?dt(r.useClass):r).prototype.ngOnDestroy;if(u){var l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&r.multi){var c=l.indexOf(t);-1===c?l.push(t,[n,u]):l[c+1].push(n,u)}else l.push(t,u)}}}function PC(e,r,t){return t&&e.componentProviders++,e.multi.push(r)-1}function Lh(e,r,t,n){for(var i=t;i1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,i){return lF(n,i?i(e):e,r)}}}var hF=f(function e(){d(this,e)}),LC=f(function e(){d(this,e)}),pF=function(){function e(){d(this,e)}return f(e,[{key:"resolveComponentFactory",value:function(t){throw function vF(e){var r=Error("No component factory found for ".concat(Ot(e),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=e,r}(t)}}]),e}(),ka=function(){var e=f(function r(){d(this,r)});return e.NULL=new pF,e}();function gF(){return No(Dn(),Se())}function No(e,r){return new Ye(Sr(e,r))}var Ye=function(){var e=f(function r(t){d(this,r),this.nativeElement=t});return e.__NG_ELEMENT_ID__=gF,e}();function mF(e){return e instanceof Ye?e.nativeElement:e}var Js=f(function e(){d(this,e)}),Yr=function(){var e=f(function r(){d(this,r)});return e.__NG_ELEMENT_ID__=function(){return function _F(){var e=Se(),t=cr(Dn().index,e);return function yF(e){return e[11]}(ii(t)?t:e)}()},e}(),bF=function(){var e=f(function r(){d(this,r)});return e.\u0275prov=we({token:e,providedIn:"root",factory:function(){return null}}),e}(),ea=f(function e(r){d(this,e),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),CF=new ea("13.2.5"),Vh={};function Kl(e,r,t,n){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&n.push(_n(a)),jr(a))for(var o=10;o-1&&(Gf(t,i),El(n,i))}this._attachedToViewContainer=!1}zy(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){S_(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){fh(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){vh(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function SR(e,r,t){cl(!0);try{vh(e,r,t)}finally{cl(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Ue(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function C1(e,r){Ls(e,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Ue(902,"");this._appRef=t}}]),e}(),EF=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this,n))._view=n,i}return f(t,[{key:"detectChanges",value:function(){F_(this._view)}},{key:"checkNoChanges",value:function(){!function DR(e){cl(!0);try{F_(e)}finally{cl(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(eu),VC=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this)).ngModule=n,i}return f(t,[{key:"resolveComponentFactory",value:function(i){var a=Gn(i);return new Bh(a,this.ngModule)}}]),t}(ka);function BC(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&r.push({propName:e[t],templateName:t});return r}var Bh=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).componentDef=n,a.ngModule=i,a.componentType=n.type,a.selector=function j1(e){return e.map(H1).join(",")}(n.selectors),a.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],a.isBoundToModule=!!i,a}return f(t,[{key:"inputs",get:function(){return BC(this.componentDef.inputs)}},{key:"outputs",get:function(){return BC(this.componentDef.outputs)}},{key:"create",value:function(i,a,o,s){var ee,ye,u=(s=s||this.ngModule)?function wF(e,r){return{get:function(n,i,a){var o=e.get(n,Vh,a);return o!==Vh||i===Vh?o:r.get(n,i,a)}}}(i,s.injector):i,l=u.get(Js,Rm),c=u.get(bF,null),h=l.createRenderer(null,this.componentDef),v=this.componentDef.selectors[0][0]||"div",_=o?function w_(e,r,t){if(ln(e))return e.selectRootElement(r,t===Br.ShadowDom);var i="string"==typeof r?e.querySelector(r):r;return i.textContent="",i}(h,o,this.componentDef.encapsulation):Uf(l.createRenderer(null,this.componentDef),v,function kF(e){var r=e.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(v)),O=this.componentDef.onPush?576:528,J=function Z_(e,r){return{components:[],scheduler:e||h1,clean:AR,playerHandler:r||null,flags:0}}(),te=Ll(0,null,null,1,0,null,null,null,null,null),ue=Ns(null,te,J,O,null,null,l,h,c,u);dl(ue);try{var _e=function $_(e,r,t,n,i,a){var o=t[1];t[20]=e;var u=mo(o,20,2,"#host",null),l=u.mergedAttrs=r.hostAttrs;null!==l&&(Vl(u,l,!0),null!==e&&(gl(i,e,l),null!==u.classes&&Qf(i,e,u.classes),null!==u.styles&&n_(i,e,u.styles)));var c=n.createRenderer(e,r),h=Ns(t,E_(r),null,r.onPush?64:16,t[20],u,n,c,a||null,null);return o.firstCreatePass&&(bl(Es(u,t),o,r.type),T_(o,u),R_(u,t.length,1)),Nl(t,h),t[20]=h}(_,this.componentDef,ue,l,h);if(_)if(o)gl(h,_,["ng-version",CF.full]);else{var Te=function U1(e){for(var r=[],t=[],n=1,i=2;n0&&Qf(h,_,We.join(" "))}if(ye=nf(te,20),void 0!==a)for(var bt=ye.projection=[],on=0;on1&&void 0!==arguments[1]?arguments[1]:qt.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tt.Default;return i===qt||i===Mi||i===gh?this:this._r3Injector.get(i,a,o)}},{key:"destroy",value:function(){var i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(i){this.destroyCbs.push(i)}}]),t}(Mi),Hh=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this)).moduleType=n,null!==Er(n)&&function xF(e){var r=new Set;!function t(n){var i=Er(n,!0),a=i.id;null!==a&&(function jC(e,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Ot(r)," vs ").concat(Ot(r.name)))}(a,Vo.get(a),n),Vo.set(a,n));var l,u=Y(li(i.imports));try{for(u.s();!(l=u.n()).done;){var c=l.value;r.has(c)||(r.add(c),t(c))}}catch(h){u.e(h)}finally{u.f()}}(e)}(n),i}return f(t,[{key:"create",value:function(i){return new GC(this.moduleType,i)}}]),t}(HC);function tu(e,r,t){var n=Xn()+e,i=Se();return i[n]===at?di(i,n,t?r.call(t):r()):function js(e,r){return e[r]}(i,n)}function jh(e,r,t,n){return function zC(e,r,t,n,i,a){var o=r+t;return Kn(e,o,i)?di(e,o+1,a?n.call(a,i):n(i)):function nu(e,r){var t=e[r];return t===at?void 0:t}(e,o+1)}(Se(),Xn(),e,r,t,n)}var zF=function(e){p(t,e);var r=y(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d(this,t),(n=r.call(this)).__isAsync=i,n}return f(t,[{key:"emit",value:function(i){M(k(t.prototype),"next",this).call(this,i)}},{key:"subscribe",value:function(i,a,o){var s,u,l,c=i,h=a||function(){return null},v=o;if(i&&"object"==typeof i){var _=i;c=null===(s=_.next)||void 0===s?void 0:s.bind(_),h=null===(u=_.error)||void 0===u?void 0:u.bind(_),v=null===(l=_.complete)||void 0===l?void 0:l.bind(_)}this.__isAsync&&(h=Uh(h),c&&(c=Uh(c)),v&&(v=Uh(v)));var O=M(k(t.prototype),"subscribe",this).call(this,{next:c,error:h,complete:v});return i instanceof F&&i.add(O),O}}]),t}(Pe);function Uh(e){return function(r){setTimeout(e,void 0,r)}}var Dt=zF;function WF(){return this._results[Eo()]()}var YC=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d(this,e),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=Eo(),n=e.prototype;n[t]||(n[t]=WF)}return f(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Dt)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var i=this;i.dirty=!1;var a=Dr(t);(this._changesDetected=!function GM(e,r,t){if(e.length!==r.length)return!1;for(var n=0;n0;)this.remove(this.length-1)}},{key:"get",value:function(i){var a=XC(this._lContainer);return null!==a&&a[i]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(i,a,o){var s=i.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(i,a,o,s,u){var c,l=i&&!function Ss(e){return"function"==typeof e}(i);if(l)c=a;else{var h=a||{};c=h.index,o=h.injector,s=h.projectableNodes,u=h.ngModuleRef}var v=l?i:new Bh(Gn(i)),_=o||this.parentInjector;if(!u&&null==v.ngModule){var J=(l?_:this.parentInjector).get(Mi,null);J&&(u=J)}var te=v.create(_,s,void 0,u);return this.insert(te.hostView,c),te}},{key:"insert",value:function(i,a){var o=i._lView,s=o[1];if(function dM(e){return jr(e[3])}(o)){var u=this.indexOf(i);if(-1!==u)this.detach(u);else{var l=o[3],c=new $C(l,l[6],l[3]);c.detach(c.indexOf(i))}}var h=this._adjustIndex(a),v=this._lContainer;!function k1(e,r,t,n){var i=10+n,a=t.length;n>0&&(t[i-1][4]=r),n1&&void 0!==arguments[1]?arguments[1]:0;return null==i?this.length+a:i}}]),t}(Mr);function XC(e){return e[8]}function Gh(e){return e[8]||(e[8]=[])}function ZC(e,r){var t,n=r[e.index];if(jr(n))t=n;else{var i;if(8&e.type)i=_n(n);else{var a=r[11];i=a.createComment("");var o=Sr(e,r);ba(a,Tl(a,o),i,function x1(e,r){return ln(e)?e.nextSibling(r):r.nextSibling}(a,o),!1)}r[e.index]=t=I_(n,r,i,e),Nl(r,t)}return new $C(t,e,r)}var JF=function(){function e(r){d(this,e),this.queryList=r,this.matches=null}return f(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),eP=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d(this,e),this.queries=r}return f(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;d(this,e),this.predicate=r,this.flags=t,this.read=n}),tP=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d(this,e),this.queries=r}return f(e,[{key:"elementStart",value:function(t,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;d(this,e),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return f(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var i=this.metadata.predicate;if(Array.isArray(i))for(var a=0;a0)n.push(o[s/2]);else{for(var l=a[s+1],c=r[-u],h=10;h0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(u){return u.timeoutId!==s}),n(o._didWork,o.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(n,i,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,i,a){return[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),DE=function(){var e=function(){function r(){d(this,r),this._applications=new Map,iv.addToWindow(this)}return f(r,[{key:"registerApplication",value:function(n,i){this._applications.set(n,i)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return iv.findTestabilityInTree(this,n,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),LP=function(){function e(){d(this,e)}return f(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,i){return null}}]),e}(),iv=new LP;function VP(e,r,t){var n=new Hh(t);return Promise.resolve(n)}var AE=new Ne("AllowMultipleToken"),xE=f(function e(r,t){d(this,e),this.name=r,this.token=t});function HP(e){if(Xr&&!Xr.destroyed&&!Xr.injector.get(AE,!1))throw new Ue(400,"");Xr=e.get(RE);var t=e.get(CE,null);return t&&t.forEach(function(n){return n()}),Xr}function ME(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(r),i=new Ne(n);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=TE();if(!o||o.injector.get(AE,!1))if(e)e(t.concat(a).concat({provide:i,useValue:!0}));else{var s=t.concat(a).concat({provide:i,useValue:!0},{provide:mh,useValue:"platform"});HP(qt.create({providers:s,name:n}))}return jP()}}function jP(e){var r=TE();if(!r)throw new Ue(401,"");return r}function TE(){return Xr&&!Xr.destroyed?Xr:null}var RE=function(){var e=function(){function r(t){d(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return f(r,[{key:"bootstrapModuleFactory",value:function(n,i){var a=this,l=function UP(e,r){return"noop"===e?new PP:("zone.js"===e?void 0:e)||new st({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:st,useValue:l}];return l.run(function(){var h=qt.create({providers:c,parent:a.injector,name:n.moduleType.name}),v=n.create(h),_=v.injector.get(Xi,null);if(!_)throw new Ue(402,"");return l.runOutsideAngular(function(){var J=l.onError.subscribe({next:function(ue){_.handleError(ue)}});v.onDestroy(function(){av(a._modules,v),J.unsubscribe()})}),function GP(e,r,t){try{var n=t();return Ws(n)?n.catch(function(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}):n}catch(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}}(_,l,function(){var J=v.injector.get(Xh);return J.runInitializers(),J.donePromise.then(function(){return function yI(e){ur(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}(v.injector.get(Ti,Ul)||Ul),a._moduleDoBootstrap(v),v})})})}},{key:"bootstrapModule",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=OE({},a);return VP(0,0,n).then(function(s){return i.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(n){var i=n.injector.get(Zl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(o){return i.bootstrap(o)});else{if(!n.instance.ngDoBootstrap)throw new Ue(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Ue(404,"");this._modules.slice().forEach(function(i){return i.destroy()}),this._destroyListeners.forEach(function(i){return i()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(qt))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function OE(e,r){return Array.isArray(r)?r.reduce(OE,e):Object.assign(Object.assign({},e),r)}var Zl=function(){var e=function(){function r(t,n,i,a,o){var s=this;d(this,r),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new ct(function(c){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){c.next(s._stable),c.complete()})}),l=new ct(function(c){var h;s._zone.runOutsideAngular(function(){h=s._zone.onStable.subscribe(function(){st.assertNotInAngularZone(),ev(function(){!s._stable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks&&(s._stable=!0,c.next(!0))})})});var v=s._zone.onUnstable.subscribe(function(){st.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){c.next(!1)}))});return function(){h.unsubscribe(),v.unsubscribe()}});this.isStable=Qa(u,l.pipe(gm()))}return f(r,[{key:"bootstrap",value:function(n,i){var s,a=this;if(!this._initStatus.done)throw new Ue(405,"");s=n instanceof LC?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);var u=function BP(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Mi),c=s.create(qt.NULL,[],i||s.selector,u),h=c.location.nativeElement,v=c.injector.get(rv,null),_=v&&c.injector.get(DE);return v&&_&&_.registerApplication(h,v),c.onDestroy(function(){a.detachView(c.hostView),av(a.components,c),_&&_.unregisterApplication(h)}),this._loadComponent(c),c}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Ue(101,"");try{this._runningTick=!0;var o,a=Y(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(h){a.e(h)}finally{a.f()}}catch(h){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(h)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var i=n;this._views.push(i),i.attachToAppRef(this)}},{key:"detachView",value:function(n){var i=n;av(this._views,i),i.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Jh,[]).concat(this._bootstrapListeners).forEach(function(a){return a(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st),le(qt),le(Xi),le(ka),le(Xh))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function av(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var gr=function(){var e=f(function r(){d(this,r)});return e.__NG_ELEMENT_ID__=qP,e}();function qP(e){return function KP(e,r,t){if(ol(e)&&!t){var n=cr(e.index,r);return new eu(n,n)}return 47&e.type?new eu(r[16],r):null}(Dn(),Se(),16==(16&e))}var BE=function(){function e(){d(this,e)}return f(e,[{key:"supports",value:function(t){return Hs(t)}},{key:"create",value:function(t){return new XP(t)}}]),e}(),$P=function(r,t){return t},XP=function(){function e(r){d(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||$P}return f(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,i=this._removalsHead,a=0,o=null;n||i;){var s=!i||n&&n.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),n}(Da);return e.\u0275fac=function(t){return new(t||e)(le(ot))},e.\u0275prov=we({token:e,factory:function(){return function fL(){return new WE(le(ot))}()},providedIn:"platform"}),e}();function qE(){return!!window.history.pushState}function dv(e,r){if(0==e.length)return r;if(0==r.length)return e;var t=0;return e.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?e+r.substring(1):1==t?e+r:e+"/"+r}function KE(e){var r=e.match(/#|\?|$/),t=r&&r.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Ri(e){return e&&"?"!==e[0]?"?"+e:e}var Ho=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:function(){return function hL(e){var r=le(ot).location;return new QE(le(Da),r&&r.origin||"")}()},providedIn:"root"}),e}(),fv=new Ne("appBaseHref"),QE=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;if(d(this,n),(o=t.call(this))._platformLocation=i,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=a,o}return f(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return dv(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+Ri(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(Ho);return e.\u0275fac=function(t){return new(t||e)(le(Da),le(fv,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),vL=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._platformLocation=i,o._baseHref="",o._removeListenerFns=[],null!=a&&(o._baseHref=a),o}return f(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}},{key:"prepareExternalUrl",value:function(a){var o=dv(this._baseHref,a);return o.length>0?"#"+o:o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(Ho);return e.\u0275fac=function(t){return new(t||e)(le(Da),le(fv,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),Aa=function(){var e=function(){function r(t,n){var i=this;d(this,r),this._subject=new Dt,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=KE(YE(a)),this._platformStrategy.onPopState(function(o){i._subject.emit({url:i.path(!0),pop:!0,state:o.state,type:o.type})})}return f(r,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+Ri(i))}},{key:"normalize",value:function(n){return r.stripTrailingSlash(function gL(e,r){return e&&r.startsWith(e)?r.substring(e.length):r}(this._baseHref,YE(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ri(i)),a)}},{key:"replaceState",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ri(i)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var i,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,n)}},{key:"onUrlChange",value:function(n){var i=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){i._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(n,i)})}},{key:"subscribe",value:function(n,i,a){return this._subject.subscribe({next:n,error:i,complete:a})}}]),r}();return e.normalizeQueryParams=Ri,e.joinWithSlash=dv,e.stripTrailingSlash=KE,e.\u0275fac=function(t){return new(t||e)(le(Ho),le(Da))},e.\u0275prov=we({token:e,factory:function(){return function pL(){return new Aa(le(Ho),le(Da))}()},providedIn:"root"}),e}();function YE(e){return e.replace(/\/index.html$/,"")}function ik(e,r){r=encodeURIComponent(r);var n,t=Y(e.split(";"));try{for(t.s();!(n=t.n()).done;){var i=n.value,a=i.indexOf("="),s=K(-1==a?[i,""]:[i.slice(0,a),i.slice(a+1)],2),l=s[1];if(s[0].trim()===r)return decodeURIComponent(l)}}catch(c){t.e(c)}finally{t.f()}return null}var lc=function(){var e=function(){function r(t,n,i,a){d(this,r),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return f(r,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Hs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var i=this._keyValueDiffer.diff(this._rawClass);i&&this._applyKeyValueChanges(i)}}},{key:"_applyKeyValueChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachChangedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachRemovedItem(function(a){a.previousValue&&i._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Ot(a.item)));i._toggleClass(a.item,!0)}),n.forEachRemovedItem(function(a){return i._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!0)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!!n[a])}))}},{key:"_removeClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!1)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(n,i){var a=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(o){i?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(ou),B(Sa),B(Ye),B(Yr))},e.\u0275dir=Ee({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),eN=function(){function e(r,t,n,i){d(this,e),this.$implicit=r,this.ngForOf=t,this.index=n,this.count=i}return f(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Ev=function(){var e=function(){function r(t,n,i){d(this,r),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return f(r,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(n){var i=this,a=this._viewContainer;n.forEachOperation(function(c,h,v){if(null==c.previousIndex)a.createEmbeddedView(i._template,new eN(c.item,i._ngForOf,-1,-1),null===v?void 0:v);else if(null==v)a.remove(null===h?void 0:h);else if(null!==h){var _=a.get(h);a.move(_,v),ak(_,c)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(i,a);if(null==o)throw new Error("Could not find testability for element.");return o},Lt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Lt.getAllAngularRootElements=function(){return t.getAllRootElements()},Lt.frameworkStabilizers||(Lt.frameworkStabilizers=[]),Lt.frameworkStabilizers.push(function(a){var o=Lt.getAllAngularTestabilities(),s=o.length,u=!1,l=function(h){u=u||h,0==--s&&a(u)};o.forEach(function(c){c.whenStable(l)})})}},{key:"findTestabilityInTree",value:function(t,n,i){if(null==n)return null;var a=t.getTestability(n);return null!=a?a:i?vi().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function NP(e){iv=e}(new e)}}]),e}(),BN=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),hc=new Ne("EventManagerPlugins"),vc=function(){var e=function(){function r(t,n){var i=this;d(this,r),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=i}),this._plugins=t.slice().reverse()}return f(r,[{key:"addEventListener",value:function(n,i,a){return this._findPluginFor(i).addEventListener(n,i,a)}},{key:"addGlobalEventListener",value:function(n,i,a){return this._findPluginFor(i).addGlobalEventListener(n,i,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var i=this._eventNameToPlugin.get(n);if(i)return i;for(var a=this._plugins,o=0;o-1&&(o.splice(v,1),l+=h+".")}),l+=u,0!=o.length||0===u.length)return null;var c={};return c.domEventName=s,c.fullKey=l,c}},{key:"getEventFullKey",value:function(a){var o="",s=function ZN(e){var r=e.key;if(null==r){if(null==(r=e.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===e.location&&Ck.hasOwnProperty(r)&&(r=Ck[r]))}return YN[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),bk.forEach(function(u){u!=s&&(0,$N[u])(a)&&(o+=u+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(u){n.getEventFullKey(u)===a&&s.runGuarded(function(){return o(u)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),n}(hk);return e.\u0275fac=function(t){return new(t||e)(le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),n2=[{provide:pr,useValue:ck},{provide:CE,useValue:function JN(){IN.makeCurrent(),VN.init()},multi:!0},{provide:ot,useFactory:function t2(){return function sM(e){ef=e}(document),document},deps:[]}],r2=ME(aL,"browser",n2),a2=[{provide:mh,useValue:"root"},{provide:Xi,useFactory:function e2(){return new Xi},deps:[]},{provide:hc,useClass:KN,multi:!0,deps:[ot,st,pr]},{provide:hc,useClass:XN,multi:!0,deps:[ot]},{provide:gc,useClass:gc,deps:[vc,cu,au]},{provide:Js,useExisting:gc},{provide:vk,useExisting:cu},{provide:cu,useClass:cu,deps:[ot]},{provide:rv,useClass:rv,deps:[st]},{provide:vc,useClass:vc,deps:[hc,st]},{provide:Av,useClass:BN,deps:[]}],Ek=function(){var e=function(){function r(t){if(d(this,r),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return f(r,null,[{key:"withServerTransition",value:function(n){return{ngModule:r,providers:[{provide:au,useValue:n.appId},{provide:fk,useExisting:au},NN]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(e,12))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:a2,imports:[dc,oL]}),e}();"undefined"!=typeof window&&window;var mc=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:function(t){return t?new(t||e):le(Sk)},providedIn:"root"}),e}(),Sk=function(){var e=function(r){p(n,r);var t=y(n);function n(i){var a;return d(this,n),(a=t.call(this))._doc=i,a}return f(n,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case xt.NONE:return o;case xt.HTML:return si(o,"HTML")?fr(o):xy(this._doc,String(o)).toString();case xt.STYLE:return si(o,"Style")?fr(o):o;case xt.SCRIPT:if(si(o,"Script"))return fr(o);throw new Error("unsafe value used in a script context");case xt.URL:return by(o),si(o,"URL")?fr(o):Rs(String(o));case xt.RESOURCE_URL:if(si(o,"ResourceURL"))return fr(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function CT(e){return new gT(e)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function ET(e){return new mT(e)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function kT(e){return new yT(e)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function wT(e){return new _T(e)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function ST(e){return new bT(e)}(a)}}]),n}(mc);return e.\u0275fac=function(t){return new(t||e)(le(ot))},e.\u0275prov=we({token:e,factory:function(t){var n;return n=t?new t:function h2(e){return new Sk(e.get(ot))}(le(qt)),n},providedIn:"root"}),e}(),v2=Array.isArray,p2=Object.getPrototypeOf,g2=Object.prototype,m2=Object.keys;function Dk(e){if(1===e.length){var r=e[0];if(v2(r))return{args:r,keys:null};if(function y2(e){return e&&"object"==typeof e&&p2(e)===g2}(r)){var t=m2(r);return{args:t.map(function(n){return r[n]}),keys:t}}}return{args:e,keys:null}}var _2=Array.isArray;function Ov(e){return Xe(function(r){return function b2(e,r){return _2(r)?e.apply(void 0,E(r)):e(r)}(e,r)})}function Ak(e,r){return e.reduce(function(t,n,i){return t[n]=r[i],t},{})}function xk(){for(var e=arguments.length,r=new Array(e),t=0;te?{max:{max:e,actual:r.value}}:null}}(t)}},{key:"required",value:function(t){return Fk(t)}},{key:"requiredTrue",value:function(t){return function Pk(e){return!0===e.value?null:{required:!0}}(t)}},{key:"email",value:function(t){return function Lk(e){return ta(e.value)||S2.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function Nk(e){return function(r){return ta(r.value)||!Rk(r.value)?null:r.value.lengthe?{maxlength:{requiredLength:e,actualLength:r.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return function Bk(e){return e?("string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),r=new RegExp(t)):(t=e.toString(),r=e),function(n){if(ta(n.value))return null;var i=n.value;return r.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}):yc;var r,t}(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return Wk(t)}},{key:"composeAsync",value:function(t){return qk(t)}}]),e}();function Fk(e){return ta(e.value)?{required:!0}:null}function yc(e){return null}function Hk(e){return null!=e}function jk(e){var r=Ws(e)?In(e):e;return Ah(r),r}function Uk(e){var r={};return e.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function Gk(e,r){return r.map(function(t){return t(e)})}function zk(e){return e.map(function(r){return function A2(e){return!e.validate}(r)?r:function(t){return r.validate(t)}})}function Wk(e){if(!e)return null;var r=e.filter(Hk);return 0==r.length?null:function(t){return Uk(Gk(t,r))}}function Iv(e){return null!=e?Wk(zk(e)):null}function qk(e){if(!e)return null;var r=e.filter(Hk);return 0==r.length?null:function(t){return xk(Gk(t,r).map(jk)).pipe(Xe(Uk))}}function Fv(e){return null!=e?qk(zk(e)):null}function Kk(e,r){return null===e?[r]:Array.isArray(e)?[].concat(E(e),[r]):[e,r]}function Qk(e){return e._rawValidators}function Yk(e){return e._rawAsyncValidators}function Pv(e){return e?Array.isArray(e)?e:[e]:[]}function _c(e,r){return Array.isArray(e)?e.includes(r):e===r}function $k(e,r){var t=Pv(r);return Pv(e).forEach(function(i){_c(t,i)||t.push(i)}),t}function Xk(e,r){return Pv(r).filter(function(t){return!_c(e,t)})}var Zk=function(){function e(){d(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return f(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=Iv(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Fv(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,n){return!!this.control&&this.control.hasError(t,n)}},{key:"getError",value:function(t,n){return this.control?this.control.getError(t,n):null}}]),e}(),Ii=function(e){p(t,e);var r=y(t);function t(){var n;return d(this,t),(n=r.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return f(t)}(Zk),tr=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(Zk),Jk=function(){function e(r){d(this,e),this._cd=r}return f(e,[{key:"is",value:function(t){var n,i,a;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[t])}}]),e}(),du=function(){var e=function(r){p(n,r);var t=y(n);function n(i){return d(this,n),t.call(this,i)}return f(n)}(Jk);return e.\u0275fac=function(t){return new(t||e)(B(Ii,2))},e.\u0275dir=Ee({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&It("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[Re]}),e}(),fu=function(){var e=function(r){p(n,r);var t=y(n);function n(i){return d(this,n),t.call(this,i)}return f(n)}(Jk);return e.\u0275fac=function(t){return new(t||e)(B(tr,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&It("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[Re]}),e}();function hu(e,r){Vv(e,r),r.valueAccessor.writeValue(e.value),function P2(e,r){r.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&tw(e,r)})}(e,r),function N2(e,r){var t=function(i,a){r.valueAccessor.writeValue(i),a&&r.viewToModelUpdate(i)};e.registerOnChange(t),r._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,r),function L2(e,r){r.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&tw(e,r),"submit"!==e.updateOn&&e.markAsTouched()})}(e,r),function F2(e,r){if(r.valueAccessor.setDisabledState){var t=function(i){r.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),r._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,r)}function Ec(e,r){var n=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(n),r.valueAccessor.registerOnTouched(n)),wc(e,r),e&&(r._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function kc(e,r){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function Vv(e,r){var t=Qk(e);null!==r.validator?e.setValidators(Kk(t,r.validator)):"function"==typeof t&&e.setValidators([t]);var n=Yk(e);null!==r.asyncValidator?e.setAsyncValidators(Kk(n,r.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var i=function(){return e.updateValueAndValidity()};kc(r._rawValidators,i),kc(r._rawAsyncValidators,i)}function wc(e,r){var t=!1;if(null!==e){if(null!==r.validator){var n=Qk(e);if(Array.isArray(n)&&n.length>0){var i=n.filter(function(u){return u!==r.validator});i.length!==n.length&&(t=!0,e.setValidators(i))}}if(null!==r.asyncValidator){var a=Yk(e);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(u){return u!==r.asyncValidator});o.length!==a.length&&(t=!0,e.setAsyncValidators(o))}}}var s=function(){};return kc(r._rawValidators,s),kc(r._rawAsyncValidators,s),t}function tw(e,r){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function nw(e,r){Vv(e,r)}function rw(e,r){e._syncPendingControls(),r.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function jv(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var vu="VALID",Sc="INVALID",Go="PENDING",pu="DISABLED";function Gv(e){return(Dc(e)?e.validators:e)||null}function iw(e){return Array.isArray(e)?Iv(e):e||null}function zv(e,r){return(Dc(r)?r.asyncValidators:e)||null}function aw(e){return Array.isArray(e)?Fv(e):e||null}function Dc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var ow=function(r){return r instanceof cw},Wv=function(r){return r instanceof Kv};function sw(e){return ow(e)?e.value:e.getRawValue()}function uw(e,r){var t=Wv(e),n=e.controls;if(!(t?Object.keys(n):n).length)throw new Ue(1e3,"");if(!n[r])throw new Ue(1001,"")}function lw(e,r){Wv(e),e._forEachChild(function(n,i){if(void 0===r[i])throw new Ue(1002,"")})}var qv=function(){function e(r,t){d(this,e),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=iw(this._rawValidators),this._composedAsyncValidatorFn=aw(this._rawAsyncValidators)}return f(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===vu}},{key:"invalid",get:function(){return this.status===Sc}},{key:"pending",get:function(){return this.status==Go}},{key:"disabled",get:function(){return this.status===pu}},{key:"enabled",get:function(){return this.status!==pu}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=iw(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=aw(t)}},{key:"addValidators",value:function(t){this.setValidators($k(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators($k(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Xk(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Xk(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return _c(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return _c(this._rawAsyncValidators,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(n){n.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(n){n.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=Go,!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]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=pu,this.errors=null,this._forEachChild(function(i){i.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:n})),this._onDisabledChange.forEach(function(i){return i(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=vu,this._forEachChild(function(i){i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!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(),(this.status===vu||this.status===Go)&&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(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?pu:vu}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=Go,this._hasOwnPendingAsyncValidator=!0;var i=jk(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(a){n._hasOwnPendingAsyncValidator=!1,n.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function j2(e,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var n=e;return r.forEach(function(i){n=Wv(n)?n.controls.hasOwnProperty(i)?n.controls[i]:null:function(r){return r instanceof G2}(n)&&n.at(i)||null}),n}(this,t,".")}},{key:"getError",value:function(t,n){var i=n?this.get(n):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{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 Dt,this.statusChanges=new Dt}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?pu:this.errors?Sc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Go)?Go:this._anyControlsHaveStatus(Sc)?Sc:vu}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.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){Dc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),cw=function(e){p(t,e);var r=y(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return d(this,t),(n=r.call(this,Gv(a),zv(o,a))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(i),n._setUpdateStrategy(a),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),Dc(a)&&a.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(i)?i.value:i),n}return f(t,[{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=i,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(i,a)}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(i),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(i){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(i){this._onChange.push(i)}},{key:"_unregisterOnChange",value:function(i){jv(this._onChange,i)}},{key:"registerOnDisabledChange",value:function(i){this._onDisabledChange.push(i)}},{key:"_unregisterOnDisabledChange",value:function(i){jv(this._onDisabledChange,i)}},{key:"_forEachChild",value:function(i){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}]),t}(qv),Kv=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,Gv(i),zv(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return f(t,[{key:"registerControl",value:function(i,a){return this.controls[i]?this.controls[i]:(this.controls[i]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],a&&this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lw(this,i),Object.keys(i).forEach(function(s){uw(a,s),a.controls[s].setValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(Object.keys(i).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(i,a,o){return i[o]=sw(a),i})}},{key:"_syncPendingControls",value:function(){var i=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&i(s,o)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){a.setParent(i),a._registerOnCollectionChange(i._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(i){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),t}(qv),G2=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,Gv(i),zv(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return f(t,[{key:"at",value:function(i){return this.controls[i]}},{key:"push",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(i,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),a&&(this.controls.splice(i,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lw(this,i),i.forEach(function(s,u){uw(a,u),a.at(u).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(i.forEach(function(s,u){a.at(u)&&a.at(u).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(i){return sw(i)})}},{key:"clear",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}},{key:"_syncPendingControls",value:function(){var i=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){this.controls.forEach(function(a,o){i(a,o)})}},{key:"_updateValue",value:function(){var i=this;this.value=this.controls.filter(function(a){return a.enabled||i.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(i){return this.controls.some(function(a){return a.enabled&&i(a)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){return i._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,i=Y(this.controls);try{for(i.s();!(a=i.n()).done;)if(a.value.enabled)return!1}catch(s){i.e(s)}finally{i.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}]),t}(qv),z2={provide:tr,useExisting:Tt(function(){return ra})},gu=function(){return Promise.resolve(null)}(),ra=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this)).submitted=!1,o._directives=new Set,o.ngSubmit=new Dt,o.form=new Kv({},Iv(i),Fv(a)),o}return f(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),hu(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.add(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),o._directives.delete(a)})}},{key:"addFormGroup",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path),u=new Kv({});nw(u,a),s.registerControl(a.name,u),u.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;gu.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,rw(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),n}(tr);return e.\u0275fac=function(t){return new(t||e)(B(Vn,10),B(na,10))},e.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&Ge("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[At([z2]),Re]}),e}(),q2={provide:Ii,useExisting:Tt(function(){return zo})},hw=function(){return Promise.resolve(null)}(),zo=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this))._changeDetectorRef=u,l.control=new cw,l._registered=!1,l.update=new Dt,l._parent=i,l._setValidators(a),l._setAsyncValidators(o),l.valueAccessor=function Hv(e,r){if(!r)return null;Array.isArray(r);var t=void 0,n=void 0,i=void 0;return r.forEach(function(a){a.constructor===Uo?t=a:function H2(e){return Object.getPrototypeOf(e.constructor)===Ma}(a)?n=a:i=a}),i||n||t||null}(Q(l),s),l}return f(n,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),function Bv(e,r){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){hu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(a){var o=this;hw.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,u=""===s||s&&"false"!==s;hw.then(function(){var l;u&&!o.control.disabled?o.control.disable():!u&&o.control.disabled&&o.control.enable(),null===(l=o._changeDetectorRef)||void 0===l||l.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function Cc(e,r){return[].concat(E(r.path),[e])}(a,this._parent):[a]}}]),n}(Ii);return e.\u0275fac=function(t){return new(t||e)(B(tr,9),B(Vn,10),B(na,10),B(Ir,10),B(gr,8))},e.\u0275dir=Ee({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[At([q2]),Re,Wn]}),e}(),mu=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),pw=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),Z2={provide:tr,useExisting:Tt(function(){return Ac})},Ac=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this)).validators=i,o.asyncValidators=a,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new Dt,o._setValidators(i),o._setAsyncValidators(a),o}return f(n,[{key:"ngOnChanges",value:function(a){this._checkFormPresent(),a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(wc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(a){var o=this.form.get(a.path);return hu(o,a),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(a),o}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){Ec(a.control||null,a),jv(this.directives,a)}},{key:"addFormGroup",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormGroup",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"addFormArray",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormArray",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormArray",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){this.form.get(a.path).setValue(o)}},{key:"onSubmit",value:function(a){return this.submitted=!0,rw(this.form,this.directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_updateDomValue",value:function(){var a=this;this.directives.forEach(function(o){var s=o.control,u=a.form.get(o.path);s!==u&&(Ec(s||null,o),ow(u)&&(hu(u,o),o.control=u))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(a){var o=this.form.get(a.path);nw(o,a),o.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(a){if(this.form){var o=this.form.get(a.path);if(o){var s=function V2(e,r){return wc(e,r)}(o,a);s&&o.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Vv(this.form,this),this._oldForm&&wc(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(tr);return e.\u0275fac=function(t){return new(t||e)(B(Vn,10),B(na,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&Ge("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[At([Z2]),Re,Wn]}),e}();function uV(e){return null!=e&&!1!==e&&"false"!=="".concat(e)}var Ta=function(){var e=function(){function r(){d(this,r),this._validator=yc}return f(r,[{key:"ngOnChanges",value:function(n){if(this.inputName in n){var i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):yc,this._onChange&&this._onChange()}}},{key:"validate",value:function(n){return this._validator(n)}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"enabled",value:function(n){return null!=n}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,features:[Wn]}),e}(),dV={provide:Vn,useExisting:Tt(function(){return Wo}),multi:!0},Wo=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputName="required",i.normalizeInput=function(a){return uV(a)},i.createValidator=function(a){return Fk},i}return f(n,[{key:"enabled",value:function(a){return a}}]),n}(Ta);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&Kt("required",n._enabled?"":null)},inputs:{required:"required"},features:[At([dV]),Re]}),e}(),mV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[pw]]}),e}(),yV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[mV]}),e}();function Je(){for(var e=arguments.length,r=new Array(e),t=0;t0){var a=n.slice(0,i),o=a.toLowerCase(),s=n.slice(i+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(n){var i=r[n],a=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(t.headers.set(a,i),t.maybeSetNormalizedName(n,a))})}:this.headers=new Map}return f(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){n.headers.set(i,t.headers.get(i)),n.normalizedNames.set(i,t.normalizedNames.get(i))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,n);var a=("a"===t.op?this.headers.get(n):void 0)||[];a.push.apply(a,E(i)),this.headers.set(n,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(n);if(!s)return;0===(s=s.filter(function(u){return-1===o.indexOf(u)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(n.normalizedNames.get(i),n.headers.get(i))})}}]),e}(),_V=function(){function e(){d(this,e)}return f(e,[{key:"encodeKey",value:function(t){return Fw(t)}},{key:"encodeValue",value:function(t){return Fw(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function bV(e,r){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(i){var a=i.indexOf("="),s=K(-1==a?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,a)),r.decodeValue(i.slice(a+1))],2),u=s[0],l=s[1],c=t.get(u)||[];c.push(l),t.set(u,c)}),t}var CV=/%(\d[a-f0-9])/gi,EV={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fw(e){return encodeURIComponent(e).replace(CV,function(r,t){var n;return null!==(n=EV[t])&&void 0!==n?n:r})}function Pw(e){return"".concat(e)}var Ko=function(){function e(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(d(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _V,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=bV(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var i=t.fromObject[n];r.map.set(n,Array.isArray(i)?i:[i])})):this.map=null}return f(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[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,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(i){var a=t[i];Array.isArray(a)?a.forEach(function(o){n.push({param:i,value:o,op:"a"})}):n.push({param:i,value:a,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var i=t.encoder.encodeKey(n);return t.map.get(n).map(function(a){return i+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),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(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var i=("a"===n.op?t.map.get(n.param):void 0)||[];i.push(Pw(n.value)),t.map.set(n.param,i);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var a=t.map.get(n.param)||[],o=a.indexOf(Pw(n.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(n.param,a):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),kV=function(){function e(){d(this,e),this.map=new Map}return f(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Lw(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Nw(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Vw(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Jv=function(){function e(r,t,n,i){var a;if(d(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function wV(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,a=i):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new yu),this.context||(this.context=new kV),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,u=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,h=t.params||this.params,v=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(_,O){return _.set(O,t.setHeaders[O])},c)),t.setParams&&(h=Object.keys(t.setParams).reduce(function(_,O){return _.set(O,t.setParams[O])},h)),new e(i,a,s,{params:h,headers:c,context:v,reportProgress:l,responseType:o,withCredentials:u})}}]),e}(),kn=function(){return(kn=kn||{})[kn.Sent=0]="Sent",kn[kn.UploadProgress=1]="UploadProgress",kn[kn.ResponseHeader=2]="ResponseHeader",kn[kn.DownloadProgress=3]="DownloadProgress",kn[kn.Response=4]="Response",kn[kn.User=5]="User",kn}(),ep=f(function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";d(this,e),this.headers=r.headers||new yu,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),DV=function(e){p(t,e);var r=y(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),(n=r.call(this,i)).type=kn.ResponseHeader,n}return f(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ep),Bw=function(e){p(t,e);var r=y(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),(n=r.call(this,i)).type=kn.Response,n.body=void 0!==i.body?i.body:null,n}return f(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ep),Hw=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),i.error=n.error||null,i}return f(t)}(ep);function tp(e,r){return{body:r,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Ra=function(){var e=function(){function r(t){d(this,r),this.handler=t}return f(r,[{key:"request",value:function(n,i){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Jv)s=n;else{var u=void 0;u=o.headers instanceof yu?o.headers:new yu(o.headers);var l=void 0;o.params&&(l=o.params instanceof Ko?o.params:new Ko({fromObject:o.params})),s=new Jv(n,i,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=Je(s).pipe(qo(function(v){return a.handler.handle(v)}));if(n instanceof Jv||"events"===o.observe)return c;var h=c.pipe(fn(function(v){return v instanceof Bw}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return h.pipe(Xe(function(v){if(null!==v.body&&!(v.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return v.body}));case"blob":return h.pipe(Xe(function(v){if(null!==v.body&&!(v.body instanceof Blob))throw new Error("Response is not a Blob.");return v.body}));case"text":return h.pipe(Xe(function(v){if(null!==v.body&&"string"!=typeof v.body)throw new Error("Response is not a string.");return v.body}));default:return h.pipe(Xe(function(v){return v.body}))}case"response":return h;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,i)}},{key:"get",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,i)}},{key:"head",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,i)}},{key:"jsonp",value:function(n,i){return this.request("JSONP",n,{params:(new Ko).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,i)}},{key:"patch",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,tp(a,i))}},{key:"post",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,tp(a,i))}},{key:"put",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,tp(a,i))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ow))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),jw=function(){function e(r,t){d(this,e),this.next=r,this.interceptor=t}return f(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),Uw=new Ne("HTTP_INTERCEPTORS"),AV=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"intercept",value:function(n,i){return i.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),xV=/^\)\]\}',?\n/,Gw=function(){var e=function(){function r(t){d(this,r),this.xhrFactory=t}return f(r,[{key:"handle",value:function(n){var i=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ct(function(a){var o=i.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach(function(ue,ee){return o.setRequestHeader(ue,ee.join(","))}),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var s=n.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(n.responseType){var u=n.responseType.toLowerCase();o.responseType="json"!==u?u:"text"}var l=n.serializeBody(),c=null,h=function(){if(null!==c)return c;var ee=o.statusText||"OK",ye=new yu(o.getAllResponseHeaders()),_e=function MV(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return c=new DV({headers:ye,status:o.status,statusText:ee,url:_e})},v=function(){var ee=h(),ye=ee.headers,_e=ee.status,Te=ee.statusText,Ie=ee.url,We=null;204!==_e&&(We=void 0===o.response?o.responseText:o.response),0===_e&&(_e=We?200:0);var bt=_e>=200&&_e<300;if("json"===n.responseType&&"string"==typeof We){var on=We;We=We.replace(xV,"");try{We=""!==We?JSON.parse(We):null}catch(Jt){We=on,bt&&(bt=!1,We={error:Jt,text:We})}}bt?(a.next(new Bw({body:We,headers:ye,status:_e,statusText:Te,url:Ie||void 0})),a.complete()):a.error(new Hw({error:We,headers:ye,status:_e,statusText:Te,url:Ie||void 0}))},_=function(ee){var ye=h(),Te=new Hw({error:ee,status:o.status||0,statusText:o.statusText||"Unknown Error",url:ye.url||void 0});a.error(Te)},O=!1,J=function(ee){O||(a.next(h()),O=!0);var ye={type:kn.DownloadProgress,loaded:ee.loaded};ee.lengthComputable&&(ye.total=ee.total),"text"===n.responseType&&!!o.responseText&&(ye.partialText=o.responseText),a.next(ye)},te=function(ee){var ye={type:kn.UploadProgress,loaded:ee.loaded};ee.lengthComputable&&(ye.total=ee.total),a.next(ye)};return o.addEventListener("load",v),o.addEventListener("error",_),o.addEventListener("timeout",_),o.addEventListener("abort",_),n.reportProgress&&(o.addEventListener("progress",J),null!==l&&o.upload&&o.upload.addEventListener("progress",te)),o.send(l),a.next({type:kn.Sent}),function(){o.removeEventListener("error",_),o.removeEventListener("abort",_),o.removeEventListener("load",v),o.removeEventListener("timeout",_),n.reportProgress&&(o.removeEventListener("progress",J),null!==l&&o.upload&&o.upload.removeEventListener("progress",te)),o.readyState!==o.DONE&&o.abort()}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Av))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),np=new Ne("XSRF_COOKIE_NAME"),rp=new Ne("XSRF_HEADER_NAME"),zw=f(function e(){d(this,e)}),TV=function(){var e=function(){function r(t,n,i){d(this,r),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return f(r,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ik(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(ot),le(pr),le(np))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),ip=function(){var e=function(){function r(t,n){d(this,r),this.tokenService=t,this.headerName=n}return f(r,[{key:"intercept",value:function(n,i){var a=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||a.startsWith("http://")||a.startsWith("https://"))return i.handle(n);var o=this.tokenService.getToken();return null!==o&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,o)})),i.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(zw),le(rp))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),RV=function(){var e=function(){function r(t,n){d(this,r),this.backend=t,this.injector=n,this.chain=null}return f(r,[{key:"handle",value:function(n){if(null===this.chain){var i=this.injector.get(Uw,[]);this.chain=i.reduceRight(function(a,o){return new jw(a,o)},this.backend)}return this.chain.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Iw),le(qt))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),OV=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"disable",value:function(){return{ngModule:r,providers:[{provide:ip,useClass:AV}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[n.cookieName?{provide:np,useValue:n.cookieName}:[],n.headerName?{provide:rp,useValue:n.headerName}:[]]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[ip,{provide:Uw,useExisting:ip,multi:!0},{provide:zw,useClass:TV},{provide:np,useValue:"XSRF-TOKEN"},{provide:rp,useValue:"X-XSRF-TOKEN"}]}),e}(),IV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[Ra,{provide:Ow,useClass:RV},Gw,{provide:Iw,useExisting:Gw}],imports:[[OV.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Ww=f(function e(){d(this,e)}),FV=f(function e(){d(this,e)}),Fi="*";function _u(e,r){return{type:7,name:e,definitions:r,options:{}}}function Pi(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:e}}function qw(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:r}}function Ln(e){return{type:6,styles:e,offset:null}}function Oa(e,r,t){return{type:0,name:e,styles:r,options:t}}function ia(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:r,options:t}}function ap(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:r,options:t}}function Kw(e){Promise.resolve(null).then(e)}var bu=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return f(e,[{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;Kw(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(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),Qw=function(){function e(r){var t=this;d(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;var n=0,i=0,a=0,o=this.players.length;0==o?Kw(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++n==o&&t._onFinish()}),s.onDestroy(function(){++i==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,u){return Math.max(s,u.totalTime)},0)}return f(e,[{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 n=t*this.totalTime;this.players.forEach(function(i){var a=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,i){return null===n||i.totalTime>n.totalTime?i:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),Et=!1;function Yw(e){return new Ue(3e3,Et)}function nB(e){return new Ue(3502,Et)}function iB(){return new Ue(3300,Et)}function aB(e){return new Ue(3504,Et)}function hB(){return"undefined"!=typeof window&&void 0!==window.document}function sp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function aa(e){switch(e.length){case 0:return new bu;case 1:return e[0];default:return new Qw(e)}}function $w(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],u=-1,l=null;if(n.forEach(function(c){var h=c.offset,v=h==u,_=v&&l||{};Object.keys(c).forEach(function(O){var J=O,te=c[O];if("offset"!==O)switch(J=r.normalizePropertyName(J,o),te){case"!":te=i[O];break;case Fi:te=a[O];break;default:te=r.normalizeStyleValue(O,J,te,o)}_[J]=te}),v||s.push(_),l=_,u=h}),o.length)throw nB();return s}function up(e,r,t,n){switch(r){case"start":e.onStart(function(){return n(t&&lp(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&lp(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&lp(t,"destroy",e))})}}function lp(e,r,t){var n=t.totalTime,a=cp(e.element,e.triggerName,e.fromState,e.toState,r||e.phaseName,null==n?e.totalTime:n,!!t.disabled),o=e._data;return null!=o&&(a._data=o),a}function cp(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:r,fromState:t,toState:n,phaseName:i,totalTime:a,disabled:!!o}}function mr(e,r,t){var n;return e instanceof Map?(n=e.get(r))||e.set(r,n=t):(n=e[r])||(n=e[r]=t),n}function Xw(e){var r=e.indexOf(":");return[e.substring(1,r),e.substr(r+1)]}var dp=function(r,t){return!1},Zw=function(r,t,n){return[]},Jw=null;function fp(e){var r=e.parentNode||e.host;return r===Jw?null:r}(sp()||"undefined"!=typeof Element)&&(hB()?(Jw=function(){return document.documentElement}(),dp=function(r,t){for(;t;){if(t===r)return!0;t=fp(t)}return!1}):dp=function(r,t){return r.contains(t)},Zw=function(r,t,n){if(n)return Array.from(r.querySelectorAll(t));var i=r.querySelector(t);return i?[i]:[]});var Ia=null,eS=!1;function tS(e){Ia||(Ia=function gB(){return"undefined"!=typeof document?document.body:null}()||{},eS=!!Ia.style&&"WebkitAppearance"in Ia.style);var r=!0;return Ia.style&&!function pB(e){return"ebkit"==e.substring(1,6)}(e)&&!(r=e in Ia.style)&&eS&&(r="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ia.style),r}var nS=dp,rS=Zw,iS=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"validateStyleProperty",value:function(n){return tS(n)}},{key:"matchesElement",value:function(n,i){return!1}},{key:"containsElement",value:function(n,i){return nS(n,i)}},{key:"getParentElement",value:function(n){return fp(n)}},{key:"query",value:function(n,i,a){return rS(n,i,a)}},{key:"computeStyle",value:function(n,i,a){return a||""}},{key:"animate",value:function(n,i,a,o,s){return new bu(a,o)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),hp=function(){var e=f(function r(){d(this,r)});return e.NOOP=new iS,e}(),oS="ng-enter",vp="ng-leave",Mc="ng-trigger",Tc=".ng-trigger",sS="ng-animating",pp=".ng-animating";function Fa(e){if("number"==typeof e)return e;var r=e.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:gp(parseFloat(r[1]),r[2])}function gp(e,r){return"s"===r?1e3*e:e}function Rc(e,r,t){return e.hasOwnProperty("duration")?e:function _B(e,r,t){var i,a=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(Yw()),{duration:0,delay:0,easing:""};i=gp(parseFloat(s[1]),s[2]);var u=s[3];null!=u&&(a=gp(parseFloat(u),s[4]));var l=s[5];l&&(o=l)}else i=e;if(!t){var c=!1,h=r.length;i<0&&(r.push(function LV(){return new Ue(3100,Et)}()),c=!0),a<0&&(r.push(function NV(){return new Ue(3101,Et)}()),c=!0),c&&r.splice(h,0,Yw())}return{duration:i,delay:a,easing:o}}(e,r,t)}function Qo(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function oa(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var n in e)t[n]=e[n];else Qo(e,t);return t}function uS(e,r,t){return t?r+":"+t+";":""}function lS(e){for(var r="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void r.push(n);e=n}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function JV(e){return new Ue(3015,Et)}()),r;var a=i[1],o=i[2],s=i[3];r.push(fS(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(fS(s,a))}(n,t,r)}):t.push(e),t}var Nc=new Set(["true","1"]),Vc=new Set(["false","0"]);function fS(e,r){var t=Nc.has(e)||Vc.has(e),n=Nc.has(r)||Vc.has(r);return function(i,a){var o="*"==e||e==i,s="*"==r||r==a;return!o&&t&&"boolean"==typeof i&&(o=i?Nc.has(e):Vc.has(e)),!s&&n&&"boolean"==typeof a&&(s=a?Nc.has(r):Vc.has(r)),o&&s}}var TB=new RegExp("s*".concat(":self","s*,?"),"g");function vS(e,r,t,n){return new RB(e).build(r,t,n)}var RB=function(){function e(r){d(this,e),this._driver=r}return f(e,[{key:"build",value:function(t,n,i){var a=new FB(n);this._resetContextStyleTimingState(a);var o=yr(this,Cu(t),a);return a.unsupportedCSSPropertiesFound.size&&E(a.unsupportedCSSPropertiesFound.keys()),o}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var i=this,a=n.queryCount=0,o=n.depCount=0,s=[],u=[];return"@"==t.name.charAt(0)&&n.errors.push(function UV(){return new Ue(3006,Et)}()),t.definitions.forEach(function(l){if(i._resetContextStyleTimingState(n),0==l.type){var c=l,h=c.name;h.toString().split(/\s*,\s*/).forEach(function(_){c.name=_,s.push(i.visitState(c,n))}),c.name=h}else if(1==l.type){var v=i.visitTransition(l,n);a+=v.queryCount,o+=v.depCount,u.push(v)}else n.errors.push(function GV(){return new Ue(3007,Et)}())}),{type:7,name:t.name,states:s,transitions:u,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,n){var i=this.visitStyle(t.styles,n),a=t.options&&t.options.params||null;if(i.containsDynamicStyles){var o=new Set,s=a||{};i.styles.forEach(function(l){if(Bc(l)){var c=l;Object.keys(c).forEach(function(h){cS(c[h]).forEach(function(v){s.hasOwnProperty(v)||o.add(v)})})}}),o.size&&(Ic(o.values()),n.errors.push(function zV(e,r){return new Ue(3008,Et)}()))}return{type:0,name:t.name,style:i,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var i=yr(this,Cu(t.animation),n);return{type:1,matchers:AB(t.expr,n.errors),animation:i,queryCount:n.queryCount,depCount:n.depCount,options:La(t.options)}}},{key:"visitSequence",value:function(t,n){var i=this;return{type:2,steps:t.steps.map(function(a){return yr(i,a,n)}),options:La(t.options)}}},{key:"visitGroup",value:function(t,n){var i=this,a=n.currentTime,o=0,s=t.steps.map(function(u){n.currentTime=a;var l=yr(i,u,n);return o=Math.max(o,n.currentTime),l});return n.currentTime=o,{type:3,steps:s,options:La(t.options)}}},{key:"visitAnimate",value:function(t,n){var i=function LB(e,r){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return _p(Rc(e,r).duration,0,"");var i=e,a=i.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(a){var o=_p(0,0,"");return o.dynamic=!0,o.strValue=i,o}return _p((t=t||Rc(i,r)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=i;var a,o=t.styles?t.styles:Ln({});if(5==o.type)a=this.visitKeyframes(o,n);else{var s=t.styles,u=!1;if(!s){u=!0;var l={};i.easing&&(l.easing=i.easing),s=Ln(l)}n.currentTime+=i.duration+i.delay;var c=this.visitStyle(s,n);c.isEmptyStep=u,a=c}return n.currentAnimateTimings=null,{type:4,timings:i,style:a,options:null}}},{key:"visitStyle",value:function(t,n){var i=this._makeStyleAst(t,n);return this._validateStyleAst(i,n),i}},{key:"_makeStyleAst",value:function(t,n){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==Fi?i.push(s):n.errors.push(function WV(e){return new Ue(3002,Et)}()):i.push(s)}):i.push(t.styles);var a=!1,o=null;return i.forEach(function(s){if(Bc(s)){var u=s,l=u.easing;if(l&&(o=l,delete u.easing),!a)for(var c in u)if(u[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,n){var i=this,a=n.currentAnimateTimings,o=n.currentTime,s=n.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(u){"string"!=typeof u&&Object.keys(u).forEach(function(l){if(!i._driver.validateStyleProperty(l))return delete u[l],void n.unsupportedCSSPropertiesFound.add(l);var c=n.collectedStyles[n.currentQuerySelector],h=c[l],v=!0;h&&(s!=o&&s>=h.startTime&&o<=h.endTime&&(n.errors.push(function qV(e,r,t,n,i){return new Ue(3010,Et)}()),v=!1),s=h.startTime),v&&(c[l]={startTime:s,endTime:o}),n.options&&function bB(e,r,t){var n=r.params||{},i=cS(e);i.length&&i.forEach(function(a){n.hasOwnProperty(a)||t.push(function VV(e){return new Ue(3001,Et)}())})}(u[l],n.options,n.errors)})})}},{key:"visitKeyframes",value:function(t,n){var i=this,a={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function KV(){return new Ue(3011,Et)}()),a;var s=0,u=[],l=!1,c=!1,h=0,v=t.steps.map(function(ye){var _e=i._makeStyleAst(ye,n),Te=null!=_e.offset?_e.offset:function PB(e){if("string"==typeof e)return null;var r=null;if(Array.isArray(e))e.forEach(function(n){if(Bc(n)&&n.hasOwnProperty("offset")){var i=n;r=parseFloat(i.offset),delete i.offset}});else if(Bc(e)&&e.hasOwnProperty("offset")){var t=e;r=parseFloat(t.offset),delete t.offset}return r}(_e.styles),Ie=0;return null!=Te&&(s++,Ie=_e.offset=Te),c=c||Ie<0||Ie>1,l=l||Ie0&&s<_?n.errors.push(function $V(){return new Ue(3202,Et)}()):0==s&&(O=1/(_-1));var J=_-1,te=n.currentTime,ue=n.currentAnimateTimings,ee=ue.duration;return v.forEach(function(ye,_e){var Te=O>0?_e==J?1:O*_e:u[_e],Ie=Te*ee;n.currentTime=te+ue.delay+Ie,ue.duration=Ie,i._validateStyleAst(ye,n),ye.offset=Te,a.styles.push(ye)}),a}},{key:"visitReference",value:function(t,n){return{type:8,animation:yr(this,Cu(t.animation),n),options:La(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:La(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:La(t.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,a=t.options||{};n.queryCount++,n.currentQuery=t;var o=function OB(e){var r=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(e=e.replace(TB,"")),e=e.replace(/@\*/g,Tc).replace(/@\w+/g,function(t){return Tc+"-"+t.substr(1)}).replace(/:animating/g,pp),[e,r]}(t.selector),s=K(o,2),u=s[0],l=s[1];n.currentQuerySelector=i.length?i+" "+u:u,mr(n.collectedStyles,n.currentQuerySelector,{});var c=yr(this,Cu(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:l,animation:c,originalSelector:t.selector,options:La(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push(function XV(){return new Ue(3013,Et)}());var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Rc(t.timings,n.errors,!0);return{type:12,animation:yr(this,Cu(t.animation),n),timings:i,options:null}}}]),e}(),FB=f(function e(r){d(this,e),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set});function Bc(e){return!Array.isArray(e)&&"object"==typeof e}function La(e){return e?(e=Qo(e)).params&&(e.params=function IB(e){return e?Qo(e):null}(e.params)):e={},e}function _p(e,r,t){return{duration:e,delay:r,easing:t}}function bp(e,r,t,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:r,preStyleProps:t,postStyleProps:n,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}var Cp=function(){function e(){d(this,e),this._map=new Map}return f(e,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,n){var i,a=this._map.get(t);a||this._map.set(t,a=[]),(i=a).push.apply(i,E(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),BB=new RegExp(":enter","g"),jB=new RegExp(":leave","g");function gS(e,r,t,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new UB).buildKeyframes(e,r,t,n,i,a,o,s,u,l)}var UB=function(){function e(){d(this,e)}return f(e,[{key:"buildKeyframes",value:function(t,n,i,a,o,s,u,l,c){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new Cp;var v=new GB(t,n,c,a,o,h,[]);v.options=l,v.currentTimeline.setStyles([s],null,v.errors,l),yr(this,i,v);var _=v.timelines.filter(function(ue){return ue.containsAnimation()});if(Object.keys(u).length){for(var O,J=_.length-1;J>=0;J--){var te=_[J];if(te.element===n){O=te;break}}O&&!O.allowOnlyTimelineStyles()&&O.setStyles([u],null,v.errors,l)}return _.length?_.map(function(ue){return ue.buildKeyframes()}):[bp(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var i=n.subInstructions.get(n.element);if(i){var a=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(i,a,a.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var i=n.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,i){var o=n.currentTimeline.currentTime,s=null!=i.duration?Fa(i.duration):null,u=null!=i.delay?Fa(i.delay):null;return 0!==s&&t.forEach(function(l){var c=n.appendInstructionToTimeline(l,s,u);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),yr(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var i=this,a=n.subContextCount,o=n,s=t.options;if(s&&(s.params||s.delay)&&((o=n.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Hc);var u=Fa(s.delay);o.delayNextStep(u)}t.steps.length&&(t.steps.forEach(function(l){return yr(i,l,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var i=this,a=[],o=n.currentTimeline.currentTime,s=t.options&&t.options.delay?Fa(t.options.delay):0;t.steps.forEach(function(u){var l=n.createSubContext(t.options);s&&l.delayNextStep(s),yr(i,u,l),o=Math.max(o,l.currentTimeline.currentTime),a.push(l.currentTimeline)}),a.forEach(function(u){return n.currentTimeline.mergeTimelineCollectedStyles(u)}),n.transformIntoNewTimeline(o),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var i=t.strValue;return Rc(n.params?Oc(i,n.params,n.errors):i,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var i=n.currentAnimateTimings=this._visitTiming(t.timings,n),a=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(i.duration),this.visitStyle(o,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var i=n.currentTimeline,a=n.currentAnimateTimings;!a&&i.getCurrentStyleProperties().length&&i.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var i=n.currentAnimateTimings,a=n.currentTimeline.duration,o=i.duration,u=n.createSubContext().currentTimeline;u.easing=i.easing,t.styles.forEach(function(l){u.forwardTime((l.offset||0)*o),u.setStyles(l.styles,l.easing,n.errors,n.options),u.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(u),n.transformIntoNewTimeline(a+o),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var i=this,a=n.currentTimeline.currentTime,o=t.options||{},s=o.delay?Fa(o.delay):0;s&&(6===n.previousNode.type||0==a&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Hc);var u=a,l=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=l.length;var c=null;l.forEach(function(h,v){n.currentQueryIndex=v;var _=n.createSubContext(t.options,h);s&&_.delayNextStep(s),h===n.element&&(c=_.currentTimeline),yr(i,t.animation,_),_.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,_.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(u),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var i=n.parentContext,a=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),u=s*(n.currentQueryTotal-1),l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=u-l;break;case"full":l=i.currentStaggerTime}var h=n.currentTimeline;l&&h.delayNextStep(l);var v=h.currentTime;yr(this,t.animation,n),n.previousNode=t,i.currentStaggerTime=a.currentTime-v+(a.startTime-i.currentTimeline.startTime)}}]),e}(),Hc={},GB=function(){function e(r,t,n,i,a,o,s,u){d(this,e),this._driver=r,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new mS(this._driver,t,0),s.push(this.currentTimeline)}return f(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var i=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=Fa(a.duration)),null!=a.delay&&(o.delay=Fa(a.delay));var s=a.params;if(s){var u=o.params;u||(u=this.options.params={}),Object.keys(s).forEach(function(l){(!n||!u.hasOwnProperty(l))&&(u[l]=Oc(s[l],u,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var i=t.params={};Object.keys(n).forEach(function(a){i[a]=n[a]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=n||this.element,o=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Hc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,i){var a={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new zB(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{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,n,i,a,o,s){var u=[];if(a&&u.push(this.element),t.length>0){t=(t=t.replace(BB,"."+this._enterClassName)).replace(jB,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),u.push.apply(u,E(c))}return!o&&0==u.length&&s.push(function ZV(e){return new Ue(3014,Et)}()),u}}]),e}(),mS=function(){function e(r,t,n,i){d(this,e),this._driver=r,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return f(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,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,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(i){n._backFill[i]=n._globalTimelineStyles[i]||Fi,n._currentKeyframe[i]=Fi}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,i,a){var o=this;n&&(this._previousKeyframe.easing=n);var s=a&&a.params||{},u=function WB(e,r){var n,t={};return e.forEach(function(i){"*"===i?(n=n||Object.keys(r)).forEach(function(a){t[a]=Fi}):oa(i,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(u).forEach(function(l){var c=Oc(u[l],s,i);o._pendingStyles[l]=c,o._localTimelineStyles.hasOwnProperty(l)||(o._backFill[l]=o._globalTimelineStyles.hasOwnProperty(l)?o._globalTimelineStyles[l]:Fi),o._updateStyle(l,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,i=Object.keys(n);0!=i.length&&(this._pendingStyles={},i.forEach(function(a){t._currentKeyframe[a]=n[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var i=t._localTimelineStyles[n];t._pendingStyles[n]=i,t._updateStyle(n,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(i){var a=n._styleSummary[i],o=t._styleSummary[i];(!a||o.time>a.time)&&n._updateStyle(i,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,i=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(h,v){var _=oa(h,!0);Object.keys(_).forEach(function(O){var J=_[O];"!"==J?n.add(O):J==Fi&&i.add(O)}),a||(_.offset=v/t.duration),o.push(_)});var s=n.size?Ic(n.values()):[],u=i.size?Ic(i.values()):[];if(a){var l=o[0],c=Qo(l);l.offset=0,c.offset=1,o=[l,c]}return bp(this.element,o,s,u,this.duration,this.startTime,this.easing,!1)}}]),e}(),zB=function(e){p(t,e);var r=y(t);function t(n,i,a,o,s,u){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return d(this,t),(l=r.call(this,n,i,u.delay)).keyframes=a,l.preStyleProps=o,l.postStyleProps=s,l._stretchStartingKeyframe=c,l.timings={duration:u.duration,delay:u.delay,easing:u.easing},l}return f(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var i=this.keyframes,a=this.timings,o=a.delay,s=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&o){var l=[],c=s+o,h=o/c,v=oa(i[0],!1);v.offset=0,l.push(v);var _=oa(i[0],!1);_.offset=yS(h),l.push(_);for(var O=i.length-1,J=1;J<=O;J++){var te=oa(i[J],!1);te.offset=yS((o+te.offset*s)/c),l.push(te)}s=c,o=0,u="",i=l}return bp(this.element,i,this.preStyleProps,this.postStyleProps,s,o,u,!0)}}]),t}(mS);function yS(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(e*t)/t}var Ep=f(function e(){d(this,e)}),qB=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"normalizePropertyName",value:function(i,a){return yp(i)}},{key:"normalizeStyleValue",value:function(i,a,o,s){var u="",l=o.toString().trim();if(KB[a]&&0!==o&&"0"!==o)if("number"==typeof o)u="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push(function jV(e,r){return new Ue(3005,Et)}())}return l+u}}]),t}(Ep),KB=function(){return function QB(e){var r={};return e.forEach(function(t){return r[t]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function _S(e,r,t,n,i,a,o,s,u,l,c,h,v){return{type:0,element:e,triggerName:r,isRemovalTransition:i,fromState:t,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:v}}var kp={},bS=function(){function e(r,t,n){d(this,e),this._triggerName=r,this.ast=t,this._stateStyles=n}return f(e,[{key:"match",value:function(t,n,i,a){return function YB(e,r,t,n,i){return e.some(function(a){return a(r,t,n,i)})}(this.ast.matchers,t,n,i,a)}},{key:"buildStyles",value:function(t,n,i){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(n,i):{};return o?o.buildStyles(n,i):s}},{key:"build",value:function(t,n,i,a,o,s,u,l,c,h){var v=[],_=this.ast.options&&this.ast.options.params||kp,J=this.buildStyles(i,u&&u.params||kp,v),te=l&&l.params||kp,ue=this.buildStyles(a,te,v),ee=new Set,ye=new Map,_e=new Map,Te="void"===a,Ie={params:Object.assign(Object.assign({},_),te)},We=h?[]:gS(t,n,this.ast.animation,o,s,J,ue,Ie,c,v),bt=0;if(We.forEach(function(Jt){bt=Math.max(Jt.duration+Jt.delay,bt)}),v.length)return _S(n,this._triggerName,i,a,Te,J,ue,[],[],ye,_e,bt,v);We.forEach(function(Jt){var Un=Jt.element,ni=mr(ye,Un,{});Jt.preStyleProps.forEach(function(br){return ni[br]=!0});var ji=mr(_e,Un,{});Jt.postStyleProps.forEach(function(br){return ji[br]=!0}),Un!==n&&ee.add(Un)});var on=Ic(ee.values());return _S(n,this._triggerName,i,a,Te,J,ue,We,on,ye,_e,bt)}}]),e}(),$B=function(){function e(r,t,n){d(this,e),this.styles=r,this.defaultParams=t,this.normalizer=n}return f(e,[{key:"buildStyles",value:function(t,n){var i=this,a={},o=Qo(this.defaultParams);return Object.keys(t).forEach(function(s){var u=t[s];null!=u&&(o[s]=u)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var u=s;Object.keys(u).forEach(function(l){var c=u[l];c.length>1&&(c=Oc(c,o,n));var h=i.normalizer.normalizePropertyName(l,n);c=i.normalizer.normalizeStyleValue(l,h,c,n),a[h]=c})}}),a}}]),e}(),ZB=function(){function e(r,t,n){var i=this;d(this,e),this.name=r,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(a){i.states[a.name]=new $B(a.style,a.options&&a.options.params||{},n)}),CS(this.states,"true","1"),CS(this.states,"false","0"),t.transitions.forEach(function(a){i.transitionFactories.push(new bS(r,a,i.states))}),this.fallbackTransition=function JB(e,r,t){return new bS(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return f(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,i,a){return this.transitionFactories.find(function(s){return s.match(t,n,i,a)})||null}},{key:"matchStyles",value:function(t,n,i){return this.fallbackTransition.buildStyles(t,n,i)}}]),e}();function CS(e,r,t){e.hasOwnProperty(r)?e.hasOwnProperty(t)||(e[t]=e[r]):e.hasOwnProperty(t)&&(e[r]=e[t])}var e3=new Cp,t3=function(){function e(r,t,n){d(this,e),this.bodyNode=r,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return f(e,[{key:"register",value:function(t,n){var i=[],o=vS(this._driver,n,i,[]);if(i.length)throw function rB(e){return new Ue(3503,Et)}();this._animations[t]=o}},{key:"_buildPlayer",value:function(t,n,i){var a=t.element,o=$w(this._driver,this._normalizer,a,t.keyframes,n,i);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var u,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],l=new Map;if(s?(u=gS(this._driver,n,s,oS,vp,{},{},a,e3,o)).forEach(function(v){var _=mr(l,v.element,{});v.postStyleProps.forEach(function(O){return _[O]=null})}):(o.push(iB()),u=[]),o.length)throw aB();l.forEach(function(v,_){Object.keys(v).forEach(function(O){v[O]=i._driver.computeStyle(_,O,Fi)})});var c=u.map(function(v){var _=l.get(v.element);return i._buildPlayer(v,{},_)}),h=aa(c);return this._playersById[t]=h,h.onDestroy(function(){return i.destroy(t)}),this.players.push(h),h}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw function oB(e){return new Ue(3301,Et)}();return n}},{key:"listen",value:function(t,n,i,a){var o=cp(n,"","","");return up(this._getPlayer(t),i,o,a),function(){}}},{key:"command",value:function(t,n,i,a){if("register"!=i)if("create"!=i){var 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(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,a[0]||{});else this.register(t,a[0])}}]),e}(),ES="ng-animate-queued",wp="ng-animate-disabled",a3="ng-star-inserted",s3=[],kS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},u3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fr="__ng_removed",Sp=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";d(this,e),this.namespaceId=t;var n=r&&r.hasOwnProperty("value"),i=n?r.value:r;if(this.value=f3(i),n){var a=Qo(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return f(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var i=this.options.params;Object.keys(n).forEach(function(a){null==i[a]&&(i[a]=n[a])})}}}]),e}(),Eu="void",Dp=new Sp(Eu),l3=function(){function e(r,t,n){d(this,e),this.id=r,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Pr(t,this._hostClassName)}return f(e,[{key:"listen",value:function(t,n,i,a){var o=this;if(!this._triggers.hasOwnProperty(n))throw function sB(e,r){return new Ue(3302,Et)}();if(null==i||0==i.length)throw function uB(e){return new Ue(3303,Et)}();if(!function h3(e){return"start"==e||"done"==e}(i))throw function lB(e,r){return new Ue(3400,Et)}();var s=mr(this._elementListeners,t,[]),u={name:n,phase:i,callback:a};s.push(u);var l=mr(this._engine.statesByElement,t,{});return l.hasOwnProperty(n)||(Pr(t,Mc),Pr(t,Mc+"-"+n),l[n]=Dp),function(){o._engine.afterFlush(function(){var c=s.indexOf(u);c>=0&&s.splice(c,1),o._triggers[n]||delete l[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw function cB(e){return new Ue(3401,Et)}();return n}},{key:"trigger",value:function(t,n,i){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(n),u=new Ap(this.id,n,t),l=this._engine.statesByElement.get(t);l||(Pr(t,Mc),Pr(t,Mc+"-"+n),this._engine.statesByElement.set(t,l={}));var c=l[n],h=new Sp(i,this.id),v=i&&i.hasOwnProperty("value");!v&&c&&h.absorbOptions(c.options),l[n]=h,c||(c=Dp);var _=h.value===Eu;if(_||c.value!==h.value){var ue=mr(this._engine.playersByElement,t,[]);ue.forEach(function(_e){_e.namespaceId==a.id&&_e.triggerName==n&&_e.queued&&_e.destroy()});var ee=s.matchTransition(c.value,h.value,t,h.params),ye=!1;if(!ee){if(!o)return;ee=s.fallbackTransition,ye=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:ee,fromState:c,toState:h,player:u,isFallbackTransition:ye}),ye||(Pr(t,ES),u.onStart(function(){Yo(t,ES)})),u.onDone(function(){var _e=a.players.indexOf(u);_e>=0&&a.players.splice(_e,1);var Te=a._engine.playersByElement.get(t);if(Te){var Ie=Te.indexOf(u);Ie>=0&&Te.splice(Ie,1)}}),this.players.push(u),ue.push(u),u}if(!g3(c.params,h.params)){var O=[],J=s.matchStyles(c.value,c.params,O),te=s.matchStyles(h.value,h.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(function(){Pa(t,J),pi(t,te)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(i,a){delete i[t]}),this._elementListeners.forEach(function(i,a){n._elementListeners.set(a,i.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(i){return i.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var i=this,a=this._engine.driver.query(t,Tc,!0);a.forEach(function(o){if(!o[Fr]){var s=i._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(u){return u.triggerLeaveAnimation(o,n,!1,!0)}):i.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return i.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,n,i,a){var o=this,s=this._engine.statesByElement.get(t),u=new Map;if(s){var l=[];if(Object.keys(s).forEach(function(c){if(u.set(c,s[c].value),o._triggers[c]){var h=o.trigger(t,c,Eu,a);h&&l.push(h)}}),l.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,u),i&&aa(l).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,i=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(i&&a){var o=new Set;i.forEach(function(s){var u=s.name;if(!o.has(u)){o.add(u);var c=n._triggers[u].fallbackTransition,h=a[u]||Dp,v=new Sp(Eu),_=new Ap(n.id,u,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:u,transition:c,fromState:h,toState:v,player:_,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var i=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var u=t;u=u.parentNode;)if(a.statesByElement.get(u)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,n);else{var c=t[Fr];(!c||c===kS)&&(a.afterFlush(function(){return i.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Pr(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,i=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,u=n._elementListeners.get(s);u&&u.forEach(function(l){if(l.name==a.triggerName){var c=cp(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,up(a.player,l.phase,c,l.callback)}}),o.markedForDestroy?n._engine.afterFlush(function(){o.destroy()}):i.push(a)}}),this._queue=[],i.sort(function(a,o){var s=a.transition.ast.depCount,u=o.transition.ast.depCount;return 0==s||0==u?s-u:n._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(i){return i.element===t})||n}}]),e}(),c3=function(){function e(r,t,n){d(this,e),this.bodyNode=r,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(i,a){}}return f(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(i){i.queued&&t.push(i)})}),t}},{key:"createNamespace",value:function(t,n){var i=new l3(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[t]=i}},{key:"_balanceNamespaceList",value:function(t,n){var i=this._namespaceList,a=this.namespacesByHostElement,o=i.length-1;if(o>=0){var s=!1;if(void 0!==this.driver.getParentElement)for(var u=this.driver.getParentElement(n);u;){var l=a.get(u);if(l){var c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}u=this.driver.getParentElement(u)}else for(var h=o;h>=0;h--)if(this.driver.containsElement(i[h].hostElement,n)){i.splice(h+1,0,t),s=!0;break}s||i.unshift(t)}else i.push(t);return a.set(n,t),t}},{key:"register",value:function(t,n){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,n)),i}},{key:"registerTrigger",value:function(t,n,i){var a=this._namespaceLookup[t];a&&a.register(n,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var i=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(a.hostElement),delete i._namespaceLookup[t];var o=i._namespaceList.indexOf(a);o>=0&&i._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,i=this.statesByElement.get(t);if(i)for(var a=Object.keys(i),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){var u=this._fetchNamespace(t);u&&u.insertNode(n,i)}a&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Pr(t,wp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Yo(t,wp))}},{key:"removeNode",value:function(t,n,i,a){if(jc(n)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(n,a):this.markElementAsRemoved(t,n,!1,a),i){var s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,a)}}else this._onRemovalComplete(n,a)}},{key:"markElementAsRemoved",value:function(t,n,i,a,o){this.collectedLeaveElements.push(n),n[Fr]={namespaceId:t,setForRemoval:a,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,n,i,a,o){return jc(n)?this._fetchNamespace(t).listen(n,i,a,o):function(){}}},{key:"_buildInstruction",value:function(t,n,i,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,a,t.fromState.options,t.toState.options,n,o)}},{key:"destroyInnerAnimations",value:function(t){var n=this,i=this.driver.query(t,Tc,!0);i.forEach(function(a){return n.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,pp,!0)).forEach(function(a){return n.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(i){i.queued?i.markedForDestroy=!0:i.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(i){return i.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return aa(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var i,n=this,a=t[Fr];if(a&&a.setForRemoval){if(t[Fr]=kS,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(i=t.classList)||void 0===i?void 0:i.contains(wp))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){n.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(v,_){return t._balanceNamespaceList(v,_)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;ni--)this._namespaceList[ni].drainQueuedTransitions(n).forEach(function(je){var rt=je.player,ut=je.element;if(Jt.push(rt),i.collectedEnterElements.length){var pn=ut[Fr];if(pn&&pn.setForMove){if(pn.previousTriggersValues&&pn.previousTriggersValues.has(je.triggerName)){var fs=pn.previousTriggersValues.get(je.triggerName),da=i.statesByElement.get(je.element);da&&da[je.triggerName]&&(da[je.triggerName].value=fs)}return void rt.destroy()}}var Xu=!_||!i.driver.containsElement(_,ut),Od=bt.get(ut),Xg=te.get(ut),Nn=i._buildInstruction(je,a,Xg,Od,Xu);if(Nn.errors&&Nn.errors.length)Un.push(Nn);else{if(Xu)return rt.onStart(function(){return Pa(ut,Nn.fromStyles)}),rt.onDestroy(function(){return pi(ut,Nn.toStyles)}),void o.push(rt);if(je.isFallbackTransition)return rt.onStart(function(){return Pa(ut,Nn.fromStyles)}),rt.onDestroy(function(){return pi(ut,Nn.toStyles)}),void o.push(rt);var Id=[];Nn.timelines.forEach(function(Gi){Gi.stretchStartingKeyframe=!0,i.disabledNodes.has(Gi.element)||Id.push(Gi)}),Nn.timelines=Id,a.append(ut,Nn.timelines),u.push({instruction:Nn,player:rt,element:ut}),Nn.queriedElements.forEach(function(Gi){return mr(l,Gi,[]).push(rt)}),Nn.preStyleProps.forEach(function(Gi,Zu){var Fd=Object.keys(Gi);if(Fd.length){var Ka=c.get(Zu);Ka||c.set(Zu,Ka=new Set),Fd.forEach(function(Zg){return Ka.add(Zg)})}}),Nn.postStyleProps.forEach(function(Gi,Zu){var Fd=Object.keys(Gi),Ka=h.get(Zu);Ka||h.set(Zu,Ka=new Set),Fd.forEach(function(Zg){return Ka.add(Zg)})})}});if(Un.length){var br=[];Un.forEach(function(je){br.push(function fB(e,r){return new Ue(3505,Et)}())}),Jt.forEach(function(je){return je.destroy()}),this.reportError(br)}var Ui=new Map,ca=new Map;u.forEach(function(je){var rt=je.element;a.has(rt)&&(ca.set(rt,rt),i._beforeAnimationBuild(je.player.namespaceId,je.instruction,Ui))}),o.forEach(function(je){var rt=je.element;i._getPreviousPlayers(rt,!1,je.namespaceId,je.triggerName,null).forEach(function(pn){mr(Ui,rt,[]).push(pn),pn.destroy()})});var nx=ee.filter(function(je){return xS(je,c,h)}),Rd=new Map;SS(Rd,this.driver,_e,h,Fi).forEach(function(je){xS(je,c,h)&&nx.push(je)});var Wg=new Map;J.forEach(function(je,rt){SS(Wg,i.driver,new Set(je),c,"!")}),nx.forEach(function(je){var rt=Rd.get(je),ut=Wg.get(je);Rd.set(je,Object.assign(Object.assign({},rt),ut))});var qg=[],rx=[],ix={};u.forEach(function(je){var rt=je.element,ut=je.player,pn=je.instruction;if(a.has(rt)){if(v.has(rt))return ut.onDestroy(function(){return pi(rt,pn.toStyles)}),ut.disabled=!0,ut.overrideTotalTime(pn.totalTime),void o.push(ut);var fs=ix;if(ca.size>1){for(var da=rt,Xu=[];da=da.parentNode;){var Od=ca.get(da);if(Od){fs=Od;break}Xu.push(da)}Xu.forEach(function(Id){return ca.set(Id,fs)})}var Xg=i._buildAnimation(ut.namespaceId,pn,Ui,s,Wg,Rd);if(ut.setRealPlayer(Xg),fs===ix)qg.push(ut);else{var Nn=i.playersByElement.get(fs);Nn&&Nn.length&&(ut.parentPlayer=aa(Nn)),o.push(ut)}}else Pa(rt,pn.fromStyles),ut.onDestroy(function(){return pi(rt,pn.toStyles)}),rx.push(ut),v.has(rt)&&o.push(ut)}),rx.forEach(function(je){var rt=s.get(je.element);if(rt&&rt.length){var ut=aa(rt);je.setRealPlayer(ut)}}),o.forEach(function(je){je.parentPlayer?je.syncPlayerEvents(je.parentPlayer):je.destroy()});for(var Kg=0;Kg0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,i):new bu(t.duration,t.delay)}}]),e}(),Ap=function(){function e(r,t,n){d(this,e),this.namespaceId=r,this.triggerName=t,this.element=n,this._player=new bu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return f(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){n._queuedCallbacks[i].forEach(function(a){return up(t,i,void 0,a)})}),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 n=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){mr(this._queuedCallbacks,t,[]).push(n)}},{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 n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function f3(e){return null!=e?e:null}function jc(e){return e&&1===e.nodeType}function wS(e,r){var t=e.style.display;return e.style.display=null!=r?r:"none",t}function SS(e,r,t,n,i){var a=[];t.forEach(function(u){return a.push(wS(u))});var o=[];n.forEach(function(u,l){var c={};u.forEach(function(h){var v=c[h]=r.computeStyle(l,h,i);(!v||0==v.length)&&(l[Fr]=u3,o.push(l))}),e.set(l,c)});var s=0;return t.forEach(function(u){return wS(u,a[s++])}),o}function DS(e,r){var t=new Map;if(e.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var i=new Set(r),a=new Map;function o(s){if(!s)return 1;var u=a.get(s);if(u)return u;var l=s.parentNode;return u=t.has(l)?l:i.has(l)?1:o(l),a.set(s,u),u}return r.forEach(function(s){var u=o(s);1!==u&&t.get(u).push(s)}),t}function Pr(e,r){var t;null===(t=e.classList)||void 0===t||t.add(r)}function Yo(e,r){var t;null===(t=e.classList)||void 0===t||t.remove(r)}function v3(e,r,t){aa(t).onDone(function(){return e.processLeaveNode(r)})}function AS(e,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function m3(e,r){var t=null,n=null;return Array.isArray(r)&&r.length?(t=xp(r[0]),r.length>1&&(n=xp(r[r.length-1]))):r&&(t=xp(r)),t||n?new y3(e,t,n):null}var y3=function(){var e=function(){function r(t,n,i){d(this,r),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return f(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&pi(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(pi(this._element,this._initialStyles),this._endStyles&&(pi(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Pa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pa(this._element,this._endStyles),this._endStyles=null),pi(this._element,this._initialStyles),this._state=3)}}]),r}();return e.initialStylesByElement=new WeakMap,e}();function xp(e){for(var r=null,t=Object.keys(e),n=0;n5&&void 0!==arguments[5]?arguments[5]:[],u=0==a?"both":"forwards",l={duration:i,delay:a,fill:u};o&&(l.easing=o);var c={},h=s.filter(function(_){return _ instanceof MS});kB(i,a)&&h.forEach(function(_){var O=_.currentSnapshot;Object.keys(O).forEach(function(J){return c[J]=O[J]})});var v=m3(t,n=wB(t,n=n.map(function(_){return oa(_,!1)}),c));return new MS(t,n,l,v)}}]),e}(),C3=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=i.createRenderer(a.body,{id:"0",encapsulation:Br.None,styles:[],data:{animation:[]}}),o}return f(n,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?qw(a):a;return TS(this._renderer,null,o,"register",[s]),new E3(o,this._renderer)}}]),n}(Ww);return e.\u0275fac=function(t){return new(t||e)(le(Js),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),E3=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this))._id=n,a._renderer=i,a}return f(t,[{key:"create",value:function(i,a){return new k3(this._id,i,a||{},this._renderer)}}]),t}(FV),k3=function(){function e(r,t,n,i){d(this,e),this.id=r,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return f(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,i),this.engine.onInsert(this.namespaceId,n,t,a)}},{key:"removeChild",value:function(t,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate,i)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,i,a){this.delegate.setAttribute(t,n,i,a)}},{key:"removeAttribute",value:function(t,n,i){this.delegate.removeAttribute(t,n,i)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,i,a){this.delegate.setStyle(t,n,i,a)}},{key:"removeStyle",value:function(t,n,i){this.delegate.removeStyle(t,n,i)}},{key:"setProperty",value:function(t,n,i){"@"==n.charAt(0)&&n==RS?this.disableAnimations(t,!!i):this.delegate.setProperty(t,n,i)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,i){return this.delegate.listen(t,n,i)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),S3=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,i,a,o)).factory=n,s.namespaceId=i,s}return f(t,[{key:"setProperty",value:function(i,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==RS?this.disableAnimations(i,o=void 0===o||!!o):this.engine.process(this.namespaceId,i,a.substr(1),o):this.delegate.setProperty(i,a,o)}},{key:"listen",value:function(i,a,o){var s=this;if("@"==a.charAt(0)){var u=function D3(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(i),l=a.substr(1),c="";if("@"!=l.charAt(0)){var h=function A3(e){var r=e.indexOf(".");return[e.substring(0,r),e.substr(r+1)]}(l),v=K(h,2);l=v[0],c=v[1]}return this.engine.listen(this.namespaceId,u,l,c,function(_){s.factory.scheduleListenerCallback(_._data||-1,o,_)})}return this.delegate.listen(i,a,o)}}]),t}(OS),x3=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){return d(this,n),t.call(this,i.body,a,o)}return f(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(Uc);return e.\u0275fac=function(t){return new(t||e)(le(ot),le(hp),le(Ep))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),gi=new Ne("AnimationModuleType"),IS=[{provide:Ww,useClass:C3},{provide:Ep,useFactory:function M3(){return new qB}},{provide:Uc,useClass:x3},{provide:Js,useFactory:function T3(e,r,t){return new w3(e,r,t)},deps:[gc,Uc,st]}],FS=[{provide:hp,useFactory:function(){return new b3}},{provide:gi,useValue:"BrowserAnimations"}].concat(IS),R3=[{provide:hp,useClass:iS},{provide:gi,useValue:"NoopAnimations"}].concat(IS),O3=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"withConfig",value:function(n){return{ngModule:r,providers:n.disableAnimations?R3:FS}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:FS,imports:[Ek]}),e}(),_r=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this))._value=n,i}return f(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(i){var a=M(k(t.prototype),"_subscribe",this).call(this,i);return!a.closed&&i.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(i){M(k(t.prototype),"next",this).call(this,this._value=i)}}]),t}(Pe);function PS(e){for(var r in e){var t=e[r]||"";switch(r){case"display":e.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+r]=t;break;case"flex-direction":e["-webkit-flex-direction"]=t=t||"row",e["flex-direction"]=t;break;case"order":e.order=e["-webkit-"+r]=isNaN(+t)?"0":t}}return e}var Mp="inline",zc=["row","column","row-reverse","column-reverse"];function LS(e){var t=K(NS(e),3);return function F3(e){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}(t[0],t[1],t[2])}function NS(e){var r,n=K((e=null!==(r=null==e?void 0:e.toLowerCase())&&void 0!==r?r:"").split(" "),3),i=n[0],a=n[1],o=n[2];return zc.find(function(s){return s===i})||(i=zc[0]),a===Mp&&(a=o!==Mp?o:"",o=Mp),[i,I3(a),!!o]}function ku(e){return K(NS(e),1)[0].indexOf("row")>-1}function I3(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}function Li(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;d(this,e),this.matches=r,this.mediaQuery=t,this.mqAlias=n,this.suffix=i,this.priority=a,this.property=""}return f(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),N3=function(){var e=function(){function r(){d(this,r),this.stylesheet=new Map}return f(r,[{key:"addStyleToElement",value:function(n,i,a){var o=this.stylesheet.get(n);o?o.set(i,a):this.stylesheet.set(n,new Map([[i,a]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(n,i){var a=this.stylesheet.get(n),o="";if(a){var s=a.get(i);("number"==typeof s||"string"==typeof s)&&(o=s+"")}return o}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Rp={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ti=new Ne("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Rp}}),$o=new Ne("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Op=new Ne("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function BS(e,r){return e=e?e.clone():new wu,r&&(e.mqAlias=r.alias,e.mediaQuery=r.mediaQuery,e.suffix=r.suffix,e.priority=r.priority),e}var hn=function(){function e(){d(this,e),this.shouldCache=!0}return f(e,[{key:"sideEffect",value:function(t,n,i){}}]),e}(),Qt=function(){var e=function(){function r(t,n,i,a){d(this,r),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=a}return f(r,[{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o={};"string"==typeof i&&(o[i]=a,i=o),o=this.layoutConfig.disableVendorPrefixes?i:PS(i),this._applyMultiValueStyleToElement(o,n)}},{key:"applyStyleToElements",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=this.layoutConfig.disableVendorPrefixes?n:PS(n);a.forEach(function(s){i._applyMultiValueStyleToElement(o,s)})}},{key:"getFlowDirection",value:function(n){var i="flex-direction",a=this.lookupStyle(n,i);return[a||"row",this.lookupInlineStyle(n,i)||jo(this._platformId)&&this._serverModuleLoaded?a:""]}},{key:"hasWrap",value:function(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}},{key:"lookupAttributeValue",value:function(n,i){var a;return null!==(a=n.getAttribute(i))&&void 0!==a?a:""}},{key:"lookupInlineStyle",value:function(n,i){return xa(this._platformId)?n.style.getPropertyValue(i):function V3(e,r){var t;return null!==(t=HS(e)[r])&&void 0!==t?t:""}(n,i)}},{key:"lookupStyle",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="";if(n){var s=o=this.lookupInlineStyle(n,i);s||(xa(this._platformId)?a||(o=getComputedStyle(n).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(n,i)))}return o?o.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(n,i){var a=this;Object.keys(n).sort().forEach(function(o){var s=n[o],u=Array.isArray(s)?s:[s];u.sort();var c,l=Y(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;h=h?h+"":"",xa(a._platformId)||!a._serverModuleLoaded?xa(a._platformId)?i.style.setProperty(o,h):B3(i,o,h):a._serverStylesheet.addStyleToElement(i,o,h)}}catch(v){l.e(v)}finally{l.f()}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(N3),le($o),le(pr),le(ti))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function B3(e,r,t){r=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var n=HS(e);n[r]=null!=t?t:"",function H3(e,r){var t="";for(var n in r)r[n]&&(t+="".concat(n,":").concat(r[n],";"));e.setAttribute("style",t)}(e,n)}function HS(e){var r={},t=e.getAttribute("style");if(t)for(var n=t.split(/;+/g),i=0;i0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));r[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return r}function Su(e,r){return(r&&r.priority||0)-(e&&e.priority||0)}function j3(e,r){return(e.priority||0)-(r.priority||0)}var Ip=function(){var e=function(){function r(t,n,i){d(this,r),this._zone=t,this._platformId=n,this._document=i,this.source=new _r(new wu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return f(r,[{key:"activations",get:function(){var n=[];return this.registry.forEach(function(i,a){i.matches&&n.push(a)}),n}},{key:"isActive",value:function(n){var i,a=this.registry.get(n);return null!==(i=null==a?void 0:a.matches)&&void 0!==i?i:this.registerQuery(n).some(function(o){return o.matches})}},{key:"observe",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&n.length){var o=this._observable$.pipe(fn(function(u){return!a||n.indexOf(u.mediaQuery)>-1})),s=new ct(function(u){var l=i.registerQuery(n);if(l.length){var c=l.pop();l.forEach(function(h){u.next(h)}),i.source.next(c)}u.complete()});return Qa(s,o)}return this._observable$}},{key:"registerQuery",value:function(n){var i=this,a=Array.isArray(n)?n:[n],o=[];return function U3(e,r){var t=e.filter(function(o){return!jS[o]});if(t.length>0){var n=t.join(", ");try{var i=r.createElement("style");if(i.setAttribute("type","text/css"),!i.styleSheet){var a="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(n," {.fx-query-test{ }}\n");i.appendChild(r.createTextNode(a))}r.head.appendChild(i),t.forEach(function(o){return jS[o]=i})}catch(o){console.error(o)}}}(a,this._document),a.forEach(function(s){var u=function(h){i._zone.run(function(){return i.source.next(new wu(h.matches,s))})},l=i.registry.get(s);l||((l=i.buildMQL(s)).addListener(u),i.pendingRemoveListenerFns.push(function(){return l.removeListener(u)}),i.registry.set(s,l)),l.matches&&o.push(new wu(!0,s))}),o}},{key:"ngOnDestroy",value:function(){for(var n;n=this.pendingRemoveListenerFns.pop();)n()}},{key:"buildMQL",value:function(n){return function G3(e,r){return r&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(n,xa(this._platformId))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st),le(pr),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),jS={},z3=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],US="(orientation: portrait) and (max-width: 599.98px)",GS="(orientation: landscape) and (max-width: 959.98px)",zS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",qS="(orientation: portrait) and (min-width: 840px)",KS="(orientation: landscape) and (min-width: 1280px)",Ni={HANDSET:"".concat(US,", ").concat(GS),TABLET:"".concat(zS," , ").concat(WS),WEB:"".concat(qS,", ").concat(KS," "),HANDSET_PORTRAIT:"".concat(US),TABLET_PORTRAIT:"".concat(zS," "),WEB_PORTRAIT:"".concat(qS),HANDSET_LANDSCAPE:"".concat(GS),TABLET_LANDSCAPE:"".concat(WS),WEB_LANDSCAPE:"".concat(KS)},W3=[{alias:"handset",priority:2e3,mediaQuery:Ni.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ni.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ni.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ni.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ni.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ni.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ni.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ni.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ni.WEB_PORTRAIT,overlapping:!0}],q3=/(\.|-|_)/g;function K3(e){var r=e.length>0?e.charAt(0):"",t=e.length>1?e.slice(1):"";return r.toUpperCase()+t}function Y3(e){return e.forEach(function(r){r.suffix||(r.suffix=function Q3(e){return e.replace(q3,"|").split("|").map(K3).join("")}(r.alias),r.overlapping=!!r.overlapping)}),e}var X3=new Ne("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var r=co(Op),t=co(ti),n=[].concat.apply([],(r||[]).map(function(a){return Array.isArray(a)?a:[a]}));return function $3(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t={};return e.forEach(function(n){t[n.alias]=n}),r.forEach(function(n){t[n.alias]?Li(t[n.alias],n):t[n.alias]=n}),Y3(Object.keys(t).map(function(n){return t[n]}))}((t.disableDefaultBps?[]:z3).concat(t.addOrientationBps?W3:[]),n)}}),Fp=function(){var e=function(){function r(t){d(this,r),this.findByMap=new Map,this.items=E(t).sort(j3)}return f(r,[{key:"findByAlias",value:function(n){return n?this.findWithPredicate(n,function(i){return i.alias===n}):null}},{key:"findByQuery",value:function(n){return this.findWithPredicate(n,function(i){return i.mediaQuery===n})}},{key:"overlappings",get:function(){return this.items.filter(function(n){return n.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(n){return n.alias})}},{key:"suffixes",get:function(){return this.items.map(function(n){var i;return null!==(i=null==n?void 0:n.suffix)&&void 0!==i?i:""})}},{key:"findWithPredicate",value:function(n,i){var a,o=this.findByMap.get(n);return o||(o=null!==(a=this.items.find(i))&&void 0!==a?a:null,this.findByMap.set(n,o)),null!=o?o:null}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(X3))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Xo="print",Z3={alias:Xo,mediaQuery:Xo,priority:1e3},J3=function(){var e=function(){function r(t,n,i){d(this,r),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new eH,this.deactivations=[]}return f(r,[{key:"withPrintQuery",value:function(n){return[].concat(E(n),[Xo])}},{key:"isPrintEvent",value:function(n){return n.mediaQuery.startsWith(Xo)}},{key:"printAlias",get:function(){var n;return E(null!==(n=this.layoutConfig.printWithBreakpoints)&&void 0!==n?n:[])}},{key:"printBreakPoints",get:function(){var n=this;return this.printAlias.map(function(i){return n.breakpoints.findByAlias(i)}).filter(function(i){return null!==i})}},{key:"getEventBreakpoints",value:function(n){var a=this.breakpoints.findByQuery(n.mediaQuery);return(a?[].concat(E(this.printBreakPoints),[a]):this.printBreakPoints).sort(Su)}},{key:"updateEvent",value:function(n){var i,a=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(a=this.getEventBreakpoints(n)[0],n.mediaQuery=null!==(i=null==a?void 0:a.mediaQuery)&&void 0!==i?i:""),BS(n,a)}},{key:"registerBeforeAfterPrintHooks",value:function(n){var i=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var a=function(){i.isPrinting||(i.isPrintingBeforeAfterEvent=!0,i.startPrinting(n,i.getEventBreakpoints(new wu(!0,Xo))),n.updateStyles())},o=function(){i.isPrintingBeforeAfterEvent=!1,i.isPrinting&&(i.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",a),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(a),this.afterPrintEventListeners.push(o)}}},{key:"interceptEvents",value:function(n){var i=this;return function(a){i.isPrintEvent(a)?a.matches&&!i.isPrinting?(i.startPrinting(n,i.getEventBreakpoints(a)),n.updateStyles()):!a.matches&&i.isPrinting&&!i.isPrintingBeforeAfterEvent&&(i.stopPrinting(n),n.updateStyles()):i.collectActivations(n,a)}}},{key:"blockPropagation",value:function(){var n=this;return function(i){return!(n.isPrinting||n.isPrintEvent(i))}}},{key:"startPrinting",value:function(n,i){this.isPrinting=!0,this.formerActivations=n.activatedBreakpoints,n.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}},{key:"stopPrinting",value:function(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(n,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){var a=this.breakpoints.findByQuery(i.mediaQuery);if(a){var o=this.formerActivations&&this.formerActivations.includes(a),s=!this.formerActivations&&n.activatedBreakpoints.includes(a);(o||s)&&(this.deactivations.push(a),this.deactivations.sort(Su))}}}}},{key:"ngOnDestroy",value:function(){var n=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("beforeprint",i)}),this.afterPrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("afterprint",i)}))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Fp),le(ti),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),eH=function(){function e(){d(this,e),this.printBreakpoints=[]}return f(e,[{key:"addPrintBreakpoints",value:function(t){var n=this;return t.push(Z3),t.sort(Su),t.forEach(function(i){return n.addBreakpoint(i)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(t){t&&void 0===this.printBreakpoints.find(function(i){return i.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=function tH(e){var r;return null!==(r=null==e?void 0:e.mediaQuery.startsWith(Xo))&&void 0!==r&&r}(t)?[t].concat(E(this.printBreakpoints)):[].concat(E(this.printBreakpoints),[t]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}(),Zt=function(){var e=function(){function r(t,n,i){d(this,r),this.matchMedia=t,this.breakpoints=n,this.hook=i,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Pe,this.observeActivations()}return f(r,[{key:"activatedAlias",get:function(){var n,i;return null!==(i=null===(n=this.activatedBreakpoints[0])||void 0===n?void 0:n.alias)&&void 0!==i?i:""}},{key:"activatedBreakpoints",get:function(){return E(this._activatedBreakpoints)},set:function(n){this._activatedBreakpoints=E(n)}},{key:"useFallbacks",set:function(n){this._useFallbacks=n}},{key:"onMediaChange",value:function(n){var i=this.findByQuery(n.mediaQuery);if(i){n=BS(n,i);var a=this.activatedBreakpoints.indexOf(i);n.matches&&-1===a?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Su),this.updateStyles()):!n.matches&&-1!==a&&(this._activatedBreakpoints.splice(a,1),this._activatedBreakpoints.sort(Su),this.updateStyles())}}},{key:"init",value:function(n,i,a,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];QS(this.updateMap,n,i,a),QS(this.clearMap,n,i,o),this.buildElementKeyMap(n,i),this.watchExtraTriggers(n,i,s)}},{key:"getValue",value:function(n,i,a){var o=this.elementMap.get(n);if(o){var s=void 0!==a?o.get(a):this.getActivatedValues(o,i);if(s)return s.get(i)}}},{key:"hasValue",value:function(n,i){var a=this.elementMap.get(n);if(a){var o=this.getActivatedValues(a,i);if(o)return void 0!==o.get(i)||!1}return!1}},{key:"setValue",value:function(n,i,a,o){var s,u=this.elementMap.get(n);if(u){var l=(null!==(s=u.get(o))&&void 0!==s?s:new Map).set(i,a);u.set(o,l),this.elementMap.set(n,u)}else u=(new Map).set(o,(new Map).set(i,a)),this.elementMap.set(n,u);var c=this.getValue(n,i);void 0!==c&&this.updateElement(n,i,c)}},{key:"trackValue",value:function(n,i){return this.subject.asObservable().pipe(fn(function(a){return a.element===n&&a.key===i}))}},{key:"updateStyles",value:function(){var n=this;this.elementMap.forEach(function(i,a){var o=new Set(n.elementKeyMap.get(a)),s=n.getActivatedValues(i);s&&s.forEach(function(u,l){n.updateElement(a,l,u),o.delete(l)}),o.forEach(function(u){if(s=n.getActivatedValues(i,u)){var l=s.get(u);n.updateElement(a,u,l)}else n.clearElement(a,u)})})}},{key:"clearElement",value:function(n,i){var a=this.clearMap.get(n);if(a){var o=a.get(i);o&&(o(),this.subject.next({element:n,key:i,value:""}))}}},{key:"updateElement",value:function(n,i,a){var o=this.updateMap.get(n);if(o){var s=o.get(i);s&&(s(a),this.subject.next({element:n,key:i,value:a}))}}},{key:"releaseElement",value:function(n){var i=this.watcherMap.get(n);i&&(i.forEach(function(o){return o.unsubscribe()}),this.watcherMap.delete(n));var a=this.elementMap.get(n);a&&(a.forEach(function(o,s){return a.delete(s)}),this.elementMap.delete(n))}},{key:"triggerUpdate",value:function(n,i){var a=this,o=this.elementMap.get(n);if(o){var s=this.getActivatedValues(o,i);s&&(i?this.updateElement(n,i,s.get(i)):s.forEach(function(u,l){return a.updateElement(n,l,u)}))}}},{key:"buildElementKeyMap",value:function(n,i){var a=this.elementKeyMap.get(n);a||this.elementKeyMap.set(n,a=new Set),a.add(i)}},{key:"watchExtraTriggers",value:function(n,i,a){var o=this;if(a&&a.length){var s=this.watcherMap.get(n);if(s||this.watcherMap.set(n,s=new Map),!s.get(i)){var l=Qa.apply(void 0,E(a)).subscribe(function(){var c=o.getValue(n,i);o.updateElement(n,i,c)});s.set(i,l)}}}},{key:"findByQuery",value:function(n){return this.breakpoints.findByQuery(n)}},{key:"getActivatedValues",value:function(n,i){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),n)}},{key:"addStyles",value:function(n,i){var a=this.styleBuilder,o=a.shouldCache,s=this.styleCache.get(n);(!s||!o)&&(s=a.buildStyles(n,i),o&&this.styleCache.set(n,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),a.sideEffect(n,s,i)}},{key:"clearStyles",value:function(){var n=this;Object.keys(this.mru).forEach(function(i){n.mru[i]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n){var a=this.styler.getFlowDirection(n),o=K(a,2),s=o[0],u=o[1];if(!u&&i){var l=LS(s),c=[n];this.styler.applyStyleToElements(l,c)}return s.trim()}return"row"}},{key:"hasWrap",value:function(n){return this.styler.hasWrap(n)}},{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(a,n,i)}},{key:"setValue",value:function(n,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,i)}},{key:"updateWithValue",value:function(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(hn),B(Qt),B(Zt))},e.\u0275dir=Ee({type:e,features:[Wn]}),e}();function YS(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",n=[r,t,e],i=e.indexOf("calc");if(i>0){n[2]=$S(e.substring(i).trim());var a=e.substr(0,i).trim().split(" ");2==a.length&&(n[0]=a[0],n[1]=a[1])}else if(0==i)n[2]=$S(e.trim());else{var o=e.split(" ");n=3===o.length?o:[r,t,e]}return n}function $S(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Wc(e,r){if(void 0===r)return e;var t=function(i){var a=+i.slice(0,-"x".length);return e.endsWith("x")&&!isNaN(a)?"".concat(a*r.value).concat(r.unit):e};return e.includes(" ")?e.split(" ").map(t).join(" "):t(e)}function Rt(e){return null!=e&&"false"!=="".concat(e)}function Du(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return iH(e)?Number(e):r}function iH(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function qc(e){return Array.isArray(e)?e:[e]}function wn(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Vi(e){return e instanceof Ye?e.nativeElement:e}function rn(e){return Yt(function(r,t){or(e).subscribe(zt(t,function(){return t.complete()},Fe)),!t.closed&&r.subscribe(t)})}var cH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i,null,a,o)).ngClassInstance=c,h.DIRECTIVE_KEY="ngClass",h.ngClassInstance||(h.ngClassInstance=new lc(s,u,i,l)),h.init(),h.setValue("",""),h}return f(n,[{key:"klass",set:function(a){this.ngClassInstance.klass=a,this.setValue(a,"")}},{key:"updateWithValue",value:function(a){this.ngClassInstance.ngClass=a,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Qt),B(Zt),B(ou),B(Sa),B(Yr),B(lc,10))},e.\u0275dir=Ee({type:e,inputs:{klass:["class","klass"]},features:[Re]}),e}(),dH=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],ZS=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=dH,i}return f(n)}(cH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Re]}),e}(),fH=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){return{display:"true"===a?o.display||(o.isServer?"initial":""):"none"}}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),hH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i,a,o,s)).layoutConfig=u,h.platformId=l,h.serverModuleLoaded=c,h.DIRECTIVE_KEY="show-hide",h.display="",h.hasLayout=!1,h.hasFlexChild=!1,h}return f(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var a=Array.from(this.nativeElement.children),o=0;o0&&void 0!==arguments[0])||arguments[0];if(""!==a){var o=jo(this.platformId);this.addStyles(a?"true":"false",{display:this.display,isServer:o}),o&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(fH),B(Qt),B(Zt),B(ti),B(pr),B($o))},e.\u0275dir=Ee({type:e,features:[Re,Wn]}),e}(),Pp=new WeakMap,vH=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],JS=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=vH,i}return f(n)}(hH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[Re]}),e}(),o0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp]]}),e}(),CH=new Ne("cdk-dir-doc",{providedIn:"root",factory:function EH(){return co(ot)}}),kH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,sa=function(){var e=function(){function r(t){d(this,r),this.value="ltr",this.change=new Dt,t&&(this.value=function wH(e){var r=(null==e?void 0:e.toLowerCase())||"";return"auto"===r&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?kH.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}return f(r,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(CH,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Zo=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),SH=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){var s=o.display,u=LS(a);return Object.assign(Object.assign({},u),{display:"none"===s?s:u.display})}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),DH=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],AH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,i,o,a,s))._config=u,l.DIRECTIVE_KEY="layout",l.init(),l}return f(n,[{key:"updateWithValue",value:function(a){var o,u=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(o=s0.get(u))&&void 0!==o?o:new Map,s0.set(u,this.styleCache),this.currentValue!==a&&(this.addStyles(a,{display:u}),this.currentValue=a)}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Qt),B(SH),B(Zt),B(ti))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),Jo=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=DH,i}return f(n)}(AH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Re]}),e}(),s0=new Map,u0={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},xH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._styler=i,o._config=a,o}return f(n,[{key:"buildStyles",value:function(a,o){return a.endsWith(Kc)?function LH(e,r){var n=K(e.split(" "),2),i=n[0],a=n[1],s=function(v){return"-".concat(v)},u="0px",l=s(null!=a?a:i),c="0px";return"rtl"===r?c=s(i):u=s(i),{margin:"0px ".concat(u," ").concat(l," ").concat(c)}}(a=Wc(a=a.slice(0,a.indexOf(Kc)),this._config.multiplier),o.directionality):{}}},{key:"sideEffect",value:function(a,o,s){var u=s.items;if(a.endsWith(Kc)){var l=function PH(e,r){var n=K(e.split(" "),2),i=n[0],a=n[1],s="0px",u=null!=a?a:i,l="0px";return"rtl"===r?l=i:s=i,{padding:"0px ".concat(s," ").concat(u," ").concat(l)}}(a=Wc(a=a.slice(0,a.indexOf(Kc)),this._config.multiplier),s.directionality);this._styler.applyStyleToElements(l,s.items)}else{a=Wc(a,this._config.multiplier),a=this.addFallbackUnit(a);var c=u.pop(),h=function NH(e,r){var t=l0(r.directionality,r.layout),n=Object.assign({},u0);return n[t]=e,n}(a,s);this._styler.applyStyleToElements(h,u),this._styler.applyStyleToElements(u0,[c])}}},{key:"addFallbackUnit",value:function(a){return isNaN(+a)?a:"".concat(a).concat(this._config.defaultUnit)}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(le(Qt),le(ti))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),MH=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],TH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l){var c;d(this,n),(c=t.call(this,i,u,s,l)).zone=a,c.directionality=o,c.styleUtils=s,c.layout="row",c.DIRECTIVE_KEY="layout-gap",c.observerSubject=new Pe;var h=[c.directionality.change,c.observerSubject.asObservable()];return c.init(h),c.marshal.trackValue(c.nativeElement,"layout").pipe(rn(c.destroySubject)).subscribe(c.onLayoutChange.bind(Q(c))),c}return f(n,[{key:"childrenNodes",get:function(){for(var a=this.nativeElement.children,o=[],s=a.length;s--;)o[s]=a[s];return o}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){M(k(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(a){var o=this,u=a.value.split(" ");this.layout=u[0],zc.find(function(l){return l===o.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(a){var o=this,s=this.childrenNodes.filter(function(c){return 1===c.nodeType&&o.willDisplay(c)}).sort(function(c,h){var v=+o.styler.lookupStyle(c,"order"),_=+o.styler.lookupStyle(h,"order");return isNaN(v)||isNaN(_)||v===_?0:v>_?1:-1});if(s.length>0){var u=this.directionality.value,l=this.layout;"row"===l&&"rtl"===u?this.styleCache=RH:"row"===l&&"rtl"!==u?this.styleCache=IH:"column"===l&&"rtl"===u?this.styleCache=OH:"column"===l&&"rtl"!==u&&(this.styleCache=FH),this.addStyles(a,{directionality:u,items:s,layout:l})}}},{key:"clearStyles",value:function(){var a=Object.keys(this.mru).length>0,o=a?"padding":l0(this.directionality.value,this.layout);a&&M(k(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(S({},o,""),this.childrenNodes)}},{key:"willDisplay",value:function(a){var o=this.marshal.getValue(a,"show-hide");return!0===o||void 0===o&&"none"!==this.styleUtils.lookupStyle(a,"display")}},{key:"buildChildObservable",value:function(){var a=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(a.observer=new MutationObserver(function(o){o.some(function(l){return l.addedNodes&&l.addedNodes.length>0||l.removedNodes&&l.removedNodes.length>0})&&a.observerSubject.next()}),a.observer.observe(a.nativeElement,{childList:!0}))})}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(st),B(sa),B(Qt),B(xH),B(Zt))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),Lp=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=MH,i}return f(n)}(TH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Re]}),e}(),RH=new Map,OH=new Map,IH=new Map,FH=new Map,Kc=" grid";function l0(e,r){switch(r){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left"}}var Np,VH=function(){var e=function(r){p(n,r);var t=y(n);function n(i){var a;return d(this,n),(a=t.call(this)).layoutConfig=i,a}return f(n,[{key:"buildStyles",value:function(a,o){var u=function C(e){return j(e)||m(e)||re(e)||W()}(a.split(" ")),l=u[0],c=u[1],v=u.slice(2).join(" "),_=o.direction.indexOf("column")>-1?"column":"row",O=ku(_)?"max-width":"max-height",J=ku(_)?"min-width":"min-height",te=String(v).indexOf("calc")>-1,ue=te||"auto"===v,ee=String(v).indexOf("%")>-1&&!te,ye=String(v).indexOf("px")>-1||String(v).indexOf("rem")>-1||String(v).indexOf("em")>-1||String(v).indexOf("vw")>-1||String(v).indexOf("vh")>-1,_e=te||ye;c="0"==c?0:c;var Te=!(l="0"==l?0:l)&&!c,Ie={},We={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(v||""){case"":v="row"===_?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":l=0,v="auto";break;case"grow":v="100%";break;case"noshrink":c=0,v="auto";break;case"auto":break;case"none":l=0,c=0,v="auto";break;default:!_e&&!ee&&!isNaN(v)&&(v+="%"),"0%"===v&&(_e=!0),"0px"===v&&(v="0%"),Ie=Li(We,te?{"flex-grow":l,"flex-shrink":c,"flex-basis":_e?v:"100%"}:{flex:"".concat(l," ").concat(c," ").concat(_e?v:"100%")})}return Ie.flex||Ie["flex-grow"]||(Ie=Li(We,te?{"flex-grow":l,"flex-shrink":c,"flex-basis":v}:{flex:"".concat(l," ").concat(c," ").concat(v)})),"0%"!==v&&"0px"!==v&&"0.000000001px"!==v&&"auto"!==v&&(Ie[J]=Te||_e&&l?v:null,Ie[O]=Te||!ue&&c?v:null),Ie[J]||Ie[O]?o.hasWrap&&(Ie[te?"flex-basis":"flex"]=Ie[O]?te?Ie[O]:"".concat(l," ").concat(c," ").concat(Ie[O]):te?Ie[J]:"".concat(l," ").concat(c," ").concat(Ie[J])):Ie=Li(We,te?{"flex-grow":l,"flex-shrink":c,"flex-basis":v}:{flex:"".concat(l," ").concat(c," ").concat(v)}),Li(Ie,{"box-sizing":"border-box"})}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(le(ti))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),BH=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],HH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,i,s,a,u)).layoutConfig=o,l.marshal=u,l.DIRECTIVE_KEY="flex",l.direction=void 0,l.wrap=void 0,l.flexGrow="1",l.flexShrink="1",l.init(),l}return f(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(a){this.flexShrink=a||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(a){this.flexGrow=a||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(rn(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(rn(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(a){var s=a.value.split(" ");this.direction=s[0],this.wrap=void 0!==s[1]&&"wrap"===s[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(a){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var s=this.direction,u=s.startsWith("row"),l=this.wrap;u&&l?this.styleCache=GH:u&&!l?this.styleCache=jH:!u&&l?this.styleCache=zH:!u&&!l&&(this.styleCache=UH);var h=YS(String(a).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(h.join(" "),{direction:s,hasWrap:l})}},{key:"triggerReflow",value:function(){var a=this.activatedValue;if(void 0!==a){var o=YS(a+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,o.join(" "))}}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Qt),B(ti),B(VH),B(Zt))},e.\u0275dir=Ee({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Re]}),e}(),Qc=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=BH,i}return f(n)}(HH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Re]}),e}(),jH=new Map,UH=new Map,GH=new Map,zH=new Map,hj=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){var s={},l=K(a.split(" "),2),h=l[1];switch(l[0]){case"center":s["justify-content"]="center";break;case"space-around":s["justify-content"]="space-around";break;case"space-between":s["justify-content"]="space-between";break;case"space-evenly":s["justify-content"]="space-evenly";break;case"end":case"flex-end":s["justify-content"]="flex-end";break;default:s["justify-content"]="flex-start"}switch(h){case"start":case"flex-start":s["align-items"]=s["align-content"]="flex-start";break;case"center":s["align-items"]=s["align-content"]="center";break;case"end":case"flex-end":s["align-items"]=s["align-content"]="flex-end";break;case"space-between":s["align-content"]="space-between",s["align-items"]="stretch";break;case"space-around":s["align-content"]="space-around",s["align-items"]="stretch";break;case"baseline":s["align-content"]="stretch",s["align-items"]="baseline";break;default:s["align-items"]=s["align-content"]="stretch"}return Li(s,{display:o.inline?"inline-flex":"flex","flex-direction":o.layout,"box-sizing":"border-box","max-width":"stretch"===h?ku(o.layout)?null:"100%":null,"max-height":"stretch"===h&&ku(o.layout)?"100%":null})}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),vj=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],pj=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s){var u;return d(this,n),(u=t.call(this,i,o,a,s)).DIRECTIVE_KEY="layout-align",u.layout="row",u.inline=!1,u.init(),u.marshal.trackValue(u.nativeElement,"layout").pipe(rn(u.destroySubject)).subscribe(u.onLayoutChange.bind(Q(u))),u}return f(n,[{key:"updateWithValue",value:function(a){var o=this.layout||"row",s=this.inline;"row"===o&&s?this.styleCache=bj:"row"!==o||s?"row-reverse"===o&&s?this.styleCache=Ej:"row-reverse"!==o||s?"column"===o&&s?this.styleCache=Cj:"column"!==o||s?"column-reverse"===o&&s?this.styleCache=kj:"column-reverse"===o&&!s&&(this.styleCache=_j):this.styleCache=mj:this.styleCache=yj:this.styleCache=gj,this.addStyles(a,{layout:o,inline:s})}},{key:"onLayoutChange",value:function(a){var o=this,s=a.value.split(" ");this.layout=s[0],this.inline=a.value.includes("inline"),zc.find(function(u){return u===o.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Qt),B(hj),B(Zt))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),es=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=vj,i}return f(n)}(pj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Re]}),e}(),gj=new Map,mj=new Map,yj=new Map,_j=new Map,bj=new Map,Cj=new Map,Ej=new Map,kj=new Map,c0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp,Zo]]}),e}(),y0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp]]}),e}(),WU=function(){var e=function(){function r(t,n){d(this,r),jo(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return f(r,null,[{key:"withConfig",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:r,providers:n.serverLoaded?[{provide:ti,useValue:Object.assign(Object.assign({},Rp),n)},{provide:Op,useValue:i,multi:!0},{provide:$o,useValue:!0}]:[{provide:ti,useValue:Object.assign(Object.assign({},Rp),n)},{provide:Op,useValue:i,multi:!0}]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le($o),le(pr))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[c0,o0,y0],c0,o0,y0]}),e}();try{Np="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Np=!1}var ts,Au,$c,Na,Vp,Hn=function(){var e=f(function r(t){d(this,r),this._platformId=t,this.isBrowser=this._platformId?xa(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&&!Np)&&"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 e.\u0275fac=function(t){return new(t||e)(le(pr))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),b0=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function C0(){if(ts)return ts;if("object"!=typeof document||!document)return ts=new Set(b0);var e=document.createElement("input");return ts=new Set(b0.filter(function(r){return e.setAttribute("type",r),e.type===r}))}function Yc(e){return function qU(){if(null==Au&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Au=!0}}))}finally{Au=Au||!1}return Au}()?e:!!e.capture}function E0(){if(null==Na){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Na=!1;if("scrollBehavior"in document.documentElement.style)Na=!0;else{var e=Element.prototype.scrollTo;Na=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Na}function xu(){if("object"!=typeof document||!document)return 0;if(null==$c){var e=document.createElement("div"),r=e.style;e.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";var t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",e.appendChild(t),document.body.appendChild(e),$c=0,0===e.scrollLeft&&(e.scrollLeft=1,$c=0===e.scrollLeft?1:2),e.remove()}return $c}function QU(e){if(function KU(){if(null==Vp){var e="undefined"!=typeof document?document.head:null;Vp=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Vp}()){var r=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Bp(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}function Va(e){return e.composedPath?e.composedPath()[0]:e.target}function Hp(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function w0(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:en;return e=null!=e?e:e4,Yt(function(t,n){var i,a=!0;t.subscribe(zt(n,function(o){var s=r(o);(a||!e(i,s))&&(a=!1,i=s,n.next(o))}))})}function e4(e,r){return e===r}var jp=function(){var e=function(){function r(t){d(this,r),this._platform=t}return f(r,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function i4(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var i=function r4(e){try{return e.frameElement}catch(r){return null}}(function f4(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(i&&(-1===T0(i)||!this.isVisible(i)))return!1;var a=n.nodeName.toLowerCase(),o=T0(n);return n.hasAttribute("contenteditable")?-1!==o:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function c4(e){var r=e.nodeName.toLowerCase(),t="input"===r&&e.type;return"text"===t||"password"===t||"select"===r||"textarea"===r}(n))&&("audio"===a?!!n.hasAttribute("controls")&&-1!==o:"video"===a?-1!==o&&(null!==o||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,i){return function d4(e){return!function o4(e){return function u4(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function a4(e){var r=e.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(e)||function s4(e){return function l4(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||M0(e))}(n)&&!this.isDisabled(n)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Hn))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function M0(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var r=e.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function T0(e){if(!M0(e))return null;var r=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}var h4=function(){function e(r,t,n,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];d(this,e),this._element=r,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return f(e,[{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))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]"));return"start"==t?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(t){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){var i=this._getFirstTabbableElement(n);return null==i||i.focus(t),!!i}return n.focus(t),!0}return this.focusFirstTabbableElement(t)}},{key:"focusFirstTabbableElement",value:function(t){var n=this._getRegionBoundary("start");return n&&n.focus(t),!!n}},{key:"focusLastTabbableElement",value:function(t){var n=this._getRegionBoundary("end");return n&&n.focus(t),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children,i=0;i=0;i--){var a=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(a)return a}return null}},{key:"_createAnchor",value:function(){var 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,n){t?n.setAttribute("tabindex","0"):n.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.pipe(Yn(1)).subscribe(t)}}]),e}(),R0=function(){var e=function(){function r(t,n,i){d(this,r),this._checker=t,this._ngZone=n,this._document=i}return f(r,[{key:"create",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new h4(n,this._checker,this._ngZone,this._document,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(jp),le(st),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function O0(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}function I0(e){var r=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}var v4=new Ne("cdk-input-modality-detector-options"),p4={ignoreKeys:[18,17,224,91,16]},ns=Yc({passive:!0,capture:!0}),g4=function(){var e=function(){function r(t,n,i,a){var o=this;d(this,r),this._platform=t,this._mostRecentTarget=null,this._modality=new _r(null),this._lastTouchMs=0,this._onKeydown=function(s){var u,l;(null===(l=null===(u=o._options)||void 0===u?void 0:u.ignoreKeys)||void 0===l?void 0:l.some(function(c){return c===s.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=Va(s))},this._onMousedown=function(s){Date.now()-o._lastTouchMs<650||(o._modality.next(O0(s)?"keyboard":"mouse"),o._mostRecentTarget=Va(s))},this._onTouchstart=function(s){I0(s)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=Va(s))},this._options=Object.assign(Object.assign({},p4),a),this.modalityDetected=this._modality.pipe(S0(1)),this.modalityChanged=this.modalityDetected.pipe(D0()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,ns),i.addEventListener("mousedown",o._onMousedown,ns),i.addEventListener("touchstart",o._onTouchstart,ns)})}return f(r,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ns),document.removeEventListener("mousedown",this._onMousedown,ns),document.removeEventListener("touchstart",this._onTouchstart,ns))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Hn),le(st),le(ot),le(v4,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),m4=new Ne("liveAnnouncerElement",{providedIn:"root",factory:function y4(){return null}}),_4=new Ne("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),P0=function(){var e=function(){function r(t,n,i,a){d(this,r),this._ngZone=n,this._defaultOptions=a,this._document=i,this._liveElement=t||this._createLiveElement()}return f(r,[{key:"announce",value:function(n){for(var o,s,i=this,a=this._defaultOptions,u=arguments.length,l=new Array(u>1?u-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],a=Vi(n);if(!this._platform.isBrowser||1!==a.nodeType)return Je(null);var o=QU(a)||this._getDocument(),s=this._elementInfo.get(a);if(s)return i&&(s.checkChildren=!0),s.subject;var u={checkChildren:i,subject:new Pe,rootNode:o};return this._elementInfo.set(a,u),this._registerGlobalListeners(u),u.subject}},{key:"stopMonitoring",value:function(n){var i=Vi(n),a=this._elementInfo.get(i);a&&(a.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(a))}},{key:"focusVia",value:function(n,i,a){var o=this,s=Vi(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(function(l){var c=K(l,2);return o._originChanged(c[0],i,c[1])}):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(a))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(i,a){return n.stopMonitoring(a)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused","touch"===i),n.classList.toggle("cdk-keyboard-focused","keyboard"===i),n.classList.toggle("cdk-mouse-focused","mouse"===i),n.classList.toggle("cdk-program-focused","program"===i)}},{key:"_setOrigin",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){i._origin=n,i._originFromTouchInteraction="touch"===n&&a,0===i._detectionMode&&(clearTimeout(i._originTimeoutId),i._originTimeoutId=setTimeout(function(){return i._origin=null},i._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,i){var a=this._elementInfo.get(i),o=Va(n);!a||!a.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),a)}},{key:"_onBlur",value:function(n,i){var a=this._elementInfo.get(i);!a||a.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(a.subject,null))}},{key:"_emitOrigin",value:function(n,i){this._ngZone.run(function(){return n.next(i)})}},{key:"_registerGlobalListeners",value:function(n){var i=this;if(this._platform.isBrowser){var a=n.rootNode,o=this._rootNodeFocusListenerCount.get(a)||0;o||this._ngZone.runOutsideAngular(function(){a.addEventListener("focus",i._rootNodeFocusAndBlurListener,Xc),a.addEventListener("blur",i._rootNodeFocusAndBlurListener,Xc)}),this._rootNodeFocusListenerCount.set(a,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){i._getWindow().addEventListener("focus",i._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rn(this._stopInputModalityDetector)).subscribe(function(s){i._setOrigin(s,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){var a=this._rootNodeFocusListenerCount.get(i);a>1?this._rootNodeFocusListenerCount.set(i,a-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,i,a){this._setClasses(n,i),this._emitOrigin(a.subject,i),this._lastFocusOrigin=i}},{key:"_getClosestElementsInfo",value:function(n){var i=[];return this._elementInfo.forEach(function(a,o){(o===n||a.checkChildren&&o.contains(n))&&i.push([o,a])}),i}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st),le(Hn),le(g4),le(ot,8),le(b4,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),L0="cdk-high-contrast-black-on-white",N0="cdk-high-contrast-white-on-black",Up="cdk-high-contrast-active",C4=function(){var e=function(){function r(t,n){d(this,r),this._platform=t,this._document=n}return f(r,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var i=this._document.defaultView||window,a=i&&i.getComputedStyle?i.getComputedStyle(n):null,o=(a&&a.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(Up),n.remove(L0),n.remove(N0),this._hasCheckedHighContrastMode=!0;var i=this.getHighContrastMode();1===i?(n.add(Up),n.add(L0)):2===i&&(n.add(Up),n.add(N0))}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Hn),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),k4=new Ne("mat-sanity-checks",{providedIn:"root",factory:function E4(){return!0}}),an=function(){var e=function(){function r(t,n,i){d(this,r),this._sanityChecks=n,this._document=i,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return f(r,[{key:"_checkIsEnabled",value:function(n){return!Hp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(C4),le(k4,8),le(ot))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Zo],Zo]}),e}();function B0(e){return function(r){p(n,r);var t=y(n);function n(){var i;d(this,n);for(var a=arguments.length,o=new Array(a),s=0;s1&&void 0!==arguments[1]?arguments[1]:0;return function(t){p(i,t);var n=y(i);function i(){var a;d(this,i);for(var o=arguments.length,s=new Array(o),u=0;u2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},U0),a.animation);a.centered&&(t=o.left+o.width/2,n=o.top+o.height/2);var u=a.radius||T4(t,n,o),l=t-o.left,c=n-o.top,h=s.enterDuration,v=document.createElement("div");v.classList.add("mat-ripple-element"),v.style.left="".concat(l-u,"px"),v.style.top="".concat(c-u,"px"),v.style.height="".concat(2*u,"px"),v.style.width="".concat(2*u,"px"),null!=a.color&&(v.style.backgroundColor=a.color),v.style.transitionDuration="".concat(h,"ms"),this._containerElement.appendChild(v),M4(v),v.style.transform="scale(1)";var _=new D4(this,v,a);return _.state=0,this._activeRipples.add(_),a.persistent||(this._mostRecentTransientRipple=_),this._runTimeoutOutsideZone(function(){var O=_===i._mostRecentTransientRipple;_.state=1,!a.persistent&&(!O||!i._isPointerDown)&&_.fadeOut()},h),_}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var i=t.element,a=Object.assign(Object.assign({},U0),t.config.animation);i.style.transitionDuration="".concat(a.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.remove()},a.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=Vi(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(G0))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(z0),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=O0(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(i){n._triggerElement.addEventListener(i,n,zp)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(G0.forEach(function(n){t._triggerElement.removeEventListener(n,t,zp)}),this._pointerUpEventsRegistered&&z0.forEach(function(n){t._triggerElement.removeEventListener(n,t,zp)}))}}]),e}();function M4(e){window.getComputedStyle(e).getPropertyValue("opacity")}function T4(e,r,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),i=Math.max(Math.abs(r-t.top),Math.abs(r-t.bottom));return Math.sqrt(n*n+i*i)}var R4=new Ne("mat-ripple-global-options"),Ou=function(){var e=function(){function r(t,n,i,a,o){d(this,r),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new x4(this,n,t,i)}return f(r,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,i,Object.assign(Object.assign({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(st),B(Hn),B(R4,8),B(gi,8))},e.\u0275dir=Ee({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),e}(),Wp=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),O4=["mat-button",""],I4=["*"],P4=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L4=Tu(B0(Gp(function(){return f(function e(r){d(this,e),this._elementRef=r})}()))),rs=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){var s;d(this,n),(s=t.call(this,i))._focusMonitor=a,s._animationMode=o,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var l,u=Y(P4);try{for(u.s();!(l=u.n()).done;){var c=l.value;s._hasHostAttributes(c)&&s._getHostElement().classList.add(c)}}catch(h){u.e(h)}finally{u.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return f(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._getHostElement(),a,o):this._getHostElement().focus(o)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,o=arguments.length,s=new Array(o),u=0;u*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),qp=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an],an]}),e}(),N4=["*",[["mat-card-footer"]]],V4=["*","mat-card-footer"],B4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),H4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),j4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),U4=function(){var e=f(function r(){d(this,r),this.align="start"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-card-actions-align-end","end"===n.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),Kp=function(){var e=f(function r(t){d(this,r),this._animationMode=t});return e.\u0275fac=function(t){return new(t||e)(B(gi,8))},e.\u0275cmp=Ht({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,n){2&t&&It("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:V4,decls:2,vars:0,template:function(t,n){1&t&&(ir(N4),jt(0),jt(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;display:block;overflow:hidden}.mat-card-image img{width:100%}.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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}),e}(),W0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),G4=function(e){p(t,e);var r=y(t);function t(n,i){return d(this,t),r.call(this)}return f(t,[{key:"schedule",value:function(i){return this}}]),t}(F),Zc={setInterval:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=Zc.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,arguments)}),clearInterval:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=Zc.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)}),delegate:void 0},Qp=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a.pending=!1,a}return f(t,[{key:"schedule",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=i;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Zc.setInterval(i.flush.bind(i,this),o)}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;Zc.clearInterval(a)}},{key:"execute",value:function(i,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(i,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(i,a){var s,o=!1;try{this.work(i)}catch(u){o=!0,s=u||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var i=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,b(o,this),null!=i&&(this.id=this.recycleAsyncId(a,i,null)),this.delay=null,M(k(t.prototype),"unsubscribe",this).call(this)}}}]),t}(G4),q0={now:function(){return(q0.delegate||Date).now()},delegate:void 0},Yp=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;d(this,e),this.schedulerActionCtor=r,this.now=t}return f(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 new this.schedulerActionCtor(this,t).schedule(i,n)}}]),e}();Yp.now=q0.now;var $p=function(e){p(t,e);var r=y(t);function t(n){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yp.now;return d(this,t),(i=r.call(this,n,a)).actions=[],i._active=!1,i._scheduled=void 0,i}return f(t,[{key:"flush",value:function(i){var a=this.actions;if(this._active)a.push(i);else{var o;this._active=!0;do{if(o=i.execute(i.state,i.delay))break}while(i=a.shift());if(this._active=!1,o){for(;i=a.shift();)i.unsubscribe();throw o}}}}]),t}(Yp),Xp=new $p(Qp),z4=Xp;function Zp(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xp;return Yt(function(t,n){var i=null,a=null,o=null,s=function(){if(i){i.unsubscribe(),i=null;var c=a;a=null,n.next(c)}};function u(){var l=o+e,c=r.now();if(c0&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(o,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);var u=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){s.classList.remove(u)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var a=new Z4;a.source=this,a.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(a),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(a){var s,o=this,u=null===(s=this._options)||void 0===s?void 0:s.clickAction;a.stopPropagation(),this.disabled||"noop"===u?!this.disabled&&"noop"===u&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==u&&Promise.resolve().then(function(){o._indeterminate=!1,o.indeterminateChange.emit(o._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_onInteractionEvent",value:function(a){a.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(a,o){if("NoopAnimations"===this._animationMode)return"";var s="";switch(a){case 0:if(1===o)s="unchecked-checked";else{if(3!=o)return"";s="unchecked-indeterminate"}break;case 2:s=1===o?"unchecked-checked":"unchecked-indeterminate";break;case 1:s=2===o?"checked-unchecked":"checked-indeterminate";break;case 3:s=1===o?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(s)}},{key:"_syncIndeterminate",value:function(a){var o=this._inputElement;o&&(o.nativeElement.indeterminate=a)}}]),n}(J4);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(gr),B(Mu),B(st),$i("tabindex"),B(gi,8),B(Y4,8))},e.\u0275cmp=Ht({type:e,selectors:[["mat-checkbox"]],viewQuery:function(t,n){var i;1&t&&(Tr(q4,5),Tr(Ou,5)),2&t&&(Ft(i=Pt())&&(n._inputElement=i.first),Ft(i=Pt())&&(n.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(t,n){2&t&&(Fo("id",n.id),Kt("tabindex",null)("aria-label",null)("aria-labelledby",null),It("mat-checkbox-indeterminate",n.indeterminate)("mat-checkbox-checked",n.checked)("mat-checkbox-disabled",n.disabled)("mat-checkbox-label-before","before"==n.labelPosition)("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[At([X4]),Re],ngContentSelectors:Q4,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,n){if(1&t&&(ir(),pe(0,"label",0,1)(2,"span",2)(3,"input",3,4),Ge("change",function(s){return n._onInteractionEvent(s)})("click",function(s){return n._onInputClick(s)}),ge(),pe(5,"span",5),Xt(6,"span",6),ge(),Xt(7,"span",7),pe(8,"span",8),function zm(){nt.lFrame.currentNamespace="svg"}(),pe(9,"svg",9),Xt(10,"path",10),ge(),function Wm(){!function SM(){nt.lFrame.currentNamespace=null}()}(),Xt(11,"span",11),ge()(),pe(12,"span",12,13),Ge("cdkObserveContent",function(){return n._onLabelTextChange()}),pe(14,"span",14),Oe(15,"\xa0"),ge(),jt(16),ge()()),2&t){var i=Qn(1),a=Qn(13);Kt("for",n.inputId),ke(2),It("mat-checkbox-inner-container-no-side-margin",!a.textContent||!a.textContent.trim()),ke(1),xe("id",n.inputId)("required",n.required)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex),Kt("value",n.value)("name",n.name)("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-checked",n._getAriaChecked())("aria-describedby",n.ariaDescribedby),ke(2),xe("matRippleTrigger",i)("matRippleDisabled",n._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",jh(19,K4,"NoopAnimations"===n._animationMode?0:150))}},directives:[Ou,Q0],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-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;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-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color: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%}\n"],encapsulation:2,changeDetection:0}),e}(),J0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),eD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an,Y0,J0],an,J0]}),e}(),nG=["addListener","removeListener"],rG=["addEventListener","removeEventListener"],iG=["on","off"];function is(e,r,t,n){if(L(t)&&(n=t,t=void 0),n)return is(e,r,t).pipe(Ov(n));var a=K(function sG(e){return L(e.addEventListener)&&L(e.removeEventListener)}(e)?rG.map(function(u){return function(l){return e[u](r,l,t)}}):function aG(e){return L(e.addListener)&&L(e.removeListener)}(e)?nG.map(tD(e,r)):function oG(e){return L(e.on)&&L(e.off)}(e)?iG.map(tD(e,r)):[],2),o=a[0],s=a[1];if(!o&&Ld(e))return Sn(function(u){return is(u,r,t)})(or(e));if(!o)throw new TypeError("Invalid event target");return new ct(function(u){var l=function(){for(var h=arguments.length,v=new Array(h),_=0;_2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?M(k(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=Iu.requestAnimationFrame(function(){return i.flush(void 0)})))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return M(k(t.prototype),"recycleAsyncId",this).call(this,i,a,o);i.actions.some(function(s){return s.id===a})||(Iu.cancelAnimationFrame(a),i._scheduled=void 0)}}]),t}(Qp),lG=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"flush",value:function(i){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;i=i||o.shift();do{if(s=i.execute(i.state,i.delay))break}while((i=o[0])&&i.id===a&&o.shift());if(this._active=!1,s){for(;(i=o[0])&&i.id===a&&o.shift();)i.unsubscribe();throw s}}}]),t}($p),dG=(new lG(uG),1),Jc={};function nD(e){return e in Jc&&(delete Jc[e],!0)}var fG=function(r){var t=dG++;return Jc[t]=!0,Jp||(Jp=Promise.resolve()),Jp.then(function(){return nD(t)&&r()}),t},hG=function(r){nD(r)},ed={setImmediate:function(){var r=ed.delegate;return((null==r?void 0:r.setImmediate)||fG).apply(void 0,arguments)},clearImmediate:function(r){var t=ed.delegate;return((null==t?void 0:t.clearImmediate)||hG)(r)},delegate:void 0},vG=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a}return f(t,[{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?M(k(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=ed.setImmediate(i.flush.bind(i,void 0))))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return M(k(t.prototype),"recycleAsyncId",this).call(this,i,a,o);i.actions.some(function(s){return s.id===a})||(ed.clearImmediate(a),i._scheduled=void 0)}}]),t}(Qp),pG=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"flush",value:function(i){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;i=i||o.shift();do{if(s=i.execute(i.state,i.delay))break}while((i=o[0])&&i.id===a&&o.shift());if(this._active=!1,s){for(;(i=o[0])&&i.id===a&&o.shift();)i.unsubscribe();throw s}}}]),t}($p);new pG(vG);function mG(e){return Yt(function(r,t){var n=!1,i=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var c=i;i=null,t.next(c)}o&&t.complete()},u=function(){a=null,o&&t.complete()};r.subscribe(zt(t,function(l){n=!0,i=l,a||or(e(l)).subscribe(a=zt(t,s,u))},function(){o=!0,(!n||!a||a.closed)&&t.complete()}))})}function yG(e){return e instanceof Date&&!isNaN(e)}function _G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z4,n=-1;return null!=r&&(dm(r)?t=r:n=r),new ct(function(i){var a=yG(e)?+e-t.now():e;a<0&&(a=0);var o=0;return t.schedule(function(){i.closed||(i.next(o++),0<=n?this.schedule(void 0,n):i.complete())},a)})}function iD(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xp;return mG(function(){return _G(e,r)})}var td=function(){var e=function(){function r(t,n,i){d(this,r),this._ngZone=t,this._platform=n,this._scrolled=new Pe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return f(r,[{key:"register",value:function(n){var i=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return i._scrolled.next(n)}))}},{key:"deregister",value:function(n){var i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ct(function(a){n._globalSubscription||n._addGlobalListener();var o=i>0?n._scrolled.pipe(iD(i)).subscribe(a):n._scrolled.subscribe(a);return n._scrolledCount++,function(){o.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):Je()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(i,a){return n.deregister(a)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,i){var a=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(fn(function(o){return!o||a.indexOf(o)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var i=this,a=[];return this.scrollContainers.forEach(function(o,s){i._scrollableContainsElement(s,n)&&a.push(s)}),a}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,i){var a=Vi(i),o=n.getElementRef().nativeElement;do{if(a==o)return!0}while(a=a.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return is(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st),le(Hn),le(ot,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Fu=function(){var e=function(){function r(t,n,i,a){var o=this;d(this,r),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new Pe,this._elementScrolled=new ct(function(s){return o.ngZone.runOutsideAngular(function(){return is(o.elementRef.nativeElement,"scroll").pipe(rn(o._destroyed)).subscribe(s)})})}return f(r,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(n){var i=this.elementRef.nativeElement,a=this.dir&&"rtl"==this.dir.value;null==n.left&&(n.left=a?n.end:n.start),null==n.right&&(n.right=a?n.start:n.end),null!=n.bottom&&(n.top=i.scrollHeight-i.clientHeight-n.bottom),a&&0!=xu()?(null!=n.left&&(n.right=i.scrollWidth-i.clientWidth-n.left),2==xu()?n.left=n.right:1==xu()&&(n.left=n.right?-n.right:n.right)):null!=n.right&&(n.left=i.scrollWidth-i.clientWidth-n.right),this._applyScrollToOptions(n)}},{key:"_applyScrollToOptions",value:function(n){var i=this.elementRef.nativeElement;E0()?i.scrollTo(n):(null!=n.top&&(i.scrollTop=n.top),null!=n.left&&(i.scrollLeft=n.left))}},{key:"measureScrollOffset",value:function(n){var i="left",a="right",o=this.elementRef.nativeElement;if("top"==n)return o.scrollTop;if("bottom"==n)return o.scrollHeight-o.clientHeight-o.scrollTop;var s=this.dir&&"rtl"==this.dir.value;return"start"==n?n=s?a:i:"end"==n&&(n=s?i:a),s&&2==xu()?n==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==xu()?n==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(td),B(st),B(sa,8))},e.\u0275dir=Ee({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),eg=function(){var e=function(){function r(t,n,i){var a=this;d(this,r),this._platform=t,this._change=new Pe,this._changeListener=function(o){a._change.next(o)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var o=a._getWindow();o.addEventListener("resize",a._changeListener),o.addEventListener("orientationchange",a._changeListener)}a.change().subscribe(function(){return a._viewportSize=null})})}return f(r,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),i=this.getViewportSize(),a=i.width,o=i.height;return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+a,height:o,width:a}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,i=this._getWindow(),a=n.documentElement,o=a.getBoundingClientRect();return{top:-o.top||n.body.scrollTop||i.scrollY||a.scrollTop||0,left:-o.left||n.body.scrollLeft||i.scrollX||a.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(iD(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Hn),le(st),le(ot,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),nd=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),aD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Zo,nd],Zo,nd]}),e}(),tg=function(){function e(){d(this,e)}return f(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),Pu=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this)).component=n,s.viewContainerRef=i,s.injector=a,s.componentFactoryResolver=o,s}return f(t)}(tg),ng=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this)).templateRef=n,o.viewContainerRef=i,o.context=a,o}return f(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=a,M(k(t.prototype),"attach",this).call(this,i)}},{key:"detach",value:function(){return this.context=void 0,M(k(t.prototype),"detach",this).call(this)}}]),t}(tg),EG=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this)).element=n instanceof Ye?n.nativeElement:n,i}return f(t)}(tg),rd=function(){function e(){d(this,e),this._isDisposed=!1,this.attachDomPortal=null}return f(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof Pu?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ng?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof EG?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),kG=function(e){p(t,e);var r=y(t);function t(n,i,a,o,s){var u,l;return d(this,t),(l=r.call(this)).outletElement=n,l._componentFactoryResolver=i,l._appRef=a,l._defaultInjector=o,l.attachDomPortal=function(c){var h=c.element,v=l._document.createComment("dom-portal");h.parentNode.insertBefore(v,h),l.outletElement.appendChild(h),l._attachedPortal=c,M((u=Q(l),k(t.prototype)),"setDisposeFn",u).call(u,function(){v.parentNode&&v.parentNode.replaceChild(h,v)})},l._document=s,l}return f(t,[{key:"attachComponentPortal",value:function(i){var u,a=this,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);return i.viewContainerRef?(u=i.viewContainerRef.createComponent(s,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector),this.setDisposeFn(function(){return u.destroy()})):(u=s.create(i.injector||this._defaultInjector),this._appRef.attachView(u.hostView),this.setDisposeFn(function(){a._appRef.detachView(u.hostView),u.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(u)),this._attachedPortal=i,u}},{key:"attachTemplatePortal",value:function(i){var a=this,o=i.viewContainerRef,s=o.createEmbeddedView(i.templateRef,i.context);return s.rootNodes.forEach(function(u){return a.outletElement.appendChild(u)}),s.detectChanges(),this.setDisposeFn(function(){var u=o.indexOf(s);-1!==u&&o.remove(u)}),this._attachedPortal=i,s}},{key:"dispose",value:function(){M(k(t.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(i){return i.hostView.rootNodes[0]}}]),t}(rd),id=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){var s,u;return d(this,n),(u=t.call(this))._componentFactoryResolver=i,u._viewContainerRef=a,u._isInitialized=!1,u.attached=new Dt,u.attachDomPortal=function(l){var c=l.element,h=u._document.createComment("dom-portal");l.setAttachedHost(Q(u)),c.parentNode.insertBefore(h,c),u._getRootNode().appendChild(c),u._attachedPortal=l,M((s=Q(u),k(n.prototype)),"setDisposeFn",s).call(s,function(){h.parentNode&&h.parentNode.replaceChild(c,h)})},u._document=o,u}return f(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(a){this.hasAttached()&&!a&&!this._isInitialized||(this.hasAttached()&&M(k(n.prototype),"detach",this).call(this),a&&M(k(n.prototype),"attach",this).call(this,a),this._attachedPortal=a||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){M(k(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(a){a.setAttachedHost(this);var o=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,u=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component),l=o.createComponent(u,o.length,a.injector||o.injector);return o!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),M(k(n.prototype),"setDisposeFn",this).call(this,function(){return l.destroy()}),this._attachedPortal=a,this._attachedRef=l,this.attached.emit(l),l}},{key:"attachTemplatePortal",value:function(a){var o=this;a.setAttachedHost(this);var s=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context);return M(k(n.prototype),"setDisposeFn",this).call(this,function(){return o._viewContainerRef.clear()}),this._attachedPortal=a,this._attachedRef=s,this.attached.emit(s),s}},{key:"_getRootNode",value:function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(B(ka),B(Mr),B(ot))},e.\u0275dir=Ee({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Re]}),e}(),rg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),oD=E0(),wG=function(){function e(r,t){d(this,e),this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return f(e,[{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=wn(-this._previousScrollPosition.left),t.style.top=wn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,i=t.style,a=this._document.body.style,o=i.scrollBehavior||"",s=a.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),oD&&(i.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),oD&&(i.scrollBehavior=o,a.scrollBehavior=s)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var n=this._document.body,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}}]),e}(),SG=function(){function e(r,t,n,i){var a=this;d(this,e),this._scrollDispatcher=r,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return f(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var i=t._viewportRuler.getViewportScrollPosition().top;Math.abs(i-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),sD=function(){function e(){d(this,e)}return f(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function ig(e,r){return r.some(function(t){return e.bottomt.bottom||e.rightt.right})}function uD(e,r){return r.some(function(t){return e.topt.bottom||e.leftt.right})}var DG=function(){function e(r,t,n,i){d(this,e),this._scrollDispatcher=r,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}return f(e,[{key:"attach",value:function(t){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 i=t._overlayRef.overlayElement.getBoundingClientRect(),a=t._viewportRuler.getViewportSize(),o=a.width,s=a.height;ig(i,[{width:o,height:s,bottom:s,right:o,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}}]),e}(),AG=function(){var e=f(function r(t,n,i,a){var o=this;d(this,r),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new sD},this.close=function(s){return new SG(o._scrollDispatcher,o._ngZone,o._viewportRuler,s)},this.block=function(){return new wG(o._viewportRuler,o._document)},this.reposition=function(s){return new DG(o._scrollDispatcher,o._viewportRuler,o._ngZone,s)},this._document=a});return e.\u0275fac=function(t){return new(t||e)(le(td),le(eg),le(st),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ag=f(function e(r){if(d(this,e),this.scrollStrategy=new sD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r)for(var n=0,i=Object.keys(r);nJ&&(J=ye,O=ee)}}catch(_e){te.e(_e)}finally{te.f()}return this._isPushed=!1,void this._applyPosition(O.position,O.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ba(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(lD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var n=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,n)}else this.apply()}}},{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,n,i){var a,u;if("center"==i.originX)a=t.left+t.width/2;else{var o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;a="start"==i.originX?o:s}return n.left<0&&(a-=n.left),u="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,n.top<0&&(u-=n.top),{x:a,y:u}}},{key:"_getOverlayPoint",value:function(t,n,i){var a;return a="center"==i.overlayX?-n.width/2:"start"===i.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+a,y:t.y+("center"==i.overlayY?-n.height/2:"top"==i.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,i,a){var o=dD(n),s=t.x,u=t.y,l=this._getOffset(a,"x"),c=this._getOffset(a,"y");l&&(s+=l),c&&(u+=c);var _=0-u,O=u+o.height-i.height,J=this._subtractOverflows(o.width,0-s,s+o.width-i.width),te=this._subtractOverflows(o.height,_,O),ue=J*te;return{visibleArea:ue,isCompletelyWithinViewport:o.width*o.height===ue,fitsInViewportVertically:te===o.height,fitsInViewportHorizontally:J==o.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,i){if(this._hasFlexibleDimensions){var a=i.bottom-n.y,o=i.right-n.x,s=cD(this._overlayRef.getConfig().minHeight),u=cD(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=a)&&(t.fitsInViewportHorizontally||null!=u&&u<=o)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var h,v,a=dD(n),o=this._viewportRect,s=Math.max(t.x+a.width-o.width,0),u=Math.max(t.y+a.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);return this._previousPushAmount={x:h=a.width<=o.width?c||-s:t.xc&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-c/2)}if("end"===n.overlayX&&!a||"start"===n.overlayX&&a)J=i.width-t.x+this._viewportMargin,_=t.x-this._viewportMargin;else if("start"===n.overlayX&&!a||"end"===n.overlayX&&a)O=t.x,_=i.right-t.x;else{var te=Math.min(i.right-t.x+i.left,t.x),ue=this._lastBoundingBoxSize.width;O=t.x-te,(_=2*te)>ue&&!this._isInitialRender&&!this._growAfterOpen&&(O=t.x-ue/2)}return{top:s,left:O,bottom:u,right:J,width:_,height:o}}},{key:"_setBoundingBoxStyles",value:function(t,n){var i=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;a.height=wn(i.height),a.top=wn(i.top),a.bottom=wn(i.bottom),a.width=wn(i.width),a.left=wn(i.left),a.right=wn(i.right),a.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",a.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",o&&(a.maxHeight=wn(o)),s&&(a.maxWidth=wn(s))}this._lastBoundingBoxSize=i,Ba(this._boundingBox.style,a)}},{key:"_resetBoundingBoxStyles",value:function(){Ba(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ba(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var i={},a=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(a){var u=this._viewportRuler.getViewportScrollPosition();Ba(i,this._getExactOverlayY(n,t,u)),Ba(i,this._getExactOverlayX(n,t,u))}else i.position="static";var l="",c=this._getOffset(n,"x"),h=this._getOffset(n,"y");c&&(l+="translateX(".concat(c,"px) ")),h&&(l+="translateY(".concat(h,"px)")),i.transform=l.trim(),s.maxHeight&&(a?i.maxHeight=wn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(a?i.maxWidth=wn(s.maxWidth):o&&(i.maxWidth="")),Ba(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,n,i){var a={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?a.bottom="".concat(this._document.documentElement.clientHeight-(o.y+this._overlayRect.height),"px"):a.top=wn(o.y),a}},{key:"_getExactOverlayX",value:function(t,n,i){var a={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?a.right="".concat(this._document.documentElement.clientWidth-(o.x+this._overlayRect.width),"px"):a.left=wn(o.x),a}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(a){return a.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:uD(t,i),isOriginOutsideView:ig(t,i),isOverlayClipped:uD(n,i),isOverlayOutsideView:ig(n,i)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=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,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),a=i.width,o=i.height,s=i.maxWidth,u=i.maxHeight,l=!("100%"!==a&&"100vw"!==a||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||u&&"100%"!==u&&"100vh"!==u);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(fD),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),IG=function(){var e=function(){function r(t,n,i,a){d(this,r),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=a}return f(r,[{key:"global",value:function(){return new OG}},{key:"flexibleConnectedTo",value:function(n){return new RG(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(eg),le(ot),le(Hn),le(og))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),hD=function(){var e=function(){function r(t){d(this,r),this._attachedOverlays=[],this._document=t}return f(r,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),FG=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this,i))._ngZone=a,o._keydownListener=function(s){for(var u=o._attachedOverlays,l=u.length-1;l>-1&&!(u[l]._keydownEvents.observers.length>0&&"break"===function(){var h=u[l]._keydownEvents;return o._ngZone?o._ngZone.run(function(){return h.next(s)}):h.next(s),"break"}());l--);},o}return f(n,[{key:"add",value:function(a){var o=this;M(k(n.prototype),"add",this).call(this,a),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return o._document.body.addEventListener("keydown",o._keydownListener)}):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(hD);return e.\u0275fac=function(t){return new(t||e)(le(ot),le(st,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),PG=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){var s;return d(this,n),(s=t.call(this,i))._platform=a,s._ngZone=o,s._cursorStyleIsSet=!1,s._pointerDownListener=function(u){s._pointerDownEventTarget=Va(u)},s._clickListener=function(u){var l=Va(u),c="click"===u.type&&s._pointerDownEventTarget?s._pointerDownEventTarget:l;s._pointerDownEventTarget=null;for(var h=s._attachedOverlays.slice(),v=function(te){var ue=h[te];if(ue._outsidePointerEvents.observers.length<1||!ue.hasAttached())return"continue";if(ue.overlayElement.contains(l)||ue.overlayElement.contains(c))return"break";var ee=ue._outsidePointerEvents;s._ngZone?s._ngZone.run(function(){return ee.next(u)}):ee.next(u)},_=h.length-1;_>-1;_--){var O=v(_);if("continue"!==O&&"break"===O)break}},s}return f(n,[{key:"add",value:function(a){var o=this;if(M(k(n.prototype),"add",this).call(this,a),!this._isAttached){var s=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return o._addEventListeners(s)}):this._addEventListeners(s),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=s.style.cursor,s.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0),a.removeEventListener("click",this._clickListener,!0),a.removeEventListener("auxclick",this._clickListener,!0),a.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(a){a.addEventListener("pointerdown",this._pointerDownListener,!0),a.addEventListener("click",this._clickListener,!0),a.addEventListener("auxclick",this._clickListener,!0),a.addEventListener("contextmenu",this._clickListener,!0)}}]),n}(hD);return e.\u0275fac=function(t){return new(t||e)(le(ot),le(Hn),le(st,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),LG=0,as=function(){var e=function(){function r(t,n,i,a,o,s,u,l,c,h,v){d(this,r),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=o,this._injector=s,this._ngZone=u,this._document=l,this._directionality=c,this._location=h,this._outsideClickDispatcher=v}return f(r,[{key:"create",value:function(n){var i=this._createHostElement(),a=this._createPaneElement(i),o=this._createPortalOutlet(a),s=new ag(n);return s.direction=s.direction||this._directionality.value,new MG(o,i,a,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var i=this._document.createElement("div");return i.id="cdk-overlay-".concat(LG++),i.classList.add("cdk-overlay-pane"),n.appendChild(i),i}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(Zl)),new kG(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(AG),le(og),le(ka),le(IG),le(FG),le(qt),le(st),le(ot),le(sa),le(Aa),le(PG))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),BG={provide:new Ne("cdk-connected-overlay-scroll-strategy"),deps:[as],useFactory:function VG(e){return function(){return e.scrollStrategies.reposition()}}},vD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[as,BG],imports:[[Zo,rg,aD],aD]}),e}();function sg(e){return new ct(function(r){or(e()).subscribe(r)})}function HG(){return hs(1)}function ad(){for(var e=arguments.length,r=new Array(e),t=0;t enter",Pi("150ms cubic-bezier(0, 0, 0.2, 1)",Ln({transform:"none",opacity:1}))),ia("* => void, * => exit",Pi("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ln({opacity:0})))])},GG=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c,h){var v;return d(this,n),(v=t.call(this))._elementRef=i,v._focusTrapFactory=a,v._changeDetectorRef=o,v._config=u,v._interactivityChecker=l,v._ngZone=c,v._focusMonitor=h,v._animationStateChanged=new Dt,v._elementFocusedBeforeDialogWasOpened=null,v._closeInteractionType=null,v.attachDomPortal=function(_){return v._portalOutlet.hasAttached(),v._portalOutlet.attachDomPortal(_)},v._ariaLabelledBy=u.ariaLabelledBy||null,v._document=s,v}return f(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}},{key:"attachComponentPortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(a)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(a,o){this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){a.addEventListener("blur",function(){return a.removeAttribute("tabindex")}),a.addEventListener("mousedown",function(){return a.removeAttribute("tabindex")})})),a.focus(o)}},{key:"_focusByCssSelector",value:function(a,o){var s=this._elementRef.nativeElement.querySelector(a);s&&this._forceFocus(s,o)}},{key:"_trapFocus",value:function(){var a=this,o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(s){s||a._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var a=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&a&&"function"==typeof a.focus){var o=Bp(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Bp())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var a=this._elementRef.nativeElement,o=Bp();return a===o||a.contains(o)}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(R0),B(gr),B(ot,8),B(ug),B(jp),B(st),B(Mu))},e.\u0275dir=Ee({type:e,viewQuery:function(t,n){var i;1&t&&Tr(id,7),2&t&&Ft(i=Pt())&&(n._portalOutlet=i.first)},features:[Re]}),e}(),zG=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments))._state="enter",i}return f(n,[{key:"_onAnimationDone",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})):"exit"===o&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:s}))}},{key:"_onAnimationStart",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(GG);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275cmp=Ht({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&qs("@dialogContainer.start",function(a){return n._onAnimationStart(a)})("@dialogContainer.done",function(a){return n._onAnimationDone(a)}),2&t&&(Fo("id",n._id),Kt("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Qs("@dialogContainer",n._state))},features:[Re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&$e(0,jG,0,0,"ng-template",0)},directives:[id],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[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:[UG.dialogContainer]}}),e}(),WG=0,lg=function(){function e(r,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(WG++);d(this,e),this._overlayRef=r,this._containerInstance=t,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Pe,this._afterClosed=new Pe,this._beforeClosed=new Pe,this._state=0,t._id=i,t._animationStateChanged.pipe(fn(function(a){return"opened"===a.state}),Yn(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(fn(function(a){return"closed"===a.state}),Yn(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),r.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),r.keydownEvents().pipe(fn(function(a){return 27===a.keyCode&&!n.disableClose&&!w0(a)})).subscribe(function(a){a.preventDefault(),cg(n,"keyboard")}),r.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():cg(n,"mouse")})}return f(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(fn(function(i){return"closing"===i.state}),Yn(1)).subscribe(function(i){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},i.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function cg(e,r,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=r),e.close(t)}var qG=new Ne("MatDialogData"),KG=new Ne("mat-dialog-default-options"),pD=new Ne("mat-dialog-scroll-strategy"),YG={provide:pD,deps:[as],useFactory:function QG(e){return function(){return e.scrollStrategies.block()}}},$G=function(){var e=function(){function r(t,n,i,a,o,s,u,l,c,h){var v=this;d(this,r),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=a,this._overlayContainer=o,this._dialogRefConstructor=u,this._dialogContainerType=l,this._dialogDataToken=c,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe,this._afterOpenedAtThisLevel=new Pe,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=sg(function(){return v.openDialogs.length?v._getAfterAllClosed():v._getAfterAllClosed().pipe(ua(void 0))}),this._scrollStrategy=s}return f(r,[{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:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,i){var a=this;if(i=function XG(e,r){return Object.assign(Object.assign({},r),e)}(i,this._defaultOptions||new ug),i.id&&this.getDialogById(i.id),this._dialogAnimatingOpen)return this._lastDialogRef;var o=this._createOverlay(i),s=this._attachDialogContainer(o,i);if("NoopAnimations"!==this._animationMode){var u=s._animationStateChanged.subscribe(function(c){"opening"===c.state&&(a._dialogAnimatingOpen=!0),"opened"===c.state&&(a._dialogAnimatingOpen=!1,u.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new F),this._animationStateSubscriptions.add(u)}var l=this._attachDialogContent(n,s,o,i);return this._lastDialogRef=l,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(function(){return a._removeOpenDialog(l)}),this.afterOpened.next(l),s._initializeWithAttachedContent(),l}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(i){return i.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}},{key:"_createOverlay",value:function(n){var i=this._getOverlayConfig(n);return this._overlay.create(i)}},{key:"_getOverlayConfig",value:function(n){var i=new ag({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(i.backdropClass=n.backdropClass),i}},{key:"_attachDialogContainer",value:function(n,i){var o=qt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:ug,useValue:i}]}),s=new Pu(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return n.attach(s).instance}},{key:"_attachDialogContent",value:function(n,i,a,o){var s=new this._dialogRefConstructor(a,i,o.id);if(n instanceof $r)i.attachTemplatePortal(new ng(n,null,{$implicit:o.data,dialogRef:s}));else{var u=this._createInjector(o,s,i),l=i.attachComponentPortal(new Pu(n,o.viewContainerRef,u,o.componentFactoryResolver));s.componentInstance=l.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}},{key:"_createInjector",value:function(n,i,a){var o=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:i}];return n.direction&&(!o||!o.get(sa,null,tt.Optional))&&s.push({provide:sa,useValue:{value:n.direction,change:Je()}}),qt.create({parent:o||this._injector,providers:s})}},{key:"_removeOpenDialog",value:function(n){var i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,o){a?o.setAttribute("aria-hidden",a):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var i=n.parentElement.children,a=i.length-1;a>-1;a--){var o=i[a];o!==n&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var i=n.length;i--;)n[i].close()}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275dir=Ee({type:e}),e}(),od=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c,h){return d(this,n),t.call(this,i,a,s,l,c,u,lg,zG,qG,h)}return f(n)}($G);return e.\u0275fac=function(t){return new(t||e)(le(as),le(qt),le(Aa,8),le(KG,8),le(pD),le(e,12),le(og),le(gi,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),ZG=0,JG=function(){var e=function(){function r(t,n,i){d(this,r),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return f(r,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=gD(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var i=n._matDialogClose||n._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}},{key:"_onButtonClick",value:function(n){cg(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(lg,8),B(Ye),B(od))},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&Ge("click",function(a){return n._onButtonClick(a)}),2&t&&Kt("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Wn]}),e}(),e5=function(){var e=function(){function r(t,n,i){d(this,r),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(ZG++)}return f(r,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=gD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=n._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=n.id)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(lg,8),B(Ye),B(od))},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&Fo("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),t5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),n5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function gD(e,r){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?r.find(function(n){return n.id===t.id}):null}var mD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[od,YG],imports:[[vD,rg,an],an]}),e}(),r5=["connectionContainer"],a5=["inputContainer"],o5=["label"];function s5(e,r){1&e&&(Gs(0),pe(1,"div",14),Xt(2,"div",15)(3,"div",16)(4,"div",17),ge(),pe(5,"div",18),Xt(6,"div",15)(7,"div",16)(8,"div",17),ge(),zs())}function u5(e,r){if(1&e){var t=Nt();pe(0,"div",19),Ge("cdkObserveContent",function(){return yt(t),ze().updateOutlineGap()}),jt(1,1),ge()}2&e&&xe("cdkObserveContentDisabled","outline"!=ze().appearance)}function l5(e,r){if(1&e&&(Gs(0),jt(1,2),pe(2,"span"),Oe(3),ge(),zs()),2&e){var t=ze(2);ke(3),bn(t._control.placeholder)}}function c5(e,r){1&e&&jt(0,3,["*ngSwitchCase","true"])}function d5(e,r){1&e&&(pe(0,"span",23),Oe(1," *"),ge())}function f5(e,r){if(1&e){var t=Nt();pe(0,"label",20,21),Ge("cdkObserveContent",function(){return yt(t),ze().updateOutlineGap()}),$e(2,l5,4,1,"ng-container",12),$e(3,c5,1,0,"ng-content",12),$e(4,d5,2,0,"span",22),ge()}if(2&e){var n=ze();It("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),xe("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),Kt("for",n._control.id)("aria-owns",n._control.id),ke(2),xe("ngSwitchCase",!1),ke(1),xe("ngSwitchCase",!0),ke(1),xe("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function h5(e,r){1&e&&(pe(0,"div",24),jt(1,4),ge())}function v5(e,r){if(1&e&&(pe(0,"div",25),Xt(1,"span",26),ge()),2&e){var t=ze();ke(1),It("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function p5(e,r){1&e&&(pe(0,"div"),jt(1,5),ge()),2&e&&xe("@transitionMessages",ze()._subscriptAnimationState)}function g5(e,r){if(1&e&&(pe(0,"div",30),Oe(1),ge()),2&e){var t=ze(2);xe("id",t._hintLabelId),ke(1),bn(t.hintLabel)}}function m5(e,r){if(1&e&&(pe(0,"div",27),$e(1,g5,2,2,"div",28),jt(2,6),Xt(3,"div",29),jt(4,7),ge()),2&e){var t=ze();xe("@transitionMessages",t._subscriptAnimationState),ke(1),xe("ngIf",t.hintLabel)}}var y5=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_5=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],b5=new Ne("MatError"),C5={transitionMessages:_u("transitionMessages",[Oa("enter",Ln({opacity:1,transform:"translateY(0%)"})),ia("void => enter",[Ln({opacity:0,transform:"translateY(-5px)"}),Pi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e}),e}(),E5=new Ne("MatHint"),yD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-label"]]}),e}(),k5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-placeholder"]]}),e}(),w5=new Ne("MatPrefix"),S5=new Ne("MatSuffix"),_D=0,A5=Tu(function(){return f(function e(r){d(this,e),this._elementRef=r})}(),"primary"),x5=new Ne("MAT_FORM_FIELD_DEFAULT_OPTIONS"),CD=new Ne("MatFormField"),fg=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i))._changeDetectorRef=a,h._dir=o,h._defaults=s,h._platform=u,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new Pe,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(_D++),h._labelId="mat-form-field-label-".concat(_D++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=s&&s.appearance?s.appearance:"legacy",h._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,h}return f(n,[{key:"appearance",get:function(){return this._appearance},set:function(a){var o=this._appearance;this._appearance=a||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&o!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Rt(a)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(a){this._hintLabel=a,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(a){this._explicitFormFieldControl=a}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var a=this;this._validateControlChild();var o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(o.controlType)),o.stateChanges.pipe(ua(null)).subscribe(function(){a._validatePlaceholders(),a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe(rn(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(rn(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&a.updateOutlineGap()})}),Qa(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0,a._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ua(null)).subscribe(function(){a._processHints(),a._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ua(null)).subscribe(function(){a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rn(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return a.updateOutlineGap()})}):a.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(a){var o=this._control?this._control.ngControl:null;return o&&o[a]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,is(this._label.nativeElement,"transitionend").pipe(Yn(1)).subscribe(function(){a._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var a=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&a.push.apply(a,E(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var o=this._hintChildren?this._hintChildren.find(function(u){return"start"===u.align}):null,s=this._hintChildren?this._hintChildren.find(function(u){return"end"===u.align}):null;o?a.push(o.id):this._hintLabel&&a.push(this._hintLabelId),s&&a.push(s.id)}else this._errorChildren&&a.push.apply(a,E(this._errorChildren.map(function(u){return u.id})));this._control.setDescribedByIds(a)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var a=this._label?this._label.nativeElement:null,o=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!a||!a.children.length||!a.textContent.trim()){for(var l=o.querySelectorAll("".concat(s,", ").concat(u)),c=0;c0?.75*ye+10:0}for(var Te=0;Te<_.length;Te++)_[Te].style.width="".concat(h,"px");for(var Ie=0;Ie1&&void 0!==arguments[1]?arguments[1]:n;return this._fontCssClassesByAlias.set(n,i),this}},{key:"classNameForFontAlias",value:function(n){return this._fontCssClassesByAlias.get(n)||n}},{key:"setDefaultFontSetClass",value:function(n){return this._defaultFontSetClass=n,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(n){var i=this,a=this._sanitizer.sanitize(xt.RESOURCE_URL,n);if(!a)throw wD(n);var o=this._cachedIconsByUrl.get(a);return o?Je(cd(o)):this._loadSvgIconFromConfig(new Ha(n,null)).pipe(Bn(function(s){return i._cachedIconsByUrl.set(a,s)}),Xe(function(s){return cd(s)}))}},{key:"getNamedSvgIcon",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=DD(i,n),o=this._svgIconConfigs.get(a);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,n))return this._svgIconConfigs.set(a,o),this._getSvgFromConfig(o);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(n,s):mi(kD(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(n){return n.svgText?Je(cd(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(Xe(function(i){return cd(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(n,i){var a=this,o=this._extractIconWithNameFromAnySet(n,i);return o?Je(o):xk(i.filter(function(u){return!u.svgText}).map(function(u){return a._loadSvgIconSetFromConfig(u).pipe(vn(function(l){var c=a._sanitizer.sanitize(xt.RESOURCE_URL,u.url),h="Loading icon set URL: ".concat(c," failed: ").concat(l.message);return a._errorHandler.handleError(new Error(h)),Je(null)}))})).pipe(Xe(function(){var u=a._extractIconWithNameFromAnySet(n,i);if(!u)throw kD(n);return u}))}},{key:"_extractIconWithNameFromAnySet",value:function(n,i){for(var a=i.length-1;a>=0;a--){var o=i[a];if(o.svgText&&o.svgText.toString().indexOf(n)>-1){var s=this._svgElementFromConfig(o),u=this._extractSvgIconFromSet(s,n,o.options);if(u)return u}}return null}},{key:"_loadSvgIconFromConfig",value:function(n){var i=this;return this._fetchIcon(n).pipe(Bn(function(a){return n.svgText=a}),Xe(function(){return i._svgElementFromConfig(n)}))}},{key:"_loadSvgIconSetFromConfig",value:function(n){return n.svgText?Je(null):this._fetchIcon(n).pipe(Bn(function(i){return n.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(n,i,a){var o=n.querySelector('[id="'.concat(i,'"]'));if(!o)return null;var s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,a);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),a);var u=this._svgElementFromString(Lu(""));return u.appendChild(s),this._setSvgAttributes(u,a)}},{key:"_svgElementFromString",value:function(n){var i=this._document.createElement("DIV");i.innerHTML=n;var a=i.querySelector("svg");if(!a)throw Error(" tag not found");return a}},{key:"_toSvgElement",value:function(n){for(var i=this._svgElementFromString(Lu("")),a=n.attributes,o=0;o-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,o=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&o&&o.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)}}]),n}(G5);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Hn),B(Ii,10),B(ra,8),B(Ac,8),B(j0),B(H5,10),B(B5),B(st),B(CD,8))},e.\u0275dir=Ee({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(t,n){1&t&&Ge("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(Fo("disabled",n.disabled)("required",n.required),Kt("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),It("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[At([{provide:dg,useExisting:e}]),Re,Wn]}),e}(),RD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[j0],imports:[[TD,sd,an],TD,sd]}),e}(),z5=function(){var e=function(){function r(){d(this,r),this._listeners=[]}return f(r,[{key:"notify",value:function(n,i){var o,a=Y(this._listeners);try{for(a.s();!(o=a.n()).done;)(0,o.value)(n,i)}catch(u){a.e(u)}finally{a.f()}}},{key:"listen",value:function(n){var i=this;return this._listeners.push(n),function(){i._listeners=i._listeners.filter(function(a){return n!==a})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),W5=["input"],q5=function(r){return{enterDuration:r}},K5=["*"],Q5=new Ne("mat-radio-default-options",{providedIn:"root",factory:function Y5(){return{color:"accent"}}}),OD=0,$5={provide:Ir,useExisting:Tt(function(){return vg}),multi:!0},ID=f(function e(r,t){d(this,e),this.source=r,this.value=t}),FD=new Ne("MatRadioGroup"),X5=function(){var e=function(){function r(t){d(this,r),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(OD++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Dt}return f(r,[{key:"name",get:function(){return this._name},set:function(n){this._name=n,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(n){this._labelPosition="before"===n?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(n){this._value!==n&&(this._value=n,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n,this.value=n?n.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=Rt(n),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(n){this._required=Rt(n),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var n=this;this._radios&&this._radios.forEach(function(i){i.name=n.name,i._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var n=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(a){a.checked=n.value===a.value,a.checked&&(n._selected=a)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new ID(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(n){return n._markForCheck()})}},{key:"writeValue",value:function(n){this.value=n,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(n){this._controlValueAccessorChangeFn=n}},{key:"registerOnTouched",value:function(n){this.onTouched=n}},{key:"setDisabledState",value:function(n){this.disabled=n,this._changeDetector.markForCheck()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(gr))},e.\u0275dir=Ee({type:e,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),e}(),vg=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n)}(X5);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["mat-radio-group"]],contentQueries:function(t,n,i){var a;1&t&&Pn(i,pg,5),2&t&&Ft(a=Pt())&&(n._radios=a)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[At([$5,{provide:FD,useExisting:e}]),Re]}),e}(),Z5=f(function e(r){d(this,e),this._elementRef=r}),J5=Gp(H0(Z5)),e8=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c,h){var v;return d(this,n),(v=t.call(this,a))._changeDetector=o,v._focusMonitor=s,v._radioDispatcher=u,v._providerOverride=c,v._uniqueId="mat-radio-".concat(++OD),v.id=v._uniqueId,v.change=new Dt,v._checked=!1,v._value=null,v._removeUniqueSelectionListener=function(){},v.radioGroup=i,v._noopAnimations="NoopAnimations"===l,h&&(v.tabIndex=Du(h,0)),v._removeUniqueSelectionListener=u.listen(function(_,O){_!==v.id&&O===v.name&&(v.checked=!1)}),v}return f(n,[{key:"checked",get:function(){return this._checked},set:function(a){var o=Rt(a);this._checked!==o&&(this._checked=o,o&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!o&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),o&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(a){this._value!==a&&(this._value=a,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===a),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled(Rt(a))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=Rt(a)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(a,o){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(o){!o&&a.radioGroup&&a.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new ID(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(a){a.stopPropagation()}},{key:"_onInputInteraction",value:function(a){if(a.stopPropagation(),!this.checked&&!this.disabled){var o=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),o&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())}}]),n}(J5);return e.\u0275fac=function(t){Us()},e.\u0275dir=Ee({type:e,viewQuery:function(t,n){var i;1&t&&Tr(W5,5),2&t&&Ft(i=Pt())&&(n._inputElement=i.first)},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[Re]}),e}(),pg=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c,h){return d(this,n),t.call(this,i,a,o,s,u,l,c,h)}return f(n)}(e8);return e.\u0275fac=function(t){return new(t||e)(B(FD,8),B(Ye),B(gr),B(Mu),B(z5),B(gi,8),B(Q5,8),$i("tabindex"))},e.\u0275cmp=Ht({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,n){1&t&&Ge("focus",function(){return n._inputElement.nativeElement.focus()}),2&t&&(Kt("tabindex",null)("id",n.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),It("mat-radio-checked",n.checked)("mat-radio-disabled",n.disabled)("_mat-animation-noopable",n._noopAnimations)("mat-primary","primary"===n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Re],ngContentSelectors:K5,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","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,n){if(1&t&&(ir(),pe(0,"label",0,1)(2,"span",2),Xt(3,"span",3)(4,"span",4),pe(5,"input",5,6),Ge("change",function(o){return n._onInputInteraction(o)})("click",function(o){return n._onInputClick(o)}),ge(),pe(7,"span",7),Xt(8,"span",8),ge()(),pe(9,"span",9)(10,"span",10),Oe(11,"\xa0"),ge(),jt(12),ge()()),2&t){var i=Qn(1);Kt("for",n.inputId),ke(5),xe("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex)("required",n.required),Kt("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),ke(2),xe("matRippleTrigger",i)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",jh(18,q5,n._noopAnimations?0:150)),ke(2),It("mat-radio-label-before","before"==n.labelPosition)}},directives:[Ou],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;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),PD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an],an]}),e}();function LD(e){return Xe(function(){return e})}var dd=["*"],t8=["content"];function n8(e,r){if(1&e){var t=Nt();pe(0,"div",2),Ge("click",function(){return yt(t),ze()._onBackdropClicked()}),ge()}2&e&&It("mat-drawer-shown",ze()._isShowingBackdrop())}function r8(e,r){1&e&&(pe(0,"mat-drawer-content"),jt(1,2),ge())}var i8=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],a8=["mat-drawer","mat-drawer-content","*"];function o8(e,r){if(1&e){var t=Nt();pe(0,"div",2),Ge("click",function(){return yt(t),ze()._onBackdropClicked()}),ge()}2&e&&It("mat-drawer-shown",ze()._isShowingBackdrop())}function s8(e,r){1&e&&(pe(0,"mat-sidenav-content"),jt(1,2),ge())}var u8=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l8=["mat-sidenav","mat-sidenav-content","*"],ND={transformDrawer:_u("transform",[Oa("open, open-instant",Ln({transform:"none",visibility:"visible"})),Oa("void",Ln({"box-shadow":"none",visibility:"hidden"})),ia("void => open-instant",Pi("0ms")),ia("void <=> open, open-instant => void",Pi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},d8=new Ne("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function f8(){return!1}}),gg=new Ne("MAT_DRAWER_CONTAINER"),fd=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,o,s,u))._changeDetectorRef=i,l._container=a,l}return f(n,[{key:"ngAfterContentInit",value:function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})}}]),n}(Fu);return e.\u0275fac=function(t){return new(t||e)(B(gr),B(Tt(function(){return BD})),B(Ye),B(td),B(st))},e.\u0275cmp=Ht({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,n){2&t&&xi("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[At([{provide:Fu,useExisting:e}]),Re],ngContentSelectors:dd,decls:1,vars:0,template:function(t,n){1&t&&(ir(),jt(0))},encapsulation:2,changeDetection:0}),e}(),VD=function(){var e=function(){function r(t,n,i,a,o,s,u,l){var c=this;d(this,r),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=a,this._ngZone=o,this._interactivityChecker=s,this._doc=u,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Pe,this._animationEnd=new Pe,this._animationState="void",this.openedChange=new Dt(!0),this._openedStream=this.openedChange.pipe(fn(function(h){return h}),Xe(function(){})),this.openedStart=this._animationStarted.pipe(fn(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),LD(void 0)),this._closedStream=this.openedChange.pipe(fn(function(h){return!h}),Xe(function(){})),this.closedStart=this._animationStarted.pipe(fn(function(h){return h.fromState!==h.toState&&"void"===h.toState}),LD(void 0)),this._destroyed=new Pe,this.onPositionChanged=new Dt,this._modeChanged=new Pe,this.openedChange.subscribe(function(h){h?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus(c._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){is(c._elementRef.nativeElement,"keydown").pipe(fn(function(h){return 27===h.keyCode&&!c.disableClose&&!w0(h)}),rn(c._destroyed)).subscribe(function(h){return c._ngZone.run(function(){c.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe(D0(function(h,v){return h.fromState===v.fromState&&h.toState===v.toState})).subscribe(function(h){var v=h.fromState,_=h.toState;(0===_.indexOf("open")&&"void"===v||"void"===_&&0===v.indexOf("open"))&&c.openedChange.emit(c._opened)})}return f(r,[{key:"position",get:function(){return this._position},set:function(n){(n="end"===n?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(n),this._position=n,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(n){this._mode=n,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(n){this._disableClose=Rt(n)}},{key:"autoFocus",get:function(){var n=this._autoFocus;return null==n?"side"===this.mode?"dialog":"first-tabbable":n},set:function(n){("true"===n||"false"===n||null==n)&&(n=Rt(n)),this._autoFocus=n}},{key:"opened",get:function(){return this._opened},set:function(n){this.toggle(Rt(n))}},{key:"_forceFocus",value:function(n,i){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(function(){n.addEventListener("blur",function(){return n.removeAttribute("tabindex")}),n.addEventListener("mousedown",function(){return n.removeAttribute("tabindex")})})),n.focus(i)}},{key:"_focusByCssSelector",value:function(n,i){var a=this._elementRef.nativeElement.querySelector(n);a&&this._forceFocus(a,i)}},{key:"_takeFocus",value:function(){var n=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(a){!a&&"function"==typeof n._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(n){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var n;this._focusTrap&&this._focusTrap.destroy(),null===(n=this._anchor)||void 0===n||n.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(n){return this.toggle(!0,n)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;n&&i&&(this._openedVia=i);var a=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),a}},{key:"_setOpen",value:function(n,i,a){var o=this;return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(a)),this._updateFocusTrapState(),new Promise(function(s){o.openedChange.pipe(Yn(1)).subscribe(function(u){return s(u?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_updatePositionInParent",value:function(n){var i=this._elementRef.nativeElement,a=i.parentNode;"end"===n?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),a.insertBefore(this._anchor,i)),a.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(R0),B(Mu),B(Hn),B(st),B(jp),B(ot,8),B(gg,8))},e.\u0275cmp=Ht({type:e,selectors:[["mat-drawer"]],viewQuery:function(t,n){var i;1&t&&Tr(t8,5),2&t&&Ft(i=Pt())&&(n._content=i.first)},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,n){1&t&&qs("@transform.start",function(a){return n._animationStarted.next(a)})("@transform.done",function(a){return n._animationEnd.next(a)}),2&t&&(Kt("align",null),Qs("@transform",n._animationState),It("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:dd,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,n){1&t&&(ir(),pe(0,"div",0,1),jt(2),ge())},directives:[Fu],encapsulation:2,data:{animation:[ND.transformDrawer]},changeDetection:0}),e}(),BD=function(){var e=function(){function r(t,n,i,a,o){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;d(this,r),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=a,this._animationMode=l,this._drawers=new YC,this.backdropClick=new Dt,this._destroyed=new Pe,this._doCheckSubject=new Pe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Pe,t&&t.change.pipe(rn(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe(rn(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=u}return f(r,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(n){this._autosize=Rt(n)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(n){this._backdropOverride=null==n?null:Rt(n)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var n=this;this._allDrawers.changes.pipe(ua(this._allDrawers),rn(this._destroyed)).subscribe(function(i){n._drawers.reset(i.filter(function(a){return!a._container||a._container===n})),n._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ua(null)).subscribe(function(){n._validateDrawers(),n._drawers.forEach(function(i){n._watchDrawerToggle(i),n._watchDrawerPosition(i),n._watchDrawerMode(i)}),(!n._drawers.length||n._isDrawerOpen(n._start)||n._isDrawerOpen(n._end))&&n.updateContentMargins(),n._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){n._doCheckSubject.pipe(Zp(10),rn(n._destroyed)).subscribe(function(){return n.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(n){return n.open()})}},{key:"close",value:function(){this._drawers.forEach(function(n){return n.close()})}},{key:"updateContentMargins",value:function(){var n=this,i=0,a=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var o=this._left._getWidth();i+=o,a-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)a+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();a+=s,i-=s}a=a||null,((i=i||null)!==this._contentMargins.left||a!==this._contentMargins.right)&&(this._contentMargins={left:i,right:a},this._ngZone.run(function(){return n._contentMarginChanges.next(n._contentMargins)}))}},{key:"ngDoCheck",value:function(){var n=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return n._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(n){var i=this;n._animationStarted.pipe(fn(function(a){return a.fromState!==a.toState}),rn(this._drawers.changes)).subscribe(function(a){"open-instant"!==a.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==n.mode&&n.openedChange.pipe(rn(this._drawers.changes)).subscribe(function(){return i._setContainerClass(n.opened)})}},{key:"_watchDrawerPosition",value:function(n){var i=this;!n||n.onPositionChanged.pipe(rn(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe(Yn(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(n){var i=this;n&&n._modeChanged.pipe(rn(Qa(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(n){var i=this._element.nativeElement.classList,a="mat-drawer-container-has-open";n?i.add(a):i.remove(a)}},{key:"_validateDrawers",value:function(){var n=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?n._end=i:n._start=i}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var n=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&n._canHaveBackdrop(i)}).forEach(function(i){return i._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(n){return"side"!==n.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(n){return null!=n&&n.opened}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(sa,8),B(Ye),B(st),B(gr),B(eg),B(d8),B(gi,8))},e.\u0275cmp=Ht({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(t,n,i){var a;1&t&&(Pn(i,fd,5),Pn(i,VD,5)),2&t&&(Ft(a=Pt())&&(n._content=a.first),Ft(a=Pt())&&(n._allDrawers=a))},viewQuery:function(t,n){var i;1&t&&Tr(fd,5),2&t&&Ft(i=Pt())&&(n._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-drawer-container-explicit-backdrop",n._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[At([{provide:gg,useExisting:e}])],ngContentSelectors:a8,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,n){1&t&&(ir(i8),$e(0,n8,1,2,"div",0),jt(1),jt(2,1),$e(3,r8,2,0,"mat-drawer-content",1)),2&t&&(xe("ngIf",n.hasBackdrop),ke(3),xe("ngIf",!n._content))},directives:[fd,Jr],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),e}(),HD=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){return d(this,n),t.call(this,i,a,o,s,u)}return f(n)}(fd);return e.\u0275fac=function(t){return new(t||e)(B(gr),B(Tt(function(){return UD})),B(Ye),B(td),B(st))},e.\u0275cmp=Ht({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,n){2&t&&xi("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[At([{provide:Fu,useExisting:e}]),Re],ngContentSelectors:dd,decls:1,vars:0,template:function(t,n){1&t&&(ir(),jt(0))},encapsulation:2,changeDetection:0}),e}(),jD=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return f(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=Rt(a)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Du(a)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Du(a)}}]),n}(VD);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275cmp=Ht({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,n){2&t&&(Kt("align",null),xi("top",n.fixedInViewport?n.fixedTopGap:null,"px")("bottom",n.fixedInViewport?n.fixedBottomGap:null,"px"),It("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened)("mat-sidenav-fixed",n.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Re],ngContentSelectors:dd,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,n){1&t&&(ir(),pe(0,"div",0,1),jt(2),ge())},directives:[Fu],encapsulation:2,data:{animation:[ND.transformDrawer]},changeDetection:0}),e}(),UD=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n)}(BD);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275cmp=Ht({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,n,i){var a;1&t&&(Pn(i,HD,5),Pn(i,jD,5)),2&t&&(Ft(a=Pt())&&(n._content=a.first),Ft(a=Pt())&&(n._allDrawers=a))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-drawer-container-explicit-backdrop",n._backdropOverride)},exportAs:["matSidenavContainer"],features:[At([{provide:gg,useExisting:e}]),Re],ngContentSelectors:l8,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,n){1&t&&(ir(u8),$e(0,o8,1,2,"div",0),jt(1),jt(2,1),$e(3,s8,2,0,"mat-sidenav-content",1)),2&t&&(xe("ngIf",n.hasBackdrop),ke(3),xe("ngIf",!n._content))},directives:[HD,Jr],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),e}(),GD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[dc,an,nd],nd,an]}),e}();function zD(){for(var e=arguments.length,r=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:en;return function(n){WD(r,function(){for(var i=e.length,a=new Array(i),o=i,s=i,u=function(h){WD(r,function(){var v=In(e[h],r),_=!1;v.subscribe(zt(n,function(O){a[h]=O,_||(_=!0,s--),s||n.next(t(a.slice()))},function(){--o||n.complete()}))},n)},l=0;l visible",Pi("150ms cubic-bezier(0, 0, 0.2, 1)")),ia("* => void, * => hidden",Pi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ln({opacity:0})))])},k8=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this))._ngZone=i,l._elementRef=a,l._changeDetectorRef=o,l._platform=s,l.snackBarConfig=u,l._announceDelay=150,l._destroyed=!1,l._onAnnounce=new Pe,l._onExit=new Pe,l._onEnter=new Pe,l._animationState="void",l.attachDomPortal=function(c){return l._assertNotAttached(),l._applySnackBarClasses(),l._portalOutlet.attachDomPortal(c)},l._live="assertive"!==u.politeness||u.announcementMessage?"off"===u.politeness?"off":"polite":"assertive",l._platform.FIREFOX&&("polite"===l._live&&(l._role="status"),"assertive"===l._live&&(l._role="alert")),l}return f(n,[{key:"attachComponentPortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}},{key:"onAnimationEnd",value:function(a){var s=a.toState;if(("void"===s&&"void"!==a.fromState||"hidden"===s)&&this._completeExit(),"visible"===s){var u=this._onEnter;this._ngZone.run(function(){u.next(),u.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(Yn(1)).subscribe(function(){a._onExit.next(),a._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var a=this._elementRef.nativeElement,o=this.snackBarConfig.panelClass;o&&(Array.isArray(o)?o.forEach(function(s){return a.classList.add(s)}):a.classList.add(o)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var o=a._elementRef.nativeElement.querySelector("[aria-hidden]"),s=a._elementRef.nativeElement.querySelector("[aria-live]");if(o&&s){var u=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&o.contains(document.activeElement)&&(u=document.activeElement),o.removeAttribute("aria-hidden"),s.appendChild(o),null==u||u.focus(),a._onAnnounce.next(),a._onAnnounce.complete()}},a._announceDelay)})}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(B(st),B(Ye),B(gr),B(Hn),B(hd))},e.\u0275cmp=Ht({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var i;1&t&&Tr(id,7),2&t&&Ft(i=Pt())&&(n._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&qs("@state.done",function(a){return n.onAnimationEnd(a)}),2&t&&Qs("@state",n._animationState)},features:[Re],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(pe(0,"div",0),$e(1,_8,0,0,"ng-template",1),ge(),Xt(2,"div")),2&t&&(ke(2),Kt("aria-live",n._live)("role",n._role))},directives:[id],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:[E8.snackBarState]}}),e}(),yg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[vD,rg,dc,qp,an],an]}),e}(),$D=new Ne("mat-snack-bar-default-options",{providedIn:"root",factory:function w8(){return new hd}}),S8=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=a,this._parentSnackBar=o,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return f(r,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,i){return this._attach(n,i)}},{key:"openFromTemplate",value:function(n,i){return this._attach(n,i)}},{key:"open",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=Object.assign(Object.assign({},this._defaultConfig),a);return o.data={message:n,action:i},o.announcementMessage===n&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,i){var o=qt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:hd,useValue:i}]}),s=new Pu(this.snackBarContainerComponent,i.viewContainerRef,o),u=n.attach(s);return u.instance.snackBarConfig=i,u.instance}},{key:"_attach",value:function(n,i){var a=this,o=Object.assign(Object.assign(Object.assign({},new hd),this._defaultConfig),i),s=this._createOverlay(o),u=this._attachSnackBarContainer(s,o),l=new mg(u,s);if(n instanceof $r){var c=new ng(n,null,{$implicit:o.data,snackBarRef:l});l.instance=u.attachTemplatePortal(c)}else{var h=this._createInjector(o,l),v=new Pu(n,void 0,h),_=u.attachComponentPortal(v);l.instance=_.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(rn(s.detachments())).subscribe(function(O){s.overlayElement.classList.toggle(a.handsetCssClass,O.matches)}),o.announcementMessage&&u._onAnnounce.subscribe(function(){a._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,i){var a=this;n.afterDismissed().subscribe(function(){a._openedSnackBarRef==n&&(a._openedSnackBarRef=null),i.announcementMessage&&a._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),i.duration&&i.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(i.duration)})}},{key:"_createOverlay",value:function(n){var i=new ag;i.direction=n.direction;var a=this._overlay.position().global(),o="rtl"===n.direction,s="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!o||"end"===n.horizontalPosition&&o,u=!s&&"center"!==n.horizontalPosition;return s?a.left("0"):u?a.right("0"):a.centerHorizontally(),"top"===n.verticalPosition?a.top("0"):a.bottom("0"),i.positionStrategy=a,this._overlay.create(i)}},{key:"_createInjector",value:function(n,i){return qt.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:mg,useValue:i},{provide:YD,useValue:n.data}]})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(as),le(P0),le(qt),le(KD),le(e,12),le($D))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),_g=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l){var c;return d(this,n),(c=t.call(this,i,a,o,s,u,l)).simpleSnackBarComponent=C8,c.snackBarContainerComponent=k8,c.handsetCssClass="mat-snack-bar-handset",c}return f(n)}(S8);return e.\u0275fac=function(t){return new(t||e)(le(as),le(P0),le(qt),le(KD),le(e,12),le($D))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:yg}),e}(),D8=["*",[["mat-toolbar-row"]]],A8=["*","mat-toolbar-row"],x8=Tu(function(){return f(function e(r){d(this,e),this._elementRef=r})}()),M8=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),T8=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){var s;return d(this,n),(s=t.call(this,i))._platform=a,s._document=o,s}return f(n,[{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return a._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(x8);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Hn),B(ot))},e.\u0275cmp=Ht({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,i){var a;1&t&&Pn(i,M8,5),2&t&&Ft(a=Pt())&&(n._toolbarRows=a)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&It("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Re],ngContentSelectors:A8,decls:2,vars:0,template:function(t,n){1&t&&(ir(D8),jt(0),jt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),XD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),R8=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[qp,GD,XD,xD,RD,W0,sd,mD,PD,eD,yg],qp,GD,XD,xD,RD,W0,sd,mD,PD,eD,yg]}),e}(),vd=N(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function ZD(){return Yt(function(e,r){var t=null;e._refCount++;var n=zt(r,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)t=null;else{var i=e._connection,a=t;t=null,i&&(!a||i===a)&&i.unsubscribe(),r.unsubscribe()}});e.subscribe(n),n.closed||(t=e.connect())})}var O8=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).source=n,a.subjectFactory=i,a._subject=null,a._refCount=0,a._connection=null,fa(n)&&(a.lift=n.lift),a}return f(t,[{key:"_subscribe",value:function(i){return this.getSubject().subscribe(i)}},{key:"getSubject",value:function(){var i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"_teardown",value:function(){this._refCount=0;var i=this._connection;this._subject=this._connection=null,null==i||i.unsubscribe()}},{key:"connect",value:function(){var i=this,a=this._connection;if(!a){a=this._connection=new F;var o=this.getSubject();a.add(this.source.subscribe(zt(o,void 0,function(){i._teardown(),o.complete()},function(s){i._teardown(),o.error(s)},function(){return i._teardown()}))),a.closed&&(this._connection=null,a=F.EMPTY)}return a}},{key:"refCount",value:function(){return ZD()(this)}}]),t}(ct);function ja(e,r){return Yt(function(t,n){var i=null,a=0,o=!1,s=function(){return o&&!i&&n.complete()};t.subscribe(zt(n,function(u){null==i||i.unsubscribe();var l=0,c=a++;or(e(u,c)).subscribe(i=zt(n,function(h){return n.next(r?r(u,h,c,l++):h)},function(){i=null,s()}))},function(){o=!0,s()}))})}function I8(e,r,t,n,i){return function(a,o){var s=t,u=r,l=0;a.subscribe(zt(o,function(c){var h=l++;u=s?e(u,c,h):(s=!0,c),n&&o.next(u)},i&&function(){s&&o.next(u),o.complete()}))}}function JD(e,r){return Yt(I8(e,r,arguments.length>=2,!0))}function bg(e){return e<=0?function(){return ri}:Yt(function(r,t){var n=[];r.subscribe(zt(t,function(i){n.push(i),e0&&void 0!==arguments[0]?arguments[0]:F8;return Yt(function(r,t){var n=!1;r.subscribe(zt(t,function(i){n=!0,t.next(i)},function(){return n?t.complete():t.error(e())}))})}function F8(){return new vd}function tA(e){return Yt(function(r,t){var n=!1;r.subscribe(zt(t,function(i){n=!0,t.next(i)},function(){n||t.next(e),t.complete()}))})}function ss(e,r){var t=arguments.length>=2;return function(n){return n.pipe(e?fn(function(i,a){return e(i,a,n)}):en,Yn(1),t?tA(r):eA(function(){return new vd}))}}var Bi=f(function e(r,t){d(this,e),this.id=r,this.url=t}),Cg=function(e){p(t,e);var r=y(t);function t(n,i){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return d(this,t),(a=r.call(this,n,i)).navigationTrigger=o,a.restoredState=s,a}return f(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Bi),Vu=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).urlAfterRedirects=a,o}return f(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(Bi),nA=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).reason=a,o}return f(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Bi),L8=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).error=a,o}return f(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(Bi),N8=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),V8=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),B8=function(e){p(t,e);var r=y(t);function t(n,i,a,o,s){var u;return d(this,t),(u=r.call(this,n,i)).urlAfterRedirects=a,u.state=o,u.shouldActivate=s,u}return f(t,[{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,")")}}]),t}(Bi),H8=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),j8=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),rA=function(){function e(r){d(this,e),this.route=r}return f(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),iA=function(){function e(r){d(this,e),this.route=r}return f(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),U8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),G8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),z8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),W8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),aA=function(){function e(r,t,n){d(this,e),this.routerEvent=r,this.position=t,this.anchor=n}return f(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),_t="primary",q8=function(){function e(r){d(this,e),this.params=r||{}}return f(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function us(e){return new q8(e)}var oA="ngNavigationCancelingError";function Eg(e){var r=Error("NavigationCancelingError: "+e);return r[oA]=!0,r}function Q8(e,r,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(r.hasChildren()||n.length0?e[e.length-1]:null}function jn(e,r){for(var t in e)e.hasOwnProperty(t)&&r(e[t],t)}function _i(e){return Ah(e)?e:Ws(e)?In(Promise.resolve(e)):Je(e)}var X8={exact:function fA(e,r,t){if(!Ga(e.segments,r.segments)||!pd(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children)if(!e.children[n]||!fA(e.children[n],r.children[n],t))return!1;return!0},subset:hA},cA={exact:function Z8(e,r){return yi(e,r)},subset:function J8(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(function(t){return sA(e[t],r[t])})},ignored:function(){return!0}};function dA(e,r,t){return X8[t.paths](e.root,r.root,t.matrixParams)&&cA[t.queryParams](e.queryParams,r.queryParams)&&!("exact"===t.fragment&&e.fragment!==r.fragment)}function hA(e,r,t){return vA(e,r,r.segments,t)}function vA(e,r,t,n){if(e.segments.length>t.length){var i=e.segments.slice(0,t.length);return!(!Ga(i,t)||r.hasChildren()||!pd(i,t,n))}if(e.segments.length===t.length){if(!Ga(e.segments,t)||!pd(e.segments,t,n))return!1;for(var a in r.children)if(!e.children[a]||!hA(e.children[a],r.children[a],n))return!1;return!0}var o=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!!(Ga(e.segments,o)&&pd(e.segments,o,n)&&e.children[_t])&&vA(e.children[_t],r,s,n)}function pd(e,r,t){return r.every(function(n,i){return cA[t](e[i].parameters,n.parameters)})}var Ua=function(){function e(r,t,n){d(this,e),this.root=r,this.queryParams=t,this.fragment=n}return f(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=us(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return nz.serialize(this)}}]),e}(),kt=function(){function e(r,t){var n=this;d(this,e),this.segments=r,this.children=t,this.parent=null,jn(t,function(i,a){return i.parent=n})}return f(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return gd(this)}}]),e}(),Bu=function(){function e(r,t){d(this,e),this.path=r,this.parameters=t}return f(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=us(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return _A(this)}}]),e}();function Ga(e,r){return e.length===r.length&&e.every(function(t,n){return t.path===r[n].path})}var pA=f(function e(){d(this,e)}),gA=function(){function e(){d(this,e)}return f(e,[{key:"parse",value:function(t){var n=new dz(t);return new Ua(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(Hu(t.root,!0)),i=function az(e){var r=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(i){return"".concat(md(t),"=").concat(md(i))}).join("&"):"".concat(md(t),"=").concat(md(n))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function rz(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(i).concat(a)}}]),e}(),nz=new gA;function gd(e){return e.segments.map(function(r){return _A(r)}).join("/")}function Hu(e,r){if(!e.hasChildren())return gd(e);if(r){var t=e.children[_t]?Hu(e.children[_t],!1):"",n=[];return jn(e.children,function(a,o){o!==_t&&n.push("".concat(o,":").concat(Hu(a,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var i=function tz(e,r){var t=[];return jn(e.children,function(n,i){i===_t&&(t=t.concat(r(n,i)))}),jn(e.children,function(n,i){i!==_t&&(t=t.concat(r(n,i)))}),t}(e,function(a,o){return o===_t?[Hu(e.children[_t],!1)]:["".concat(o,":").concat(Hu(a,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[_t]?"".concat(gd(e),"/").concat(i[0]):"".concat(gd(e),"/(").concat(i.join("//"),")")}function mA(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function md(e){return mA(e).replace(/%3B/gi,";")}function kg(e){return mA(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yd(e){return decodeURIComponent(e)}function yA(e){return yd(e.replace(/\+/g,"%20"))}function _A(e){return"".concat(kg(e.path)).concat(function iz(e){return Object.keys(e).map(function(r){return";".concat(kg(r),"=").concat(kg(e[r]))}).join("")}(e.parameters))}var oz=/^[^\/()?;=#]+/;function _d(e){var r=e.match(oz);return r?r[0]:""}var sz=/^[^=?&#]+/,lz=/^[^&#]+/,dz=function(){function e(r){d(this,e),this.url=r,this.remaining=r}return f(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kt([],{}):new kt([],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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(i[_t]=new kt(t,n)),i}},{key:"parseSegment",value:function(){var t=_d(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Bu(yd(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=_d(this.remaining);if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var a=_d(this.remaining);a&&this.capture(i=a)}t[yd(n)]=yd(i)}}},{key:"parseQueryParam",value:function(t){var n=function uz(e){var r=e.match(sz);return r?r[0]:""}(this.remaining);if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var a=function cz(e){var r=e.match(lz);return r?r[0]:""}(this.remaining);a&&this.capture(i=a)}var o=yA(n),s=yA(i);if(t.hasOwnProperty(o)){var u=t[o];Array.isArray(u)||(t[o]=u=[u]),u.push(s)}else t[o]=s}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=_d(this.remaining),a=this.remaining[i.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;i.indexOf(":")>-1?(o=i.substr(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=_t);var s=this.parseChildren();n[o]=1===Object.keys(s).length?s[_t]:new kt([],s),this.consumeOptional("//")}return n}},{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,'".'))}}]),e}(),bA=function(){function e(r){d(this,e),this._root=r}return f(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=wg(t,this._root);return n?n.children.map(function(i){return i.value}):[]}},{key:"firstChild",value:function(t){var n=wg(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=Sg(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return Sg(t,this._root).map(function(n){return n.value})}}]),e}();function wg(e,r){if(e===r.value)return r;var n,t=Y(r.children);try{for(t.s();!(n=t.n()).done;){var a=wg(e,n.value);if(a)return a}}catch(o){t.e(o)}finally{t.f()}return null}function Sg(e,r){if(e===r.value)return[r];var n,t=Y(r.children);try{for(t.s();!(n=t.n()).done;){var a=Sg(e,n.value);if(a.length)return a.unshift(r),a}}catch(o){t.e(o)}finally{t.f()}return[]}var Hi=function(){function e(r,t){d(this,e),this.value=r,this.children=t}return f(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ls(e){var r={};return e&&e.children.forEach(function(t){return r[t.value.outlet]=t}),r}var CA=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n)).snapshot=i,Dg(Q(a),n),a}return f(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(bA);function EA(e,r){var t=function fz(e,r){var o=new bd([],{},{},"",{},_t,r,null,e.root,-1,{});return new wA("",new Hi(o,[]))}(e,r),n=new _r([new Bu("",{})]),i=new _r({}),a=new _r({}),o=new _r({}),s=new _r(""),u=new za(n,i,o,s,a,_t,r,t.root);return u.snapshot=t.root,new CA(new Hi(u,[]),t)}var za=function(){function e(r,t,n,i,a,o,s,u){d(this,e),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}return f(e,[{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(Xe(function(t){return us(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Xe(function(t){return us(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function kA(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==r)for(n=t.length-1;n>=1;){var i=t[n],a=t[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(a.component)break;n--}}return hz(t.slice(n))}function hz(e){return e.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var bd=function(){function e(r,t,n,i,a,o,s,u,l,c,h){d(this,e),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return f(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=us(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=us(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(i){return i.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),wA=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this,i)).url=n,Dg(Q(a),i),a}return f(t,[{key:"toString",value:function(){return SA(this._root)}}]),t}(bA);function Dg(e,r){r.value._routerState=e,r.children.forEach(function(t){return Dg(e,t)})}function SA(e){var r=e.children.length>0?" { ".concat(e.children.map(SA).join(", ")," } "):"";return"".concat(e.value).concat(r)}function Ag(e){if(e.snapshot){var r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,yi(r.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),r.fragment!==t.fragment&&e.fragment.next(t.fragment),yi(r.params,t.params)||e.params.next(t.params),function Y8(e,r){if(e.length!==r.length)return!1;for(var t=0;ti;){if(a-=i,!(n=n.parent))throw new Error("Invalid number of '../'");i=n.segments.length}return new Tg(n,!1,i-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,e.numberOfDoubleDots)}(a,r,e),s=o.processChildren?Ed(o.segmentGroup,o.index,a.commands):xA(o.segmentGroup,o.index,a.commands);return Mg(o.segmentGroup,s,r,n,i)}function Cd(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Uu(e){return"object"==typeof e&&null!=e&&e.outlets}function Mg(e,r,t,n,i){var a={};return n&&jn(n,function(o,s){a[s]=Array.isArray(o)?o.map(function(u){return"".concat(u)}):"".concat(o)}),new Ua(t.root===e?r:DA(t.root,e,r),a,i)}function DA(e,r,t){var n={};return jn(e.children,function(i,a){n[a]=i===r?t:DA(i,r,t)}),new kt(e.segments,n)}var AA=function(){function e(r,t,n){if(d(this,e),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Cd(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find(Uu);if(i&&i!==lA(n))throw new Error("{outlets:{}} has to be the last command")}return f(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Tg=f(function e(r,t,n){d(this,e),this.segmentGroup=r,this.processChildren=t,this.index=n});function xA(e,r,t){if(e||(e=new kt([],{})),0===e.segments.length&&e.hasChildren())return Ed(e,r,t);var n=function Ez(e,r,t){for(var n=0,i=r,a={match:!1,pathIndex:0,commandIndex:0};i=t.length)return a;var o=e.segments[i],s=t[n];if(Uu(s))break;var u="".concat(s),l=n0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!TA(u,l,o))return a;n+=2}else{if(!TA(u,{},o))return a;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},FA):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Q8)(t,e,r);if(!a)return Object.assign({},FA);var o={};jn(a.posParams,function(u,l){o[l]=u.path});var s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(n=a.posParams)&&void 0!==n?n:{}}}function wd(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Vz(e,t,n)){var a=new kt(r,Nz(e,r,n,new kt(t,e.children)));return a._sourceSegment=e,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&Bz(e,t,n)){var o=new kt(e.segments,Lz(e,r,t,n,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}var s=new kt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}function Lz(e,r,t,n,i,a){var u,o={},s=Y(n);try{for(s.s();!(u=s.n()).done;){var l=u.value;if(Sd(e,t,l)&&!i[Lr(l)]){var c=new kt([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===a?e.segments.length:r.length,o[Lr(l)]=c}}}catch(h){s.e(h)}finally{s.f()}return Object.assign(Object.assign({},i),o)}function Nz(e,r,t,n){var i={};i[_t]=n,n._sourceSegment=e,n._segmentIndexShift=r.length;var o,a=Y(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Lr(s)!==_t){var u=new kt([],{});u._sourceSegment=e,u._segmentIndexShift=r.length,i[Lr(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return i}function Vz(e,r,t){return t.some(function(n){return Sd(e,r,n)&&Lr(n)!==_t})}function Bz(e,r,t){return t.some(function(n){return Sd(e,r,n)})}function Sd(e,r,t){return(!(e.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function PA(e,r,t,n){return!!(Lr(e)===n||n!==_t&&Sd(r,t,e))&&("**"===e.path||kd(r,e,t).matched)}function LA(e,r,t){return 0===r.length&&!e.children[t]}var qu=f(function e(r){d(this,e),this.segmentGroup=r||null}),NA=f(function e(r){d(this,e),this.urlTree=r});function Dd(e){return mi(new qu(e))}function VA(e){return mi(new NA(e))}function Hz(e){return mi(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}var Gz=function(){function e(r,t,n,i,a){d(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(Mi)}return f(e,[{key:"apply",value:function(){var t=this,n=wd(this.urlTree.root,[],[],this.config).segmentGroup,i=new kt(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,i,_t).pipe(Xe(function(s){return t.createUrlTree(Pg(s),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(vn(function(s){if(s instanceof NA)return t.allowRedirects=!1,t.match(s.urlTree);throw s instanceof qu?t.noMatchError(s):s}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,_t).pipe(Xe(function(o){return n.createUrlTree(Pg(o),t.queryParams,t.fragment)})).pipe(vn(function(o){throw o instanceof qu?n.noMatchError(o):o}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,i){var a=t.segments.length>0?new kt([],S({},_t,t)):t;return new Ua(a,n,i)}},{key:"expandSegmentGroup",value:function(t,n,i,a){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,n,i).pipe(Xe(function(o){return new kt([],o)})):this.expandSegment(t,i,n,i.segments,a,!0)}},{key:"expandChildren",value:function(t,n,i){for(var a=this,o=[],s=0,u=Object.keys(i.children);s=2;return function(n){return n.pipe(e?fn(function(i,a){return e(i,a,n)}):en,bg(1),t?tA(r):eA(function(){return new vd}))}}())}},{key:"expandSegment",value:function(t,n,i,a,o,s){var u=this;return In(i).pipe(qo(function(l){return u.expandSegmentAgainstRoute(t,n,i,l,a,o,s).pipe(vn(function(h){if(h instanceof qu)return Je(null);throw h}))}),ss(function(l){return!!l}),vn(function(l,c){if(l instanceof vd||"EmptyError"===l.name){if(LA(n,a,o))return Je(new kt([],{}));throw new qu(n)}throw l}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,i,a,o,s,u){return PA(a,n,o,s)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,n,a,o,s):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,a,o,s):Dd(n):Dd(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,i,a,o,s){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,a,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,i,a,o,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,i,a){var o=this,s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?VA(s):this.lineralizeSegments(i,s).pipe(Sn(function(u){var l=new kt(u,{});return o.expandSegment(t,l,n,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,i,a,o,s){var u=this,l=kd(n,a,o),h=l.consumedSegments,v=l.remainingSegments,_=l.positionalParamSegments;if(!l.matched)return Dd(n);var O=this.applyRedirectCommands(h,a.redirectTo,_);return a.redirectTo.startsWith("/")?VA(O):this.lineralizeSegments(a,O).pipe(Sn(function(J){return u.expandSegment(t,n,i,J.concat(v),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,i,a,o){var s=this;if("**"===i.path)return i.loadChildren?(i._loadedConfig?Je(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(Xe(function(O){return i._loadedConfig=O,new kt(a,{})})):Je(new kt(a,{}));var l=kd(n,i,a),h=l.consumedSegments,v=l.remainingSegments;return l.matched?this.getChildConfig(t,i,a).pipe(Sn(function(O){var J=O.module,te=O.routes,ue=wd(n,h,v,te),ee=ue.segmentGroup,ye=ue.slicedSegments,_e=new kt(ee.segments,ee.children);if(0===ye.length&&_e.hasChildren())return s.expandChildren(J,te,_e).pipe(Xe(function(bt){return new kt(h,bt)}));if(0===te.length&&0===ye.length)return Je(new kt(h,{}));var Ie=Lr(i)===o;return s.expandSegment(J,_e,te,ye,Ie?_t:o,!0).pipe(Xe(function(bt){return new kt(h.concat(bt.segments),bt.children)}))})):Dd(n)}},{key:"getChildConfig",value:function(t,n,i){var a=this;return n.children?Je(new Og(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?Je(n._loadedConfig):this.runCanLoadGuards(t.injector,n,i).pipe(Sn(function(o){return o?a.configLoader.load(t.injector,n).pipe(Xe(function(s){return n._loadedConfig=s,s})):function jz(e){return mi(Eg("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}(n)})):Je(new Og([],t))}},{key:"runCanLoadGuards",value:function(t,n,i){var a=this,o=n.canLoad;if(!o||0===o.length)return Je(!0);var s=o.map(function(u){var c,l=t.get(u);if(function xz(e){return e&&la(e.canLoad)}(l))c=l.canLoad(n,i);else{if(!la(l))throw new Error("Invalid CanLoad guard");c=l(n,i)}return _i(c)});return Je(s).pipe(zu(),Bn(function(u){if(Wa(u)){var l=Eg('Redirecting to "'.concat(a.urlSerializer.serialize(u),'"'));throw l.url=u,l}}),Xe(function(u){return!0===u}))}},{key:"lineralizeSegments",value:function(t,n){for(var i=[],a=n.root;;){if(i=i.concat(a.segments),0===a.numberOfChildren)return Je(i);if(a.numberOfChildren>1||!a.children[_t])return Hz(t.redirectTo);a=a.children[_t]}}},{key:"applyRedirectCommands",value:function(t,n,i){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,i,a){var o=this.createSegmentGroup(t,n.root,i,a);return new Ua(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var i={};return jn(t,function(a,o){if("string"==typeof a&&a.startsWith(":")){var u=a.substring(1);i[o]=n[u]}else i[o]=a}),i}},{key:"createSegmentGroup",value:function(t,n,i,a){var o=this,s=this.createSegments(t,n.segments,i,a),u={};return jn(n.children,function(l,c){u[c]=o.createSegmentGroup(t,l,i,a)}),new kt(s,u)}},{key:"createSegments",value:function(t,n,i,a){var o=this;return n.map(function(s){return s.path.startsWith(":")?o.findPosParam(t,s,a):o.findOrReturn(s,i)})}},{key:"findPosParam",value:function(t,n,i){var a=i[n.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return a}},{key:"findOrReturn",value:function(t,n){var o,i=0,a=Y(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.path===t.path)return n.splice(i),s;i++}}catch(u){a.e(u)}finally{a.f()}return t}}]),e}();function Pg(e){for(var r={},t=0,n=Object.keys(e.children);t0||o.hasChildren())&&(r[i]=o)}return function zz(e){if(1===e.numberOfChildren&&e.children[_t]){var r=e.children[_t];return new kt(e.segments.concat(r.segments),r.children)}return e}(new kt(e.segments,r))}var BA=f(function e(r){d(this,e),this.path=r,this.route=this.path[this.path.length-1]}),Ad=f(function e(r,t){d(this,e),this.component=r,this.route=t});function qz(e,r,t){var n=e._root;return Ku(n,r?r._root:null,t,[n.value])}function xd(e,r,t){var n=function Qz(e){if(!e)return null;for(var r=e.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(n?n.module.injector:t).get(e)}function Ku(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=ls(r);return e.children.forEach(function(o){Yz(o,a[o.value.outlet],t,n.concat([o.value]),i),delete a[o.value.outlet]}),jn(a,function(o,s){return Qu(o,t.getContext(s),i)}),i}function Yz(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=r?r.value:null,s=t?t.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var u=$z(o,a,a.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new BA(n)):(a.data=o.data,a._resolvedData=o._resolvedData),Ku(e,r,a.component?s?s.children:null:t,n,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Ad(s.outlet.component,o))}else o&&Qu(r,s,i),i.canActivateChecks.push(new BA(n)),Ku(e,null,a.component?s?s.children:null:t,n,i);return i}function $z(e,r,t){if("function"==typeof t)return t(e,r);switch(t){case"pathParamsChange":return!Ga(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Ga(e.url,r.url)||!yi(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xg(e,r)||!yi(e.queryParams,r.queryParams);default:return!xg(e,r)}}function Qu(e,r,t){var n=ls(e),i=e.value;jn(n,function(a,o){Qu(a,i.component?r?r.children.getContext(o):null:r,t)}),t.canDeactivateChecks.push(new Ad(i.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,i))}var a6=f(function e(){d(this,e)});function HA(e){return new ct(function(r){return r.error(e)})}var s6=function(){function e(r,t,n,i,a,o){d(this,e),this.rootComponentType=r,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return f(e,[{key:"recognize",value:function(){var t=wd(this.urlTree.root,[],[],this.config.filter(function(s){return void 0===s.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,_t);if(null===n)return null;var i=new bd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},_t,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Hi(i,n),o=new wA(this.url,a);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var n=this,i=t.value,a=kA(i,this.paramsInheritanceStrategy);i.params=Object.freeze(a.params),i.data=Object.freeze(a.data),t.children.forEach(function(o){return n.inheritParamsAndData(o)})}},{key:"processSegmentGroup",value:function(t,n,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,i)}},{key:"processChildren",value:function(t,n){for(var i=[],a=0,o=Object.keys(n.children);a0?lA(i).parameters:{};o=new bd(i,l,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zA(t),Lr(t),t.component,t,UA(n),GA(n)+i.length,WA(t))}else{var c=kd(n,t,i);if(!c.matched)return null;u=c.remainingSegments,o=new bd(s=c.consumedSegments,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zA(t),Lr(t),t.component,t,UA(n),GA(n)+s.length,WA(t))}var h=function l6(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),v=wd(n,s,u,h.filter(function(ee){return void 0===ee.redirectTo}),this.relativeLinkResolution),_=v.segmentGroup,O=v.slicedSegments;if(0===O.length&&_.hasChildren()){var J=this.processChildren(h,_);return null===J?null:[new Hi(o,J)]}if(0===h.length&&0===O.length)return[new Hi(o,[])];var te=Lr(t)===a,ue=this.processSegment(h,_,O,te?_t:a);return null===ue?null:[new Hi(o,ue)]}}]),e}();function jA(e){var i,r=[],t=new Set,n=Y(e);try{var a=function(){var v=i.value;if(!function c6(e){var r=e.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(v))return r.push(v),"continue";var O,_=r.find(function(J){return v.value.routeConfig===J.value.routeConfig});void 0!==_?((O=_.children).push.apply(O,E(v.children)),t.add(_)):r.push(v)};for(n.s();!(i=n.n()).done;)a()}catch(h){n.e(h)}finally{n.f()}var u,s=Y(t);try{for(s.s();!(u=s.n()).done;){var l=u.value,c=jA(l.children);r.push(new Hi(l.value,c))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!t.has(h)})}function UA(e){for(var r=e;r._sourceSegment;)r=r._sourceSegment;return r}function GA(e){for(var r=e,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function zA(e){return e.data||{}}function WA(e){return e.resolve||{}}function qA(e){return[].concat(E(Object.keys(e)),E(Object.getOwnPropertySymbols(e)))}function Lg(e){return ja(function(r){var t=e(r);return t?In(t).pipe(Xe(function(){return r})):Je(r)})}var g6=f(function e(){d(this,e)}),m6=function(){function e(){d(this,e)}return f(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}(),y6=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t)}(m6),Ng=new Ne("ROUTES"),KA=function(){function e(r,t,n,i){d(this,e),this.injector=r,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}return f(e,[{key:"load",value:function(t,n){var i=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var o=this.loadModuleFactory(n.loadChildren).pipe(Xe(function(s){i.onLoadEndListener&&i.onLoadEndListener(n);var u=s.create(t);return new Og(uA(u.injector.get(Ng,void 0,tt.Self|tt.Optional)).map(Fg),u)}),vn(function(s){throw n._loader$=void 0,s}));return n._loader$=new O8(o,function(){return new Pe}).pipe(ZD()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return _i(t()).pipe(Sn(function(i){return i instanceof HC?Je(i):In(n.compiler.compileModuleAsync(i))}))}}]),e}(),_6=f(function e(){d(this,e)}),b6=function(){function e(){d(this,e)}return f(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function C6(e){throw e}function E6(e,r,t){return r.parse("/")}function QA(e,r){return Je(null)}var k6={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},w6={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Tn=function(){var e=function(){function r(t,n,i,a,o,s,u){var l=this;d(this,r),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=a,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pe,this.errorHandler=C6,this.malformedUriErrorHandler=E6,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:QA,afterPreactivation:QA},this.urlHandlingStrategy=new b6,this.routeReuseStrategy=new y6,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Mi),this.console=o.get(EE);var v=o.get(st);this.isNgZoneEnabled=v instanceof st&&st.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function $8(){return new Ua(new kt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new KA(o,s,function(O){return l.triggerEvent(new rA(O))},function(O){return l.triggerEvent(new iA(O))}),this.routerState=EA(this.currentUrlTree,this.rootComponentType),this.transitions=new _r({id:0,targetPageId: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 f(r,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var i=this,a=this.events;return n.pipe(fn(function(o){return 0!==o.id}),Xe(function(o){return Object.assign(Object.assign({},o),{extractedUrl:i.urlHandlingStrategy.extract(o.rawUrl)})}),ja(function(o){var s=!1,u=!1;return Je(o).pipe(Bn(function(l){i.currentNavigation={id:l.id,initialUrl:l.currentRawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ja(function(l){var c=i.browserUrlTree.toString(),h=!i.navigated||l.extractedUrl.toString()!==c||c!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Md(l.source)&&(i.browserUrlTree=l.extractedUrl),Je(l).pipe(ja(function(Te){var Ie=i.transitions.getValue();return a.next(new Cg(Te.id,i.serializeUrl(Te.extractedUrl),Te.source,Te.restoredState)),Ie!==i.transitions.getValue()?ri:Promise.resolve(Te)}),function Wz(e,r,t,n){return ja(function(i){return function Uz(e,r,t,n,i){return new Gz(e,r,t,n,i).apply()}(e,r,t,i.extractedUrl,n).pipe(Xe(function(a){return Object.assign(Object.assign({},i),{urlAfterRedirects:a})}))})}(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),Bn(function(Te){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Te.urlAfterRedirects})}),function d6(e,r,t,n,i){return Sn(function(a){return function o6(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new s6(e,r,t,n,i,a).recognize();return null===o?HA(new a6):Je(o)}catch(s){return HA(s)}}(e,r,a.urlAfterRedirects,t(a.urlAfterRedirects),n,i).pipe(Xe(function(o){return Object.assign(Object.assign({},a),{targetSnapshot:o})}))})}(i.rootComponentType,i.config,function(Te){return i.serializeUrl(Te)},i.paramsInheritanceStrategy,i.relativeLinkResolution),Bn(function(Te){if("eager"===i.urlUpdateStrategy){if(!Te.extras.skipLocationChange){var Ie=i.urlHandlingStrategy.merge(Te.urlAfterRedirects,Te.rawUrl);i.setBrowserUrl(Ie,Te)}i.browserUrlTree=Te.urlAfterRedirects}var We=new N8(Te.id,i.serializeUrl(Te.extractedUrl),i.serializeUrl(Te.urlAfterRedirects),Te.targetSnapshot);a.next(We)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var J=l.extractedUrl,te=l.source,ue=l.restoredState,ee=l.extras,ye=new Cg(l.id,i.serializeUrl(J),te,ue);a.next(ye);var _e=EA(J,i.rootComponentType).snapshot;return Je(Object.assign(Object.assign({},l),{targetSnapshot:_e,urlAfterRedirects:J,extras:Object.assign(Object.assign({},ee),{skipLocationChange:!1,replaceUrl:!1})}))}return i.rawUrlTree=l.rawUrl,l.resolve(null),ri}),Lg(function(l){var O=l.extras;return i.hooks.beforePreactivation(l.targetSnapshot,{navigationId:l.id,appliedUrlTree:l.extractedUrl,rawUrlTree:l.rawUrl,skipLocationChange:!!O.skipLocationChange,replaceUrl:!!O.replaceUrl})}),Bn(function(l){var c=new V8(l.id,i.serializeUrl(l.extractedUrl),i.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);i.triggerEvent(c)}),Xe(function(l){return Object.assign(Object.assign({},l),{guards:qz(l.targetSnapshot,l.currentSnapshot,i.rootContexts)})}),function Xz(e,r){return Sn(function(t){var n=t.targetSnapshot,i=t.currentSnapshot,a=t.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Je(Object.assign(Object.assign({},t),{guardsResult:!0})):function Zz(e,r,t,n){return In(e).pipe(Sn(function(i){return function i6(e,r,t,n,i){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return Je(!0);var o=a.map(function(s){var l,u=xd(s,r,i);if(function Rz(e){return e&&la(e.canDeactivate)}(u))l=_i(u.canDeactivate(e,r,t,n));else{if(!la(u))throw new Error("Invalid CanDeactivate guard");l=_i(u(e,r,t,n))}return l.pipe(ss())});return Je(o).pipe(zu())}(i.component,i.route,t,r,n)}),ss(function(i){return!0!==i},!0))}(s,n,i,e).pipe(Sn(function(u){return u&&function Az(e){return"boolean"==typeof e}(u)?function Jz(e,r,t,n){return In(r).pipe(qo(function(i){return ad(function t6(e,r){return null!==e&&r&&r(new U8(e)),Je(!0)}(i.route.parent,n),function e6(e,r){return null!==e&&r&&r(new z8(e)),Je(!0)}(i.route,n),function r6(e,r,t){var n=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(function(o){return function Kz(e){var r=e.routeConfig?e.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:e,guards:r}:null}(o)}).filter(function(o){return null!==o}),a=i.map(function(o){return sg(function(){var s=o.guards.map(function(u){var c,l=xd(u,o.node,t);if(function Tz(e){return e&&la(e.canActivateChild)}(l))c=_i(l.canActivateChild(n,e));else{if(!la(l))throw new Error("Invalid CanActivateChild guard");c=_i(l(n,e))}return c.pipe(ss())});return Je(s).pipe(zu())})});return Je(a).pipe(zu())}(e,i.path,t),function n6(e,r,t){var n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||0===n.length)return Je(!0);var i=n.map(function(a){return sg(function(){var s,o=xd(a,r,t);if(function Mz(e){return e&&la(e.canActivate)}(o))s=_i(o.canActivate(r,e));else{if(!la(o))throw new Error("Invalid CanActivate guard");s=_i(o(r,e))}return s.pipe(ss())})});return Je(i).pipe(zu())}(e,i.route,t))}),ss(function(i){return!0!==i},!0))}(n,o,e,r):Je(u)}),Xe(function(u){return Object.assign(Object.assign({},t),{guardsResult:u})}))})}(i.ngModule.injector,function(l){return i.triggerEvent(l)}),Bn(function(l){if(Wa(l.guardsResult)){var c=Eg('Redirecting to "'.concat(i.serializeUrl(l.guardsResult),'"'));throw c.url=l.guardsResult,c}var h=new B8(l.id,i.serializeUrl(l.extractedUrl),i.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);i.triggerEvent(h)}),fn(function(l){return!!l.guardsResult||(i.restoreHistory(l),i.cancelNavigationTransition(l,""),!1)}),Lg(function(l){if(l.guards.canActivateChecks.length)return Je(l).pipe(Bn(function(c){var h=new H8(c.id,i.serializeUrl(c.extractedUrl),i.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);i.triggerEvent(h)}),ja(function(c){var h=!1;return Je(c).pipe(function f6(e,r){return Sn(function(t){var n=t.targetSnapshot,i=t.guards.canActivateChecks;if(!i.length)return Je(t);var a=0;return In(i).pipe(qo(function(o){return function h6(e,r,t,n){return function v6(e,r,t,n){var i=qA(e);if(0===i.length)return Je({});var a={};return In(i).pipe(Sn(function(o){return function p6(e,r,t,n){var i=xd(e,r,n);return _i(i.resolve?i.resolve(r,t):i(r,t))}(e[o],r,t,n).pipe(Bn(function(s){a[o]=s}))}),bg(1),Sn(function(){return qA(a).length===i.length?Je(a):ri}))}(e._resolve,e,r,n).pipe(Xe(function(a){return e._resolvedData=a,e.data=Object.assign(Object.assign({},e.data),kA(e,t).resolve),null}))}(o.route,n,e,r)}),Bn(function(){return a++}),bg(1),Sn(function(o){return a===i.length?Je(t):ri}))})}(i.paramsInheritanceStrategy,i.ngModule.injector),Bn({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(c),i.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),Bn(function(c){var h=new j8(c.id,i.serializeUrl(c.extractedUrl),i.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);i.triggerEvent(h)}))}),Lg(function(l){var O=l.extras;return i.hooks.afterPreactivation(l.targetSnapshot,{navigationId:l.id,appliedUrlTree:l.extractedUrl,rawUrlTree:l.rawUrl,skipLocationChange:!!O.skipLocationChange,replaceUrl:!!O.replaceUrl})}),Xe(function(l){var c=function vz(e,r,t){var n=ju(e,r._root,t?t._root:void 0);return new CA(n,r)}(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return Object.assign(Object.assign({},l),{targetRouterState:c})}),Bn(function(l){i.currentUrlTree=l.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),i.routerState=l.targetRouterState,"deferred"===i.urlUpdateStrategy&&(l.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,l),i.browserUrlTree=l.urlAfterRedirects)}),function(r,t,n){return Xe(function(i){return new Sz(t,i.targetRouterState,i.currentRouterState,n).activate(r),i})}(i.rootContexts,i.routeReuseStrategy,function(l){return i.triggerEvent(l)}),Bn({next:function(){s=!0},complete:function(){s=!0}}),ED(function(){var l;if(!s&&!u){var c="Navigation ID ".concat(o.id," is not equal to the current navigation id ").concat(i.navigationId);i.cancelNavigationTransition(o,c)}(null===(l=i.currentNavigation)||void 0===l?void 0:l.id)===o.id&&(i.currentNavigation=null)}),vn(function(l){if(u=!0,function K8(e){return e&&e[oA]}(l)){var c=Wa(l.url);c||(i.navigated=!0,i.restoreHistory(o,!0));var h=new nA(o.id,i.serializeUrl(o.extractedUrl),l.message);a.next(h),c?setTimeout(function(){var _=i.urlHandlingStrategy.merge(l.url,i.rawUrlTree),O={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Md(o.source)};i.scheduleNavigation(_,"imperative",null,O,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{i.restoreHistory(o,!0);var v=new L8(o.id,i.serializeUrl(o.extractedUrl),l);a.next(v);try{o.resolve(i.errorHandler(l))}catch(_){o.reject(_)}}return ri}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(i){var a="popstate"===i.type?"popstate":"hashchange";"popstate"===a&&setTimeout(function(){var o,s={replaceUrl:!0},u=(null===(o=i.state)||void 0===o?void 0:o.navigationId)?i.state:null;if(u){var l=Object.assign({},u);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}var c=n.parseUrl(i.url);n.scheduleNavigation(c,a,u,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){OA(n),this.config=n.map(Fg),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.relativeTo,o=i.queryParams,s=i.fragment,u=i.queryParamsHandling,l=i.preserveFragment,c=a||this.routerState.root,h=l?this.currentUrlTree.fragment:s,v=null;switch(u){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=o||null}return null!==v&&(v=this.removeEmptyProps(v)),mz(c,this.currentUrlTree,n,v,null!=h?h:null)}},{key:"navigateByUrl",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=Wa(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}},{key:"navigate",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return S6(n),this.navigateByUrl(this.createUrlTree(n,i),i)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var i;try{i=this.urlSerializer.parse(n)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return i}},{key:"isActive",value:function(n,i){var a;if(a=!0===i?Object.assign({},k6):!1===i?Object.assign({},w6):i,Wa(n))return dA(this.currentUrlTree,n,a);var o=this.parseUrl(n);return dA(this.currentUrlTree,o,a)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(i,a){var o=n[a];return null!=o&&(i[a]=o),i},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(i){n.navigated=!0,n.lastSuccessfulId=i.id,n.currentPageId=i.targetPageId,n.events.next(new Vu(i.id,n.serializeUrl(i.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,i.resolve(!0)},function(i){n.console.warn("Unhandled Navigation Error: ".concat(i))})}},{key:"scheduleNavigation",value:function(n,i,a,o,s){var u,l,c;if(this.disposed)return Promise.resolve(!1);var te,ue,ee,h=this.transitions.value,v=Md(i)&&h&&!Md(h.source),_=h.rawUrl.toString()===n.toString(),O=h.id===(null===(u=this.currentNavigation)||void 0===u?void 0:u.id);if(v&&_&&O)return Promise.resolve(!0);s?(te=s.resolve,ue=s.reject,ee=s.promise):ee=new Promise(function(Ie,We){te=Ie,ue=We});var _e,ye=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),_e=a&&a.\u0275routerPageId?a.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):_e=0,this.setTransition({id:ye,targetPageId:_e,source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:te,reject:ue,promise:ee,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ee.catch(function(Ie){return Promise.reject(Ie)})}},{key:"setBrowserUrl",value:function(n,i){var a=this.urlSerializer.serialize(n),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl?this.location.replaceState(a,"",o):this.location.go(a,"",o)}},{key:"restoreHistory",value:function(n){var a,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-n.targetPageId,u="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);u&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,i){var a=new nA(n.id,this.serializeUrl(n.extractedUrl),i);this.triggerEvent(a),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,i){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":i}:{navigationId:n}}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function S6(e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};d(this,r),this.router=t,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 f(r,[{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 n=this;return this.router.events.subscribe(function(i){i instanceof Cg?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=i.navigationTrigger,n.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Vu&&(n.lastId=i.id,n.scheduleScrollEvent(i,n.router.parseUrl(i.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(i){i instanceof aA&&(i.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,i){this.router.triggerEvent(new aA(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),qa=new Ne("ROUTER_CONFIGURATION"),ZA=new Ne("ROUTER_FORROOT_GUARD"),M6=[Aa,{provide:pA,useClass:gA},{provide:Tn,useFactory:function P6(e,r,t,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=new Tn(null,e,r,t,n,i,uA(a));return s&&(l.urlHandlingStrategy=s),u&&(l.routeReuseStrategy=u),L6(o,l),o.enableTracing&&l.events.subscribe(function(c){var h,v;null===(h=console.group)||void 0===h||h.call(console,"Router Event: ".concat(c.constructor.name)),console.log(c.toString()),console.log(c),null===(v=console.groupEnd)||void 0===v||v.call(console)}),l},deps:[pA,Wu,Aa,qt,kE,Ng,qa,[_6,new Gr],[g6,new Gr]]},Wu,{provide:za,useFactory:function N6(e){return e.routerState.root},deps:[Tn]},XA,$A,x6,{provide:qa,useValue:{enableTracing:!1}}];function T6(){return new xE("Router",Tn)}var R6=function(){var e=function(){function r(t,n){d(this,r)}return f(r,null,[{key:"forRoot",value:function(n,i){return{ngModule:r,providers:[M6,JA(n),{provide:ZA,useFactory:F6,deps:[[Tn,new Gr,new fo]]},{provide:qa,useValue:i||{}},{provide:Ho,useFactory:I6,deps:[Da,[new Sl(fv),new Gr],qa]},{provide:Bg,useFactory:O6,deps:[Tn,MN,qa]},{provide:YA,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:$A},{provide:xE,multi:!0,useFactory:T6},[Hg,{provide:$h,multi:!0,useFactory:V6,deps:[Hg]},{provide:ex,useFactory:B6,deps:[Hg]},{provide:Jh,multi:!0,useExisting:ex}]]}}},{key:"forChild",value:function(n){return{ngModule:r,providers:[JA(n)]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(ZA,8),le(Tn,8))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}();function O6(e,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new Bg(e,r,t)}function I6(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new vL(e,r):new QE(e,r)}function F6(e){return"guarded"}function JA(e){return[{provide:UM,multi:!0,useValue:e},{provide:Ng,multi:!0,useValue:e}]}function L6(e,r){e.errorHandler&&(r.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(r.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(r.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(r.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(r.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(r.canceledNavigationResolution=e.canceledNavigationResolution)}var Hg=function(){var e=function(){function r(t){d(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Pe}return f(r,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(dL,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var a=null,o=new Promise(function(l){return a=l}),s=n.injector.get(Tn),u=n.injector.get(qa);return"disabled"===u.initialNavigation?(s.setUpLocationChangeListener(),a(!0)):"enabled"===u.initialNavigation||"enabledBlocking"===u.initialNavigation?(s.hooks.afterPreactivation=function(){return n.initNavigation?Je(null):(n.initNavigation=!0,a(!0),n.resultOfPreactivationDone)},s.initialNavigation()):a(!0),o})}},{key:"bootstrapListener",value:function(n){var i=this.injector.get(qa),a=this.injector.get(XA),o=this.injector.get(Bg),s=this.injector.get(Tn),u=this.injector.get(Zl);n===u.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),a.setUpPreloading(),o.init(),s.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(qt))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function V6(e){return e.appInitializer.bind(e)}function B6(e){return e.bootstrapListener.bind(e)}var ex=new Ne("Router Initializer"),bi=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.router=n,this.urlLogIn="api-logIn",this.urlLogOut="api-logOut",this.reqIsLogged()}return f(r,[{key:"logIn",value:function(n,i){var a=this;return console.log("Login service started..."),this.http.get(this.urlLogIn,{headers:{Authorization:"Basic "+j6(n+":"+i),"X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(o){return a.processLogInResponse(o),a.user}))}},{key:"logOut",value:function(){var n=this;return console.log("Logging out..."),this.http.get(this.urlLogOut).pipe(Xe(function(i){return console.log("Logout succesful!"),n.user=null,n.role=null,n.token=null,localStorage.removeItem("login"),localStorage.removeItem("rol"),n.router.navigate([""]),i}),vn(function(i){return mi(i)}))}},{key:"directLogOut",value:function(){this.logOut().subscribe(function(n){},function(n){return console.log("Error when trying to log out: "+n)})}},{key:"processLogInResponse",value:function(n){console.log("Login succesful processing..."),this.user=n,localStorage.setItem("login","OPENVIDUAPP"),-1!==this.user.roles.indexOf("ROLE_TEACHER")&&(this.role="ROLE_TEACHER",localStorage.setItem("rol","ROLE_TEACHER")),-1!==this.user.roles.indexOf("ROLE_STUDENT")&&(this.role="ROLE_STUDENT",localStorage.setItem("rol","ROLE_STUDENT"))}},{key:"reqIsLogged",value:function(){var n=this;console.log("ReqIsLogged called"),this.http.get(this.urlLogIn,{headers:{"X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(i){return n.processLogInResponse(i)}),vn(function(i){if(401!==i.status)return console.error("Error when asking if logged: "+JSON.stringify(i)),n.logOut(),mi(i)}))}},{key:"checkCredentials",value:function(){this.isLoggedIn()||this.logOut()}},{key:"isLoggedIn",value:function(){return null!=this.user&&void 0!==this.user}},{key:"getCurrentUser",value:function(){return this.user}},{key:"isTeacher",value:function(){return-1!==this.user.roles.indexOf("ROLE_TEACHER")&&"ROLE_TEACHER"===localStorage.getItem("rol")}},{key:"isStudent",value:function(){return-1!==this.user.roles.indexOf("ROLE_STUDENT")&&"ROLE_STUDENT"===localStorage.getItem("rol")}},{key:"updateUserLessons",value:function(n){this.getCurrentUser().lessons=n}},{key:"connectionBelongsToTeacher",value:function(n){return n.data.indexOf("teacher@gmail.com")>-1}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ra),le(Tn))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function j6(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(r,t){return String.fromCharCode("0x"+t)}))}var Yu=function(){var e=function(){function r(t,n){d(this,r),this.router=t,this.authenticationService=n}return f(r,[{key:"canActivate",value:function(){return!!(localStorage.getItem("login")&&localStorage.getItem("rol")&&this.authenticationService.isLoggedIn())||(this.router.navigate([""]),!1)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Tn),le(bi))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),jg=f(function e(r){d(this,e),this.title=r,this.attenders=[]}),U6=function(){var e=function(){function r(){d(this,r),this.quality="medium",this.joinWithVideo=!0,this.joinWithAudio=!0}return f(r,[{key:"joinSession",value:function(){var n={publishAudio:!!this.joinWithAudio,publishVideo:!!this.joinWithVideo,resolution:this.getResolution()};this.myReference.close(n)}},{key:"getResolution",value:function(){var n;switch(this.quality){case"low":n="320x240";break;case"medium":default:n="640x480";break;case"high":n="1280x720";break;case"veryhigh":n="1920x1080"}return n}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ht({type:e,selectors:[["app-join-session-dialog"]],decls:30,vars:3,consts:[["mat-dialog-title",""],[3,"ngSubmit"],["dialogForm",""],["id","quality-div"],["name","quality","id","quality",3,"ngModel","ngModelChange"],["value","low","title","320x240"],["value","medium","title","640x480"],["value","high","title","1280x720"],["value","veryhigh","title","1920x1080"],["id","join-div"],["name","joinWithVideo","id","joinWithVideo",3,"ngModel","ngModelChange"],["name","joinWithAudio",3,"ngModel","ngModelChange"],["mat-button","","mat-dialog-close","","type","button"],["mat-button","","id","join-btn","type","submit"]],template:function(t,n){1&t&&(pe(0,"div")(1,"h1",0),Oe(2," Video options "),ge(),pe(3,"form",1,2),Ge("ngSubmit",function(){return n.joinSession()}),pe(5,"mat-dialog-content")(6,"div",3)(7,"h5"),Oe(8,"Quality"),ge(),pe(9,"mat-radio-group",4),Ge("ngModelChange",function(a){return n.quality=a}),pe(10,"mat-radio-button",5),Oe(11,"Low"),ge(),pe(12,"mat-radio-button",6),Oe(13,"Medium"),ge(),pe(14,"mat-radio-button",7),Oe(15,"High"),ge(),pe(16,"mat-radio-button",8),Oe(17,"Very high"),ge()()(),pe(18,"div",9)(19,"h5"),Oe(20,"Enter with active..."),ge(),pe(21,"mat-checkbox",10),Ge("ngModelChange",function(a){return n.joinWithVideo=a}),Oe(22,"Video"),ge(),pe(23,"mat-checkbox",11),Ge("ngModelChange",function(a){return n.joinWithAudio=a}),Oe(24,"Audio"),ge()()(),pe(25,"mat-dialog-actions")(26,"button",12),Oe(27,"CANCEL"),ge(),pe(28,"button",13),Oe(29,"JOIN"),ge()()()()),2&t&&(ke(9),xe("ngModel",n.quality),ke(12),xe("ngModel",n.joinWithVideo),ke(2),xe("ngModel",n.joinWithAudio))},directives:[e5,mu,fu,ra,t5,vg,du,zo,pg,Z0,n5,rs,JG],styles:["#quality-div[_ngcontent-%COMP%]{margin-top:20px}#join-div[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:20px}#quality-tag[_ngcontent-%COMP%]{display:block}h5[_ngcontent-%COMP%]{margin-bottom:10px;text-align:left}#joinWithVideo[_ngcontent-%COMP%]{margin-right:50px}mat-dialog-actions[_ngcontent-%COMP%]{display:block}#join-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),Ug=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.authenticationService=n,this.url="api-lessons"}return f(r,[{key:"getLessons",value:function(n){var i=this;return this.http.get(this.url+"/user/"+n.id,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"getLesson",value:function(n){var i=this;return this.http.get(this.url+"/lesson/"+n,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"newLesson",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/new",a,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"editLesson",value:function(n){var i=this,a=JSON.stringify(n);return this.http.put(this.url+"/edit",a,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"deleteLesson",value:function(n){var i=this;return this.http.delete(this.url+"/delete/"+n,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"addLessonAttenders",value:function(n,i){var a=this,o=JSON.stringify(i);return this.http.put(this.url+"/edit/add-attenders/lesson/"+n,o,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(s){return s}),vn(function(s){return a.handleError(s)}))}},{key:"deleteLessonAttenders",value:function(n){var i=this,a=JSON.stringify(n);return this.http.put(this.url+"/edit/delete-attenders",a,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"obtainLocalLesson",value:function(n){return this.authenticationService.getCurrentUser().lessons.find(function(i){return i.id===n})}},{key:"handleError",value:function(n){return console.error(n),mi("Server error ("+n.status+"): "+n.text())}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ra),le(bi))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),Gg=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.authenticationService=n,this.url="api-sessions"}return f(r,[{key:"createSession",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/create-session",a).pipe(Xe(function(o){}),vn(function(o){return i.handleError(o)}))}},{key:"generateToken",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/generate-token",a,{headers:{"Content-Type":"application/json"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"removeUser",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/remove-user",a,{headers:{"Content-Type":"application/json"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"handleError",value:function(n){return console.error(n),mi(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ra),le(bi))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function G6(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",3),Ge("click",function(){return yt(t),ze().closeAlert()}),Oe(1,"clear"),ge()}}var zg=function(){var e=function(){function r(){d(this,r),this.eventShowable=new Dt}return f(r,[{key:"closeAlert",value:function(){this.eventShowable.emit(!1)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ht({type:e,selectors:[["app-error-message"]],inputs:{errorTitle:"errorTitle",errorContent:"errorContent",customClass:"customClass",closable:"closable",timeable:"timeable"},outputs:{eventShowable:"eventShowable"},decls:5,vars:4,consts:[[3,"ngClass"],[3,"click",4,"ngIf"],[3,"innerHTML"],[3,"click"]],template:function(t,n){1&t&&(pe(0,"mat-card",0),$e(1,G6,2,0,"mat-icon",1),pe(2,"mat-card-title"),Oe(3),ge(),Xt(4,"mat-card-subtitle",2),ge()),2&t&&(xe("ngClass",n.customClass),ke(1),xe("ngIf",n.closable),ke(2),bn(n.errorTitle),ke(1),xe("innerHTML",n.errorContent,My))},directives:[Kp,lc,ZS,Jr,Nu,H4,j4],styles:[".fail[_ngcontent-%COMP%]{background-color:#a7384133;color:#a73841}.warning[_ngcontent-%COMP%]{background-color:#af6e0033;color:#af6e00}.correct[_ngcontent-%COMP%]{background-color:#37564640;color:#375546}mat-icon[_ngcontent-%COMP%]{cursor:pointer;float:right}mat-card[_ngcontent-%COMP%]{max-width:400px;margin-top:20px;margin-bottom:20px;box-shadow:none}"]}),e}();function z6(e,r){1&e&&(pe(0,"div",2),Xt(1,"div",3),ge())}function W6(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",10),Ge("click",function(){return yt(t),ze(3).addingLesson=!0}),Oe(1,"add_circle_outline"),ge()}2&e&&xe("title","Add lesson")}function q6(e,r){if(1&e&&(pe(0,"div",4)(1,"div",8),Oe(2,"MY LESSONS"),ge(),$e(3,W6,2,1,"mat-icon",9),ge()),2&e){var t=ze(2);ke(3),xe("ngIf",t.authenticationService.isTeacher())}}function K6(e,r){if(1&e){var t=Nt();pe(0,"div")(1,"div"),Oe(2,"NEW LESSON"),ge(),pe(3,"form",11,12),Ge("ngSubmit",function(){yt(t);var a=Qn(4);return ze(2).newLesson(),a.reset()}),pe(5,"mat-form-field")(6,"input",13),Ge("ngModelChange",function(a){return yt(t),ze(2).lessonTitle=a}),ge()(),pe(7,"div",14)(8,"button",15),Oe(9,"Send"),ge(),pe(10,"button",16),Ge("click",function(){yt(t);var a=Qn(4);return ze(2).addingLesson=!1,a.reset()}),Oe(11,"Cancel"),ge()()()()}if(2&e){var n=ze(2);ke(3),It("filtered",n.submitNewLesson),ke(3),xe("ngModel",n.lessonTitle),ke(2),xe("disabled",n.submitNewLesson),ke(2),xe("disabled",n.submitNewLesson)}}function Q6(e,r){if(1&e&&(pe(0,"span",22),Oe(1),ge()),2&e){var t=ze().$implicit;ke(1),bn(t.teacher.nickName)}}function Y6(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",21),Ge("click",function(){yt(t);var i=ze().$implicit;return ze(2).goToLessonDetails(i)}),Oe(1,"mode_edit"),ge()}2&e&&xe("title","Modify lesson")}function $6(e,r){if(1&e){var t=Nt();pe(0,"mat-card")(1,"div",17)(2,"span",18),Oe(3),ge(),$e(4,Q6,2,1,"span",19),$e(5,Y6,2,1,"mat-icon",20),pe(6,"mat-icon",21),Ge("click",function(){var s=yt(t).$implicit;return ze(2).goToLesson(s)}),Oe(7,"play_circle_filled"),ge()()()}if(2&e){var n=r.$implicit,i=ze(2);ke(3),bn(n.title),ke(1),xe("ngIf",i.authenticationService.isStudent()),ke(1),xe("ngIf",i.authenticationService.isTeacher()),ke(1),xe("title","Go to lesson!")}}function X6(e,r){1&e&&(pe(0,"div"),Xt(1,"app-error-message",23),ge()),2&e&&(ke(1),xe("errorTitle","You do not have any lessons")("errorContent","Your teacher must invite you")("customClass","warning")("closable",!1))}function Z6(e,r){1&e&&(pe(0,"div"),Xt(1,"app-error-message",23),ge()),2&e&&(ke(1),xe("errorTitle","You do not have any lessons")("errorContent","You can add one by clicking on the icon above")("customClass","warning")("closable",!1))}var J6=function(){return{width:"100%"}};function eW(e,r){if(1&e&&(pe(0,"div",4)(1,"div",5),$e(2,q6,4,1,"div",1),$e(3,K6,12,5,"div",6),$e(4,$6,8,4,"mat-card",7),$e(5,X6,2,4,"div",6),$e(6,Z6,2,4,"div",6),ge()()),2&e){var t=ze();ke(1),xi("xs",tu(7,J6)),ke(1),xe("ngIf",!t.addingLesson),ke(1),xe("ngIf",t.addingLesson),ke(1),xe("ngForOf",t.lessons),ke(1),xe("ngIf",0===t.lessons.length&&t.authenticationService.isStudent()&&!t.addingLesson),ke(1),xe("ngIf",0===t.lessons.length&&t.authenticationService.isTeacher()&&!t.addingLesson)}}var tW=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this.lessonService=t,this.videoSessionService=n,this.router=i,this.authenticationService=a,this.snackBar=o,this.dialog=s}return f(r,[{key:"ngOnInit",value:function(){this.authenticationService.checkCredentials(),this.getLessons()}},{key:"logout",value:function(){this.authenticationService.logOut()}},{key:"getLessons",value:function(){var n=this;this.lessonService.getLessons(this.authenticationService.getCurrentUser()).subscribe(function(i){console.log("User's lessons: "),console.log(i),n.lessons=i,n.authenticationService.updateUserLessons(n.lessons)},function(i){return console.log(i)})}},{key:"goToLesson",value:function(n){var a,i=this;this.videoSessionService.lesson=n,this.authenticationService.isTeacher()?((a=this.dialog.open(U6)).componentInstance.myReference=a,a.afterClosed().subscribe(function(o){o&&(console.log("Joining session with options:"),console.log(o),i.videoSessionService.cameraOptions=o,i.router.navigate(["/lesson/"+n.id]))})):this.router.navigate(["/lesson/"+n.id])}},{key:"goToLessonDetails",value:function(n){this.router.navigate(["/lesson-details/"+n.id])}},{key:"newLesson",value:function(){var n=this;this.submitNewLesson=!0,this.lessonService.newLesson(new jg(this.lessonTitle)).subscribe(function(i){console.log("New lesson added: "),console.log(i),n.lessons.push(i),n.authenticationService.updateUserLessons(n.lessons),n.submitNewLesson=!1,n.snackBar.open("Lesson added!",void 0,{duration:3e3}),n.addingLesson=!1},function(i){console.log(i),n.submitNewLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ug),B(Gg),B(Tn),B(bi),B(_g),B(od))},e.\u0275cmp=Ht({type:e,selectors:[["app-dashboard"]],decls:2,vars:2,consts:[["class","cssload-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"cssload-container"],[1,"cssload-tube-tunnel"],["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],[4,"ngIf"],[4,"ngFor","ngForOf"],["fxFlex","80%"],["fxFlex","20%","fxLayoutAlign","end center",3,"title","click",4,"ngIf"],["fxFlex","20%","fxLayoutAlign","end center",3,"title","click"],[3,"ngSubmit"],["newLessonForm",""],["matInput","","placeholder","Title","name","lessonTitle","id","lessonTitle","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"block-btn"],["mat-button","","type","submit",3,"disabled"],["mat-button","",3,"disabled","click"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","10px"],["fxFlex","70%",1,"title"],["fxFlex","70%","class","teacher",4,"ngIf"],["fxFlex","15%",3,"title","click",4,"ngIf"],["fxFlex","15%",3,"title","click"],["fxFlex","70%",1,"teacher"],[3,"errorTitle","errorContent","customClass","closable"]],template:function(t,n){1&t&&($e(0,z6,2,0,"div",0),$e(1,eW,7,8,"div",1)),2&t&&(xe("ngIf",!n.lessons),ke(1),xe("ngIf",n.lessons))},directives:[Jr,Jo,es,Qc,Nu,mu,fu,ra,fg,hg,Uo,Wo,du,zo,rs,Ev,Kp,Lp,zg],styles:["mat-card[_ngcontent-%COMP%]{margin-top:20px}mat-card[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{text-align:center}span.teacher[_ngcontent-%COMP%]{font-size:12px}"]}),e}(),nW=f(function e(r){d(this,e),this.id=r.id,this.name=r.name,this.nickName=r.nickName,this.roles=r.roles,this.lessons=[]});function rW(e,r){if(1&e){var t=Nt();pe(0,"div",1)(1,"mat-icon",19),Ge("click",function(){return yt(t),ze(2).router.navigate(["/lessons"])}),Oe(2,"keyboard_arrow_left"),ge(),pe(3,"h2",20),Oe(4),ge(),pe(5,"mat-icon",21),Ge("click",function(){yt(t);var a=ze(2);return a.editingTitle=!0,a.titleEdited=a.lesson.title}),Oe(6,"mode_edit"),ge()()}if(2&e){var n=ze(2);ke(1),xe("title","Back to lessons"),ke(3),bn(n.lesson.title),ke(1),xe("title","Edit lesson")}}function iW(e,r){if(1&e){var t=Nt();pe(0,"div",22)(1,"form",4,23),Ge("ngSubmit",function(){yt(t);var a=Qn(2);return ze(2).editLesson(),a.reset()}),pe(3,"mat-form-field")(4,"input",24),Ge("ngModelChange",function(a){return yt(t),ze(2).titleEdited=a}),ge()(),pe(5,"div",8)(6,"button",9),Oe(7,"Send"),ge(),pe(8,"button",10),Ge("click",function(){yt(t);var a=ze(2);return a.editingTitle=!1,a.titleEdited=""}),Oe(9,"Cancel"),ge(),pe(10,"button",10),Ge("click",function(){return yt(t),ze(2).deleteLesson()}),Oe(11,"Delete lesson"),ge()()()()}if(2&e){var n=ze(2);ke(1),It("filtered",n.sumbitEditLesson),ke(3),xe("ngModel",n.titleEdited),ke(2),xe("disabled",n.sumbitEditLesson),ke(2),xe("disabled",n.sumbitEditLesson),ke(2),xe("disabled",n.sumbitEditLesson)}}function aW(e,r){if(1&e){var t=Nt();pe(0,"app-error-message",25),Ge("eventShowable",function(){return yt(t),ze(2).addAttendersCorrect=!1}),ge()}if(2&e){var n=ze(2);xe("errorTitle",n.attCorrectTitle)("errorContent",n.attCorrectContent)("customClass","correct")("closable",!0)}}function oW(e,r){if(1&e){var t=Nt();pe(0,"app-error-message",25),Ge("eventShowable",function(){return yt(t),ze(2).addAttendersError=!1}),ge()}if(2&e){var n=ze(2);xe("errorTitle",n.attErrorTitle)("errorContent",n.attErrorContent)("customClass","fail")("closable",!0)}}function sW(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",31),Ge("click",function(){yt(t);var i=ze(2),a=i.index,o=i.$implicit;return ze(2).deleteLessonAttender(a,o)}),Oe(1,"clear"),ge()}2&e&&xe("title","Remove attender")}function uW(e,r){1&e&&(pe(0,"mat-icon",32),Oe(1,"cached"),ge())}function lW(e,r){if(1&e&&(pe(0,"div",27)(1,"div",28)(2,"div",14)(3,"div",15),Oe(4),ge(),pe(5,"div",16),Oe(6),ge()()(),pe(7,"div",17),$e(8,sW,2,1,"mat-icon",29),$e(9,uW,2,0,"mat-icon",30),ge()()),2&e){var t=ze(),n=t.$implicit,i=t.index,a=ze(2);ke(4),bn(n.nickName),ke(2),bn(n.name),ke(2),xe("ngIf",!a.arrayOfAttDels[i]),ke(1),xe("ngIf",a.arrayOfAttDels[i])}}function cW(e,r){if(1&e&&(pe(0,"div"),$e(1,lW,10,4,"div",26),ge()),2&e){var t=r.$implicit,n=ze(2);ke(1),xe("ngIf",t.id!=n.authenticationService.getCurrentUser().id)}}var dW=function(){return{width:"100%"}};function fW(e,r){if(1&e){var t=Nt();pe(0,"div",1)(1,"div",2),$e(2,rW,7,3,"div",0),$e(3,iW,12,6,"div",3),pe(4,"form",4,5),Ge("ngSubmit",function(){yt(t);var a=Qn(5);return ze().addLessonAttenders(),a.reset()}),pe(6,"h4",6),Oe(7,"New attender"),ge(),pe(8,"mat-form-field")(9,"input",7),Ge("ngModelChange",function(a){return yt(t),ze().emailAttender=a}),ge()(),pe(10,"div",8)(11,"button",9),Oe(12,"Send"),ge(),pe(13,"button",10),Ge("click",function(){return yt(t),Qn(5).reset()}),Oe(14,"Cancel"),ge()()(),$e(15,aW,1,4,"app-error-message",11),$e(16,oW,1,4,"app-error-message",11),pe(17,"div",12)(18,"div",13)(19,"div",14)(20,"div",15),Oe(21),ge(),pe(22,"div",16),Oe(23),ge()()(),Xt(24,"div",17),ge(),$e(25,cW,2,1,"div",18),ge()()}if(2&e){var n=ze();ke(1),xi("xs",tu(14,dW)),ke(1),xe("ngIf",!n.editingTitle),ke(1),xe("ngIf",n.editingTitle),ke(1),It("filtered",n.sumbitAddAttenders),ke(5),xe("ngModel",n.emailAttender),ke(2),xe("disabled",n.sumbitAddAttenders),ke(2),xe("disabled",n.sumbitAddAttenders||null==n.emailAttender),ke(2),xe("ngIf",n.addAttendersCorrect),ke(1),xe("ngIf",n.addAttendersError),ke(5),bn(n.authenticationService.getCurrentUser().nickName),ke(2),bn(n.authenticationService.getCurrentUser().name),ke(2),xe("ngForOf",n.lesson.attenders)}}var hW=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this.lessonService=t,this.authenticationService=n,this.router=i,this.route=a,this.location=o,this.snackBar=s,this.editingTitle=!1,this.sumbitEditLesson=!1,this.sumbitAddAttenders=!1,this.arrayOfAttDels=[],this.addAttendersCorrect=!1,this.addAttendersError=!1}return f(r,[{key:"ngOnInit",value:function(){var n=this;this.route.params.subscribe(function(i){n.lesson=n.lessonService.obtainLocalLesson(+i.id)})}},{key:"editLesson",value:function(){var n=this;if(this.titleEdited!==this.lesson.title){this.sumbitEditLesson=!0;var i=new jg(this.titleEdited);i.id=this.lesson.id,this.lessonService.editLesson(i).subscribe(function(a){console.log("Lesson edited: "),console.log(a),n.lesson=a,n.sumbitEditLesson=!1,n.editingTitle=!1,n.snackBar.open("Lesson edited!",void 0,{duration:3e3})},function(a){console.log(a),n.sumbitEditLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}else this.editingTitle=!1}},{key:"deleteLesson",value:function(){var n=this;this.sumbitEditLesson=!0,this.lessonService.deleteLesson(this.lesson.id).subscribe(function(i){console.log("Lesson deleted"),console.log(i),n.sumbitEditLesson=!1,n.router.navigate(["/lessons"]),n.snackBar.open("Lesson deleted!",void 0,{duration:3e3})},function(i){console.log(i),n.sumbitEditLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}},{key:"addLessonAttenders",value:function(){var n=this;this.sumbitAddAttenders=!0,this.lessonService.addLessonAttenders(this.lesson.id,[this.emailAttender]).subscribe(function(i){console.log("Attender added"),console.log(i),n.sumbitAddAttenders=!1,n.lesson.attenders=n.lesson.attenders.concat(i.attendersAdded),n.handleAttendersMessage(i)},function(i){console.log(i),n.sumbitAddAttenders=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}},{key:"deleteLessonAttender",value:function(n,i){var a=this;this.arrayOfAttDels[n]=!0;var o=new jg(this.lesson.title);o.id=this.lesson.id;for(var s=0;s0){var s,o=Y(n.attendersAdded);try{for(o.s();!(s=o.n()).done;)this.attCorrectContent+=""}catch(ee){o.e(ee)}finally{o.f()}a=!0}if(n.attendersAlreadyAdded.length>0){this.attErrorContent+="The following users were already added to the lesson";var c,l=Y(n.attendersAlreadyAdded);try{for(l.s();!(c=l.n()).done;)this.attErrorContent+=""}catch(ee){l.e(ee)}finally{l.f()}i=!0}if(n.emailsValidNotRegistered.length>0){this.attErrorContent+="The following users are not registered";var _,v=Y(n.emailsValidNotRegistered);try{for(v.s();!(_=v.n()).done;)this.attErrorContent+=""}catch(ee){v.e(ee)}finally{v.f()}i=!0}if(n.emailsInvalid&&n.emailsInvalid.length>0){this.attErrorContent+="These are not valid emails";var te,J=Y(n.emailsInvalid);try{for(J.s();!(te=J.n()).done;)this.attErrorContent+=""}catch(ee){J.e(ee)}finally{J.f()}i=!0}i?(this.attErrorTitle="There have been some problems",this.addAttendersError=!0):0===n.attendersAdded.length&&(this.attErrorTitle="No emails there!",this.addAttendersError=!0),a&&(this.attCorrectTitle="The following users where properly added",this.addAttendersCorrect=!0)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ug),B(bi),B(Tn),B(za),B(Aa),B(_g))},e.\u0275cmp=Ht({type:e,selectors:[["app-lesson-details"]],decls:1,vars:1,consts:[["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[3,"ngSubmit"],["addAttendersForm",""],["id","new-attender-title"],["matInput","","placeholder","Email","name","attenderEmail","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"block-btn"],["mat-button","","type","submit",3,"disabled"],["mat-button","",3,"disabled","click"],[3,"errorTitle","errorContent","customClass","closable","eventShowable",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","20px","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start",1,"attender-row"],["fxFlex","90%",1,"no-margin-bottom"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start","fxLayoutGap","20px"],["fxFlex","",1,"no-margin-bottom"],["fxFlex","",1,"attender-email"],["fxFlex","10%"],[4,"ngFor","ngForOf"],["fxFlex","15%","fxLayoutAlign","start center",3,"title","click"],["fxFlex","70%"],["fxFlex","15%","fxLayoutAlign","end center",3,"title","click"],["fxLayout","row","fxLayoutAlign","start center"],["editLessonForm",""],["matInput","","placeholder","Title","name","lessonTitle","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[3,"errorTitle","errorContent","customClass","closable","eventShowable"],["fxLayout","row","fxLayoutAlign.xs","start","fxLayoutGap","20px","class","attender-row",4,"ngIf"],["fxLayout","row","fxLayoutAlign.xs","start","fxLayoutGap","20px",1,"attender-row"],["fxFlex","90%"],[3,"title","click",4,"ngIf"],["class","rotating",4,"ngIf"],[3,"title","click"],[1,"rotating"]],template:function(t,n){1&t&&$e(0,fW,26,15,"div",0),2&t&&xe("ngIf",n.lesson)},directives:[Jr,Jo,es,Nu,Qc,mu,fu,ra,fg,hg,Uo,Wo,du,zo,rs,zg,Lp,Ev],styles:[".attender-email[_ngcontent-%COMP%]{font-size:11px}.no-margin-bottom[_ngcontent-%COMP%]{margin-bottom:0!important}.attender-row[_ngcontent-%COMP%]{width:100%;margin-top:20px;min-height:27px}#new-attender-title[_ngcontent-%COMP%]{margin-bottom:5px}@keyframes rotating{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.rotating[_ngcontent-%COMP%]{animation:rotating 1s linear infinite;cursor:default!important}.rotating[_ngcontent-%COMP%]:hover{color:inherit!important}"]}),e}(),tx=function(){var e=function(){function r(t){d(this,r),this.http=t,this.url="api-users"}return f(r,[{key:"newUser",value:function(n,i,a,o){var s=this,u=JSON.stringify([n,i,a,o]);return this.http.post(this.url+"/new",u,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(l){return l}),vn(function(l){return s.handleError(l)}))}},{key:"handleError",value:function(n){return mi(n.status)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ra))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function vW(e,r){1&e&&(pe(0,"div",14),Xt(1,"div",15),ge())}function pW(e,r){if(1&e){var t=Nt();pe(0,"div")(1,"mat-form-field")(2,"input",16),Ge("ngModelChange",function(a){return yt(t),ze().nickName=a}),ge()()()}if(2&e){var n=ze();ke(2),xe("ngModel",n.nickName)}}function gW(e,r){if(1&e){var t=Nt();pe(0,"div")(1,"mat-form-field")(2,"input",17),Ge("ngModelChange",function(a){return yt(t),ze().confirmPassword=a}),ge()()()}if(2&e){var n=ze();ke(2),xe("ngModel",n.confirmPassword)}}function mW(e,r){if(1&e){var t=Nt();pe(0,"div",18)(1,"span",19),Oe(2,"Sign up as..."),ge(),pe(3,"mat-radio-group",20),Ge("ngModelChange",function(a){return yt(t),ze().roleUserSignup=a}),pe(4,"mat-radio-button",21),Oe(5,"Student"),ge(),pe(6,"mat-radio-button",22),Oe(7,"Teacher"),ge()()()}if(2&e){var n=ze();ke(3),xe("ngModel",n.roleUserSignup)}}function yW(e,r){if(1&e){var t=Nt();pe(0,"app-error-message",23),Ge("eventShowable",function(){return yt(t),ze().fieldsIncorrect=!1}),ge()}if(2&e){var n=ze();xe("errorTitle",n.errorTitle)("errorContent",n.errorContent)("customClass",n.customClass)("closable",!0)}}function _W(e,r){1&e&&(pe(0,"button",24),Oe(1,"Log in"),ge())}function bW(e,r){1&e&&(pe(0,"button",25),Oe(1,"Sign up"),ge())}function CW(e,r){1&e&&(pe(0,"div")(1,"table")(2,"tr")(3,"th"),Oe(4,"Email"),ge(),pe(5,"th"),Oe(6,"Password"),ge()(),pe(7,"tr")(8,"td"),Oe(9,"teacher@gmail.com"),ge(),pe(10,"td"),Oe(11,"pass"),ge()(),pe(12,"tr")(13,"td"),Oe(14,"student1@gmail.com"),ge(),pe(15,"td"),Oe(16,"pass"),ge()(),pe(17,"tr")(18,"td"),Oe(19,"student2@gmail.com"),ge(),pe(20,"td"),Oe(21,"pass"),ge()()()())}function EW(e,r){if(1&e){var t=Nt();pe(0,"div"),Oe(1,"Not registered yet?"),pe(2,"button",26),Ge("click",function(){yt(t);var i=ze(),a=Qn(9);return i.setLoginView(!1),a.reset()}),Oe(3,"Sign up"),ge()()}}function kW(e,r){if(1&e){var t=Nt();pe(0,"div"),Oe(1,"Already registered?"),pe(2,"button",26),Ge("click",function(){yt(t);var i=ze(),a=Qn(9);return i.setLoginView(!0),a.reset()}),Oe(3,"Log in"),ge()()}}var wW=function(){return{width:"100%"}},SW=function(){var e=function(){function r(t,n,i){d(this,r),this.authenticationService=t,this.userService=n,this.router=i,this.loginView=!0,this.roleUserSignup="student"}return f(r,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewChecked",value:function(){this.authenticationService.isLoggedIn()&&this.router.navigate(["/lessons"])}},{key:"setLoginView",value:function(n){this.fieldsIncorrect=!1,this.loginView=n}},{key:"onSubmit",value:function(){console.log("Submit: email = "+this.email+" , password = "+this.password+", confirmPassword = "+this.confirmPassword),this.submitProcessing=!0,this.loginView?(console.log("Logging in..."),this.logIn(this.email,this.password)):(console.log("Signing up..."),this.signUp())}},{key:"logIn",value:function(n,i){var a=this;this.authenticationService.logIn(n,i).subscribe(function(o){a.submitProcessing=!1,console.log("Login succesful! LOGGED AS "+a.authenticationService.getCurrentUser().name),a.fieldsIncorrect=!1,a.router.navigate(["/lessons"])},function(o){console.log("Login failed (error): "+o),a.errorTitle="Invalid field",a.errorContent="Please check your email or password",a.customClass="fail",a.handleError()})}},{key:"signUp",value:function(){var n=this;if(this.password!==this.confirmPassword)this.errorTitle="Your passwords don't match!",this.errorContent="",this.customClass="fail",this.handleError();else{var i=this.email,a=this.password;this.userService.newUser(i,a,this.nickName,this.roleUserSignup).subscribe(function(o){n.logIn(i,a),console.log("Sign up succesful!")},function(o){console.log("Sign up failed (error): "+o),409===o?(n.errorTitle="Invalid email",n.errorContent="That email is already in use",n.customClass="fail"):403===o&&(n.errorTitle="Invalid email format",n.errorContent="Our server has rejected that email",n.customClass="fail"),n.handleError()})}}},{key:"handleError",value:function(){this.submitProcessing=!1,this.fieldsIncorrect=!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(bi),B(tx),B(Tn))},e.\u0275cmp=Ht({type:e,selectors:[["app-presentation"]],decls:27,vars:17,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],["fxLayout","column","fxLayoutAlign","space-around center"],["class","cssload-container",4,"ngIf"],[3,"ngSubmit"],["myForm",""],["matInput","","placeholder","Email","name","email","id","email","type","email","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","Password","name","password","id","password","type","password","required","",3,"ngModel","ngModelChange"],["class","radio-button-div",4,"ngIf"],[3,"errorTitle","errorContent","customClass","closable","eventShowable",4,"ngIf"],[1,"btn-container"],["mat-raised-button","","color","accent","type","submit","id","log-in-btn",4,"ngIf"],["mat-raised-button","","color","primary","type","submit","id","sign-up-btn",4,"ngIf"],[1,"cssload-container"],[1,"cssload-tube-tunnel"],["matInput","","placeholder","Name","name","nickName","id","nickName","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm password","name","confirmPassword","id","confirmPassword","type","password","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"radio-button-div"],["id","sign-up-as"],["name","roleUserSignup","id","roleUserSignup",3,"ngModel","ngModelChange"],["value","student"],["value","teacher"],[3,"errorTitle","errorContent","customClass","closable","eventShowable"],["mat-raised-button","","color","accent","type","submit","id","log-in-btn"],["mat-raised-button","","color","primary","type","submit","id","sign-up-btn"],["mat-button","",1,"card-button",3,"click"]],template:function(t,n){1&t&&(pe(0,"div",0)(1,"div",1)(2,"h1"),Oe(3,"OpenVidu Classroom Demo"),ge(),pe(4,"div",2)(5,"mat-card")(6,"mat-card-content"),$e(7,vW,2,0,"div",3),pe(8,"form",4,5),Ge("ngSubmit",function(){return n.onSubmit()}),pe(10,"div")(11,"mat-form-field")(12,"input",6),Ge("ngModelChange",function(a){return n.email=a}),ge()()(),$e(13,pW,3,1,"div",7),pe(14,"div")(15,"mat-form-field")(16,"input",8),Ge("ngModelChange",function(a){return n.password=a}),ge()()(),$e(17,gW,3,1,"div",7),$e(18,mW,8,1,"div",9),$e(19,yW,1,4,"app-error-message",10),pe(20,"div",11),$e(21,_W,2,0,"button",12),$e(22,bW,2,0,"button",13),ge()(),$e(23,CW,22,0,"div",7),ge(),pe(24,"mat-card-actions"),$e(25,EW,4,0,"div",7),$e(26,kW,4,0,"div",7),ge()()()()()),2&t&&(ke(1),xi("xs",tu(16,wW)),ke(6),xe("ngIf",n.submitProcessing),ke(1),It("filtered",n.submitProcessing),ke(4),xe("ngModel",n.email),ke(1),xe("ngIf",!n.loginView),ke(3),xe("ngModel",n.password),ke(1),xe("ngIf",!n.loginView),ke(1),xe("ngIf",!n.loginView),ke(1),xe("ngIf",n.fieldsIncorrect),ke(2),xe("ngIf",n.loginView),ke(1),xe("ngIf",!n.loginView),ke(1),xe("ngIf",n.loginView),ke(2),xe("ngIf",n.loginView),ke(1),xe("ngIf",!n.loginView))},directives:[Jo,es,Kp,B4,Jr,mu,fu,ra,fg,hg,Uo,Wo,du,zo,vg,pg,zg,rs,U4],styles:["h1[_ngcontent-%COMP%]{text-align:center;display:block}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card-actions[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;color:#9e9e9e}.btn-container[_ngcontent-%COMP%]{text-align:center;padding-top:20px}.card-button[_ngcontent-%COMP%]{margin-left:10px!important}.radio-button-div[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}#sign-up-as[_ngcontent-%COMP%]{color:#9e9e9e;display:block;margin-top:15px;margin-bottom:10px}table[_ngcontent-%COMP%]{margin:30px auto 0;text-align:left}"]}),e}(),DW=function(){return{width:"100%"}},AW=function(){var e=function(){function r(t){d(this,r),this.authenticationService=t}return f(r,[{key:"ngOnInit",value:function(){this.user=this.authenticationService.getCurrentUser()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(bi))},e.\u0275cmp=Ht({type:e,selectors:[["app-profile"]],decls:15,vars:5,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"]],template:function(t,n){1&t&&(pe(0,"div",0)(1,"div",1)(2,"div"),Oe(3,"MY PROFILE"),ge(),pe(4,"table")(5,"tr")(6,"td"),Oe(7,"Name"),ge(),pe(8,"th"),Oe(9),ge()(),pe(10,"tr")(11,"td"),Oe(12,"Email"),ge(),pe(13,"th"),Oe(14),ge()()()()()),2&t&&(ke(1),xi("xs",tu(4,DW)),ke(8),bn(n.authenticationService.getCurrentUser().nickName),ke(5),bn(n.authenticationService.getCurrentUser().name))},directives:[Jo,es],styles:["table[_ngcontent-%COMP%]{margin-top:15px;border-collapse:separate;border-spacing:15px 17px}th[_ngcontent-%COMP%]{text-align:left}"]}),e}(),xW=U(5039);function MW(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",2),Ge("click",function(){return yt(t),ze().toggleLocalVideo()}),Oe(1),ge()}if(2&e){var n=ze();xe("title","Toggle video"),ke(1),bn(n.videoIcon)}}function TW(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",2),Ge("click",function(){return yt(t),ze().toggleLocalAudio()}),Oe(1),ge()}if(2&e){var n=ze();xe("title","Toggle audio"),ke(1),bn(n.audioIcon)}}var RW=function(){var e=function(){function r(t,n,i,a){d(this,r),this.location=t,this.authenticationService=n,this.videoSessionService=i,this.snackBar=a}return f(r,[{key:"OPEN_VIDU_CONNECTION",value:function(){var n=this;this.OV=new xW.Dn,this.session=this.OV.initSession(),this.session.on("streamCreated",function(i){console.warn("STREAM CREATED!"),console.warn(i.stream),n.session.subscribe(i.stream,"subscriber",{insertMode:"APPEND"})}),this.session.on("streamDestroyed",function(i){console.warn("STREAM DESTROYED!"),console.warn(i.stream)}),this.session.on("connectionCreated",function(i){i.connection.connectionId===n.session.connection.connectionId?console.warn("YOUR OWN CONNECTION CREATED!"):console.warn("OTHER USER'S CONNECTION CREATED!"),console.warn(i.connection)}),this.session.on("connectionDestroyed",function(i){console.warn("OTHER USER'S CONNECTION DESTROYED!"),console.warn(i.connection),n.authenticationService.connectionBelongsToTeacher(i.connection)&&n.location.back()}),this.session.connect(this.token,"CLIENT:"+this.authenticationService.getCurrentUser().name).then(function(){n.authenticationService.isTeacher()&&(n.publisher=n.OV.initPublisher("publisher",n.cameraOptions),n.publisher.on("accessAllowed",function(){console.warn("CAMERA ACCESS ALLOWED!")}),n.publisher.on("accessDenied",function(){console.warn("CAMERA ACCESS DENIED!")}),n.publisher.on("streamCreated",function(i){console.warn("STREAM CREATED BY PUBLISHER!"),console.warn(i.stream)}),n.session.publish(n.publisher))}).catch(function(i){console.log("There was an error connecting to the session:",i.code,i.message)})}},{key:"ngOnInit",value:function(){var n=this;this.previousConnectionStuff(),this.authenticationService.isTeacher()?this.videoSessionService.createSession(this.lesson.id).subscribe(function(){n.videoSessionService.generateToken(n.lesson.id).subscribe(function(i){n.token=i[0],console.warn("Token: "+n.token),n.OPEN_VIDU_CONNECTION()},function(i){console.log(i)})},function(i){console.log(i)}):this.videoSessionService.generateToken(this.lesson.id).subscribe(function(i){n.token=i[0],console.warn("Token: "+n.token),n.OPEN_VIDU_CONNECTION()},function(i){console.log(i),409===i.status&&(n.snackBar.open("The teacher has not opened the lesson yet!","Undo",{duration:3e3}),n.location.back())}),this.afterConnectionStuff()}},{key:"ngAfterViewInit",value:function(){this.toggleScrollPage("hidden")}},{key:"ngOnDestroy",value:function(){this.videoSessionService.removeUser(this.lesson.id).subscribe(function(n){console.warn("You have succesfully left the lesson")},function(n){console.log(n)}),this.toggleScrollPage("auto"),this.exitFullScreen(),this.OV&&this.session.disconnect()}},{key:"toggleScrollPage",value:function(n){document.getElementsByClassName("mat-sidenav-content")[0].style.overflow=n}},{key:"toggleLocalVideo",value:function(){this.localVideoActivated=!this.localVideoActivated,this.publisher.publishVideo(this.localVideoActivated),this.videoIcon=this.localVideoActivated?"videocam":"videocam_off"}},{key:"toggleLocalAudio",value:function(){this.localAudioActivated=!this.localAudioActivated,this.publisher.publishAudio(this.localAudioActivated),this.audioIcon=this.localAudioActivated?"mic":"mic_off"}},{key:"toggleFullScreen",value:function(){var n=window.document,i=n.getElementsByTagName("html")[0];n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement||n.msFullscreenElement?(console.log("exit FULLSCREEN!"),this.fullscreenIcon="fullscreen",n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen()):(console.log("enter FULLSCREEN!"),this.fullscreenIcon="fullscreen_exit",i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen())}},{key:"exitFullScreen",value:function(){var n=window.document;n.getElementsByTagName("html"),n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen()}},{key:"previousConnectionStuff",value:function(){this.lesson=this.videoSessionService.lesson,this.cameraOptions=this.videoSessionService.cameraOptions}},{key:"afterConnectionStuff",value:function(){this.authenticationService.isTeacher()&&(this.localVideoActivated=!1!==this.cameraOptions.publishVideo,this.localAudioActivated=!1!==this.cameraOptions.publishAudio,this.videoIcon=this.localVideoActivated?"videocam":"videocam_off",this.audioIcon=this.localAudioActivated?"mic":"mic_off"),this.fullscreenIcon="fullscreen"}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Aa),B(bi),B(Gg),B(_g))},e.\u0275cmp=Ht({type:e,selectors:[["app-video-session"]],decls:11,vars:6,consts:[["id","header-div"],["id","back-btn",3,"title","click"],[1,"right-btn",3,"title","click"],["class","right-btn",3,"title","click",4,"ngIf"],["id","publisher"],["id","subscriber"]],template:function(t,n){1&t&&(pe(0,"div",0)(1,"mat-icon",1),Ge("click",function(){return n.location.back()}),Oe(2,"keyboard_arrow_left"),ge(),pe(3,"mat-icon",2),Ge("click",function(){return n.toggleFullScreen()}),Oe(4),ge(),$e(5,MW,2,2,"mat-icon",3),$e(6,TW,2,2,"mat-icon",3),pe(7,"h1"),Oe(8),ge()(),Xt(9,"div",4)(10,"div",5)),2&t&&(ke(1),xe("title","Back to lessons"),ke(2),xe("title","Fullscreen"),ke(1),bn(n.fullscreenIcon),ke(1),xe("ngIf",n.authenticationService.isTeacher()),ke(1),xe("ngIf",n.authenticationService.isTeacher()),ke(2),bn(null==n.lesson?null:n.lesson.title))},directives:[Nu,Jr],styles:["h1[_ngcontent-%COMP%]{text-align:center;margin:0;color:#fff}#header-div[_ngcontent-%COMP%]{position:absolute;z-index:1000;width:100%;background:rgba(0,0,0,.4);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}mat-icon[_ngcontent-%COMP%]{font-size:38px;width:38px;height:38px;color:#fff;transition:color .2s linear}mat-icon[_ngcontent-%COMP%]:hover{color:#ffd740}#back-btn[_ngcontent-%COMP%]{float:left}.right-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),IW=R6.forRoot([{path:"",component:SW,pathMatch:"full",data:{state:"presentation"}},{path:"lessons",component:tW,canActivate:[Yu],data:{state:"lessons"}},{path:"lesson-details/:id",component:hW,canActivate:[Yu],data:{state:"lesson-details"}},{path:"profile",component:AW,canActivate:[Yu],data:{state:"profile"}},{path:"lesson/:id",component:RW,canActivate:[Yu],data:{state:"session"}}],{useHash:!0}),FW=_u("routerTransition",[ia("* <=> *",[ap(":enter, :leave",Ln({position:"fixed",width:"100%"}),{optional:!0}),function PV(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:r}}([ap(":enter",[Ln({opacity:"0"}),Pi("0.4s ease-in-out",Ln({opacity:"1"}))],{optional:!0}),ap(":leave",[Ln({opacity:"1"}),Pi("0.2s cubic-bezier(0.000, 0.900, 0.495, 0.990)",Ln({opacity:"0"}))],{optional:!0})])])]);function PW(e,r){if(1&e){var t=Nt();pe(0,"div",10)(1,"button",11),Oe(2,"Lessons"),ge(),pe(3,"button",12),Oe(4,"Profile"),ge(),pe(5,"button",13),Ge("click",function(){return yt(t),ze(2).authenticationService.directLogOut()}),Oe(6,"LOGOUT"),ge()()}}function LW(e,r){if(1&e){var t=Nt();pe(0,"button",14),Ge("click",function(){return yt(t),ze(2),Qn(2).open()}),pe(1,"mat-icon"),Oe(2,"menu"),ge()()}}function NW(e,r){if(1&e&&(pe(0,"header")(1,"mat-toolbar",5)(2,"button",6),Oe(3," OpenVidu Classroom Demo "),ge(),Xt(4,"span",7),$e(5,PW,7,0,"div",8),$e(6,LW,3,0,"button",9),ge()()),2&e){var t=ze();ke(5),xe("ngIf",t.authenticationService.isLoggedIn()),ke(1),xe("ngIf",t.authenticationService.isLoggedIn())}}function VW(e,r){1&e&&(pe(0,"footer",15)(1,"div",16)(2,"div",17)(3,"div",18)(4,"h2"),Oe(5,"This is a sample application"),ge(),pe(6,"p",19),Oe(7,"Implementing a secure real time app with OpenVidu"),ge()(),pe(8,"div",18)(9,"div",20)(10,"div",21)(11,"h2"),Oe(12,"Technologies"),ge(),pe(13,"ul")(14,"li")(15,"a",22),Oe(16,"OpenVidu"),ge()(),pe(17,"li")(18,"a",23),Oe(19,"Angular"),ge()(),pe(20,"li")(21,"a",24),Oe(22,"Angular Material"),ge()(),pe(23,"li")(24,"a",25),Oe(25,"Spring Framework"),ge()()()(),pe(26,"div",21)(27,"h2"),Oe(28,"Connect"),ge(),pe(29,"ul")(30,"li")(31,"a",26),Oe(32,"GitHub repository"),ge()()()()()()()()())}var BW=function(){var e=function(){function r(t,n){d(this,r),this.router=t,this.authenticationService=n}return f(r,[{key:"isVideoSessionUrl",value:function(){return"/lesson/"===this.router.url.substring(0,8)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Tn),B(bi))},e.\u0275cmp=Ht({type:e,selectors:[["app-root"]],decls:14,vars:3,consts:[["sidenav",""],["mat-button","",1,"sidenav-button",3,"click"],[4,"ngIf"],["o","outlet"],["class","page-footer back-primary color-secondary mat-elevation-z5",4,"ngIf"],["color","primary",1,"mat-elevation-z6"],["mat-button","","routerLink","/","id","navbar-logo"],[1,"fill-remaining-space"],["fxLayout","row","fxShow","false","fxShow.gt-sm","",4,"ngIf"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"click",4,"ngIf"],["fxLayout","row","fxShow","false","fxShow.gt-sm",""],["mat-button","","routerLink","/lessons"],["mat-button","","routerLink","/profile"],["mat-button","",3,"click"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"click"],[1,"page-footer","back-primary","color-secondary","mat-elevation-z5"],[1,"container"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start start","fxLayoutAlign.xs","start"],["fxFlex","50%","fxFlex.xs","100%"],[1,"grey-text","text-lighten-4"],["fxLayout","row","fxLayoutAlign","end start","fxLayoutAlign.xs","start"],["fxFlex","50%"],["href","https://www.openvidu.io/","target","_blank",1,"hover-link"],["href","https://angular.io/","target","_blank",1,"hover-link"],["href","https://material.angular.io/","target","_blank",1,"hover-link"],["href","https://spring.io/","target","_blank",1,"hover-link"],["href","https://github.com/OpenVidu","target","_blank",1,"hover-link"]],template:function(t,n){if(1&t){var i=Nt();pe(0,"mat-sidenav-container")(1,"mat-sidenav",null,0)(3,"button",1),Ge("click",function(){yt(i);var s=Qn(2);return n.router.navigate(["/lessons"]),s.close()}),Oe(4,"Lessons"),ge(),pe(5,"button",1),Ge("click",function(){yt(i);var s=Qn(2);return n.router.navigate(["/profile"]),s.close()}),Oe(6,"Profile"),ge(),pe(7,"button",1),Ge("click",function(){return yt(i),Qn(2).close(),n.authenticationService.directLogOut()}),Oe(8,"Logout"),ge()(),$e(9,NW,7,2,"header",2),pe(10,"main"),Xt(11,"router-outlet",null,3),ge(),$e(13,VW,33,0,"footer",4),ge()}if(2&t){var a=Qn(12);ke(9),xe("ngIf",!n.isVideoSessionUrl()),ke(1),xe("@routerTransition",a.isActivated&&a.activatedRoute.routeConfig.path),ke(3),xe("ngIf",!n.isVideoSessionUrl())}},directives:[UD,jD,rs,Jr,T8,Td,Jo,JS,Nu,Ig,es,Qc],styles:["mat-sidenav[_ngcontent-%COMP%]{width:250px}mat-sidenav-container[_ngcontent-%COMP%]{height:100%}footer.page-footer[_ngcontent-%COMP%]{margin:0}footer[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:10px}.sidenav-button[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] .fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}header[_ngcontent-%COMP%] #navbar-logo[_ngcontent-%COMP%]{font-weight:700}footer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:0}"],data:{animation:[FW]}}),e}(),HW=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e,bootstrap:[BW]}),e.\u0275inj=vt({providers:[bi,tx,Ug,Gg,Yu],imports:[[Ek,O3,yV,IV,R8,WU,IW]]}),e}();(function WP(){false})(),r2().bootstrapModule(HW)},9069:function(be){"use strict";var k,X="object"==typeof Reflect?Reflect:null,U=X&&"function"==typeof X.apply?X.apply:function(K,S,m){return Function.prototype.apply.call(K,S,m)};k=X&&"function"==typeof X.ownKeys?X.ownKeys:Object.getOwnPropertySymbols?function(K){return Object.getOwnPropertyNames(K).concat(Object.getOwnPropertySymbols(K))}:function(K){return Object.getOwnPropertyNames(K)};var M=Number.isNaN||function(K){return K!=K};function I(){I.init.call(this)}be.exports=I,be.exports.once=function Y(W,K){return new Promise(function(S,m){function C(T){W.removeListener(K,$),m(T)}function $(){"function"==typeof W.removeListener&&W.removeListener("error",C),S([].slice.call(arguments))}D(W,K,$,{once:!0}),"error"!==K&&function j(W,K,S){"function"==typeof W.on&&D(W,"error",K,S)}(W,C,{once:!0})})},I.EventEmitter=I,I.prototype._events=void 0,I.prototype._eventsCount=0,I.prototype._maxListeners=void 0;var f=10;function d(W){if("function"!=typeof W)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof W)}function P(W){return void 0===W._maxListeners?I.defaultMaxListeners:W._maxListeners}function p(W,K,S,m){var C,$,T;if(d(S),void 0===($=W._events)?($=W._events=Object.create(null),W._eventsCount=0):(void 0!==$.newListener&&(W.emit("newListener",K,S.listener?S.listener:S),$=W._events),T=$[K]),void 0===T)T=$[K]=S,++W._eventsCount;else if("function"==typeof T?T=$[K]=m?[S,T]:[T,S]:m?T.unshift(S):T.push(S),(C=P(W))>0&&T.length>C&&!T.warned){T.warned=!0;var E=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(K)+" listeners added. Use emitter.setMaxListeners() to increase limit");E.name="MaxListenersExceededWarning",E.emitter=W,E.type=K,E.count=T.length,function q(W){console&&console.warn&&console.warn(W)}(E)}return W}function w(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function R(W,K,S){var m={fired:!1,wrapFn:void 0,target:W,type:K,listener:S},C=w.bind(m);return C.listener=S,m.wrapFn=C,C}function Q(W,K,S){var m=W._events;if(void 0===m)return[];var C=m[K];return void 0===C?[]:"function"==typeof C?S?[C.listener||C]:[C]:S?function re(W){for(var K=new Array(W.length),S=0;S0&&(T=S[0]),T instanceof Error)throw T;var E=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw E.context=T,E}var G=$[K];if(void 0===G)return!1;if("function"==typeof G)U(G,this,S);else{var g=G.length,V=y(G,g);for(m=0;m=0;T--)if(m[T]===S||m[T].listener===S){E=m[T].listener,$=T;break}if($<0)return this;0===$?m.shift():function H(W,K){for(;K+1=0;C--)this.removeListener(K,S[C]);return this},I.prototype.listeners=function(K){return Q(this,K,!0)},I.prototype.rawListeners=function(K){return Q(this,K,!1)},I.listenerCount=function(W,K){return"function"==typeof W.listenerCount?W.listenerCount(K):ie.call(W,K)},I.prototype.listenerCount=ie,I.prototype.eventNames=function(){return this._eventsCount>0?k(this._events):[]}},4491:function(be,X,U){"use strict";var k=U(1897);be.exports=function(I){var p,f={stun:(I||{}).stun||U(8808),turn:(I||{}).turn||U(4576)},P=(I||{}).turnCount||0;function w(R,Q){for(var H,ie=[],y=[].concat(f[R]);y.length&&ie.lengthP&&d[p]<0&&(P=d[p]);return P}(j,Y);P.emit("volume_change",S,Q);var m=0;if(S>Q&&!P.speaking){for(var C=P.speakingHistory.length-3;C=2&&(P.speaking=!0,P.emit("speaking"))}else if(SQ)),K()}},R)}(),P}},3894:function(be){be.exports="function"==typeof Object.create?function(U,k){k&&(U.super_=k,U.prototype=Object.create(k.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}))}:function(U,k){if(k){U.super_=k;var q=function(){};q.prototype=k.prototype,U.prototype=new q,U.prototype.constructor=U}}},8659:function(be,X){var M,U=this&&this.__extends||(M=function(f,d){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,p){P.__proto__=p}||function(P,p){for(var w in p)Object.prototype.hasOwnProperty.call(p,w)&&(P[w]=p[w])})(f,d)},function(I,f){function d(){this.constructor=I}M(I,f),I.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)});function k(M){if(!M)return k.__;Array.prototype.reduce||(Array.prototype.reduce=function(d,P){for(var p=P,w=0;w=this.maxBatchSize)this.nbrLogItemsSkipped+=b.length;else{if(null!=M.maxMessages){if(M.maxMessages<1)return;M.maxMessages-=b.length}this.batchBuffer=this.batchBuffer.concat(b);var F=this;$(this.batchTimeoutTimer,this.batchTimeout,function(){F.sendBatch.call(F)})}},x.prototype.batchBufferHasOverdueMessages=function(){for(var b=0;bthis.batchTimeout)return!0;return!1},x.prototype.batchBufferHasStrandedMessage=function(){return null!=M.maxMessages&&M.maxMessages<1&&this.batchBuffer.length>0},x.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},x.prototype.onSendingEnded=function(){C(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},x.prototype.setOptions=function(b){if(I("level",b,this),I("ipRegex",b,this),I("userAgentRegex",b,this),I("disallow",b,this),I("sendWithBufferLevel",b,this),I("storeInBufferLevel",b,this),I("bufferSize",b,this),I("batchSize",b,this),I("maxBatchSize",b,this),I("batchTimeout",b,this),I("sendTimeout",b,this),this.bufferSize0&&(this.buffer.push(Me),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([Me]),ve>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},x.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(C(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var b=this;$(this.sendTimeoutTimer,this.sendTimeout,function(){b.onSendingEnded.call(b)}),this.sendLogItems(this.batchBuffer,function(){b.batchBuffer.splice(0,b.nbrLogItemsBeingSent),b.nbrLogItemsSkipped>0&&(b.batchBuffer.push(m(4e3,"Lost "+b.nbrLogItemsSkipped+" messages. Either connection with the server was down or logging was disabled via the enabled option. Reduce lost messages by increasing the ajaxAppender option maxBatchSize.",b.appenderName)),b.nbrLogItemsSkipped=0),b.onSendingEnded.call(b)})}},x}();M.Appender=T;var E=function(x){function b(F){return x.call(this,F,b.prototype.sendLogItemsAjax)||this}return U(b,x),b.prototype.setOptions=function(F){return I("url",F,this),I("beforeSend",F,this),x.prototype.setOptions.call(this,F),this},b.prototype.sendLogItemsAjax=function(F,z){try{if(!f(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=M._createXMLHttpRequest();var de="/jsnlog.logger";null!=M.defaultAjaxUrl&&(de=M.defaultAjaxUrl),this.url&&(de=this.url),this.xhr.open("POST",de),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",M.requestId);var ve=this;this.xhr.onreadystatechange=function(){4==ve.xhr.readyState&&ve.xhr.status>=200&&ve.xhr.status<300&&z()};var me={r:M.requestId,lg:F};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,me):"function"==typeof M.defaultBeforeSend&&M.defaultBeforeSend.call(this,this.xhr,me);var De=JSON.stringify(me);this.xhr.send(De)}catch(Me){}},b}(T);M.AjaxAppender=E;var G=function(x){function b(F){return x.call(this,F,b.prototype.sendLogItemsConsole)||this}return U(b,x),b.prototype.clog=function(F){M._console.log(F)},b.prototype.cerror=function(F){M._console.error?M._console.error(F):this.clog(F)},b.prototype.cwarn=function(F){M._console.warn?M._console.warn(F):this.clog(F)},b.prototype.cinfo=function(F){M._console.info?M._console.info(F):this.clog(F)},b.prototype.cdebug=function(F){M._console.debug?M._console.debug(F):this.cinfo(F)},b.prototype.sendLogItemsConsole=function(F,z){try{if(!f(this)||!M._console)return;var de;for(de=0;de=this.level&&f(this)&&(z?(me=this.buildExceptionObject(z)).logData=P(F):me=F,d(this,(ve=w(me)).finalString))){if(this.onceOnly)for(de=this.onceOnly.length-1;de>=0;){if(new RegExp(this.onceOnly[de]).test(ve.finalString)){if(this.seenRegexes[de])return this;this.seenRegexes[de]=!0}de--}for(ve.meta=ve.meta||{},de=this.appenders.length-1;de>=0;)this.appenders[de].log(W(b),ve.msg,ve.meta,function(){},b,ve.finalString,this.loggerName),de--}return this},x.prototype.trace=function(b){return this.log(1e3,b)},x.prototype.debug=function(b){return this.log(2e3,b)},x.prototype.info=function(b){return this.log(3e3,b)},x.prototype.warn=function(b){return this.log(4e3,b)},x.prototype.error=function(b){return this.log(5e3,b)},x.prototype.fatal=function(b){return this.log(6e3,b)},x.prototype.fatalException=function(b,F){return this.log(6e3,b,F)},x}();M.Logger=g,M.createAjaxAppender=function V(x){return new E(x)},M.createConsoleAppender=function L(x){return new G(x)},N="undefined"!=typeof window?new E(""):new G(""),M.__=new M.Logger(""),M.__.setOptions({level:M.getDebugLevel(),appenders:[N]})})(k||(k={})),X.__esModule=!0,X.JL=k,"function"==typeof __jsnlog_configure&&__jsnlog_configure(k),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(M,I,f,d,P){return k("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:M?M.message||M:"",url:I,"line number":f,column:d},P),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(M){k("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:M.reason?M.reason.message:M.message||null},M.reason)})},1897:function(be){var X=["stun:","turn:"];be.exports=function(U){var q,M,k=(U||{}).url||U,I={};return("string"==typeof k||k instanceof String)&&(k=k.trim(),q=X[X.indexOf(k.slice(0,5))])?(M=(k=k.slice(5)).split("@"),I.username=U.username,I.credential=U.credential,M.length>1&&(k=M[1],M=M[0].split(":"),I.username=M[0],I.credential=(U||{}).credential||M[1]||""),I.url=q+k,I.urls=[I.url],I):U}},7490:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.Connection=void 0;var k=U(2096),q=U(6946),M=U(7507),I=q.OpenViduLogger.getInstance(),f=function(){function d(P,p){this.session=P,this.disposed=!1;var w="'Connection' created ";p.role?(this.localOptions=p,this.connectionId=this.localOptions.id,this.creationTime=this.localOptions.createdAt,this.data=this.localOptions.metadata,this.rpcSessionId=this.localOptions.sessionId,this.role=this.localOptions.role,this.record=this.localOptions.record,w+="(local)"):(this.remoteOptions=p,this.connectionId=this.remoteOptions.id,this.creationTime=this.remoteOptions.createdAt,this.remoteOptions.metadata&&(this.data=this.remoteOptions.metadata),this.remoteOptions.streams&&this.initRemoteStreams(this.remoteOptions.streams),w+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),I.info(w)}return d.prototype.sendIceCandidate=function(P){var p=this;I.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,P),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:P.candidate,sdpMid:P.sdpMid,sdpMLineIndex:P.sdpMLineIndex},function(w,R){w&&(I.error("Error sending ICE candidate: "+JSON.stringify(w)),p.session.emitEvent("exception",[new M.ExceptionEvent(p.session,M.ExceptionEventName.ICE_CANDIDATE_ERROR,p.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",w)]))})},d.prototype.initRemoteStreams=function(P){var p=this;P.forEach(function(w){var R={id:w.id,createdAt:w.createdAt,connection:p,hasAudio:w.hasAudio,hasVideo:w.hasVideo,audioActive:w.audioActive,videoActive:w.videoActive,typeOfVideo:w.typeOfVideo,frameRate:w.frameRate,videoDimensions:w.videoDimensions?JSON.parse(w.videoDimensions):void 0,filter:w.filter?w.filter:void 0},Q=new k.Stream(p.session,R);p.addStream(Q)}),I.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},d.prototype.addStream=function(P){P.connection=this,this.stream=P},d.prototype.removeStream=function(P){delete this.stream},d.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},d}();X.Connection=f},8074:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.EventDispatcher=void 0;var k=U(940),M=U(6946).OpenViduLogger.getInstance(),I=function(){function f(){this.userHandlerArrowHandler=new WeakMap,this.ee=new k}return f.prototype.onAux=function(d,P,p){var w=function(Q){Q?M.info(P,Q):M.info(P),p(Q)};return this.userHandlerArrowHandler.set(p,w),this.ee.on(d,w),this},f.prototype.onceAux=function(d,P,p){var w=this,R=function(ie){ie?M.info(P,ie):M.info(P),p(ie),w.userHandlerArrowHandler.delete(p)};return this.userHandlerArrowHandler.set(p,R),this.ee.once(d,R),this},f.prototype.offAux=function(d,P){if(P){var p=this.userHandlerArrowHandler.get(P);p&&this.ee.off(d,p),this.userHandlerArrowHandler.delete(P)}else this.ee.removeAllListeners(d);return this},f}();X.EventDispatcher=I},4540:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.Filter=void 0;var k=U(2798),q=U(4103),I=U(6946).OpenViduLogger.getInstance(),f=function(){function d(P,p){this.handlers=new Map,this.type=P,this.options=p}return d.prototype.execMethod=function(P,p){var w=this;return new Promise(function(R,Q){var ie;I.info("Executing filter method to stream "+w.stream.streamId);var y,H=function(D){I.info("Filter method successfully executed on Stream "+w.stream.streamId);var W=Object.assign({},w.stream.filter);return w.stream.filter.lastExecMethod={method:P,params:y},D&&(w.stream.session.emitEvent("streamPropertyChanged",[new k.StreamPropertyChangedEvent(w.stream.session,w.stream,"filter",w.stream.filter,W,"execFilterMethod")]),w.stream.streamManager.emitEvent("streamPropertyChanged",[new k.StreamPropertyChangedEvent(w.stream.streamManager,w.stream,"filter",w.stream.filter,W,"execFilterMethod")])),R()};if(w.type.startsWith("VB:")){if("string"==typeof p)try{p=JSON.parse(p)}catch(j){return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+j))}if(y=p,"update"!==P)return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(P,'"')));if(!(null===(ie=w.stream.virtualBackgroundSinkElements)||void 0===ie?void 0:ie.VB))return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));w.stream.virtualBackgroundSinkElements.VB.updateValues(p).then(function(){return H(!1)}).catch(function(j){return Q(j.name===q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new q.OpenViduError(j.name,j.message):new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+j))})}else{var re=void 0;if("string"!=typeof p)try{re=JSON.stringify(p)}catch(j){var Y="'params' property must be a JSON formatted object";return I.error(Y),Q(Y)}else re=p;y=re,w.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:w.stream.streamId,method:P,params:re},function(j,D){return j?(I.error("Error executing filter method for Stream "+w.stream.streamId,j),Q(401===j.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):j)):H(!0)})}})},d.prototype.addEventListener=function(P,p){var w=this;return new Promise(function(R,Q){I.info("Adding filter event listener to event "+P+" to stream "+w.stream.streamId),w.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:w.stream.streamId,eventType:P},function(ie,y){return ie?(I.error("Error adding filter event listener to event "+P+"for Stream "+w.stream.streamId,ie),Q(401===ie.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):ie)):(w.handlers.set(P,p),I.info("Filter event listener to event "+P+" successfully applied on Stream "+w.stream.streamId),R())})})},d.prototype.removeEventListener=function(P){var p=this;return new Promise(function(w,R){I.info("Removing filter event listener to event "+P+" to stream "+p.stream.streamId),p.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:p.stream.streamId,eventType:P},function(Q,ie){return Q?(I.error("Error removing filter event listener to event "+P+"for Stream "+p.stream.streamId,Q),R(401===Q.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):Q)):(p.handlers.delete(P),I.info("Filter event listener to event "+P+" successfully removed on Stream "+p.stream.streamId),w())})})},d}();X.Filter=f},4289:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.LocalRecorder=void 0;var d,k=U(5156),q=U(6946),M=U(543),I=U(8946),f=q.OpenViduLogger.getInstance(),P=function(){function p(w){this.stream=w,this.chunks=[],d=M.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=k.LocalRecorderState.READY}return p.prototype.record=function(w){var R=this;return new Promise(function(Q,ie){try{if("string"==typeof w||w instanceof String)return ie("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(w,'" }'));if("undefined"==typeof MediaRecorder)throw f.error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder");if(R.state!==k.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+R.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");f.log("Starting local recording of stream '"+R.stream.streamId+"' of connection '"+R.connectionId+"'"),w?w.mimeType||(w.mimeType="video/webm"):w={mimeType:"video/webm"},R.mediaRecorder=new MediaRecorder(R.stream.getMediaStream(),w),R.mediaRecorder.start()}catch(y){return ie(y)}return R.mediaRecorder.ondataavailable=function(y){y.data.size>0&&R.chunks.push(y.data)},R.mediaRecorder.onerror=function(y){f.error("MediaRecorder error: ",y)},R.mediaRecorder.onstart=function(){f.log("MediaRecorder started (state="+R.mediaRecorder.state+")")},R.mediaRecorder.onstop=function(){R.onStopDefault()},R.mediaRecorder.onpause=function(){f.log("MediaRecorder paused (state="+R.mediaRecorder.state+")")},R.mediaRecorder.onresume=function(){f.log("MediaRecorder resumed (state="+R.mediaRecorder.state+")")},R.state=k.LocalRecorderState.RECORDING,Q()})},p.prototype.stop=function(){var w=this;return new Promise(function(R,Q){try{if(w.state===k.LocalRecorderState.READY||w.state===k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+w.state+"'). Call 'LocalRecorder.start()' before");w.mediaRecorder.onstop=function(){return w.onStopDefault(),R()},w.mediaRecorder.stop()}catch(ie){return Q(ie)}})},p.prototype.pause=function(){var w=this;return new Promise(function(R,Q){try{return w.state!==k.LocalRecorderState.RECORDING?Q(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+w.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(w.mediaRecorder.pause(),w.state=k.LocalRecorderState.PAUSED,R())}catch(ie){return Q(ie)}})},p.prototype.resume=function(){var w=this;return new Promise(function(R,Q){try{if(w.state!==k.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+w.state+"'). Call 'LocalRecorder.pause()' before");return w.mediaRecorder.resume(),w.state=k.LocalRecorderState.RECORDING,R()}catch(ie){return Q(ie)}})},p.prototype.preview=function(w){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.preview()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");if(this.videoPreview=document.createElement("video"),this.videoPreview.id=this.id,this.videoPreview.autoplay=!0,d.isSafariBrowser()&&(this.videoPreview.playsInline=!0),"string"==typeof w){var R=document.getElementById(w);R&&(this.videoPreview=R.appendChild(this.videoPreview))}else this.videoPreview=w.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},p.prototype.clean=function(){var w=this,R=function(){delete w.blob,w.chunks=[],w.state=k.LocalRecorderState.READY};this.state===k.LocalRecorderState.RECORDING||this.state===k.LocalRecorderState.PAUSED?this.stop().then(function(){return R()}).catch(function(){return R()}):R()},p.prototype.download=function(){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var w=document.createElement("a");w.style.display="none",document.body.appendChild(w);var R=globalThis.URL.createObjectURL(this.blob);w.href=R,w.download=this.id+"."+I.getExtension(this.blob.type),w.click(),globalThis.URL.revokeObjectURL(R),document.body.removeChild(w)},p.prototype.getBlob=function(){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},p.prototype.uploadAsBinary=function(w,R){var Q=this;return new Promise(function(ie,y){if(Q.state!==k.LocalRecorderState.FINISHED)return y(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+Q.state+"'). Call 'LocalRecorder.stop()' before"));var H=new XMLHttpRequest;if(H.open("POST",w,!0),"object"==typeof R)for(var re=0,Y=Object.keys(R);re0&&E[E.length-1])&&(6===L[0]||2===L[0])){C=0;continue}if(3===L[0]&&(!E||L[1]>E[0]&&L[1]T&&clearTimeout(F),m.getVideoDimensions().then(function(z){(z.width!==x||z.height!==b)&&(clearTimeout(F),E.sendVideoDimensionsChangedEvent(m,C,x,b,z.width,z.height))})},$)},S.prototype.sendVideoDimensionsChangedEvent=function(m,C,$,T,E,G){var g=this;m.stream.videoDimensions={width:E||0,height:G||0},this.sendRequest("streamPropertyChanged",{streamId:m.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(m.stream.videoDimensions),reason:C},function(V,L){V?D.error("Error sending 'streamPropertyChanged' event",V):(g.session.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(g.session,m.stream,"videoDimensions",m.stream.videoDimensions,{width:$,height:T},C)]),m.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(m,m.stream,"videoDimensions",m.stream.videoDimensions,{width:$,height:T},C)]),g.session.sendVideoData(m))})},S.prototype.sendTrackChangedEvent=function(m,C,$,T,E){var G=this,g={label:$},V={label:T};m.stream.isLocalStreamPublished?this.sendRequest("streamPropertyChanged",{streamId:m.stream.streamId,property:E,newValue:JSON.stringify({newLabel:T}),reason:C},function(L,N){L?D.error("Error sending 'streamPropertyChanged' event",L):(G.session.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(G.session,m.stream,E,V,g,C)]),m.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(m,m.stream,E,V,g,C)]))}):(this.session.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(this.session,m.stream,E,V,g,C)]),m.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(m,m.stream,E,V,g,C)]))},S.prototype.generateMediaConstraints=function(m){var C=this;return new Promise(function($,T){var E={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},G=m.audioSource,g=m.videoSource;if((null===G||!1===G)&&(E.constraints.audio=!1),(null===g||!1===g)&&(E.constraints.video=!1),!1===E.constraints.audio&&!1===E.constraints.video)return T(new p.OpenViduError(p.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&G instanceof MediaStreamTrack&&(E.audioTrack=G),"undefined"!=typeof MediaStreamTrack&&g instanceof MediaStreamTrack&&(E.videoTrack=g),void 0===G&&(E.constraints.audio=!0),void 0===g&&(E.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==g&&!1!==g){if(m.resolution){var V=m.resolution.toLowerCase().split("x"),L=Number(V[0]),N=Number(V[1]);E.constraints.video={width:{ideal:L},height:{ideal:N}}}m.frameRate&&(E.constraints.video.frameRate={ideal:m.frameRate})}return C.configureDeviceIdOrScreensharing(E,m,$,T),$(E)})},S.prototype.startWs=function(m){var C={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:m,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session)}};this.jsonRpcClient=new Y.clients.JsonRpcClient(C)},S.prototype.onMasterNodeCrashedNotification=function(m){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},S.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},S.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},S.prototype.sendRequest=function(m,C,$){var T;C&&C instanceof Function&&($=C,C={}),D.debug('Sending request: {method:"'+m+'", params: '+JSON.stringify(C)+"}"),null===(T=this.jsonRpcClient)||void 0===T||T.send(m,C,$)},S.prototype.getWsUri=function(){return this.wsUri},S.prototype.getSecret=function(){return this.secret},S.prototype.getRecorder=function(){return this.recorder},S.prototype.generateAudioDeviceError=function(m,C){var $,T;switch("Error"===m.name&&(m.name=m.constructor.name),m.name.toLowerCase()){case"notfounderror":return $=p.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,T=m.toString(),new p.OpenViduError($,T);case"notallowederror":return $=p.OpenViduErrorName.DEVICE_ACCESS_DENIED,T=m.toString(),new p.OpenViduError($,T);case"overconstrainederror":return"deviceid"===m.constraint.toLowerCase()?($=p.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,T="Audio input device with deviceId '"+C.audio.deviceId.exact+"' not found"):($=p.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,T="Audio input device doesn't support the value passed for constraint '"+m.constraint+"'"),new p.OpenViduError($,T);case"notreadableerror":return $=p.OpenViduErrorName.DEVICE_ALREADY_IN_USE,T=m.toString(),new p.OpenViduError($,T);default:return new p.OpenViduError(p.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,m.toString())}},S.prototype.addAlreadyProvidedTracks=function(m,C,$){return m.videoTrack&&(C.addTrack(m.videoTrack),$&&($.lastVideoTrackConstraints=m.constraints.video?m.constraints.video:m.videoTrack.getConstraints())),m.audioTrack&&C.addTrack(m.audioTrack),C},S.prototype.configureDeviceIdOrScreensharing=function(m,C,$,T){var E=this,G=C.audioSource,g=C.videoSource;if("string"==typeof G&&(m.constraints.audio={deviceId:{exact:G}}),"string"==typeof g){if(this.isScreenShare(g)){if(this.checkScreenSharingCapabilities()){if(W.isElectron()){var L="screen:",x=g.substr(g.indexOf(L)+L.length);return m.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:x}},$(m)}if(!this.advancedConfiguration.screenShareChromeExtension||W.isFirefoxBrowser()||W.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return $(m);var b=W.isFirefoxBrowser()||W.isFirefoxMobileBrowser()?C.videoSource:void 0;return void ie.getScreenId(b,function(F,z,de){if(F){if("not-installed"===F){var me=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,E.advancedConfiguration.screenShareChromeExtension?E.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return D.error(me),T(me)}return"installed-disabled"===F?(me=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),D.error(me),T(me)):"permission-denied"===F?(me=new p.OpenViduError(p.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),D.error(me),T(me)):(me=new p.OpenViduError(p.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),D.error(me),D.error(F),T(me))}return m.constraints.video=de.video,$(m)})}return void y.getScreenConstraints(function(F,z){if(!(F||z.mandatory&&"screen"===z.mandatory.chromeMediaSource))return m.constraints.video=z,$(m);if("permission-denied"===F||"PermissionDeniedError"===F){var de=new p.OpenViduError(p.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return D.error(de),T(de)}var ve=E.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();y.getChromeExtensionStatus(ve,function(me){if("installed-disabled"===me){var De=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return D.error(De),T(De)}if("not-installed"===me){var Me=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,E.advancedConfiguration.screenShareChromeExtension);return D.error(Me),T(Me)}})})}var V=new p.OpenViduError(p.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+W.getName()+" "+W.getVersion());return D.error(V),T(V)}this.setVideoSource(m,g)}},S.prototype.setVideoSource=function(m,C){m.constraints.video||(m.constraints.video={}),m.constraints.video.deviceId={exact:C}},S.prototype.disconnectCallback=function(){D.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},S.prototype.reconnectingCallback=function(){D.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},S.prototype.reconnectWebsocketThroughRpcConnectMethod=function(m){var C=this;this.sendRequest("connect",{sessionId:m,reconnect:!0},function($,T){if($)if(C.isMasterNodeCrashed())D.warn("Master Node has crashed!");else{D.error($);var E=function(V,L){D.warn(L),C.session.onLostConnection(V),C.jsonRpcClient.close(4101,"Reconnection fault: "+L)};40007===$.code&&"reconnection error"===$.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===C.life?E("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):C.sendRequest("sessionStatus",{sessionId:C.session.sessionId},function(V,L){null!=V?console.error("Error checking session status",V):C.life===L.life?E("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):E("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else C.jsonRpcClient.resetPing(),C.session.onRecoveredConnection()})},S.prototype.reconnectedCallback=function(){if(D.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{D.warn("There was no previous connection when running reconnection callback");var m=new d.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[m]),m.callDefaultBehavior()}else alert("Connection error. Please reload page.")},S.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},S.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof f.Session||(D.warn("Session instance not found"),!1)},S.prototype.isScreenShare=function(m){return"screen"===m||"window"===m||W.isElectron()&&m.startsWith("screen:")},S}();X.OpenVidu=K},4259:function(be,X,U){"use strict";var Y,k=this&&this.__extends||(Y=function(D,W){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,S){K.__proto__=S}||function(K,S){for(var m in S)Object.prototype.hasOwnProperty.call(S,m)&&(K[m]=S[m])})(D,W)},function(j,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function W(){this.constructor=j}Y(j,D),j.prototype=null===D?Object.create(D):(W.prototype=D.prototype,new W)}),q=this&&this.__awaiter||function(Y,j,D,W){return new(D||(D=Promise))(function(S,m){function C(E){try{T(W.next(E))}catch(G){m(G)}}function $(E){try{T(W.throw(E))}catch(G){m(G)}}function T(E){E.done?S(E.value):function K(S){return S instanceof D?S:new D(function(m){m(S)})}(E.value).then(C,$)}T((W=W.apply(Y,j||[])).next())})},M=this&&this.__generator||function(Y,j){var W,K,S,m,D={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(T){return function(E){return function $(T){if(W)throw new TypeError("Generator is already executing.");for(;D;)try{if(W=1,K&&(S=2&T[0]?K.return:T[0]?K.throw||((S=K.return)&&S.call(K),0):K.next)&&!(S=S.call(K,T[1])).done)return S;switch(K=0,S&&(T=[2&T[0],S.value]),T[0]){case 0:case 1:S=T;break;case 4:return D.label++,{value:T[1],done:!1};case 5:D.label++,K=T[1],T=[0];continue;case 7:T=D.ops.pop(),D.trys.pop();continue;default:if(!(S=(S=D.trys).length>0&&S[S.length-1])&&(6===T[0]||2===T[0])){D=0;continue}if(3===T[0]&&(!S||T[1]>S[0]&&T[1]=1?C():(D.videoReference.addEventListener("loadedmetadata",m=function(){if(D.videoReference.videoWidth)C();else var T=setInterval(function(){D.videoReference.videoWidth&&(clearInterval(T),C())},40)}),S&&document.body.appendChild(D.videoReference))})},j.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},j.prototype.initializeVideoReference=function(D){this.videoReference=document.createElement("video"),this.videoReference.style.display="none",this.videoReference.muted=!0,this.videoReference.autoplay=!0,this.videoReference.controls=!1,(H.isSafariBrowser()||H.isIPhoneOrIPad()&&(H.isChromeMobileBrowser()||H.isEdgeMobileBrowser()||H.isOperaMobileBrowser()||H.isFirefoxMobileBrowser()))&&(this.videoReference.playsInline=!0),this.stream.setMediaStream(D),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=this.stream.getMediaStream()},j.prototype.replaceTrackInMediaStream=function(D,W){var S,K=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream();"video"===D.kind?(S=K.getVideoTracks()[0],W&&(this.stream.lastVideoTrackConstraints=D.getConstraints())):S=K.getAudioTracks()[0],S.enabled=!1,S.stop(),K.removeTrack(S),K.addTrack(D);var m={oldLabel:(null==S?void 0:S.label)||"",newLabel:(null==D?void 0:D.label)||""};"video"===D.kind&&W?(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.openvidu.sendTrackChangedEvent(this,"trackReplaced",m.oldLabel,m.newLabel,"videoActive"),this.stream.isLocalStreamPublished&&this.session.sendVideoData(this.stream.streamManager,5,!0,5)):"audio"===D.kind&&W&&this.openvidu.sendTrackChangedEvent(this,"trackReplaced",m.oldLabel,m.newLabel,"audioActive"),"audio"===D.kind&&(this.stream.disableHarkSpeakingEvent(!1),this.stream.disableHarkStoppedSpeakingEvent(!1),this.stream.disableHarkVolumeChangeEvent(!1),this.stream.initHarkEvents())},j.prototype.setPermissionDialogTimer=function(D){var W=this;this.permissionDialogTimeout=setTimeout(function(){W.emitEvent("accessDialogOpened",[])},D)},j.prototype.clearPermissionDialogTimer=function(D,W){clearTimeout(this.permissionDialogTimeout),Date.now()-D>W&&this.emitEvent("accessDialogClosed",[])},j.prototype.replaceTrackInRtcRtpSender=function(D){return q(this,void 0,void 0,function(){var W,K;return M(this,function(S){switch(S.label){case 0:if(W=this.stream.getRTCPeerConnection().getSenders(),"video"===D.kind){if(!(K=W.find(function(m){return!!m.track&&"video"===m.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==D.kind)throw new Error("Unknown track kind "+D.kind);if(!(K=W.find(function(m){return!!m.track&&"audio"===m.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,K.replaceTrack(D)];case 1:return S.sent(),[2]}})})},j}(d.StreamManager);X.Publisher=re},8402:function(be,X,U){"use strict";var E,k=this&&this.__extends||(E=function(g,V){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,N){L.__proto__=N}||function(L,N){for(var x in N)Object.prototype.hasOwnProperty.call(N,x)&&(L[x]=N[x])})(g,V)},function(G,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function V(){this.constructor=G}E(G,g),G.prototype=null===g?Object.create(g):(V.prototype=g.prototype,new V)}),q=this&&this.__awaiter||function(E,G,g,V){return new(g||(g=Promise))(function(N,x){function b(de){try{z(V.next(de))}catch(ve){x(ve)}}function F(de){try{z(V.throw(de))}catch(ve){x(ve)}}function z(de){de.done?N(de.value):function L(N){return N instanceof g?N:new g(function(x){x(N)})}(de.value).then(b,F)}z((V=V.apply(E,G||[])).next())})},M=this&&this.__generator||function(E,G){var V,L,N,x,g={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return x={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(x[Symbol.iterator]=function(){return this}),x;function b(z){return function(de){return function F(z){if(V)throw new TypeError("Generator is already executing.");for(;g;)try{if(V=1,L&&(N=2&z[0]?L.return:z[0]?L.throw||((N=L.return)&&N.call(L),0):L.next)&&!(N=N.call(L,z[1])).done)return N;switch(L=0,N&&(z=[2&z[0],N.value]),z[0]){case 0:case 1:N=z;break;case 4:return g.label++,{value:z[1],done:!1};case 5:g.label++,L=z[1],z=[0];continue;case 7:z=g.ops.pop(),g.trys.pop();continue;default:if(!(N=(N=g.trys).length>0&&N[N.length-1])&&(6===z[0]||2===z[0])){g=0;continue}if(3===z[0]&&(!N||z[1]>N[0]&&z[1]0){var b=[];g.to.forEach(function(z){z.connectionId&&b.push(z.connectionId)}),x.to=b}else x.to=[];x.data=g.data?g.data:"";var F=g.type?g.type:"signal";F&&"signal:"!==F.substring(0,7)&&(F="signal:"+F),x.type=F,V.openvidu.sendRequest("sendMessage",{message:JSON.stringify(x)},function(z,de){return z?N(z):L()})})},G.prototype.on=function(g,V){var L,N,x,b;return E.prototype.onAux.call(this,g,"Event '"+g+"' triggered by 'Session'",V),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(F){var z;(null===(z=F.stream)||void 0===z?void 0:z.hasAudio)&&F.stream.enableHarkSpeakingEvent()}),(null===(N=null===(L=this.connection)||void 0===L?void 0:L.stream)||void 0===N?void 0:N.hasAudio)&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(F){var z;(null===(z=F.stream)||void 0===z?void 0:z.hasAudio)&&F.stream.enableHarkStoppedSpeakingEvent()}),(null===(b=null===(x=this.connection)||void 0===x?void 0:x.stream)||void 0===b?void 0:b.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},G.prototype.once=function(g,V){var L,N,x,b;return E.prototype.onceAux.call(this,g,"Event '"+g+"' triggered once by 'Session'",V),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(F){var z;(null===(z=F.stream)||void 0===z?void 0:z.hasAudio)&&F.stream.enableOnceHarkSpeakingEvent()}),(null===(N=null===(L=this.connection)||void 0===L?void 0:L.stream)||void 0===N?void 0:N.hasAudio)&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(F){var z;(null===(z=F.stream)||void 0===z?void 0:z.hasAudio)&&F.stream.enableOnceHarkStoppedSpeakingEvent()}),(null===(b=null===(x=this.connection)||void 0===x?void 0:x.stream)||void 0===b?void 0:b.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},G.prototype.off=function(g,V){var N,x,b,F,L=this;return E.prototype.offAux.call(this,g,V),"publisherStartSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(z){var de;(null===(de=z.stream)||void 0===de?void 0:de.streamManager)&&(L.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,z.stream.streamManager)||z.stream.disableHarkSpeakingEvent(!1))}),(null===(x=null===(N=this.connection)||void 0===N?void 0:N.stream)||void 0===x?void 0:x.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(z){var de;(null===(de=z.stream)||void 0===de?void 0:de.streamManager)&&(L.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,z.stream.streamManager)||z.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(F=null===(b=this.connection)||void 0===b?void 0:b.stream)||void 0===F?void 0:F.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},G.prototype.onParticipantJoined=function(g){var V=this;this.getConnection(g.id,"").then(function(L){C.warn("Connection "+L.connectionId+" already exists in connections list")}).catch(function(L){var N=new I.Connection(V,g);V.remoteConnections.set(g.id,N),V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",N,"")])})},G.prototype.onParticipantLeft=function(g){var V=this;this.getRemoteConnection(g.connectionId,"onParticipantLeft").then(function(L){if(L.stream){var N=L.stream,x=new y.StreamEvent(!0,V,"streamDestroyed",N,g.reason);V.ee.emitEvent("streamDestroyed",[x]),x.callDefaultBehavior(),V.remoteStreamsCreated.delete(N.streamId)}V.remoteConnections.delete(L.connectionId),V.ee.emitEvent("connectionDestroyed",[new p.ConnectionEvent(!1,V,"connectionDestroyed",L,g.reason)])}).catch(function(L){C.error(L)})},G.prototype.onParticipantPublished=function(g){var N,V=this,L=function(b){V.remoteConnections.set(b.connectionId,b),V.remoteStreamsCreated.get(b.stream.streamId)||V.ee.emitEvent("streamCreated",[new y.StreamEvent(!1,V,"streamCreated",b.stream,"")]),V.remoteStreamsCreated.set(b.stream.streamId,!0)};this.getRemoteConnection(g.id,"onParticipantPublished").then(function(x){N=x,g.metadata=x.data,N.remoteOptions=g,N.initRemoteStreams(g.streams),L(N)}).catch(function(x){N=new I.Connection(V,g),L(N)})},G.prototype.onParticipantUnpublished=function(g){var V=this;g.connectionId===this.connection.connectionId?this.stopPublisherStream(g.reason):this.getRemoteConnection(g.connectionId,"onParticipantUnpublished").then(function(L){var N=new y.StreamEvent(!0,V,"streamDestroyed",L.stream,g.reason);V.ee.emitEvent("streamDestroyed",[N]),N.callDefaultBehavior();var x=L.stream.streamId;V.remoteStreamsCreated.delete(x),L.removeStream(x)}).catch(function(L){C.error(L)})},G.prototype.onParticipantEvicted=function(g){g.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,g.reason)},G.prototype.onNewMessage=function(g){var V=this;C.info("New signal: "+JSON.stringify(g));var L=g.type?g.type.replace(/^(signal:)/,""):void 0;g.from?this.getConnection(g.from,"Connection '"+g.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(N){V.ee.emitEvent("signal",[new ie.SignalEvent(V,L,g.data,N)]),g.type&&"signal"!==g.type&&V.ee.emitEvent(g.type,[new ie.SignalEvent(V,L,g.data,N)])}).catch(function(N){C.error(N)}):(this.ee.emitEvent("signal",[new ie.SignalEvent(this,L,g.data,void 0)]),g.type&&"signal"!==g.type&&this.ee.emitEvent(g.type,[new ie.SignalEvent(this,L,g.data,void 0)]))},G.prototype.onStreamPropertyChanged=function(g){var V=this,L=function(x){if(x.stream&&x.stream.streamId===g.streamId){var b=x.stream,F=void 0;switch(g.property){case"audioActive":F=b.audioActive,g.newValue="true"===g.newValue,b.audioActive=g.newValue;break;case"videoActive":F=b.videoActive,g.newValue="true"===g.newValue,b.videoActive=g.newValue;break;case"videoDimensions":F=b.videoDimensions,g.newValue=JSON.parse(JSON.parse(g.newValue)),b.videoDimensions=g.newValue;break;case"filter":F=b.filter,g.newValue=Object.keys(g.newValue).length>0?g.newValue:void 0,void 0!==g.newValue?(b.filter=new f.Filter(g.newValue.type,g.newValue.options),b.filter.stream=b,g.newValue.lastExecMethod&&(b.filter.lastExecMethod=g.newValue.lastExecMethod)):delete b.filter,g.newValue=b.filter}V.ee.emitEvent("streamPropertyChanged",[new H.StreamPropertyChangedEvent(V,b,g.property,g.newValue,F,g.reason)]),b.streamManager&&b.streamManager.emitEvent("streamPropertyChanged",[new H.StreamPropertyChangedEvent(b.streamManager,b,g.property,g.newValue,F,g.reason)])}else C.error("No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event")};g.connectionId===this.connection.connectionId?L(this.connection):this.getRemoteConnection(g.connectionId,"onStreamPropertyChanged").then(function(N){L(N)}).catch(function(N){C.error(N)})},G.prototype.onConnectionPropertyChanged=function(g){var V;switch(g.property){case"role":V=this.connection.role.slice(),this.connection.role=g.newValue,this.connection.localOptions.role=g.newValue;break;case"record":V=this.connection.record,g.newValue="true"===g.newValue,this.connection.record=g.newValue,this.connection.localOptions.record=g.newValue}this.ee.emitEvent("connectionPropertyChanged",[new re.ConnectionPropertyChangedEvent(this,this.connection,g.property,g.newValue,V)])},G.prototype.onNetworkQualityLevelChangedChanged=function(g){var V=this;g.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new Y.NetworkQualityLevelChangedEvent(this,g.newValue,g.oldValue,this.connection)]):this.getConnection(g.connectionId,"Connection not found for connectionId "+g.connectionId).then(function(L){V.ee.emitEvent("networkQualityLevelChanged",[new Y.NetworkQualityLevelChangedEvent(V,g.newValue,g.oldValue,L)])}).catch(function(L){C.error(L)})},G.prototype.recvIceCandidate=function(g){var L=new RTCIceCandidate({candidate:g.candidate,sdpMLineIndex:g.sdpMLineIndex,sdpMid:g.sdpMid});this.getConnection(g.senderConnectionId,"Connection not found for connectionId "+g.senderConnectionId+" owning endpoint "+g.endpointName+". Ice candidate will be ignored: "+L).then(function(N){var x=N.stream;x.getWebRtcPeer().addIceCandidate(L).catch(function(b){C.error("Error adding candidate for "+x.streamId+" stream of endpoint "+g.endpointName+": "+b)})}).catch(function(N){C.error(N)})},G.prototype.onSessionClosed=function(g){C.info("Session closed: "+JSON.stringify(g));var V=g.sessionId;void 0!==V?this.ee.emitEvent("session-closed",[{session:V}]):C.warn("Session undefined on session closed",g)},G.prototype.onLostConnection=function(g){C.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,g)},G.prototype.onRecoveredConnection=function(){C.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},G.prototype.onMediaError=function(g){C.error("Media error: "+JSON.stringify(g));var V=g.error;V?this.ee.emitEvent("error-media",[{error:V}]):C.warn("Received undefined media error:",g)},G.prototype.onRecordingStarted=function(g){this.ee.emitEvent("recordingStarted",[new R.RecordingEvent(this,"recordingStarted",g.id,g.name)])},G.prototype.onRecordingStopped=function(g){this.ee.emitEvent("recordingStopped",[new R.RecordingEvent(this,"recordingStopped",g.id,g.name,g.reason)])},G.prototype.onFilterEventDispatched=function(g){var V=this,L=g.connectionId;this.getConnection(L,"No connection found for connectionId "+L).then(function(N){C.info('Filter event of type "'.concat(g.eventType,'" dispatched'));var x=N.stream;if(!x||!x.filter)return C.error('Filter event of type "'.concat(g.eventType,'" dispatched for stream ').concat(x.streamId," but there is no ").concat(x?"filter":"stream"," defined"));var b=x.filter.handlers.get(g.eventType);if(!b||"function"!=typeof b){var F=Array.from(x.filter.handlers.keys());return C.error('Filter event of type "'.concat(g.eventType,'" not handled or not a function! Active filter events: ').concat(F.join(",")))}b.call(V,new w.FilterEvent(x.filter,g.eventType,g.data))})},G.prototype.onForciblyReconnectSubscriber=function(g){var V=this;return new Promise(function(L,N){V.getRemoteConnection(g.connectionId,"onForciblyReconnectSubscriber").then(function(x){if(!x.stream||x.stream.streamId!==g.streamId){var z="No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event";return C.error(z),N(z)}var b=x.stream;if(b.setupReconnectionEventEmitter(L,N)){if(null!=b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g,N("Ongoing forced subscriber reconnection");b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g;var F=function(){var ve=b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,V.onForciblyReconnectSubscriber(ve)};return b.reconnectionEventEmitter.once("success",function(){F()}),void b.reconnectionEventEmitter.once("error",function(){F()})}b.completeWebRtcPeerReceive(!0,!0,g.sdpOffer).then(function(){return b.finalResolveForSubscription(!0,L)}).catch(function(de){return b.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(g.streamId,": ").concat(de.toString()),N)})}).catch(function(x){return C.error(x),N(x)})})},G.prototype.reconnectBrokenStreams=function(){C.info("Re-establishing media connections...");var g=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(C.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),g=!0),this.remoteConnections.forEach(function(V){V.stream&&V.stream.streamIceConnectionStateBroken()&&(C.warn("Re-establishing Subscriber "+V.stream.streamId),V.stream.initWebRtcPeerReceive(!0),g=!0)}),g||C.info("There were no media streams in need of a reconnection")},G.prototype.emitEvent=function(g,V){this.ee.emitEvent(g,V)},G.prototype.leave=function(g,V){var L=this;if(C.info("Leaving Session (forced="+(g=!!g)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||g?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(x,b){x&&C.error("leaveRoom error: ".concat(JSON.stringify(x))),L.openvidu.closeWs()}),this.stopPublisherStream(V),!this.connection.disposed){var N=new Q.SessionDisconnectedEvent(this,V);this.ee.emitEvent("sessionDisconnected",[N]),N.callDefaultBehavior()}}else C.warn("You were not connected to the session "+this.sessionId);C.flush()},G.prototype.initializeParams=function(g){return{token:g||"",session:this.sessionId,platform:$.getDescription()?$.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},G.prototype.sendVideoData=function(g,V,L,N){var b,F,x=this;if(void 0===V&&(V=1),void 0===L&&(L=!1),void 0===N&&(N=1),$.isChromeBrowser()||$.isChromeMobileBrowser()||$.isOperaBrowser()||$.isOperaMobileBrowser()||$.isEdgeBrowser()||$.isEdgeMobileBrowser()||$.isElectron()||$.isSafariBrowser()&&!$.isIonicIos()||$.isAndroidBrowser()||$.isSamsungBrowser()||$.isIonicAndroid()||$.isIOSWithSafari()){var z=function(){return q(x,void 0,void 0,function(){var me,De,Me;return M(this,function(Fe){switch(Fe.label){case 0:return"connected"!==(me=g.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,me.getStats()];case 1:De=Fe.sent(),Me=[],De.forEach(function(Le){"frameWidth"in Le&&"frameHeight"in Le&&0===Me.length&&Me.push(Le)}),Me.length>0&&this.openvidu.sendRequest("videoData",{height:Me[0].frameHeight,width:Me[0].frameWidth,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(Le,Ke){Le&&C.error("Error sending 'videoData' event",Le)}),Fe.label=2;case 2:return[2]}})})};if(L){var de=1;this.videoDataInterval=setInterval(function(){de0)return!0;var b=0;if(L){var F=L.ee.getListeners(g);V&&(F=F.filter(function(z){return z.once})),b=F.length}return b>0},G.prototype.getTokenParams=function(g){var V=g.match(/^(wss?)\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(V){var L={protocol:V[1],host:V[2],hostname:V[3],port:V[4],pathname:V[5],search:V[6],hash:V[7]},N=g.split("?"),x=decodeURI(N[1]).split("&").map(function(b){return b.split("=")}).reduce(function(b,F){return b[F[0]]=F[1],b},{});return{sessionId:x.sessionId,secret:x.secret,recorder:x.recorder,webrtcStatsInterval:x.webrtcStatsInterval,sendBrowserLogs:x.sendBrowserLogs,edition:x.edition,wsUri:L.protocol+"://"+L.host+"/openvidu",httpUri:"https://"+L.host}}throw new Error('Token not valid: "'.concat(g,'"'))},G.prototype.connectAux=function(g){var V=this;return new Promise(function(L,N){V.openvidu.startWs(function(x){if(x)return N(x);var b=V.initializeParams(g);V.openvidu.sendRequest("joinRoom",b,function(F,z){if(F)return N(F);V.processJoinRoomResponse(z,g),V.connection=new I.Connection(V,z);var de={connections:new Array,streams:new Array};return z.value.forEach(function(me){var De=new I.Connection(V,me);V.remoteConnections.set(De.connectionId,De),de.connections.push(De),De.stream&&(V.remoteStreamsCreated.set(De.stream.streamId,!0),de.streams.push(De.stream))}),V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",V.connection,"")]),de.connections.forEach(function(me){V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",me,"")])}),de.streams.forEach(function(me){V.ee.emitEvent("streamCreated",[new y.StreamEvent(!1,V,"streamCreated",me,"")])}),!!z.recordingId&&!!z.recordingName&&V.ee.emitEvent("recordingStarted",[new R.RecordingEvent(V,"recordingStarted",z.recordingId,z.recordingName)]),L()})})})},G.prototype.stopPublisherStream=function(g){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[g]))},G.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},G.prototype.stringClientMetadata=function(g){return"string"!=typeof g?JSON.stringify(g):g},G.prototype.getConnection=function(g,V){var L=this;return new Promise(function(N,x){var b=L.remoteConnections.get(g);return b?N(b):L.connection.connectionId===g?N(L.connection):x(new j.OpenViduError(j.OpenViduErrorName.GENERIC_ERROR,V))})},G.prototype.getRemoteConnection=function(g,V){var L=this;return new Promise(function(N,x){var b=L.remoteConnections.get(g);if(b)return N(b);var F="Remote connection "+g+" unknown when '"+V+"'. Existing remote connections: "+JSON.stringify(L.remoteConnections.keys());return x(new j.OpenViduError(j.OpenViduErrorName.GENERIC_ERROR,F))})},G.prototype.processToken=function(g){var V=this.getTokenParams(g);this.sessionId=V.sessionId,V.secret&&(this.openvidu.secret=V.secret),V.recorder&&(this.openvidu.recorder=!0),V.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=V.webrtcStatsInterval),V.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=V.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===V.edition||"enterprise"===V.edition,this.openvidu.isEnterprise="enterprise"===V.edition,this.openvidu.wsUri=V.wsUri,this.openvidu.httpUri=V.httpUri},G.prototype.processJoinRoomResponse=function(g,V){if(this.sessionId=g.session,null!=g.customIceServers&&g.customIceServers.length>0){this.openvidu.iceServers=[];for(var L=0,N=g.customIceServers;L0&&E[E.length-1])&&(6===L[0]||2===L[0])){C=0;continue}if(3===L[0]&&(!E||L[1]>E[0]&&L[1]0&&(!!this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=C,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo="undefined"!=typeof MediaStreamTrack&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?ie.TypeOfVideo.CUSTOM:this.isSendScreen()?ie.TypeOfVideo.SCREEN:ie.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var T;$.streamManager.updateMediaStream($.mediaStream),D.debug("Video srcObject ["+(null===(T=$.mediaStream)||void 0===T?void 0:T.id)+"] updated in stream ["+$.streamId+"]")})}return S.prototype.reconnect=function(){return this.reconnectStream("API")},S.prototype.applyFilter=function(m,C){var $=this;return new Promise(function(T,E){return k($,void 0,void 0,function(){var G,g,V,L,N,x,b=this;return q(this,function(F){if(this.filter)return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(G=function(de,ve){if(de)return D.error("Error applying filter for Stream "+b.streamId,de),E(401===de.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):de);D.info("Filter successfully applied on Stream "+b.streamId);var me=b.filter;return b.filter=new M.Filter(m,C),b.filter.stream=b,ve&&(b.session.emitEvent("streamPropertyChanged",[new R.StreamPropertyChangedEvent(b.session,b,"filter",b.filter,me,"applyFilter")]),b.streamManager.emitEvent("streamPropertyChanged",[new R.StreamPropertyChangedEvent(b.streamManager,b,"filter",b.filter,me,"applyFilter")])),T(b.filter)},m.startsWith("VB:")){if(!this.hasVideo)return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The Virtual Background filter requires a video track to be applied"))];if(!this.mediaStream||0===this.streamManager.videos.length)return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(g=this.session.token?this.session.token:C.token))return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Virtual Background requires the client to be connected to a Session or to have a "token" property available in "options" parameter with a valid OpenVidu token'))];if("pro"!==(V=this.session.getTokenParams(g)).edition&&"enterprise"!==V.edition)return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];g=encodeURIComponent(btoa(g)),D.info("Applying Virtual Background to stream "+this.streamId),L=function(){return k(b,void 0,void 0,function(){var de,ve,me,De,Me,Le;return q(this,function(Ke){switch(Ke.label){case 0:return Ke.trys.push([0,8,,9]),de=this.streamId+"_"+(0,re.v4)(),ve=this.mediaStream.clone(),(me=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+de,me.srcObject=ve,me.muted=!0,this.virtualBackgroundSourceElements={videoClone:me,mediaStreamClone:ve},VirtualBackground.VirtualBackground.hideHtmlElement(me,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(me,de),[4,me.play()];case 1:switch(Ke.sent(),De=new VirtualBackground.VirtualBackground({id:de,openviduServerUrl:new URL(V.httpUri),openviduToken:g,inputVideo:me,inputResolution:"160x96",outputFramerate:24}),Me=void 0,m){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,De.backgroundBlur(C)];case 3:case 5:return Me=Ke.sent(),[3,7];case 4:return[4,De.backgroundImage(C)];case 6:throw new Error("Unknown Virtual Background filter: "+m);case 7:return this.virtualBackgroundSinkElements={VB:De,video:Me},me.style.display="none",this.streamManager.remote?this.streamManager.replaceTrackInMediaStream(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1):this.streamManager.replaceTrackAux(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1),G(void 0,!1),[3,9];case 8:return Le=Ke.sent(),G(Le.name===Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Le.message):Le,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((N=document.createElement("script")).type="text/javascript",N.src=V.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+g,N.onload=function(){return k(b,void 0,void 0,function(){var z;return q(this,function(de){switch(de.label){case 0:return de.trys.push([0,2,,3]),[4,L()];case 1:return de.sent(),T(new M.Filter(m,C)),[3,3];case 2:return z=de.sent(),E(z),[3,3];case 3:return[2]}})})},document.body.appendChild(N)):L().then(function(){return T(new M.Filter(m,C))}).catch(function(z){return E(z)})}else{if(!this.session.sessionConnected())return[2,E(this.session.notConnectedError())];D.info("Applying server filter to stream "+this.streamId),"string"!=typeof(x=C=null!=C?C:{})&&(x=JSON.stringify(x)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:m,options:x},function(z,de){G(z,!0)})}return[2]})})})},S.prototype.removeFilter=function(){return k(this,void 0,void 0,function(){return q(this,function(m){switch(m.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,m.sent()]}})})},S.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},S.prototype.getMediaStream=function(){return this.mediaStream},S.prototype.removeFilterAux=function(m){var C=this;return new Promise(function($,T){return k(C,void 0,void 0,function(){var E,G,g,L,V=this;return q(this,function(N){switch(N.label){case 0:if(E=function(b,F){if(b)return delete V.filter,D.error("Error removing filter for Stream "+V.streamId,b),T(401===b.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):b);D.info("Filter successfully removed from Stream "+V.streamId);var z=V.filter;return delete V.filter,F&&(V.session.emitEvent("streamPropertyChanged",[new R.StreamPropertyChangedEvent(V.session,V,"filter",V.filter,z,"applyFilter")]),V.streamManager.emitEvent("streamPropertyChanged",[new R.StreamPropertyChangedEvent(V.streamManager,V,"filter",V.filter,z,"applyFilter")])),$()},!this.filter)return[3,11];if(!(null===(L=this.filter)||void 0===L?void 0:L.type.startsWith("VB:")))return[3,9];N.label=1;case 1:return N.trys.push([1,7,,8]),G=this.virtualBackgroundSourceElements.mediaStreamClone,m?[3,5]:this.streamManager.remote?(this.streamManager.replaceTrackInMediaStream(G.getVideoTracks()[0],!1),[3,4]):[3,2];case 2:return[4,this.streamManager.replaceTrackAux(G.getVideoTracks()[0],!1)];case 3:N.sent(),N.label=4;case 4:return[3,6];case 5:G.getTracks().forEach(function(x){return x.stop()}),N.label=6;case 6:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,E(void 0,!1)];case 7:return g=N.sent(),[2,E(g,!1)];case 8:return[3,10];case 9:if(!this.session.sessionConnected())return[2,T(this.session.notConnectedError())];D.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(x,b){return E(x,!0)}),N.label=10;case 10:return[3,12];case 11:return[2,T(new Q.OpenViduError(Q.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 12:return[2]}})})})},S.prototype.setMediaStream=function(m){this.mediaStream=m},S.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},S.prototype.getWebRtcPeer=function(){return this.webRtcPeer},S.prototype.subscribeToMyRemote=function(m){this.isSubscribeToRemote=m},S.prototype.setOutboundStreamOptions=function(m){this.outboundStreamOpts=m},S.prototype.subscribe=function(){var m=this;return new Promise(function(C,$){m.initWebRtcPeerReceive(!1).then(function(){return C()}).catch(function(T){return $(T)})})},S.prototype.publish=function(){var m=this;return new Promise(function(C,$){m.isLocalStreamReadyToPublish?m.initWebRtcPeerSend(!1).then(function(){return C()}).catch(function(T){return $(T)}):m.ee.once("stream-ready-to-publish",function(){m.publish().then(function(){return C()}).catch(function(T){return $(T)})})})},S.prototype.disposeWebRtcPeer=function(){var m;this.webRtcPeer&&(this.webRtcPeer.dispose(),m=this.webRtcPeer.getId()),this.stopWebRtcStats(),D.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+m+"] from 'Stream' with id ["+this.streamId+"] is now closed")},S.prototype.disposeMediaStream=function(){return k(this,void 0,void 0,function(){var m;return q(this,function(C){switch(C.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];C.label=1;case 1:return C.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return C.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return m=C.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),m),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function($){$.stop()}),this.mediaStream.getVideoTracks().forEach(function($){$.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function($){$.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function($){$.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),D.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},S.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},S.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},S.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},S.prototype.isSendScreen=function(){var m="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return W.isElectron()&&(m="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&m},S.prototype.enableHarkSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){m.session.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(m.session,"publisherStartSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(m.streamManager,"publisherStartSpeaking",m.connection,m.streamId)]),m.harkSpeakingEnabledOnce=!1}))},S.prototype.enableOnceHarkSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){m.harkSpeakingEnabledOnce&&(m.session.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(m.session,"publisherStartSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(m.streamManager,"publisherStartSpeaking",m.connection,m.streamId)])),m.disableHarkSpeakingEvent(!0)}))},S.prototype.disableHarkSpeakingEvent=function(m){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,m){if(this.harkSpeakingEnabled)return}else this.harkSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.enableHarkStoppedSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){m.session.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(m.session,"publisherStopSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(m.streamManager,"publisherStopSpeaking",m.connection,m.streamId)]),m.harkStoppedSpeakingEnabledOnce=!1}))},S.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){m.harkStoppedSpeakingEnabledOnce&&(m.session.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(m.session,"publisherStopSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(m.streamManager,"publisherStopSpeaking",m.connection,m.streamId)])),m.disableHarkStoppedSpeakingEvent(!0)}))},S.prototype.disableHarkStoppedSpeakingEvent=function(m){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,m){if(this.harkStoppedSpeakingEnabled)return}else this.harkStoppedSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.enableHarkVolumeChangeEvent=function(m){var C=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||m)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function($){var E={newValue:$,oldValue:C.speechEvent.oldVolumeValue};C.speechEvent.oldVolumeValue=$,C.streamManager.emitEvent("streamAudioVolumeChange",[new w.StreamManagerEvent(C.streamManager,"streamAudioVolumeChange",E)])})):this.harkVolumeChangeEnabled=!0},S.prototype.enableOnceHarkVolumeChangeEvent=function(m){var C=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||m)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function($){var E={newValue:$,oldValue:C.speechEvent.oldVolumeValue};C.speechEvent.oldVolumeValue=$,C.disableHarkVolumeChangeEvent(!0),C.streamManager.emitEvent("streamAudioVolumeChange",[new w.StreamManagerEvent(C.streamManager,"streamAudioVolumeChange",E)])})):this.harkVolumeChangeEnabledOnce=!0},S.prototype.disableHarkVolumeChangeEvent=function(m){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,m){if(this.harkVolumeChangeEnabled)return}else this.harkVolumeChangeEnabled=!1;this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},S.prototype.getSelectedIceCandidate=function(){var m=this;return new Promise(function(C,$){m.webRtcStats.getSelectedIceCandidateInfo().then(function(T){return C(T)}).catch(function(T){return $(T)})})},S.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},S.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},S.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return D.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var m=this.getRTCPeerConnection().iceConnectionState;return"connected"!==m&&"completed"!==m},S.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var m=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};m.interval="number"==typeof m.interval?m.interval:100,m.threshold="number"==typeof m.threshold?m.threshold:-50,this.speechEvent=Y(this.mediaStream,m)}return!0}return!1},S.prototype.setupReconnectionEventEmitter=function(m,C){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new j,!1):(console.warn("Trying to reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but an ongoing reconnection process is active. Waiting for response...")),this.reconnectionEventEmitter.once("success",function(){return m()}),this.reconnectionEventEmitter.once("error",function($){return C($)}),!0)},S.prototype.initWebRtcPeerSend=function(m){var C=this;return new Promise(function($,T){var E;if(m){if(C.setupReconnectionEventEmitter($,T))return}else C.initHarkEvents();var g=function(x){var b;return m&&(null===(b=C.reconnectionEventEmitter)||void 0===b||b.emitEvent("error",[x]),delete C.reconnectionEventEmitter),T(x)},L={mediaConstraints:{audio:C.hasAudio,video:C.hasVideo},simulcast:null!==(E=C.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==E?E:C.session.openvidu.videoSimulcast,onIceCandidate:C.connection.sendIceCandidate.bind(C.connection),onIceConnectionStateException:function(x,b,F){C.session.emitEvent("exception",[new P.ExceptionEvent(C.session,x,C,b,F)])},iceServers:C.getIceServersConf(),mediaStream:C.mediaStream,mediaServer:C.session.openvidu.mediaServer,typeOfVideo:C.typeOfVideo?ie.TypeOfVideo[C.typeOfVideo]:void 0};"mediasoup"!==C.session.openvidu.mediaServer&&(L.simulcast=!1),m&&C.disposeWebRtcPeer(),C.webRtcPeer=C.displayMyRemote()?new f.WebRtcPeerSendrecv(L):new f.WebRtcPeerSendonly(L),C.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+C.connection.connectionId),C.webRtcPeer.createOffer().then(function(N){C.webRtcPeer.processLocalOffer(N).then(function(){!function(x){D.debug("Sending SDP offer to publish as "+C.streamId,x);var F,b=m?"reconnectStream":"publishVideo";if(m)F={stream:C.streamId,sdpString:x};else{var z=void 0;C.isSendVideo()&&(z="undefined"!=typeof MediaStreamTrack&&C.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?ie.TypeOfVideo.CUSTOM:C.isSendScreen()?ie.TypeOfVideo.SCREEN:ie.TypeOfVideo.CAMERA),F={doLoopback:C.displayMyRemote()||!1,hasAudio:C.isSendAudio(),hasVideo:C.isSendVideo(),audioActive:C.audioActive,videoActive:C.videoActive,typeOfVideo:z,frameRate:C.frameRate?C.frameRate:-1,videoDimensions:JSON.stringify(C.videoDimensions),filter:C.outboundStreamOpts.publisherProperties.filter,sdpOffer:x}}C.session.openvidu.sendRequest(b,F,function(de,ve){de?g(401===de.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(de)):C.webRtcPeer.processRemoteAnswer(ve.sdpAnswer).then(function(){C.streamId=ve.id,C.creationTime=ve.createdAt,C.isLocalStreamPublished=!0,C.publishedOnce=!0,C.displayMyRemote()&&(C.localMediaStreamWhenSubscribedToRemote=C.mediaStream,C.remotePeerSuccessfullyEstablished(m)),C.ee.emitEvent(m?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),C.initWebRtcStats(),D.info("'Publisher' ("+C.streamId+") successfully "+(m?"reconnected":"published")+" to session"),function(){var x;m&&(null===(x=C.reconnectionEventEmitter)||void 0===x||x.emitEvent("success"),delete C.reconnectionEventEmitter),$()}()}).catch(function(me){g(me)})})}(N.sdp)}).catch(function(x){g(new Error("(publish) SDP process local offer error: "+JSON.stringify(x)))})}).catch(function(N){g(new Error("(publish) SDP create offer error: "+JSON.stringify(N)))})})},S.prototype.finalResolveForSubscription=function(m,C){var $;return D.info("'Subscriber' ("+this.streamId+") successfully "+(m?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(m),this.initWebRtcStats(),m&&(null===($=this.reconnectionEventEmitter)||void 0===$||$.emitEvent("success"),delete this.reconnectionEventEmitter),C()},S.prototype.finalRejectForSubscription=function(m,C,$){var T;return D.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(m?"reconnect":"subscribe")+": "+C.toString()),m&&(null===(T=this.reconnectionEventEmitter)||void 0===T||T.emitEvent("error",[C]),delete this.reconnectionEventEmitter),$(C)},S.prototype.initWebRtcPeerReceive=function(m){var C=this;return new Promise(function($,T){m&&C.setupReconnectionEventEmitter($,T)||("mediasoup"===C.session.openvidu.mediaServer?C.initWebRtcPeerReceiveFromServer(m).then(function(){return C.finalResolveForSubscription(m,$)}).catch(function(E){return C.finalRejectForSubscription(m,E,T)}):C.initWebRtcPeerReceiveFromClient(m).then(function(){return C.finalResolveForSubscription(m,$)}).catch(function(E){return C.finalRejectForSubscription(m,E,T)}))})},S.prototype.initWebRtcPeerReceiveFromClient=function(m){var C=this;return new Promise(function($,T){C.completeWebRtcPeerReceive(m,!1).then(function(E){C.webRtcPeer.processRemoteAnswer(E.sdpAnswer).then(function(){return $()}).catch(function(G){return T(G)})}).catch(function(E){return T(E)})})},S.prototype.initWebRtcPeerReceiveFromServer=function(m){var C=this;return new Promise(function($,T){C.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:C.streamId,reconnect:m},function(E,G){if(E)return T(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(E)));C.completeWebRtcPeerReceive(m,!1,G.sdpOffer).then(function(){return $()}).catch(function(g){return T(g)})})})},S.prototype.completeWebRtcPeerReceive=function(m,C,$){var T=this;return new Promise(function(E,G){D.debug("'Session.subscribe(Stream)' called");var g=function(N){D.debug("Sending local SDP ".concat($?"answer":"offer"," to subscribe to ").concat(T.streamId),N);var x=m?"reconnectStream":"receiveVideoFrom",b={};b[m?"stream":"sender"]=T.streamId,$?b[m?"sdpString":"sdpAnswer"]=N:b.sdpOffer=N,m&&(b.forciblyReconnect=C),T.session.openvidu.sendRequest(x,b,function(F,z){return F?G(new Error("Error on "+x+" : "+JSON.stringify(F))):E(z)})},V={mediaConstraints:{audio:T.hasAudio,video:T.hasVideo},simulcast:!1,onIceCandidate:T.connection.sendIceCandidate.bind(T.connection),onIceConnectionStateException:function(N,x,b){T.session.emitEvent("exception",[new P.ExceptionEvent(T.session,N,T,x,b)])},iceServers:T.getIceServersConf(),mediaServer:T.session.openvidu.mediaServer,typeOfVideo:T.typeOfVideo?ie.TypeOfVideo[T.typeOfVideo]:void 0};m&&T.disposeWebRtcPeer(),T.webRtcPeer=new f.WebRtcPeerRecvonly(V),T.webRtcPeer.addIceConnectionStateChangeListener(T.streamId),$?T.webRtcPeer.processRemoteOffer($).then(function(){T.webRtcPeer.createAnswer().then(function(L){T.webRtcPeer.processLocalAnswer(L).then(function(){g(L.sdp)}).catch(function(N){return G(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(N)))})}).catch(function(L){return G(new Error("(subscribe) SDP create answer error: "+JSON.stringify(L)))})}).catch(function(L){return G(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(L)))}):T.webRtcPeer.createOffer().then(function(L){T.webRtcPeer.processLocalOffer(L).then(function(){g(L.sdp)}).catch(function(N){return G(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(N)))})}).catch(function(L){return G(new Error("(subscribe) SDP create offer error: "+JSON.stringify(L)))})})},S.prototype.remotePeerSuccessfullyEstablished=function(m){m&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var C,$=0,T=this.webRtcPeer.pc.getReceivers();$0},S}();X.Stream=K},8613:function(be,X,U){"use strict";var ie,k=this&&this.__extends||(ie=function(H,re){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,j){Y.__proto__=j}||function(Y,j){for(var D in j)Object.prototype.hasOwnProperty.call(j,D)&&(Y[D]=j[D])})(H,re)},function(y,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function re(){this.constructor=y}ie(y,H),y.prototype=null===H?Object.create(H):(re.prototype=H.prototype,new re)});Object.defineProperty(X,"__esModule",{value:!0}),X.StreamManager=void 0;var R,q=U(8074),M=U(4006),I=U(4281),f=U(7507),d=U(6274),P=U(6946),p=U(543),w=P.OpenViduLogger.getInstance(),Q=function(ie){function y(H,re){var Y=ie.call(this)||this;if(Y.videos=[],Y.lazyLaunchVideoElementCreatedEvent=!1,R=p.PlatformUtils.getInstance(),Y.stream=H,Y.stream.streamManager=Y,Y.remote=!Y.stream.isLocal(),re){var j=void 0;"string"==typeof re?j=document.getElementById(re):re instanceof HTMLElement&&(j=re),j&&(Y.firstVideoElement={targetElement:j,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(R.isSafariBrowser()||R.isIPhoneOrIPad()&&(R.isChromeMobileBrowser()||R.isEdgeMobileBrowser()||R.isOperaMobileBrowser()||R.isFirefoxMobileBrowser()))&&(Y.firstVideoElement.video.playsInline=!0),Y.targetElement=j,Y.element=j)}return Y.canPlayListener=function(){Y.deactivateStreamPlayingEventExceptionTimeout(),Y.ee.emitEvent("streamPlaying",[new M.StreamManagerEvent(Y,"streamPlaying",void 0)])},Y}return k(y,ie),y.prototype.on=function(H,re){return ie.prototype.onAux.call(this,H,"Event '"+H+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",re),"videoElementCreated"===H&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new I.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===H&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new M.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===H&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===H&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===H&&this.stream.enableHarkVolumeChangeEvent(!1)),this},y.prototype.once=function(H,re){return ie.prototype.onceAux.call(this,H,"Event '"+H+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",re),"videoElementCreated"===H&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new I.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===H&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new M.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===H&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===H&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===H&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},y.prototype.off=function(H,re){return ie.prototype.offAux.call(this,H,re),"publisherStartSpeaking"===H&&0===this.ee.getListeners(H).length+this.stream.session.ee.getListeners(H).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===H&&0===this.ee.getListeners(H).length+this.stream.session.ee.getListeners(H).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===H&&0===this.ee.getListeners(H).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},y.prototype.addVideoElement=function(H){this.initializeVideoProperties(H),!this.remote&&this.stream.displayMyRemote()&&H.srcObject!==this.stream.getMediaStream()&&(H.srcObject=this.stream.getMediaStream());for(var re=0,Y=this.videos;re=0;--re)this.stream.session.streamManagers[re]===this&&this.stream.session.streamManagers.splice(re,1);this.videos.forEach(function(Y){!!Y.video&&!!Y.video.removeEventListener&&Y.video.removeEventListener("canplay",H.canPlayListener),Y.canplayListenerAdded=!1,Y.targetElement&&(Y.video.parentNode.removeChild(Y.video),H.ee.emitEvent("videoElementDestroyed",[new I.VideoElementEvent(Y.video,H,"videoElementDestroyed")])),H.removeSrcObject(Y),H.videos.filter(function(j){return!j.targetElement})})},y.prototype.disassociateVideo=function(H){for(var re=!1,Y=0;Y=0;--Q)y[Q].id===this.stream.streamId&&y.splice(Q,1)}}},w}(q.Event);X.StreamEvent=P},4006:function(be,X,U){"use strict";var I,k=this&&this.__extends||(I=function(d,P){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,w){p.__proto__=w}||function(p,w){for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(p[R]=w[R])})(d,P)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function P(){this.constructor=f}I(f,d),f.prototype=null===d?Object.create(d):(P.prototype=d.prototype,new P)});Object.defineProperty(X,"__esModule",{value:!0}),X.StreamManagerEvent=void 0;var M=function(I){function f(d,P,p){var w=I.call(this,!1,d,P)||this;return w.value=p,w}return k(f,I),f.prototype.callDefaultBehavior=function(){},f}(U(2345).Event);X.StreamManagerEvent=M},2798:function(be,X,U){"use strict";var I,k=this&&this.__extends||(I=function(d,P){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,w){p.__proto__=w}||function(p,w){for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(p[R]=w[R])})(d,P)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function P(){this.constructor=f}I(f,d),f.prototype=null===d?Object.create(d):(P.prototype=d.prototype,new P)});Object.defineProperty(X,"__esModule",{value:!0}),X.StreamPropertyChangedEvent=void 0;var M=function(I){function f(d,P,p,w,R,Q){var ie=I.call(this,!1,d,"streamPropertyChanged")||this;return ie.stream=P,ie.changedProperty=p,ie.newValue=w,ie.oldValue=R,ie.reason=Q,ie}return k(f,I),f.prototype.callDefaultBehavior=function(){},f}(U(2345).Event);X.StreamPropertyChangedEvent=M},4281:function(be,X,U){"use strict";var I,k=this&&this.__extends||(I=function(d,P){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,w){p.__proto__=w}||function(p,w){for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(p[R]=w[R])})(d,P)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function P(){this.constructor=f}I(f,d),f.prototype=null===d?Object.create(d):(P.prototype=d.prototype,new P)});Object.defineProperty(X,"__esModule",{value:!0}),X.VideoElementEvent=void 0;var M=function(I){function f(d,P,p){var w=I.call(this,!1,P,p)||this;return w.element=d,w}return k(f,I),f.prototype.callDefaultBehavior=function(){},f}(U(2345).Event);X.VideoElementEvent=M},6842:function(be){function X(){var U={};this.forEach=function(k){for(var q in U){var M=U[q];for(var I in M)k(M[I])}},this.get=function(k,q){var M=U[q];if(null!=M)return M[k]},this.remove=function(k,q){var M=U[q];if(null!=M){for(var I in delete M[k],M)return!1;delete U[q]}},this.set=function(k,q,M){if(null==k)return this.remove(q,M);var I=U[M];null==I&&(U[M]=I={}),I[q]=k}}X.prototype.pop=function(U,k){var q=this.get(U,k);if(null!=q)return this.remove(U,k),q},be.exports=X},5150:function(be,X,U){var k=U(245);X.JsonRpcClient=k},245:function(be,X,U){var k=U(3031),q=U(7182),M=U(6946).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var f="RECONNECTING",d="CONNECTED",P="DISCONNECTED",p=M.getInstance();be.exports=function w(R){var j,Q=this,ie=R.ws,y=-1,H=0,re=!0,Y=!1,D=P,W=ie.onreconnecting,K=ie.onreconnected,S=ie.onconnected,m=ie.onerror;R.rpc.pull=function(L,N){N.reply(null,"push")},ie.onreconnecting=function(){p.debug("--------- ONRECONNECTING -----------"),D!==f?(V(),D=f,W&&W()):p.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},ie.onreconnected=function(){p.debug("--------- ONRECONNECTED -----------"),D!==d?(D=d,E(),K&&K()):p.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},ie.onconnected=function(){p.debug("--------- ONCONNECTED -----------"),D!==d?(D=d,re=!0,g(),S&&S()):p.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},ie.onerror=function(L){p.debug("--------- ONERROR -----------"),D=P,V(),m&&m(L)};var C=new q(ie);p.debug("Connecting websocket to URI: "+ie.uri);var T=new k(k.packers.JsonRPC,{request_timeout:R.rpc.requestTimeout,ping_request_timeout:R.rpc.heartbeatRequestTimeout},C,function(L){p.debug("Received request: "+JSON.stringify(L));try{var N=R.rpc[L.method];void 0===N?p.error("Method "+L.method+" not registered in client"):N(L.params,L)}catch(x){p.error("Exception processing request: "+JSON.stringify(L)),p.error(x)}});function E(){p.debug("notReconnectIfNumLessThan = "+H+" (old="+y+")"),y=H}function G(){if(re){var L=null;(0==H||H==y)&&(L={interval:R.heartbeat||5e3}),H++,Q.send("ping",L,(N=H,function(x,b){x&&(p.debug("Error in ping request #"+N+" ("+x.message+")"),N>y&&(re=!1,E(),p.debug("Server did not respond to ping message #"+N+". Reconnecting... "),C.reconnectWs()))}))}else p.debug("Trying to send ping, but ping is not enabled");var N}function g(){Y||(p.debug("Starting ping (if configured)"),Y=!0,null!=R.heartbeat&&(j=setInterval(G,R.heartbeat),G()))}function V(){clearInterval(j),Y=!1,re=!1,H=-1,T.cancel()}this.send=function(L,N,x){var b=Date.now();T.encode(L,N,function(F,z){if(F){try{p.error("ERROR:"+F.message+" in Request: method:"+L+" params:"+JSON.stringify(N)+" request:"+F.request),F.data&&p.error("ERROR DATA:"+JSON.stringify(F.data))}catch(de){}F.requestTime=b}x&&(null!=z&&"pong"!==z.value&&p.debug("Response: "+JSON.stringify(z)),x(F,z))})},this.close=function(L,N){p.debug("Closing with code: "+L+" because: "+N),null!=j&&(p.debug("Clearing ping interval"),clearInterval(j)),Y=!1,re=!1,C.close(L,N)},this.reconnect=function(){C.reconnectWs()},this.resetPing=function(){re=!0,H=0,g()},this.getReadyState=function(){return C.getReadyState()}}},593:function(be,X,U){var k=U(7182);X.WebSocketWithReconnection=k},7182:function(be,X,U){"use strict";var q=U(6946).OpenViduLogger.getInstance();be.exports=function w(R){var ie,Q=!1,y=R.uri,H=!1,re=new WebSocket(y);re.onopen=function(){q.debug("WebSocket connected to "+y),R.onconnected&&R.onconnected()},re.onerror=function(K){q.error("Could not connect to "+y+" (invoking onerror if defined)",K),R.onerror&&R.onerror(K)};var Y=function(){3===re.readyState?Q?q.debug("Connection closed by user"):R.ismasternodecrashed()?q.error("Master Node has crashed. Stopping reconnection process"):(q.debug("Connection closed unexpectedly. Reconnecting..."),j(2e3,1)):q.debug("Close callback from previous websocket. Ignoring it")};function j(K,S){if(q.debug("reconnect (attempt #"+S+", max="+K+")"),1===S){if(H)return void q.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");H=!0,R.onreconnecting&&R.onreconnecting()}!function W(K,S){q.debug("Reconnection attempt #"+S),re.close(4104,"Connection closed for reconnection"),y=function D(K){var S=new URLSearchParams(new URL(K).search);return S.has("reconnect")||(K=Array.from(S).length>0?K+"&reconnect=true":K+"?reconnect=true"),K}(y),(re=new WebSocket(y)).onopen=function(){q.debug("Reconnected to "+y+" after "+S+" attempts..."),H=!1,ie(),R.onreconnected()&&R.onreconnected(),re.onclose=Y},re.onerror=function(m){q.warn("Reconnection error: ",m),S===K?R.ondisconnect&&R.ondisconnect():setTimeout(function(){j(K,S+1)},3e3)}}(K,S)}re.onclose=Y,this.close=function(K,S){Q=!0,re.close(K,S)},this.reconnectWs=function(){q.debug("reconnectWs"),j(2e3,1)},this.send=function(K){re.send(K)},this.addEventListener=function(K,S){(ie=function(){re.addEventListener(K,S)})()},this.getReadyState=function(){return re.readyState}}},3031:function(be,X,U){var k=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(y){k=!0}Function.prototype.bind||(Function.prototype.bind=function(y){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var H=Array.prototype.slice.call(arguments,1),re=this,Y=function(){},j=function(){return re.apply(this instanceof Y&&y?this:y,H.concat(Array.prototype.slice.call(arguments)))};return Y.prototype=this.prototype,j.prototype=new Y,j});var q=U(9069).EventEmitter,M=U(3894),I=U(8080),f=U(6842),d=5e3;function p(y){if(y){if(y instanceof Function)return{send:y};if(y.send instanceof Function)return y;if(y.postMessage instanceof Function)return y.send=y.postMessage,y;if(y.write instanceof Function)return y.send=y.write,y;if(void 0===y.onmessage&&!(y.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function w(y,H){k?(this.method=y,this.params=H):(Object.defineProperty(this,"method",{value:y,enumerable:!0}),Object.defineProperty(this,"params",{value:H,enumerable:!0}))}function R(y,H,re,Y){var j=this;if(!y)throw new SyntaxError("Packer is not defined");if(!y.pack||!y.unpack)throw new SyntaxError("Packer is invalid");var D=function P(y){if(!y)return{};for(var H in y){var re=y[H];"string"==typeof re&&(y[H]={response:re})}return y}(y.responseMethods);if(H instanceof Function){if(null!=re)throw new SyntaxError("There can't be parameters after onRequest");Y=H,re=void 0,H=void 0}if(H&&H.send instanceof Function){if(re&&!(re instanceof Function))throw new SyntaxError("Only a function can be after transport");Y=re,re=H,H=void 0}if(re instanceof Function){if(null!=Y)throw new SyntaxError("There can't be parameters after onRequest");Y=re,re=void 0}if(re&&re.send instanceof Function&&Y&&!(Y instanceof Function))throw new SyntaxError("Only a function can be after transport");H=H||{},q.call(this),Y&&this.on("request",Y),k?this.peerID=H.peerID:Object.defineProperty(this,"peerID",{value:H.peerID});var W=H.max_retries||0;function K(F){j.decode(F.data||F)}this.getTransport=function(){return re},this.setTransport=function(F){re&&(re.removeEventListener?re.removeEventListener("message",K):re.removeListener&&re.removeListener("data",K)),F&&(F.addEventListener?F.addEventListener("message",K):F.addListener&&F.addListener("data",K)),re=p(F)},k||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(re);var S=H.request_timeout||d,m=H.ping_request_timeout||S,C=H.response_timeout||d,$=H.duplicates_timeout||d,T=0,E=new f,G=new f,g=new f,V={};function N(F,z){var de=setTimeout(function(){g.remove(F,z)},$);g.set(de,F,z)}function x(F,z,de,ve,me){w.call(this,F,z),this.getTransport=function(){return me},this.setTransport=function(Fe){me=p(Fe)},k||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var De=G.get(de,ve);me||j.getTransport()||(k?this.duplicated=Boolean(De):Object.defineProperty(this,"duplicated",{value:Boolean(De)}));var Me=D[F];this.pack=y.pack.bind(y,this,de),this.reply=function(Fe,Le,Ke){if(Fe instanceof Function||Fe&&Fe.send instanceof Function){if(null!=Le)throw new SyntaxError("There can't be parameters after callback");Ke=Fe,Le=null,Fe=void 0}else if(Le instanceof Function||Le&&Le.send instanceof Function){if(null!=Ke)throw new SyntaxError("There can't be parameters after callback");Ke=Le,Le=null}var Qe;return Ke=p(Ke),De&&clearTimeout(De.timeout),null!=ve&&(Fe&&(Fe.dest=ve),Le&&(Le.dest=ve)),Fe||null!=Le?(null!=j.peerID&&(Fe?Fe.from=j.peerID:Le.from=j.peerID),Qe=y.pack(Qe=Me?null==Me.error&&Fe?{error:Fe}:{method:Fe?Me.error:Me.response,params:Fe||Le}:{error:Fe,result:Le},de)):Qe=De?De.message:y.pack({result:null},de),function L(F,z,de){var ve={message:F,timeout:setTimeout(function(){G.remove(z,de)},C)};G.set(ve,z,de)}(Qe,de,ve),(Ke=Ke||this.getTransport()||j.getTransport())?Ke.send(Qe):Qe}}function b(F){var z=V[F];if(z){delete V[F];var de=E.pop(z.id,z.dest);!de||(clearTimeout(de.timeout),N(z.id,z.dest))}}M(x,w),this.cancel=function(F){if(F)return b(F);for(var F in V)b(F)},this.close=function(){var F=this.getTransport();F&&F.close&&F.close(4003,"Cancel request"),this.cancel(),g.forEach(clearTimeout),G.forEach(function(z){clearTimeout(z.timeout)})},this.encode=function(F,z,de,ve,me){if(z instanceof Function){if(null!=de)throw new SyntaxError("There can't be parameters after callback");me=z,ve=void 0,de=void 0,z=void 0}else if(de instanceof Function){if(null!=ve)throw new SyntaxError("There can't be parameters after callback");me=de,ve=void 0,de=void 0}else if(ve instanceof Function){if(null!=me)throw new SyntaxError("There can't be parameters after callback");me=ve,ve=void 0}null!=j.peerID&&((z=z||{}).from=j.peerID),null!=de&&((z=z||{}).dest=de);var De={method:F,params:z};if(me){var Me=function(ae,fe){j.cancel(De),me(ae,fe)},Fe=function(ae){return lt.timeout=setTimeout(Ke,("ping"===F?m:S)*Math.pow(2,se++)),V[De]={id:Qe,dest:de},E.set(lt,Qe,de),(ae=ae||Ve||j.getTransport())?ae.send(De):De},Le=function(ae){ae=p(ae),console.warn(se+" retry for request message:",De);var fe=g.pop(Qe,de);return clearTimeout(fe),Fe(ae)},Ke=function(){if(sep.instance.MAX_LENGTH_STRING_JSON&&(Y="".concat(Y.substring(0,p.instance.MAX_LENGTH_STRING_JSON),"...")),globalThis.LOG_JSNLOG_RESULTS&&console.log(Y),Y},enabled:!0}),(0,k.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=R,this.instance.info("JSNLog configured.")}}catch(y){console.error("Error configuring JSNLog: "),console.error(y),this.instance.disableLogger()}},f.getInstance=function(){return f.instance||(f.instance=new f),f.instance},f.isInvalidResponse=function(d){return 401==d.status||403==d.status||404==d.status||0==d.status},f.prototype.canConfigureJSNLog=function(d,P){return d.session.sessionId!=P.loggingSessionId},f.prototype.isOpenViduBrowserLogsDebugActive=function(d){return d.sendBrowserLogs===M.OpenViduLoggerConfiguration.debug||d.sendBrowserLogs===M.OpenViduLoggerConfiguration.debug_app},f.prototype.getConsoleWithJSNLog=function(){return d=this,{log:function(){for(var p=[],w=0;w1920?globalThis.screen.width:1920,maxHeight:globalThis.screen.height>1080?globalThis.screen.height:1080},optional:[]}};return P&&(p.audio={mandatory:{chromeMediaSource:f?"screen":"desktop"},optional:[]}),d&&(p.video.mandatory.chromeMediaSourceId=d,p.audio&&p.audio.mandatory&&(p.audio.mandatory.chromeMediaSourceId=d)),p}function k(f){q?q.isLoaded?q.contentWindow.postMessage(f?f.forEach?{captureCustomSourceId:f}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){k(f)},100):M(function(){k(f)})}var q;function M(f){q?f():((q=document.createElement("iframe")).onload=function(){q.isLoaded=!0,f()},q.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",q.style.display="none",(document.body||document.documentElement).appendChild(q))}function I(){q?q.isLoaded?q.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(I,100):M(I)}globalThis.getScreenId=function(f,d,P){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?d(null,"firefox",{video:{mozMediaSource:f,mediaSource:f}}):(globalThis.addEventListener("message",function p(w){!w.data||(w.data.chromeMediaSourceId&&("PermissionDeniedError"===w.data.chromeMediaSourceId?d("permission-denied"):d(null,w.data.chromeMediaSourceId,U(null,w.data.chromeMediaSourceId,w.data.canRequestAudioTrack)),globalThis.removeEventListener("message",p)),w.data.chromeExtensionStatus&&(d(w.data.chromeExtensionStatus,null,U(w.data.chromeExtensionStatus)),globalThis.removeEventListener("message",p)))}),setTimeout(P?function(){k(P)}:k,100)):d({video:!0})},globalThis.getScreenConstraints=function(f){M(function(){getScreenId(function(d,P,p){p||(p={video:!0}),f(d,p.video)})})},globalThis.getChromeExtensionStatus=function(f){navigator.mozGetUserMedia?f("installed-enabled"):(globalThis.addEventListener("message",function d(P){!P.data||P.data.chromeExtensionStatus&&(f(P.data.chromeExtensionStatus),globalThis.removeEventListener("message",d))}),setTimeout(I,100))},X.getScreenId=globalThis.getScreenId},4627:function(be,X){var k,q,U="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var M=void 0!==window.InstallTrigger;!!window.opera||navigator.userAgent.indexOf(" OPR/");window,window.addEventListener("message",function(H){H.origin==window.location.origin&&function d(H){if("PermissionDeniedError"==H){if(q)return q("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==H&&(U="desktop"),H.sourceId&&q&&q(k=H.sourceId,!0===H.canRequestAudioTrack)}(H.data)})}function p(H){if(!H)throw'"callback" parameter is mandatory.';if(k)return H(k);q=H,window.postMessage("get-sourceId","*")}function y(H,re){if(k="",M)return H(null,{mozMediaSource:"window",mediaSource:"window"});var j={mandatory:{chromeMediaSource:U,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=U||k?("desktop"==U&&(j.mandatory.chromeMediaSourceId=k),H(null,j)):re?function R(H){if(!H)throw'"callback" parameter is mandatory.';if(k)return H(k);q=H,window.postMessage("audio-plus-tab","*")}(function(D,W){j.mandatory.chromeMediaSourceId=D,W&&(j.canRequestAudioTrack=!0),H("PermissionDeniedError"==D?D:null,j)}):p(function(D){j.mandatory.chromeMediaSourceId=D,H("PermissionDeniedError"==D?D:null,j)})}X.getScreenConstraints=y,X.getScreenConstraintsWithAudio=function ie(H){y(H,!0)},X.isChromeExtensionAvailable=function P(H){if(H){if("desktop"==U)return H(!0);window.postMessage("are-you-there","*"),setTimeout(function(){H("screen"!=U)},2e3)}},X.getChromeExtensionStatus=function Q(H,re){if(M)return re("not-chrome");2!=arguments.length&&(re=H,H="lfcgfepafnobdloecchnfaclibenjold");var Y=document.createElement("img");Y.src="chrome-extension://"+H+"/icon.png",Y.onload=function(){U="screen",window.postMessage("are-you-there","*"),setTimeout(function(){re("screen"==U?"installed-disabled":"installed-enabled")},2e3)},Y.onerror=function(){re("not-installed")}},X.getSourceId=p},543:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.PlatformUtils=void 0;var k=U(2437),q=function(){function M(){}return M.getInstance=function(){return this.instance||(this.instance=new M),M.instance},M.prototype.isChromeBrowser=function(){return"Chrome"===k.name},M.prototype.isSafariBrowser=function(){return"Safari"===k.name},M.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===k.name},M.prototype.isFirefoxBrowser=function(){return"Firefox"===k.name},M.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===k.name||"Firefox for iOS"===k.name},M.prototype.isOperaBrowser=function(){return"Opera"===k.name},M.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===k.name},M.prototype.isEdgeBrowser=function(){var I=(null==k?void 0:k.version)?parseFloat(k.version):-1;return"Microsoft Edge"===k.name&&I>=80},M.prototype.isEdgeMobileBrowser=function(){var I,f,d=(null==k?void 0:k.version)?parseFloat(k.version):-1;return"Microsoft Edge"===k.name&&("Android"===(null===(I=k.os)||void 0===I?void 0:I.family)||"iOS"===(null===(f=k.os)||void 0===f?void 0:f.family))&&d>45},M.prototype.isAndroidBrowser=function(){return"Android Browser"===k.name},M.prototype.isElectron=function(){return"Electron"===k.name},M.prototype.isNodeJs=function(){return"Node.js"===k.name},M.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===k.name||"Samsung Internet"===k.name},M.prototype.isIPhoneOrIPad=function(){var I=k.ua?k.ua:navigator.userAgent,f="ontouchend"in document,d=/\b(\w*Macintosh\w*)\b/.test(I)&&f,P=/\b(\w*iPhone\w*)\b/.test(I)&&/\b(\w*Mobile\w*)\b/.test(I)&&f;return d||P},M.prototype.isIOSWithSafari=function(){var I=k.ua?k.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(I)&&!/\b(\w*CriOS\w*)\b/.test(I)&&!/\b(\w*FxiOS\w*)\b/.test(I)},M.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===k.ua.indexOf("Safari")},M.prototype.isIonicAndroid=function(){return"Android"===k.os.family&&"Android Browser"==k.name},M.prototype.isMobileDevice=function(){return"iOS"===k.os.family||"Android"===k.os.family},M.prototype.isReactNative=function(){return!1},M.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},M.prototype.canScreenShare=function(){var I=(null==k?void 0:k.version)?parseFloat(k.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&I>=13)},M.prototype.getName=function(){return k.name||""},M.prototype.getVersion=function(){return k.version||""},M.prototype.getFamily=function(){return k.os.family||""},M.prototype.getDescription=function(){return k.description||""},M}();X.PlatformUtils=q},4641:function(be,X,U){"use strict";var Y,k=this&&this.__extends||(Y=function(D,W){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,S){K.__proto__=S}||function(K,S){for(var m in S)Object.prototype.hasOwnProperty.call(S,m)&&(K[m]=S[m])})(D,W)},function(j,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function W(){this.constructor=j}Y(j,D),j.prototype=null===D?Object.create(D):(W.prototype=D.prototype,new W)}),q=this&&this.__assign||function(){return q=Object.assign||function(Y){for(var j,D=1,W=arguments.length;D0&&S[S.length-1])&&(6===T[0]||2===T[0])){D=0;continue}if(3===T[0]&&(!S||T[1]>S[0]&&T[1]0?j.iceServers:f(),mediaStream:void 0!==j.mediaStream?j.mediaStream:null,mode:j.mode?j.mode:"sendrecv",id:j.id?j.id:this.generateUniqueId()}),R.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(W){if(null!==W.candidate){var S=new RTCIceCandidate(W.candidate);D.configuration.onIceCandidate(S),""!==S.candidate&&D.localCandidatesQueue.push(S)}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===D.pc.signalingState)for(;D.iceCandidateList.length>0;){var W=D.iceCandidateList.shift();D.pc.addIceCandidate(W)}})}return Y.prototype.getId=function(){return this.configuration.id},Y.prototype.dispose=function(){if(R.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},Y.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var W={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return R.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(W)),this.pc.createOffer(W)},Y.prototype.createOffer=function(){var j,D,W,K,S,m,C,$;return M(this,void 0,void 0,function(){var T,E,G,g,V,L,N,x,b,F,z,de,ve,me,De,Me,Fe,Le,Ke,Qe,se,lt,Ve;return I(this,function(pt){switch(pt.label){case 0:if(!("addTransceiver"in this.pc))return R.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(R.debug("[createOffer] Method RTCPeerConnection.addTransceiver() is available; using it"),"recvonly"===this.configuration.mode)return[3,7];if(!this.configuration.mediaStream)throw new Error("[WebRtcPeer.createOffer] Direction is '".concat(this.configuration.mode,"', but no stream was configured to be sent"));T=0,E=this.configuration.mediaStream.getTracks(),pt.label=1;case 1:if(!(T=518400?3:b>=129600?2:1,g.sendEncodings=[],z=0;z0&&y[y.length-1])&&(6===j[0]||2===j[0])){R=0;continue}if(3===j[0]&&(!y||j[1]>y[0]&&j[1]=0||z.candidate.indexOf(T.address)>=0)&&z.candidate.indexOf(T.port)>=0}),T.raw=[],E=0,G=L;E=0||z.candidate.indexOf(g.address)>=0)&&z.candidate.indexOf(g.port)>=0}),g.raw=[],N=0,x=L;N-1&&(S="video"),null!=$&&null!=S&&null!=T&&null!=H[$][S]?H[$][S][T]=Number(K[T]):null!=$&&null!=T&&Y.includes(T)&&(H[$][T]=Number(K[T])))};switch(K.type){case"outbound-rtp":m("outbound","bytesSent"),m("outbound","packetsSent"),m("outbound","framesEncoded"),m("outbound","nackCount"),m("outbound","firCount"),m("outbound","pliCount"),m("outbound","qpSum");break;case"inbound-rtp":m("inbound","bytesReceived"),m("inbound","packetsReceived"),m("inbound","packetsLost"),m("inbound","jitter"),m("inbound","framesDecoded"),m("inbound","nackCount"),m("inbound","firCount"),m("inbound","pliCount");break;case"track":m("inbound","jitterBufferDelay"),m("inbound","framesReceived"),m("outbound","framesDropped"),m("outbound","framesSent"),m(D.stream.isLocal()?"outbound":"inbound","frameHeight"),m(D.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":m("candidatepair","currentRoundTripTime"),m("candidatepair","availableOutgoingBitrate")}}),(!(null==H?void 0:H.candidatepair)||0===Object.keys(H.candidatepair).length)&&delete H.candidatepair,[2,Q(H)];case 2:return j=W.sent(),f.error("Error getting common stats: ",j),[2,ie(j)];case 3:return[2]}})})})]})})},p.prototype.generateJSONStatsResponse=function(w){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:d.getName(),platform_description:d.getDescription(),stream:"webRTC",webrtc_stats:w}},p.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},p}();X.WebRtcStats=P},5039:function(be,X,U){"use strict";X.Dn=void 0;var q=U(8659),M=U(763);Object.defineProperty(X,"Dn",{enumerable:!0,get:function(){return M.OpenVidu}});U(8402),U(4259),U(1758),U(8613),U(2096),U(7490),U(4289),U(4540),U(5156),U(4103),U(5913),U(6274),U(2345),U(8702),U(805),U(7936),U(1018),U(5785),U(2299),U(4006),U(4281),U(2798),U(865),U(2156),U(6237),U(7507),U(8074);q.JL.setOptions({enabled:!1})},835:function(be){"use strict";function X(){this._types=Object.create(null),this._extensions=Object.create(null);for(var U=0;Uf)throw new TypeError("version is longer than ".concat(f," characters"));M("SemVer",re,Y),this.options=Y,this.loose=!!Y.loose,this.includePrerelease=!!Y.includePrerelease;var j=re.trim().match(Y.loose?p[w.LOOSE]:p[w.FULL]);if(!j)throw new TypeError("Invalid Version: ".concat(re));if(this.raw=re,this.major=+j[1],this.minor=+j[2],this.patch=+j[3],this.major>d||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=j[4]?j[4].split(".").map(function(D){if(/^[0-9]+$/.test(D)){var W=+D;if(W>=0&&W=0;)"number"==typeof this.prerelease[D]&&(this.prerelease[D]++,D=-2);-1===D&&this.prerelease.push(0)}j&&(0===ie(this.prerelease[0],j)?isNaN(this.prerelease[1])&&(this.prerelease=[j,0]):this.prerelease=[j,0]);break;default:throw new Error("invalid increment argument: ".concat(Y))}return this.format(),this.raw=this.version,this}}]),H}()},4778:function(be,X,U){var k=U(2463);be.exports=function(I,f){return new k(I,f).major}},3042:function(be,X,U){var k=U(2463);be.exports=function(I,f){return new k(I,f).minor}},3054:function(be){be.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},8977:function(be){var X="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var U,k=arguments.length,q=new Array(k),M=0;M)?=?)"),p("XRANGEIDENTIFIERLOOSE","".concat(f[d.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),p("XRANGEIDENTIFIER","".concat(f[d.NUMERICIDENTIFIER],"|x|X|\\*")),p("XRANGEPLAIN","[v=\\s]*(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:".concat(f[d.PRERELEASE],")?").concat(f[d.BUILD],"?")+")?)?"),p("XRANGEPLAINLOOSE","[v=\\s]*(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(f[d.PRERELEASELOOSE],")?").concat(f[d.BUILD],"?")+")?)?"),p("XRANGE","^".concat(f[d.GTLT],"\\s*").concat(f[d.XRANGEPLAIN],"$")),p("XRANGELOOSE","^".concat(f[d.GTLT],"\\s*").concat(f[d.XRANGEPLAINLOOSE],"$")),p("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(q,"})")+"(?:\\.(\\d{1,".concat(q,"}))?")+"(?:\\.(\\d{1,".concat(q,"}))?")+"(?:$|[^\\d])"),p("COERCERTL",f[d.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM","(\\s*)".concat(f[d.LONETILDE],"\\s+"),!0),X.tildeTrimReplace="$1~",p("TILDE","^".concat(f[d.LONETILDE]).concat(f[d.XRANGEPLAIN],"$")),p("TILDELOOSE","^".concat(f[d.LONETILDE]).concat(f[d.XRANGEPLAINLOOSE],"$")),p("LONECARET","(?:\\^)"),p("CARETTRIM","(\\s*)".concat(f[d.LONECARET],"\\s+"),!0),X.caretTrimReplace="$1^",p("CARET","^".concat(f[d.LONECARET]).concat(f[d.XRANGEPLAIN],"$")),p("CARETLOOSE","^".concat(f[d.LONECARET]).concat(f[d.XRANGEPLAINLOOSE],"$")),p("COMPARATORLOOSE","^".concat(f[d.GTLT],"\\s*(").concat(f[d.LOOSEPLAIN],")$|^$")),p("COMPARATOR","^".concat(f[d.GTLT],"\\s*(").concat(f[d.FULLPLAIN],")$|^$")),p("COMPARATORTRIM","(\\s*)".concat(f[d.GTLT],"\\s*(").concat(f[d.LOOSEPLAIN],"|").concat(f[d.XRANGEPLAIN],")"),!0),X.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE","^\\s*(".concat(f[d.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(f[d.XRANGEPLAIN],")")+"\\s*$"),p("HYPHENRANGELOOSE","^\\s*(".concat(f[d.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(f[d.XRANGEPLAINLOOSE],")")+"\\s*$"),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2437:function(be,X,U){var k;be=U.nmd(be),function(){"use strict";var q={function:!0,object:!0},M=q[typeof window]&&window||this,P=q[typeof X]&&X&&q.object&&be&&!be.nodeType&&be&&"object"==typeof global&&global;P&&(P.global===P||P.window===P||P.self===P)&&(M=P);var p=Math.pow(2,53)-1,w=/\bOpera/,Q=Object.prototype,ie=Q.hasOwnProperty,y=Q.toString;function H(E){return(E=String(E)).charAt(0).toUpperCase()+E.slice(1)}function j(E){return E=C(E),/^(?:webOS|i(?:OS|P))/.test(E)?E:H(E)}function D(E,G){for(var g in E)ie.call(E,g)&&G(E[g],g,E)}function W(E){return null==E?H(E):y.call(E).slice(8,-1)}function S(E){return String(E).replace(/([ -])(?!$)/g,"$1?")}function m(E,G){var g=null;return function Y(E,G){var g=-1,V=E?E.length:0;if("number"==typeof V&&V>-1&&V<=p)for(;++g3?"WebKit":/\bOpera\b/.test(ne)&&(/\bOPR\b/.test(E)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(E)&&!/^(?:Trident|EdgeHTML)$/.test(ce)&&"WebKit"||!ce&&/\bMSIE\b/i.test(E)&&("Mac OS"==Ae?"Tasman":"Trident")||"WebKit"==ce&&/\bPlayStation\b(?! Vita\b)/i.test(ne)&&"NetFront")&&(ce=[se]),"IE"==ne&&(se=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(E)||0)[1])?(ne+=" Mobile",Ae="Windows Phone "+(/\+$/.test(se)?se:se+".x"),Ve.unshift("desktop mode")):/\bWPDesktop\b/i.test(E)?(ne="IE Mobile",Ae="Windows Phone 8.x",Ve.unshift("desktop mode"),fe||(fe=(/\brv:([\d.]+)/.exec(E)||0)[1])):"IE"!=ne&&"Trident"==ce&&(se=/\brv:([\d.]+)/.exec(E))&&(ne&&Ve.push("identifying as "+ne+(fe?" "+fe:"")),ne="IE",fe=se[1]),ae){if(function K(E,G){var g=null!=E?typeof E[G]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(g)||"object"==g&&!E[G])}(G,"global"))if(me&&(lt=(se=me.lang.System).getProperty("os.arch"),Ae=Ae||se.getProperty("os.name")+" "+se.getProperty("os.version")),De){try{fe=G.require("ringo/engine").version.join("."),ne="RingoJS"}catch(un){(se=G.system)&&se.global.system==G.system&&(ne="Narwhal",Ae||(Ae=se[0].os||null))}ne||(ne="Rhino")}else"object"==typeof G.process&&!G.process.browser&&(se=G.process)&&("object"==typeof se.versions&&("string"==typeof se.versions.electron?(Ve.push("Node "+se.versions.node),ne="Electron",fe=se.versions.electron):"string"==typeof se.versions.nw&&(Ve.push("Chromium "+fe,"Node "+se.versions.node),ne="NW.js",fe=se.versions.nw)),ne||(ne="Node.js",lt=se.arch,Ae=se.platform,fe=(fe=/[\d.]+/.exec(se.version))?fe[0]:null));else W(se=G.runtime)==F?(ne="Adobe AIR",Ae=se.flash.system.Capabilities.os):W(se=G.phantom)==ve?(ne="PhantomJS",fe=(se=se.version||null)&&se.major+"."+se.minor+"."+se.patch):"number"==typeof Le.documentMode&&(se=/\bTrident\/(\d+)/i.exec(E))?((se=+se[1]+4)!=(fe=[fe,Le.documentMode])[1]&&(Ve.push("IE "+fe[1]+" mode"),ce&&(ce[1]=""),fe[1]=se),fe="IE"==ne?String(fe[1].toFixed(1)):fe[0]):"number"==typeof Le.documentMode&&/^(?:Chrome|Firefox)\b/.test(ne)&&(Ve.push("masking as "+ne+" "+fe),ne="IE",fe="11.0",ce=["Trident"],Ae="Windows");Ae=Ae&&j(Ae)}if(fe&&(se=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(fe)||/(?:alpha|beta)(?: ?\d)?/i.exec(E+";"+(ae&&V.appMinorVersion))||/\bMinefield\b/i.test(E)&&"a")&&(pt=/b/i.test(se)?"beta":"alpha",fe=fe.replace(RegExp(se+"\\+?$"),"")+("beta"==pt?Fe:Me)+(/\d+\+?/.exec(se)||"")),"Fennec"==ne||"Firefox"==ne&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ae))ne="Firefox Mobile";else if("Maxthon"==ne&&fe)fe=fe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(he))"Xbox 360"==he&&(Ae=null),"Xbox 360"==he&&/\bIEMobile\b/.test(E)&&Ve.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ne)&&(!ne||he||/Browser|Mobi/.test(ne))||"Windows CE"!=Ae&&!/Mobi/i.test(E))if("IE"==ne&&ae)try{null===G.external&&Ve.unshift("platform preview")}catch(un){Ve.unshift("embedded")}else(/\bBlackBerry\b/.test(he)||/\bBB10\b/.test(E))&&(se=(RegExp(he.replace(/ +/g," *")+"/([.\\d]+)","i").exec(E)||0)[1]||fe)?(Ae=((se=[se,/BB10/.test(E)])[1]?(he=null,Ce="BlackBerry"):"Device Software")+" "+se[0],fe=null):this!=D&&"Wii"!=he&&(ae&&Ke||/Opera/.test(ne)&&/\b(?:MSIE|Firefox)\b/i.test(E)||"Firefox"==ne&&/\bOS X (?:\d+\.){2,}/.test(Ae)||"IE"==ne&&(Ae&&!/^Win/.test(Ae)&&fe>5.5||/\bWindows XP\b/.test(Ae)&&fe>8||8==fe&&!/\bTrident\b/.test(E)))&&!w.test(se=$.call(D,E.replace(w,"")+";"))&&se.name&&(se="ing as "+se.name+((se=se.version)?" "+se:""),w.test(ne)?(/\bIE\b/.test(se)&&"Mac OS"==Ae&&(Ae=null),se="identify"+se):(se="mask"+se,ne=Qe?j(Qe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(se)&&(Ae=null),ae||(fe=null)),ce=["Presto"],Ve.push(se));else ne+=" Mobile";(se=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(E)||0)[1])&&(se=[parseFloat(se.replace(/\.(\d)$/,".0$1")),se],"Safari"==ne&&"+"==se[1].slice(-1)?(ne="WebKit Nightly",pt="alpha",fe=se[1].slice(0,-1)):(fe==se[1]||fe==(se[2]=(/\bSafari\/([\d.]+\+?)/i.exec(E)||0)[1]))&&(fe=null),se[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(E)||0)[1],537.36==se[0]&&537.36==se[2]&&parseFloat(se[1])>=28&&"WebKit"==ce&&(ce=["Blink"]),ae&&(x||se[1])?(ce&&(ce[1]="like Chrome"),se=se[1]||((se=se[0])<530?1:se<532?2:se<532.05?3:se<533?4:se<534.03?5:se<534.07?6:se<534.1?7:se<534.13?8:se<534.16?9:se<534.24?10:se<534.3?11:se<535.01?12:se<535.02?"13+":se<535.07?15:se<535.11?16:se<535.19?17:se<536.05?18:se<536.1?19:se<537.01?20:se<537.11?"21+":se<537.13?23:se<537.18?24:se<537.24?25:se<537.36?26:"Blink"!=ce?"27":"28")):(ce&&(ce[1]="like Safari"),se=(se=se[0])<400?1:se<500?2:se<526?3:se<533?4:se<534?"4+":se<535?5:se<537?6:se<538?7:se<601?8:se<602?9:se<604?10:se<606?11:se<608?12:"12"),ce&&(ce[1]+=" "+(se+="number"==typeof se?".x":/[.+]/.test(se)?"":"+")),"Safari"==ne&&(!fe||parseInt(fe)>45)?fe=se:"Chrome"==ne&&/\bHeadlessChrome/i.test(E)&&Ve.unshift("headless")),"Opera"==ne&&(se=/\bzbov|zvav$/.exec(Ae))?(ne+=" ",Ve.unshift("desktop mode"),"zvav"==se?(ne+="Mini",fe=null):ne+="Mobile",Ae=Ae.replace(RegExp(" *"+se+"$"),"")):"Safari"==ne&&/\bChrome\b/.exec(ce&&ce[1])?(Ve.unshift("desktop mode"),ne="Chrome Mobile",fe=null,/\bOS X\b/.test(Ae)?(Ce="Apple",Ae="iOS 4.3+"):Ae=null):/\bSRWare Iron\b/.test(ne)&&!fe&&(fe=ct("Chrome")),fe&&0==fe.indexOf(se=/[\d.]+$/.exec(Ae))&&E.indexOf("/"+se+"-")>-1&&(Ae=C(Ae.replace(se,""))),Ae&&-1!=Ae.indexOf(ne)&&!RegExp(ne+" OS").test(Ae)&&(Ae=Ae.replace(RegExp(" *"+S(ne)+" *"),"")),ce&&!/\b(?:Avant|Nook)\b/.test(ne)&&(/Browser|Lunascape|Maxthon/.test(ne)||"Safari"!=ne&&/^iOS/.test(Ae)&&/\bSafari\b/.test(ce[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ne)&&ce[1])&&(se=ce[ce.length-1])&&Ve.push(se),Ve.length&&(Ve=["("+Ve.join("; ")+")"]),Ce&&he&&he.indexOf(Ce)<0&&Ve.push("on "+Ce),he&&Ve.push((/^on /.test(Ve[Ve.length-1])?"":"on ")+he),Ae&&(se=/ ([\d.+]+)$/.exec(Ae),oe=se&&"/"==Ae.charAt(Ae.length-se[0].length-1),Ae={architecture:32,family:se&&!oe?Ae.replace(se[0],""):Ae,version:se?se[1]:null,toString:function(){var wt=this.version;return this.family+(wt&&!oe?" "+wt:"")+(64==this.architecture?" 64-bit":"")}}),(se=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(lt))&&!/\bi686\b/i.test(lt)?(Ae&&(Ae.architecture=64,Ae.family=Ae.family.replace(RegExp(" *"+se),"")),ne&&(/\bWOW64\b/i.test(E)||ae&&/\w(?:86|32)$/.test(V.cpuClass||V.platform)&&!/\bWin64; x64\b/i.test(E))&&Ve.unshift("32-bit")):Ae&&/^OS X/.test(Ae.family)&&"Chrome"==ne&&parseFloat(fe)>=39&&(Ae.architecture=64),E||(E=null);var sn={};return sn.description=E,sn.layout=ce&&ce[0],sn.manufacturer=Ce,sn.name=ne,sn.prerelease=pt,sn.product=he,sn.ua=E,sn.version=ne&&fe,sn.os=Ae||{architecture:null,family:null,version:null,toString:function(){return"null"}},sn.parse=$,sn.toString=function Cr(){return this.description||""},sn.version&&Ve.unshift(fe),sn.name&&Ve.unshift(ne),Ae&&ne&&!(Ae==String(Ae).split(" ")[0]&&(Ae==ne.split(" ")[0]||he))&&Ve.push(he?"("+Ae+")":"on "+Ae),Ve.length&&(sn.description=Ve.join(" ")),sn}();M.platform=T,void 0!==(k=function(){return T}.call(X,U,X,be))&&(be.exports=k)}.call(this)},7854:function(be){var X=function(U){"use strict";var M,k=Object.prototype,q=k.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},f=I.iterator||"@@iterator",d=I.asyncIterator||"@@asyncIterator",P=I.toStringTag||"@@toStringTag";function p(x,b,F){return Object.defineProperty(x,b,{value:F,enumerable:!0,configurable:!0,writable:!0}),x[b]}try{p({},"")}catch(x){p=function(F,z,de){return F[z]=de}}function w(x,b,F,z){var ve=Object.create((b&&b.prototype instanceof Y?b:Y).prototype),me=new V(z||[]);return ve._invoke=function T(x,b,F){var z=Q;return function(ve,me){if(z===y)throw new Error("Generator is already running");if(z===H){if("throw"===ve)throw me;return N()}for(F.method=ve,F.arg=me;;){var De=F.delegate;if(De){var Me=E(De,F);if(Me){if(Me===re)continue;return Me}}if("next"===F.method)F.sent=F._sent=F.arg;else if("throw"===F.method){if(z===Q)throw z=H,F.arg;F.dispatchException(F.arg)}else"return"===F.method&&F.abrupt("return",F.arg);z=y;var Fe=R(x,b,F);if("normal"===Fe.type){if(z=F.done?H:ie,Fe.arg===re)continue;return{value:Fe.arg,done:F.done}}"throw"===Fe.type&&(z=H,F.method="throw",F.arg=Fe.arg)}}}(x,F,me),ve}function R(x,b,F){try{return{type:"normal",arg:x.call(b,F)}}catch(z){return{type:"throw",arg:z}}}U.wrap=w;var Q="suspendedStart",ie="suspendedYield",y="executing",H="completed",re={};function Y(){}function j(){}function D(){}var W={};p(W,f,function(){return this});var K=Object.getPrototypeOf,S=K&&K(K(L([])));S&&S!==k&&q.call(S,f)&&(W=S);var m=D.prototype=Y.prototype=Object.create(W);function C(x){["next","throw","return"].forEach(function(b){p(x,b,function(F){return this._invoke(b,F)})})}function $(x,b){function F(ve,me,De,Me){var Fe=R(x[ve],x,me);if("throw"!==Fe.type){var Le=Fe.arg,Ke=Le.value;return Ke&&"object"==typeof Ke&&q.call(Ke,"__await")?b.resolve(Ke.__await).then(function(Qe){F("next",Qe,De,Me)},function(Qe){F("throw",Qe,De,Me)}):b.resolve(Ke).then(function(Qe){Le.value=Qe,De(Le)},function(Qe){return F("throw",Qe,De,Me)})}Me(Fe.arg)}var z;this._invoke=function de(ve,me){function De(){return new b(function(Me,Fe){F(ve,me,Me,Fe)})}return z=z?z.then(De,De):De()}}function E(x,b){var F=x.iterator[b.method];if(F===M){if(b.delegate=null,"throw"===b.method){if(x.iterator.return&&(b.method="return",b.arg=M,E(x,b),"throw"===b.method))return re;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return re}var z=R(F,x.iterator,b.arg);if("throw"===z.type)return b.method="throw",b.arg=z.arg,b.delegate=null,re;var de=z.arg;return de?de.done?(b[x.resultName]=de.value,b.next=x.nextLoc,"return"!==b.method&&(b.method="next",b.arg=M),b.delegate=null,re):de:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,re)}function G(x){var b={tryLoc:x[0]};1 in x&&(b.catchLoc=x[1]),2 in x&&(b.finallyLoc=x[2],b.afterLoc=x[3]),this.tryEntries.push(b)}function g(x){var b=x.completion||{};b.type="normal",delete b.arg,x.completion=b}function V(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(G,this),this.reset(!0)}function L(x){if(x){var b=x[f];if(b)return b.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var F=-1,z=function de(){for(;++F=0;--de){var ve=this.tryEntries[de],me=ve.completion;if("root"===ve.tryLoc)return z("end");if(ve.tryLoc<=this.prev){var De=q.call(ve,"catchLoc"),Me=q.call(ve,"finallyLoc");if(De&&Me){if(this.prev=0;--z){var de=this.tryEntries[z];if(de.tryLoc<=this.prev&&q.call(de,"finallyLoc")&&this.prev=0;--F){var z=this.tryEntries[F];if(z.finallyLoc===b)return this.complete(z.completion,z.afterLoc),g(z),re}},catch:function(b){for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F];if(z.tryLoc===b){var de=z.completion;if("throw"===de.type){var ve=de.arg;g(z)}return ve}}throw new Error("illegal catch attempt")},delegateYield:function(b,F,z){return this.delegate={iterator:L(b),resultName:F,nextLoc:z},"next"===this.method&&(this.arg=M),re}},U}(be.exports);try{regeneratorRuntime=X}catch(U){"object"==typeof globalThis?globalThis.regeneratorRuntime=X:Function("r","regeneratorRuntime = r")(X)}},1464:function(be,X,U){"use strict";U.r(X),U.d(X,{NIL:function(){return lt},parse:function(){return D},stringify:function(){return R},v1:function(){return Y},v3:function(){return ve},v4:function(){return De},v5:function(){return se},validate:function(){return d},version:function(){return pt}});var k,q=new Uint8Array(16);function M(){if(!k&&!(k="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(q)}for(var I=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,d=function f(ae){return"string"==typeof ae&&I.test(ae)},P=[],p=0;p<256;++p)P.push((p+256).toString(16).substr(1));var Q,ie,R=function w(ae){var fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,oe=(P[ae[fe+0]]+P[ae[fe+1]]+P[ae[fe+2]]+P[ae[fe+3]]+"-"+P[ae[fe+4]]+P[ae[fe+5]]+"-"+P[ae[fe+6]]+P[ae[fe+7]]+"-"+P[ae[fe+8]]+P[ae[fe+9]]+"-"+P[ae[fe+10]]+P[ae[fe+11]]+P[ae[fe+12]]+P[ae[fe+13]]+P[ae[fe+14]]+P[ae[fe+15]]).toLowerCase();if(!d(oe))throw TypeError("Stringified UUID is invalid");return oe},y=0,H=0,Y=function re(ae,fe,oe){var ce=fe&&oe||0,ne=fe||new Array(16),he=(ae=ae||{}).node||Q,Ce=void 0!==ae.clockseq?ae.clockseq:ie;if(null==he||null==Ce){var Ae=ae.random||(ae.rng||M)();null==he&&(he=Q=[1|Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5]]),null==Ce&&(Ce=ie=16383&(Ae[6]<<8|Ae[7]))}var Mt=void 0!==ae.msecs?ae.msecs:Date.now(),gn=void 0!==ae.nsecs?ae.nsecs:H+1,en=Mt-y+(gn-H)/1e4;if(en<0&&void 0===ae.clockseq&&(Ce=Ce+1&16383),(en<0||Mt>y)&&void 0===ae.nsecs&&(gn=0),gn>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");y=Mt,H=gn,ie=Ce;var Nr=(1e4*(268435455&(Mt+=122192928e5))+gn)%4294967296;ne[ce++]=Nr>>>24&255,ne[ce++]=Nr>>>16&255,ne[ce++]=Nr>>>8&255,ne[ce++]=255&Nr;var Rn=Mt/4294967296*1e4&268435455;ne[ce++]=Rn>>>8&255,ne[ce++]=255&Rn,ne[ce++]=Rn>>>24&15|16,ne[ce++]=Rn>>>16&255,ne[ce++]=Ce>>>8|128,ne[ce++]=255&Ce;for(var ct=0;ct<6;++ct)ne[ce+ct]=he[ct];return fe||R(ne)},D=function j(ae){if(!d(ae))throw TypeError("Invalid UUID");var fe,oe=new Uint8Array(16);return oe[0]=(fe=parseInt(ae.slice(0,8),16))>>>24,oe[1]=fe>>>16&255,oe[2]=fe>>>8&255,oe[3]=255&fe,oe[4]=(fe=parseInt(ae.slice(9,13),16))>>>8,oe[5]=255&fe,oe[6]=(fe=parseInt(ae.slice(14,18),16))>>>8,oe[7]=255&fe,oe[8]=(fe=parseInt(ae.slice(19,23),16))>>>8,oe[9]=255&fe,oe[10]=(fe=parseInt(ae.slice(24,36),16))/1099511627776&255,oe[11]=fe/4294967296&255,oe[12]=fe>>>24&255,oe[13]=fe>>>16&255,oe[14]=fe>>>8&255,oe[15]=255&fe,oe};function m(ae,fe,oe){function ce(ne,he,Ce,Ae){if("string"==typeof ne&&(ne=function W(ae){ae=unescape(encodeURIComponent(ae));for(var fe=[],oe=0;oe>>9<<4)+1}function g(ae,fe){var oe=(65535&ae)+(65535&fe);return(ae>>16)+(fe>>16)+(oe>>16)<<16|65535&oe}function L(ae,fe,oe,ce,ne,he){return g(function V(ae,fe){return ae<>>32-fe}(g(g(fe,ae),g(ce,he)),ne),oe)}function N(ae,fe,oe,ce,ne,he,Ce){return L(fe&oe|~fe&ce,ae,fe,ne,he,Ce)}function x(ae,fe,oe,ce,ne,he,Ce){return L(fe&ce|oe&~ce,ae,fe,ne,he,Ce)}function b(ae,fe,oe,ce,ne,he,Ce){return L(fe^oe^ce,ae,fe,ne,he,Ce)}function F(ae,fe,oe,ce,ne,he,Ce){return L(oe^(fe|~ce),ae,fe,ne,he,Ce)}var ve=m("v3",48,function C(ae){if("string"==typeof ae){var fe=unescape(encodeURIComponent(ae));ae=new Uint8Array(fe.length);for(var oe=0;oe>5]>>>ne%32&255,Ce=parseInt(ce.charAt(he>>>4&15)+ce.charAt(15&he),16);fe.push(Ce)}return fe}(function E(ae,fe){ae[fe>>5]|=128<>5]|=(255&ae[ce/8])<>>32-fe}var se=m("v5",80,function Le(ae){var fe=[1518500249,1859775393,2400959708,3395469782],oe=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof ae){var ce=unescape(encodeURIComponent(ae));ae=[];for(var ne=0;ne>>0;On=Pe,Pe=wt,wt=Fe(un,30)>>>0,un=sn,sn=zt}oe[0]=oe[0]+sn>>>0,oe[1]=oe[1]+un>>>0,oe[2]=oe[2]+wt>>>0,oe[3]=oe[3]+Pe>>>0,oe[4]=oe[4]+On>>>0}return[oe[0]>>24&255,oe[0]>>16&255,oe[0]>>8&255,255&oe[0],oe[1]>>24&255,oe[1]>>16&255,oe[1]>>8&255,255&oe[1],oe[2]>>24&255,oe[2]>>16&255,oe[2]>>8&255,255&oe[2],oe[3]>>24&255,oe[3]>>16&255,oe[3]>>8&255,255&oe[3],oe[4]>>24&255,oe[4]>>16&255,oe[4]>>8&255,255&oe[4]]}),lt="00000000-0000-0000-0000-000000000000",pt=function Ve(ae){if(!d(ae))throw TypeError("Invalid UUID");return parseInt(ae.substr(14,1),16)}},2069:function(be){function X(){}be.exports=X,X.mixin=function(U){var k=U.prototype||U;k.isWildEmitter=!0,k.on=function(q,M,I){this.callbacks=this.callbacks||{};var f=3===arguments.length,d=f?arguments[1]:void 0,P=f?arguments[2]:arguments[1];return P._groupName=d,(this.callbacks[q]=this.callbacks[q]||[]).push(P),this},k.once=function(q,M,I){var f=this,d=3===arguments.length,P=d?arguments[1]:void 0,p=d?arguments[2]:arguments[1];function w(){f.off(q,w),p.apply(this,arguments)}return this.on(q,P,w),this},k.releaseGroup=function(q){var M,I,f,d;for(M in this.callbacks=this.callbacks||{},this.callbacks)for(I=0,f=(d=this.callbacks[M]).length;I