openvidu-livekit-tutorials/openvidu-webcomponent/web/openvidu-webcomponent-2.26.0.js
jenkinsopenvidu da5c7af242 Release
2023-03-16 15:18:13 +00:00

3 lines
1.5 MiB

(()=>{"use strict";var e,i={},p={};function n(e){var a=p[e];if(void 0!==a)return a.exports;var r=p[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=i,e=[],n.O=(a,r,c,f)=>{if(!r){var s=1/0;for(t=0;t<e.length;t++){for(var[r,c,f]=e[t],u=!0,l=0;l<r.length;l++)(!1&f||s>=f)&&Object.keys(n.O).every(h=>n.O[h](r[l]))?r.splice(l--,1):(u=!1,f<s&&(s=f));if(u){e.splice(t--,1);var o=c();void 0!==o&&(a=o)}}return a}f=f||0;for(var t=e.length;t>0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,c,f]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};n.O.j=c=>0===e[c];var a=(c,f)=>{var l,o,[t,s,u]=f,v=0;if(t.some(_=>0!==e[_])){for(l in s)n.o(s,l)&&(n.m[l]=s[l]);if(u)var d=u(n)}for(c&&c(f);v<t.length;v++)n.o(e,o=t[v])&&e[o]&&e[o][0](),e[o]=0;return n.O(d)},r=self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
(self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[]).push([[179],{3749:(Ae,P,B)=>{"use strict";function N(t){return"function"==typeof t}function $(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const j=$(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function y(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class b{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(N(i))try{i()}catch(r){n=r instanceof j?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{m(r)}catch(s){n=null!=n?n:[],s instanceof j?n=[...n,...s.errors]:n.push(s)}}if(n)throw new j(n)}}add(n){var e;if(n&&n!==this)if(this.closed)m(n);else{if(n instanceof b){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&y(e,n)}remove(n){const{_finalizers:e}=this;e&&y(e,n),n instanceof b&&n._removeParent(this)}}b.EMPTY=(()=>{const t=new b;return t.closed=!0,t})();const S=b.EMPTY;function _(t){return t instanceof b||t&&"closed"in t&&N(t.remove)&&N(t.add)&&N(t.unsubscribe)}function m(t){N(t)?t():t.unsubscribe()}const D={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},C={setTimeout(t,n,...e){const{delegate:i}=C;return null!=i&&i.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=C;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function q(t){C.setTimeout(()=>{const{onUnhandledError:n}=D;if(!n)throw t;n(t)})}function ee(){}const I=W("C",void 0,void 0);function W(t,n,e){return{kind:t,value:n,error:e}}let E=null;function v(t){if(D.useDeprecatedSynchronousErrorHandling){const n=!E;if(n&&(E={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=E;if(E=null,e)throw i}}else t()}class Z extends b{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,_(n)&&n.add(this)):this.destination=re}static create(n,e,i){return new te(n,e,i)}next(n){this.isStopped?J(function Q(t){return W("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?J(function L(t){return W("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?J(I,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const M=Function.prototype.bind;function p(t,n){return M.call(t,n)}class k{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){T(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){T(i)}else T(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){T(e)}}}class te extends Z{constructor(n,e,i){let o;if(super(),N(n)||!n)o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&D.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&p(n.next,r),error:n.error&&p(n.error,r),complete:n.complete&&p(n.complete,r)}):o=n}this.destination=new k(o)}}function T(t){D.useDeprecatedSynchronousErrorHandling?function F(t){D.useDeprecatedSynchronousErrorHandling&&E&&(E.errorThrown=!0,E.error=t)}(t):q(t)}function J(t,n){const{onStoppedNotification:e}=D;e&&C.setTimeout(()=>e(t,n))}const re={closed:!0,next:ee,error:function R(t){throw t},complete:ee},ae="function"==typeof Symbol&&Symbol.observable||"@@observable";function g(t){return t}function Y(t){return 0===t.length?g:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let x=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function me(t){return t&&t instanceof Z||function K(t){return t&&N(t.next)&&N(t.error)&&N(t.complete)}(t)&&_(t)}(e)?e:new te(e,i,o);return v(()=>{const{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=H(i))((o,r)=>{const s=new te({next:a=>{try{e(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ae](){return this}pipe(...e){return Y(e)(this)}toPromise(e){return new(e=H(e))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return t.create=n=>new t(n),t})();function H(t){var n;return null!==(n=null!=t?t:D.Promise)&&void 0!==n?n:Promise}const le=$(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ce=(()=>{class t extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new De(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new le}next(e){v(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){v(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){v(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?S:(this.currentObservers=null,r.push(e),new b(()=>{this.currentObservers=null,y(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new x;return e.source=this,e}}return t.create=(n,e)=>new De(n,e),t})();class De extends ce{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:S}}function $e(t){return N(null==t?void 0:t.lift)}function Be(t){return n=>{if($e(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ze(t,n,e,i,o){return new ut(t,n,e,i,o)}class ut extends Z{constructor(n,e,i,o,r,s){super(n),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Ue(t,n){return Be((e,i)=>{let o=0;e.subscribe(ze(i,r=>{i.next(t.call(n,r,o++))}))})}var ue=function(t,n){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])})(t,n)};function Yt(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}ue(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var qe=function(){return qe=Object.assign||function(n){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},qe.apply(this,arguments)};function Le(t,n,e,i){return new(e||(e=Promise))(function(r,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(s){s(r)})}(u.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}function ar(t){return this instanceof ar?(this.v=t,this):new ar(t)}function ld(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){i[f]&&(o[f]=function(w){return new Promise(function(z,ne){r.push([f,w,z,ne])>1||a(f,w)})})}function a(f,w){try{!function l(f){f.value instanceof ar?Promise.resolve(f.value.v).then(c,u):d(r[0][2],f)}(i[f](w))}catch(z){d(r[0][3],z)}}function c(f){a("next",f)}function u(f){a("throw",f)}function d(f,w){f(w),r.shift(),r.length&&a(r[0][0],r[0][1])}}function bi(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function We(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(s){return new Promise(function(a,l){!function o(r,s,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},s)}(a,l,(s=t[r](s)).done,s.value)})}}}const Mp=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Py(t){return N(null==t?void 0:t.then)}function ky(t){return N(t[ae])}function Ny(t){return Symbol.asyncIterator&&N(null==t?void 0:t[Symbol.asyncIterator])}function Ly(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Fy=function kP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function By(t){return N(null==t?void 0:t[Fy])}function Vy(t){return ld(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield ar(e.read());if(o)return yield ar(void 0);yield yield ar(i)}}finally{e.releaseLock()}})}function jy(t){return N(null==t?void 0:t.getReader)}function Ki(t){if(t instanceof x)return t;if(null!=t){if(ky(t))return function NP(t){return new x(n=>{const e=t[ae]();if(N(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Mp(t))return function LP(t){return new x(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(Py(t))return function FP(t){return new x(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,q)})}(t);if(Ny(t))return Uy(t);if(By(t))return function BP(t){return new x(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(jy(t))return function VP(t){return Uy(Vy(t))}(t)}throw Ly(t)}function Uy(t){return new x(n=>{(function jP(t,n){var e,i,o,r;return Le(this,void 0,void 0,function*(){try{for(e=bi(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Er(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function li(t,n,e=1/0){return N(n)?li((i,o)=>Ue((r,s)=>n(i,r,o,s))(Ki(t(i,o))),e):("number"==typeof n&&(e=n),Be((i,o)=>function UP(t,n,e,i,o,r,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},w=ne=>c<i?z(ne):l.push(ne),z=ne=>{r&&n.next(ne),c++;let fe=!1;Ki(e(ne,u++)).subscribe(ze(n,he=>{null==o||o(he),r?w(he):n.next(he)},()=>{fe=!0},void 0,()=>{if(fe)try{for(c--;l.length&&c<i;){const he=l.shift();s?Er(n,s,()=>z(he)):z(he)}f()}catch(he){n.error(he)}}))};return t.subscribe(ze(n,w,()=>{d=!0,f()})),()=>{null==a||a()}}(i,o,t,e)))}function Sa(t=1/0){return li(g,t)}const Ho=new x(t=>t.complete());function Hy(t){return t&&N(t.schedule)}function xp(t){return t[t.length-1]}function Gy(t){return N(xp(t))?t.pop():void 0}function nc(t){return Hy(xp(t))?t.pop():void 0}function zy(t,n=0){return Be((e,i)=>{e.subscribe(ze(i,o=>Er(i,t,()=>i.next(o),n),()=>Er(i,t,()=>i.complete(),n),o=>Er(i,t,()=>i.error(o),n)))})}function qy(t,n=0){return Be((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function Wy(t,n){if(!t)throw new Error("Iterable cannot be null");return new x(e=>{Er(e,n,()=>{const i=t[Symbol.asyncIterator]();Er(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Kn(t,n){return n?function QP(t,n){if(null!=t){if(ky(t))return function zP(t,n){return Ki(t).pipe(qy(n),zy(n))}(t,n);if(Mp(t))return function WP(t,n){return new x(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(Py(t))return function qP(t,n){return Ki(t).pipe(qy(n),zy(n))}(t,n);if(Ny(t))return Wy(t,n);if(By(t))return function $P(t,n){return new x(e=>{let i;return Er(e,n,()=>{i=t[Fy](),Er(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(s){return void e.error(s)}r?e.complete():e.next(o)},0,!0)}),()=>N(null==i?void 0:i.return)&&i.return()})}(t,n);if(jy(t))return function YP(t,n){return Wy(Vy(t),n)}(t,n)}throw Ly(t)}(t,n):Ki(t)}function Ni(...t){const n=nc(t),e=function GP(t,n){return"number"==typeof xp(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Ki(i[0]):Sa(e)(Kn(i,n)):Ho}function $y(t={}){const{connector:n=(()=>new ce),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let s,a,l,c=0,u=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=void 0},w=()=>{f(),s=l=void 0,u=d=!1},z=()=>{const ne=s;w(),null==ne||ne.unsubscribe()};return Be((ne,fe)=>{c++,!d&&!u&&f();const he=l=null!=l?l:n();fe.add(()=>{c--,0===c&&!d&&!u&&(a=Op(z,o))}),he.subscribe(fe),!s&&c>0&&(s=new te({next:_e=>he.next(_e),error:_e=>{d=!0,f(),a=Op(w,e,_e),he.error(_e)},complete:()=>{u=!0,f(),a=Op(w,i),he.complete()}}),Ki(ne).subscribe(s))})(r)}}function Op(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new te({next:()=>{i.unsubscribe(),t()}});return n(...e).subscribe(i)}function fn(t){for(let n in t)if(t[n]===fn)return n;throw Error("Could not find renamed property on target object.")}function Ip(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function pn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(pn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Rp(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const KP=fn({__forward_ref__:fn});function Kt(t){return t.__forward_ref__=Kt,t.toString=function(){return pn(this())},t}function bt(t){return Pp(t)?t():t}function Pp(t){return"function"==typeof t&&t.hasOwnProperty(KP)&&t.__forward_ref__===Kt}class Te extends Error{constructor(n,e){super(function cd(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function At(t){return"string"==typeof t?t:null==t?"":String(t)}function ud(t,n){throw new Te(-201,!1)}function ro(t,n){null==t&&function on(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Ce(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function rt(t){return{providers:t.providers||[],imports:t.imports||[]}}function dd(t){return Yy(t,hd)||Yy(t,Ky)}function Yy(t,n){return t.hasOwnProperty(n)?t[n]:null}function Qy(t){return t&&(t.hasOwnProperty(kp)||t.hasOwnProperty(rk))?t[kp]:null}const hd=fn({\u0275prov:fn}),kp=fn({\u0275inj:fn}),Ky=fn({ngInjectableDef:fn}),rk=fn({ngInjectorDef:fn});var gt=(()=>((gt=gt||{})[gt.Default=0]="Default",gt[gt.Host=1]="Host",gt[gt.Self=2]="Self",gt[gt.SkipSelf=4]="SkipSelf",gt[gt.Optional=8]="Optional",gt))();let Np;function Eo(t){const n=Np;return Np=t,n}function Zy(t,n,e){const i=dd(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&gt.Optional?null:void 0!==n?n:void ud(pn(t))}function Zr(t){return{toString:t}.toString()}var Go=(()=>((Go=Go||{})[Go.OnPush=0]="OnPush",Go[Go.Default=1]="Default",Go))(),zo=(()=>{return(t=zo||(zo={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",zo;var t})();const mn=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),Ea={},nn=[],fd=fn({\u0275cmp:fn}),Lp=fn({\u0275dir:fn}),Fp=fn({\u0275pipe:fn}),Xy=fn({\u0275mod:fn}),wr=fn({\u0275fac:fn}),ic=fn({__NG_ELEMENT_ID__:fn});let ak=0;function et(t){return Zr(()=>{const e=!0===t.standalone,i={},o={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Go.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||zo.Emulated,id:"c"+ak++,styles:t.styles||nn,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.dependencies,s=t.features;return o.inputs=tC(t.inputs,i),o.outputs=tC(t.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=r?()=>("function"==typeof r?r():r).map(Jy).filter(eC):null,o.pipeDefs=r?()=>("function"==typeof r?r():r).map(Fi).filter(eC):null,o})}function Jy(t){return an(t)||Li(t)}function eC(t){return null!==t}function st(t){return Zr(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function tC(t,n){if(null==t)return Ea;const e={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,n&&(n[o]=r)}return e}const ge=et;function zn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function an(t){return t[fd]||null}function Li(t){return t[Lp]||null}function Fi(t){return t[Fp]||null}function so(t,n){const e=t[Xy]||null;if(!e&&!0===n)throw new Error(`Type ${pn(t)} does not have '\u0275mod' property.`);return e}function Zi(t){return Array.isArray(t)&&"object"==typeof t[1]}function Wo(t){return Array.isArray(t)&&!0===t[1]}function jp(t){return 0!=(8&t.flags)}function vd(t){return 2==(2&t.flags)}function _d(t){return 1==(1&t.flags)}function $o(t){return null!==t.template}function fk(t){return 0!=(256&t[2])}function ks(t,n){return t.hasOwnProperty(wr)?t[wr]:null}class oC{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function qn(){return rC}function rC(t){return t.type.prototype.ngOnChanges&&(t.setInput=vk),mk}function mk(){const t=aC(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===Ea)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function vk(t,n,e,i){const o=aC(t)||function _k(t,n){return t[sC]=n}(t,{previous:Ea,current:null}),r=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[e],l=s[a];r[a]=new oC(l&&l.currentValue,n,s===Ea),t[i]=n}qn.ngInherit=!0;const sC="__ngSimpleChanges__";function aC(t){return t[sC]||null}function Zn(t){for(;Array.isArray(t);)t=t[0];return t}function bd(t,n){return Zn(n[t])}function Do(t,n){return Zn(n[t.index])}function qp(t,n){return t.data[n]}function Ma(t,n){return t[n]}function lo(t,n){const e=n[t];return Zi(e)?e:e[0]}function yd(t){return 64==(64&t[2])}function Xr(t,n){return null==n?null:t[n]}function lC(t){t[18]=0}function Wp(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const St={lFrame:_C(null),bindingsEnabled:!0};function uC(){return St.bindingsEnabled}function Fe(){return St.lFrame.lView}function Qt(){return St.lFrame.tView}function Ie(t){return St.lFrame.contextLView=t,t[8]}function Re(t){return St.lFrame.contextLView=null,t}function ci(){let t=dC();for(;null!==t&&64===t.type;)t=t.parent;return t}function dC(){return St.lFrame.currentTNode}function lr(t,n){const e=St.lFrame;e.currentTNode=t,e.isParent=n}function $p(){return St.lFrame.isParent}function Yp(){St.lFrame.isParent=!1}function Bi(){const t=St.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function xa(){return St.lFrame.bindingIndex++}function Tr(t){const n=St.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function Pk(t,n){const e=St.lFrame;e.bindingIndex=e.bindingRootIndex=t,Qp(n)}function Qp(t){St.lFrame.currentDirectiveIndex=t}function Kp(t){const n=St.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function gC(){return St.lFrame.currentQueryIndex}function Zp(t){St.lFrame.currentQueryIndex=t}function Nk(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function mC(t,n,e){if(e&gt.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&gt.Host||(o=Nk(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;n=o,t=r}const i=St.lFrame=vC();return i.currentTNode=n,i.lView=t,!0}function Xp(t){const n=vC(),e=t[1];St.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function vC(){const t=St.lFrame,n=null===t?null:t.child;return null===n?_C(t):n}function _C(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function bC(){const t=St.lFrame;return St.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const yC=bC;function Jp(){const t=bC();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Vi(){return St.lFrame.selectedIndex}function Jr(t){St.lFrame.selectedIndex=t}function Fn(){const t=St.lFrame;return qp(t.tView,t.selectedIndex)}function cc(){St.lFrame.currentNamespace="svg"}function Cd(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=r;s&&(t.contentHooks||(t.contentHooks=[])).push(-e,s),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function Sd(t,n,e){CC(t,n,3,e)}function Ed(t,n,e,i){(3&t[2])===e&&CC(t,n,e,i)}function eg(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function CC(t,n,e,i){const r=null!=i?i:-1,s=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(Gk(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function Gk(t,n,e,i){const o=e[i]<0,r=e[i+1],a=t[o?-e[i]:e[i]];if(o){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class uc{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ad(t,n,e){let i=0;for(;i<e.length;){const o=e[i];if("number"==typeof o){if(0!==o)break;i++;const r=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,r)}else{const r=o,s=e[++i];EC(r)?t.setProperty(n,r,s):t.setAttribute(n,r,s),i++}}return i}function SC(t){return 3===t||4===t||6===t}function EC(t){return 64===t.charCodeAt(0)}function wd(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const o=n[i];"number"==typeof o?e=o:0===e||AC(t,e,o,null,-1===e||2===e?n[++i]:null)}}return t}function AC(t,n,e,i,o){let r=0,s=t.length;if(-1===n)s=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==o&&(t[r+1]=o));if(i===t[r+1])return void(t[r+2]=o)}r++,null!==i&&r++,null!==o&&r++}-1!==s&&(t.splice(s,0,n),r=s+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==o&&t.splice(r++,0,o)}function wC(t){return-1!==t}function Oa(t){return 32767&t}function Ia(t,n){let e=function Yk(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let ng=!0;function Dd(t){const n=ng;return ng=t,n}let Qk=0;const cr={};function hc(t,n){const e=og(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,ig(i.data,t),ig(n,null),ig(i.blueprint,null));const o=Td(t,n),r=t.injectorIndex;if(wC(o)){const s=Oa(o),a=Ia(o,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[s+c]|l[s+c]}return n[r+8]=o,r}function ig(t,n){t.push(0,0,0,0,0,0,0,0,n)}function og(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Td(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=kC(o),null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Md(t,n,e){!function Kk(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ic)&&(i=e[ic]),null==i&&(i=e[ic]=Qk++);const o=255&i;n.data[t+(o>>5)]|=1<<o}(t,n,e)}function MC(t,n,e){if(e&gt.Optional||void 0!==t)return t;ud()}function xC(t,n,e,i){if(e&gt.Optional&&void 0===i&&(i=null),0==(e&(gt.Self|gt.Host))){const o=t[9],r=Eo(void 0);try{return o?o.get(n,i,e&gt.Optional):Zy(n,i,e&gt.Optional)}finally{Eo(r)}}return MC(i,0,e)}function OC(t,n,e,i=gt.Default,o){if(null!==t){if(1024&n[2]){const s=function tN(t,n,e,i,o){let r=t,s=n;for(;null!==r&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=IC(r,s,e,i|gt.Self,cr);if(a!==cr)return a;let l=r.parent;if(!l){const c=s[21];if(c){const u=c.get(e,cr,i);if(u!==cr)return u}l=kC(s),s=s[15]}r=l}return o}(t,n,e,i,cr);if(s!==cr)return s}const r=IC(t,n,e,i,cr);if(r!==cr)return r}return xC(n,e,i,o)}function IC(t,n,e,i,o){const r=function Jk(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(ic)?t[ic]:void 0;return"number"==typeof n?n>=0?255&n:eN:n}(e);if("function"==typeof r){if(!mC(n,t,i))return i&gt.Host?MC(o,0,i):xC(n,e,i,o);try{const s=r(i);if(null!=s||i&gt.Optional)return s;ud()}finally{yC()}}else if("number"==typeof r){let s=null,a=og(t,n),l=-1,c=i&gt.Host?n[16][6]:null;for((-1===a||i&gt.SkipSelf)&&(l=-1===a?Td(t,n):n[a+8],-1!==l&&PC(i,!1)?(s=n[1],a=Oa(l),n=Ia(l,n)):a=-1);-1!==a;){const u=n[1];if(RC(r,a,u.data)){const d=Xk(a,n,e,s,i,c);if(d!==cr)return d}l=n[a+8],-1!==l&&PC(i,n[1].data[a+8]===c)&&RC(r,a,n)?(s=u,a=Oa(l),n=Ia(l,n)):a=-1}}return o}function Xk(t,n,e,i,o,r){const s=n[1],a=s.data[t+8],u=xd(a,s,e,null==i?vd(a)&&ng:i!=s&&0!=(3&a.type),o&gt.Host&&r===a);return null!==u?fc(n,s,u,a):cr}function xd(t,n,e,i,o){const r=t.providerIndexes,s=n.data,a=1048575&r,l=t.directiveStart,u=r>>20,f=o?a+u:t.directiveEnd;for(let w=i?a:a+u;w<f;w++){const z=s[w];if(w<l&&e===z||w>=l&&z.type===e)return w}if(o){const w=s[l];if(w&&$o(w)&&w.type===e)return l}return null}function fc(t,n,e,i){let o=t[e];const r=n.data;if(function zk(t){return t instanceof uc}(o)){const s=o;s.resolving&&function ZP(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Te(-200,`Circular dependency in DI detected for ${t}${e}`)}(function tn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():At(t)}(r[e]));const a=Dd(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Eo(s.injectImpl):null;mC(t,i,gt.Default);try{o=t[e]=s.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Hk(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const s=rC(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,o),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&Eo(l),Dd(a),s.resolving=!1,yC()}}return o}function RC(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function PC(t,n){return!(t&gt.Self||t&gt.Host&&n)}class Ra{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return OC(this._tNode,this._lView,n,i,e)}}function eN(){return new Ra(ci(),Fe())}function tt(t){return Zr(()=>{const n=t.prototype.constructor,e=n[wr]||rg(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[wr]||rg(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function rg(t){return Pp(t)?()=>{const n=rg(bt(t));return n&&n()}:ks(t)}function kC(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}function Yo(t){return function Zk(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o<i;){const r=e[o];if(SC(r))break;if(0===r)o+=2;else if("number"==typeof r)for(o++;o<i&&"string"==typeof e[o];)o++;else{if(r===n)return e[o+1];o+=2}}}return null}(ci(),t)}const ka="__parameters__";function La(t,n,e){return Zr(()=>{const i=function sg(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(ka)?l[ka]:Object.defineProperty(l,ka,{value:[]})[ka];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class Pe{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Ce({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function co(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),co(i,n)):n!==t&&n.push(i)}return n}function Mr(t,n){t.forEach(e=>Array.isArray(e)?Mr(e,n):n(e))}function LC(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Od(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function mc(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function uo(t,n,e){let i=Fa(t,n);return i>=0?t[1|i]=e:(i=~i,function rN(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function lg(t,n){const e=Fa(t,n);if(e>=0)return t[1|e]}function Fa(t,n){return function VC(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),s=t[r<<e];if(n===s)return r<<e;s>n?o=r:i=r+1}return~(o<<e)}(t,n,1)}const vc={},ug="__NG_DI_FLAG__",Rd="ngTempTokenPath",fN=/\n/gm,jC="__source";let _c;function Ba(t){const n=_c;return _c=t,n}function gN(t,n=gt.Default){if(void 0===_c)throw new Te(-203,!1);return null===_c?Zy(t,void 0,n):_c.get(t,n&gt.Optional?null:void 0,n)}function oe(t,n=gt.Default){return(function sk(){return Np}()||gN)(bt(t),n)}function un(t,n=gt.Default){return"number"!=typeof n&&(n=0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)),oe(t,n)}function dg(t){const n=[];for(let e=0;e<t.length;e++){const i=bt(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Te(900,!1);let o,r=gt.Default;for(let s=0;s<i.length;s++){const a=i[s],l=mN(a);"number"==typeof l?-1===l?o=a.token:r|=l:o=a}n.push(oe(o,r))}else n.push(oe(i))}return n}function bc(t,n){return t[ug]=n,t.prototype[ug]=n,t}function mN(t){return t[ug]}const ts=bc(La("Optional"),8),Va=bc(La("SkipSelf"),4);let fg,Nd,Ld;function Ua(t){var n;return(null===(n=function pg(){if(void 0===Nd&&(Nd=null,mn.trustedTypes))try{Nd=mn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Nd}())||void 0===n?void 0:n.createHTML(t))||t}function KC(t){var n;return(null===(n=function gg(){if(void 0===Ld&&(Ld=null,mn.trustedTypes))try{Ld=mn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Ld}())||void 0===n?void 0:n.createHTML(t))||t}class Ns{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class IN extends Ns{getTypeName(){return"HTML"}}class RN extends Ns{getTypeName(){return"Style"}}class PN extends Ns{getTypeName(){return"Script"}}class kN extends Ns{getTypeName(){return"URL"}}class NN extends Ns{getTypeName(){return"ResourceURL"}}function ho(t){return t instanceof Ns?t.changingThisBreaksApplicationSecurity:t}function ur(t,n){const e=function LN(t){return t instanceof Ns&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}class HN{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Ua(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class GN{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ua(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ua(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let o=e.length-1;0<o;o--){const s=e.item(o).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&n.removeAttribute(s)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const qN=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Fd(t){return(t=String(t)).match(qN)?t:"unsafe:"+t}function xr(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Sc(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const eS=xr("area,br,col,hr,img,wbr"),tS=xr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nS=xr("rp,rt"),mg=Sc(eS,Sc(tS,xr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Sc(nS,xr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Sc(nS,tS)),vg=xr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),iS=Sc(vg,xr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),xr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),WN=xr("script,style,template");class $N{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!mg.hasOwnProperty(e))return this.sanitizedSomething=!0,!WN.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o<i.length;o++){const r=i.item(o),s=r.name,a=s.toLowerCase();if(!iS.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;vg[a]&&(l=Fd(l)),this.buf.push(" ",s,'="',oS(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();mg.hasOwnProperty(e)&&!eS.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(oS(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const YN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,QN=/([^\#-~ |!])/g;function oS(t){return t.replace(/&/g,"&amp;").replace(YN,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(QN,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Bd;function rS(t,n){let e=null;try{Bd=Bd||function JC(t){const n=new GN(t);return function zN(){try{return!!(new window.DOMParser).parseFromString(Ua(""),"text/html")}catch(t){return!1}}()?new HN(n):n}(t);let i=n?String(n):"";e=Bd.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Bd.getInertBodyElement(i)}while(i!==r);return Ua((new $N).sanitizeChildren(_g(e)||e))}finally{if(e){const i=_g(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function _g(t){return"content"in t&&function KN(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Jt=(()=>((Jt=Jt||{})[Jt.NONE=0]="NONE",Jt[Jt.HTML=1]="HTML",Jt[Jt.STYLE=2]="STYLE",Jt[Jt.SCRIPT=3]="SCRIPT",Jt[Jt.URL=4]="URL",Jt[Jt.RESOURCE_URL=5]="RESOURCE_URL",Jt))();function Vd(t){const n=Ec();return n?KC(n.sanitize(Jt.HTML,t)||""):ur(t,"HTML")?KC(ho(t)):rS(function QC(){return void 0!==fg?fg:"undefined"!=typeof document?document:void 0}(),At(t))}function Ha(t){const n=Ec();return n?n.sanitize(Jt.URL,t)||"":ur(t,"URL")?ho(t):Fd(At(t))}function Ec(){const t=Fe();return t&&t[12]}const bg=new Pe("ENVIRONMENT_INITIALIZER"),aS=new Pe("INJECTOR",-1),lS=new Pe("INJECTOR_DEF_TYPES");class cS{get(n,e=vc){if(e===vc){const i=new Error(`NullInjectorError: No provider for ${pn(n)}!`);throw i.name="NullInjectorError",i}return e}}function iL(...t){return{\u0275providers:uS(0,t)}}function uS(t,...n){const e=[],i=new Set;let o;return Mr(n,r=>{const s=r;yg(s,e,[],i)&&(o||(o=[]),o.push(s))}),void 0!==o&&dS(o,e),e}function dS(t,n){for(let e=0;e<t.length;e++){const{providers:o}=t[e];Mr(o,r=>{n.push(r)})}}function yg(t,n,e,i){if(!(t=bt(t)))return!1;let o=null,r=Qy(t);const s=!r&&an(t);if(r||s){if(s&&!s.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Qy(l),!r)return!1;o=l}const a=i.has(o);if(s){if(a)return!1;if(i.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)yg(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let c;i.add(o);try{Mr(r.imports,u=>{yg(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&dS(c,n)}if(!a){const c=ks(o)||(()=>new o);n.push({provide:o,useFactory:c,deps:nn},{provide:lS,useValue:o,multi:!0},{provide:bg,useValue:()=>oe(o),multi:!0})}const l=r.providers;null==l||a||Mr(l,u=>{n.push(u)})}}return o!==t&&void 0!==t.providers}const oL=fn({provide:String,useValue:fn});function Cg(t){return null!==t&&"object"==typeof t&&oL in t}function Ls(t){return"function"==typeof t}const Sg=new Pe("Set Injector scope."),jd={},sL={};let Eg;function Ud(){return void 0===Eg&&(Eg=new cS),Eg}class ns{}class pS extends ns{constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wg(n,s=>this.processProvider(s)),this.records.set(aS,Ga(void 0,this)),o.has("environment")&&this.records.set(ns,Ga(void 0,this));const r=this.records.get(Sg);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(lS.multi,nn,gt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Ba(this),i=Eo(void 0);try{return n()}finally{Ba(e),Eo(i)}}get(n,e=vc,i=gt.Default){this.assertNotDestroyed();const o=Ba(this),r=Eo(void 0);try{if(!(i&gt.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function dL(t){return"function"==typeof t||"object"==typeof t&&t instanceof Pe}(n)&&dd(n);a=l&&this.injectableDefInScope(l)?Ga(Ag(n),jd):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&gt.Self?Ud():this.parent).get(n,e=i&gt.Optional&&e===vc?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Rd]=s[Rd]||[]).unshift(pn(n)),o)throw s;return function vN(t,n,e,i){const o=t[Rd];throw n[jC]&&o.unshift(n[jC]),t.message=function _N(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=pn(n);if(Array.isArray(n))o=n.map(pn).join(" -> ");else if("object"==typeof n){let r=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):pn(a)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(fN,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Rd]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Eo(r),Ba(o)}}resolveInjectorInitializers(){const n=Ba(this),e=Eo(void 0);try{const i=this.get(bg.multi,nn,gt.Self);for(const o of i)o()}finally{Ba(n),Eo(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(pn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Te(205,!1)}processProvider(n){let e=Ls(n=bt(n))?n:bt(n&&n.provide);const i=function lL(t){return Cg(t)?Ga(void 0,t.useValue):Ga(gS(t),jd)}(n);if(Ls(n)||!0!==n.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=Ga(void 0,jd,!0),o.factory=()=>dg(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===jd&&(e.value=sL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function uL(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=bt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Ag(t){const n=dd(t),e=null!==n?n.factory:ks(t);if(null!==e)return e;if(t instanceof Pe)throw new Te(204,!1);if(t instanceof Function)return function aL(t){const n=t.length;if(n>0)throw mc(n,"?"),new Te(204,!1);const e=function ik(t){const n=t&&(t[hd]||t[Ky]);if(n){const e=function ok(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Te(204,!1)}function gS(t,n,e){let i;if(Ls(t)){const o=bt(t);return ks(o)||Ag(o)}if(Cg(t))i=()=>bt(t.useValue);else if(function fS(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...dg(t.deps||[]));else if(function hS(t){return!(!t||!t.useExisting)}(t))i=()=>oe(bt(t.useExisting));else{const o=bt(t&&(t.useClass||t.provide));if(!function cL(t){return!!t.deps}(t))return ks(o)||Ag(o);i=()=>new o(...dg(t.deps))}return i}function Ga(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function hL(t){return!!t.\u0275providers}function wg(t,n){for(const e of t)Array.isArray(e)?wg(e,n):hL(e)?wg(e.\u0275providers,n):n(e)}class mS{}class gL{resolveComponentFactory(n){throw function pL(t){const n=Error(`No component factory found for ${pn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Or=(()=>{class t{}return t.NULL=new gL,t})();function mL(){return za(ci(),Fe())}function za(t,n){return new ke(Do(t,n))}let ke=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=mL,t})();function vL(t){return t instanceof ke?t.nativeElement:t}class Ac{}let To=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function _L(){const t=Fe(),e=lo(ci().index,t);return(Zi(e)?e:t)[11]}(),t})(),bL=(()=>{class t{}return t.\u0275prov=Ce({token:t,providedIn:"root",factory:()=>null}),t})();class Ir{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const yL=new Ir("14.2.10"),Dg={};function Ig(t){return t.ngOriginalError}class Rr{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Ig(n);for(;e&&Ig(e);)e=Ig(e);return e||null}}const Rg=new Map;let RL=0;const kg="__ngContext__";function xi(t,n){Zi(n)?(t[kg]=n[20],function kL(t){Rg.set(t[20],t)}(n)):t[kg]=n}function Dc(t){return t.ownerDocument.defaultView}function xS(t){return t.ownerDocument}function Pr(t){return t instanceof Function?t():t}var Xi=(()=>((Xi=Xi||{})[Xi.Important=1]="Important",Xi[Xi.DashCase=2]="DashCase",Xi))();function Lg(t,n){return undefined(t,n)}function Tc(t){const n=t[3];return Wo(n)?n[3]:n}function Fg(t){return RS(t[13])}function Bg(t){return RS(t[4])}function RS(t){for(;null!==t&&!Wo(t);)t=t[4];return t}function Wa(t,n,e,i,o){if(null!=i){let r,s=!1;Wo(i)?r=i:Zi(i)&&(s=!0,i=i[0]);const a=Zn(i);0===t&&null!==e?null==o?BS(n,e,a):Fs(n,e,a,o||null,!0):1===t&&null!==e?Fs(n,e,a,o||null,!0):2===t?function qS(t,n,e){const i=Hd(t,n);i&&function rF(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=r&&function lF(t,n,e,i,o){const r=e[7];r!==Zn(e)&&Wa(n,t,i,r,o);for(let a=10;a<e.length;a++){const l=e[a];Mc(l[1],l,t,n,i,r)}}(n,t,r,e,o)}}function jg(t,n,e){return t.createElement(n,e)}function kS(t,n){const e=t[9],i=e.indexOf(n),o=n[3];512&n[2]&&(n[2]&=-513,Wp(o,-1)),e.splice(i,1)}function Ug(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const o=i[17];null!==o&&o!==t&&kS(o,i),n>0&&(t[e-1][4]=i[4]);const r=Od(t,10+n);!function ZL(t,n){Mc(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function NS(t,n){if(!(128&n[2])){const e=n[11];e.destroyNode&&Mc(t,n,e,3,null,null),function eF(t){let n=t[13];if(!n)return Hg(t[1],t);for(;n;){let e=null;if(Zi(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Zi(n)&&Hg(n[1],n),n=n[3];null===n&&(n=t),Zi(n)&&Hg(n[1],n),e=n&&n[4]}n=e}}(n)}}function Hg(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function oF(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const o=n[e[i]];if(!(o instanceof uc)){const r=e[i+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){const a=o[r[s]],l=r[s+1];try{l.call(a)}finally{}}else try{r.call(o)}finally{}}}}(t,n),function iF(t,n){const e=t.cleanup,i=n[7];let o=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const s=e[r+1],a="function"==typeof s?s(n):Zn(n[s]),l=i[o=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[o=c]():i[o=-c].unsubscribe(),r+=2}else{const s=i[o=e[r+1]];e[r].call(s)}if(null!==i){for(let r=o+1;r<i.length;r++)(0,i[r])();n[7]=null}}(t,n),1===n[1].type&&n[11].destroy();const e=n[17];if(null!==e&&Wo(n[3])){e!==n[3]&&kS(e,n);const i=n[19];null!==i&&i.detachView(t)}!function NL(t){Rg.delete(t[20])}(n)}}function LS(t,n,e){return function FS(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const o=t.data[i.directiveStart].encapsulation;if(o===zo.None||o===zo.Emulated)return null}return Do(i,e)}(t,n.parent,e)}function Fs(t,n,e,i,o){t.insertBefore(n,e,i,o)}function BS(t,n,e){t.appendChild(n,e)}function VS(t,n,e,i,o){null!==i?Fs(t,n,e,i,o):BS(t,n,e)}function Hd(t,n){return t.parentNode(n)}function jS(t,n,e){return HS(t,n,e)}let HS=function US(t,n,e){return 40&t.type?Do(t,e):null};function Gd(t,n,e,i){const o=LS(t,i,n),r=n[11],a=jS(i.parent||n[6],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;l<e.length;l++)VS(r,o,e[l],a,!1);else VS(r,o,e,a,!1)}function zd(t,n){if(null!==n){const e=n.type;if(3&e)return Do(n,t);if(4&e)return zg(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return zd(t,i);{const o=t[n.index];return Wo(o)?zg(-1,o):Zn(o)}}if(32&e)return Lg(n,t)()||Zn(t[n.index]);{const i=zS(t,n);return null!==i?Array.isArray(i)?i[0]:zd(Tc(t[16]),i):zd(t,n.next)}}return null}function zS(t,n){return null!==n?t[16][6].projection[n.projection]:null}function zg(t,n){const e=10+t+1;if(e<n.length){const i=n[e],o=i[1].firstChild;if(null!==o)return zd(i,o)}return n[7]}function qg(t,n,e,i,o,r,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===n&&(a&&xi(Zn(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)qg(t,n,e.child,i,o,r,!1),Wa(n,t,o,a,r);else if(32&l){const c=Lg(e,i);let u;for(;u=c();)Wa(n,t,o,u,r);Wa(n,t,o,a,r)}else 16&l?WS(t,n,i,e,o,r):Wa(n,t,o,a,r);e=s?e.projectionNext:e.next}}function Mc(t,n,e,i,o,r){qg(e,i,t.firstChild,n,o,r,!1)}function WS(t,n,e,i,o,r){const s=e[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Wa(n,t,o,l[c],r);else qg(t,n,l,s[3],o,r,!0)}function $S(t,n,e){t.setAttribute(n,"style",e)}function Wg(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function YS(t,n,e){let i=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}e=o+1}}const QS="ng-template";function uF(t,n,e){let i=0;for(;i<t.length;){let o=t[i++];if(e&&"class"===o){if(o=t[i],-1!==YS(o.toLowerCase(),n,0))return!0}else if(1===o){for(;i<t.length&&"string"==typeof(o=t[i++]);)if(o.toLowerCase()===n)return!0;return!1}}return!1}function KS(t){return 4===t.type&&t.value!==QS}function dF(t,n,e){return n===(4!==t.type||e?t.value:QS)}function hF(t,n,e){let i=4;const o=t.attrs||[],r=function gF(t){for(let n=0;n<t.length;n++)if(SC(t[n]))return n;return t.length}(o);let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!dF(t,l,e)||""===l&&1===n.length){if(Qo(i))return!1;s=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!uF(t.attrs,c,e)){if(Qo(i))return!1;s=!0}continue}const d=fF(8&i?"class":l,o,KS(t),e);if(-1===d){if(Qo(i))return!1;s=!0;continue}if(""!==c){let f;f=d>r?"":o[d+1].toLowerCase();const w=8&i?f:null;if(w&&-1!==YS(w,c,0)||2&i&&c!==f){if(Qo(i))return!1;s=!0}}}}else{if(!s&&!Qo(i)&&!Qo(l))return!1;if(s&&Qo(l))continue;s=!1,i=l|1&i}}return Qo(i)||s}function Qo(t){return 0==(1&t)}function fF(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o<n.length;){const s=n[o];if(s===t)return o;if(3===s||6===s)r=!0;else{if(1===s||2===s){let a=n[++o];for(;"string"==typeof a;)a=n[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=r?1:2}return-1}return function mF(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function ZS(t,n,e=!1){for(let i=0;i<n.length;i++)if(hF(t,n[i],e))return!0;return!1}function vF(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let o=0;o<t.length;o++)if(t[o]!==i[o])continue e;return!0}}return!1}function XS(t,n){return t?":not("+n.trim()+")":n}function _F(t){let n=t[0],e=1,i=2,o="",r=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const a=t[++e];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!Qo(s)&&(n+=XS(r,o),o=""),i=s,r=r||!Qo(i);e++}return""!==o&&(n+=XS(r,o)),n}const wt={};function A(t){JS(Qt(),Fe(),Vi()+t,!1)}function JS(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Sd(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Ed(n,r,0,e)}Jr(e)}function o0(t,n=null,e=null,i){const o=r0(t,n,e,i);return o.resolveInjectorInitializers(),o}function r0(t,n=null,e=null,i,o=new Set){const r=[e||nn,iL(t)];return i=i||("object"==typeof t?void 0:pn(t)),new pS(r,n||Ud(),i||null,o)}let _n=(()=>{class t{static create(e,i){var o;if(Array.isArray(e))return o0({name:""},i,e,"");{const r=null!==(o=e.name)&&void 0!==o?o:"";return o0({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=vc,t.NULL=new cS,t.\u0275prov=Ce({token:t,providedIn:"any",factory:()=>oe(aS)}),t.__NG_ELEMENT_ID__=-1,t})();function h(t,n=gt.Default){const e=Fe();return null===e?oe(t,n):OC(ci(),e,bt(t),n)}function Bs(){throw new Error("invalid")}function Wd(t,n){return t<<17|n<<2}function Ko(t){return t>>17&32767}function Zg(t){return 2|t}function kr(t){return(131068&t)>>2}function Xg(t,n){return-131069&t|n<<2}function Jg(t){return 1|t}function S0(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const o=e[i],r=e[i+1];if(-1!==r){const s=t.data[r];Zp(o),s.contentQueries(2,n[r],r)}}}function Qd(t,n,e,i,o,r,s,a,l,c,u){const d=n.blueprint.slice();return d[0]=o,d[2]=76|i,(null!==u||t&&1024&t[2])&&(d[2]|=1024),lC(d),d[3]=d[15]=t,d[8]=e,d[10]=s||t&&t[10],d[11]=a||t&&t[11],d[12]=l||t&&t[12]||null,d[9]=c||t&&t[9]||null,d[6]=r,d[20]=function PL(){return RL++}(),d[21]=u,d[16]=2==n.type?t[16]:d,d}function Ya(t,n,e,i,o){let r=t.data[n];if(null===r)r=function am(t,n,e,i,o){const r=dC(),s=$p(),l=t.data[n]=function eB(t,n,e,i,o,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?r:r&&r.parent,e,n,i,o);return null===t.firstChild&&(t.firstChild=l),null!==r&&(s?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,o),function Rk(){return St.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=o;const s=function lc(){const t=St.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===s?-1:s.injectorIndex}return lr(r,!0),r}function Qa(t,n,e,i){if(0===e)return-1;const o=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return o}function lm(t,n,e){Xp(n);try{const i=t.viewQuery;null!==i&&mm(1,i,e);const o=t.template;null!==o&&E0(t,n,o,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&S0(t,n),t.staticViewQueries&&mm(2,t.viewQuery,e);const r=t.components;null!==r&&function ZF(t,n){for(let e=0;e<n.length;e++)mB(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,Jp()}}function Kd(t,n,e,i){const o=n[2];if(128!=(128&o)){Xp(n);try{lC(n),function fC(t){return St.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&E0(t,n,e,2,i);const s=3==(3&o);if(s){const c=t.preOrderCheckHooks;null!==c&&Sd(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Ed(n,c,0,null),eg(n,0)}if(function pB(t){for(let n=Fg(t);null!==n;n=Bg(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const o=e[i],r=o[3];0==(512&o[2])&&Wp(r,1),o[2]|=512}}}(n),function fB(t){for(let n=Fg(t);null!==n;n=Bg(n))for(let e=10;e<n.length;e++){const i=n[e],o=i[1];yd(i)&&Kd(o,i,o.template,i[8])}}(n),null!==t.contentQueries&&S0(t,n),s){const c=t.contentCheckHooks;null!==c&&Sd(n,c)}else{const c=t.contentHooks;null!==c&&Ed(n,c,1),eg(n,1)}!function QF(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const o=e[i];if(o<0)Jr(~o);else{const r=o,s=e[++i],a=e[++i];Pk(s,r),a(2,n[r])}}}finally{Jr(-1)}}(t,n);const a=t.components;null!==a&&function KF(t,n){for(let e=0;e<n.length;e++)gB(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&mm(2,l,i),s){const c=t.viewCheckHooks;null!==c&&Sd(n,c)}else{const c=t.viewHooks;null!==c&&Ed(n,c,2),eg(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,Wp(n[3],-1))}finally{Jp()}}}function E0(t,n,e,i,o){const r=Vi(),s=2&i;try{Jr(-1),s&&n.length>22&&JS(t,n,22,!1),e(i,o)}finally{Jr(r)}}function A0(t,n,e){if(jp(n)){const o=n.directiveEnd;for(let r=n.directiveStart;r<o;r++){const s=t.data[r];s.contentQueries&&s.contentQueries(1,e[r],r)}}}function cm(t,n,e){!uC()||(function rB(t,n,e,i){const o=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||hc(e,n),xi(i,n);const s=e.initialInputs;for(let a=o;a<r;a++){const l=t.data[a],c=$o(l);c&&uB(n,e,l);const u=fc(n,t,a,e);xi(u,n),null!==s&&dB(0,a-o,u,l,0,s),c&&(lo(e.index,n)[8]=u)}}(t,n,e,Do(e,n)),128==(128&e.flags)&&function sB(t,n,e){const i=e.directiveStart,o=e.directiveEnd,r=e.index,s=function kk(){return St.lFrame.currentDirectiveIndex}();try{Jr(r);for(let a=i;a<o;a++){const l=t.data[a],c=n[a];Qp(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&I0(l,c)}}finally{Jr(-1),Qp(s)}}(t,n,e))}function um(t,n,e=Do){const i=n.localNames;if(null!==i){let o=n.index+1;for(let r=0;r<i.length;r+=2){const s=i[r+1],a=-1===s?e(n,t):t[s];t[o++]=a}}}function w0(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=dm(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function dm(t,n,e,i,o,r,s,a,l,c){const u=22+i,d=u+o,f=function XF(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:wt);return e}(u,d),w="function"==typeof c?c():c;return f[1]={type:t,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:w,incompleteFirstPass:!1}}function D0(t,n,e,i){const o=L0(n);null===e?o.push(i):(o.push(e),t.firstCreatePass&&F0(t).push(i,o.length-1))}function T0(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const o=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,o):e[i]=[n,o]}return e}function M0(t,n){const i=n.directiveEnd,o=t.data,r=n.attrs,s=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=o[c],d=u.inputs,f=null===r||KS(n)?null:hB(d,r);s.push(f),a=T0(d,c,a),l=T0(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=s,n.inputs=a,n.outputs=l}function fo(t,n,e,i,o,r,s,a){const l=Do(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(vm(t,e,u,i,o),vd(n)&&x0(e,n.index)):3&n.type&&(i=function tB(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=s?s(o,n.value||"",i):o,r.setProperty(l,i,o))}function x0(t,n){const e=lo(n,t);16&e[2]||(e[2]|=32)}function hm(t,n,e,i){let o=!1;if(uC()){const r=function aB(t,n,e){const i=t.directiveRegistry;let o=null;if(i)for(let r=0;r<i.length;r++){const s=i[r];ZS(e,s.selectors,!1)&&(o||(o=[]),Md(hc(e,n),t,s.type),$o(s)?(R0(t,e),o.unshift(s)):o.push(s))}return o}(t,n,e),s=null===i?null:{"":-1};if(null!==r){o=!0,P0(e,t.data.length,r.length);for(let u=0;u<r.length;u++){const d=r[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Qa(t,n,r.length,null);for(let u=0;u<r.length;u++){const d=r[u];e.mergedAttrs=wd(e.mergedAttrs,d.hostAttrs),k0(t,e,n,c,d),cB(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}M0(t,e)}s&&function lB(t,n,e){if(n){const i=t.localNames=[];for(let o=0;o<n.length;o+=2){const r=e[n[o+1]];if(null==r)throw new Te(-301,!1);i.push(n[o],r)}}}(e,i,s)}return e.mergedAttrs=wd(e.mergedAttrs,e.attrs),o}function O0(t,n,e,i,o,r){const s=r.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function oB(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,o,s)}}function I0(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function R0(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function cB(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;$o(n)&&(e[""]=t)}}function P0(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function k0(t,n,e,i,o){t.data[i]=o;const r=o.factory||(o.factory=ks(o.type)),s=new uc(r,$o(o),h);t.blueprint[i]=s,e[i]=s,O0(t,n,0,i,Qa(t,e,o.hostVars,wt),o)}function uB(t,n,e){const i=Do(n,t),o=w0(e),r=t[10],s=Zd(t,Qd(t,o,null,e.onPush?32:16,i,n,r,r.createRenderer(i,e),null,null,null));t[n.index]=s}function dr(t,n,e,i,o,r){const s=Do(t,n);!function fm(t,n,e,i,o,r,s){if(null==r)t.removeAttribute(n,o,e);else{const a=null==s?At(r):s(r,i||"",o);t.setAttribute(n,o,a,e)}}(n[11],s,r,t.value,e,i,o)}function dB(t,n,e,i,o,r){const s=r[n];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function hB(t,n){let e=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;t.hasOwnProperty(o)&&(null===e&&(e=[]),e.push(o,t[o],n[i+1])),i+=2}else i+=2;else i+=4}return e}function N0(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function gB(t,n){const e=lo(n,t);if(yd(e)){const i=e[1];48&e[2]?Kd(i,e,i.template,e[8]):e[5]>0&&pm(e)}}function pm(t){for(let i=Fg(t);null!==i;i=Bg(i))for(let o=10;o<i.length;o++){const r=i[o];if(yd(r))if(512&r[2]){const s=r[1];Kd(s,r,s.template,r[8])}else r[5]>0&&pm(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const o=lo(e[i],t);yd(o)&&o[5]>0&&pm(o)}}function mB(t,n){const e=lo(n,t),i=e[1];(function vB(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),lm(i,e,e[8])}function Zd(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function gm(t){for(;t;){t[2]|=32;const n=Tc(t);if(fk(t)&&!n)return t;t=n}return null}function Xd(t,n,e,i=!0){const o=n[10];o.begin&&o.begin();try{Kd(t,n,t.template,e)}catch(s){throw i&&V0(n,s),s}finally{o.end&&o.end()}}function mm(t,n,e){Zp(0),n(t,e)}function L0(t){return t[7]||(t[7]=[])}function F0(t){return t.cleanup||(t.cleanup=[])}function B0(t,n,e){return(null===t||$o(t))&&(e=function Sk(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[n.index])),e[11]}function V0(t,n){const e=t[9],i=e?e.get(Rr,null):null;i&&i.handleError(n)}function vm(t,n,e,i,o){for(let r=0;r<e.length;){const s=e[r++],a=e[r++],l=n[s],c=t.data[s];null!==c.setInput?c.setInput(l,o,i,a):l[a]=o}}function Jd(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?r=a:1==r?o=Rp(o,a):2==r&&(i=Rp(i,a+": "+n[++s]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=o:t.classesWithoutHost=o}function eh(t,n,e,i,o=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Zn(r)),Wo(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&eh(l[1],l,c,i)}const s=e.type;if(8&s)eh(t,n,e.child,i);else if(32&s){const a=Lg(e,n);let l;for(;l=a();)i.push(l)}else if(16&s){const a=zS(n,e);if(Array.isArray(a))i.push(...a);else{const l=Tc(n[16]);eh(l[1],l,a,i,!0)}}e=o?e.projectionNext:e.next}return i}class xc{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return eh(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Wo(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Ug(n,i),Od(e,i))}this._attachedToViewContainer=!1}NS(this._lView[1],this._lView)}onDestroy(n){D0(this._lView[1],this._lView,null,n)}markForCheck(){gm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Xd(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function JL(t,n){Mc(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Te(902,!1);this._appRef=n}}class _B extends xc{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Xd(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class _m extends Or{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=an(n);return new Oc(e,this.ngModule)}}function j0(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class yB{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){const o=this.injector.get(n,Dg,i);return o!==Dg||e===Dg?o:this.parentInjector.get(n,e,i)}}class Oc extends mS{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function bF(t){return t.map(_F).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return j0(this.componentDef.inputs)}get outputs(){return j0(this.componentDef.outputs)}create(n,e,i,o){let r=(o=o||this.ngModule)instanceof ns?o:null==o?void 0:o.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const s=r?new yB(n,r):n,a=s.get(Ac,null);if(null===a)throw new Te(407,!1);const l=s.get(bL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function JF(t,n,e){return t.selectRootElement(n,e===zo.ShadowDom)}(c,i,this.componentDef.encapsulation):jg(c,u,function bB(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(u)),f=this.componentDef.onPush?288:272,w=dm(0,null,null,1,0,null,null,null,null,null),z=Qd(null,w,null,f,null,null,a,c,l,s,null);let ne,fe;Xp(z);try{const he=function EB(t,n,e,i,o,r){const s=e[1];e[22]=t;const l=Ya(s,22,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Jd(l,c,!0),null!==t&&(Ad(o,t,c),null!==l.classes&&Wg(o,t,l.classes),null!==l.styles&&$S(o,t,l.styles)));const u=i.createRenderer(t,n),d=Qd(e,w0(n),null,n.onPush?32:16,e[22],l,i,u,r||null,null,null);return s.firstCreatePass&&(Md(hc(l,e),s,n.type),R0(s,l),P0(l,e.length,1)),Zd(e,d),e[22]=d}(d,this.componentDef,z,a,c);if(d)if(i)Ad(c,d,["ng-version",yL.full]);else{const{attrs:_e,classes:pe}=function yF(t){const n=[],e=[];let i=1,o=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===o?""!==r&&n.push(r,t[++i]):8===o&&e.push(r);else{if(!Qo(o))break;o=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);_e&&Ad(c,d,_e),pe&&pe.length>0&&Wg(c,d,pe.join(" "))}if(fe=qp(w,22),void 0!==e){const _e=fe.projection=[];for(let pe=0;pe<this.ngContentSelectors.length;pe++){const ve=e[pe];_e.push(null!=ve?Array.from(ve):null)}}ne=function AB(t,n,e,i){const o=e[1],r=function iB(t,n,e){const i=ci();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),k0(t,i,n,Qa(t,n,1,null),e),M0(t,i));const o=fc(n,t,i.directiveStart,i);xi(o,n);const r=Do(i,n);return r&&xi(r,n),o}(o,e,n);if(t[8]=e[8]=r,null!==i)for(const a of i)a(r,n);if(n.contentQueries){const a=ci();n.contentQueries(1,r,a.directiveStart)}const s=ci();return!o.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Jr(s.index),O0(e[1],s,0,s.directiveStart,s.directiveEnd,n),I0(n,r)),r}(he,this.componentDef,z,[wB]),lm(w,z,null)}finally{Jp()}return new SB(this.componentType,ne,za(fe,z),z,fe)}}class SB extends class fL{}{constructor(n,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new _B(o),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[n])){const r=this._rootLView;vm(r[1],r,o,n,e),x0(r,this._tNode.index)}}get injector(){return new Ra(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function wB(){const t=ci();Cd(Fe()[1],t)}function Me(t){let n=function U0(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let o;if($o(t))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Te(903,!1);o=n.\u0275dir}if(o){if(e){i.push(o);const s=t;s.inputs=bm(t.inputs),s.declaredInputs=bm(t.declaredInputs),s.outputs=bm(t.outputs);const a=o.hostBindings;a&&xB(t,a);const l=o.viewQuery,c=o.contentQueries;if(l&&TB(t,l),c&&MB(t,c),Ip(t.inputs,o.inputs),Ip(t.declaredInputs,o.declaredInputs),Ip(t.outputs,o.outputs),$o(o)&&o.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let s=0;s<r.length;s++){const a=r[s];a&&a.ngInherit&&a(t),a===Me&&(e=!1)}}n=Object.getPrototypeOf(n)}!function DB(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=wd(o.hostAttrs,e=wd(e,o.hostAttrs))}}(i)}function bm(t){return t===Ea?{}:t===nn?[]:t}function TB(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function MB(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function xB(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}let th=null;function Vs(){if(!th){const t=mn.Symbol;if(t&&t.iterator)th=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(th=i)}}}return th}function Ic(t){return!!ym(t)&&(Array.isArray(t)||!(t instanceof Map)&&Vs()in t)}function ym(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function hr(t,n,e){return t[n]=e}function Oi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function js(t,n,e,i){const o=Oi(t,n,e);return Oi(t,n+1,i)||o}function Mo(t,n,e,i,o,r){const s=js(t,n,e,i);return js(t,n+2,o,r)||s}function Ot(t,n,e,i){const o=Fe();return Oi(o,xa(),n)&&(Qt(),dr(Fn(),o,t,n,e,i)),Ot}function Za(t,n,e,i){return Oi(t,xa(),e)?n+At(e)+i:wt}function X(t,n,e,i,o,r,s,a){const l=Fe(),c=Qt(),u=t+22,d=c.firstCreatePass?function FB(t,n,e,i,o,r,s,a,l){const c=n.consts,u=Ya(n,t,4,s||null,Xr(c,a));hm(n,e,u,Xr(c,l)),Cd(n,u);const d=u.tViews=dm(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,s):c.data[u];lr(d,!1);const f=l[11].createComment("");Gd(c,l,f,d),xi(f,l),Zd(l,l[u]=N0(f,l,f,d)),_d(d)&&cm(c,l,d),null!=s&&um(l,d,a)}function Ui(t){return Ma(function Ik(){return St.lFrame.contextLView}(),22+t)}function U(t,n,e){const i=Fe();return Oi(i,xa(),n)&&fo(Qt(),Fn(),i,t,n,i[11],e,!1),U}function Cm(t,n,e,i,o){const s=o?"class":"style";vm(t,e,n.inputs[s],s,i)}function O(t,n,e,i){const o=Fe(),r=Qt(),s=22+t,a=o[11],l=o[s]=jg(a,n,function Uk(){return St.lFrame.currentNamespace}()),c=r.firstCreatePass?function VB(t,n,e,i,o,r,s){const a=n.consts,c=Ya(n,t,2,o,Xr(a,r));return hm(n,e,c,Xr(a,s)),null!==c.attrs&&Jd(c,c.attrs,!1),null!==c.mergedAttrs&&Jd(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,r,o,0,n,e,i):r.data[s];lr(c,!0);const u=c.mergedAttrs;null!==u&&Ad(a,l,u);const d=c.classes;null!==d&&Wg(a,l,d);const f=c.styles;return null!==f&&$S(a,l,f),64!=(64&c.flags)&&Gd(r,o,l,c),0===function Dk(){return St.lFrame.elementDepthCount}()&&xi(l,o),function Tk(){St.lFrame.elementDepthCount++}(),_d(c)&&(cm(r,o,c),A0(r,c,o)),null!==i&&um(o,c),O}function V(){let t=ci();$p()?Yp():(t=t.parent,lr(t,!1));const n=t;!function Mk(){St.lFrame.elementDepthCount--}();const e=Qt();return e.firstCreatePass&&(Cd(e,t),jp(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Wk(t){return 0!=(16&t.flags)}(n)&&Cm(e,n,Fe(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function $k(t){return 0!=(32&t.flags)}(n)&&Cm(e,n,Fe(),n.stylesWithoutHost,!1),V}function Xe(t,n,e,i){return O(t,n,e,i),V(),Xe}function Ci(t,n,e){const i=Fe(),o=Qt(),r=t+22,s=o.firstCreatePass?function jB(t,n,e,i,o){const r=n.consts,s=Xr(r,i),a=Ya(n,t,8,"ng-container",s);return null!==s&&Jd(a,s,!0),hm(n,e,a,Xr(r,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,o,i,n,e):o.data[r];lr(s,!0);const a=i[r]=i[11].createComment("");return Gd(o,i,a,s),xi(a,i),_d(s)&&(cm(o,i,s),A0(o,s,i)),null!=e&&um(i,s),Ci}function Si(){let t=ci();const n=Qt();return $p()?Yp():(t=t.parent,lr(t,!1)),n.firstCreatePass&&(Cd(n,t),jp(t)&&n.queries.elementEnd(t)),Si}function rn(t,n,e){return Ci(t,n,e),Si(),rn}function at(){return Fe()}function Pc(t){return!!t&&"function"==typeof t.then}function Z0(t){return!!t&&"function"==typeof t.subscribe}const Sm=Z0;function we(t,n,e,i){const o=Fe(),r=Qt(),s=ci();return X0(r,o,o[11],s,t,n,0,i),we}function kc(t,n){const e=ci(),i=Fe(),o=Qt();return X0(o,i,B0(Kp(o.data),e,i),e,t,n),kc}function X0(t,n,e,i,o,r,s,a){const l=_d(i),u=t.firstCreatePass&&F0(t),d=n[8],f=L0(n);let w=!0;if(3&i.type||a){const fe=Do(i,n),he=a?a(fe):fe,_e=f.length,pe=a?He=>a(Zn(He[i.index])):i.index;let ve=null;if(!a&&l&&(ve=function UB(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;r<o.length-1;r+=2){const s=o[r];if(s===e&&o[r+1]===i){const a=n[7],l=o[r+2];return a.length>l?a[l]:null}"string"==typeof s&&(r+=2)}return null}(t,n,o,i.index)),null!==ve)(ve.__ngLastListenerFn__||ve).__ngNextListenerFn__=r,ve.__ngLastListenerFn__=r,w=!1;else{r=eE(i,n,d,r,!1);const He=e.listen(he,o,r);f.push(r,He),u&&u.push(o,pe,_e,_e+1)}}else r=eE(i,n,d,r,!1);const z=i.outputs;let ne;if(w&&null!==z&&(ne=z[o])){const fe=ne.length;if(fe)for(let he=0;he<fe;he+=2){const ht=n[ne[he]][ne[he+1]].subscribe(r),$t=f.length;f.push(r,ht),u&&u.push(o,i.index,$t,-($t+1))}}}function J0(t,n,e,i){try{return!1!==e(i)}catch(o){return V0(t,o),!1}}function eE(t,n,e,i,o){return function r(s){if(s===Function)return i;gm(2&t.flags?lo(t.index,n):n);let l=J0(n,0,i,s),c=r.__ngNextListenerFn__;for(;c;)l=J0(n,0,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function ie(t=1){return function Lk(t){return(St.lFrame.contextLView=function Fk(t,n){for(;t>0;)n=n[15],t--;return n}(t,St.lFrame.contextLView))[8]}(t)}function HB(t,n){let e=null;const i=function pF(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let o=0;o<n.length;o++){const r=n[o];if("*"!==r){if(null===i?ZS(t,r,!0):vF(i,r))return o}else e=o}return e}function In(t){const n=Fe()[16][6];if(!n.projection){const i=n.projection=mc(t?t.length:1,null),o=i.slice();let r=n.child;for(;null!==r;){const s=t?HB(r,t):0;null!==s&&(o[s]?o[s].projectionNext=r:i[s]=r,o[s]=r),r=r.next}}}function Dt(t,n=0,e){const i=Fe(),o=Qt(),r=Ya(o,22+t,16,null,e||null);null===r.projection&&(r.projection=n),Yp(),64!=(64&r.flags)&&function aF(t,n,e){WS(n[11],0,n,e,LS(t,e,n),jS(e.parent||n[6],e,n))}(o,i,r)}function Ht(t,n,e){return Em(t,"",n,"",e),Ht}function Em(t,n,e,i,o){const r=Fe(),s=Za(r,n,e,i);return s!==wt&&fo(Qt(),Fn(),r,t,s,r[11],o,!1),Em}function cE(t,n,e,i,o){const r=t[e+1],s=null===n;let a=i?Ko(r):kr(r),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];qB(t[a],n)&&(l=!0,t[a+1]=i?Jg(u):Zg(u)),a=i?Ko(u):kr(u)}l&&(t[e+1]=i?Zg(r):Jg(r))}function qB(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Fa(t,n)>=0}const di={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function uE(t){return t.substring(di.key,di.keyEnd)}function dE(t,n){const e=di.textEnd;return e===n?-1:(n=di.keyEnd=function QB(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,di.key=n,e),rl(t,n,e))}function rl(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Ji(t,n,e){return Zo(t,n,e,!1),Ji}function ct(t,n){return Zo(t,n,null,!0),ct}function pr(t,n){for(let e=function $B(t){return function fE(t){di.key=0,di.keyEnd=0,di.value=0,di.valueEnd=0,di.textEnd=t.length}(t),dE(t,rl(t,0,di.textEnd))}(n);e>=0;e=dE(n,e))uo(t,uE(n),!0)}function Zo(t,n,e,i){const o=Fe(),r=Qt(),s=Tr(2);r.firstUpdatePass&&vE(r,t,s,i),n!==wt&&Oi(o,s,n)&&bE(r,r.data[Vi()],o,o[11],t,o[s+1]=function a2(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=pn(ho(t)))),t}(n,e),i,s)}function mE(t,n){return n>=t.expandoStartIndex}function vE(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Vi()],s=mE(t,e);CE(r,i)&&null===n&&!s&&(n=!1),n=function e2(t,n,e,i){const o=Kp(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Nc(e=Am(null,t,n,e,i),n.attrs,i),r=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==o)if(e=Am(o,t,n,e,i),null===r){let l=function t2(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==kr(i))return t[Ko(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Am(null,t,n,l[1],i),l=Nc(l,n.attrs,i),function n2(t,n,e,i){t[Ko(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function o2(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<o;r++)i=Nc(i,t[r].hostAttrs,e);return Nc(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(o,r,n,i),function GB(t,n,e,i,o,r){let s=r?n.classBindings:n.styleBindings,a=Ko(s),l=kr(s);t[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Fa(d,u)>0)&&(c=!0)}else u=e;if(o)if(0!==l){const f=Ko(t[a+1]);t[i+1]=Wd(f,a),0!==f&&(t[f+1]=Xg(t[f+1],i)),t[a+1]=function VF(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Wd(a,0),0!==a&&(t[a+1]=Xg(t[a+1],i)),a=i;else t[i+1]=Wd(l,0),0===a?a=i:t[l+1]=Xg(t[l+1],i),l=i;c&&(t[i+1]=Zg(t[i+1])),cE(t,u,i,!0),cE(t,u,i,!1),function zB(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Fa(r,n)>=0&&(e[i+1]=Jg(e[i+1]))}(n,u,t,i,r),s=Wd(a,l),r?n.classBindings=s:n.styleBindings=s}(o,r,n,e,s,i)}}function Am(t,n,e,i,o){let r=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(r=n[a],i=Nc(i,r.hostAttrs,o),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function Nc(t,n,e){const i=e?1:2;let o=-1;if(null!==n)for(let r=0;r<n.length;r++){const s=n[r];"number"==typeof s?o=s:o===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),uo(t,s,!!e||n[++r]))}return void 0===t?null:t}function bE(t,n,e,i,o,r,s,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];ih(function p0(t){return 1==(1&t)}(c)?yE(l,n,e,o,kr(c),s):void 0)||(ih(r)||function f0(t){return 2==(2&t)}(c)&&(r=yE(l,null,e,o,a,s)),function cF(t,n,e,i,o){if(n)o?t.addClass(e,i):t.removeClass(e,i);else{let r=-1===i.indexOf("-")?void 0:Xi.DashCase;null==o?t.removeStyle(e,i,r):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=Xi.Important),t.setStyle(e,i,o,r))}}(i,s,bd(Vi(),e),o,r))}function yE(t,n,e,i,o,r){const s=null===n;let a;for(;o>0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=e[o+1];f===wt&&(f=d?nn:void 0);let w=d?lg(f,i):u===i?f:void 0;if(c&&!ih(w)&&(w=lg(l,i)),ih(w)&&(a=w,s))return a;const z=t[o+1];o=s?Ko(z):kr(z)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=lg(l,i))}return a}function ih(t){return void 0!==t}function CE(t,n){return 0!=(t.flags&(n?16:32))}function se(t,n=""){const e=Fe(),i=Qt(),o=t+22,r=i.firstCreatePass?Ya(i,o,1,n,null):i.data[o],s=e[o]=function Vg(t,n){return t.createText(n)}(e[11],n);Gd(i,e,s,r),lr(r,!1)}function Ne(t){return wn("",t,""),Ne}function wn(t,n,e){const i=Fe(),o=Za(i,t,n,e);return o!==wt&&function Nr(t,n,e){const i=bd(n,t);!function PS(t,n,e){t.setValue(n,e)}(t[11],i,e)}(i,Vi(),o),wn}function OE(t,n,e){!function Xo(t,n,e,i){const o=Qt(),r=Tr(2);o.firstUpdatePass&&vE(o,null,r,i);const s=Fe();if(e!==wt&&Oi(s,r,e)){const a=o.data[Vi()];if(CE(a,i)&&!mE(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Rp(l,e||"")),Cm(o,a,s,e,i)}else!function s2(t,n,e,i,o,r,s,a){o===wt&&(o=nn);let l=0,c=0,u=0<o.length?o[0]:null,d=0<r.length?r[0]:null;for(;null!==u||null!==d;){const f=l<o.length?o[l+1]:void 0,w=c<r.length?r[c+1]:void 0;let ne,z=null;u===d?(l+=2,c+=2,f!==w&&(z=d,ne=w)):null===d||null!==u&&u<d?(l+=2,z=u):(c+=2,z=d,ne=w),null!==z&&bE(t,n,e,i,z,ne,s,a),u=l<o.length?o[l]:null,d=c<r.length?r[c]:null}}(o,a,s,s[11],s[r+1],s[r+1]=function r2(t,n,e){if(null==e||""===e)return nn;const i=[],o=ho(e);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(i,o[r],!0);else if("object"==typeof o)for(const r in o)o.hasOwnProperty(r)&&t(i,r,o[r]);else"string"==typeof o&&n(i,o);return i}(t,n,e),i,r)}}(uo,pr,Za(Fe(),t,n,e),!0)}function rs(t,n,e){const i=Fe();return Oi(i,xa(),n)&&fo(Qt(),Fn(),i,t,n,i[11],e,!0),rs}function Lc(t,n,e){const i=Fe();if(Oi(i,xa(),n)){const r=Qt(),s=Fn();fo(r,s,i,t,n,B0(Kp(r.data),s,i),e,!0)}return Lc}const Us=void 0;var D2=["en",[["a","p"],["AM","PM"],Us],[["AM","PM"],Us,Us],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Us,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Us,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Us,"{1} 'at' {0}",Us],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function w2(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let sl={};function Hi(t){const n=function T2(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=UE(n);if(e)return e;const i=n.split("-")[0];if(e=UE(i),e)return e;if("en"===i)return D2;throw new Te(701,!1)}function UE(t){return t in sl||(sl[t]=mn.ng&&mn.ng.common&&mn.ng.common.locales&&mn.ng.common.locales[t]),sl[t]}var Ze=(()=>((Ze=Ze||{})[Ze.LocaleId=0]="LocaleId",Ze[Ze.DayPeriodsFormat=1]="DayPeriodsFormat",Ze[Ze.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ze[Ze.DaysFormat=3]="DaysFormat",Ze[Ze.DaysStandalone=4]="DaysStandalone",Ze[Ze.MonthsFormat=5]="MonthsFormat",Ze[Ze.MonthsStandalone=6]="MonthsStandalone",Ze[Ze.Eras=7]="Eras",Ze[Ze.FirstDayOfWeek=8]="FirstDayOfWeek",Ze[Ze.WeekendRange=9]="WeekendRange",Ze[Ze.DateFormat=10]="DateFormat",Ze[Ze.TimeFormat=11]="TimeFormat",Ze[Ze.DateTimeFormat=12]="DateTimeFormat",Ze[Ze.NumberSymbols=13]="NumberSymbols",Ze[Ze.NumberFormats=14]="NumberFormats",Ze[Ze.CurrencyCode=15]="CurrencyCode",Ze[Ze.CurrencySymbol=16]="CurrencySymbol",Ze[Ze.CurrencyName=17]="CurrencyName",Ze[Ze.Currencies=18]="Currencies",Ze[Ze.Directionality=19]="Directionality",Ze[Ze.PluralCase=20]="PluralCase",Ze[Ze.ExtraData=21]="ExtraData",Ze))();const al="en-US";let HE=al;function Tm(t,n,e,i,o){if(t=bt(t),Array.isArray(t))for(let r=0;r<t.length;r++)Tm(t[r],n,e,i,o);else{const r=Qt(),s=Fe();let a=Ls(t)?t:bt(t.provide),l=gS(t);const c=ci(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(Ls(t)||!t.multi){const w=new uc(l,o,h),z=xm(a,n,o?u:u+f,d);-1===z?(Md(hc(c,s),r,a),Mm(r,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(w),s.push(w)):(e[z]=w,s[z]=w)}else{const w=xm(a,n,u+f,d),z=xm(a,n,u,u+f),ne=w>=0&&e[w],fe=z>=0&&e[z];if(o&&!fe||!o&&!ne){Md(hc(c,s),r,a);const he=function AV(t,n,e,i,o){const r=new uc(t,e,h);return r.multi=[],r.index=n,r.componentProviders=0,fA(r,o,i&&!e),r}(o?EV:SV,e.length,o,i,l);!o&&fe&&(e[z].providerFactory=he),Mm(r,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(he),s.push(he)}else Mm(r,t,w>-1?w:z,fA(e[o?z:w],l,!o&&i));!o&&i&&fe&&e[z].componentProviders++}}}function Mm(t,n,e,i){const o=Ls(n),r=function rL(t){return!!t.useClass}(n);if(o||r){const l=(r?bt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function fA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function xm(t,n,e,i){for(let o=e;o<i;o++)if(n[o]===t)return o;return-1}function SV(t,n,e,i){return Om(this.multi,[])}function EV(t,n,e,i){const o=this.multi;let r;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=fc(e,e[1],this.providerFactory.index,i);r=a.slice(0,s),Om(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],Om(o,r);return r}function Om(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function It(t,n=[]){return e=>{e.providersResolver=(i,o)=>function CV(t,n,e){const i=Qt();if(i.firstCreatePass){const o=$o(t);Tm(e,i.data,i.blueprint,o,!0),Tm(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}class Hs{}class pA{}class gA extends Hs{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _m(this);const i=so(n);this._bootstrapComponents=Pr(i.bootstrap),this._r3Injector=r0(n,e,[{provide:Hs,useValue:this},{provide:Or,useValue:this.componentFactoryResolver}],pn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Im extends pA{constructor(n){super(),this.moduleType=n}create(n){return new gA(this.moduleType,n)}}class DV extends Hs{constructor(n,e,i){super(),this.componentFactoryResolver=new _m(this),this.instance=null;const o=new pS([...n,{provide:Hs,useValue:this},{provide:Or,useValue:this.componentFactoryResolver}],e||Ud(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function lh(t,n,e=null){return new DV(t,n,e).injector}let TV=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=uS(0,e.type),o=i.length>0?lh([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Ce({token:t,providedIn:"environment",factory:()=>new t(oe(ns))}),t})();function mA(t){t.getStandaloneInjector=n=>n.get(TV).getOrCreateStandaloneInjector(t)}function Xn(t,n,e,i){return DA(Fe(),Bi(),t,n,e,i)}function Hc(t,n,e,i,o,r,s){return function xA(t,n,e,i,o,r,s,a,l){const c=n+e;return Mo(t,c,o,r,s,a)?hr(t,c+4,l?i.call(l,o,r,s,a):i(o,r,s,a)):Gc(t,c+4)}(Fe(),Bi(),t,n,e,i,o,r,s)}function wA(t,n,e,i,o,r,s,a,l,c){const u=Bi()+t,d=Fe();let f=Mo(d,u,e,i,o,r);return function nh(t,n,e,i,o){const r=js(t,n,e,i);return Oi(t,n+2,o)||r}(d,u+4,s,a,l)||f?hr(d,u+7,c?n.call(c,e,i,o,r,s,a,l):n(e,i,o,r,s,a,l)):function Rc(t,n){return t[n]}(d,u+7)}function Gc(t,n){const e=t[n];return e===wt?void 0:e}function DA(t,n,e,i,o,r){const s=n+e;return Oi(t,s,o)?hr(t,s+1,r?i.call(r,o):i(o)):Gc(t,s+1)}function ye(t,n){const e=Qt();let i;const o=t+22;e.firstCreatePass?(i=function UV(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=ks(i.type)),s=Eo(h);try{const a=Dd(!1),l=r();return Dd(a),function BB(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Fe(),o,l),l}finally{Eo(s)}}function Se(t,n,e){const i=t+22,o=Fe(),r=Ma(o,i);return zc(o,i)?DA(o,Bi(),n,r.transform,e,r):r.transform(e)}function ss(t,n,e,i){const o=t+22,r=Fe(),s=Ma(r,o);return zc(r,o)?function TA(t,n,e,i,o,r,s){const a=n+e;return js(t,a,o,r)?hr(t,a+2,s?i.call(s,o,r):i(o,r)):Gc(t,a+2)}(r,Bi(),n,s.transform,e,i,s):s.transform(e,i)}function zc(t,n){return t[1].data[n].pure}function Pm(t){return n=>{setTimeout(t,void 0,n)}}const Ee=class qV extends ce{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var o,r,s;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const d=n;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(r=d.error)||void 0===r?void 0:r.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Pm(l),a&&(a=Pm(a)),c&&(c=Pm(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof b&&n.add(u),u}};function WV(){return this._results[Vs()]()}class as{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Vs(),i=as.prototype;i[e]||(i[e]=WV)}get changes(){return this._changes||(this._changes=new Ee)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const o=co(n);(this._changesDetected=!function iN(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let o=t[i],r=n[i];if(e&&(o=e(o),r=e(r)),r!==o)return!1}return!0}(i._results,o,e))&&(i._results=o,i.length=o.length,i.last=o[this.length-1],i.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let vt=(()=>{class t{}return t.__NG_ELEMENT_ID__=QV,t})();const $V=vt,YV=class extends $V{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tViews,o=Qd(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(i)),lm(i,o,n),new xc(o)}};function QV(){return ch(ci(),Fe())}function ch(t,n){return 4&t.type?new YV(n,t,za(t,n)):null}let ln=(()=>{class t{}return t.__NG_ELEMENT_ID__=KV,t})();function KV(){return PA(ci(),Fe())}const ZV=ln,IA=class extends ZV{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return za(this._hostTNode,this._hostLView)}get injector(){return new Ra(this._hostTNode,this._hostLView)}get parentInjector(){const n=Td(this._hostTNode,this._hostLView);if(wC(n)){const e=Ia(n,this._hostLView),i=Oa(n);return new Ra(e[1].data[i+8],e)}return new Ra(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=RA(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=n.createEmbeddedView(e||{},r);return this.insert(s,o),s}createComponent(n,e,i,o,r){const s=n&&!function gc(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,o=d.projectableNodes,r=d.environmentInjector||d.ngModuleRef}const l=s?n:new Oc(an(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const f=(s?c:this.parentInjector).get(ns,null);f&&(r=f)}const u=l.create(c,o,void 0,r);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,o=i[1];if(function wk(t){return Wo(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],f=new IA(d,d[6],d[3]);f.detach(f.indexOf(n))}}const r=this._adjustIndex(e),s=this._lContainer;!function tF(t,n,e,i){const o=10+i,r=e.length;i>0&&(e[o-1][4]=n),i<r-10?(n[4]=e[o],LC(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const s=n[17];null!==s&&e!==s&&function nF(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(s,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=64}(o,i,s,r);const a=zg(r,s),l=i[11],c=Hd(l,s[7]);return null!==c&&function XL(t,n,e,i,o,r){i[0]=o,i[6]=n,Mc(t,i,e,1,o,r)}(o,s[6],l,i,c,a),n.attachToViewContainerRef(),LC(km(s),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=RA(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ug(this._lContainer,e);i&&(Od(km(this._lContainer),e),NS(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ug(this._lContainer,e);return i&&null!=Od(km(this._lContainer),e)?new xc(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function RA(t){return t[8]}function km(t){return t[8]||(t[8]=[])}function PA(t,n){let e;const i=n[t.index];if(Wo(i))e=i;else{let o;if(8&t.type)o=Zn(i);else{const r=n[11];o=r.createComment("");const s=Do(t,n);Fs(r,Hd(r,s),o,function sF(t,n){return t.nextSibling(n)}(r,s),!1)}n[t.index]=e=N0(i,n,o,t),Zd(n,e)}return new IA(e,t,n)}class Nm{constructor(n){this.queryList=n,this.matches=null}clone(){return new Nm(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lm{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;r<i;r++){const s=e.getByIndex(r);o.push(this.queries[s.indexInDeclarationView].clone())}return new Lm(o)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==BA(n,e).matches&&this.queries[e].setDirty()}}class kA{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Fm{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const o=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,o);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new Fm(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Bm{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new Bm(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const r=i[o];this.matchTNodeWithReadOption(n,e,e3(e,r)),this.matchTNodeWithReadOption(n,e,xd(e,n,r,!1,!1))}else i===vt?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,xd(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===ke||o===ln||o===vt&&4&e.type)this.addMatch(e.index,-2);else{const r=xd(e,n,o,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function e3(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function n3(t,n,e,i){return-1===e?function t3(t,n){return 11&t.type?za(t,n):4&t.type?ch(t,n):null}(n,t):-2===e?function i3(t,n,e){return e===ke?za(n,t):e===vt?ch(n,t):e===ln?PA(n,t):void 0}(t,n,i):fc(t,t[1],e,n)}function NA(t,n,e,i){const o=n[19].queries[i];if(null===o.matches){const r=t.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:n3(n,r[c],s[l+1],e.metadata.read))}o.matches=a}return o.matches}function Vm(t,n,e,i){const o=t.queries.getByIndex(e),r=o.matches;if(null!==r){const s=NA(t,n,o,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(s[a/2]);else{const c=r[a+1],u=n[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&Vm(f[1],f,c,i)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const w=d[f];Vm(w[1],w,c,i)}}}}}return i}function xe(t){const n=Fe(),e=Qt(),i=gC();Zp(i+1);const o=BA(e,i);if(t.dirty&&function Ak(t){return 4==(4&t[2])}(n)===(2==(2&o.metadata.flags))){if(null===o.matches)t.reset([]);else{const r=o.crossesNgTemplate?Vm(e,n,i,[]):NA(e,n,o,i);t.reset(r,vL),t.notifyOnChanges()}return!0}return!1}function Et(t,n,e){const i=Qt();i.firstCreatePass&&(FA(i,new kA(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),LA(i,Fe(),n)}function Je(t,n,e,i){const o=Qt();if(o.firstCreatePass){const r=ci();FA(o,new kA(n,e,i),r.index),function r3(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(o,t),2==(2&e)&&(o.staticContentQueries=!0)}LA(o,Fe(),e)}function Oe(){return function o3(t,n){return t[19].queries[n].queryList}(Fe(),gC())}function LA(t,n,e){const i=new as(4==(4&e));D0(t,n,i,i.destroy),null===n[19]&&(n[19]=new Lm),n[19].queries.push(new Nm(i))}function FA(t,n,e){null===t.queries&&(t.queries=new Fm),t.queries.track(new Bm(n,e))}function BA(t,n){return t.queries.getByIndex(n)}function dn(t,n){return ch(t,n)}function dh(...t){}const hh=new Pe("Application Initializer");let fh=(()=>{class t{constructor(e){this.appInits=e,this.resolve=dh,this.reject=dh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const r=this.appInits[o]();if(Pc(r))e.push(r);else if(Sm(r)){const s=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(oe(hh,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ul=new Pe("AppId",{providedIn:"root",factory:function iw(){return`${zm()}${zm()}${zm()}`}});function zm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ow=new Pe("Platform Initializer"),xo=new Pe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),qm=new Pe("appBootstrapListener"),pi=new Pe("AnimationModuleType");let w3=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const gr=new Pe("LocaleId",{providedIn:"root",factory:()=>un(gr,gt.Optional|gt.SkipSelf)||function D3(){return"undefined"!=typeof $localize&&$localize.locale||al}()});class M3{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Wm=(()=>{class t{compileModuleSync(e){return new Im(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=Pr(so(e).declarations).reduce((s,a)=>{const l=an(a);return l&&s.push(new Oc(l)),s},[]);return new M3(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const I3=(()=>Promise.resolve(0))();function $m(t){"undefined"==typeof Zone?I3.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class lt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ee(!1),this.onMicrotaskEmpty=new Ee(!1),this.onStable=new Ee(!1),this.onError=new Ee(!1),"undefined"==typeof Zone)throw new Te(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const r=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new r("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function R3(){let t=mn.requestAnimationFrame,n=mn.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function N3(t){const n=()=>{!function k3(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(mn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Qm(t),t.isCheckStableRunning=!0,Ym(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Qm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,s,a)=>{try{return aw(t),e.invokeTask(o,r,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),lw(t)}},onInvoke:(e,i,o,r,s,a,l)=>{try{return aw(t),e.invoke(o,r,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),lw(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Qm(t),Ym(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!lt.isInAngularZone())throw new Te(909,!1)}static assertNotInAngularZone(){if(lt.isInAngularZone())throw new Te(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,n,P3,dh,dh);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const P3={};function Ym(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Qm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function aw(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function lw(t){t._nesting--,Ym(t)}class L3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ee,this.onMicrotaskEmpty=new Ee,this.onStable=new Ee,this.onError=new Ee}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}const cw=new Pe(""),ph=new Pe("");let Wc,Km=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Wc||(function F3(t){Wc=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{lt.assertNotInAngularZone(),$m(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$m(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(oe(lt),oe(Zm),oe(ph))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),Zm=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){var o;return null!==(o=null==Wc?void 0:Wc.findTestabilityInTree(this,e,i))&&void 0!==o?o:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),mr=null;const uw=new Pe("AllowMultipleToken"),Xm=new Pe("PlatformDestroyListeners");class dw{constructor(n,e){this.name=n,this.token=e}}function fw(t,n,e=[]){const i=`Platform: ${n}`,o=new Pe(i);return(r=[])=>{let s=Jm();if(!s||s.injector.get(uw,!1)){const a=[...e,...r,{provide:o,useValue:!0}];t?t(a):function j3(t){if(mr&&!mr.get(uw,!1))throw new Te(400,!1);mr=t;const n=t.get(gw);(function hw(t){const n=t.get(ow,null);n&&n.forEach(e=>e())})(t)}(function pw(t=[],n){return _n.create({name:n,providers:[{provide:Sg,useValue:"platform"},{provide:Xm,useValue:new Set([()=>mr=null])},...t]})}(a,i))}return function H3(t){const n=Jm();if(!n)throw new Te(401,!1);return n}()}}function Jm(){var t;return null!==(t=null==mr?void 0:mr.get(gw))&&void 0!==t?t:null}let gw=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function vw(t,n){let e;return e="noop"===t?new L3:("zone.js"===t?void 0:t)||new lt(n),e}(null==i?void 0:i.ngZone,function mw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),r=[{provide:lt,useValue:o}];return o.run(()=>{const s=_n.create({providers:r,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Rr,null);if(!l)throw new Te(402,!1);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{gh(this._modules,a),c.unsubscribe()})}),function _w(t,n,e){try{const i=e();return Pc(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,o,()=>{const c=a.injector.get(fh);return c.runInitializers(),c.donePromise.then(()=>(function GE(t){ro(t,"Expected localeId to be defined"),"string"==typeof t&&(HE=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(gr,al)||al),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const o=bw({},i);return function B3(t,n,e){const i=new Im(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Gs);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Te(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Te(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Xm,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(oe(_n))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function bw(t,n){return Array.isArray(n)?n.reduce(bw,t):Object.assign(Object.assign({},t),n)}let Gs=(()=>{class t{constructor(e,i,o){this._zone=e,this._injector=i,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new x(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new x(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{lt.assertNotInAngularZone(),$m(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{lt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Ni(r,s.pipe($y()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof mS;if(!this._injector.get(fh).done)throw!o&&function Aa(t){const n=an(t)||Li(t)||Fi(t);return null!==n&&n.standalone}(e),new Te(405,false);let s;s=o?e:this._injector.get(Or).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function V3(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Hs),c=s.create(_n.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(cw,null);return null==d||d.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),gh(this.components,c),null==d||d.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Te(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;gh(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(qm,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>gh(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Te(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(oe(lt),oe(ns),oe(Rr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function gh(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Cw=!0,Vt=(()=>{class t{}return t.__NG_ELEMENT_ID__=q3,t})();function q3(t){return function W3(t,n,e){if(vd(t)&&!e){const i=lo(t.index,n);return new xc(i,i)}return 47&t.type?new xc(n[16],n):null}(ci(),Fe(),16==(16&t))}class Dw{constructor(){}supports(n){return Ic(n)}create(n){return new X3(n)}}const Z3=(t,n)=>n;class X3{constructor(n){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=n||Z3}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex<Mw(i,o,r)?e:i,a=Mw(s,o,r),l=s.currentIndex;if(s===i)o--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)o++;else{r||(r=[]);const c=a-o,u=l-o;if(c!=u){for(let f=0;f<c;f++){const w=f<r.length?r[f]:r[f]=0,z=w+f;u<=z&&z<c&&(r[f]=w+1)}r[s.previousIndex]=u-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Ic(n))throw new Te(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o,r,s,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],s=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,r,s,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,s,a),i=!0),e=e._next}else o=0,function kB(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[Vs()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new J3(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Tw),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Tw),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class J3{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class e4{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Tw{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new e4,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Mw(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i<e.length&&(o=e[i]),i+n+o}class xw{constructor(){}supports(n){return n instanceof Map||ym(n)}create(){return new t4}}class t4{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||ym(n)))throw new Te(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,o)=>{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const i=new n4(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class n4{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ow(){return new $c([new Dw])}let $c=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ow()),deps:[[t,new Va,new ts]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new Te(901,!1)}}return t.\u0275prov=Ce({token:t,providedIn:"root",factory:Ow}),t})();function Iw(){return new qs([new xw])}let qs=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Iw()),deps:[[t,new Va,new ts]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new Te(901,!1)}}return t.\u0275prov=Ce({token:t,providedIn:"root",factory:Iw}),t})();const r4=fw(null,"core",[]);let s4=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(oe(Gs))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();let _h=null;function vr(){return _h}const dt=new Pe("DocumentToken");let ov=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:function(){return function u4(){return oe(Rw)}()},providedIn:"platform"}),t})();const d4=new Pe("Location Initialized");let Rw=(()=>{class t extends ov{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(e){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,o){Pw()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){Pw()?this._history.replaceState(e,i,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(oe(dt))},t.\u0275prov=Ce({token:t,factory:function(){return function h4(){return new Rw(oe(dt))}()},providedIn:"platform"}),t})();function Pw(){return!!window.history.pushState}function rv(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function kw(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Br(t){return t&&"?"!==t[0]?"?"+t:t}let Ws=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:function(){return un(Nw)},providedIn:"root"}),t})();const sv=new Pe("appBaseHref");let Nw=(()=>{class t extends Ws{constructor(e,i){var o,r,s;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(s=null!==(o=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==o?o:null===(r=un(dt).location)||void 0===r?void 0:r.origin)&&void 0!==s?s:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return rv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Br(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const s=this.prepareExternalUrl(o+Br(r));this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){const s=this.prepareExternalUrl(o+Br(r));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(oe(ov),oe(sv,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),f4=(()=>{class t extends Ws{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=rv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let s=this.prepareExternalUrl(o+Br(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){let s=this.prepareExternalUrl(o+Br(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(oe(ov),oe(sv,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),Yc=(()=>{class t{constructor(e){this._subject=new Ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=kw(Lw(i)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var e;null===(e=this._urlChangeSubscription)||void 0===e||e.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Br(i))}normalize(e){return t.stripTrailingSlash(function g4(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,Lw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Br(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Br(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var i,o;null===(o=(i=this._locationStrategy).historyGo)||void 0===o||o.call(i,e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var i;const o=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(o,1),0===this._urlChangeListeners.length&&(null===(i=this._urlChangeSubscription)||void 0===i||i.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return t.normalizeQueryParams=Br,t.joinWithSlash=rv,t.stripTrailingSlash=kw,t.\u0275fac=function(e){return new(e||t)(oe(Ws))},t.\u0275prov=Ce({token:t,factory:function(){return function p4(){return new Yc(oe(Ws))}()},providedIn:"root"}),t})();function Lw(t){return t.replace(/\/index.html$/,"")}var eo=(()=>((eo=eo||{})[eo.Decimal=0]="Decimal",eo[eo.Percent=1]="Percent",eo[eo.Currency=2]="Currency",eo[eo.Scientific=3]="Scientific",eo))(),Wn=(()=>((Wn=Wn||{})[Wn.Format=0]="Format",Wn[Wn.Standalone=1]="Standalone",Wn))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),Rn=(()=>((Rn=Rn||{})[Rn.Short=0]="Short",Rn[Rn.Medium=1]="Medium",Rn[Rn.Long=2]="Long",Rn[Rn.Full=3]="Full",Rn))(),mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Group=1]="Group",mt[mt.List=2]="List",mt[mt.PercentSign=3]="PercentSign",mt[mt.PlusSign=4]="PlusSign",mt[mt.MinusSign=5]="MinusSign",mt[mt.Exponential=6]="Exponential",mt[mt.SuperscriptingExponent=7]="SuperscriptingExponent",mt[mt.PerMille=8]="PerMille",mt[mt.Infinity=9]="Infinity",mt[mt.NaN=10]="NaN",mt[mt.TimeSeparator=11]="TimeSeparator",mt[mt.CurrencyDecimal=12]="CurrencyDecimal",mt[mt.CurrencyGroup=13]="CurrencyGroup",mt))();function bh(t,n){return Io(Hi(t)[Ze.DateFormat],n)}function yh(t,n){return Io(Hi(t)[Ze.TimeFormat],n)}function Ch(t,n){return Io(Hi(t)[Ze.DateTimeFormat],n)}function Oo(t,n){const e=Hi(t),i=e[Ze.NumberSymbols][n];if(void 0===i){if(n===mt.CurrencyDecimal)return e[Ze.NumberSymbols][mt.Decimal];if(n===mt.CurrencyGroup)return e[Ze.NumberSymbols][mt.Group]}return i}function Bw(t){if(!t[Ze.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ze.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Io(t,n){for(let e=n;e>-1;e--)if(void 0!==t[e])return t[e];throw new Error("Locale data API: locale data undefined")}function lv(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const M4=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},x4=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var hi=(()=>((hi=hi||{})[hi.Short=0]="Short",hi[hi.ShortGMT=1]="ShortGMT",hi[hi.Long=2]="Long",hi[hi.Extended=3]="Extended",hi))(),_t=(()=>((_t=_t||{})[_t.FullYear=0]="FullYear",_t[_t.Month=1]="Month",_t[_t.Date=2]="Date",_t[_t.Hours=3]="Hours",_t[_t.Minutes=4]="Minutes",_t[_t.Seconds=5]="Seconds",_t[_t.FractionalSeconds=6]="FractionalSeconds",_t[_t.Day=7]="Day",_t))(),Nt=(()=>((Nt=Nt||{})[Nt.DayPeriods=0]="DayPeriods",Nt[Nt.Days=1]="Days",Nt[Nt.Months=2]="Months",Nt[Nt.Eras=3]="Eras",Nt))();function O4(t,n,e,i){let o=function V4(t){if(Uw(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,r=1,s=1]=t.split("-").map(a=>+a);return Sh(o,r-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(M4))return function j4(t){const n=new Date(0);let e=0,i=0;const o=t[8]?n.setUTCFullYear:n.setFullYear,r=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!Uw(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Vr(e,n)||n;let a,s=[];for(;n;){if(a=x4.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=o.getTimezoneOffset();i&&(l=jw(i,l),o=function B4(t,n,e){const i=e?-1:1,o=t.getTimezoneOffset();return function F4(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(jw(n,o)-o))}(o,i,!0));let c="";return s.forEach(u=>{const d=function L4(t){if(uv[t])return uv[t];let n;switch(t){case"G":case"GG":case"GGG":n=bn(Nt.Eras,qt.Abbreviated);break;case"GGGG":n=bn(Nt.Eras,qt.Wide);break;case"GGGGG":n=bn(Nt.Eras,qt.Narrow);break;case"y":n=ei(_t.FullYear,1,0,!1,!0);break;case"yy":n=ei(_t.FullYear,2,0,!0,!0);break;case"yyy":n=ei(_t.FullYear,3,0,!1,!0);break;case"yyyy":n=ei(_t.FullYear,4,0,!1,!0);break;case"Y":n=Dh(1);break;case"YY":n=Dh(2,!0);break;case"YYY":n=Dh(3);break;case"YYYY":n=Dh(4);break;case"M":case"L":n=ei(_t.Month,1,1);break;case"MM":case"LL":n=ei(_t.Month,2,1);break;case"MMM":n=bn(Nt.Months,qt.Abbreviated);break;case"MMMM":n=bn(Nt.Months,qt.Wide);break;case"MMMMM":n=bn(Nt.Months,qt.Narrow);break;case"LLL":n=bn(Nt.Months,qt.Abbreviated,Wn.Standalone);break;case"LLLL":n=bn(Nt.Months,qt.Wide,Wn.Standalone);break;case"LLLLL":n=bn(Nt.Months,qt.Narrow,Wn.Standalone);break;case"w":n=cv(1);break;case"ww":n=cv(2);break;case"W":n=cv(1,!0);break;case"d":n=ei(_t.Date,1);break;case"dd":n=ei(_t.Date,2);break;case"c":case"cc":n=ei(_t.Day,1);break;case"ccc":n=bn(Nt.Days,qt.Abbreviated,Wn.Standalone);break;case"cccc":n=bn(Nt.Days,qt.Wide,Wn.Standalone);break;case"ccccc":n=bn(Nt.Days,qt.Narrow,Wn.Standalone);break;case"cccccc":n=bn(Nt.Days,qt.Short,Wn.Standalone);break;case"E":case"EE":case"EEE":n=bn(Nt.Days,qt.Abbreviated);break;case"EEEE":n=bn(Nt.Days,qt.Wide);break;case"EEEEE":n=bn(Nt.Days,qt.Narrow);break;case"EEEEEE":n=bn(Nt.Days,qt.Short);break;case"a":case"aa":case"aaa":n=bn(Nt.DayPeriods,qt.Abbreviated);break;case"aaaa":n=bn(Nt.DayPeriods,qt.Wide);break;case"aaaaa":n=bn(Nt.DayPeriods,qt.Narrow);break;case"b":case"bb":case"bbb":n=bn(Nt.DayPeriods,qt.Abbreviated,Wn.Standalone,!0);break;case"bbbb":n=bn(Nt.DayPeriods,qt.Wide,Wn.Standalone,!0);break;case"bbbbb":n=bn(Nt.DayPeriods,qt.Narrow,Wn.Standalone,!0);break;case"B":case"BB":case"BBB":n=bn(Nt.DayPeriods,qt.Abbreviated,Wn.Format,!0);break;case"BBBB":n=bn(Nt.DayPeriods,qt.Wide,Wn.Format,!0);break;case"BBBBB":n=bn(Nt.DayPeriods,qt.Narrow,Wn.Format,!0);break;case"h":n=ei(_t.Hours,1,-12);break;case"hh":n=ei(_t.Hours,2,-12);break;case"H":n=ei(_t.Hours,1);break;case"HH":n=ei(_t.Hours,2);break;case"m":n=ei(_t.Minutes,1);break;case"mm":n=ei(_t.Minutes,2);break;case"s":n=ei(_t.Seconds,1);break;case"ss":n=ei(_t.Seconds,2);break;case"S":n=ei(_t.FractionalSeconds,1);break;case"SS":n=ei(_t.FractionalSeconds,2);break;case"SSS":n=ei(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Ah(hi.Short);break;case"ZZZZZ":n=Ah(hi.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Ah(hi.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Ah(hi.Long);break;default:return null}return uv[t]=n,n}(u);c+=d?d(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Sh(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Vr(t,n){const e=function m4(t){return Hi(t)[Ze.LocaleId]}(t);if(Qc[e]=Qc[e]||{},Qc[e][n])return Qc[e][n];let i="";switch(n){case"shortDate":i=bh(t,Rn.Short);break;case"mediumDate":i=bh(t,Rn.Medium);break;case"longDate":i=bh(t,Rn.Long);break;case"fullDate":i=bh(t,Rn.Full);break;case"shortTime":i=yh(t,Rn.Short);break;case"mediumTime":i=yh(t,Rn.Medium);break;case"longTime":i=yh(t,Rn.Long);break;case"fullTime":i=yh(t,Rn.Full);break;case"short":const o=Vr(t,"shortTime"),r=Vr(t,"shortDate");i=Eh(Ch(t,Rn.Short),[o,r]);break;case"medium":const s=Vr(t,"mediumTime"),a=Vr(t,"mediumDate");i=Eh(Ch(t,Rn.Medium),[s,a]);break;case"long":const l=Vr(t,"longTime"),c=Vr(t,"longDate");i=Eh(Ch(t,Rn.Long),[l,c]);break;case"full":const u=Vr(t,"fullTime"),d=Vr(t,"fullDate");i=Eh(Ch(t,Rn.Full),[u,d])}return i&&(Qc[e][n]=i),i}function Eh(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function er(t,n,e="-",i,o){let r="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,r=e));let s=String(t);for(;s.length<n;)s="0"+s;return i&&(s=s.slice(s.length-n)),r+s}function ei(t,n,e=0,i=!1,o=!1){return function(r,s){let a=function R4(t,n){switch(t){case _t.FullYear:return n.getFullYear();case _t.Month:return n.getMonth();case _t.Date:return n.getDate();case _t.Hours:return n.getHours();case _t.Minutes:return n.getMinutes();case _t.Seconds:return n.getSeconds();case _t.FractionalSeconds:return n.getMilliseconds();case _t.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((e>0||a>-e)&&(a+=e),t===_t.Hours)0===a&&-12===e&&(a=12);else if(t===_t.FractionalSeconds)return function I4(t,n){return er(t,3).substring(0,n)}(a,n);const l=Oo(s,mt.MinusSign);return er(a,n,l,i,o)}}function bn(t,n,e=Wn.Format,i=!1){return function(o,r){return function P4(t,n,e,i,o,r){switch(e){case Nt.Months:return function b4(t,n,e){const i=Hi(t),r=Io([i[Ze.MonthsFormat],i[Ze.MonthsStandalone]],n);return Io(r,e)}(n,o,i)[t.getMonth()];case Nt.Days:return function _4(t,n,e){const i=Hi(t),r=Io([i[Ze.DaysFormat],i[Ze.DaysStandalone]],n);return Io(r,e)}(n,o,i)[t.getDay()];case Nt.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(r){const c=function E4(t){const n=Hi(t);return Bw(n),(n[Ze.ExtraData][2]||[]).map(i=>"string"==typeof i?lv(i):[lv(i[0]),lv(i[1])])}(n),u=function A4(t,n,e){const i=Hi(t);Bw(i);const r=Io([i[Ze.ExtraData][0],i[Ze.ExtraData][1]],n)||[];return Io(r,e)||[]}(n,o,i),d=c.findIndex(f=>{if(Array.isArray(f)){const[w,z]=f,ne=s>=w.hours&&a>=w.minutes,fe=s<z.hours||s===z.hours&&a<z.minutes;if(w.hours<z.hours){if(ne&&fe)return!0}else if(ne||fe)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function v4(t,n,e){const i=Hi(t),r=Io([i[Ze.DayPeriodsFormat],i[Ze.DayPeriodsStandalone]],n);return Io(r,e)}(n,o,i)[s<12?0:1];case Nt.Eras:return function y4(t,n){return Io(Hi(t)[Ze.Eras],n)}(n,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(o,r,t,n,e,i)}}function Ah(t){return function(n,e,i){const o=-1*i,r=Oo(e,mt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case hi.Short:return(o>=0?"+":"")+er(s,2,r)+er(Math.abs(o%60),2,r);case hi.ShortGMT:return"GMT"+(o>=0?"+":"")+er(s,1,r);case hi.Long:return"GMT"+(o>=0?"+":"")+er(s,2,r)+":"+er(Math.abs(o%60),2,r);case hi.Extended:return 0===i?"Z":(o>=0?"+":"")+er(s,2,r)+":"+er(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Vw(t){return Sh(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function cv(t,n=!1){return function(e,i){let o;if(n){const r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();o=1+Math.floor((s+r)/7)}else{const r=Vw(e),s=function N4(t){const n=Sh(t,0,1).getDay();return Sh(t,0,1+(n<=4?4:11)-n)}(r.getFullYear()),a=r.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return er(o,t,Oo(i,mt.MinusSign))}}function Dh(t,n=!1){return function(e,i){return er(Vw(e).getFullYear(),t,Oo(i,mt.MinusSign),n)}}const uv={};function jw(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Uw(t){return t instanceof Date&&!isNaN(t.valueOf())}const U4=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function pv(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function qw(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}let Ii=(()=>{class t{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ic(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${pn(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return t.\u0275fac=function(e){return new(e||t)(h($c),h(qs),h(ke),h(To))},t.\u0275dir=ge({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class J4{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ro=(()=>{class t{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new J4(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,s),Yw(a,o)}});for(let o=0,r=i.length;o<r;o++){const a=i.get(o).context;a.index=o,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{Yw(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(h(ln),h(vt),h($c))},t.\u0275dir=ge({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Yw(t,n){t.context.$implicit=n.item}let Zt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new tj,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Qw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Qw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(h(ln),h(vt))},t.\u0275dir=ge({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class tj{constructor(){this.$implicit=null,this.ngIf=null}}function Qw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${pn(n)}'.`)}class mv{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let dl=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),Mh=(()=>{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new mv(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(h(ln),h(vt),h(dl,9))},t.\u0275dir=ge({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),Kw=(()=>{class t{constructor(e,i,o){o._addDefault(new mv(e,i))}}return t.\u0275fac=function(e){return new(e||t)(h(ln),h(vt),h(dl,9))},t.\u0275dir=ge({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),hl=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),s=-1===o.indexOf("-")?void 0:Xi.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(qs),h(To))},t.\u0275dir=ge({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),ls=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:r,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(o,r,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[qn]}),t})();function tr(t,n){return new Te(2100,!1)}class ij{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}}class oj{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const rj=new oj,sj=new ij;let Xw=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Pc(e))return rj;if(Z0(e))return sj;throw tr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(h(Vt,16))},t.\u0275pipe=zn({name:"async",type:t,pure:!1,standalone:!0}),t})(),vv=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw tr();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=zn({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const uj=new Pe("DATE_PIPE_DEFAULT_TIMEZONE");let xh=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",o,r){var s;if(null==e||""===e||e!=e)return null;try{return O4(e,i,r||this.locale,null!==(s=null!=o?o:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw tr()}}}return t.\u0275fac=function(e){return new(e||t)(h(gr,16),h(uj,24))},t.\u0275pipe=zn({name:"date",type:t,pure:!0,standalone:!0}),t})(),Jw=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=zn({name:"json",type:t,pure:!1,standalone:!0}),t})(),_v=(()=>{class t{constructor(e){this._locale=e}transform(e,i,o){if(!function bv(t){return!(null==t||""===t||t!=t)}(e))return null;o=o||this._locale;try{return function $4(t,n,e){return function hv(t,n,e,i,o,r,s=!1){let a="",l=!1;if(isFinite(t)){let c=function Q4(t){let i,o,r,s,a,n=Math.abs(t)+"",e=0;for((o=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(o<0&&(o=r),o+=+n.slice(r+1),n=n.substring(0,r)):o<0&&(o=n.length),r=0;"0"===n.charAt(r);r++);if(r===(a=n.length))i=[0],o=1;else{for(a--;"0"===n.charAt(a);)a--;for(o-=r,i=[],s=0;r<=a;r++,s++)i[s]=Number(n.charAt(r))}return o>22&&(i=i.splice(0,21),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}(t);s&&(c=function Y4(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,f=n.maxFrac;if(r){const _e=r.match(U4);if(null===_e)throw new Error(`${r} is not a valid digit info`);const pe=_e[1],ve=_e[3],He=_e[5];null!=pe&&(u=pv(pe)),null!=ve&&(d=pv(ve)),null!=He?f=pv(He):null!=ve&&d>f&&(f=d)}!function K4(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,o=i.length-t.integerLen;const r=Math.min(Math.max(n,o),e);let s=r+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d<i.length;d++)i[d]=0}else{o=Math.max(0,o),t.integerLen=1,i.length=Math.max(1,s=r+1),i[0]=0;for(let d=1;d<s;d++)i[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;o<Math.max(0,r);o++)i.push(0);let l=0!==r;const c=n+t.integerLen,u=i.reduceRight(function(d,f,w,z){return z[w]=(f+=d)<10?f:f-10,l&&(0===z[w]&&w>=c?z.pop():l=!1),f>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,f);let w=c.digits,z=c.integerLen;const ne=c.exponent;let fe=[];for(l=w.every(_e=>!_e);z<u;z++)w.unshift(0);for(;z<0;z++)w.unshift(0);z>0?fe=w.splice(z,w.length):(fe=w,w=[0]);const he=[];for(w.length>=n.lgSize&&he.unshift(w.splice(-n.lgSize,w.length).join(""));w.length>n.gSize;)he.unshift(w.splice(-n.gSize,w.length).join(""));w.length&&he.unshift(w.join("")),a=he.join(Oo(e,i)),fe.length&&(a+=Oo(e,o)+fe.join("")),ne&&(a+=Oo(e,mt.Exponential)+"+"+ne)}else a=Oo(e,mt.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function fv(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),o=i[0],r=i[1],s=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const d=l.charAt(u);"0"===d?e.minFrac=e.maxFrac=u+1:"#"===d?e.maxFrac=u+1:e.posSuf+=d}const c=a.split(",");if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const u=o.length-e.posPre.length-e.posSuf.length,d=r.indexOf("#");e.negPre=r.substring(0,d).replace(/'/g,""),e.negSuf=r.slice(d+u).replace(/'/g,"")}else e.negPre=n+e.posPre,e.negSuf=e.posSuf;return e}(function av(t,n){return Hi(t)[Ze.NumberFormats][n]}(n,eo.Decimal),Oo(n,mt.MinusSign)),n,mt.Group,mt.Decimal,e)}(function yv(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),o,i)}catch(r){throw tr()}}}return t.\u0275fac=function(e){return new(e||t)(h(gr,16))},t.\u0275pipe=zn({name:"number",type:t,pure:!0,standalone:!0}),t})();let zi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();const tD="browser";function $s(t){return t===tD}function fl(t){return"server"===t}let Sj=(()=>{class t{}return t.\u0275prov=Ce({token:t,providedIn:"root",factory:()=>new Ej(oe(dt),window)}),t})();class Ej{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function Aj(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const s=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=nD(this.window.history)||nD(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function nD(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class iD{}class Ev extends class Hj extends class c4{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function l4(t){_h||(_h=t)}(new Ev)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function Gj(){return Xc=Xc||document.querySelector("base"),Xc?Xc.getAttribute("href"):null}();return null==e?null:function zj(t){Ih=Ih||document.createElement("a"),Ih.setAttribute("href",t);const n=Ih.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Xc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return qw(document.cookie,n)}}let Ih,Xc=null;const aD=new Pe("TRANSITION_ID"),Wj=[{provide:hh,useFactory:function qj(t,n,e){return()=>{e.get(fh).donePromise.then(()=>{const i=vr(),o=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<o.length;r++)i.remove(o[r])})}},deps:[aD,dt,_n],multi:!0}];let Yj=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const Rh=new Pe("EventManagerPlugins");let Ph=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let r=0;r<o.length;r++){const s=o[r];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(oe(Rh),oe(lt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();class lD{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const o=vr().getGlobalEventTarget(this._doc,n);if(!o)throw new Error(`Unsupported event target ${o} for event ${e}`);return this.addEventListener(o,e,i)}}let cD=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),Jc=(()=>{class t extends cD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,o){e.forEach(r=>{const s=this._doc.createElement("style");s.textContent=r,o.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(uD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(uD))}}return t.\u0275fac=function(e){return new(e||t)(oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();function uD(t){vr().remove(t)}const Av={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},wv=/%COMP%/g;function kh(t,n,e){for(let i=0;i<n.length;i++){let o=n[i];Array.isArray(o)?kh(t,o,e):(o=o.replace(wv,t),e.push(o))}return e}function fD(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Nh=(()=>{class t{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Dv(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case zo.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new eU(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case zo.ShadowDom:return new tU(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=kh(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(oe(Ph),oe(Jc),oe(ul))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();class Dv{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(Av[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(gD(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(gD(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Av[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Av[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(Xi.DashCase|Xi.Important)?n.style.setProperty(e,i,o&Xi.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Xi.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,fD(i)):this.eventManager.addEventListener(n,e,fD(i))}}function gD(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class eU extends Dv{constructor(n,e,i,o){super(n),this.component=i;const r=kh(o+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function Zj(t){return"_ngcontent-%COMP%".replace(wv,t)}(o+"-"+i.id),this.hostAttr=function Xj(t){return"_nghost-%COMP%".replace(wv,t)}(o+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class tU extends Dv{constructor(n,e,i,o){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=kh(o.id,o.styles,[]);for(let s=0;s<r.length;s++){const a=document.createElement("style");a.textContent=r[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let nU=(()=>{class t extends lD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return t.\u0275fac=function(e){return new(e||t)(oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const mD=["alt","control","meta","shift"],iU={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},oU={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let rU=(()=>{class t extends lD{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),s=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),mD.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let o=iU[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),mD.forEach(s=>{s!==o&&(0,oU[s])(e)&&(r+=s+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const _D=[{provide:xo,useValue:tD},{provide:ow,useValue:function sU(){Ev.makeCurrent()},multi:!0},{provide:dt,useFactory:function lU(){return function MN(t){fg=t}(document),document},deps:[]}],cU=fw(r4,"browser",_D),bD=new Pe(""),yD=[{provide:ph,useClass:class $j{addToWindow(n){mn.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},mn.getAllAngularTestabilities=()=>n.getAllTestabilities(),mn.getAllAngularRootElements=()=>n.getAllRootElements(),mn.frameworkStabilizers||(mn.frameworkStabilizers=[]),mn.frameworkStabilizers.push(i=>{const o=mn.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&i(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const o=n.getTestability(e);return null!=o?o:i?vr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}},deps:[]},{provide:cw,useClass:Km,deps:[lt,Zm,ph]},{provide:Km,useClass:Km,deps:[lt,Zm,ph]}],CD=[{provide:Sg,useValue:"root"},{provide:Rr,useFactory:function aU(){return new Rr},deps:[]},{provide:Rh,useClass:nU,multi:!0,deps:[dt,lt,xo]},{provide:Rh,useClass:rU,multi:!0,deps:[dt]},{provide:Nh,useClass:Nh,deps:[Ph,Jc,ul]},{provide:Ac,useExisting:Nh},{provide:cD,useExisting:Jc},{provide:Jc,useClass:Jc,deps:[dt]},{provide:Ph,useClass:Ph,deps:[Rh,lt]},{provide:iD,useClass:Yj,deps:[]},[]];let SD=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:ul,useValue:e.appId},{provide:aD,useExisting:ul},Wj]}}}return t.\u0275fac=function(e){return new(e||t)(oe(bD,12))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[...CD,...yD],imports:[zi,s4]}),t})(),ED=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(oe(dt))},t.\u0275prov=Ce({token:t,factory:function(e){let i=null;return i=e?new e:function dU(){return new ED(oe(dt))}(),i},providedIn:"root"}),t})();"undefined"!=typeof window&&window;let Lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:function(e){let i=null;return i=e?new(e||t):oe(DD),i},providedIn:"root"}),t})(),DD=(()=>{class t extends Lh{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Jt.NONE:return i;case Jt.HTML:return ur(i,"HTML")?ho(i):rS(this._doc,String(i)).toString();case Jt.STYLE:return ur(i,"Style")?ho(i):i;case Jt.SCRIPT:if(ur(i,"Script"))return ho(i);throw new Error("unsafe value used in a script context");case Jt.URL:return ur(i,"URL")?ho(i):Fd(String(i));case Jt.RESOURCE_URL:if(ur(i,"ResourceURL"))return ho(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function FN(t){return new IN(t)}(e)}bypassSecurityTrustStyle(e){return function BN(t){return new RN(t)}(e)}bypassSecurityTrustScript(e){return function VN(t){return new PN(t)}(e)}bypassSecurityTrustUrl(e){return function jN(t){return new kN(t)}(e)}bypassSecurityTrustResourceUrl(e){return function UN(t){return new NN(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(oe(dt))},t.\u0275prov=Ce({token:t,factory:function(e){let i=null;return i=e?new e:function _U(t){return new DD(t.get(dt))}(oe(_n)),i},providedIn:"root"}),t})();class TD{}const jr="*";function qi(t,n){return{type:7,name:t,definitions:n,options:{}}}function $n(t,n=null){return{type:4,styles:n,timings:t}}function MD(t,n=null){return{type:3,steps:t,options:n}}function xD(t,n=null){return{type:2,steps:t,options:n}}function kt(t){return{type:6,styles:t,offset:null}}function gi(t,n,e){return{type:0,name:t,styles:n,options:e}}function Vn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function xv(t=null){return{type:9,options:t}}function Ov(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function OD(t){Promise.resolve().then(t)}class eu{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){OD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class ID{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?OD(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function RD(t){return new Te(3e3,!1)}function tH(){return"undefined"!=typeof window&&void 0!==window.document}function Rv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function us(t){switch(t.length){case 0:return new eu;case 1:return t[0];default:return new ID(t)}}function PD(t,n,e,i,o=new Map,r=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),f=d==l,w=f&&c||new Map;u.forEach((z,ne)=>{let fe=ne,he=z;if("offset"!==ne)switch(fe=n.normalizePropertyName(fe,s),he){case"!":he=o.get(ne);break;case jr:he=r.get(ne);break;default:he=n.normalizeStyleValue(ne,fe,he,s)}w.set(fe,he)}),f||a.push(w),c=w,l=d}),s.length)throw function GU(t){return new Te(3502,!1)}();return a}function Pv(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&kv(e,"start",t)));break;case"done":t.onDone(()=>i(e&&kv(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&kv(e,"destroy",t)))}}function kv(t,n,e){const i=e.totalTime,r=Nv(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),s=t._data;return null!=s&&(r._data=s),r}function Nv(t,n,e,i,o="",r=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function po(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function kD(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let Lv=(t,n)=>!1,ND=(t,n,e)=>[],LD=null;function Fv(t){const n=t.parentNode||t.host;return n===LD?null:n}(Rv()||"undefined"!=typeof Element)&&(tH()?(LD=(()=>document.documentElement)(),Lv=(t,n)=>{for(;n;){if(n===t)return!0;n=Fv(n)}return!1}):Lv=(t,n)=>t.contains(n),ND=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Ys=null,FD=!1;const BD=Lv,VD=ND;let jD=(()=>{class t{validateStyleProperty(e){return function iH(t){Ys||(Ys=function oH(){return"undefined"!=typeof document?document.body:null}()||{},FD=!!Ys.style&&"WebkitAppearance"in Ys.style);let n=!0;return Ys.style&&!function nH(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Ys.style,!n&&FD&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ys.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return BD(e,i)}getParentElement(e){return Fv(e)}query(e,i,o){return VD(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,s,a=[],l){return new eu(o,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),Bv=(()=>{class t{}return t.NOOP=new jD,t})();const Vv="ng-enter",Fh="ng-leave",Bh="ng-trigger",Vh=".ng-trigger",HD="ng-animating",jv=".ng-animating";function Ur(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Uv(parseFloat(n[1]),n[2])}function Uv(t,n){return"s"===n?1e3*t:t}function jh(t,n,e){return t.hasOwnProperty("duration")?t:function aH(t,n,e){let o,r=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(RD()),{duration:0,delay:0,easing:""};o=Uv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=Uv(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=t;if(!e){let a=!1,l=n.length;o<0&&(n.push(function CU(){return new Te(3100,!1)}()),a=!0),r<0&&(n.push(function SU(){return new Te(3101,!1)}()),a=!0),a&&n.splice(l,0,RD())}return{duration:o,delay:r,easing:s}}(t,n,e)}function tu(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function GD(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function ds(t,n=new Map,e){if(e)for(let[i,o]of e)n.set(i,o);for(let[i,o]of t)n.set(i,o);return n}function qD(t,n,e){return e?n+":"+e+";":""}function WD(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=qD(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=qD(0,dH(e),t.style[e]));t.setAttribute("style",n)}function _r(t,n,e){t.style&&(n.forEach((i,o)=>{const r=Gv(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i}),Rv()&&WD(t))}function Qs(t,n){t.style&&(n.forEach((e,i)=>{const o=Gv(i);t.style[o]=""}),Rv()&&WD(t))}function nu(t){return Array.isArray(t)?1==t.length?t[0]:xD(t):t}const Hv=new RegExp("{{\\s*(.+?)\\s*}}","g");function $D(t){let n=[];if("string"==typeof t){let e;for(;e=Hv.exec(t);)n.push(e[1]);Hv.lastIndex=0}return n}function iu(t,n,e){const i=t.toString(),o=i.replace(Hv,(r,s)=>{let a=n[s];return null==a&&(e.push(function AU(t){return new Te(3003,!1)}()),a=""),a.toString()});return o==i?t:o}function Uh(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const uH=/-+([a-z0-9])/g;function Gv(t){return t.replace(uH,(...n)=>n[1].toUpperCase())}function dH(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function go(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function wU(t){return new Te(3004,!1)}()}}function YD(t,n){return window.getComputedStyle(t)[n]}function vH(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function _H(t,n,e){if(":"==t[0]){const l=function bH(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function VU(t){return new Te(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function BU(t){return new Te(3015,!1)}()),n;const o=i[1],r=i[2],s=i[3];n.push(QD(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&n.push(QD(s,o))}(i,e,n)):e.push(t),e}const qh=new Set(["true","1"]),Wh=new Set(["false","0"]);function QD(t,n){const e=qh.has(t)||Wh.has(t),i=qh.has(n)||Wh.has(n);return(o,r)=>{let s="*"==t||t==o,a="*"==n||n==r;return!s&&e&&"boolean"==typeof o&&(s=o?qh.has(t):Wh.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?qh.has(n):Wh.has(n)),s&&a}}const yH=new RegExp("s*:selfs*,?","g");function zv(t,n,e,i){return new CH(t).build(n,e,i)}class CH{constructor(n){this._driver=n}build(n,e,i){const o=new AH(e);return this._resetContextStyleTimingState(o),go(this,nu(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function TU(){return new Te(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push(function MU(){return new Te(3007,!1)}())}),{type:7,name:n.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{$D(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&(Uh(r.values()),e.errors.push(function xU(t,n){return new Te(3008,!1)}()))}return{type:0,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=go(this,nu(n.animation),e);return{type:1,matchers:vH(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ks(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>go(this,i,e)),options:Ks(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(s=>{e.currentTime=i;const a=go(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:r,options:Ks(n.options)}}visitAnimate(n,e){const i=function DH(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return qv(jh(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=qv(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=jh(e,n);return qv(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:kt({});if(5==r.type)o=this.visitKeyframes(r,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=kt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of o)"string"==typeof a?a===jr?i.push(a):e.errors.push(new Te(3002,!1)):i.push(GD(a));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function IU(t,n,e,i,o){return new Te(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function cH(t,n,e){const i=n.params||{},o=$D(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function EU(t){return new Te(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function RU(){return new Te(3011,!1)}()),i;let r=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(he=>{const _e=this._makeStyleAst(he,e);let pe=null!=_e.offset?_e.offset:function wH(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(_e.styles),ve=0;return null!=pe&&(r++,ve=_e.offset=pe),l=l||ve<0||ve>1,a=a||ve<c,c=ve,s.push(ve),_e});l&&e.errors.push(function PU(){return new Te(3012,!1)}()),a&&e.errors.push(function kU(){return new Te(3200,!1)}());const d=n.steps.length;let f=0;r>0&&r<d?e.errors.push(function NU(){return new Te(3202,!1)}()):0==r&&(f=1/(d-1));const w=d-1,z=e.currentTime,ne=e.currentAnimateTimings,fe=ne.duration;return u.forEach((he,_e)=>{const pe=f>0?_e==w?1:f*_e:s[_e],ve=pe*fe;e.currentTime=z+ne.delay+ve,ne.duration=ve,this._validateStyleAst(he,e),he.offset=pe,i.styles.push(he)}),i}visitReference(n,e){return{type:8,animation:go(this,nu(n.animation),e),options:Ks(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Ks(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Ks(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,s]=function SH(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(yH,"")),t=t.replace(/@\*/g,Vh).replace(/@\w+/g,e=>Vh+"-"+e.slice(1)).replace(/:animating/g,jv),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,po(e.collectedStyles,e.currentQuerySelector,new Map);const a=go(this,nu(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Ks(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function LU(){return new Te(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:jh(n.timings,e.errors,!0);return{type:12,animation:go(this,nu(n.animation),e),timings:i,options:null}}}class AH{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ks(t){return t?(t=tu(t)).params&&(t.params=function EH(t){return t?tu(t):null}(t.params)):t={},t}function qv(t,n,e){return{duration:t,delay:n,easing:e}}function Wv(t,n,e,i,o,r,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class $h{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const xH=new RegExp(":enter","g"),IH=new RegExp(":leave","g");function $v(t,n,e,i,o,r=new Map,s=new Map,a,l,c=[]){return(new RH).buildKeyframes(t,n,e,i,o,r,s,a,l,c)}class RH{buildKeyframes(n,e,i,o,r,s,a,l,c,u=[]){c=c||new $h;const d=new Yv(n,e,c,o,r,u,[]);d.options=l;const f=l.delay?Ur(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),go(this,i,d);const w=d.timelines.filter(z=>z.containsAnimation());if(w.length&&a.size){let z;for(let ne=w.length-1;ne>=0;ne--){const fe=w[ne];if(fe.element===e){z=fe;break}}z&&!z.allowOnlyTimelineStyles()&&z.setStyles([a],null,d.errors,l)}return w.length?w.map(z=>z.buildKeyframes()):[Wv(e,[],[],[],0,f,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){var o;for(const r of n){const s=null==r?void 0:r.delay;if(s){const a="number"==typeof s?s:Ur(iu(s,null!==(o=null==r?void 0:r.params)&&void 0!==o?o:{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const s=null!=i.duration?Ur(i.duration):null,a=null!=i.delay?Ur(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),go(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Yh);const s=Ur(r.delay);o.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>go(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ur(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),go(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return jh(e.params?iu(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ur(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Yh);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),go(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;go(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const Yh={};class Yv{constructor(n,e,i,o,r,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Yh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ur(i.duration)),null!=i.delay&&(o.delay=Ur(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=iu(r[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new Yv(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Yh,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new PH(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,s){let a=[];if(o&&a.push(this.element),n.length>0){n=(n=n.replace(xH,"."+this._enterClassName)).replace(IH,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(function FU(t){return new Te(3014,!1)}()),a}}class Qh{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Qh(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||jr),this._currentKeyframe.set(e,jr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){var r;e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},a=function kH(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i=i||n.keys();for(let r of i)e.set(r,jr)}else ds(o,e)}),e}(n,this._globalTimelineStyles);for(let[l,c]of a){const u=iu(c,s,i);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(r=this._globalTimelineStyles.get(l))&&void 0!==r?r:jr),this._updateStyle(l,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=ds(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===jr&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=n.size?Uh(n.values()):[],s=e.size?Uh(e.values()):[];if(i){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return Wv(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class PH extends Qh{constructor(n,e,i,o,r,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,a=e/s,l=ds(n[0]);l.set("offset",0),r.push(l);const c=ds(n[0]);c.set("offset",XD(a)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let f=ds(n[d]);const w=f.get("offset");f.set("offset",XD((e+w*i)/s)),r.push(f)}i=s,e=0,o="",n=r}return Wv(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function XD(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Qv{}const NH=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class LH extends Qv{normalizePropertyName(n,e){return Gv(n)}normalizeStyleValue(n,e,i,o){let r="";const s=i.toString().trim();if(NH.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function DU(t,n){return new Te(3005,!1)}())}return s+r}}function JD(t,n,e,i,o,r,s,a,l,c,u,d,f){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const Kv={};class eT{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function FH(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(null==n?void 0:n.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,s,a,l,c,u){var d;const f=[],w=this.ast.options&&this.ast.options.params||Kv,ne=this.buildStyles(i,a&&a.params||Kv,f),fe=l&&l.params||Kv,he=this.buildStyles(o,fe,f),_e=new Set,pe=new Map,ve=new Map,He="void"===o,ht={params:BH(fe,w),delay:null===(d=this.ast.options)||void 0===d?void 0:d.delay},$t=u?[]:$v(n,e,this.ast.animation,r,s,ne,he,ht,c,f);let xt=0;if($t.forEach(Rt=>{xt=Math.max(Rt.duration+Rt.delay,xt)}),f.length)return JD(e,this._triggerName,i,o,He,ne,he,[],[],pe,ve,xt,f);$t.forEach(Rt=>{const hn=Rt.element,_i=po(pe,hn,new Set);Rt.preStyleProps.forEach(Di=>_i.add(Di));const Hn=po(ve,hn,new Set);Rt.postStyleProps.forEach(Di=>Hn.add(Di)),hn!==e&&_e.add(hn)});const Sn=Uh(_e.values());return JD(e,this._triggerName,i,o,He,ne,he,$t,Sn,pe,ve,xt)}}function BH(t,n){const e=tu(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class VH{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=tu(this.defaultParams);return Object.keys(n).forEach(r=>{const s=n[r];null!==s&&(o[r]=s)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=iu(s,o,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class UH{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new VH(o.style,o.options&&o.options.params||{},i))}),tT(this.states,"true","1"),tT(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new eT(n,o,this.states))}),this.fallbackTransition=function HH(t,n,e){return new eT(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(s=>s.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function tT(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const GH=new $h;class zH{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=zv(this._driver,e,i,[]);if(i.length)throw function zU(t){return new Te(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=PD(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let s;const a=new Map;if(r?(s=$v(this._driver,e,r,Vv,Fh,new Map,new Map,i,GH,o),s.forEach(u=>{const d=po(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(o.push(function qU(){return new Te(3300,!1)}()),s=[]),o.length)throw function WU(t){return new Te(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,w)=>{u.set(w,this._driver.computeStyle(d,w,jr))})});const c=us(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function $U(t){return new Te(3301,!1)}();return e}listen(n,e,i,o){const r=Nv(e,"","","");return Pv(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const nT="ng-animate-queued",Zv="ng-animate-disabled",QH=[],iT={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},KH={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Po="__ng_removed";class Xv{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function e5(t){return null!=t?t:null}(i?n.value:n),i){const r=tu(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const ou="void",Jv=new Xv(ou);class ZH{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,ko(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function YU(t,n){return new Te(3302,!1)}();if(null==i||0==i.length)throw function QU(t){return new Te(3303,!1)}();if(!function t5(t){return"start"==t||"done"==t}(i))throw function KU(t,n){return new Te(3400,!1)}();const r=po(this._elementListeners,n,[]),s={name:e,phase:i,callback:o};r.push(s);const a=po(this._engine.statesByElement,n,new Map);return a.has(e)||(ko(n,Bh),ko(n,Bh+"-"+e),a.set(e,Jv)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function ZU(t){return new Te(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),s=new e_(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(ko(n,Bh),ko(n,Bh+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new Xv(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Jv),c.value!==ou&&l.value===c.value){if(!function o5(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o<e.length;o++){const r=e[o];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const ne=[],fe=r.matchStyles(l.value,l.params,ne),he=r.matchStyles(c.value,c.params,ne);ne.length?this._engine.reportError(ne):this._engine.afterFlush(()=>{Qs(n,fe),_r(n,he)})}return}const f=po(this._engine.playersByElement,n,[]);f.forEach(ne=>{ne.namespaceId==this.id&&ne.triggerName==e&&ne.queued&&ne.destroy()});let w=r.matchTransition(l.value,c.value,n,c.params),z=!1;if(!w){if(!o)return;w=r.fallbackTransition,z=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:w,fromState:l,toState:c,player:s,isFallbackTransition:z}),z||(ko(n,nT),s.onStart(()=>{pl(n,nT)})),s.onDone(()=>{let ne=this.players.indexOf(s);ne>=0&&this.players.splice(ne,1);const fe=this._engine.playersByElement.get(n);if(fe){let he=fe.indexOf(s);he>=0&&fe.splice(he,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Vh,!0);i.forEach(o=>{if(o[Po])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),s=new Map;if(r){const a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,ou,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&us(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Jv,u=new Xv(ou),d=new e_(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Po];(!r||r===iT)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){ko(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Nv(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Pv(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class XH{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new ZH(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Kh(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Kh(e))return;const r=e[Po];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),ko(n,Zv)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),pl(n,Zv))}removeNode(n,e,i,o){if(Kh(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(n,e,!1,o),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Po]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Kh(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Vh,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,jv,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return us(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Po];if(i&&i.setForRemoval){if(n[Po]=iT,i.namespaceId){this.destroyInnerAnimations(n);const o=this._fetchNamespace(i.namespaceId);o&&o.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}!(null===(e=n.classList)||void 0===e)&&e.contains(Zv)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)ko(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let o=0;o<i.length;o++)i[o]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?us(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function XU(t){return new Te(3402,!1)}()}_flushAnimations(n,e){const i=new $h,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Ke=>{u.add(Ke);const Ge=this.driver.query(Ke,".ng-animate-queued",!0);for(let ot=0;ot<Ge.length;ot++)u.add(Ge[ot])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),w=sT(f,this.collectedEnterElements),z=new Map;let ne=0;w.forEach((Ke,Ge)=>{const ot=Vv+ne++;z.set(Ge,ot),Ke.forEach(it=>ko(it,ot))});const fe=[],he=new Set,_e=new Set;for(let Ke=0;Ke<this.collectedLeaveElements.length;Ke++){const Ge=this.collectedLeaveElements[Ke],ot=Ge[Po];ot&&ot.setForRemoval&&(fe.push(Ge),he.add(Ge),ot.hasAnimation?this.driver.query(Ge,".ng-star-inserted",!0).forEach(it=>he.add(it)):_e.add(Ge))}const pe=new Map,ve=sT(f,Array.from(he));ve.forEach((Ke,Ge)=>{const ot=Fh+ne++;pe.set(Ge,ot),Ke.forEach(it=>ko(it,ot))}),n.push(()=>{w.forEach((Ke,Ge)=>{const ot=z.get(Ge);Ke.forEach(it=>pl(it,ot))}),ve.forEach((Ke,Ge)=>{const ot=pe.get(Ge);Ke.forEach(it=>pl(it,ot))}),fe.forEach(Ke=>{this.processLeaveNode(Ke)})});const He=[],ht=[];for(let Ke=this._namespaceList.length-1;Ke>=0;Ke--)this._namespaceList[Ke].drainQueuedTransitions(e).forEach(ot=>{const it=ot.player,Ut=ot.element;if(He.push(it),this.collectedEnterElements.length){const On=Ut[Po];if(On&&On.setForMove){if(On.previousTriggersValues&&On.previousTriggersValues.has(ot.triggerName)){const Qi=On.previousTriggersValues.get(ot.triggerName),io=this.statesByElement.get(ot.element);if(io&&io.has(ot.triggerName)){const tc=io.get(ot.triggerName);tc.value=Qi,io.set(ot.triggerName,tc)}}return void it.destroy()}}const En=!d||!this.driver.containsElement(d,Ut),si=pe.get(Ut),Bt=z.get(Ut),Ct=this._buildInstruction(ot,i,Bt,si,En);if(Ct.errors&&Ct.errors.length)return void ht.push(Ct);if(En)return it.onStart(()=>Qs(Ut,Ct.fromStyles)),it.onDestroy(()=>_r(Ut,Ct.toStyles)),void o.push(it);if(ot.isFallbackTransition)return it.onStart(()=>Qs(Ut,Ct.fromStyles)),it.onDestroy(()=>_r(Ut,Ct.toStyles)),void o.push(it);const Ve=[];Ct.timelines.forEach(On=>{On.stretchStartingKeyframe=!0,this.disabledNodes.has(On.element)||Ve.push(On)}),Ct.timelines=Ve,i.append(Ut,Ct.timelines),s.push({instruction:Ct,player:it,element:Ut}),Ct.queriedElements.forEach(On=>po(a,On,[]).push(it)),Ct.preStyleProps.forEach((On,Qi)=>{if(On.size){let io=l.get(Qi);io||l.set(Qi,io=new Set),On.forEach((tc,sd)=>io.add(sd))}}),Ct.postStyleProps.forEach((On,Qi)=>{let io=c.get(Qi);io||c.set(Qi,io=new Set),On.forEach((tc,sd)=>io.add(sd))})});if(ht.length){const Ke=[];ht.forEach(Ge=>{Ke.push(function JU(t,n){return new Te(3505,!1)}())}),He.forEach(Ge=>Ge.destroy()),this.reportError(Ke)}const $t=new Map,xt=new Map;s.forEach(Ke=>{const Ge=Ke.element;i.has(Ge)&&(xt.set(Ge,Ge),this._beforeAnimationBuild(Ke.player.namespaceId,Ke.instruction,$t))}),o.forEach(Ke=>{const Ge=Ke.element;this._getPreviousPlayers(Ge,!1,Ke.namespaceId,Ke.triggerName,null).forEach(it=>{po($t,Ge,[]).push(it),it.destroy()})});const Sn=fe.filter(Ke=>lT(Ke,l,c)),Rt=new Map;rT(Rt,this.driver,_e,c,jr).forEach(Ke=>{lT(Ke,l,c)&&Sn.push(Ke)});const _i=new Map;w.forEach((Ke,Ge)=>{rT(_i,this.driver,new Set(Ke),l,"!")}),Sn.forEach(Ke=>{var Ge,ot;const it=Rt.get(Ke),Ut=_i.get(Ke);Rt.set(Ke,new Map([...Array.from(null!==(Ge=null==it?void 0:it.entries())&&void 0!==Ge?Ge:[]),...Array.from(null!==(ot=null==Ut?void 0:Ut.entries())&&void 0!==ot?ot:[])]))});const Hn=[],Di=[],yo={};s.forEach(Ke=>{const{element:Ge,player:ot,instruction:it}=Ke;if(i.has(Ge)){if(u.has(Ge))return ot.onDestroy(()=>_r(Ge,it.toStyles)),ot.disabled=!0,ot.overrideTotalTime(it.totalTime),void o.push(ot);let Ut=yo;if(xt.size>1){let si=Ge;const Bt=[];for(;si=si.parentNode;){const Ct=xt.get(si);if(Ct){Ut=Ct;break}Bt.push(si)}Bt.forEach(Ct=>xt.set(Ct,Ut))}const En=this._buildAnimation(ot.namespaceId,it,$t,r,_i,Rt);if(ot.setRealPlayer(En),Ut===yo)Hn.push(ot);else{const si=this.playersByElement.get(Ut);si&&si.length&&(ot.parentPlayer=us(si)),o.push(ot)}}else Qs(Ge,it.fromStyles),ot.onDestroy(()=>_r(Ge,it.toStyles)),Di.push(ot),u.has(Ge)&&o.push(ot)}),Di.forEach(Ke=>{const Ge=r.get(Ke.element);if(Ge&&Ge.length){const ot=us(Ge);Ke.setRealPlayer(ot)}}),o.forEach(Ke=>{Ke.parentPlayer?Ke.syncPlayerEvents(Ke.parentPlayer):Ke.destroy()});for(let Ke=0;Ke<fe.length;Ke++){const Ge=fe[Ke],ot=Ge[Po];if(pl(Ge,Fh),ot&&ot.hasAnimation)continue;let it=[];if(a.size){let En=a.get(Ge);En&&En.length&&it.push(...En);let si=this.driver.query(Ge,jv,!0);for(let Bt=0;Bt<si.length;Bt++){let Ct=a.get(si[Bt]);Ct&&Ct.length&&it.push(...Ct)}}const Ut=it.filter(En=>!En.destroyed);Ut.length?n5(this,Ge,Ut):this.processLeaveNode(Ge)}return fe.length=0,Hn.forEach(Ke=>{this.players.push(Ke),Ke.onDone(()=>{Ke.destroy();const Ge=this.players.indexOf(Ke);this.players.splice(Ge,1)}),Ke.play()}),Hn}elementContainsData(n,e){let i=!1;const o=e[Po];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==ou;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const r=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=po(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(w=>{const z=w.getRealPlayer();z.beforeDestroy&&z.beforeDestroy(),w.destroy(),d.push(w)})}Qs(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(z=>{const ne=z.element;u.add(ne);const fe=ne[Po];if(fe&&fe.removedBeforeQueried)return new eu(z.duration,z.delay);const he=ne!==l,_e=function i5(t){const n=[];return aT(t,n),n}((i.get(ne)||QH).map($t=>$t.getRealPlayer())).filter($t=>!!$t.element&&$t.element===ne),pe=r.get(ne),ve=s.get(ne),He=PD(0,this._normalizer,0,z.keyframes,pe,ve),ht=this._buildPlayer(z,He,_e);if(z.subTimeline&&o&&d.add(ne),he){const $t=new e_(n,a,ne);$t.setRealPlayer(ht),c.push($t)}return ht});c.forEach(z=>{po(this.playersByQueriedElement,z.element,[]).push(z),z.onDone(()=>function JH(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,z.element,z))}),u.forEach(z=>ko(z,HD));const w=us(f);return w.onDestroy(()=>{u.forEach(z=>pl(z,HD)),_r(l,e.toStyles)}),d.forEach(z=>{po(o,z,[]).push(w)}),w}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new eu(n.duration,n.delay)}}class e_{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new eu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>Pv(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){po(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Kh(t){return t&&1===t.nodeType}function oT(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function rT(t,n,e,i,o){const r=[];e.forEach(l=>r.push(oT(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=n.computeStyle(c,d,o);u.set(d,f),(!f||0==f.length)&&(c[Po]=KH,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>oT(l,r[a++])),s}function sT(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const o=new Set(n),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:s(c),r.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function ko(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function pl(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function n5(t,n,e){us(e).onDone(()=>t.processLeaveNode(n))}function aT(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof ID?aT(i.players,n):n.push(i)}}function lT(t,n,e){const i=e.get(t);if(!i)return!1;let o=n.get(t);return o?i.forEach(r=>o.add(r)):n.set(t,i),e.delete(t),!0}class Zh{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new XH(n,e,i),this._timelineEngine=new zH(n,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,e,i,o,r){const s=n+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],u=zv(this._driver,r,l,[]);if(l.length)throw function HU(t,n){return new Te(3404,!1)}();a=function jH(t,n,e){return new UH(t,n,e)}(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i,o){this._transitionEngine.removeNode(n,e,o||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,s]=kD(i);this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[s,a]=kD(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let s5=(()=>{class t{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&_r(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_r(this._element,this._initialStyles),this._endStyles&&(_r(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Qs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qs(this._element,this._endStyles),this._endStyles=null),_r(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function t_(t){let n=null;return t.forEach((e,i)=>{(function a5(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class cT{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:YD(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class l5{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return BD(n,e)}getParentElement(n){return Fv(n)}query(n,e,i){return VD(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,o,r,s=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=s.filter(w=>w instanceof cT);(function hH(t,n){return 0===t||0===n})(i,o)&&u.forEach(w=>{w.currentSnapshot.forEach((z,ne)=>c.set(ne,z))});let d=function lH(t){return t.length?t[0]instanceof Map?t:t.map(n=>GD(n)):[]}(e).map(w=>ds(w));d=function fH(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;r<n.length;r++){let s=n[r];o.forEach(a=>s.set(a,YD(t,a)))}}return n}(n,d,c);const f=function r5(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=t_(n[0]),n.length>1&&(i=t_(n[n.length-1]))):n instanceof Map&&(e=t_(n)),e||i?new s5(t,e,i):null}(n,d);return new cT(n,d,l,f)}}let c5=(()=>{class t extends TD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:zo.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?xD(e):e;return uT(this._renderer,null,i,"register",[o]),new u5(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(oe(Ac),oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();class u5 extends class bU{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new d5(this._id,n,e||{},this._renderer)}}class d5{constructor(n,e,i,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return uT(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function uT(t,n,e,i,o){return t.setProperty(n,`@@${e}:${i}`,o)}const dT="@.disabled";let h5=(()=>{class t{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,s)=>{const a=null==s?void 0:s.parentNode(r);a&&s.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(r);return u||(u=new hT("",r,this.engine,()=>this._rendererCache.delete(r)),this._rendererCache.set(r,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new f5(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&e<this._microtaskId?this._zone.run(()=>i(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(oe(Ac),oe(Zh),oe(lt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();class hT{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){var n;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(n=this._onDestroy)||void 0===n||n.call(this)}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==dT?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class f5 extends hT{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==dT?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function p5(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function g5(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const fT=[{provide:TD,useClass:c5},{provide:Qv,useFactory:function v5(){return new LH}},{provide:Zh,useClass:(()=>{class t extends Zh{constructor(e,i,o,r){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(oe(dt),oe(Bv),oe(Qv),oe(Gs))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})()},{provide:Ac,useFactory:function _5(t,n,e){return new h5(t,n,e)},deps:[Nh,Zh,lt]}],n_=[{provide:Bv,useFactory:()=>new l5},{provide:pi,useValue:"BrowserAnimations"},...fT],pT=[{provide:Bv,useClass:jD},{provide:pi,useValue:"NoopAnimations"},...fT];let i_,gT=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?pT:n_}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:n_,imports:[SD]}),t})();try{i_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){i_=!1}let gl,ti=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?$s(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&&!i_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(oe(xo))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mT=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vT(){if(gl)return gl;if("object"!=typeof document||!document)return gl=new Set(mT),gl;let t=document.createElement("input");return gl=new Set(mT.filter(n=>(t.setAttribute("type",n),t.type===n))),gl}let ru,Jh,Xs,o_;function Zs(t){return function b5(){if(null==ru&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ru=!0}))}finally{ru=ru||!1}return ru}()?t:!!t.capture}function _T(){if(null==Xs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xs=!1,Xs;if("scrollBehavior"in document.documentElement.style)Xs=!0;else{const t=Element.prototype.scrollTo;Xs=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Xs}function su(){if("object"!=typeof document||!document)return 0;if(null==Jh){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Jh=0,0===t.scrollLeft&&(t.scrollLeft=1,Jh=0===t.scrollLeft?1:2),t.remove()}return Jh}function bT(t){if(function y5(){if(null==o_){const t="undefined"!=typeof document?document.head:null;o_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return o_}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function r_(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Js(t){return t.composedPath?t.composedPath()[0]:t.target}function s_(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}class a_{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class ml extends a_{constructor(n,e,i,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class vl extends a_{constructor(n,e,i,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class C5 extends a_{constructor(n){super(),this.element=n instanceof ke?n.nativeElement:n}}class ef{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof ml?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof vl?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof C5?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class S5 extends ef{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||_n.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let _l=(()=>{class t extends ef{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ee,this.attachDomPortal=r=>{const s=r.element,a=this._document.createComment("dom-portal");r.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=r,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(h(Or),h(ln),h(dt))},t.\u0275dir=ge({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Me]}),t})(),bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();class pt extends ce{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function nt(...t){return Kn(t,nc(t))}function to(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Yn(t,n,e){const i=N(t)||n||e?{next:t,error:n,complete:e}:t;return i?Be((o,r)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;o.subscribe(ze(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):g}class k5 extends b{constructor(n,e){super()}schedule(n,e=0){return this}}const tf={setInterval(t,n,...e){const{delegate:i}=tf;return null!=i&&i.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=tf;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};class c_ extends k5{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return tf.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&tf.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,y(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const u_={now:()=>(u_.delegate||Date).now(),delegate:void 0};class cu{constructor(n,e=cu.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}cu.now=u_.now;class d_ extends cu{constructor(n,e=cu.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const nf=new d_(c_),N5=nf;function uu(t,n=nf){return Be((e,i)=>{let o=null,r=null,s=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=s+t,u=n.now();if(u<c)return o=this.schedule(void 0,c-u),void i.add(o);a()}e.subscribe(ze(i,c=>{r=c,s=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{a(),i.complete()},void 0,()=>{r=o=null}))})}function Wt(t,n){return Be((e,i)=>{let o=0;e.subscribe(ze(i,r=>t.call(n,r,o++)&&i.next(r)))})}function yn(t){return t<=0?()=>Ho:Be((n,e)=>{let i=0;n.subscribe(ze(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function du(t){return Wt((n,e)=>t<=e)}function hu(t,n=g){return t=null!=t?t:L5,Be((e,i)=>{let o,r=!0;e.subscribe(ze(i,s=>{const a=n(s);(r||!t(o,a))&&(r=!1,o=a,i.next(s))}))})}function L5(t,n){return t===n}function yt(t){return Be((n,e)=>{Ki(t).subscribe(ze(e,()=>e.complete(),ee)),!e.closed&&n.subscribe(e)})}function ft(t){return null!=t&&"false"!=`${t}`}function Wi(t,n=0){return function F5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function rf(t){return Array.isArray(t)?t:[t]}function ni(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Hr(t){return t instanceof ke?t.nativeElement:t}let ST=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),B5=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Hr(e);return new x(o=>{const s=this._observeElement(i).subscribe(o);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new ce,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(oe(ST))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ET=(()=>{class t{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new Ee,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ft(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Wi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(uu(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(h(B5),h(ke),h(lt))},t.\u0275dir=ge({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[ST]}),t})();const{isArray:V5}=Array,{getPrototypeOf:j5,prototype:U5,keys:H5}=Object;function AT(t){if(1===t.length){const n=t[0];if(V5(n))return{args:n,keys:null};if(function G5(t){return t&&"object"==typeof t&&j5(t)===U5}(n)){const e=H5(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:z5}=Array;function f_(t){return Ue(n=>function q5(t,n){return z5(n)?t(...n):t(n)}(t,n))}function wT(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function p_(...t){const n=nc(t),e=Gy(t),{args:i,keys:o}=AT(t);if(0===i.length)return Kn([],n);const r=new x(function W5(t,n,e=g){return i=>{DT(n,()=>{const{length:o}=t,r=new Array(o);let s=o,a=o;for(let l=0;l<o;l++)DT(n,()=>{const c=Kn(t[l],n);let u=!1;c.subscribe(ze(i,d=>{r[l]=d,u||(u=!0,a--),a||i.next(e(r.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,o?s=>wT(o,s):g));return e?r.pipe(f_(e)):r}function DT(t,n,e){t?Er(e,t,n):n()}function fu(...t){return function $5(){return Sa(1)}()(Kn(t,nc(t)))}function mi(...t){const n=nc(t);return Be((e,i)=>{(n?fu(t,e,n):fu(t,e)).subscribe(i)})}const TT=new Set;let wl,Y5=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):K5}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Q5(t){if(!TT.has(t))try{wl||(wl=document.createElement("style"),wl.setAttribute("type","text/css"),document.head.appendChild(wl)),wl.sheet&&(wl.sheet.insertRule(`@media ${t} {body{ }}`,0),TT.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(oe(ti))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function K5(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let sf=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new ce}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return MT(rf(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=p_(MT(rf(e)).map(s=>this._registerQuery(s).observable));return r=fu(r.pipe(yn(1)),r.pipe(du(1),uu(0))),r.pipe(Ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new x(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(mi(i),Ue(({matches:s})=>({query:e,matches:s})),yt(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(oe(Y5),oe(lt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function MT(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function af(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const IT="cdk-describedby-message",lf="cdk-describedby-host";let g_=0,RT=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+g_++,this._document=e,this._id=un(ul)+"-"+g_++}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=m_(i,o);"string"!=typeof i?(PT(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){var r;if(!i||!this._isElementNode(e))return;const s=m_(i,o);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===(null===(r=this._messagesContainer)||void 0===r?void 0:r.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${lf}="${this._id}"]`);for(let o=0;o<i.length;o++)this._removeCdkDescribedByReferenceIds(i[o]),i[o].removeAttribute(lf);null===(e=this._messagesContainer)||void 0===e||e.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){const o=this._document.createElement("div");PT(o,this._id),o.textContent=e,i&&o.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(m_(e,i),{messageElement:o,referenceCount:0})}_deleteMessageElement(e){var i,o;null===(o=null===(i=this._messageRegistry.get(e))||void 0===i?void 0:i.messageElement)||void 0===o||o.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();const o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(e),o.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o}_removeCdkDescribedByReferenceIds(e){const i=af(e,"aria-describedby").filter(o=>0!=o.indexOf(IT));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);(function Z5(t,n,e){const i=af(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(lf,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,function X5(t,n,e){const o=af(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(lf)}_isElementDescribedByMessage(e,i){const o=af(e,"aria-describedby"),r=this._messageRegistry.get(i),s=r&&r.messageElement.id;return!!s&&-1!=o.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(oe(dt),oe(ti))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function m_(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function PT(t,n){t.id||(t.id=`${IT}-${n}-${g_++}`)}class kT{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ce,this._typeaheadSubscription=b.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new ce,this.change=new ce,n instanceof as&&n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Yn(e=>this._pressedLetters.push(e)),uu(n),Wt(()=>this._pressedLetters.length>0),Ue(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o<i.length+1;o++){const r=(this._activeItemIndex+o)%i.length,s=i[r];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}setActiveItem(n){const e=this._activeItem;this.updateActiveItem(n),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){const e=n.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||to(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),o=e[i];this._activeItem=null==o?null:o,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof as?this._items.toArray():this._items}}class J5 extends kT{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class v_ extends kT{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let pu=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function tG(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function eG(t){try{return t.frameElement}catch(n){return null}}(function cG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===LT(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=LT(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function aG(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function lG(t){return!function iG(t){return function rG(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function nG(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function oG(t){return function sG(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||NT(t))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(oe(ti))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function NT(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function LT(t){if(!NT(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class uG{constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i<e.length;i++){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(o)return o}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=e.length-1;i>=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(yn(1)).subscribe(n)}}let cf=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new uG(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(oe(pu),oe(lt),oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function __(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function b_(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const dG=new Pe("cdk-input-modality-detector-options"),hG={ignoreKeys:[18,17,224,91,16]},Dl=Zs({passive:!0,capture:!0});let fG=(()=>{class t{constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new pt(null),this._lastTouchMs=0,this._onKeydown=s=>{var a,l;null!==(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)&&void 0!==l&&l.some(c=>c===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Js(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(__(s)?"keyboard":"mouse"),this._mostRecentTarget=Js(s))},this._onTouchstart=s=>{b_(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Js(s))},this._options=Object.assign(Object.assign({},hG),r),this.modalityDetected=this._modality.pipe(du(1)),this.modalityChanged=this.modalityDetected.pipe(hu()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Dl),o.addEventListener("mousedown",this._onMousedown,Dl),o.addEventListener("touchstart",this._onTouchstart,Dl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dl),document.removeEventListener("mousedown",this._onMousedown,Dl),document.removeEventListener("touchstart",this._onTouchstart,Dl))}}return t.\u0275fac=function(e){return new(e||t)(oe(ti),oe(lt),oe(dt),oe(dG,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const pG=new Pe("liveAnnouncerElement",{providedIn:"root",factory:function gG(){return null}}),mG=new Pe("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let y_=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[r,s]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==s&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return o.classList.add(e),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),this._document.body.appendChild(o),o}}return t.\u0275fac=function(e){return new(e||t)(oe(pG,8),oe(lt),oe(dt),oe(mG,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const vG=new Pe("cdk-focus-monitor-default-options"),uf=Zs({passive:!0,capture:!0});let No=(()=>{class t{constructor(e,i,o,r,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ce,this._rootNodeFocusAndBlurListener=a=>{for(let c=Js(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=r,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const o=Hr(e);if(!this._platform.isBrowser||1!==o.nodeType)return nt(null);const r=bT(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new ce,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Hr(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Hr(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Js(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,uf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,uf)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,uf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,uf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let s=0;s<r.length;s++)if(r[s].contains(i))return!0;return!1}}return t.\u0275fac=function(e){return new(e||t)(oe(lt),oe(ti),oe(fG),oe(dt,8),oe(vG,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const BT="cdk-high-contrast-black-on-white",VT="cdk-high-contrast-white-on-black",C_="cdk-high-contrast-active";let jT=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=un(sf).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(C_,BT,VT),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(C_,BT):2===i&&e.add(C_,VT)}}}return t.\u0275fac=function(e){return new(e||t)(oe(ti),oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S_=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(oe(jT))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[h_]}),t})();const _G=["addListener","removeListener"],bG=["addEventListener","removeEventListener"],yG=["on","off"];function Tl(t,n,e,i){if(N(e)&&(i=e,e=void 0),i)return Tl(t,n,e).pipe(f_(i));const[o,r]=function EG(t){return N(t.addEventListener)&&N(t.removeEventListener)}(t)?bG.map(s=>a=>t[s](n,a,e)):function CG(t){return N(t.addListener)&&N(t.removeListener)}(t)?_G.map(UT(t,n)):function SG(t){return N(t.on)&&N(t.off)}(t)?yG.map(UT(t,n)):[];if(!o&&Mp(t))return li(s=>Tl(s,n,e))(Ki(t));if(!o)throw new TypeError("Invalid event target");return new x(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function UT(t,n){return e=>i=>t[e](n,i)}const gu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=gu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new b(()=>null==e?void 0:e(o))},requestAnimationFrame(...t){const{delegate:n}=gu;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=gu;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0};new class wG extends d_{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class AG extends c_{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=gu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(gu.cancelAnimationFrame(e),n._scheduled=void 0)}});let E_,TG=1;const df={};function HT(t){return t in df&&(delete df[t],!0)}const MG={setImmediate(t){const n=TG++;return df[n]=!0,E_||(E_=Promise.resolve()),E_.then(()=>HT(n)&&t()),n},clearImmediate(t){HT(t)}},{setImmediate:xG,clearImmediate:OG}=MG,hf={setImmediate(...t){const{delegate:n}=hf;return((null==n?void 0:n.setImmediate)||xG)(...t)},clearImmediate(t){const{delegate:n}=hf;return((null==n?void 0:n.clearImmediate)||OG)(t)},delegate:void 0},ff=new class RG extends d_{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class IG extends c_{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=hf.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(hf.clearImmediate(e),n._scheduled=void 0)}});function GT(t=0,n,e=N5){let i=-1;return null!=n&&(Hy(n)?e=n:i=n),new x(o=>{let r=function kG(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function zT(t,n=nf){return function PG(t){return Be((n,e)=>{let i=!1,o=null,r=null,s=!1;const a=()=>{if(null==r||r.unsubscribe(),r=null,i){i=!1;const c=o;o=null,e.next(c)}s&&e.complete()},l=()=>{r=null,s&&e.complete()};n.subscribe(ze(e,c=>{i=!0,o=c,r||Ki(t(c)).subscribe(r=ze(e,a,l))},()=>{s=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>GT(t,n))}const NG=new Pe("cdk-dir-doc",{providedIn:"root",factory:function LG(){return un(dt)}}),FG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let mo=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new Ee,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function BG(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?FG.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(oe(NG,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ml=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),mu=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new ce,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new x(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(zT(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):nt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Wt(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Hr(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Tl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(oe(lt),oe(ti),oe(dt,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vu=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new ce,this._elementScrolled=new x(s=>this.ngZone.runOutsideAngular(()=>Tl(this.elementRef.nativeElement,"scroll").pipe(yt(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=su()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==su()?e.left=e.right:1==su()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;_T()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?o:i:"end"==e&&(e=s?i:o),s&&2==su()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:s&&1==su()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(mu),h(lt),h(mo,8))},t.\u0275dir=ge({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),_u=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new ce,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(zT(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(oe(ti),oe(lt),oe(dt,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),qT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Ml,ea,Ml,ea]}),t})();function WT(t,n=!1){return Be((e,i)=>{let o=0;e.subscribe(ze(i,r=>{const s=t(r,o++);(s||n)&&i.next(r),!s&&i.complete()}))})}const $T=_T();class UG{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=ni(-this._previousScrollPosition.left),n.style.top=ni(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),$T&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),$T&&(i.scrollBehavior=r,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class HG{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class YT{enable(){}disable(){}attach(){}}function A_(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function QT(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class GG{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();A_(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let zG=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new YT,this.close=s=>new HG(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new UG(this._viewportRuler,this._document),this.reposition=s=>new GG(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(oe(mu),oe(_u),oe(lt),oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class bu{constructor(n){if(this.scrollStrategy=new YT,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class qG{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class yu{constructor(n,e,i,o,r,s,a,l,c,u=!1){this._portalOutlet=n,this._host=e,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new ce,this._attachments=new ce,this._detachments=new ce,this._locationChanges=b.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new ce,this._outsidePointerEvents=new ce,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(yn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof(null==e?void 0:e.onDestroy)&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=ni(this._config.width),n.height=ni(this._config.height),n.minWidth=ni(this._config.minWidth),n.minHeight=ni(this._config.minHeight),n.maxWidth=ni(this._config.maxWidth),n.maxHeight=ni(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(n):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})})}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const o=rf(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(yt(Ni(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let xl=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||s_()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove()}const i=this._document.createElement("div");i.classList.add(e),s_()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return t.\u0275fac=function(e){return new(e||t)(oe(dt),oe(ti))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const KT="cdk-overlay-connected-position-bounding-box",WG=/([A-Za-z%]+)$/;class $G{constructor(n,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ce,this._resizeSubscription=b.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}get positions(){return this._preferredPositions}attach(n){this._validatePositions(),n.hostElement.classList.add(KT),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,o,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleArea<u.visibleArea)&&(s={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(r.length){let a=null,l=-1;for(const c of r){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ta(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(KT),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;o="start"==i.originX?s:a}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=XT(e);let{x:s,y:a}=n,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(s+=l),c&&(a+=c);let f=0-a,w=a+r.height-i.height,z=this._subtractOverflows(r.width,0-s,s+r.width-i.width),ne=this._subtractOverflows(r.height,f,w),fe=z*ne;return{visibleArea:fe,isCompletelyWithinViewport:r.width*r.height===fe,fitsInViewportVertically:ne===r.height,fitsInViewportHorizontally:z==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,s=ZT(this._overlayRef.getConfig().minHeight),a=ZT(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=r;return(n.fitsInViewportVertically||null!=s&&s<=o)&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=XT(e),r=this._viewportRect,s=Math.max(n.x+o.width-r.width,0),a=Math.max(n.y+o.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let u=0,d=0;return u=o.width<=r.width?c||-s:n.x<this._viewportMargin?r.left-i.left-n.x:0,d=o.height<=r.height?l||-a:n.y<this._viewportMargin?r.top-i.top-n.y:0,this._previousPushAmount={x:u,y:d},{x:n.x+u,y:n.y+d}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._lastPosition=n,this._positionChanges.observers.length){const i=this._getScrollVisibility(),o=new qG(n,i);this._positionChanges.next(o)}this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,o=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,o=this._isRtl();let r,s,a,u,d,f;if("top"===e.overlayY)s=n.y,r=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-n.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const w=Math.min(i.bottom-n.y+i.top,n.y),z=this._lastBoundingBoxSize.height;r=2*w,s=n.y-w,r>z&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-z/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)f=i.width-n.x+this._viewportMargin,u=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)d=n.x,u=i.right-n.x;else{const w=Math.min(i.right-n.x+i.left,n.x),z=this._lastBoundingBoxSize.width;u=2*w,d=n.x-w,u>z&&!this._isInitialRender&&!this._growAfterOpen&&(d=n.x-z/2)}return{top:s,left:d,bottom:a,right:f,width:u,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=ni(i.height),o.top=ni(i.top),o.bottom=ni(i.bottom),o.width=ni(i.width),o.left=ni(i.left),o.right=ni(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=ni(r)),s&&(o.maxWidth=ni(s))}this._lastBoundingBoxSize=i,ta(this._boundingBox.style,o)}_resetBoundingBoxStyles(){ta(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ta(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const u=this._viewportRuler.getViewportScrollPosition();ta(i,this._getExactOverlayY(e,n,u)),ta(i,this._getExactOverlayX(e,n,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(o?i.maxHeight=ni(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(o?i.maxWidth=ni(s.maxWidth):r&&(i.maxWidth="")),ta(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=ni(r.y),o}_getExactOverlayX(n,e,i){let s,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=ni(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:QT(n,i),isOriginOutsideView:A_(n,i),isOverlayClipped:QT(e,i),isOverlayOutsideView:A_(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&rf(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof ke)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function ta(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function ZT(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(WG);return e&&"px"!==e?null:parseFloat(n)}return t||null}function XT(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const JT="cdk-global-overlay-wrapper";class YG{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(JT),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:a}=i,l=!("100%"!==o&&"100vw"!==o||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let w="",z="",ne="";l?ne="flex-start":"center"===u?(ne="center",f?z=d:w=d):f?"left"===u||"end"===u?(ne="flex-end",w=d):("right"===u||"start"===u)&&(ne="flex-start",z=d):"left"===u||"start"===u?(ne="flex-start",w=d):("right"===u||"end"===u)&&(ne="flex-end",z=d),n.position=this._cssPosition,n.marginLeft=l?"0":w,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":z,e.justifyContent=ne,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(JT),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let QG=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new YG}flexibleConnectedTo(e){return new $G(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(oe(_u),oe(dt),oe(ti),oe(xl))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),eM=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),KG=(()=>{class t extends eM{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){const a=r[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(o)):a.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(oe(dt),oe(lt,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZG=(()=>{class t extends eM{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Js(r)},this._clickListener=r=>{const s=Js(r),a="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(r)):d.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(oe(dt),oe(ti),oe(lt,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XG=0,no=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,w){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=f,this._animationsModuleType=w}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),s=new bu(e);return s.direction=s.direction||this._directionality.value,new yu(r,i,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+XG++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Gs)),new S5(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(oe(zG),oe(xl),oe(Or),oe(QG),oe(KG),oe(_n),oe(lt),oe(dt),oe(mo),oe(Yc),oe(ZG),oe(pi,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const JG=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],tM=new Pe("cdk-connected-overlay-scroll-strategy");let nM=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(h(ke))},t.\u0275dir=ge({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),iM=(()=>{class t{constructor(e,i,o,r,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=b.EMPTY,this._attachSubscription=b.EMPTY,this._detachSubscription=b.EMPTY,this._positionSubscription=b.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ee,this.positionChange=new Ee,this.attach=new Ee,this.detach=new Ee,this.overlayKeydown=new Ee,this.overlayOutsideClick=new Ee,this._templatePortal=new vl(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ft(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=ft(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=ft(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=ft(e)}get push(){return this._push}set push(e){this._push=ft(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=JG);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!to(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new bu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof nM?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(WT(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(h(no),h(vt),h(ln),h(tM),h(mo,8))},t.\u0275dir=ge({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[qn]}),t})();const tz={provide:tM,deps:[no],useFactory:function ez(t){return()=>t.scrollStrategies.reposition()}};let Ol=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[no,tz],imports:[Ml,bl,qT,qT]}),t})();function Cu(t){return new x(n=>{Ki(t()).subscribe(n)})}function nz(t,n){}class pf{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let oM=(()=>{class t extends ef{constructor(e,i,o,r,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const o=r_(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=r_();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=r_())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(cf),h(dt,8),h(pf),h(pu),h(lt),h(yu),h(No))},t.\u0275cmp=et({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Et(_l,7),2&e){let o;xe(o=Oe())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&Ot("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[Me],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&X(0,nz,0,0,"ng-template",0)},dependencies:[_l],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class w_{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new ce,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!to(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=(null==e?void 0:e.focusOrigin)||"program",this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const rM=new Pe("DialogScrollStrategy"),iz=new Pe("DialogData"),oz=new Pe("DefaultDialogConfig"),sz={provide:rM,deps:[no],useFactory:function rz(t){return()=>t.scrollStrategies.block()}};let az=0,sM=(()=>{class t{constructor(e,i,o,r,s,a){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ce,this._afterOpenedAtThisLevel=new ce,this._ariaHiddenElements=new Map,this.afterAllClosed=Cu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(mi(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){const o=this._defaultOptions||new pf;(i=Object.assign(Object.assign({},o),i)).id=i.id||"cdk-dialog-"+az++,i.id&&this.getDialogById(i.id);const r=this._getOverlayConfig(i),s=this._overlay.create(r),a=new w_(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){D_(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){D_(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),D_(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new bu({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){var r;const s=o.injector||(null===(r=o.viewContainerRef)||void 0===r?void 0:r.injector),a=[{provide:pf,useValue:o},{provide:w_,useValue:i},{provide:yu,useValue:e}];let l;o.container?"function"==typeof o.container?l=o.container:(l=o.container.type,a.push(...o.container.providers(o))):l=oM;const c=new ml(l,o.viewContainerRef,_n.create({parent:s||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,o,r){if(e instanceof vt){const s=this._createInjector(r,i,o,void 0);let a={$implicit:r.data,dialogRef:i};r.templateContext&&(a=Object.assign(Object.assign({},a),"function"==typeof r.templateContext?r.templateContext():r.templateContext)),o.attachTemplatePortal(new vl(e,null,a,s))}else{const s=this._createInjector(r,i,o,this._injector),a=o.attachComponentPortal(new ml(e,r.viewContainerRef,s,r.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,o,r){var s;const a=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),l=[{provide:iz,useValue:e.data},{provide:w_,useValue:i}];return e.providers&&("function"==typeof e.providers?l.push(...e.providers(i,e,o)):l.push(...e.providers)),e.direction&&(!a||!a.get(mo,null,gt.Optional))&&l.push({provide:mo,useValue:{value:e.direction,change:nt()}}),_n.create({parent:a||r,providers:l})}_removeOpenDialog(e,i){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){const r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return t.\u0275fac=function(e){return new(e||t)(oe(no),oe(_n),oe(oz,8),oe(t,12),oe(xl),oe(rM))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();function D_(t,n){let e=t.length;for(;e--;)n(t[e])}let lz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[sM,sz],imports:[Ol,bl,S_,bl]}),t})();function cz(t,n){if(1&t&&Xe(0,"mat-pseudo-checkbox",4),2&t){const e=ie();U("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function uz(t,n){if(1&t&&(O(0,"span",5),se(1),V()),2&t){const e=ie();A(1),wn("(",e.group.label,")")}}const dz=["*"],fz=new Pe("mat-sanity-checks",{providedIn:"root",factory:function hz(){return!0}});let Tt=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!s_()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(oe(jT),oe(fz,8),oe(dt))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Ml,Ml]}),t})();function na(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=ft(n)}}}function ia(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function hs(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=ft(n)}}}function gf(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Wi(e):this.defaultTabIndex}}}function cM(t){return class extends t{constructor(...n){super(...n),this.errorState=!1}updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}}}let T_=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),oa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function uM(t,n,e="mat"){t.changes.pipe(mi(t)).subscribe(({length:i})=>{Su(n,`${e}-2-line`,!1),Su(n,`${e}-3-line`,!1),Su(n,`${e}-multi-line`,!1),2===i||3===i?Su(n,`${e}-${i}-line`,!0):i>3&&Su(n,`${e}-multi-line`,!0)})}function Su(t,n,e){t.nativeElement.classList.toggle(n,e)}let mf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Tt,Tt]}),t})();class gz{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const dM={enterDuration:225,exitDuration:150},M_=Zs({passive:!0}),hM=["mousedown","touchstart"],fM=["mouseup","mouseleave","touchend","touchcancel"];class vz{constructor(n,e,i,o){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Hr(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},dM),i.animation);i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const s=i.radius||function _z(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),a=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),w=d.transitionDuration,z="none"===d.transitionProperty||"0s"===w||"0s, 0s"===w,ne=new gz(this,u,i,z);u.style.transform="scale3d(1, 1, 1)",ne.state=0,i.persistent||(this._mostRecentTransientRipple=ne);let fe=null;return!z&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const he=()=>this._finishRippleTransition(ne),_e=()=>this._destroyRipple(ne);u.addEventListener("transitionend",he),u.addEventListener("transitioncancel",_e),fe={onTransitionEnd:he,onTransitionCancel:_e}}),this._activeRipples.set(ne,fe),(z||!c)&&this._finishRippleTransition(ne),ne}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i=Object.assign(Object.assign({},dM),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Hr(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(hM))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(fM),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){var e;const i=null!==(e=this._activeRipples.get(n))&&void 0!==e?e:null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==i&&(n.element.removeEventListener("transitionend",i.onTransitionEnd),n.element.removeEventListener("transitioncancel",i.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=__(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!b_(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=n.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,M_)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(hM.forEach(n=>{this._triggerElement.removeEventListener(n,this,M_)}),this._pointerUpEventsRegistered&&fM.forEach(n=>{this._triggerElement.removeEventListener(n,this,M_)}))}}const bz=new Pe("mat-ripple-global-options");let ra=(()=>{class t{constructor(e,i,o,r,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new vz(this,i,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(lt),h(ti),h(bz,8),h(pi,8))},t.\u0275dir=ge({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&ct("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Eu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Tt,Tt]}),t})(),pM=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&ct("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),t})(),x_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Tt]}),t})();const gM=new Pe("MAT_OPTION_PARENT_COMPONENT"),mM=new Pe("MatOptgroup");let yz=0;class Cz{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let Sz=(()=>{class t{constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+yz++,this.onSelectionChange=new Ee,this._stateChanges=new ce}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=ft(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!to(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Cz(this,e))}}return t.\u0275fac=function(e){Bs()},t.\u0275dir=ge({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),O_=(()=>{class t extends Sz{constructor(e,i,o,r){super(e,i,o,r)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Vt),h(gM,8),h(mM,8))},t.\u0275cmp=et({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&we("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(rs("id",i.id),Ot("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),ct("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Me],ngContentSelectors:dz,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(In(),X(0,cz,1,2,"mat-pseudo-checkbox",0),O(1,"span",1),Dt(2),V(),X(3,uz,2,1,"span",2),Xe(4,"div",3)),2&e&&(U("ngIf",i.multiple),A(3),U("ngIf",i.group&&i.group._inert),A(1),U("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[ra,Zt,pM],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),t})();function vM(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let s=0;s<t+1;s++)i[s].group&&i[s].group===o[r]&&r++;return r}return 0}let I_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Eu,zi,Tt,x_]}),t})();function Az(t,n){}const Il={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},wz={dialogContainer:qi("dialogContainer",[gi("void, exit",kt({opacity:0,transform:"scale(0.7)"})),gi("enter",kt({transform:"none"})),Vn("* => enter",MD([$n("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",kt({transform:"none",opacity:1})),Ov("@*",xv(),{optional:!0})]),Il),Vn("* => void, * => exit",MD([$n("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",kt({opacity:0})),Ov("@*",xv(),{optional:!0})]),Il)])};class vf{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Il.params.enterAnimationDuration,this.exitAnimationDuration=Il.params.exitAnimationDuration}}let Dz=(()=>{class t extends oM{constructor(e,i,o,r,s,a,l,c){super(e,i,o,r,s,a,l,c),this._animationStateChanged=new Ee}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(cf),h(dt,8),h(vf),h(pu),h(lt),h(yu),h(No))},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],features:[Me],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Tz=(()=>{class t extends Dz{constructor(e,i,o,r,s,a,l,c,u){super(e,i,o,r,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Il.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Il.params.exitAnimationDuration}}}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(cf),h(dt,8),h(vf),h(pu),h(lt),h(yu),h(Vt),h(No))},t.\u0275cmp=et({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&kc("@dialogContainer.start",function(r){return i._onAnimationStart(r)})("@dialogContainer.done",function(r){return i._onAnimationDone(r)}),2&e&&(rs("id",i._config.id),Ot("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Lc("@dialogContainer",i._getAnimationState()))},features:[Me],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&X(0,Az,0,0,"ng-template",0)},dependencies:[_l],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[wz.dialogContainer]}}),t})();class Rl{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new ce,this._beforeClosed=new ce,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(Wt(o=>"opened"===o.state),yn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Wt(o=>"closed"===o.state),yn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ni(this.backdropClick(),this.keydownEvents().pipe(Wt(o=>27===o.keyCode&&!this.disableClose&&!to(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function Mz(t,n,e){t._closeInteractionType=n,t.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Wt(e=>"closing"===e.state),yn(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const _f=new Pe("MatDialogData"),xz=new Pe("mat-dialog-default-options"),_M=new Pe("mat-dialog-scroll-strategy"),Iz={provide:_M,deps:[no],useFactory:function Oz(t){return()=>t.scrollStrategies.block()}};let Rz=0,Pz=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=o,this._parentDialog=r,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ce,this._afterOpenedAtThisLevel=new ce,this._idPrefix="mat-dialog-",this.afterAllClosed=Cu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(mi(void 0))),this._scrollStrategy=a,this._dialog=i.get(sM)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let o;(i=Object.assign(Object.assign({},this._defaultOptions||new vf),i)).id=i.id||`${this._idPrefix}${Rz++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const r=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:vf,useValue:i},{provide:pf,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(s,a,l)=>(o=new this._dialogRefConstructor(s,i,l),o.updatePosition(null==i?void 0:i.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return t.\u0275fac=function(e){Bs()},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),R_=(()=>{class t extends Pz{constructor(e,i,o,r,s,a,l,c){super(e,i,r,a,l,s,Rl,Tz,_f,c)}}return t.\u0275fac=function(e){return new(e||t)(oe(no),oe(_n),oe(Yc,8),oe(xz,8),oe(_M),oe(t,12),oe(xl),oe(pi,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),kz=0,bM=(()=>{class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-dialog-title-"+kz++}ngOnInit(){this._dialogRef||(this._dialogRef=function Nz(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(h(Rl,8),h(ke),h(R_))},t.\u0275dir=ge({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&rs("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),bf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),yf=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&ct("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),t})(),Lz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[R_,Iz],imports:[lz,Ol,bl,Tt,Tt]}),t})();const Fz=["mat-button",""],Bz=["*"],jz=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Uz=ia(na(hs(class{constructor(t){this._elementRef=t}})));let Mn=(()=>{class t extends Uz{constructor(e,i,o){super(e),this._focusMonitor=i,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of jz)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(No),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Et(ra,5),2&e){let o;xe(o=Oe())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Ot("disabled",i.disabled||null),ct("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Me],attrs:Fz,ngContentSelectors:Bz,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(In(),O(0,"span",0),Dt(1),V(),Xe(2,"span",1)(3,"span",2)),2&e&&(A(2),ct("mat-button-ripple-round",i.isRoundButton||i.isIconButton),U("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[ra],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),t})(),yM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Eu,Tt,Tt]}),t})();function Pl(t,n){const e=N(t)?t:()=>t,i=o=>o.error(e());return new x(n?o=>n.schedule(i,0,o):i)}function CM(...t){const n=Gy(t),{args:e,keys:i}=AT(t),o=new x(r=>{const{length:s}=e;if(!s)return void r.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;Ki(e[u]).subscribe(ze(r,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?wT(i,a):a),r.complete())}))}});return n?o.pipe(f_(n)):o}function Gr(t){return Be((n,e)=>{let r,i=null,o=!1;i=n.subscribe(ze(e,void 0,void 0,s=>{r=Ki(t(s,Gr(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Cf(t){return Be((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function fs(t,n){return N(n)?li(t,n,1):li(t,1)}class SM{}class EM{}class zr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof zr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new zr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof zr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class Hz{encodeKey(n){return AM(n)}encodeValue(n){return AM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const zz=/%(\d[a-f0-9])/gi,qz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function AM(t){return encodeURIComponent(t).replace(zz,(n,e)=>{var i;return null!==(i=qz[e])&&void 0!==i?i:n})}function Sf(t){return`${t}`}class ps{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Hz,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Gz(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(Sf):[Sf(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ps({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Sf(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(Sf(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class Wz{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function wM(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function DM(t){return"undefined"!=typeof Blob&&t instanceof Blob}function TM(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Au{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function $z(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new zr),this.context||(this.context=new Wz),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new ps,this.urlWithParams=e}serializeBody(){return null===this.body?null:wM(this.body)||DM(this.body)||TM(this.body)||function Yz(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ps?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||TM(this.body)?null:DM(this.body)?this.body.type||null:wM(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ps?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){var e;const i=n.method||this.method,o=n.url||this.url,r=n.responseType||this.responseType,s=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((f,w)=>f.set(w,n.setHeaders[w]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,w)=>f.set(w,n.setParams[w]),u)),new Au(i,o,s,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a})}}var ii=(()=>((ii=ii||{})[ii.Sent=0]="Sent",ii[ii.UploadProgress=1]="UploadProgress",ii[ii.ResponseHeader=2]="ResponseHeader",ii[ii.DownloadProgress=3]="DownloadProgress",ii[ii.Response=4]="Response",ii[ii.User=5]="User",ii))();class P_{constructor(n,e=200,i="OK"){this.headers=n.headers||new zr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class k_ extends P_{constructor(n={}){super(n),this.type=ii.ResponseHeader}clone(n={}){return new k_({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ef extends P_{constructor(n={}){super(n),this.type=ii.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ef({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class MM extends P_{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function N_(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let L_=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Au)r=e;else{let l,c;l=o.headers instanceof zr?o.headers:new zr(o.headers),o.params&&(c=o.params instanceof ps?o.params:new ps({fromObject:o.params})),r=new Au(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=nt(r).pipe(fs(l=>this.handler.handle(l)));if(e instanceof Au||"events"===o.observe)return s;const a=s.pipe(Wt(l=>l instanceof Ef));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(Ue(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Ue(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ps).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,N_(o,i))}post(e,i,o={}){return this.request("POST",e,N_(o,i))}put(e,i,o={}){return this.request("PUT",e,N_(o,i))}}return t.\u0275fac=function(e){return new(e||t)(oe(SM))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();class xM{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const OM=new Pe("HTTP_INTERCEPTORS");let Qz=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const Kz=/^\)\]\}',?\n/;let IM=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((w,z)=>o.setRequestHeader(w,z.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const w=e.detectContentTypeHeader();null!==w&&o.setRequestHeader("Content-Type",w)}if(e.responseType){const w=e.responseType.toLowerCase();o.responseType="json"!==w?w:"text"}const r=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const w=o.statusText||"OK",z=new zr(o.getAllResponseHeaders()),ne=function Zz(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||e.url;return s=new k_({headers:z,status:o.status,statusText:w,url:ne}),s},l=()=>{let{headers:w,status:z,statusText:ne,url:fe}=a(),he=null;204!==z&&(he=void 0===o.response?o.responseText:o.response),0===z&&(z=he?200:0);let _e=z>=200&&z<300;if("json"===e.responseType&&"string"==typeof he){const pe=he;he=he.replace(Kz,"");try{he=""!==he?JSON.parse(he):null}catch(ve){he=pe,_e&&(_e=!1,he={error:ve,text:he})}}_e?(i.next(new Ef({body:he,headers:w,status:z,statusText:ne,url:fe||void 0})),i.complete()):i.error(new MM({error:he,headers:w,status:z,statusText:ne,url:fe||void 0}))},c=w=>{const{url:z}=a(),ne=new MM({error:w,status:o.status||0,statusText:o.statusText||"Unknown Error",url:z||void 0});i.error(ne)};let u=!1;const d=w=>{u||(i.next(a()),u=!0);let z={type:ii.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(z.total=w.total),"text"===e.responseType&&!!o.responseText&&(z.partialText=o.responseText),i.next(z)},f=w=>{let z={type:ii.UploadProgress,loaded:w.loaded};w.lengthComputable&&(z.total=w.total),i.next(z)};return o.addEventListener("load",l),o.addEventListener("error",c),o.addEventListener("timeout",c),o.addEventListener("abort",c),e.reportProgress&&(o.addEventListener("progress",d),null!==r&&o.upload&&o.upload.addEventListener("progress",f)),o.send(r),i.next({type:ii.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",l),o.removeEventListener("timeout",c),e.reportProgress&&(o.removeEventListener("progress",d),null!==r&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(oe(iD))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const F_=new Pe("XSRF_COOKIE_NAME"),B_=new Pe("XSRF_HEADER_NAME");class RM{}let Xz=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=qw(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(oe(dt),oe(xo),oe(F_))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),V_=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(oe(RM),oe(B_))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),Jz=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(OM,[]);this.chain=i.reduceRight((o,r)=>new xM(o,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(oe(EM),oe(_n))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),e8=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:V_,useClass:Qz}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F_,useValue:e.cookieName}:[],e.headerName?{provide:B_,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[V_,{provide:OM,useExisting:V_,multi:!0},{provide:RM,useClass:Xz},{provide:F_,useValue:"XSRF-TOKEN"},{provide:B_,useValue:"X-XSRF-TOKEN"}]}),t})(),t8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[L_,{provide:SM,useClass:Jz},IM,{provide:EM,useExisting:IM}],imports:[e8.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})();const n8=["*"];let Af;function wu(t){var n;return(null===(n=function i8(){if(void 0===Af&&(Af=null,"undefined"!=typeof window)){const t=window;void 0!==t.trustedTypes&&(Af=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Af}())||void 0===n?void 0:n.createHTML(t))||t}function PM(t){return Error(`Unable to find icon with the name "${t}"`)}function kM(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function NM(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class sa{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let wf=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new sa(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const s=this._sanitizer.sanitize(Jt.HTML,o);if(!s)throw NM(o);const a=wu(s);return this._addSvgIconConfig(e,i,new sa("",a,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new sa(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Jt.HTML,i);if(!r)throw NM(i);const s=wu(r);return this._addSvgIconSetConfig(e,new sa("",s,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Jt.RESOURCE_URL,e);if(!i)throw kM(e);const o=this._cachedIconsByUrl.get(i);return o?nt(Df(o)):this._loadSvgIconFromConfig(new sa(e,null)).pipe(Yn(r=>this._cachedIconsByUrl.set(i,r)),Ue(r=>Df(r)))}getNamedSvgIcon(e,i=""){const o=LM(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Pl(PM(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?nt(Df(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ue(i=>Df(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?nt(o):CM(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Gr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Jt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),nt(null)})))).pipe(Ue(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw PM(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(s,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Yn(i=>e.svgText=i),Ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?nt(null):this._fetchIcon(e).pipe(Yn(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const s=r.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);const a=this._svgElementFromString(wu("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(wu("<svg></svg>")),o=e.attributes;for(let r=0;r<o.length;r++){const{name:s,value:a}=o[r];"id"!==s&&i.setAttribute(s,a)}for(let r=0;r<e.childNodes.length;r++)e.childNodes[r].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[r].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:o,options:r}=e,s=null!==(i=null==r?void 0:r.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function o8(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==o)throw Error(`Cannot fetch icon from URL "${o}".`);const a=this._sanitizer.sanitize(Jt.RESOURCE_URL,o);if(!a)throw kM(o);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(Ue(u=>wu(u)),Cf(()=>this._inProgressUrlFetches.delete(a)),$y());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(LM(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;o<this._resolvers.length;o++){const r=this._resolvers[o](i,e);if(r)return s8(r)?new sa(r.url,null,r.options):new sa(r,null)}}}return t.\u0275fac=function(e){return new(e||t)(oe(L_,8),oe(Lh),oe(dt,8),oe(Rr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Df(t){return t.cloneNode(!0)}function LM(t,n){return t+":"+n}function s8(t){return!(!t.url||!t.options)}const a8=ia(class{constructor(t){this._elementRef=t}}),l8=new Pe("MAT_ICON_DEFAULT_OPTIONS"),c8=new Pe("mat-icon-location",{providedIn:"root",factory:function u8(){const t=un(dt),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}}),FM=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],d8=FM.map(t=>`[${t}]`).join(", "),h8=/^url\(['"]?#(.*?)['"]?\)$/;let oi=(()=>{class t extends a8{constructor(e,i,o,r,s,a){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=b.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ft(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(s=>{r.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(d8),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r<i.length;r++)FM.forEach(s=>{const a=i[r],l=a.getAttribute(s),c=l?l.match(h8):null;if(c){let u=o.get(a);u||(u=[],o.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(yn(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(wf),Yo("aria-hidden"),h(c8),h(Rr),h(l8,8))},t.\u0275cmp=et({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(Ot("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),ct("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Me],ngContentSelectors:n8,decls:1,vars:0,template:function(e,i){1&e&&(In(),Dt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t})(),f8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Tt,Tt]}),t})();function p8(t,n){if(1&t){const e=at();O(0,"div",2)(1,"button",3),we("click",function(){return Ie(e),Re(ie().action())}),se(2),V()()}if(2&t){const e=ie();A(2),Ne(e.data.action)}}function g8(t,n){}const BM=new Pe("MatSnackBarData");class Tf{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const m8=Math.pow(2,31)-1;class j_{constructor(n,e){this._overlayRef=e,this._afterDismissed=new ce,this._afterOpened=new ce,this._onAction=new ce,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,m8))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let v8=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(h(j_),h(BM))},t.\u0275cmp=et({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(O(0,"span",0),se(1),V(),X(2,p8,3,1,"div",1)),2&e&&(A(1),Ne(i.data.message),A(1),U("ngIf",i.hasAction))},dependencies:[Zt,Mn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),t})();const _8={snackBarState:qi("state",[gi("void, hidden",kt({transform:"scale(0.8)",opacity:0})),gi("visible",kt({transform:"scale(1)",opacity:1})),Vn("* => visible",$n("150ms cubic-bezier(0, 0, 0.2, 1)")),Vn("* => void, * => hidden",$n("75ms cubic-bezier(0.4, 0.0, 1, 1)",kt({opacity:0})))])};let b8=(()=>{class t extends ef{constructor(e,i,o,r,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ce,this._onExit=new ce,this._onEnter=new ce,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(yn(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==o||o.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(h(lt),h(ke),h(Vt),h(ti),h(Tf))},t.\u0275dir=ge({type:t,viewQuery:function(e,i){if(1&e&&Et(_l,7),2&e){let o;xe(o=Oe())&&(i._portalOutlet=o.first)}},features:[Me]}),t})(),y8=(()=>{class t extends b8{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275cmp=et({type:t,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&kc("@state.done",function(r){return i.onAnimationEnd(r)}),2&e&&Lc("@state",i._animationState)},features:[Me],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(O(0,"div",0),X(1,g8,0,0,"ng-template",1),V(),Xe(2,"div")),2&e&&(A(2),Ot("aria-live",i._live)("role",i._role))},dependencies:[_l],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[_8.snackBarState]}}),t})(),VM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Ol,bl,zi,yM,Tt,Tt]}),t})();const jM=new Pe("mat-snack-bar-default-options",{providedIn:"root",factory:function C8(){return new Tf}});let S8=(()=>{class t{constructor(e,i,o,r,s,a){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r=Object.assign(Object.assign({},this._defaultConfig),o);return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=_n.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Tf,useValue:i}]}),s=new ml(this.snackBarContainerComponent,i.viewContainerRef,r),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const o=Object.assign(Object.assign(Object.assign({},new Tf),this._defaultConfig),i),r=this._createOverlay(o),s=this._attachSnackBarContainer(r,o),a=new j_(s,r);if(e instanceof vt){const l=new vl(e,null,{$implicit:o.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(o,a),c=new ml(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(yt(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(a,o),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new bu;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,a=!s&&"center"!==e.horizontalPosition;return s?o.left("0"):a?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return _n.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:j_,useValue:i},{provide:BM,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(oe(no),oe(y_),oe(_n),oe(sf),oe(t,12),oe(jM))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),E8=(()=>{class t extends S8{constructor(e,i,o,r,s,a){super(e,i,o,r,s,a),this.simpleSnackBarComponent=v8,this.snackBarContainerComponent=y8,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(oe(no),oe(y_),oe(_n),oe(sf),oe(t,12),oe(jM))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:VM}),t})(),UM=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(h(To),h(ke))},t.\u0275dir=ge({type:t}),t})(),aa=(()=>{class t extends UM{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,features:[Me]}),t})();const vo=new Pe("NgValueAccessor"),w8={provide:vo,useExisting:Kt(()=>qr),multi:!0},T8=new Pe("CompositionEventMode");let qr=(()=>{class t extends UM{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function D8(){const t=vr()?vr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(h(To),h(ke),h(T8,8))},t.\u0275dir=ge({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&we("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[It([w8]),Me]}),t})();function gs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function GM(t){return null!=t&&"number"==typeof t.length}const Ei=new Pe("NgValidators"),ms=new Pe("NgAsyncValidators"),x8=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class U_{static min(n){return function zM(t){return n=>{if(gs(n.value)||gs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(n)}static max(n){return function qM(t){return n=>{if(gs(n.value)||gs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return function WM(t){return gs(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function $M(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function YM(t){return gs(t.value)||x8.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function QM(t){return n=>gs(n.value)||!GM(n.value)?null:n.value.length<t?{minlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static maxLength(n){return KM(n)}static pattern(n){return function ZM(t){if(!t)return Mf;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(gs(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return ix(n)}static composeAsync(n){return ox(n)}}function KM(t){return n=>GM(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function Mf(t){return null}function XM(t){return null!=t}function JM(t){return Pc(t)?Kn(t):t}function ex(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function tx(t,n){return n.map(e=>e(t))}function nx(t){return t.map(n=>function O8(t){return!t.validate}(n)?n:e=>n.validate(e))}function ix(t){if(!t)return null;const n=t.filter(XM);return 0==n.length?null:function(e){return ex(tx(e,n))}}function H_(t){return null!=t?ix(nx(t)):null}function ox(t){if(!t)return null;const n=t.filter(XM);return 0==n.length?null:function(e){return CM(tx(e,n).map(JM)).pipe(Ue(ex))}}function G_(t){return null!=t?ox(nx(t)):null}function rx(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function sx(t){return t._rawValidators}function ax(t){return t._rawAsyncValidators}function z_(t){return t?Array.isArray(t)?t:[t]:[]}function xf(t,n){return Array.isArray(t)?t.includes(n):t===n}function lx(t,n){const e=z_(n);return z_(t).forEach(o=>{xf(e,o)||e.push(o)}),e}function cx(t,n){return z_(n).filter(e=>!xf(t,e))}class ux{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=H_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=G_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class br extends ux{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $i extends ux{get formDirective(){return null}get path(){return null}}let la=(()=>{class t extends class dx{constructor(n){this._cd=n}get isTouched(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.touched)}get isUntouched(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.untouched)}get isPristine(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.pristine)}get isDirty(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.dirty)}get isValid(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.valid)}get isInvalid(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.invalid)}get isPending(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.pending)}get isSubmitted(){var n;return!(null===(n=this._cd)||void 0===n||!n.submitted)}}{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(h(br,2))},t.\u0275dir=ge({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&ct("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Me]}),t})();const Du="VALID",If="INVALID",kl="PENDING",Tu="DISABLED";function Y_(t){return(Rf(t)?t.validators:t)||null}function px(t){return Array.isArray(t)?H_(t):t||null}function Q_(t,n){return(Rf(n)?n.asyncValidators:t)||null}function gx(t){return Array.isArray(t)?G_(t):t||null}function Rf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class _x{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=px(this._rawValidators),this._composedAsyncValidatorFn=gx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Du}get invalid(){return this.status===If}get pending(){return this.status==kl}get disabled(){return this.status===Tu}get enabled(){return this.status!==Tu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=px(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=gx(n)}addValidators(n){this.setValidators(lx(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(lx(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(cx(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(cx(n,this._rawAsyncValidators))}hasValidator(n){return xf(this._rawValidators,n)}hasAsyncValidator(n){return xf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=kl,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Tu,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Du,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Du||this.status===kl)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tu:Du}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=kl,this._hasOwnPendingAsyncValidator=!0;const e=JM(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ee,this.statusChanges=new Ee}_calculateStatus(){return this._allControlsDisabled()?Tu:this.errors?If:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kl)?kl:this._anyControlsHaveStatus(If)?If:Du}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Rf(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}}class K_ extends _x{constructor(n,e,i){super(Y_(e),Q_(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){(function vx(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new Te(1002,"")})})(this,0,n),Object.keys(n).forEach(i=>{(function mx(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Te(1e3,"");if(!i[e])throw new Te(1001,"")})(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}function Mu(t,n){var e,i;Z_(t,n),n.valueAccessor.writeValue(t.value),t.disabled&&(null===(i=(e=n.valueAccessor).setDisabledState)||void 0===i||i.call(e,!0)),function V8(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&bx(t,n)})}(t,n),function U8(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function j8(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&bx(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function B8(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function kf(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Lf(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Nf(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Z_(t,n){const e=sx(t);null!==n.validator?t.setValidators(rx(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=ax(t);null!==n.asyncValidator?t.setAsyncValidators(rx(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();Nf(n._rawValidators,o),Nf(n._rawAsyncValidators,o)}function Lf(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=sx(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=ax(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return Nf(n._rawValidators,i),Nf(n._rawAsyncValidators,i),e}function bx(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function yx(t,n){Z_(t,n)}function Sx(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const W8={provide:$i,useExisting:Kt(()=>Nl)},xu=(()=>Promise.resolve())();let Nl=(()=>{class t extends $i{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ee,this.form=new K_({},H_(e),G_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xu.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Mu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){xu.then(()=>{const i=this._findContainer(e.path),o=new K_({});yx(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){xu.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){var i;return this.submitted=!0,Sx(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(h(Ei,10),h(ms,10))},t.\u0275dir=ge({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&we("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[It([W8]),Me]}),t})();function Ex(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function Ax(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const eb=class extends _x{constructor(n=null,e,i){super(Y_(e),Q_(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Rf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Ax(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Ex(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Ex(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){Ax(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},K8={provide:br,useExisting:Kt(()=>vs)},Tx=(()=>Promise.resolve())();let vs=(()=>{class t extends br{constructor(e,i,o,r,s){super(),this._changeDetectorRef=s,this.control=new eb,this._registered=!1,this.update=new Ee,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function J_(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===qr?e=r:function z8(t){return Object.getPrototypeOf(t.constructor)===aa}(r)?i=r:o=r}),o||i||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function X_(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Mu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Tx.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&function Fr(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(i);Tx.then(()=>{var r;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(e){return this._parent?function Pf(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(h($i,9),h(Ei,10),h(ms,10),h(vo,10),h(Vt,8))},t.\u0275dir=ge({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[It([K8]),Me,qn]}),t})(),xx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();const tb=new Pe("NgModelWithFormControlWarning"),i6={provide:$i,useExisting:Kt(()=>Ou)};let Ou=(()=>{class t extends $i{constructor(e,i){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ee,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Mu(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){kf(e.control||null,e,!1),function q8(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){var i;return this.submitted=!0,Sx(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(kf(i||null,e),(t=>t instanceof eb)(o)&&(Mu(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);yx(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function H8(t,n){return Lf(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Z_(this.form,this),this._oldForm&&Lf(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(h(Ei,10),h(ms,10))},t.\u0275dir=ge({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&we("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[It([i6]),Me,qn]}),t})();let ca=(()=>{class t{constructor(){this._validator=Mf}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Mf,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,features:[qn]}),t})();const b6={provide:Ei,useExisting:Kt(()=>Ll),multi:!0};let Ll=(()=>{class t extends ca{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function Fx(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>KM(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Ot("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[It([b6]),Me]}),t})(),zx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[xx]}),t})(),C6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zx]}),t})(),S6=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:tb,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zx]}),t})(),T6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Tt,Tt]}),t})();const M6=["*",[["mat-toolbar-row"]]],x6=["*","mat-toolbar-row"],O6=ia(class{constructor(t){this._elementRef=t}});let I6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Bf=(()=>{class t extends O6{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(ti),h(dt))},t.\u0275cmp=et({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,i,o){if(1&e&&Je(o,I6,5),2&e){let r;xe(r=Oe())&&(i._toolbarRows=r)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&ct("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Me],ngContentSelectors:x6,decls:2,vars:0,template:function(e,i){1&e&&(In(M6),Dt(0),Dt(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%}"],encapsulation:2,changeDetection:0}),t})(),R6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Tt,Tt]}),t})();const P6=["connectionContainer"],k6=["inputContainer"],N6=["label"];function L6(t,n){1&t&&(Ci(0),O(1,"div",14),Xe(2,"div",15)(3,"div",16)(4,"div",17),V(),O(5,"div",18),Xe(6,"div",15)(7,"div",16)(8,"div",17),V(),Si())}function F6(t,n){if(1&t){const e=at();O(0,"div",19),we("cdkObserveContent",function(){return Ie(e),Re(ie().updateOutlineGap())}),Dt(1,1),V()}2&t&&U("cdkObserveContentDisabled","outline"!=ie().appearance)}function B6(t,n){if(1&t&&(Ci(0),Dt(1,2),O(2,"span"),se(3),V(),Si()),2&t){const e=ie(2);A(3),Ne(e._control.placeholder)}}function V6(t,n){1&t&&Dt(0,3,["*ngSwitchCase","true"])}function j6(t,n){1&t&&(O(0,"span",23),se(1," *"),V())}function U6(t,n){if(1&t){const e=at();O(0,"label",20,21),we("cdkObserveContent",function(){return Ie(e),Re(ie().updateOutlineGap())}),X(2,B6,4,1,"ng-container",12),X(3,V6,1,0,"ng-content",12),X(4,j6,2,0,"span",22),V()}if(2&t){const e=ie();ct("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),U("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Ot("for",e._control.id)("aria-owns",e._control.id),A(2),U("ngSwitchCase",!1),A(1),U("ngSwitchCase",!0),A(1),U("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function H6(t,n){1&t&&(O(0,"div",24),Dt(1,4),V())}function G6(t,n){if(1&t&&(O(0,"div",25),Xe(1,"span",26),V()),2&t){const e=ie();A(1),ct("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function z6(t,n){1&t&&(O(0,"div"),Dt(1,5),V()),2&t&&U("@transitionMessages",ie()._subscriptAnimationState)}function q6(t,n){if(1&t&&(O(0,"div",30),se(1),V()),2&t){const e=ie(2);U("id",e._hintLabelId),A(1),Ne(e.hintLabel)}}function W6(t,n){if(1&t&&(O(0,"div",27),X(1,q6,2,2,"div",28),Dt(2,6),Xe(3,"div",29),Dt(4,7),V()),2&t){const e=ie();U("@transitionMessages",e._subscriptAnimationState),A(1),U("ngIf",e.hintLabel)}}const $6=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Y6=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],$x=new Pe("MatError"),Z6={transitionMessages:qi("transitionMessages",[gi("enter",kt({opacity:1,transform:"translateY(0%)"})),Vn("void => enter",[kt({opacity:0,transform:"translateY(-5px)"}),$n("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t}),t})();const X6=new Pe("MatHint");let Fl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["mat-label"]]}),t})(),J6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["mat-placeholder"]]}),t})();const e9=new Pe("MatPrefix"),Yx=new Pe("MatSuffix");let Qx=0;const i9=ia(class{constructor(t){this._elementRef=t}},"primary"),o9=new Pe("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ab=new Pe("MatFormField");let jf=(()=>{class t extends i9{constructor(e,i,o,r,s,a,l){super(e),this._changeDetectorRef=i,this._dir=o,this._defaults=r,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ce,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Qx++,this._labelId="mat-form-field-label-"+Qx++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=(null==r?void 0:r.appearance)||"legacy",r&&(this._hideRequiredMarker=Boolean(r.hideRequiredMarker),r.color&&(this.color=this.defaultColor=r.color))}get appearance(){return this._appearance}set appearance(e){var i;const o=this._appearance;this._appearance=e||(null===(i=this._defaults)||void 0===i?void 0:i.appearance)||"legacy","outline"===this._appearance&&o!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ft(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(mi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(yt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(yt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Ni(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(mi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(mi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(yt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Tl(this._label.nativeElement,"transitionend").pipe(yn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",r=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${o}, ${r}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let s=0,a=0;const l=i.querySelectorAll(o),c=i.querySelectorAll(r);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),f=e.children,w=this._getStartEnd(f[0].getBoundingClientRect());let z=0;for(let ne=0;ne<f.length;ne++)z+=f[ne].offsetWidth;s=Math.abs(w-d)-5,a=z>0?.75*z+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${s}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Vt),h(mo,8),h(o9,8),h(ti),h(lt),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Vf,5),Je(o,Vf,7),Je(o,Fl,5),Je(o,Fl,7),Je(o,J6,5),Je(o,$x,5),Je(o,X6,5),Je(o,e9,5),Je(o,Yx,5)),2&e){let r;xe(r=Oe())&&(i._controlNonStatic=r.first),xe(r=Oe())&&(i._controlStatic=r.first),xe(r=Oe())&&(i._labelChildNonStatic=r.first),xe(r=Oe())&&(i._labelChildStatic=r.first),xe(r=Oe())&&(i._placeholderChild=r.first),xe(r=Oe())&&(i._errorChildren=r),xe(r=Oe())&&(i._hintChildren=r),xe(r=Oe())&&(i._prefixChildren=r),xe(r=Oe())&&(i._suffixChildren=r)}},viewQuery:function(e,i){if(1&e&&(Et(P6,7),Et(k6,5),Et(N6,5)),2&e){let o;xe(o=Oe())&&(i._connectionContainerRef=o.first),xe(o=Oe())&&(i._inputContainerRef=o.first),xe(o=Oe())&&(i._label=o.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&ct("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[It([{provide:ab,useExisting:t}]),Me],ngContentSelectors:Y6,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(In($6),O(0,"div",0)(1,"div",1,2),we("click",function(r){return i._control.onContainerClick&&i._control.onContainerClick(r)}),X(3,L6,9,0,"ng-container",3),X(4,F6,2,1,"div",4),O(5,"div",5,6),Dt(7),O(8,"span",7),X(9,U6,5,16,"label",8),V()(),X(10,H6,2,0,"div",9),V(),X(11,G6,2,4,"div",10),O(12,"div",11),X(13,z6,2,1,"div",12),X(14,W6,5,2,"div",13),V()()),2&e&&(A(3),U("ngIf","outline"==i.appearance),A(1),U("ngIf",i._prefixChildren.length),A(5),U("ngIf",i._hasFloatingLabel()),A(1),U("ngIf",i._suffixChildren.length),A(1),U("ngIf","outline"!=i.appearance),A(1),U("ngSwitch",i._getDisplayedMessages()),A(1),U("ngSwitchCase","error"),A(1),U("ngSwitchCase","hint"))},dependencies:[Zt,dl,Mh,ET],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[Z6.transitionMessages]},changeDetection:0}),t})(),Uf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zi,Tt,h_,Tt]}),t})();function Zx(t){var n;for(let e in t){let i=null!==(n=t[e])&&void 0!==n?n:"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;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":t["-webkit-"+e]=i;break;case"flex-direction":t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}const lb="inline",Hf=["row","column","row-reverse","column-reverse"];function Xx(t){let[n,e,i]=Jx(t);return function s9(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}(n,e,i)}function Jx(t){var n;t=null!==(n=null==t?void 0:t.toLowerCase())&&void 0!==n?n:"";let[e,i,o]=t.split(" ");return Hf.find(r=>r===e)||(e=Hf[0]),i===lb&&(i=o!==lb?o:"",o=lb),[e,r9(i),!!o]}function Iu(t){let[n]=Jx(t);return n.indexOf("row")>-1}function r9(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function Wr(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Pi(t,n){return Be((e,i)=>{let o=null,r=0,s=!1;const a=()=>s&&!o&&i.complete();e.subscribe(ze(i,l=>{null==o||o.unsubscribe();let c=0;const u=r++;Ki(t(l,u)).subscribe(o=ze(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}const l9={provide:qm,useFactory:function a9(t,n){return()=>{if($s(n)){const e=Array.from(t.querySelectorAll(`[class*=${eO}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(o=>{o.classList.contains(`${eO}ssr`)&&o.parentNode?o.parentNode.removeChild(o):o.className.replace(i,"")})}}},deps:[dt,xo],multi:!0},eO="flex-layout-";let cb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[l9]}),t})();class _s{constructor(n=!1,e="all",i="",o="",r=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=o,this.priority=r,this.property=""}clone(){return new _s(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let c9=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,o){const r=this.stylesheet.get(e);r?r.set(i,o):this.stylesheet.set(e,new Map([[i,o]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const o=this.stylesheet.get(e);let r="";if(o){const s=o.get(i);("number"==typeof s||"string"==typeof s)&&(r=s+"")}return r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ub={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},nr=new Pe("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ub}),Bl=new Pe("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Gf=new Pe("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function db(t,n){var e;return t=null!==(e=null==t?void 0:t.clone())&&void 0!==e?e:new _s,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}class jn{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}}let Dn=(()=>{class t{constructor(e,i,o,r){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=o,this.layoutConfig=r}applyStyleToElement(e,i,o=null){let r={};"string"==typeof i&&(r[i]=o,i=r),r=this.layoutConfig.disableVendorPrefixes?i:Zx(i),this._applyMultiValueStyleToElement(r,e)}applyStyleToElements(e,i=[]){const o=this.layoutConfig.disableVendorPrefixes?e:Zx(e);i.forEach(r=>{this._applyMultiValueStyleToElement(o,r)})}getFlowDirection(e){const i="flex-direction";let o=this.lookupStyle(e,i);return[o||"row",this.lookupInlineStyle(e,i)||fl(this._platformId)&&this._serverModuleLoaded?o:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var o;return null!==(o=e.getAttribute(i))&&void 0!==o?o:""}lookupInlineStyle(e,i){return $s(this._platformId)?e.style.getPropertyValue(i):function u9(t,n){var e;return null!==(e=tO(t)[n])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,o=!1){let r="";return e&&((r=this.lookupInlineStyle(e,i))||($s(this._platformId)?o||(r=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,i)))),r?r.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(o=>{const r=e[o],s=Array.isArray(r)?r:[r];s.sort();for(let a of s)a=a?a+"":"",$s(this._platformId)||!this._serverModuleLoaded?$s(this._platformId)?i.style.setProperty(o,a):d9(i,o,a):this._serverStylesheet.addStyleToElement(i,o,a)})}}return t.\u0275fac=function(e){return new(e||t)(oe(c9),oe(Bl),oe(xo),oe(nr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function d9(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=tO(t);i[n]=null!=e?e:"",function h9(t,n){let e="";for(const i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}(t,i)}function tO(t){const n={},e=t.getAttribute("style");if(e){const i=e.split(/;+/g);for(let o=0;o<i.length;o++){const r=i[o].trim();if(r.length>0){const s=r.indexOf(":");if(-1===s)throw new Error(`Invalid CSS style: ${r}`);n[r.substr(0,s).trim()]=r.substr(s+1).trim()}}}return n}function Vl(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function f9(t,n){return(t.priority||0)-(n.priority||0)}let zf=(()=>{class t{constructor(e,i,o){this._zone=e,this._platformId=i,this._document=o,this.source=new pt(new _s(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,o)=>{i.matches&&e.push(o)}),e}isActive(e){var i;const o=this.registry.get(e);return null!==(i=null==o?void 0:o.matches)&&void 0!==i?i:this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){const o=this._observable$.pipe(Wt(s=>!i||e.indexOf(s.mediaQuery)>-1));return Ni(new x(s=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{s.next(c)}),this.source.next(l)}s.complete()}),o)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],o=[];return function p9(t,n){const e=t.filter(i=>!nO[i]);if(e.length>0){const i=e.join(", ");try{const o=n.createElement("style");o.setAttribute("type","text/css"),o.styleSheet||o.appendChild(n.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),n.head.appendChild(o),e.forEach(r=>nO[r]=o)}catch(o){console.error(o)}}}(i,this._document),i.forEach(r=>{const s=l=>{this._zone.run(()=>this.source.next(new _s(l.matches,r)))};let a=this.registry.get(r);a||(a=this.buildMQL(r),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(r,a)),a.matches&&o.push(new _s(!0,r))}),o}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function m9(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):function g9(t){const n=new EventTarget;return n.matches="all"===t||""===t,n.media=t,n.addListener=()=>{},n.removeListener=()=>{},n.addEventListener=()=>{},n.dispatchEvent=()=>!1,n.onchange=null,n}(t)}(e,$s(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(oe(lt),oe(xo),oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const nO={},v9=[{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}],iO="(orientation: portrait) and (max-width: 599.98px)",oO="(orientation: landscape) and (max-width: 959.98px)",rO="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",sO="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",aO="(orientation: portrait) and (min-width: 840px)",lO="(orientation: landscape) and (min-width: 1280px)",$r={HANDSET:`${iO}, ${oO}`,TABLET:`${rO} , ${sO}`,WEB:`${aO}, ${lO} `,HANDSET_PORTRAIT:`${iO}`,TABLET_PORTRAIT:`${rO} `,WEB_PORTRAIT:`${aO}`,HANDSET_LANDSCAPE:`${oO}`,TABLET_LANDSCAPE:`${sO}`,WEB_LANDSCAPE:`${lO}`},_9=[{alias:"handset",priority:2e3,mediaQuery:$r.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:$r.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:$r.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:$r.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:$r.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:$r.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:$r.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:$r.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:$r.WEB_PORTRAIT,overlapping:!0}],b9=/(\.|-|_)/g;function y9(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}const A9=new Pe("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=un(Gf),n=un(nr),e=[].concat.apply([],(t||[]).map(o=>Array.isArray(o)?o:[o]));return function E9(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Wr(e[i.alias],i):e[i.alias]=i}),function S9(t){return t.forEach(n=>{n.suffix||(n.suffix=function C9(t){return t.replace(b9,"|").split("|").map(y9).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}((n.disableDefaultBps?[]:v9).concat(n.addOrientationBps?_9:[]),e)}});let qf=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(f9)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var o;let r=this.findByMap.get(e);return r||(r=null!==(o=this.items.find(i))&&void 0!==o?o:null,this.findByMap.set(e,r)),null!=r?r:null}}return t.\u0275fac=function(e){return new(e||t)(oe(A9))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const jl="print",w9={alias:jl,mediaQuery:jl,priority:1e3};let cO=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.layoutConfig=i,this._document=o,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new D9,this.deactivations=[]}withPrintQuery(e){return[...e,jl]}isPrintEvent(e){return e.mediaQuery.startsWith(jl)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(Vl)}updateEvent(e){var i;let o=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(o=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:""),db(e,o)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new _s(!0,jl))),e.updateStyles())},o=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(o)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const o=this.breakpoints.findByQuery(i.mediaQuery);if(o){const r=this.formerActivations&&this.formerActivations.includes(o),s=!this.formerActivations&&e.activatedBreakpoints.includes(o);(r||s)&&(this.deactivations.push(o),this.deactivations.sort(Vl))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return t.\u0275fac=function(e){return new(e||t)(oe(qf),oe(nr),oe(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class D9{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(w9),n.sort(Vl),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function T9(t){var n;return null!==(n=null==t?void 0:t.mediaQuery.startsWith(jl))&&void 0!==n&&n}(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}}let xn=(()=>{class t{constructor(e,i,o){this.matchMedia=e,this.breakpoints=i,this.hook=o,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 ce,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=db(e,i);const o=this.activatedBreakpoints.indexOf(i);e.matches&&-1===o?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Vl),this.updateStyles()):!e.matches&&-1!==o&&(this._activatedBreakpoints.splice(o,1),this._activatedBreakpoints.sort(Vl),this.updateStyles())}}init(e,i,o,r,s=[]){uO(this.updateMap,e,i,o),uO(this.clearMap,e,i,r),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,o){const r=this.elementMap.get(e);if(r){const s=void 0!==o?r.get(o):this.getActivatedValues(r,i);if(s)return s.get(i)}}hasValue(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);if(r)return void 0!==r.get(i)||!1}return!1}setValue(e,i,o,r){var s;let a=this.elementMap.get(e);if(a){const c=(null!==(s=a.get(r))&&void 0!==s?s:new Map).set(i,o);a.set(r,c),this.elementMap.set(e,a)}else a=(new Map).set(r,(new Map).set(i,o)),this.elementMap.set(e,a);const l=this.getValue(e,i);void 0!==l&&this.updateElement(e,i,l)}trackValue(e,i){return this.subject.asObservable().pipe(Wt(o=>o.element===e&&o.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const o=new Set(this.elementKeyMap.get(i));let r=this.getActivatedValues(e);r&&r.forEach((s,a)=>{this.updateElement(i,a,s),o.delete(a)}),o.forEach(s=>{if(r=this.getActivatedValues(e,s),r){const a=r.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){const o=this.clearMap.get(e);if(o){const r=o.get(i);r&&(r(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,o){const r=this.updateMap.get(e);if(r){const s=r.get(i);s&&(s(o),this.subject.next({element:e,key:i,value:o}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(r=>r.unsubscribe()),this.watcherMap.delete(e));const o=this.elementMap.get(e);o&&(o.forEach((r,s)=>o.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);r&&(i?this.updateElement(e,i,r.get(i)):r.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let o=this.elementKeyMap.get(e);o||(o=new Set,this.elementKeyMap.set(e,o)),o.add(i)}watchExtraTriggers(e,i,o){if(o&&o.length){let r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(i)){const a=Ni(...o).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});r.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let r=0;r<this.activatedBreakpoints.length;r++){const a=e.get(this.activatedBreakpoints[r].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const o=e.get("");return void 0===i||o&&o.has(i)?o:void 0}observeActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Yn(this.hook.interceptEvents(this)),Wt(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(oe(zf),oe(qf),oe(cO))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function uO(t,n,e,i){var o;if(void 0!==i){const r=null!==(o=t.get(n))&&void 0!==o?o:new Map;r.set(e,i),t.set(n,r)}}let Pn=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.styleBuilder=i,this.styler=o,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ce,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const o=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,o)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const o=this.styleBuilder,r=o.shouldCache;let s=this.styleCache.get(e);(!s||!r)&&(s=o.buildStyles(e,i),r&&this.styleCache.set(e,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),o.sideEffect(e,s,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[o,r]=this.styler.getFlowDirection(e);if(!r&&i){const s=Xx(o);this.styler.applyStyleToElements(s,[e])}return o.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,o=this.nativeElement){this.styler.applyStyleToElement(o,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(jn),h(Dn),h(xn))},t.\u0275dir=ge({type:t,features:[qn]}),t})();EventTarget;let I9=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.matchMedia=i,this.hook=o,this.filterOverlaps=!1,this.destroyed$=new ce,this._media$=this.watchActivations()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(e){return function P9(t){return t.flatMap(n=>n.split(",")).map(n=>n.trim())}(function O9(t){return Array.isArray(t)?t:[t]}(e)).some(o=>{const r=function R9(t,n){var e,i;const o=null!==(e=n.findByAlias(t))&&void 0!==e?e:n.findByQuery(t);return null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:null}(o,this.breakpoints);return null!==r&&this.matchMedia.isActive(r)})}watchActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);return this.buildObservable(e)}buildObservable(e){return this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Wt(s=>s.matches),uu(0,ff),Pi(s=>nt(this.findAllActivations())),Ue(s=>this.filterOverlaps?s.filter(a=>{var l;const c=this.breakpoints.findByQuery(a.mediaQuery);return null===(l=null==c?void 0:c.overlapping)||void 0===l||l}):s),Wt(s=>s.filter(l=>l.mediaQuery.length>0).length>0),hu((s,a)=>{if(s.length!==a.length)return!1;const l=s.map(d=>d.mediaQuery),c=new Set(a.map(d=>d.mediaQuery));return 0===new Set(l.filter(d=>!c.has(d))).size}),yt(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(o=>new _s(!0,o)).map(o=>this.hook.isPrintEvent(o)?this.hook.updateEvent(o):o).map(o=>db(o,this.breakpoints.findByQuery(o.mediaQuery))).sort(Vl)}}return t.\u0275fac=function(e){return new(e||t)(oe(qf),oe(zf),oe(cO))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function dO(t,n="1",e="1"){let i=[n,e,t],o=t.indexOf("calc");if(o>0){i[2]=hO(t.substring(o).trim());let r=t.substr(0,o).trim().split(" ");2==r.length&&(i[0]=r[0],i[1]=r[1])}else if(0==o)i[2]=hO(t.trim());else{let r=t.split(" ");i=3===r.length?r:[n,e,t]}return i}function hO(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Wf(t,n){if(void 0===n)return t;const e=i=>{const o=+i.slice(0,-"x".length);return t.endsWith("x")&&!isNaN(o)?`${o*n.value}${n.unit}`:t};return t.includes(" ")?t.split(" ").map(e).join(" "):e(t)}let k9=(()=>{class t extends jn{buildStyles(e,{display:i}){const o=Xx(e);return Object.assign(Object.assign({},o),{display:"none"===i?i:o.display})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const N9=["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"];let pO=(()=>{class t extends Pn{constructor(e,i,o,r,s){super(e,o,i,r),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=gO.get(r))&&void 0!==i?i:new Map,gO.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Dn),h(k9),h(xn),h(nr))},t.\u0275dir=ge({type:t,features:[Me]}),t})(),bs=(()=>{class t extends pO{constructor(){super(...arguments),this.inputs=N9}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Me]}),t})();const gO=new Map,mO={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let L9=(()=>{class t extends jn{constructor(e,i){super(),this._styler=e,this._config=i}buildStyles(e,i){return e.endsWith(Yf)?function z9(t,n){const[e,i]=t.split(" "),r=c=>`-${c}`;let s="0px",a=r(null!=i?i:e),l="0px";return"rtl"===n?l=r(e):s=r(e),{margin:`0px ${s} ${a} ${l}`}}(e=Wf(e=e.slice(0,e.indexOf(Yf)),this._config.multiplier),i.directionality):{}}sideEffect(e,i,o){const r=o.items;if(e.endsWith(Yf)){const s=function G9(t,n){const[e,i]=t.split(" ");let r="0px",a="0px";return"rtl"===n?a=e:r=e,{padding:`0px ${r} ${null!=i?i:e} ${a}`}}(e=Wf(e=e.slice(0,e.indexOf(Yf)),this._config.multiplier),o.directionality);this._styler.applyStyleToElements(s,o.items)}else{e=Wf(e,this._config.multiplier),e=this.addFallbackUnit(e);const s=r.pop(),a=function q9(t,n){const e=vO(n.directionality,n.layout),i=Object.assign({},mO);return i[e]=t,i}(e,o);this._styler.applyStyleToElements(a,r),this._styler.applyStyleToElements(mO,[s])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}}return t.\u0275fac=function(e){return new(e||t)(oe(Dn),oe(nr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const F9=["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"];let B9=(()=>{class t extends Pn{constructor(e,i,o,r,s,a){super(e,s,r,a),this.zone=i,this.directionality=o,this.styleUtils=r,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new ce;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(yt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const e=this.nativeElement.children,i=[];for(let o=e.length;o--;)i[o]=e[o];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){const o=e.value.split(" ");this.layout=o[0],Hf.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(e){const i=this.childrenNodes.filter(o=>1===o.nodeType&&this.willDisplay(o)).sort((o,r)=>{const s=+this.styler.lookupStyle(o,"order"),a=+this.styler.lookupStyle(r,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){const o=this.directionality.value,r=this.layout;"row"===r&&"rtl"===o?this.styleCache=V9:"row"===r&&"rtl"!==o?this.styleCache=U9:"column"===r&&"rtl"===o?this.styleCache=j9:"column"===r&&"rtl"!==o&&(this.styleCache=H9),this.addStyles(e,{directionality:o,items:i,layout:r})}}clearStyles(){const e=Object.keys(this.mru).length>0,i=e?"padding":vO(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){const i=this.marshal.getValue(e,"show-hide");return!0===i||void 0===i&&"none"!==this.styleUtils.lookupStyle(e,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(e=>{e.some(o=>o.addedNodes&&o.addedNodes.length>0||o.removedNodes&&o.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(lt),h(mo),h(Dn),h(L9),h(xn))},t.\u0275dir=ge({type:t,features:[Me]}),t})(),$f=(()=>{class t extends B9{constructor(){super(...arguments),this.inputs=F9}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Me]}),t})();const V9=new Map,j9=new Map,U9=new Map,H9=new Map,Yf=" grid";function vO(t,n){switch(n){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left"}}let W9=(()=>{class t extends jn{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[o,r,...s]=e.split(" "),a=s.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=Iu(l)?"max-width":"max-height",u=Iu(l)?"min-width":"min-height",d=String(a).indexOf("calc")>-1,f=d||"auto"===a,w=String(a).indexOf("%")>-1&&!d,z=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1;let ne=d||z;o="0"==o?0:o,r="0"==r?0:r;const fe=!o&&!r;let he={};const _e={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const pe=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":pe?"0.000000001px":"auto";break;case"initial":case"nogrow":o=0,a="auto";break;case"grow":a="100%";break;case"noshrink":r=0,a="auto";break;case"auto":break;case"none":o=0,r=0,a="auto";break;default:!ne&&!w&&!isNaN(a)&&(a+="%"),"0%"===a&&(ne=!0),"0px"===a&&(a="0%"),he=Wr(_e,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":ne?a:"100%"}:{flex:`${o} ${r} ${ne?a:"100%"}`})}return he.flex||he["flex-grow"]||(he=Wr(_e,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":a}:{flex:`${o} ${r} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(he[u]=fe||ne&&o?a:null,he[c]=fe||!f&&r?a:null),he[u]||he[c]?i.hasWrap&&(he[d?"flex-basis":"flex"]=he[c]?d?he[c]:`${o} ${r} ${he[c]}`:d?he[u]:`${o} ${r} ${he[u]}`):he=Wr(_e,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":a}:{flex:`${o} ${r} ${a}`}),Wr(he,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(oe(nr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $9=["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"];let Y9=(()=>{class t extends Pn{constructor(e,i,o,r,s){super(e,r,i,s),this.layoutConfig=o,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(yt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(yt(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const o=e.value.split(" ");this.direction=o[0],this.wrap=void 0!==o[1]&&"wrap"===o[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const o=this.direction,r=o.startsWith("row"),s=this.wrap;r&&s?this.styleCache=Z9:r&&!s?this.styleCache=Q9:!r&&s?this.styleCache=X9:!r&&!s&&(this.styleCache=K9);const l=dO(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:o,hasWrap:s})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=dO(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Dn),h(nr),h(W9),h(xn))},t.\u0275dir=ge({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Me]}),t})(),ys=(()=>{class t extends Y9{constructor(){super(...arguments),this.inputs=$9}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Me]}),t})();const Q9=new Map,K9=new Map,Z9=new Map,X9=new Map;let J9=(()=>{class t extends jn{buildStyles(e){return{order:e&&parseInt(e,10)||""}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eq=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"];let tq=(()=>{class t extends Pn{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="flex-order",this.styleCache=nq,this.init()}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Dn),h(J9),h(xn))},t.\u0275dir=ge({type:t,features:[Me]}),t})();const nq=new Map;let Qf=(()=>{class t extends tq{constructor(){super(...arguments),this.inputs=eq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[Me]}),t})();const mq={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let vq=(()=>{class t extends jn{buildStyles(e){return mq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_O=(()=>{class t extends Pn{constructor(e,i,o,r){super(e,o,i,r),this.styleCache=_q,this.addStyles("")}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Dn),h(vq),h(xn))},t.\u0275dir=ge({type:t,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Me]}),t})();const _q=new Map;let bq=(()=>{class t extends jn{buildStyles(e,i){const o={},[r,s]=e.split(" ");switch(r){case"center":o["justify-content"]="center";break;case"space-around":o["justify-content"]="space-around";break;case"space-between":o["justify-content"]="space-between";break;case"space-evenly":o["justify-content"]="space-evenly";break;case"end":case"flex-end":o["justify-content"]="flex-end";break;default:o["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":o["align-items"]=o["align-content"]="flex-start";break;case"center":o["align-items"]=o["align-content"]="center";break;case"end":case"flex-end":o["align-items"]=o["align-content"]="flex-end";break;case"space-between":o["align-content"]="space-between",o["align-items"]="stretch";break;case"space-around":o["align-content"]="space-around",o["align-items"]="stretch";break;case"baseline":o["align-content"]="stretch",o["align-items"]="baseline";break;default:o["align-items"]=o["align-content"]="stretch"}return Wr(o,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===s?Iu(i.layout)?null:"100%":null,"max-height":"stretch"===s&&Iu(i.layout)?"100%":null})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const yq=["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"];let Cq=(()=>{class t extends Pn{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(yt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",o=this.inline;"row"===i&&o?this.styleCache=Dq:"row"!==i||o?"row-reverse"===i&&o?this.styleCache=Mq:"row-reverse"!==i||o?"column"===i&&o?this.styleCache=Tq:"column"!==i||o?"column-reverse"===i&&o?this.styleCache=xq:"column-reverse"===i&&!o&&(this.styleCache=wq):this.styleCache=Eq:this.styleCache=Aq:this.styleCache=Sq,this.addStyles(e,{layout:i,inline:o})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),Hf.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Dn),h(bq),h(xn))},t.\u0275dir=ge({type:t,features:[Me]}),t})(),Cs=(()=>{class t extends Cq{constructor(){super(...arguments),this.inputs=yq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Me]}),t})();const Sq=new Map,Eq=new Map,Aq=new Map,wq=new Map,Dq=new Map,Tq=new Map,Mq=new Map,xq=new Map;let bO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[cb,Ml]}),t})(),Nq=(()=>{class t extends Pn{constructor(e,i,o,r,s,a,l){super(e,null,i,o),this.ngClassInstance=l,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Ii(r,s,e,a)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Dn),h(xn),h($c),h(qs),h(To),h(Ii,10))},t.\u0275dir=ge({type:t,inputs:{klass:["class","klass"]},features:[Me]}),t})();const Lq=["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"];let ir=(()=>{class t extends Nq{constructor(){super(...arguments),this.inputs=Lq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Me]}),t})();class Uq{constructor(n,e,i=!0){this.key=n,this.value=e,this.key=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function yO(t){let n=typeof t;return"object"===n?t.constructor===Array?"array":t.constructor===Set?"set":"object":n}function SO(t){const[n,...e]=t.split(":");return new Uq(n,e.join(":"))}function EO(t,n){return n.key&&(t[n.key]=n.value),t}let zq=(()=>{class t extends Pn{constructor(e,i,o,r,s,a,l,c,u){var d;super(e,null,i,o),this.sanitizer=r,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new hl(e,s,a)),this.init();const f=null!==(d=this.nativeElement.getAttribute("style"))&&void 0!==d?d:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=c&&fl(u)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=o=>{var r;return null!==(r=this.sanitizer.sanitize(Jt.STYLE,o))&&void 0!==r?r:""};if(e)switch(yO(e)){case"string":return AO(function Hq(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return AO(e,i);default:return function CO(t,n){let e=[];return"set"===yO(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function Gq(t,n){return t.map(SO).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(EO,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Dn),h(xn),h(Lh),h(qs),h(To),h(hl,10),h(Bl),h(xo))},t.\u0275dir=ge({type:t,features:[Me]}),t})();const qq=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let fb=(()=>{class t extends zq{constructor(){super(...arguments),this.inputs=qq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[Me]}),t})();function AO(t,n){return t.map(SO).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(EO,{})}let wO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[cb]}),t})();function Kf(t){return Ue(()=>t)}function DO(t,n){return n?e=>fu(n.pipe(yn(1),function Wq(){return Be((t,n)=>{t.subscribe(ze(n,ee))})}()),e.pipe(DO(t))):li((e,i)=>t(e,i).pipe(yn(1),Kf(e)))}function TO(t,n=nf){const e=GT(t,n);return DO(()=>e)}const $q=["mat-menu-item",""];function Yq(t,n){1&t&&(cc(),O(0,"svg",2),Xe(1,"polygon",3),V())}const MO=["*"];function Qq(t,n){if(1&t){const e=at();O(0,"div",0),we("keydown",function(o){return Ie(e),Re(ie()._handleKeydown(o))})("click",function(){return Ie(e),Re(ie().closed.emit("click"))})("@transformMenu.start",function(o){return Ie(e),Re(ie()._onAnimationStart(o))})("@transformMenu.done",function(o){return Ie(e),Re(ie()._onAnimationDone(o))}),O(1,"div",1),Dt(2),V()()}if(2&t){const e=ie();U("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Ot("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Zf={transformMenu:qi("transformMenu",[gi("void",kt({opacity:0,transform:"scale(0.8)"})),Vn("void => enter",$n("120ms cubic-bezier(0, 0, 0.2, 1)",kt({opacity:1,transform:"scale(1)"}))),Vn("* => void",$n("100ms 25ms linear",kt({opacity:0})))]),fadeInItems:qi("fadeInItems",[gi("showing",kt({opacity:1})),Vn("void => *",[kt({opacity:0}),$n("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Kq=new Pe("MatMenuContent"),pb=new Pe("MAT_MENU_PANEL"),Zq=hs(na(class{}));let Ss=(()=>{class t extends Zq{constructor(e,i,o,r,s){var a;super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new ce,this._focused=new ce,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==r?void 0:r.addItem)||void 0===a||a.call(r,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),o=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<o.length;r++)o[r].remove();return(null===(e=i.textContent)||void 0===e?void 0:e.trim())||""}_setHighlighted(e){var i;this._highlighted=e,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(dt),h(No),h(pb,8),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,i){1&e&&we("click",function(r){return i._checkDisabled(r)})("mouseenter",function(){return i._handleMouseEnter()}),2&e&&(Ot("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),ct("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Me],attrs:$q,ngContentSelectors:MO,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(e,i){1&e&&(In(),Dt(0),Xe(1,"div",0),X(2,Yq,2,0,"svg",1)),2&e&&(A(1),U("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),A(1),U("ngIf",i._triggersSubmenu))},dependencies:[Zt,ra],encapsulation:2,changeDetection:0}),t})();const xO=new Pe("mat-menu-default-options",{providedIn:"root",factory:function Xq(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Jq=0,Ru=(()=>{class t{constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._defaultOptions=o,this._changeDetectorRef=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new as,this._tabSubscription=b.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new ce,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ee,this.close=this.closed,this.panelId="mat-menu-panel-"+Jq++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ft(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ft(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new v_(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(mi(this._directDescendantItems),Pi(e=>Ni(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const o=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=o.activeItem)||void 0===i?void 0:i._hasFocus())){const r=e.toArray(),s=Math.max(0,Math.min(r.length-1,o.activeItemIndex||0));r[s]&&!r[s].disabled?o.setActiveItem(s):o.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(mi(this._directDescendantItems),Pi(i=>Ni(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:to(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(yn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){var o;const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(mi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(lt),h(xO),h(Vt))},t.\u0275dir=ge({type:t,contentQueries:function(e,i,o){if(1&e&&(Je(o,Kq,5),Je(o,Ss,5),Je(o,Ss,4)),2&e){let r;xe(r=Oe())&&(i.lazyContent=r.first),xe(r=Oe())&&(i._allItems=r),xe(r=Oe())&&(i.items=r)}},viewQuery:function(e,i){if(1&e&&Et(vt,5),2&e){let o;xe(o=Oe())&&(i.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),Pu=(()=>{class t extends Ru{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(lt),h(xO),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Ot("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[It([{provide:pb,useExisting:t}]),Me],ngContentSelectors:MO,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(In(),X(0,Qq,3,6,"ng-template"))},dependencies:[Ii],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Zf.transformMenu,Zf.fadeInItems]},changeDetection:0}),t})();const OO=new Pe("mat-menu-scroll-strategy"),tW={provide:OO,deps:[no],useFactory:function eW(t){return()=>t.scrollStrategies.reposition()}},IO=Zs({passive:!0});let nW=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.EMPTY,this._hoverSubscription=b.EMPTY,this._menuCloseSubscription=b.EMPTY,this._handleTouchStart=d=>{b_(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ee,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ee,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof Ru?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,IO),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,IO),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),o=i.getConfig(),r=o.positionStrategy;this._setPosition(e,r),o.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Ru&&(e._startAnimation(),e._directDescendantItems.changes.pipe(yt(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){var i;if(!this._overlayRef||!this.menuOpen)return;const o=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,o instanceof Ru?(o._resetAnimation(),o.lazyContent?o._animationDone.pipe(Wt(r=>"void"===r.toState),yn(1),yt(o.lazyContent._attached)).subscribe({next:()=>o.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(i=null==o?void 0:o.lazyContent)||void 0===i||i.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,o=e.parentMenu;for(;o;)i++,o=o.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new bu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(o=>{const r="start"===o.connectionPair.overlayX?"after":"before",s="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(r,s)):e.setPositionClasses(r,s)})}_setPosition(e,i){let[o,r]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,d]=[o,r],f=0;if(this.triggersSubmenu()){if(d=o="before"===e.xPosition?"start":"end",r=u="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}f="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");i.withPositions([{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:f},{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:f},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:-f},{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ni(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:nt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Wt(s=>s!==this._menuItemInstance),Wt(()=>this._menuOpen)):nt(),i)}_handleMousedown(e){__(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Wt(e=>e===this._menuItemInstance&&!e.disabled),TO(0,ff)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ru&&this.menu._isAnimating?this.menu._animationDone.pipe(yn(1),TO(0,ff),yt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new vl(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(h(no),h(ke),h(ln),h(OO),h(pb,8),h(Ss,10),h(mo,8),h(No),h(lt))},t.\u0275dir=ge({type:t,hostVars:3,hostBindings:function(e,i){1&e&&we("click",function(r){return i._handleClick(r)})("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)}),2&e&&Ot("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),Es=(()=>{class t extends nW{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Me]}),t})(),iW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[tW],imports:[zi,Tt,Eu,Ol,ea,Tt]}),t})();const RO=Zs({passive:!0});let oW=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ho;const i=Hr(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new ce,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,RO),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",a,RO)}}),r}stopMonitoring(e){const i=Hr(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(oe(ti),oe(lt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),PO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();const rW=new Pe("MAT_INPUT_VALUE_ACCESSOR"),sW=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let aW=0;const lW=cM(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new ce}});let gb=(()=>{class t extends lW{constructor(e,i,o,r,s,a,l,c,u,d){super(a,r,s,o),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+aW++,this.focused=!1,this.stateChanges=new ce,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(z=>vT().has(z)),this._iOSKeyupListener=z=>{const ne=z.target;!ne.value&&0===ne.selectionStart&&0===ne.selectionEnd&&(ne.setSelectionRange(1,1),ne.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,w=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===w,this._isTextarea="textarea"===w,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ft(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(U_.required))&&void 0!==r&&r}set required(e){this._required=ft(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&vT().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ft(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const i=this._formField,o=!i||"legacy"!==i.appearance||null!==(e=i._hasLabel)&&void 0!==e&&e.call(i)?this.placeholder:null;if(o!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=o,o?r.setAttribute("placeholder",o):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){sW.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(ti),h(br,10),h(Nl,8),h(Ou,8),h(T_),h(rW,10),h(oW),h(lt),h(ab,8))},t.\u0275dir=ge({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&we("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(rs("disabled",i.disabled)("required",i.required),Ot("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),ct("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[It([{provide:Vf,useExisting:t}]),Me,qn]}),t})(),cW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[T_],imports:[PO,Uf,Tt,PO,Uf]}),t})();function uW(t,n){if(1&t&&(cc(),Xe(0,"circle",4)),2&t){const e=ie(),i=Ui(1);Ji("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Ot("r",e._getCircleRadius())}}function dW(t,n){if(1&t&&(cc(),Xe(0,"circle",4)),2&t){const e=ie(),i=Ui(1);Ji("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Ot("r",e._getCircleRadius())}}const fW=ia(class{constructor(t){this._elementRef=t}},"primary"),pW=new Pe("mat-progress-spinner-default-options",{providedIn:"root",factory:function gW(){return{diameter:100}}});class or extends fW{constructor(n,e,i,o,r,s,a,l){super(n),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=b.EMPTY,this.mode="determinate";const c=or._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!r&&!r._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),r&&(r.color&&(this.color=this.defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&s&&l&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&l.run(()=>s.markForCheck())}))}get diameter(){return this._diameter}set diameter(n){this._diameter=Wi(n),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(n){this._strokeWidth=Wi(n)}get value(){return"determinate"===this.mode?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,Wi(n)))}ngOnInit(){const n=this._elementRef.nativeElement;this._styleRoot=bT(n)||this._document.head,this._attachStyleNode(),n.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const n=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${n} ${n}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(n){var e;const i=50*(null!==(e=n.currentScale)&&void 0!==e?e:1);return`${i}% ${i}%`}_attachStyleNode(){const n=this._styleRoot,e=this._diameter,i=or._diameters;let o=i.get(n);if(!o||!o.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),n.appendChild(r),o||(o=new Set,i.set(n,o)),o.add(e)}}_getAnimationText(){const n=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*n).replace(/END_VALUE/g,""+.2*n).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}or._diameters=new WeakMap,or.\u0275fac=function(n){return new(n||or)(h(ke),h(ti),h(dt,8),h(pi,8),h(pW),h(Vt),h(_u),h(lt))},or.\u0275cmp=et({type:or,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(n,e){2&n&&(Ot("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Ji("width",e.diameter,"px")("height",e.diameter,"px"),ct("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Me],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(n,e){1&n&&(cc(),O(0,"svg",0,1),X(2,uW,1,11,"circle",2),X(3,dW,1,9,"circle",3),V()),2&n&&(Ji("width",e.diameter,"px")("height",e.diameter,"px"),U("ngSwitch","indeterminate"===e.mode),Ot("viewBox",e._getViewBox()),A(2),U("ngSwitchCase",!0),A(1),U("ngSwitchCase",!1))},dependencies:[dl,Mh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let vW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Tt,zi,Tt]}),t})();var As=B(5039);const _W=["tooltip"],kO="tooltip-panel",NO=Zs({passive:!0}),LO=new Pe("mat-tooltip-scroll-strategy"),SW={provide:LO,deps:[no],useFactory:function CW(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},EW=new Pe("mat-tooltip-default-options",{providedIn:"root",factory:function AW(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let wW=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,w){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ce,this._scrollStrategy=u,this._document=w,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),d.change.pipe(yt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=ft(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Wi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Wi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(yt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,NO)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){var i;if(this.disabled||!this.message||this._isTooltipVisible())return void(null===(i=this._tooltipInstance)||void 0===i||i._cancelPendingAnimations());const o=this._createOverlay();this._detach(),this._portal=this._portal||new ml(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(yt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${kO}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(yt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(yt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!to(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),!(null===(e=this._defaultOptions)||void 0===e)&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),r.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(yn(1),yt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${kO}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var o;const r=i.relatedTarget;(!r||null===(o=this._overlayRef)||void 0===o||!o.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,NO)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){Bs()},t.\u0275dir=ge({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Lo=(()=>{class t extends wW{constructor(e,i,o,r,s,a,l,c,u,d,f,w){super(e,i,o,r,s,a,l,c,u,d,f,w),this._tooltipComponent=TW}}return t.\u0275fac=function(e){return new(e||t)(h(no),h(ke),h(mu),h(ln),h(lt),h(ti),h(RT),h(No),h(LO),h(mo,8),h(EW,8),h(dt))},t.\u0275dir=ge({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Me]}),t})(),DW=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ce,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(h(Vt),h(pi,8))},t.\u0275dir=ge({type:t}),t})(),TW=(()=>{class t extends DW{constructor(e,i,o){super(e,o),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return t.\u0275fac=function(e){return new(e||t)(h(Vt),h(sf),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Et(_W,7),2&e){let o;xe(o=Oe())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&we("mouseleave",function(r){return i._handleMouseLeave(r)}),2&e&&Ji("zoom",i.isVisible()?1:null)},features:[Me],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(O(0,"div",0,1),we("animationend",function(r){return i._handleAnimationEnd(r)}),ye(2,"async"),se(3),V()),2&e){let o;ct("mat-tooltip-handset",null==(o=Se(2,4,i._isHandset))?null:o.matches),U("ngClass",i.tooltipClass),A(3),Ne(i.message)}},dependencies:[Ii,Xw],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),t})(),MW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[SW],imports:[S_,zi,Ol,Tt,Tt,ea]}),t})();class vb{constructor(n=!1,e,i=!0,o){this._multiple=n,this._emitChanges=i,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ce,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(r=>this._markSelected(r)),e.filter(r=>!i.has(r)).forEach(r=>this._unmarkSelected(r));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,n))return!0;return!1}return this._selection.has(n)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let FO=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xW=0;const _b=new Pe("CdkAccordion");let OW=(()=>{class t{constructor(){this._stateChanges=new ce,this._openCloseAllActions=new ce,this.id="cdk-accordion-"+xW++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=ft(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[It([{provide:_b,useExisting:t}]),qn]}),t})(),IW=0,RW=(()=>{class t{constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=b.EMPTY,this.closed=new Ee,this.opened=new Ee,this.destroyed=new Ee,this.expandedChange=new Ee,this.id="cdk-accordion-child-"+IW++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=ft(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=ft(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return t.\u0275fac=function(e){return new(e||t)(h(_b,12),h(Vt),h(FO))},t.\u0275dir=ge({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[It([{provide:_b,useValue:void 0}])]}),t})(),PW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();const kW=["body"];function NW(t,n){}const LW=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],FW=["mat-expansion-panel-header","*","mat-action-row"];function BW(t,n){1&t&&Xe(0,"span",2),2&t&&U("@indicatorRotate",ie()._getExpandedState())}const VW=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],jW=["mat-panel-title","mat-panel-description","*"],bb=new Pe("MAT_ACCORDION"),BO="225ms cubic-bezier(0.4,0.0,0.2,1)",VO={indicatorRotate:qi("indicatorRotate",[gi("collapsed, void",kt({transform:"rotate(0deg)"})),gi("expanded",kt({transform:"rotate(180deg)"})),Vn("expanded <=> collapsed, void => collapsed",$n(BO))]),bodyExpansion:qi("bodyExpansion",[gi("collapsed, void",kt({height:"0px",visibility:"hidden"})),gi("expanded",kt({height:"*",visibility:"visible"})),Vn("expanded <=> collapsed, void => collapsed",$n(BO))])},jO=new Pe("MAT_EXPANSION_PANEL");let UW=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(jO,8))},t.\u0275dir=ge({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),HW=0;const UO=new Pe("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let yb=(()=>{class t extends RW{constructor(e,i,o,r,s,a,l){super(e,i,o),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Ee,this.afterCollapse=new Ee,this._inputChanges=new ce,this._headerId="mat-expansion-panel-header-"+HW++,this._bodyAnimationDone=new ce,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(hu((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=ft(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(mi(null),Wt(()=>this.expanded&&!this._portal),yn(1)).subscribe(()=>{this._portal=new vl(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(h(bb,12),h(Vt),h(FO),h(ln),h(dt),h(pi,8),h(UO,8))},t.\u0275cmp=et({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,o){if(1&e&&Je(o,UW,5),2&e){let r;xe(r=Oe())&&(i._lazyContent=r.first)}},viewQuery:function(e,i){if(1&e&&Et(kW,5),2&e){let o;xe(o=Oe())&&(i._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&ct("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[It([{provide:bb,useValue:void 0},{provide:jO,useExisting:t}]),Me,qn],ngContentSelectors:FW,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(In(LW),Dt(0),O(1,"div",0,1),we("@bodyExpansion.done",function(r){return i._bodyAnimationDone.next(r)}),O(3,"div",2),Dt(4,1),X(5,NW,0,0,"ng-template",3),V(),Dt(6,2),V()),2&e&&(A(1),U("@bodyExpansion",i._getExpandedState())("id",i.id),Ot("aria-labelledby",i._headerId),A(4),U("cdkPortalOutlet",i._portal))},dependencies:[_l],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[VO.bodyExpansion]},changeDetection:0}),t})();class GW{}const zW=gf(GW);let Cb=(()=>{class t extends zW{constructor(e,i,o,r,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=b.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(Wt(u=>!(!u.hideToggle&&!u.togglePosition))):Ho;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Ni(e.opened,e.closed,c,e._inputChanges.pipe(Wt(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Wt(()=>e._containsFocus())).subscribe(()=>o.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:to(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(h(yb,1),h(ke),h(No),h(Vt),h(UO,8),h(pi,8),Yo("tabindex"))},t.\u0275cmp=et({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&we("click",function(){return i._toggle()})("keydown",function(r){return i._keydown(r)}),2&e&&(Ot("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),Ji("height",i._getHeaderHeight()),ct("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Me],ngContentSelectors:jW,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(In(VW),O(0,"span",0),Dt(1),Dt(2,1),Dt(3,2),V(),X(4,BW,1,1,"span",1)),2&e&&(ct("mat-content-hide-toggle",!i._showToggle()),A(4),U("ngIf",i._showToggle()))},dependencies:[Zt],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[VO.indicatorRotate]},changeDetection:0}),t})(),qW=(()=>{class t extends OW{constructor(){super(...arguments),this._ownHeaders=new as,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=ft(e)}ngAfterContentInit(){this._headers.changes.pipe(mi(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new v_(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,i,o){if(1&e&&Je(o,Cb,5),2&e){let r;xe(r=Oe())&&(i._headers=r)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,i){2&e&&ct("mat-accordion-multi",i.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[It([{provide:bb,useExisting:t}]),Me]}),t})(),WW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zi,Tt,PW,bl]}),t})(),Sb=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=ft(e)}get inset(){return this._inset}set inset(e){this._inset=ft(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Ot("aria-orientation",i.vertical?"vertical":"horizontal"),ct("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),t})(),HO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Tt,Tt]}),t})();const GO=["*"],zO='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',$W=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],YW=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],QW=["text"];function KW(t,n){if(1&t&&Xe(0,"mat-pseudo-checkbox",5),2&t){const e=ie();U("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const ZW=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],XW=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],JW=na(hs(class{})),e7=hs(class{}),qO=new Pe("MatList"),t7=new Pe("MatNavList");let ku=(()=>{class t extends JW{constructor(e){super(),this._elementRef=e,this._stateChanges=new ce,"action-list"===this._getListType()&&(e.nativeElement.classList.add("mat-action-list"),e.nativeElement.setAttribute("role","group"))}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(h(ke))},t.\u0275cmp=et({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[It([{provide:qO,useExisting:t}]),Me,qn],ngContentSelectors:GO,decls:1,vars:0,template:function(e,i){1&e&&(In(),Dt(0))},styles:[zO],encapsulation:2,changeDetection:0}),t})(),Nu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Xf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),n7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),Lu=(()=>{class t extends e7{constructor(e,i,o,r){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new ce,this._disabled=!1,this._isInteractiveList=!!(o||r&&"action-list"===r._getListType()),this._list=o||r;const s=this._getHostElement();"button"===s.nodeName.toLowerCase()&&!s.hasAttribute("type")&&s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(yt(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=ft(e)}ngAfterContentInit(){uM(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Vt),h(t7,8),h(qO,8))},t.\u0275cmp=et({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Nu,5),Je(o,Xf,5),Je(o,oa,5)),2&e){let r;xe(r=Oe())&&(i._avatar=r.first),xe(r=Oe())&&(i._icon=r.first),xe(r=Oe())&&(i._lines=r)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,i){2&e&&ct("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Me],ngContentSelectors:YW,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,i){1&e&&(In($W),O(0,"span",0),Xe(1,"span",1),Dt(2),O(3,"span",2),Dt(4,1),V(),Dt(5,2),V()),2&e&&(A(1),U("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},dependencies:[ra],encapsulation:2,changeDetection:0}),t})();const i7=hs(class{}),o7=hs(class{}),r7={provide:vo,useExisting:Kt(()=>Eb),multi:!0};class s7{constructor(n,e){this.source=n,this.options=e}}let WO=(()=>{class t extends o7{constructor(e,i,o){super(),this._element=e,this._changeDetector=i,this.selectionList=o,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new Ee,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=ft(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=ft(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(o=>e.compareWith(this._value,o))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){uM(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Vt),h(Kt(()=>Eb)))},t.\u0275cmp=et({type:t,selectors:[["mat-list-option"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Nu,5),Je(o,Xf,5),Je(o,oa,5)),2&e){let r;xe(r=Oe())&&(i._avatar=r.first),xe(r=Oe())&&(i._icon=r.first),xe(r=Oe())&&(i._lines=r)}},viewQuery:function(e,i){if(1&e&&Et(QW,5),2&e){let o;xe(o=Oe())&&(i._text=o.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&we("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(Ot("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),ct("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[Me],ngContentSelectors:XW,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(In(ZW),O(0,"div",0),Xe(1,"div",1),X(2,KW,1,2,"mat-pseudo-checkbox",2),O(3,"div",3,4),Dt(5),V(),Dt(6,1),V()),2&e&&(ct("mat-list-item-content-reverse","after"==i.checkboxPosition),A(1),U("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),A(1),U("ngIf",i.selectionList.multiple))},dependencies:[ra,pM,Zt],encapsulation:2,changeDetection:0}),t})(),Eb=(()=>{class t extends i7{constructor(e,i,o){super(),this._element=e,this._changeDetector=i,this._focusMonitor=o,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new Ee,this.color="accent",this.compareWith=(r,s)=>r===s,this._disabled=!1,this.selectedOptions=new vb(this._multiple),this._tabIndex=-1,this._onChange=r=>{},this._destroyed=new ce,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=ft(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=ft(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new vb(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new v_(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(yt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(mi(null),yt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(yt(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(yt(this._destroyed)).subscribe(e=>{var i;if("keyboard"===e||"program"===e){let o=0;for(let r=0;r<this.options.length;r++)if(null!==(i=this.options.get(r))&&void 0!==i&&i.selected){o=r;break}this._keyManager.setActiveItem(o)}})}ngOnChanges(e){const i=e.disableRipple,o=e.color;(i&&!i.firstChange||o&&!o.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(e){this._element.nativeElement.focus(e)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(e){this._keyManager.updateActiveItem(e)}_removeOptionFromList(e){const i=this._getOptionIndex(e);return i>-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,o=this._keyManager,r=o.activeItemIndex,s=to(e);switch(i){case 32:case 13:!s&&!o.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&to(e,"ctrlKey")&&!o.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else o.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&o.activeItemIndex!==r&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new s7(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const o=this.options.find(r=>!r.selected&&this.compareWith(r.value,i));o&&o._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,o){const r=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&r.push(s)}),r.length&&(this._reportValueChange(),o&&this._emitChangeEvent(r)),r}_isValidIndex(e){return e>=0&&e<this.options.length}_getOptionIndex(e){return this.options.toArray().indexOf(e)}_markOptionsForCheck(){this.options&&this.options.forEach(e=>e._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Vt),h(No))},t.\u0275cmp=et({type:t,selectors:[["mat-selection-list"]],contentQueries:function(e,i,o){if(1&e&&Je(o,WO,5),2&e){let r;xe(r=Oe())&&(i.options=r)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&we("keydown",function(r){return i._keydown(r)}),2&e&&Ot("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[It([r7]),Me,qn],ngContentSelectors:GO,decls:1,vars:0,template:function(e,i){1&e&&(In(),Dt(0))},styles:[zO],encapsulation:2,changeDetection:0}),t})(),a7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[mf,Eu,Tt,x_,zi,mf,Tt,x_,HO]}),t})();function c7(t){return void 0===t}function Fo(t){return"boolean"==typeof t}function Cn(t,n){for(var e=t.length-1;e>=0;e--)t[e]===n&&t.splice(e,1)}function ua(t,n){for(var e=t.length-1;e>=0;e--)!0===n(t[e])&&t.splice(e,1)}function Fu(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var Ul=/[A-Za-z]/,ki=/[\d]/,rr=/\s/,Ab=/['"]/,h7=/[\x00-\x1F\x7F]/,$O=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,g7=$O+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,YO=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,QO=(new RegExp("[".concat($O+YO,"]")),g7+YO),da=new RegExp("[".concat(QO,"]")),KO=function(){function t(n){void 0===n&&(n={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=n.tagName||"",this.attrs=n.attrs||{},this.innerHTML=n.innerHtml||n.innerHTML||""}return t.prototype.setTagName=function(n){return this.tagName=n,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(n,e){return this.getAttrs()[n]=e,this},t.prototype.getAttr=function(n){return this.getAttrs()[n]},t.prototype.setAttrs=function(n){return Object.assign(this.getAttrs(),n),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(n){return this.setAttr("class",n)},t.prototype.addClass=function(n){for(var r,e=this.getClass(),i=e?e.split(rr):[],o=n.split(rr);r=o.shift();)-1===i.indexOf(r)&&i.push(r);return this.getAttrs().class=i.join(" "),this},t.prototype.removeClass=function(n){for(var r,e=this.getClass(),i=e?e.split(rr):[],o=n.split(rr);i.length&&(r=o.shift());){var s=i.indexOf(r);-1!==s&&i.splice(s,1)}return this.getAttrs().class=i.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(n){return-1!==(" "+this.getClass()+" ").indexOf(" "+n+" ")},t.prototype.setInnerHTML=function(n){return this.innerHTML=n,this},t.prototype.setInnerHtml=function(n){return this.setInnerHTML(n)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var n=this.getTagName(),e=this.buildAttrsStr();return["<",n,e=e?" "+e:"",">",this.getInnerHtml(),"</",n,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var n=this.getAttrs(),e=[];for(var i in n)n.hasOwnProperty(i)&&e.push(i+'="'+n[i]+'"');return e.join(" ")},t}(),b7=function(){function t(n){void 0===n&&(n={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=n.newWindow||!1,this.truncate=n.truncate||{},this.className=n.className||""}return t.prototype.build=function(n){return new KO({tagName:"a",attrs:this.createAttrs(n),innerHtml:this.processAnchorText(n.getAnchorText())})},t.prototype.createAttrs=function(n){var e={href:n.getAnchorHref()},i=this.createCssClass(n);return i&&(e.class=i),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<n.getAnchorText().length&&(e.title=n.getAnchorHref()),e},t.prototype.createCssClass=function(n){var e=this.className;if(e){for(var i=[e],o=n.getCssClassSuffixes(),r=0,s=o.length;r<s;r++)i.push(e+"-"+o[r]);return i.join(" ")}return""},t.prototype.processAnchorText=function(n){return this.doTruncate(n)},t.prototype.doTruncate=function(n){var e=this.truncate;if(!e||!e.length)return n;var i=e.length,o=e.location;return"smart"===o?function m7(t,n,e){var i,o;null==e?(e="&hellip;",o=3,i=8):(o=e.length,i=e.length);var s=function(_e){var pe="";return _e.scheme&&_e.host&&(pe+=_e.scheme+"://"),_e.host&&(pe+=_e.host),_e.path&&(pe+="/"+_e.path),_e.query&&(pe+="?"+_e.query),_e.fragment&&(pe+="#"+_e.fragment),pe},a=function(_e,pe){var ve=pe/2,He=Math.ceil(ve),ht=-1*Math.floor(ve),$t="";return ht<0&&($t=_e.substr(ht)),_e.substr(0,He)+e+$t};if(t.length<=n)return t;var pe,ve,He,l=n-o,c=(pe={},(He=(ve=t).match(/^([a-z]+):\/\//i))&&(pe.scheme=He[1],ve=ve.substr(He[0].length)),(He=ve.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(pe.host=He[1],ve=ve.substr(He[0].length)),(He=ve.match(/^\/(.*?)(?=(\?|#|$))/i))&&(pe.path=He[1],ve=ve.substr(He[0].length)),(He=ve.match(/^\?(.*?)(?=(#|$))/i))&&(pe.query=He[1],ve=ve.substr(He[0].length)),(He=ve.match(/^#(.*?)$/i))&&(pe.fragment=He[1]),pe);if(c.query){var u=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(c.query=c.query.substr(0,u[1].length),t=s(c))}if(t.length<=n||(c.host&&(c.host=c.host.replace(/^www\./,""),t=s(c)),t.length<=n))return t;var d="";if(c.host&&(d+=c.host),d.length>=l)return c.host.length==n?(c.host.substr(0,n-o)+e).substr(0,l+i):a(d,l).substr(0,l+i);var f="";if(c.path&&(f+="/"+c.path),c.query&&(f+="?"+c.query),f){if((d+f).length>=l)return(d+f).length==n?(d+f).substr(0,n):(d+a(f,l-d.length)).substr(0,l+i);d+=f}if(c.fragment){var z="#"+c.fragment;if((d+z).length>=l)return(d+z).length==n?(d+z).substr(0,n):(d+a(z,l-d.length)).substr(0,l+i);d+=z}if(c.scheme&&c.host){var fe=c.scheme+"://";if((d+fe).length<l)return(fe+d).substr(0,n)}if(d.length<=n)return d;var he="";return l>0&&(he=d.substr(-1*Math.floor(l/2))),(d.substr(0,Math.ceil(l/2))+e+he).substr(0,l+i)}(n,i):"middle"===o?function v7(t,n,e){if(t.length<=n)return t;var i,o;null==e?(e="&hellip;",i=8,o=3):(i=e.length,o=e.length);var r=n-o,s="";return r>0&&(s=t.substr(-1*Math.floor(r/2))),(t.substr(0,Math.ceil(r/2))+e+s).substr(0,r+i)}(n,i):function _7(t,n,e){return function d7(t,n,e){var i;return t.length>n&&(null==e?(e="&hellip;",i=3):i=e.length,t=t.substring(0,n-i)+e),t}(t,n,e)}(n,i)},t}(),Bu=function(){function t(n){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=n.tagBuilder,this.matchedText=n.matchedText,this.offset=n.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(n){this.offset=n},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.type]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),C7=new RegExp("^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|verm\xf6gensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|verm\xf6gensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|\u043a\u0430\u0442\u043e\u043b\u0438\u043a|\u0627\u062a\u0635\u0627\u0644\u0627\u062a|\u0627\u0644\u0628\u062d\u0631\u064a\u0646|\u0627\u0644\u062c\u0632\u0627\u0626\u0631|\u0627\u0644\u0639\u0644\u064a\u0627\u0646|\u067e\u0627\u06a9\u0633\u062a\u0627\u0646|\u0643\u0627\u062b\u0648\u0644\u064a\u0643|\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|\u043c\u043e\u0441\u043a\u0432\u0430|\u043e\u043d\u043b\u0430\u0439\u043d|\u0627\u0628\u0648\u0638\u0628\u064a|\u0627\u0631\u0627\u0645\u0643\u0648|\u0627\u0644\u0627\u0631\u062f\u0646|\u0627\u0644\u0645\u063a\u0631\u0628|\u0627\u0645\u0627\u0631\u0627\u062a|\u0641\u0644\u0633\u0637\u064a\u0646|\u0645\u0644\u064a\u0633\u064a\u0627|\u092d\u093e\u0930\u0924\u092e\u094d|\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8|\u30d5\u30a1\u30c3\u30b7\u30e7\u30f3|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|\u05d9\u05e9\u05e8\u05d0\u05dc|\u0627\u06cc\u0631\u0627\u0646|\u0628\u0627\u0632\u0627\u0631|\u0628\u06be\u0627\u0631\u062a|\u0633\u0648\u062f\u0627\u0646|\u0633\u0648\u0631\u064a\u0629|\u0647\u0645\u0631\u0627\u0647|\u092d\u093e\u0930\u094b\u0924|\u0938\u0902\u0917\u0920\u0928|\u09ac\u09be\u0982\u09b2\u09be|\u0c2d\u0c3e\u0c30\u0c24\u0c4d|\u0d2d\u0d3e\u0d30\u0d24\u0d02|\u5609\u91cc\u5927\u9152\u5e97|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|\u0434\u0435\u0442\u0438|\u0441\u0430\u0439\u0442|\u0628\u0627\u0631\u062a|\u0628\u064a\u062a\u0643|\u0680\u0627\u0631\u062a|\u062a\u0648\u0646\u0633|\u0634\u0628\u0643\u0629|\u0639\u0631\u0627\u0642|\u0639\u0645\u0627\u0646|\u0645\u0648\u0642\u0639|\u092d\u093e\u0930\u0924|\u09ad\u09be\u09b0\u09a4|\u09ad\u09be\u09f0\u09a4|\u0a2d\u0a3e\u0a30\u0a24|\u0aad\u0abe\u0ab0\u0aa4|\u0b2d\u0b3e\u0b30\u0b24|\u0cad\u0cbe\u0cb0\u0ca4|\u0dbd\u0d82\u0d9a\u0dcf|\u30a2\u30de\u30be\u30f3|\u30b0\u30fc\u30b0\u30eb|\u30af\u30e9\u30a6\u30c9|\u30dd\u30a4\u30f3\u30c8|\u7ec4\u7ec7\u673a\u6784|\u96fb\u8a0a\u76c8\u79d1|\u9999\u683c\u91cc\u62c9|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|\u0431\u0435\u043b|\u043a\u043e\u043c|\u049b\u0430\u0437|\u043c\u043a\u0434|\u043c\u043e\u043d|\u043e\u0440\u0433|\u0440\u0443\u0441|\u0441\u0440\u0431|\u0443\u043a\u0440|\u0570\u0561\u0575|\u05e7\u05d5\u05dd|\u0639\u0631\u0628|\u0642\u0637\u0631|\u0643\u0648\u0645|\u0645\u0635\u0631|\u0915\u0949\u092e|\u0928\u0947\u091f|\u0e04\u0e2d\u0e21|\u0e44\u0e17\u0e22|\u0ea5\u0eb2\u0ea7|\u30b9\u30c8\u30a2|\u30bb\u30fc\u30eb|\u307f\u3093\u306a|\u4e2d\u6587\u7f51|\u4e9a\u9a6c\u900a|\u5929\u4e3b\u6559|\u6211\u7231\u4f60|\u65b0\u52a0\u5761|\u6de1\u9a6c\u9521|\u8bfa\u57fa\u4e9a|\u98de\u5229\u6d66|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|\u03b5\u03bb|\u03b5\u03c5|\u0431\u0433|\u0435\u044e|\u0440\u0444|\u10d2\u10d4|\ub2f7\ub137|\ub2f7\ucef4|\uc0bc\uc131|\ud55c\uad6d|\u30b3\u30e0|\u4e16\u754c|\u4e2d\u4fe1|\u4e2d\u56fd|\u4e2d\u570b|\u4f01\u4e1a|\u4f5b\u5c71|\u4fe1\u606f|\u5065\u5eb7|\u516b\u5366|\u516c\u53f8|\u516c\u76ca|\u53f0\u6e7e|\u53f0\u7063|\u5546\u57ce|\u5546\u5e97|\u5546\u6807|\u5609\u91cc|\u5728\u7ebf|\u5927\u62ff|\u5a31\u4e50|\u5bb6\u96fb|\u5e7f\u4e1c|\u5fae\u535a|\u6148\u5584|\u624b\u673a|\u62db\u8058|\u653f\u52a1|\u653f\u5e9c|\u65b0\u95fb|\u65f6\u5c1a|\u66f8\u7c4d|\u673a\u6784|\u6e38\u620f|\u6fb3\u9580|\u70b9\u770b|\u79fb\u52a8|\u7f51\u5740|\u7f51\u5e97|\u7f51\u7ad9|\u7f51\u7edc|\u8054\u901a|\u8c37\u6b4c|\u8d2d\u7269|\u901a\u8ca9|\u96c6\u56e2|\u98df\u54c1|\u9910\u5385|\u9999\u6e2f)$"),S7=/[\/?#]/,E7=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,ZO=/[?!:,.;^]/,XO=/https?:\/\//i,A7=new RegExp("^"+XO.source,"i"),w7=new RegExp(ZO.source+"$"),D7=/^(javascript|vbscript):/i,T7=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,M7=/^(?:\/\/)?([^/#?:]+)/;function wb(t){return Ul.test(t)}function JO(t){return Ul.test(t)||ki.test(t)||"+"===t||"-"===t||"."===t}function ws(t){return da.test(t)}function Db(t){return"_"===t||ws(t)}function eI(t){return da.test(t)||E7.test(t)||ZO.test(t)}function Tb(t){return S7.test(t)}function tI(t){return C7.test(t.toLowerCase())}var I7=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,R7=/[:/?#]/,k7=/^(https?:\/\/)?(www\.)?/i,N7=/^\/\//,L7=function(t){function n(e){var i=t.call(this,e)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=e.urlMatchType,i.url=e.url,i.protocolRelativeMatch=e.protocolRelativeMatch,i.stripPrefix=e.stripPrefix,i.stripTrailingSlash=e.stripTrailingSlash,i.decodePercentEncoding=e.decodePercentEncoding,i}return Yt(n,t),n.prototype.getType=function(){return"url"},n.prototype.getUrlMatchType=function(){return this.urlMatchType},n.prototype.getUrl=function(){var e=this.url;return!this.protocolRelativeMatch&&"scheme"!==this.urlMatchType&&!this.protocolPrepended&&(e=this.url="http://"+e,this.protocolPrepended=!0),e},n.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},n.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=function V7(t){return t.replace(N7,"")}(e)),this.stripPrefix.scheme&&(e=function F7(t){return t.replace(A7,"")}(e)),this.stripPrefix.www&&(e=function B7(t){return t.replace(k7,"$1")}(e)),this.stripTrailingSlash&&(e=function j7(t){return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}(e)),this.decodePercentEncoding&&(e=function U7(t){var n=t.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(n)}catch(e){return n}}(e)),e},n}(Bu),H7=/^mailto:/i,G7=new RegExp("[".concat(QO,"!#$%&'*+/=?^_`{|}~-]"));function Mb(t){return G7.test(t)}var W7=function(t){function n(e){var i=t.call(this,e)||this;return i.type="email",i.email="",i.email=e.email,i}return Yt(n,t),n.prototype.getType=function(){return"email"},n.prototype.getEmail=function(){return this.email},n.prototype.getAnchorHref=function(){return"mailto:"+this.email},n.prototype.getAnchorText=function(){return this.email},n}(Bu);function nI(t){return"_"===t||da.test(t)}var Y7=["twitter","facebook","instagram","tiktok"],Q7=function(t){function n(e){var i=t.call(this,e)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=e.serviceName,i.hashtag=e.hashtag,i}return Yt(n,t),n.prototype.getType=function(){return"hashtag"},n.prototype.getServiceName=function(){return this.serviceName},n.prototype.getHashtag=function(){return this.hashtag},n.prototype.getAnchorHref=function(){var e=this.serviceName,i=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+i;case"facebook":return"https://www.facebook.com/hashtag/"+i;case"instagram":return"https://instagram.com/explore/tags/"+i;case"tiktok":return"https://www.tiktok.com/tag/"+i;default:throw Fu(e),new Error("Invalid hashtag service: ".concat(e))}},n.prototype.getAnchorText=function(){return"#"+this.hashtag},n.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},n}(Bu),K7={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},Z7=/[-\w.]/;function iI(t){return Z7.test(t)}var J7=["twitter","instagram","soundcloud","tiktok"],e$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=e.mention,i.serviceName=e.serviceName,i}return Yt(n,t),n.prototype.getType=function(){return"mention"},n.prototype.getMention=function(){return this.mention},n.prototype.getServiceName=function(){return this.serviceName},n.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},n.prototype.getAnchorText=function(){return"@"+this.mention},n.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},n}(Bu),t$=/[-. ]/,n$=/[-. ()]/,i$=/[,;]/,s$=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function oI(t){return t$.test(t)}function xb(t){return i$.test(t)}var l$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=e.number,i.plusSign=e.plusSign,i}return Yt(n,t),n.prototype.getType=function(){return"phone"},n.prototype.getPhoneNumber=function(){return this.number},n.prototype.getNumber=function(){return this.getPhoneNumber()},n.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},n.prototype.getAnchorText=function(){return this.matchedText},n}(Bu);var u$=/[\(\{\[]/,rI=/[\)\}\]]/,sI={")":"(","}":"{","]":"["};function Ob(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"scheme"}}function Ib(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"tld"}}function Rb(t,n){return{type:"phone",startIdx:t,state:n,acceptStateReached:!1}}var yr=function t(n){void 0===n&&(n={}),this.idx=void 0!==n.idx?n.idx:-1,this.type=n.type||"tag",this.name=n.name||"",this.isOpening=!!n.isOpening,this.isClosing=!!n.isClosing};const _$=function(){function t(n){void 0===n&&(n={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=function b$(t){return null==t&&(t=!0),Fo(t)?{schemeMatches:t,tldMatches:t,ipV4Matches:t}:{schemeMatches:!Fo(t.schemeMatches)||t.schemeMatches,tldMatches:!Fo(t.tldMatches)||t.tldMatches,ipV4Matches:!Fo(t.ipV4Matches)||t.ipV4Matches}}(n.urls),this.email=Fo(n.email)?n.email:this.email,this.phone=Fo(n.phone)?n.phone:this.phone,this.hashtag=n.hashtag||this.hashtag,this.mention=n.mention||this.mention,this.newWindow=Fo(n.newWindow)?n.newWindow:this.newWindow,this.stripPrefix=function y$(t){return null==t&&(t=!0),Fo(t)?{scheme:t,www:t}:{scheme:!Fo(t.scheme)||t.scheme,www:!Fo(t.www)||t.www}}(n.stripPrefix),this.stripTrailingSlash=Fo(n.stripTrailingSlash)?n.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Fo(n.decodePercentEncoding)?n.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=n.sanitizeHtml||!1;var e=this.mention;if(!1!==e&&-1===J7.indexOf(e))throw new Error("invalid `mention` cfg '".concat(e,"' - see docs"));var i=this.hashtag;if(!1!==i&&-1===Y7.indexOf(i))throw new Error("invalid `hashtag` cfg '".concat(i,"' - see docs"));this.truncate=function C$(t){return"number"==typeof t?{length:t,location:"end"}:function u7(t,n){for(var e in n)n.hasOwnProperty(e)&&c7(t[e])&&(t[e]=n[e]);return t}(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})}(n.truncate),this.className=n.className||this.className,this.replaceFn=n.replaceFn||this.replaceFn,this.context=n.context||this}return t.link=function(n,e){return new t(e).link(n)},t.parse=function(n,e){return new t(e).parse(n)},t.prototype.parse=function(n){var e=this,i=["a","style","script"],o=0,r=[];return function m$(t,n){for(var e=n.onOpenTag,i=n.onCloseTag,o=n.onText,r=n.onComment,s=n.onDoctype,a=new yr,l=0,c=t.length,u=0,d=0,f=a;l<c;){var w=t.charAt(l);switch(u){case 0:"<"===w&&Ut();break;case 1:"!"===(Ve=w)?u=13:"/"===Ve?(u=2,f=new yr(qe(qe({},f),{isClosing:!0}))):"<"===Ve?Ut():Ul.test(Ve)?(u=3,f=new yr(qe(qe({},f),{isOpening:!0}))):(u=0,f=a);break;case 2:he(w);break;case 3:fe(w);break;case 4:_e(w);break;case 5:pe(w);break;case 6:ve(w);break;case 7:He(w);break;case 8:ht(w);break;case 9:$t(w);break;case 10:xt(w);break;case 11:Sn(w);break;case 12:Rt(w);break;case 13:"--"===t.substr(l,2)?(l+=2,f=new yr(qe(qe({},f),{type:"comment"})),u=14):"DOCTYPE"===t.substr(l,7).toUpperCase()?(l+=7,f=new yr(qe(qe({},f),{type:"doctype"})),u=20):it();break;case 14:_i(w);break;case 15:Hn(w);break;case 16:Di(w);break;case 17:yo(w);break;case 18:Ke(w);break;case 19:Ge(w);break;case 20:ot(w);break;default:Fu(u)}l++}var Ve;function fe(Ve){rr.test(Ve)?(f=new yr(qe(qe({},f),{name:Bt()})),u=4):"<"===Ve?Ut():"/"===Ve?(f=new yr(qe(qe({},f),{name:Bt()})),u=12):">"===Ve?(f=new yr(qe(qe({},f),{name:Bt()})),En()):!Ul.test(Ve)&&!ki.test(Ve)&&":"!==Ve&&it()}function he(Ve){">"===Ve?it():Ul.test(Ve)?u=3:it()}function _e(Ve){rr.test(Ve)||("/"===Ve?u=12:">"===Ve?En():"<"===Ve?Ut():"="===Ve||Ab.test(Ve)||h7.test(Ve)?it():u=5)}function pe(Ve){rr.test(Ve)?u=6:"/"===Ve?u=12:"="===Ve?u=7:">"===Ve?En():"<"===Ve?Ut():Ab.test(Ve)&&it()}function ve(Ve){rr.test(Ve)||("/"===Ve?u=12:"="===Ve?u=7:">"===Ve?En():"<"===Ve?Ut():Ab.test(Ve)?it():u=5)}function He(Ve){rr.test(Ve)||('"'===Ve?u=8:"'"===Ve?u=9:/[>=`]/.test(Ve)?it():"<"===Ve?Ut():u=10)}function ht(Ve){'"'===Ve&&(u=11)}function $t(Ve){"'"===Ve&&(u=11)}function xt(Ve){rr.test(Ve)?u=4:">"===Ve?En():"<"===Ve&&Ut()}function Sn(Ve){rr.test(Ve)?u=4:"/"===Ve?u=12:">"===Ve?En():"<"===Ve?Ut():(u=4,function Ct(){l--}())}function Rt(Ve){">"===Ve?(f=new yr(qe(qe({},f),{isClosing:!0})),En()):u=4}function _i(Ve){"-"===Ve?u=15:">"===Ve?it():u=16}function Hn(Ve){"-"===Ve?u=18:">"===Ve?it():u=16}function Di(Ve){"-"===Ve&&(u=17)}function yo(Ve){u="-"===Ve?18:16}function Ke(Ve){">"===Ve?En():"!"===Ve?u=19:"-"===Ve||(u=16)}function Ge(Ve){"-"===Ve?u=17:">"===Ve?En():u=16}function ot(Ve){">"===Ve?En():"<"===Ve&&Ut()}function it(){u=0,f=a}function Ut(){u=1,f=new yr({idx:l})}function En(){var Ve=t.slice(d,f.idx);Ve&&o(Ve,d),"comment"===f.type?r(f.idx):"doctype"===f.type?s(f.idx):(f.isOpening&&e(f.name,f.idx),f.isClosing&&i(f.name,f.idx)),it(),d=l+1}function Bt(){return t.slice(f.idx+(f.isClosing?2:1),l).toLowerCase()}d<l&&function si(){var Ve=t.slice(d,l);o(Ve,d),d=l+1}()}(n,{onOpenTag:function(s){i.indexOf(s)>=0&&o++},onText:function(s,a){if(0===o){var c=s.split(/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),u=a;c.forEach(function(d,f){if(f%2==0){var w=e.parseText(d,u);r.push.apply(r,w)}u+=d.length})}},onCloseTag:function(s){i.indexOf(s)>=0&&(o=Math.max(o-1,0))},onComment:function(s){},onDoctype:function(s){}}),r=this.compactMatches(r),r=this.removeUnwantedMatches(r)},t.prototype.compactMatches=function(n){n.sort(function(l,c){return l.getOffset()-c.getOffset()});for(var e=0;e<n.length-1;){var i=n[e],o=i.getOffset(),r=i.getMatchedText().length,s=o+r;if(e+1<n.length){if(n[e+1].getOffset()===o){var a=n[e+1].getMatchedText().length>r?e:e+1;n.splice(a,1);continue}if(n[e+1].getOffset()<s){n.splice(e+1,1);continue}}e++}return n},t.prototype.removeUnwantedMatches=function(n){return this.hashtag||ua(n,function(e){return"hashtag"===e.getType()}),this.email||ua(n,function(e){return"email"===e.getType()}),this.phone||ua(n,function(e){return"phone"===e.getType()}),this.mention||ua(n,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||ua(n,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.tldMatches||ua(n,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),this.urls.ipV4Matches||ua(n,function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()}),n},t.prototype.parseText=function(n,e){void 0===e&&(e=0),e=e||0;for(var i=function c$(t,n){for(var e=n.tagBuilder,i=n.stripPrefix,o=n.stripTrailingSlash,r=n.decodePercentEncoding,s=n.hashtagServiceName,a=n.mentionServiceName,l=[],c=t.length,u=[],d=0;d<c;d++){var f=t.charAt(d);if(0===u.length)fe(f);else for(var w=u.length-1;w>=0;w--){var z=u[w];switch(z.state){case 11:de=z,"/"===f?de.state=12:Cn(u,de);break;case 12:$t(z,f);break;case 0:he(z,f);break;case 1:_e(z,f);break;case 2:pe(z,f);break;case 3:ve(z,f);break;case 4:He(z,f);break;case 5:xt(z,f);break;case 6:Sn(z,f);break;case 7:Rt(z,f);break;case 13:hn(z,f);break;case 14:_i(z,f);break;case 8:Hn(z,f);break;case 9:Di(z,f);break;case 10:yo(z,f);break;case 15:Ke(z,f);break;case 16:Ge(z,f);break;case 17:ot(z,f);break;case 18:it(z,f);break;case 19:Ut(z,f);break;case 20:En(z,f);break;case 21:si(z,f);break;case 22:Bt(z,f);break;case 23:Ct(z,f);break;case 24:Ve(z,f);break;case 25:Co(z,f);break;case 26:On(z,f);break;case 27:Qi(z,f);break;case 28:io(z,f);break;case 29:tc(z,f);break;case 30:sd(z,f);break;case 31:Zoe(z,f);break;case 32:Joe(z,f);break;case 33:ere(z,f);break;case 34:tre(z,f);break;case 35:nre(z,f);break;case 36:ire(z,f);break;case 37:Xoe(z,f);break;case 38:ore(z,f);break;case 39:rre(z,f);break;case 40:sre(z,f);break;case 41:are(z,f);break;default:Fu(z.state)}}}for(var de,ne=u.length-1;ne>=0;ne--)u.forEach(function(de){return Nn(de)});return l;function fe(de){if("#"===de)u.push(function p$(t,n){return{type:"hashtag",startIdx:t,state:n,acceptStateReached:!1}}(d,28));else if("@"===de)u.push(function g$(t,n){return{type:"mention",startIdx:t,state:n,acceptStateReached:!1}}(d,30));else if("/"===de)u.push(Ib(d,11));else if("+"===de)u.push(Rb(d,37));else if("("===de)u.push(Rb(d,32));else{if(ki.test(de)&&(u.push(Rb(d,38)),u.push(function h$(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}(d,13))),function z7(t){return da.test(t)}(de)){var be="m"===de.toLowerCase()?15:22;u.push(function f$(t,n){return{type:"email",startIdx:t,state:n,acceptStateReached:!1}}(d,be))}wb(de)&&u.push(Ob(d,0)),da.test(de)&&u.push(Ib(d,5))}}function he(de,be){":"===be?de.state=2:"-"===be?de.state=1:JO(be)||Cn(u,de)}function _e(de,be){"-"===be||("/"===be?(Cn(u,de),u.push(Ib(d,11))):JO(be)?de.state=0:Cn(u,de))}function pe(de,be){"/"===be?de.state=3:"."===be?Cn(u,de):ws(be)?(de.state=5,wb(be)&&u.push(Ob(d,0))):Cn(u,de)}function ve(de,be){"/"===be?de.state=4:eI(be)?(de.state=10,de.acceptStateReached=!0):Nn(de)}function He(de,be){"/"===be?de.state=10:ws(be)?(de.state=5,de.acceptStateReached=!0):Cn(u,de)}function $t(de,be){ws(be)?de.state=5:Cn(u,de)}function xt(de,be){"."===be?de.state=7:"-"===be?de.state=6:":"===be?de.state=8:Tb(be)?de.state=10:Db(be)||Nn(de)}function Sn(de,be){"-"===be||("."===be?Nn(de):ws(be)?de.state=5:Nn(de))}function Rt(de,be){"."===be?Nn(de):ws(be)?(de.state=5,de.acceptStateReached=!0):Nn(de)}function hn(de,be){"."===be?de.state=14:":"===be?de.state=8:ki.test(be)||(Tb(be)?de.state=10:da.test(be)?Cn(u,de):Nn(de))}function _i(de,be){ki.test(be)?(de.octetsEncountered++,4===de.octetsEncountered&&(de.acceptStateReached=!0),de.state=13):Nn(de)}function Hn(de,be){ki.test(be)?de.state=9:Nn(de)}function Di(de,be){ki.test(be)||(Tb(be)?de.state=10:Nn(de))}function yo(de,be){eI(be)||Nn(de)}function Ke(de,be){"a"===be.toLowerCase()?de.state=16:Bt(de,be)}function Ge(de,be){"i"===be.toLowerCase()?de.state=17:Bt(de,be)}function ot(de,be){"l"===be.toLowerCase()?de.state=18:Bt(de,be)}function it(de,be){"t"===be.toLowerCase()?de.state=19:Bt(de,be)}function Ut(de,be){"o"===be.toLowerCase()?de.state=20:Bt(de,be)}function En(de,be){":"===be.toLowerCase()?de.state=21:Bt(de,be)}function si(de,be){Mb(be)?de.state=22:Cn(u,de)}function Bt(de,be){"."===be?de.state=23:"@"===be?de.state=24:Mb(be)?de.state=22:Cn(u,de)}function Ct(de,be){"."===be||"@"===be?Cn(u,de):Mb(be)?de.state=22:Cn(u,de)}function Ve(de,be){ws(be)?de.state=25:Cn(u,de)}function Co(de,be){"."===be?de.state=27:"-"===be?de.state=26:Db(be)||Nn(de)}function On(de,be){"-"===be||"."===be?Nn(de):Db(be)?de.state=25:Nn(de)}function Qi(de,be){"."===be||"-"===be?Nn(de):ws(be)?(de.state=25,de.acceptStateReached=!0):Nn(de)}function io(de,be){nI(be)?(de.state=29,de.acceptStateReached=!0):Cn(u,de)}function tc(de,be){nI(be)||Nn(de)}function sd(de,be){iI(be)?(de.state=31,de.acceptStateReached=!0):Cn(u,de)}function Zoe(de,be){iI(be)||(da.test(be)?Cn(u,de):Nn(de))}function Xoe(de,be){ki.test(be)?de.state=38:(Cn(u,de),fe(be))}function Joe(de,be){ki.test(be)?de.state=33:Cn(u,de),fe(be)}function ere(de,be){ki.test(be)?de.state=34:Cn(u,de)}function tre(de,be){ki.test(be)?de.state=35:Cn(u,de)}function nre(de,be){")"===be?de.state=36:Cn(u,de)}function ire(de,be){ki.test(be)?de.state=38:oI(be)?de.state=39:Cn(u,de)}function ore(de,be){de.acceptStateReached=!0,xb(be)?de.state=40:"#"===be?de.state=41:ki.test(be)||("("===be?de.state=32:oI(be)?de.state=39:(Nn(de),wb(be)&&u.push(Ob(d,0))))}function rre(de,be){ki.test(be)?de.state=38:"("===be?de.state=32:(Nn(de),fe(be))}function sre(de,be){xb(be)||("#"===be?de.state=41:ki.test(be)?de.state=38:Nn(de))}function are(de,be){xb(be)?de.state=40:ki.test(be)?Cn(u,de):Nn(de)}function Nn(de){if(Cn(u,de),de.acceptStateReached){var be=de.startIdx,An=t.slice(de.startIdx,d);if(An=function d$(t){for(var n={"(":0,"{":0,"[":0},e=0;e<t.length;e++){var i=t.charAt(e);u$.test(i)?n[i]++:rI.test(i)&&n[sI[i]]--}for(var r,o=t.length-1;o>=0;)if(r=t.charAt(o),rI.test(r)){var s=sI[r];if(!(n[s]<0))break;n[s]++,o--}else{if(!w7.test(r))break;o--}return t.slice(0,o+1)}(An),"url"===de.type){if("@"===t.charAt(de.startIdx-1))return;var ad=de.matchType;if("scheme"===ad){var My=XO.exec(An);if(My&&(be+=My.index,An=An.slice(My.index)),!function x7(t){if(D7.test(t))return!1;var n=t.match(T7);if(!n)return!1;var i=n[2];return!!n[1]||!(-1===i.indexOf(".")||!Ul.test(i))}(An))return}else if("tld"===ad){if(!function O7(t){var n=t.match(M7);if(!n)return!1;var i=n[0].split(".");return!(i.length<2||!tI(i[i.length-1]))}(An))return}else if("ipV4"===ad){if(!function P7(t){var n=t.split(R7,1)[0];return I7.test(n)}(An))return}else Fu(ad);l.push(new L7({tagBuilder:e,matchedText:An,offset:be,urlMatchType:ad,url:An,protocolRelativeMatch:"//"===An.slice(0,2),stripPrefix:i,stripTrailingSlash:o,decodePercentEncoding:r}))}else if("email"===de.type)(function q7(t){return tI(t.split(".").pop()||"")})(An)&&l.push(new W7({tagBuilder:e,matchedText:An,offset:be,email:An.replace(H7,"")}));else if("hashtag"===de.type)(function $7(t){return t.length<=140})(An)&&l.push(new Q7({tagBuilder:e,matchedText:An,offset:be,serviceName:s,hashtag:An.slice(1)}));else if("mention"===de.type)(function X7(t,n){return K7[n].test(t)})(An,a)&&l.push(new e$({tagBuilder:e,matchedText:An,offset:be,serviceName:a,mention:An.slice(1)}));else if("phone"===de.type){if(function a$(t){return("+"===t.charAt(0)||n$.test(t))&&s$.test(t)}(An=An.replace(/ +$/g,""))){var cre=An.replace(/[^0-9,;#]/g,"");l.push(new l$({tagBuilder:e,matchedText:An,offset:be,number:cre,plusSign:"+"===An.charAt(0)}))}}else Fu(de)}}}(n,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),o=0,r=i.length;o<r;o++)i[o].setOffset(e+i[o].getOffset());return i},t.prototype.link=function(n){if(!n)return"";this.sanitizeHtml&&(n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var e=this.parse(n),i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r];i.push(n.substring(o,a.getOffset())),i.push(this.createMatchReturnVal(a)),o=a.getOffset()+a.getMatchedText().length}return i.push(n.substring(o)),i.join("")},t.prototype.createMatchReturnVal=function(n){var e;return this.replaceFn&&(e=this.replaceFn.call(this.context,n)),"string"==typeof e?e:!1===e?n.getMatchedText():e instanceof KO?e.toAnchorString():n.buildTag().toAnchorString()},t.prototype.getTagBuilder=function(){var n=this.tagBuilder;return n||(n=this.tagBuilder=new b7({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),n},t.version="4.0.0",t}();let pI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[cb]}),t})(),GY=(()=>{class t{constructor(e,i){fl(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:nr,useValue:Object.assign(Object.assign({},ub),e)},{provide:Gf,useValue:i,multi:!0},{provide:Bl,useValue:!0}]:[{provide:nr,useValue:Object.assign(Object.assign({},ub),e)},{provide:Gf,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(oe(Bl),oe(xo))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[bO,wO,pI,bO,wO,pI]}),t})(),zY=0;const qY=na(class{}),gI="mat-badge-content";let WY=(()=>{class t extends qY{constructor(e,i,o,r,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=o,this._renderer=r,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=zY++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=ft(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=ft(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(gI),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${null!=e?e:""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${gI}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return t.\u0275fac=function(e){return new(e||t)(h(lt),h(ke),h(RT),h(To),h(pi,8))},t.\u0275dir=ge({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&ct("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[Me]}),t})(),$Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[S_,Tt,Tt]}),t})();const Jf=["*"],YY=["content"];function QY(t,n){if(1&t){const e=at();O(0,"div",2),we("click",function(){return Ie(e),Re(ie()._onBackdropClicked())}),V()}2&t&&ct("mat-drawer-shown",ie()._isShowingBackdrop())}function KY(t,n){1&t&&(O(0,"mat-drawer-content"),Dt(1,2),V())}const ZY=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],XY=["mat-drawer","mat-drawer-content","*"];function JY(t,n){if(1&t){const e=at();O(0,"div",2),we("click",function(){return Ie(e),Re(ie()._onBackdropClicked())}),V()}2&t&&ct("mat-drawer-shown",ie()._isShowingBackdrop())}function eQ(t,n){1&t&&(O(0,"mat-sidenav-content"),Dt(1,2),V())}const tQ=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],nQ=["mat-sidenav","mat-sidenav-content","*"],mI={transformDrawer:qi("transform",[gi("open, open-instant",kt({transform:"none",visibility:"visible"})),gi("void",kt({"box-shadow":"none",visibility:"hidden"})),Vn("void => open-instant",$n("0ms")),Vn("void <=> open, open-instant => void",$n("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},oQ=new Pe("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function rQ(){return!1}}),Pb=new Pe("MAT_DRAWER_CONTAINER");let ep=(()=>{class t extends vu{constructor(e,i,o,r,s){super(o,r,s),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(Vt),h(Kt(()=>_I)),h(ke),h(mu),h(lt))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&Ji("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[It([{provide:vu,useExisting:t}]),Me],ngContentSelectors:Jf,decls:1,vars:0,template:function(e,i){1&e&&(In(),Dt(0))},encapsulation:2,changeDetection:0}),t})(),vI=(()=>{class t{constructor(e,i,o,r,s,a,l,c){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=s,this._interactivityChecker=a,this._doc=l,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ce,this._animationEnd=new ce,this._animationState="void",this.openedChange=new Ee(!0),this._openedStream=this.openedChange.pipe(Wt(u=>u),Ue(()=>{})),this.openedStart=this._animationStarted.pipe(Wt(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),Kf(void 0)),this._closedStream=this.openedChange.pipe(Wt(u=>!u),Ue(()=>{})),this.closedStart=this._animationStarted.pipe(Wt(u=>u.fromState!==u.toState&&"void"===u.toState),Kf(void 0)),this._destroyed=new ce,this.onPositionChanged=new Ee,this._modeChanged=new ce,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Tl(this._elementRef.nativeElement,"keydown").pipe(Wt(u=>27===u.keyCode&&!this.disableClose&&!to(u)),yt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(hu((u,d)=>u.fromState===d.fromState&&u.toState===d.toState)).subscribe(u=>{const{fromState:d,toState:f}=u;(0===f.indexOf("open")&&"void"===d||"void"===f&&0===d.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=ft(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=ft(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(ft(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(yn(1)).subscribe(s=>r(s?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(cf),h(No),h(ti),h(lt),h(pu),h(dt,8),h(Pb,8))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&Et(YY,5),2&e){let o;xe(o=Oe())&&(i._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&kc("@transform.start",function(r){return i._animationStarted.next(r)})("@transform.done",function(r){return i._animationEnd.next(r)}),2&e&&(Ot("align",null),Lc("@transform",i._animationState),ct("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Jf,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(In(),O(0,"div",0,1),Dt(2),V())},dependencies:[vu],encapsulation:2,data:{animation:[mI.transformDrawer]},changeDetection:0}),t})(),_I=(()=>{class t{constructor(e,i,o,r,s,a=!1,l){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new as,this.backdropClick=new Ee,this._destroyed=new ce,this._doCheckSubject=new ce,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ce,e&&e.change.pipe(yt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(yt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=ft(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:ft(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(mi(this._allDrawers),yt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(mi(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(uu(10),yt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Wt(i=>i.fromState!==i.toState),yt(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(yt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(yt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(yn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(yt(Ni(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(h(mo,8),h(ke),h(lt),h(Vt),h(_u),h(oQ),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,ep,5),Je(o,vI,5)),2&e){let r;xe(r=Oe())&&(i._content=r.first),xe(r=Oe())&&(i._allDrawers=r)}},viewQuery:function(e,i){if(1&e&&Et(ep,5),2&e){let o;xe(o=Oe())&&(i._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&ct("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[It([{provide:Pb,useExisting:t}])],ngContentSelectors:XY,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(In(ZY),X(0,QY,1,2,"div",0),Dt(1),Dt(2,1),X(3,KY,2,0,"mat-drawer-content",1)),2&e&&(U("ngIf",i.hasBackdrop),A(3),U("ngIf",!i._content))},dependencies:[Zt,ep],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),kb=(()=>{class t extends ep{constructor(e,i,o,r,s){super(e,i,o,r,s)}}return t.\u0275fac=function(e){return new(e||t)(h(Vt),h(Kt(()=>yI)),h(ke),h(mu),h(lt))},t.\u0275cmp=et({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&Ji("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[It([{provide:vu,useExisting:t}]),Me],ngContentSelectors:Jf,decls:1,vars:0,template:function(e,i){1&e&&(In(),Dt(0))},encapsulation:2,changeDetection:0}),t})(),bI=(()=>{class t extends vI{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=ft(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Wi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Wi(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275cmp=et({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(Ot("align",null),Ji("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),ct("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Me],ngContentSelectors:Jf,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(In(),O(0,"div",0,1),Dt(2),V())},dependencies:[vu],encapsulation:2,data:{animation:[mI.transformDrawer]},changeDetection:0}),t})(),yI=(()=>{class t extends _I{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275cmp=et({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,kb,5),Je(o,bI,5)),2&e){let r;xe(r=Oe())&&(i._content=r.first),xe(r=Oe())&&(i._allDrawers=r)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&ct("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[It([{provide:Pb,useExisting:t}]),Me],ngContentSelectors:nQ,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(In(tQ),X(0,JY,1,2,"div",0),Dt(1),Dt(2,1),X(3,eQ,2,0,"mat-sidenav-content",1)),2&e&&(U("ngIf",i.hasBackdrop),A(3),U("ngIf",!i._content))},dependencies:[Zt,kb],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),sQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zi,Tt,ea,ea,Tt]}),t})();const aQ=["trigger"],lQ=["panel"];function cQ(t,n){if(1&t&&(O(0,"span",8),se(1),V()),2&t){const e=ie();A(1),Ne(e.placeholder)}}function uQ(t,n){if(1&t&&(O(0,"span",12),se(1),V()),2&t){const e=ie(2);A(1),Ne(e.triggerValue)}}function dQ(t,n){1&t&&Dt(0,0,["*ngSwitchCase","true"])}function hQ(t,n){1&t&&(O(0,"span",9),X(1,uQ,2,1,"span",10),X(2,dQ,1,0,"ng-content",11),V()),2&t&&(U("ngSwitch",!!ie().customTrigger),A(2),U("ngSwitchCase",!0))}function fQ(t,n){if(1&t){const e=at();O(0,"div",13)(1,"div",14,15),we("@transformPanel.done",function(o){return Ie(e),Re(ie()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return Ie(e),Re(ie()._handleKeydown(o))}),Dt(3,1),V()()}if(2&t){const e=ie();U("@transformPanelWrap",void 0),A(1),OE("mat-select-panel ",e._getPanelTheme(),""),Ji("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),U("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Ot("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const pQ=[[["mat-select-trigger"]],"*"],gQ=["mat-select-trigger","*"],CI={transformPanelWrap:qi("transformPanelWrap",[Vn("* => void",Ov("@transformPanel",[xv()],{optional:!0}))]),transformPanel:qi("transformPanel",[gi("void",kt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),gi("showing",kt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),gi("showing-multiple",kt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Vn("void => *",$n("120ms cubic-bezier(0, 0, 0.2, 1)")),Vn("* => void",$n("100ms 25ms linear",kt({opacity:0})))])};let SI=0;const AI=new Pe("mat-select-scroll-strategy"),bQ=new Pe("MAT_SELECT_CONFIG"),yQ={provide:AI,deps:[no],useFactory:function _Q(t){return()=>t.scrollStrategies.reposition()}};class CQ{constructor(n,e){this.source=n,this.value=e}}const SQ=hs(gf(na(cM(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new ce}})))),EQ=new Pe("MatSelectTrigger");let AQ=(()=>{class t extends SQ{constructor(e,i,o,r,s,a,l,c,u,d,f,w,z,ne){var fe,he,_e;super(s,r,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=a,this._parentFormField=u,this._liveAnnouncer=z,this._defaultOptions=ne,this._panelOpen=!1,this._compareWith=(pe,ve)=>pe===ve,this._uid="mat-select-"+SI++,this._triggerAriaLabelledBy=null,this._destroy=new ce,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+SI++,this._panelDoneAnimatingStream=new ce,this._overlayPanelClass=(null===(fe=this._defaultOptions)||void 0===fe?void 0:fe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(_e=null===(he=this._defaultOptions)||void 0===he?void 0:he.disableOptionCentering)&&void 0!==_e&&_e,this.ariaLabel="",this.optionSelectionChanges=Cu(()=>{const pe=this.options;return pe?pe.changes.pipe(mi(pe),Pi(()=>Ni(...pe.map(ve=>ve.onSelectionChange)))):this._ngZone.onStable.pipe(yn(1),Pi(()=>this.optionSelectionChanges))}),this.openedChange=new Ee,this._openedStream=this.openedChange.pipe(Wt(pe=>pe),Ue(()=>{})),this._closedStream=this.openedChange.pipe(Wt(pe=>!pe),Ue(()=>{})),this.selectionChange=new Ee,this.valueChange=new Ee,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ne?void 0:ne.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ne.typeaheadDebounceInterval),this._scrollStrategyFactory=w,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(U_.required))&&void 0!==r&&r}set required(e){this._required=ft(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=ft(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=ft(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Wi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new vb(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(hu(),yt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(yt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(mi(null),yt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&r&&!to(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,s=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(s||13!==o&&32!==o||!i.activeItem||to(e))if(!s&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(yn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch(r){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new J5(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(yt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(yt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Ni(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(yt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ni(...this.options.map(i=>i._stateChanges)).pipe(yt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let o=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(h(_u),h(Vt),h(lt),h(T_),h(ke),h(mo,8),h(Nl,8),h(Ou,8),h(ab,8),h(br,10),Yo("tabindex"),h(AI),h(y_),h(bQ,8))},t.\u0275dir=ge({type:t,viewQuery:function(e,i){if(1&e&&(Et(aQ,5),Et(lQ,5),Et(iM,5)),2&e){let o;xe(o=Oe())&&(i.trigger=o.first),xe(o=Oe())&&(i.panel=o.first),xe(o=Oe())&&(i._overlayDir=o.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Me,qn]}),t})(),Nb=(()=>{class t extends AQ{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,o){const r=this._getItemHeight();return Math.min(Math.max(0,r*e-i+r/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(yt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(yn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=vM(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function Ez(t,n,e,i){return t<e?t:t+n>e+i?Math.max(0,t-i+n):e}((e+i)*o,o,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new CQ(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),o=this._isRtl(),r=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}o||(s*=-1);const a=0-(e.left+s-(o?r:0)),l=e.right+s-i.width+(o?0:r);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,o){const r=this._getItemHeight(),s=(r-this._triggerRect.height)/2,a=Math.floor(256/r);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*r:this._scrollTop===o?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):i-r/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,s=o.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>r?this._adjustPanelDown(a,r,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const o=Math.round(e-i);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,o){const r=Math.round(e-i);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),o=Math.min(i*e,256),s=i*e-o;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=vM(a,this.options,this.optionGroups);const l=o/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275cmp=et({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,EQ,5),Je(o,O_,5),Je(o,mM,5)),2&e){let r;xe(r=Oe())&&(i.customTrigger=r.first),xe(r=Oe())&&(i.options=r),xe(r=Oe())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&we("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Ot("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ct("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[It([{provide:Vf,useExisting:t},{provide:gM,useExisting:t}]),Me],ngContentSelectors:gQ,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(In(pQ),O(0,"div",0,1),we("click",function(){return i.toggle()}),O(3,"div",2),X(4,cQ,2,1,"span",3),X(5,hQ,3,2,"span",4),V(),O(6,"div",5),Xe(7,"div",6),V()(),X(8,fQ,4,14,"ng-template",7),we("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const o=Ui(1);Ot("aria-owns",i.panelOpen?i.id+"-panel":null),A(3),U("ngSwitch",i.empty),Ot("id",i._valueId),A(1),U("ngSwitchCase",!0),A(1),U("ngSwitchCase",!1),A(3),U("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[Ii,dl,Mh,Kw,iM,nM],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[CI.transformPanelWrap,CI.transformPanel]},changeDetection:0}),t})(),wQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[yQ],imports:[zi,Ol,I_,Tt,ea,Uf,I_,Tt]}),t})();const DQ=["input"],TQ=function(t){return{enterDuration:t}},MQ=["*"],xQ=new Pe("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let OQ=0;const IQ={provide:vo,useExisting:Kt(()=>wI),multi:!0};class RQ{constructor(n,e){this.source=n,this.checked=e}}const PQ=gf(ia(hs(na(class{constructor(t){this._elementRef=t}}))));let kQ=(()=>{class t extends PQ{constructor(e,i,o,r,s,a,l){super(e),this._focusMonitor=i,this._changeDetectorRef=o,this.defaults=s,this._onChange=c=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new Ee,this.toggleChange=new Ee,this.tabIndex=parseInt(r)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId=`${l}${++OQ}`}get required(){return this._required}set required(e){this._required=ft(e)}get checked(){return this._checked}set checked(e){this._checked=ft(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return t.\u0275fac=function(e){Bs()},t.\u0275dir=ge({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[Me]}),t})(),wI=(()=>{class t extends kQ{constructor(e,i,o,r,s,a){super(e,i,o,r,s,a,"mat-slide-toggle-")}_createChangeEvent(e){return new RQ(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(No),h(Vt),Yo("tabindex"),h(xQ),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,i){if(1&e&&Et(DQ,5),2&e){let o;xe(o=Oe())&&(i._inputElement=o.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,i){2&e&&(rs("id",i.id),Ot("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),ct("mat-checked",i.checked)("mat-disabled",i.disabled)("mat-slide-toggle-label-before","before"==i.labelPosition)("_mat-animation-noopable",i._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[It([IQ]),Me],ngContentSelectors:MQ,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,i){if(1&e&&(In(),O(0,"label",0,1)(2,"span",2)(3,"input",3,4),we("change",function(r){return i._onChangeEvent(r)})("click",function(r){return i._onInputClick(r)}),V(),O(5,"span",5),Xe(6,"span",6),O(7,"span",7),Xe(8,"span",8),V()()(),O(9,"span",9,10),we("cdkObserveContent",function(){return i._onLabelTextChange()}),O(11,"span",11),se(12,"\xa0"),V(),Dt(13),V()()),2&e){const o=Ui(1),r=Ui(10);Ot("for",i.inputId),A(2),ct("mat-slide-toggle-bar-no-side-margin",!r.textContent||!r.textContent.trim()),A(1),U("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex)("checked",i.checked)("disabled",i.disabled),Ot("name",i.name)("aria-checked",i.checked)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),A(4),U("matRippleTrigger",o)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Xn(18,TQ,i._noopAnimations?0:150))}},dependencies:[ra,ET],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),t})(),DI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),FQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[DI,Eu,Tt,h_,DI,Tt]}),t})();const np=$(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Lb(){return Be((t,n)=>{let e=null;t._refCount++;const i=ze(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class TI extends x{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,$e(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new b;const e=this.getSubject();n.add(this.source.subscribe(ze(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=b.EMPTY)}return n}refCount(){return Lb()(this)}}function ip(t){return Be((n,e)=>{let i=!1;n.subscribe(ze(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function MI(t=BQ){return Be((n,e)=>{let i=!1;n.subscribe(ze(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function BQ(){return new np}function Ds(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Wt((o,r)=>t(o,r,i)):g,yn(1),e?ip(n):MI(()=>new np))}function VQ(t,n,e,i,o){return(r,s)=>{let a=e,l=n,c=0;r.subscribe(ze(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),i&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}function xI(t,n){return Be(VQ(t,n,arguments.length>=2,!0))}function Fb(t){return t<=0?()=>Ho:Be((n,e)=>{let i=[];n.subscribe(ze(e,o=>{i.push(o),t<i.length&&i.shift()},()=>{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function OI(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Wt((o,r)=>t(o,r,i)):g,Fb(1),e?ip(n):MI(()=>new np))}const jt="primary",ju=Symbol("RouteTitle");class jQ{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Gl(t){return new jQ(t)}function UQ(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const o={};for(let r=0;r<i.length;r++){const s=i[r],a=t[r];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function Cr(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let o;for(let r=0;r<e.length;r++)if(o=e[r],!II(t[o],n[o]))return!1;return!0}function II(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((o,r)=>i[r]===o)}return t===n}function RI(t){return Array.prototype.concat.apply([],t)}function PI(t){return t.length>0?t[t.length-1]:null}function Ai(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Ts(t){return Sm(t)?t:Pc(t)?Kn(Promise.resolve(t)):nt(t)}const zQ={exact:function LI(t,n,e){if(!fa(t.segments,n.segments)||!op(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!LI(t.children[i],n.children[i],e))return!1;return!0},subset:FI},kI={exact:function qQ(t,n){return Cr(t,n)},subset:function WQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>II(t[e],n[e]))},ignored:()=>!0};function NI(t,n,e){return zQ[e.paths](t.root,n.root,e.matrixParams)&&kI[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function FI(t,n,e){return BI(t,n,n.segments,e)}function BI(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!fa(o,e)||n.hasChildren()||!op(o,e,i))}if(t.segments.length===e.length){if(!fa(t.segments,e)||!op(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!FI(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(fa(t.segments,o)&&op(t.segments,o,i)&&t.children[jt])&&BI(t.children[jt],n,r,i)}}function op(t,n,e){return n.every((i,o)=>kI[e](t[o].parameters,i.parameters))}class ha{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gl(this.queryParams)),this._queryParamMap}toString(){return QQ.serialize(this)}}class Gt{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Ai(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rp(this)}}class Uu{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Gl(this.parameters)),this._parameterMap}toString(){return HI(this)}}function fa(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let VI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:function(){return new Vb},providedIn:"root"}),t})();class Vb{parse(n){const e=new oK(n);return new ha(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Hu(n.root,!0)}`,i=function XQ(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(o=>`${sp(e)}=${sp(o)}`).join("&"):`${sp(e)}=${sp(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function KQ(t){return encodeURI(t)}(n.fragment)}`:""}`}}const QQ=new Vb;function rp(t){return t.segments.map(n=>HI(n)).join("/")}function Hu(t,n){if(!t.hasChildren())return rp(t);if(n){const e=t.children[jt]?Hu(t.children[jt],!1):"",i=[];return Ai(t.children,(o,r)=>{r!==jt&&i.push(`${r}:${Hu(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function YQ(t,n){let e=[];return Ai(t.children,(i,o)=>{o===jt&&(e=e.concat(n(i,o)))}),Ai(t.children,(i,o)=>{o!==jt&&(e=e.concat(n(i,o)))}),e}(t,(i,o)=>o===jt?[Hu(t.children[jt],!1)]:[`${o}:${Hu(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[jt]?`${rp(t)}/${e[0]}`:`${rp(t)}/(${e.join("//")})`}}function jI(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sp(t){return jI(t).replace(/%3B/gi,";")}function jb(t){return jI(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ap(t){return decodeURIComponent(t)}function UI(t){return ap(t.replace(/\+/g,"%20"))}function HI(t){return`${jb(t.path)}${function ZQ(t){return Object.keys(t).map(n=>`;${jb(n)}=${jb(t[n])}`).join("")}(t.parameters)}`}const JQ=/^[^\/()?;=#]+/;function lp(t){const n=t.match(JQ);return n?n[0]:""}const eK=/^[^=?&#]+/,nK=/^[^&#]+/;class oK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gt([],{}):new Gt([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[jt]=new Gt(n,e)),i}parseSegment(){const n=lp(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Te(4009,!1);return this.capture(n),new Uu(ap(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=lp(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=lp(this.remaining);o&&(i=o,this.capture(i))}n[ap(e)]=ap(i)}parseQueryParam(n){const e=function tK(t){const n=t.match(eK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function iK(t){const n=t.match(nK);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=UI(e),r=UI(i);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=lp(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new Te(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=jt);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s[jt]:new Gt([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Te(4011,!1)}}function Ub(t){return t.segments.length>0?new Gt([],{[jt]:t}):t}function cp(t){const n={};for(const i of Object.keys(t.children)){const r=cp(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function rK(t){if(1===t.numberOfChildren&&t.children[jt]){const n=t.children[jt];return new Gt(t.segments.concat(n.segments),n.children)}return t}(new Gt(t.segments,n))}function pa(t){return t instanceof ha}function lK(t,n,e,i,o){var r;if(0===e.length)return zl(n.root,n.root,n.root,i,o);const a=function qI(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new zI(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return Ai(r.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===s?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,r]},[]);return new zI(e,n,i)}(e);return a.toRoot()?zl(n.root,n.root,new Gt([],{}),i,o):function l(u){var d;const f=function uK(t,n,e,i){if(t.isAbsolute)return new ql(n.root,!0,0);if(-1===i)return new ql(e,e===n.root,0);return function WI(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Te(4005,!1);o=i.segments.length}return new ql(i,!1,o-r)}(e,i+(Gu(t.commands[0])?0:1),t.numberOfDoubleDots)}(a,n,null===(d=t.snapshot)||void 0===d?void 0:d._urlSegment,u),w=f.processChildren?qu(f.segmentGroup,f.index,a.commands):Gb(f.segmentGroup,f.index,a.commands);return zl(n.root,f.segmentGroup,w,i,o)}(null===(r=t.snapshot)||void 0===r?void 0:r._lastPathIndex)}function Gu(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function zu(t){return"object"==typeof t&&null!=t&&t.outlets}function zl(t,n,e,i,o){let s,r={};i&&Ai(i,(l,c)=>{r[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:GI(t,n,e);const a=Ub(cp(s));return new ha(a,r,o)}function GI(t,n,e){const i={};return Ai(t.children,(o,r)=>{i[r]=o===n?e:GI(o,n,e)}),new Gt(t.segments,i)}class zI{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Gu(i[0]))throw new Te(4003,!1);const o=i.find(zu);if(o&&o!==PI(i))throw new Te(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ql{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function Gb(t,n,e){if(t||(t=new Gt([],{})),0===t.segments.length&&t.hasChildren())return qu(t,n,e);const i=function hK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(i>=e.length)return r;const s=t.segments[o],a=e[i];if(zu(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(o>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!YI(l,c,s))return r;i+=2}else{if(!YI(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const r=new Gt(t.segments.slice(0,i.pathIndex),{});return r.children[jt]=new Gt(t.segments.slice(i.pathIndex),t.children),qu(r,0,o)}return i.match&&0===o.length?new Gt(t.segments,{}):i.match&&!t.hasChildren()?zb(t,n,e):i.match?qu(t,0,o):zb(t,n,e)}function qu(t,n,e){if(0===e.length)return new Gt(t.segments,{});{const i=function dK(t){return zu(t[0])?t[0].outlets:{[jt]:t}}(e),o={};return Ai(i,(r,s)=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=Gb(t.children[s],n,r))}),Ai(t.children,(r,s)=>{void 0===i[s]&&(o[s]=r)}),new Gt(t.segments,o)}}function zb(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o<e.length;){const r=e[o];if(zu(r)){const l=fK(r.outlets);return new Gt(i,l)}if(0===o&&Gu(e[0])){i.push(new Uu(t.segments[n].path,$I(e[0]))),o++;continue}const s=zu(r)?r.outlets[jt]:`${r}`,a=o<e.length-1?e[o+1]:null;s&&a&&Gu(a)?(i.push(new Uu(s,$I(a))),o+=2):(i.push(new Uu(s,{})),o++)}return new Gt(i,{})}function fK(t){const n={};return Ai(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=zb(new Gt([],{}),0,e))}),n}function $I(t){const n={};return Ai(t,(e,i)=>n[i]=`${e}`),n}function YI(t,n,e){return t==e.path&&Cr(n,e.parameters)}class Yr{constructor(n,e){this.id=n,this.url=e}}class qb extends Yr{constructor(n,e,i="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ga extends Yr{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class up extends Yr{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class QI extends Yr{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class pK extends Yr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gK extends Yr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mK extends Yr{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vK extends Yr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _K extends Yr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bK{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yK{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class CK{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SK{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EK{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AK{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class KI{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ZI{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Wb(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=Wb(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=$b(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return $b(n,this._root).map(e=>e.value)}}function Wb(t,n){if(t===n.value)return n;for(const e of n.children){const i=Wb(t,e);if(i)return i}return null}function $b(t,n){if(t===n.value)return[n];for(const e of n.children){const i=$b(t,e);if(i.length)return i.unshift(n),i}return[]}class Qr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Wl(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class XI extends ZI{constructor(n,e){super(n),this.snapshot=e,Yb(this,n)}toString(){return this.snapshot.toString()}}function JI(t,n){const e=function DK(t,n){const s=new dp([],{},{},"",{},jt,n,null,t.root,-1,{});return new t1("",new Qr(s,[]))}(t,n),i=new pt([new Uu("",{})]),o=new pt({}),r=new pt({}),s=new pt({}),a=new pt(""),l=new ma(i,o,s,a,r,jt,n,e.root);return l.snapshot=e.root,new XI(new Qr(l,[]),e)}class ma{constructor(n,e,i,o,r,s,a,l){var c,u;this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=null!==(u=null===(c=this.data)||void 0===c?void 0:c.pipe(Ue(d=>d[ju])))&&void 0!==u?u:nt(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ue(n=>Gl(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ue(n=>Gl(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function e1(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function TK(t){return t.reduce((n,e)=>{var i;return{params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),n.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}(e.slice(i))}class dp{constructor(n,e,i,o,r,s,a,l,c,u,d,f){var w;this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=null===(w=this.data)||void 0===w?void 0:w[ju],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=null!=f?f:u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Gl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class t1 extends ZI{constructor(n,e){super(e),this.url=n,Yb(this,e)}toString(){return n1(this._root)}}function Yb(t,n){n.value._routerState=t,n.children.forEach(e=>Yb(t,e))}function n1(t){const n=t.children.length>0?` { ${t.children.map(n1).join(", ")} } `:"";return`${t.value}${n}`}function Qb(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Cr(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Cr(n.params,e.params)||t.params.next(e.params),function HQ(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Cr(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),Cr(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Kb(t,n){const e=Cr(t.params,n.params)&&function $Q(t,n){return fa(t,n)&&t.every((e,i)=>Cr(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Kb(t.parent,n.parent))}function Wu(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function xK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Wu(t,i,o);return Wu(t,i)})}(t,n,e);return new Qr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const s=r.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Wu(t,a)),s}}const i=function OK(t){return new ma(new pt(t.url),new pt(t.params),new pt(t.queryParams),new pt(t.fragment),new pt(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>Wu(t,r));return new Qr(i,o)}}const Zb="ngNavigationCancelingError";function o1(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=pa(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=r1(!1,0,n);return o.url=e,o.navigationBehaviorOptions=i,o}function r1(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[Zb]=!0,i.cancellationCode=n,e&&(i.url=e),i}function s1(t){return a1(t)&&pa(t.url)}function a1(t){return t&&t[Zb]}class IK{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new $u,this.attachRef=null}}let $u=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new IK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hp=!1;let l1=(()=>{class t{constructor(e,i,o,r,s){this.parentContexts=e,this.location=i,this.changeDetector=r,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ee,this.deactivateEvents=new Ee,this.attachEvents=new Ee,this.detachEvents=new Ee,this.name=o||jt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Te(4012,hp);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Te(4012,hp);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Te(4012,hp);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Te(4013,hp);this._activatedRoute=e;const o=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new RK(e,a,o.injector);if(i&&function PK(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=o.createComponent(c,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:null!=i?i:this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(h($u),h(ln),Yo("name"),h(Vt),h(ns))},t.\u0275dir=ge({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),t})();class RK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===ma?this.route:n===$u?this.childContexts:this.parent.get(n,e)}}let Xb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],standalone:!0,features:[mA],decls:1,vars:0,template:function(e,i){1&e&&Xe(0,"router-outlet")},dependencies:[l1],encapsulation:2}),t})();function c1(t,n){var e;return t.providers&&!t._injector&&(t._injector=lh(t.providers,n,`Route: ${t.path}`)),null!==(e=t._injector)&&void 0!==e?e:n}function ey(t){const n=t.children&&t.children.map(ey),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==jt&&(e.component=Xb),e}function Bo(t){return t.outlet||jt}function u1(t,n){const e=t.filter(i=>Bo(i)===n);return e.push(...t.filter(i=>Bo(i)!==n)),e}function Yu(t){var n;if(!t)return null;if(null!==(n=t.routeConfig)&&void 0!==n&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){const i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}class BK{constructor(n,e,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Qb(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=Wl(e);n.children.forEach(r=>{const s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),Ai(o,(r,s)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Wl(n);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Wl(n);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const o=Wl(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new AK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new SK(n.value.snapshot))}activateRoutes(n,e,i){var o;const r=n.value,s=e?e.value:null;if(Qb(r),r===s)if(r.component){const a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const l=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),Qb(l.route.value),this.activateChildRoutes(n,null,a.children)}else{const l=Yu(r.snapshot),c=null!==(o=null==l?void 0:l.get(Or))&&void 0!==o?o:null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=l,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class d1{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class fp{constructor(n,e){this.component=n,this.route=e}}function VK(t,n,e){const i=t._root;return Qu(i,n?n._root:null,e,[i.value])}function $l(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function nk(t){return null!==dd(t)}(t)?n.get(t):t:i}function Qu(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Wl(n);return t.children.forEach(s=>{(function UK(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const l=function HK(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!fa(t.url,n.url);case"pathParamsOrQueryParamsChange":return!fa(t.url,n.url)||!Cr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kb(t,n)||!Cr(t.queryParams,n.queryParams);default:return!Kb(t,n)}}(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new d1(i)):(r.data=s.data,r._resolvedData=s._resolvedData),Qu(t,n,r.component?a?a.children:null:e,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new fp(a.outlet.component,s))}else s&&Ku(n,a,o),o.canActivateChecks.push(new d1(i)),Qu(t,null,r.component?a?a.children:null:e,i,o)})(s,r[s.value.outlet],e,i.concat([s.value]),o),delete r[s.value.outlet]}),Ai(r,(s,a)=>Ku(s,e.getContext(a),o)),o}function Ku(t,n,e){const i=Wl(t),o=t.value;Ai(i,(r,s)=>{Ku(r,o.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new fp(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function Zu(t){return"function"==typeof t}function ty(t){return t instanceof np||"EmptyError"===(null==t?void 0:t.name)}const pp=Symbol("INITIAL_VALUE");function Yl(){return Pi(t=>p_(t.map(n=>n.pipe(yn(1),mi(pp)))).pipe(Ue(n=>{for(const e of n)if(!0!==e){if(e===pp)return pp;if(!1===e||e instanceof ha)return e}return!0}),Wt(n=>n!==pp),yn(1)))}function h1(t){return function G(...t){return Y(t)}(Yn(n=>{if(pa(n))throw o1(0,n)}),Ue(n=>!0===n))}const ny={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function f1(t,n,e,i,o){const r=iy(t,n,e);return r.matched?function rZ(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?nt(o.map(s=>{const a=$l(s,t);return Ts(function YK(t){return t&&Zu(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Yl(),h1()):nt(!0)}(i=c1(n,i),n,e).pipe(Ue(s=>!0===s?r:Object.assign({},ny))):nt(r)}function iy(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},ny):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||UQ)(e,t,n);if(!r)return Object.assign({},ny);const s={};Ai(r.posParams,(l,c)=>{s[c]=l.path});const a=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function gp(t,n,e,i,o="corrected"){if(e.length>0&&function lZ(t,n,e){return e.some(i=>mp(t,n,i)&&Bo(i)!==jt)}(t,e,i)){const s=new Gt(n,function aZ(t,n,e,i){const o={};o[jt]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&Bo(r)!==jt){const s=new Gt([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,o[Bo(r)]=s}return o}(t,n,i,new Gt(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function cZ(t,n,e){return e.some(i=>mp(t,n,i))}(t,e,i)){const s=new Gt(t.segments,function sZ(t,n,e,i,o,r){const s={};for(const a of i)if(mp(t,e,a)&&!o[Bo(a)]){const l=new Gt([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===r?t.segments.length:n.length,s[Bo(a)]=l}return Object.assign(Object.assign({},o),s)}(t,n,e,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const r=new Gt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function mp(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function p1(t,n,e,i){return!!(Bo(t)===i||i!==jt&&mp(n,e,t))&&("**"===t.path||iy(n,t,e).matched)}function g1(t,n,e){return 0===n.length&&!t.children[e]}const vp=!1;class _p{constructor(n){this.segmentGroup=n||null}}class m1{constructor(n){this.urlTree=n}}function Xu(t){return Pl(new _p(t))}function v1(t){return Pl(new m1(t))}class fZ{constructor(n,e,i,o,r){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0}apply(){const n=gp(this.urlTree.root,[],[],this.config).segmentGroup,e=new Gt(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,jt).pipe(Ue(r=>this.createUrlTree(cp(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Gr(r=>{if(r instanceof m1)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof _p?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,jt).pipe(Ue(o=>this.createUrlTree(cp(o),n.queryParams,n.fragment))).pipe(Gr(o=>{throw o instanceof _p?this.noMatchError(o):o}))}noMatchError(n){return new Te(4002,vp)}createUrlTree(n,e,i){const o=Ub(n);return new ha(o,e,i)}expandSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(Ue(r=>new Gt([],r))):this.expandSegment(n,i,e,i.segments,o,!0)}expandChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Kn(o).pipe(fs(r=>{const s=i.children[r],a=u1(e,r);return this.expandSegmentGroup(n,a,s,r).pipe(Ue(l=>({segment:l,outlet:r})))}),xI((r,s)=>(r[s.outlet]=s.segment,r),{}),OI())}expandSegment(n,e,i,o,r,s){return Kn(i).pipe(fs(a=>this.expandSegmentAgainstRoute(n,e,i,a,o,r,s).pipe(Gr(c=>{if(c instanceof _p)return nt(null);throw c}))),Ds(a=>!!a),Gr((a,l)=>{if(ty(a))return g1(e,o,r)?nt(new Gt([],{})):Xu(e);throw a}))}expandSegmentAgainstRoute(n,e,i,o,r,s,a){return p1(o,e,r,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,e,o,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s):Xu(e):Xu(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?v1(r):this.lineralizeSegments(i,r).pipe(li(s=>{const a=new Gt(s,{});return this.expandSegment(n,a,e,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=iy(e,o,r);if(!a)return Xu(e);const d=this.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?v1(d):this.lineralizeSegments(o,d).pipe(li(f=>this.expandSegment(n,e,i,f.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){return"**"===i.path?(n=c1(i,n),i.loadChildren?(i._loadedRoutes?nt({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(Ue(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Gt(o,{})))):nt(new Gt(o,{}))):f1(e,i,o,n).pipe(Pi(({matched:s,consumedSegments:a,remainingSegments:l})=>{var c;return s?(n=null!==(c=i._injector)&&void 0!==c?c:n,this.getChildConfig(n,i,o).pipe(li(d=>{var f;const w=null!==(f=d.injector)&&void 0!==f?f:n,z=d.routes,{segmentGroup:ne,slicedSegments:fe}=gp(e,a,l,z),he=new Gt(ne.segments,ne.children);if(0===fe.length&&he.hasChildren())return this.expandChildren(w,z,he).pipe(Ue(He=>new Gt(a,He)));if(0===z.length&&0===fe.length)return nt(new Gt(a,{}));const _e=Bo(i)===r;return this.expandSegment(w,he,z,fe,_e?jt:r,!0).pipe(Ue(ve=>new Gt(a.concat(ve.segments),ve.children)))}))):Xu(e)}))}getChildConfig(n,e,i){return e.children?nt({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?nt({routes:e._loadedRoutes,injector:e._loadedInjector}):function oZ(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?nt(!0):nt(o.map(s=>{const a=$l(s,t);return Ts(function zK(t){return t&&Zu(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Yl(),h1())}(n,e,i).pipe(li(o=>o?this.configLoader.loadChildren(n,e).pipe(Yn(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function dZ(t){return Pl(r1(vp,3))}())):nt({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return nt(i);if(o.numberOfChildren>1||!o.children[jt])return Pl(new Te(4e3,vp));o=o.children[jt]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new ha(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Ai(n,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let s={};return Ai(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,o)}),new Gt(r,s)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new Te(4001,vp);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}class gZ{}class _Z{constructor(n,e,i,o,r,s,a,l){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=o,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=gp(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,jt).pipe(Ue(e=>{if(null===e)return null;const i=new dp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},jt,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Qr(i,e),r=new t1(this.url,o);return this.inheritParamsAndData(r._root),r}))}inheritParamsAndData(n){const e=n.value,i=e1(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o)}processChildren(n,e,i){return Kn(Object.keys(i.children)).pipe(fs(o=>{const r=i.children[o],s=u1(e,o);return this.processSegmentGroup(n,s,r,o)}),xI((o,r)=>o&&r?(o.push(...r),o):null),WT(o=>null!==o),ip(null),OI(),Ue(o=>{if(null===o)return null;const r=_1(o);return function bZ(t){t.sort((n,e)=>n.value.outlet===jt?-1:e.value.outlet===jt?1:n.value.outlet.localeCompare(e.value.outlet))}(r),r}))}processSegment(n,e,i,o,r){return Kn(e).pipe(fs(s=>{var a;return this.processSegmentAgainstRoute(null!==(a=s._injector)&&void 0!==a?a:n,s,i,o,r)}),Ds(s=>!!s),Gr(s=>{if(ty(s))return g1(i,o,r)?nt([]):nt(null);throw s}))}processSegmentAgainstRoute(n,e,i,o,r){var s,a;if(e.redirectTo||!p1(e,i,o,r))return nt(null);let l;if("**"===e.path){const c=o.length>0?PI(o).parameters:{},u=y1(i)+o.length;l=nt({snapshot:new dp(o,c,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,S1(e),Bo(e),null!==(a=null!==(s=e.component)&&void 0!==s?s:e._loadedComponent)&&void 0!==a?a:null,e,b1(i),u,E1(e),u),consumedSegments:[],remainingSegments:[]})}else l=f1(i,e,o,n).pipe(Ue(({matched:c,consumedSegments:u,remainingSegments:d,parameters:f})=>{var w,z;if(!c)return null;const ne=y1(i)+u.length;return{snapshot:new dp(u,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,S1(e),Bo(e),null!==(z=null!==(w=e.component)&&void 0!==w?w:e._loadedComponent)&&void 0!==z?z:null,e,b1(i),ne,E1(e),ne),consumedSegments:u,remainingSegments:d}}));return l.pipe(Pi(c=>{var u,d;if(null===c)return nt(null);const{snapshot:f,consumedSegments:w,remainingSegments:z}=c;n=null!==(u=e._injector)&&void 0!==u?u:n;const ne=null!==(d=e._loadedInjector)&&void 0!==d?d:n,fe=function yZ(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:he,slicedSegments:_e}=gp(i,w,z,fe.filter(ve=>void 0===ve.redirectTo),this.relativeLinkResolution);if(0===_e.length&&he.hasChildren())return this.processChildren(ne,fe,he).pipe(Ue(ve=>null===ve?null:[new Qr(f,ve)]));if(0===fe.length&&0===_e.length)return nt([new Qr(f,[])]);const pe=Bo(e)===r;return this.processSegment(ne,fe,he,_e,pe?jt:r).pipe(Ue(ve=>null===ve?null:[new Qr(f,ve)]))}))}}function CZ(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function _1(t){const n=[],e=new Set;for(const i of t){if(!CZ(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=_1(i.children);n.push(new Qr(i.value,o))}return n.filter(i=>!e.has(i))}function b1(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function y1(t){var n,e;let i=t,o=null!==(n=i._segmentIndexShift)&&void 0!==n?n:0;for(;i._sourceSegment;)i=i._sourceSegment,o+=null!==(e=i._segmentIndexShift)&&void 0!==e?e:0;return o-1}function S1(t){return t.data||{}}function E1(t){return t.resolve||{}}function A1(t){return"string"==typeof t.title||null===t.title}function oy(t){return Pi(n=>{const e=t(n);return e?Kn(e).pipe(Ue(()=>n)):nt(n)})}let w1=(()=>{class t{buildTitle(e){var i;let o,r=e.root;for(;void 0!==r;)o=null!==(i=this.getResolvedTitleForRoute(r))&&void 0!==i?i:o,r=r.children.find(s=>s.outlet===jt);return o}getResolvedTitleForRoute(e){return e.data[ju]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:function(){return un(D1)},providedIn:"root"}),t})(),D1=(()=>{class t extends w1{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(oe(ED))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class xZ{}class IZ extends class OZ{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const yp=new Pe("",{providedIn:"root",factory:()=>({})}),ry=new Pe("ROUTES");let sy=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return nt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Ts(e.loadComponent()).pipe(Yn(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Cf(()=>{this.componentLoaders.delete(e)})),o=new TI(i,()=>new ce).pipe(Lb());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return nt({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(Ue(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=RI(l.get(ry,[],gt.Self|gt.Optional)));return{routes:c.map(ey),injector:l}}),Cf(()=>{this.childrenLoaders.delete(i)})),s=new TI(r,()=>new ce).pipe(Lb());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Ts(e()).pipe(li(i=>i instanceof pA||Array.isArray(i)?nt(i):Kn(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)(oe(_n),oe(Wm))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class PZ{}class kZ{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function NZ(t){throw t}function LZ(t,n,e){return n.parse("/")}const FZ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},BZ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function M1(){var t,n;const e=un(VI),i=un($u),o=un(Yc),r=un(_n),s=un(Wm),a=null!==(t=un(ry,{optional:!0}))&&void 0!==t?t:[],l=null!==(n=un(yp,{optional:!0}))&&void 0!==n?n:{},c=un(D1),u=un(w1,{optional:!0}),d=un(PZ,{optional:!0}),f=un(xZ,{optional:!0}),w=new wi(null,e,i,o,r,s,RI(a));return d&&(w.urlHandlingStrategy=d),f&&(w.routeReuseStrategy=f),w.titleStrategy=null!=u?u:c,function VZ(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(l,w),w}let wi=(()=>{class t{constructor(e,i,o,r,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=o,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ce,this.errorHandler=NZ,this.malformedUriErrorHandler=LZ,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>nt(void 0),this.urlHandlingStrategy=new kZ,this.routeReuseStrategy=new IZ,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(sy),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new yK(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new bK(f)),this.ngModule=s.get(Hs),this.console=s.get(w3);const d=s.get(lt);this.isNgZoneEnabled=d instanceof lt&&lt.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function GQ(){return new ha(new Gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=JI(this.currentUrlTree,this.rootComponentType),this.transitions=new pt({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()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Wt(o=>0!==o.id),Ue(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Pi(o=>{let r=!1,s=!1;return nt(o).pipe(Yn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Pi(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return x1(a.source)&&(this.browserUrlTree=a.extractedUrl),nt(a).pipe(Pi(d=>{const f=this.transitions.getValue();return i.next(new qb(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Ho:Promise.resolve(d)}),function pZ(t,n,e,i){return Pi(o=>function hZ(t,n,e,i,o){return new fZ(t,n,e,i,o).apply()}(t,n,e,o.extractedUrl,i).pipe(Ue(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Yn(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects}),o.urlAfterRedirects=d.urlAfterRedirects}),function EZ(t,n,e,i,o,r){return li(s=>function vZ(t,n,e,i,o,r,s="emptyOnly",a="legacy"){return new _Z(t,n,e,i,o,s,a,r).recognize().pipe(Pi(l=>null===l?function mZ(t){return new x(n=>n.error(t))}(new gZ):nt(l)))}(t,n,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,r).pipe(Ue(a=>Object.assign(Object.assign({},s),{targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Yn(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const w=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(w,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new pK(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:w,source:z,restoredState:ne,extras:fe}=a,he=new qb(f,this.serializeUrl(w),z,ne);i.next(he);const _e=JI(w,this.rootComponentType).snapshot;return nt(o=Object.assign(Object.assign({},a),{targetSnapshot:_e,urlAfterRedirects:w,extras:Object.assign(Object.assign({},fe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ho}),Yn(a=>{const l=new gK(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),Ue(a=>o=Object.assign(Object.assign({},a),{guards:VK(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function KK(t,n){return li(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=e;return 0===s.length&&0===r.length?nt(Object.assign(Object.assign({},e),{guardsResult:!0})):function ZK(t,n,e,i){return Kn(t).pipe(li(o=>function iZ(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?nt(r.map(a=>{var l;const c=null!==(l=Yu(n))&&void 0!==l?l:o,u=$l(a,c);return Ts(function $K(t){return t&&Zu(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):c.runInContext(()=>u(t,n,e,i))).pipe(Ds())})).pipe(Yl()):nt(!0)}(o.component,o.route,e,n,i)),Ds(o=>!0!==o,!0))}(s,i,o,t).pipe(li(a=>a&&function GK(t){return"boolean"==typeof t}(a)?function XK(t,n,e,i){return Kn(n).pipe(fs(o=>fu(function eZ(t,n){return null!==t&&n&&n(new CK(t)),nt(!0)}(o.route.parent,i),function JK(t,n){return null!==t&&n&&n(new EK(t)),nt(!0)}(o.route,i),function nZ(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(s=>function jK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Cu(()=>nt(s.guards.map(l=>{var c;const u=null!==(c=Yu(s.node))&&void 0!==c?c:e,d=$l(l,u);return Ts(function WK(t){return t&&Zu(t.canActivateChild)}(d)?d.canActivateChild(i,t):u.runInContext(()=>d(i,t))).pipe(Ds())})).pipe(Yl())));return nt(r).pipe(Yl())}(t,o.path,e),function tZ(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return nt(!0);const o=i.map(r=>Cu(()=>{var s;const a=null!==(s=Yu(n))&&void 0!==s?s:e,l=$l(r,a);return Ts(function qK(t){return t&&Zu(t.canActivate)}(l)?l.canActivate(n,t):a.runInContext(()=>l(n,t))).pipe(Ds())}));return nt(o).pipe(Yl())}(t,o.route,e))),Ds(o=>!0!==o,!0))}(i,r,t,n):nt(a)),Ue(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Yn(a=>{if(o.guardsResult=a.guardsResult,pa(a.guardsResult))throw o1(0,a.guardsResult);const l=new mK(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Wt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),oy(a=>{if(a.guards.canActivateChecks.length)return nt(a).pipe(Yn(l=>{const c=new vK(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Pi(l=>{let c=!1;return nt(l).pipe(function AZ(t,n){return li(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return nt(e);let r=0;return Kn(o).pipe(fs(s=>function wZ(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==(null==o?void 0:o.title)&&!A1(o)&&(r[ju]=o.title),function DZ(t,n,e,i){const o=function TZ(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return nt({});const r={};return Kn(o).pipe(li(s=>function MZ(t,n,e,i){var o;const r=null!==(o=Yu(n))&&void 0!==o?o:i,s=$l(t,r);return Ts(s.resolve?s.resolve(n,e):r.runInContext(()=>s(n,e)))}(t[s],n,e,i).pipe(Ds(),Yn(a=>{r[s]=a}))),Fb(1),Kf(r),Gr(s=>ty(s)?Ho:Pl(s)))}(r,t,n,i).pipe(Ue(s=>(t._resolvedData=s,t.data=e1(t,e).resolve,o&&A1(o)&&(t.data[ju]=o.title),null)))}(s.route,i,t,n)),Yn(()=>r++),Fb(1),li(s=>r===o.length?nt(e):Ho))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Yn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Yn(l=>{const c=new _K(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),oy(a=>{const l=c=>{var u;const d=[];(null===(u=c.routeConfig)||void 0===u?void 0:u.loadComponent)&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(Yn(f=>{c.component=f}),Ue(()=>{})));for(const f of c.children)d.push(...l(f));return d};return p_(l(a.targetSnapshot.root)).pipe(ip(),yn(1))}),oy(()=>this.afterPreactivation()),Ue(a=>{const l=function MK(t,n,e){const i=Wu(t,n._root,e?e._root:void 0);return new XI(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o=Object.assign(Object.assign({},a),{targetRouterState:l})}),Yn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>Ue(i=>(new BK(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Yn({next(){r=!0},complete(){r=!0}}),Cf(()=>{var a;r||s||this.cancelNavigationTransition(o,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Gr(a=>{var l;if(s=!0,a1(a)){s1(a)||(this.navigated=!0,this.restoreHistory(o,!0));const c=new up(o.id,this.serializeUrl(o.extractedUrl),a.message,a.cancellationCode);if(i.next(c),s1(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||x1(o.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const c=new QI(o.id,this.serializeUrl(o.extractedUrl),a,null!==(l=o.targetSnapshot)&&void 0!==l?l:void 0);i.next(c);try{o.resolve(this.errorHandler(a))}catch(u){o.reject(u)}}return Ho}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var o;const r={replaceUrl:!0},s=null!==(o=e.state)&&void 0!==o&&o.navigationId?e.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,s,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ey),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=o||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}return null!==d&&(d=this.removeEmptyProps(d)),lK(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=pa(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function jZ(t){for(let n=0;n<t.length;n++){if(null==t[n])throw new Te(4008,false)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(o){i=this.malformedUriErrorHandler(o,this.urlSerializer,e)}return i}isActive(e,i){let o;if(o=!0===i?Object.assign({},FZ):!1===i?Object.assign({},BZ):i,pa(e))return NI(this.currentUrlTree,e,o);const r=this.parseUrl(e);return NI(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.keys(e).reduce((i,o)=>{const r=e[o];return null!=r&&(i[o]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{var i;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new ga(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(i=this.titleStrategy)||void 0===i||i.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,r,s){var a,l;if(this.disposed)return Promise.resolve(!1);let c,u,d;s?(c=s.resolve,u=s.reject,d=s.promise):d=new Promise((z,ne)=>{c=z,u=ne});const f=++this.navigationId;let w;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),w=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):w=0,this.setTransition({id:f,targetPageId:w,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:c,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(z=>Promise.reject(z))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(e,i=!1){var o,r;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,o){const r=new up(e.id,this.serializeUrl(e.extractedUrl),i,o);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){Bs()},t.\u0275prov=Ce({token:t,factory:function(){return M1()},providedIn:"root"}),t})();function x1(t){return"imperative"!==t}class O1{}let GZ=(()=>{class t{constructor(e,i,o,r,s){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Wt(e=>e instanceof ga),fs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){var o,r,s;const a=[];for(const l of i){l.providers&&!l._injector&&(l._injector=lh(l.providers,e,`Route: ${l.path}`));const c=null!==(o=l._injector)&&void 0!==o?o:e,u=null!==(r=l._loadedInjector)&&void 0!==r?r:c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(u,null!==(s=l.children)&&void 0!==s?s:l._loadedRoutes))}return Kn(a).pipe(Sa())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):nt(null);const r=o.pipe(li(s=>{var a;return null===s?nt(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(null!==(a=s.injector)&&void 0!==a?a:e,s.routes))}));return i.loadComponent&&!i._loadedComponent?Kn([r,this.loader.loadComponent(i)]).pipe(Sa()):r})}}return t.\u0275fac=function(e){return new(e||t)(oe(wi),oe(Wm),oe(ns),oe(O1),oe(sy))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cy=new Pe("");let I1=(()=>{class t{constructor(e,i,o={}){this.router=e,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof qb?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ga&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof KI&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new KI(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Bs()},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();function Ql(t,n){return{\u0275kind:t,\u0275providers:n}}function uy(t){return[{provide:ry,multi:!0,useValue:t}]}function P1(){const t=un(_n);return n=>{var e,i;const o=t.get(Gs);if(n!==o.components[0])return;const r=t.get(wi),s=t.get(k1);1===t.get(dy)&&r.initialNavigation(),null===(e=t.get(N1,null,gt.Optional))||void 0===e||e.setUpPreloading(),null===(i=t.get(cy,null,gt.Optional))||void 0===i||i.init(),r.resetRootComponentType(o.componentTypes[0]),s.next(),s.complete()}}const k1=new Pe("",{factory:()=>new ce}),dy=new Pe("",{providedIn:"root",factory:()=>1});const N1=new Pe("");function $Z(t){return Ql(0,[{provide:N1,useExisting:GZ},{provide:O1,useExisting:t}])}const L1=new Pe("ROUTER_FORROOT_GUARD"),YZ=[Yc,{provide:VI,useClass:Vb},{provide:wi,useFactory:M1},$u,{provide:ma,useFactory:function R1(t){return t.routerState.root},deps:[wi]},sy];function QZ(){return new dw("Router",wi)}let KZ=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[YZ,[],uy(e),{provide:L1,useFactory:eX,deps:[[wi,new ts,new Va]]},{provide:yp,useValue:i||{}},null!=i&&i.useHash?{provide:Ws,useClass:f4}:{provide:Ws,useClass:Nw},{provide:cy,useFactory:()=>{const t=un(wi),n=un(Sj),e=un(yp);return e.scrollOffset&&n.setOffset(e.scrollOffset),new I1(t,n,e)}},null!=i&&i.preloadingStrategy?$Z(i.preloadingStrategy).\u0275providers:[],{provide:dw,multi:!0,useFactory:QZ},null!=i&&i.initialNavigation?tX(i):[],[{provide:F1,useFactory:P1},{provide:qm,multi:!0,useExisting:F1}]]}}static forChild(e){return{ngModule:t,providers:[uy(e)]}}}return t.\u0275fac=function(e){return new(e||t)(oe(L1,8))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Xb]}),t})();function eX(t){return"guarded"}function tX(t){return["disabled"===t.initialNavigation?Ql(3,[{provide:hh,multi:!0,useFactory:()=>{const n=un(wi);return()=>{n.setUpLocationChangeListener()}}},{provide:dy,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ql(2,[{provide:dy,useValue:0},{provide:hh,multi:!0,deps:[_n],useFactory:n=>{const e=n.get(d4,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(r=>{const s=n.get(wi),a=n.get(k1);(function o(r){n.get(wi).events.pipe(Wt(a=>a instanceof ga||a instanceof up||a instanceof QI),Ue(a=>a instanceof ga||a instanceof up&&(0===a.code||1===a.code)&&null),Wt(a=>null!==a),yn(1)).subscribe(()=>{r()})})(()=>{r(!0),i=!0}),s.afterPreactivation=()=>(r(!0),i||a.closed?nt(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const F1=new Pe("");let rX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[mf,Tt,mf,Tt]}),t})(),mX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zi,Tt,Tt]}),t})();function vX(t,n){if(1&t){const e=at();O(0,"div",3)(1,"button",4),we("click",function(){return Ie(e),Re(ie().close())}),se(2),ye(3,"translate"),V()()}2&t&&(A(2),Ne(Se(3,1,"PANEL.CLOSE")))}function _X(t,n){if(1&t){const e=at();O(0,"div",3)(1,"button",4),we("click",function(){return Ie(e),Re(ie().seeMore())}),O(2,"span"),se(3),ye(4,"translate"),V(),O(5,"mat-icon"),se(6,"open_in_new"),V()(),O(7,"button",4),we("click",function(){return Ie(e),Re(ie().close())}),se(8),ye(9,"translate"),V()()}2&t&&(A(3),Ne(Se(4,2,"PANEL.SEE_MORE")),A(5),Ne(Se(9,4,"PANEL.CLOSE")))}function bX(t,n){if(1&t){const e=at();O(0,"div",3)(1,"button",4),we("click",function(){return Ie(e),Re(ie().close())}),se(2),ye(3,"translate"),V()()}2&t&&(A(2),Ne(Se(3,1,"PANEL.CLOSE")))}const NX=["captionEventElement"],LX=function(t){return{"captions-offset":t}};function FX(t,n){if(1&t){const e=at();O(0,"div",6)(1,"button",7),we("click",function(){return Ie(e),Re(ie().onSettingsCliked())}),O(2,"mat-icon",8),se(3,"settings"),V(),O(4,"span"),se(5),V()()()}if(2&t){const e=ie(),i=Ui(1);U("ngClass",Xn(2,LX,i.offsetWidth>=1e3)),A(5),Ne(e.captionLangSelected.name)}}const BX=function(t){return{color:t}},VX=function(t){return{"going-to-disappear":t}};function jX(t,n){if(1&t&&(O(0,"div",11)(1,"p",12),se(2),V(),O(3,"div",13,14)(5,"span",15),se(6),V()()()),2&t){const e=n.$implicit,i=n.index,o=ie(2);U("@captionAnimation",void 0),A(1),U("ngStyle",Xn(5,BX,e.color)),A(1),wn(" ",e.nickname," "),A(1),U("ngClass",Xn(7,VX,0===i&&o.captionEvents.length===o.MAX_EVENTS_LIMIT)),A(3),Ne(e.text)}}const UX=function(t,n,e,i,o,r,s){return{"events-one":t,"events-two":n,"events-three":e,"screen-xl":i,"screen-md":o,"screen-sm":r,"screen-xs":s}};function HX(t,n){if(1&t&&(O(0,"div",9),X(1,jX,7,9,"div",10),V()),2&t){const e=ie(),i=Ui(1);U("ngClass",wA(2,UX,1===e.captionEvents.length,2===e.captionEvents.length,3===e.captionEvents.length,i.offsetWidth>=1e3,i.offsetWidth>=960&&i.offsetWidth<1e3,i.offsetWidth>=600&&i.offsetWidth<960,i.offsetWidth<600)),A(1),U("ngForOf",e.captionEvents)}}function GX(t,n){1&t&&(O(0,"div",16),Xe(1,"mat-spinner",17),O(2,"span"),se(3),ye(4,"translate"),V()()),2&t&&(A(1),U("diameter",20),A(2),Ne(Se(4,2,"ERRORS.SST_CONNECTION")))}function zX(t,n){1&t&&Xe(0,"div",18)}const qX=["stream"],U1=["layout"];function WX(t,n){1&t&&rn(0)}const H1=function(t){return{OV_big:t}},_a=function(t){return{$implicit:t}};function $X(t,n){if(1&t&&(O(0,"div",6),X(1,WX,1,0,"ng-container",7),V()),2&t){const e=n.$implicit,i=ie();U("ngClass",Xn(3,H1,e.videoEnlarged)),A(1),U("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",Xn(5,_a,e))}}function YX(t,n){1&t&&rn(0)}function QX(t,n){if(1&t&&(O(0,"div",8),X(1,YX,1,0,"ng-container",7),V()),2&t){const e=n.$implicit,i=ie();U("ngClass",Xn(3,H1,e.videoEnlarged)),A(1),U("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",Xn(5,_a,e))}}function KX(t,n){1&t&&Xe(0,"ov-captions",9)}function ZX(t,n){1&t&&(O(0,"mat-icon",10),se(1," video_camera_front "),V())}function XX(t,n){1&t&&(O(0,"mat-icon"),se(1,"error"),V())}function JX(t,n){1&t&&(O(0,"mat-icon",11),se(1,"radio_button_checked"),V())}function eJ(t,n){1&t&&(O(0,"div"),Xe(1,"img",17),V())}function tJ(t,n){1&t&&(O(0,"h2"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.RECORDING.CONTENT_TITLE")))}function nJ(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.RECORDING.CONTENT_SUBTITLE")))}function iJ(t,n){if(1&t){const e=at();O(0,"button",23),we("click",function(){return Ie(e),Re(ie(3).stopRecording())}),O(1,"span"),se(2),ye(3,"translate"),V()()}2&t&&(A(2),Ne(Se(3,1,"TOOLBAR.STOP_RECORDING")))}function oJ(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.START_RECORDING")))}function rJ(t,n){if(1&t){const e=at();O(0,"button",24),we("click",function(){return Ie(e),Re(ie(3).startRecording())}),X(1,oJ,3,3,"span",3),V()}if(2&t){const e=ie(3);A(1),U("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED)}}function sJ(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),wn("",Se(2,1,"PANEL.RECORDING.STARTING")," "))}function aJ(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),wn("",Se(2,1,"PANEL.RECORDING.STOPPING")," "))}function lJ(t,n){1&t&&(O(0,"span"),se(1,"Message: "),V())}function cJ(t,n){if(1&t&&(O(0,"span",25),se(1),ye(2,"json"),V()),2&t){const e=ie(3);A(1),wn("",Se(2,1,e.recordingError)," ")}}function uJ(t,n){if(1&t){const e=at();O(0,"button",26),we("click",function(){return Ie(e),Re(ie(3).resetStatus())}),O(1,"span"),se(2),ye(3,"translate"),V()()}2&t&&(A(2),Ne(Se(3,1,"PANEL.RECORDING.RESTORE")))}function dJ(t,n){if(1&t&&(O(0,"div",18),X(1,iJ,4,3,"button",19),X(2,rJ,2,1,"button",20),X(3,sJ,3,3,"span",3),X(4,aJ,3,3,"span",3),X(5,lJ,2,0,"span",3),X(6,cJ,3,3,"span",21),O(7,"div"),X(8,uJ,4,3,"button",22),V()()),2&t){const e=ie(2);A(1),U("ngIf",e.recordingAlive),A(1),U("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED),A(1),U("ngIf",e.recordingStatus===e.recStatusEnum.STARTING),A(1),U("ngIf",e.recordingStatus===e.recStatusEnum.STOPPING),A(1),U("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),A(1),U("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),A(2),U("ngIf",e.recordingStatus===e.recStatusEnum.FAILED)}}function hJ(t,n){1&t&&(O(0,"p",27),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.RECORDING.NO_MODERATOR")))}function fJ(t,n){1&t&&Xe(0,"mat-divider")}function pJ(t,n){if(1&t){const e=at();O(0,"mat-list-item")(1,"mat-icon",31),se(2,"video_file"),V(),O(3,"div",32)(4,"span",33),se(5),V()(),O(6,"div",34)(7,"span",35),se(8),ye(9,"duration"),V(),O(10,"span",36),se(11),ye(12,"number"),V()(),O(13,"div",37),se(14),ye(15,"date"),V(),O(16,"button",38),we("click",function(){const r=Ie(e).$implicit;return Re(ie(3).play(r))}),ye(17,"translate"),O(18,"mat-icon"),se(19,"play_arrow"),V()(),O(20,"button",39),we("click",function(){const r=Ie(e).$implicit;return Re(ie(3).download(r))}),ye(21,"translate"),O(22,"mat-icon"),se(23,"download"),V()(),O(24,"button",40),we("click",function(){const r=Ie(e).$implicit;return Re(ie(3).deleteRecording(r.id))}),ye(25,"translate"),O(26,"mat-icon"),se(27,"delete"),V()()()}if(2&t){const e=n.$implicit;A(5),Ne(e.id),A(3),wn(" ",Se(9,7,e.duration)," "),A(3),wn(" | ",ss(12,9,e.size/1024/1024,"1.1-2")," MBs"),A(3),Ne(ss(15,12,e.createdAt,"HH:mm - dd/MM/yyyy")),A(2),Ht("matTooltip",Se(17,15,"PANEL.RECORDING.PLAY")),A(4),Ht("matTooltip",Se(21,17,"PANEL.RECORDING.DOWNLOAD")),A(4),Ht("matTooltip",Se(25,19,"PANEL.RECORDING.DELETE"))}}function gJ(t,n){if(1&t&&(O(0,"div",28)(1,"mat-list")(2,"div",29),se(3),ye(4,"translate"),V(),X(5,pJ,28,21,"mat-list-item",30),V()()),2&t){const e=ie(2);A(3),Ne(Se(4,2,"PANEL.RECORDING.RECORDINGS")),A(2),U("ngForOf",e.recordingsList)}}function mJ(t,n){if(1&t&&(O(0,"div",12)(1,"div",13),X(2,eJ,2,0,"div",3),X(3,tJ,3,3,"h2",3),X(4,nJ,3,3,"span",3),X(5,dJ,9,7,"div",14),X(6,hJ,3,3,"p",15),V(),X(7,fJ,1,0,"mat-divider",3),X(8,gJ,6,4,"div",16),V()),2&t){const e=ie();A(2),U("ngIf",0===e.recordingsList.length),A(1),U("ngIf",0===e.recordingsList.length),A(1),U("ngIf",0===e.recordingsList.length),A(1),U("ngIf",e.isSessionCreator),A(1),U("ngIf",!e.isSessionCreator),A(1),U("ngIf",e.recordingsList.length>0),A(1),U("ngIf",e.recordingsList.length>0)}}const G1=function(t){return{"no-body":t}},Ap=function(t,n,e,i){return{started:t,stopped:n,failed:e,pending:i}};function vJ(t,n){1&t&&(O(0,"mat-icon",10),se(1," sensors "),V())}function _J(t,n){1&t&&(O(0,"mat-icon"),se(1,"error"),V())}function bJ(t,n){1&t&&(O(0,"mat-icon",11),se(1,"sensors"),V())}function yJ(t,n){1&t&&(O(0,"div"),Xe(1,"img",16),V())}function CJ(t,n){if(1&t){const e=at();O(0,"button",21),we("click",function(){return Ie(e),Re(ie(3).startBroadcasting())}),O(1,"mat-icon",22),ye(2,"translate"),se(3,"play_circle"),V()()}if(2&t){const e=ie(3);U("disabled",!e.broadcastUrl||e.broadcastingStatus===e.broadcastingStatusEnum.STARTING||e.broadcastingStatus===e.broadcastingStatusEnum.STOPPING),A(1),Ht("matTooltip",Se(2,2,"PANEL.STREAMING.START"))}}function SJ(t,n){if(1&t){const e=at();O(0,"button",23),we("click",function(){return Ie(e),Re(ie(3).stopBroadcasting())}),O(1,"mat-icon",22),ye(2,"translate"),se(3,"stop_circle"),V()()}2&t&&(A(1),Ht("matTooltip",Se(2,1,"PANEL.STREAMING.STOP")))}function EJ(t,n){if(1&t){const e=at();O(0,"div",17)(1,"input",18),we("keypress",function(o){return Ie(e),Re(ie(2).eventKeyPress(o))})("ngModelChange",function(o){return Ie(e),Re(ie(2).broadcastUrl=o)}),ye(2,"translate"),V(),X(3,CJ,4,4,"button",19),X(4,SJ,4,3,"button",20),V()}if(2&t){const e=ie(2);A(1),Ht("placeholder",Se(2,5,"PANEL.STREAMING.URL")),U("disabled",e.broadcastingStatus!==e.broadcastingStatusEnum.STOPPED&&e.broadcastingStatus!==e.broadcastingStatusEnum.FAILED)("ngModel",e.broadcastUrl),A(2),U("ngIf",e.broadcastingStatus!==e.broadcastingStatusEnum.STARTED),A(1),U("ngIf",e.broadcastingStatus===e.broadcastingStatusEnum.STARTED)}}function AJ(t,n){1&t&&(O(0,"p",27),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.STREAMING.REQUIRED_URL")))}function wJ(t,n){if(1&t&&(O(0,"p",28),se(1),V()),2&t){const e=ie(3);A(1),Ne(e.broadcastingError.message)}}function DJ(t,n){1&t&&(Xe(0,"p",29),ye(1,"linkify"),ye(2,"translate")),2&t&&U("innerHTML",Se(1,1,Se(2,3,"PANEL.PAID_FEATURE")),Vd)}function TJ(t,n){if(1&t&&(O(0,"div")(1,"p"),se(2),ye(3,"translate"),V(),X(4,AJ,3,3,"p",24),X(5,wJ,2,1,"p",25),X(6,DJ,3,5,"p",26),V()),2&t){const e=ie(2);A(2),Ne(Se(3,4,"CONTENT_SUBTITLE")),A(2),U("ngIf",e.urlRequiredError),A(1),U("ngIf",e.broadcastingError),A(1),U("ngIf",!e.isBroadcastModuleAvailable)}}function MJ(t,n){1&t&&(O(0,"p",30),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.STREAMING.NO_MODERATOR")))}function xJ(t,n){if(1&t&&(O(0,"div",12)(1,"div",13),X(2,yJ,2,0,"div",3),X(3,EJ,5,7,"div",14),X(4,TJ,7,6,"div",3),X(5,MJ,3,3,"p",15),V()()),2&t){const e=ie();A(2),U("ngIf",e.broadcastingStatus===e.broadcastingStatusEnum.STOPPED),A(1),U("ngIf",e.isSessionCreator),A(1),U("ngIf",e.isSessionCreator),A(1),U("ngIf",!e.isSessionCreator)}}const z1=".activities-body-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.activity-icon[_ngcontent-%COMP%]{display:inherit;background-color:var(--ov-light-color);border-radius:var(--ov-panel-radius)}.activity-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:auto}.activity-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.activity-title[_ngcontent-%COMP%]{font-weight:700!important}.activity-action-buttons[_ngcontent-%COMP%]{font-weight:600;position:absolute;right:15px;top:15px} .mat-content{display:block!important} .mat-list-text{padding-left:10px!important} .mat-expansion-panel-header{padding:0 5px!important;height:65px!important} .mat-list-base .mat-list-item .mat-list-item-content, .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{padding:0!important} mat-expansion-panel .mat-expansion-panel-body{padding:0!important;min-height:400px} .mat-expansion-panel-header-description{flex-grow:0!important} .mat-expansion-panel{box-shadow:none!important} .no-body .mat-expansion-panel-content{display:none!important}";function OJ(t,n){if(1&t){const e=at();O(0,"ov-recording-activity",8),we("onStartRecordingClicked",function(){return Ie(e),Re(ie()._onStartRecordingClicked())})("onStopRecordingClicked",function(){return Ie(e),Re(ie()._onStopRecordingClicked())})("onDeleteRecordingClicked",function(o){return Ie(e),Re(ie()._onDeleteRecordingClicked(o))}),V()}2&t&&U("expanded","recording"===ie().expandedPanel)}function IJ(t,n){if(1&t){const e=at();O(0,"ov-broadcasting-activity",9),we("onStartBroadcastingClicked",function(o){return Ie(e),Re(ie()._onStartBroadcastingClicked(o))})("onStopBroadcastingClicked",function(){return Ie(e),Re(ie()._onStopBroadcastingClicked())}),V()}2&t&&U("expanded","broadcasting"===ie().expandedPanel)}const RJ=["chatScroll"],PJ=["chatInput"];function kJ(t,n){1&t&&(O(0,"p"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.CHAT.YOU")))}function NJ(t,n){if(1&t&&(O(0,"p"),se(1),V()),2&t){const e=ie().$implicit;A(1),Ne(e.nickname)}}function LJ(t,n){if(1&t&&(O(0,"div",14)(1,"div",15)(2,"div",16),X(3,kJ,3,3,"p",17),X(4,NJ,2,1,"p",17),V(),O(5,"div",18),Xe(6,"p",19),ye(7,"linkify"),V()()()),2&t){const e=n.$implicit;U("ngClass",e.isLocal?"right":"left"),A(3),U("ngIf",e.isLocal),A(1),U("ngIf",!e.isLocal),A(2),U("innerHTML",Se(7,4,e.message),Vd)}}const ed=".panel-container[_ngcontent-%COMP%]{margin:20px;background-color:var(--ov-panel-background);border-radius:var(--ov-panel-radius);max-height:calc(100% - 40px);min-height:calc(100% - 40px)}.panel-header-container[_ngcontent-%COMP%]{padding:10px;display:flex}.panel-title[_ngcontent-%COMP%]{margin-left:5px;margin-top:auto;margin-bottom:auto}.panel-close-button[_ngcontent-%COMP%]{margin-left:auto;border-radius:var(--ov-buttons-radius)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#a7a7a7;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7c7c7c}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--ov-light-color);border-radius:4px}",FJ=["participantsPanel"],BJ=["backgroundEffectsPanel"],VJ=["settingsPanel"],jJ=["activitiesPanel"],UJ=["chatPanel"],HJ=["additionalPanels"];function GJ(t,n){1&t&&rn(0)}function zJ(t,n){if(1&t&&(Ci(0),X(1,GJ,1,0,"ng-container",1),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.chatPanelTemplate)}}function qJ(t,n){1&t&&rn(0)}function WJ(t,n){if(1&t&&(Ci(0),X(1,qJ,1,0,"ng-container",1),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.participantsPanelTemplate)}}function $J(t,n){1&t&&rn(0)}function YJ(t,n){if(1&t&&(Ci(0),X(1,$J,1,0,"ng-container",1),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.backgroundEffectsPanelTemplate)}}function QJ(t,n){1&t&&rn(0)}function KJ(t,n){if(1&t&&(Ci(0),X(1,QJ,1,0,"ng-container",1),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.settingsPanelTemplate)}}function ZJ(t,n){1&t&&rn(0)}function XJ(t,n){if(1&t&&(Ci(0),X(1,ZJ,1,0,"ng-container",1),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.activitiesPanelTemplate)}}function JJ(t,n){1&t&&rn(0)}function eee(t,n){if(1&t&&(Ci(0),X(1,JJ,1,0,"ng-container",1),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.additionalPanelsTemplate)}}const tee=["participantPanelItemElements"];function nee(t,n){1&t&&(O(0,"mat-icon"),se(1,"volume_up"),V())}function iee(t,n){1&t&&(O(0,"mat-icon"),se(1,"volume_off"),V())}function oee(t,n){if(1&t){const e=at();O(0,"button",6),we("click",function(){return Ie(e),Re(ie().toggleMuteForcibly())}),X(1,nee,2,0,"mat-icon",5),X(2,iee,2,0,"mat-icon",5),V()}if(2&t){const e=ie();ct("warn-btn",e._participant.isMutedForcibly),A(1),U("ngIf",!e._participant.isMutedForcibly),A(1),U("ngIf",e._participant.isMutedForcibly)}}function ree(t,n){1&t&&rn(0)}function see(t,n){if(1&t&&(Ci(0),X(1,ree,1,0,"ng-container",7),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.participantPanelItemElementsTemplate)}}const aee=["participantPanelItem"],q1=["defaultParticipantPanelItem"];function lee(t,n){1&t&&rn(0)}function cee(t,n){1&t&&Xe(0,"mat-divider")}function uee(t,n){if(1&t&&(O(0,"div",8),X(1,lee,1,0,"ng-container",9),X(2,cee,1,0,"mat-divider",10),V()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.participantPanelItemTemplate)("ngTemplateOutletContext",Xn(3,_a,e.localParticipant)),A(1),U("ngIf",!0)}}function dee(t,n){1&t&&rn(0)}function hee(t,n){if(1&t&&(O(0,"div",13),X(1,dee,1,0,"ng-container",9),V()),2&t){const e=n.$implicit,i=ie(2);A(1),U("ngTemplateOutlet",i.participantPanelItemTemplate)("ngTemplateOutletContext",Xn(2,_a,e))}}function fee(t,n){if(1&t&&(O(0,"div",11),X(1,hee,2,4,"div",12),V()),2&t){const e=ie();A(1),U("ngForOf",e.remoteParticipants)}}function pee(t,n){1&t&&Xe(0,"ov-participant-panel-item",14),2&t&&U("participant",n.$implicit)}const gee=function(t){return{"background-color":t}},mee=["videoElement"],vee=["menu"],_ee=["streamContainer"],bee=["nicknameInput"];function yee(t,n){if(1&t&&(O(0,"span",15),se(1),V()),2&t){const e=ie(4);A(1),Ne(e._stream.participant.nickname)}}function Cee(t,n){if(1&t&&(O(0,"span",15),se(1),V()),2&t){const e=ie(4);A(1),wn("",e._stream.participant.nickname,"_SCREEN")}}function See(t,n){if(1&t){const e=at();O(0,"div",13),we("click",function(){return Ie(e),Re(ie(3).toggleNicknameForm())}),X(1,yee,2,1,"span",14),X(2,Cee,2,1,"span",14),V()}if(2&t){const e=ie(3);A(1),U("ngIf","CAMERA"===e._stream.type),A(1),U("ngIf","SCREEN"===e._stream.type)}}function Eee(t,n){if(1&t){const e=at();O(0,"div",16)(1,"input",17,18),we("ngModelChange",function(o){return Ie(e),Re(ie(3).nickname=o)})("keypress",function(o){return Ie(e),Re(ie(3).updateNickname(o))})("focusout",function(o){return Ie(e),Re(ie(3).updateNickname(o))}),V()()}if(2&t){const e=ie(3);ct("fullscreen",e.isFullscreen),A(1),U("ngModel",e.nickname)}}function Aee(t,n){if(1&t&&(O(0,"div",10),X(1,See,3,2,"div",11),X(2,Eee,3,3,"div",12),V()),2&t){const e=ie(2);ct("fullscreen",e.isFullscreen),A(1),U("ngIf",!e.toggleNickname),A(1),U("ngIf",e.toggleNickname&&!(null!=e._stream.streamManager&&e._stream.streamManager.remote))}}function wee(t,n){if(1&t&&(O(0,"div",19),Xe(1,"ov-audio-wave",20),V()),2&t){const e=ie(2);A(1),U("streamManager",e._stream.streamManager)}}function Dee(t,n){if(1&t&&Xe(0,"ov-avatar-profile",21),2&t){const e=ie(2);U("@posterAnimation",void 0)("name",e._stream.participant.nickname)("color",e._stream.participant.colorProfile)}}function Tee(t,n){1&t&&(O(0,"button",22)(1,"mat-icon"),se(2,"mic_off"),V()())}function Mee(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"STREAM.ZOOM_OUT")))}function xee(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"STREAM.ZOOM_IN")))}function Oee(t,n){1&t&&(O(0,"mat-icon"),se(1,"volume_up"),V())}function Iee(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"STREAM.MUTE_SOUND")))}function Ree(t,n){1&t&&(O(0,"mat-icon"),se(1,"volume_off"),V())}function Pee(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"STREAM.UNMUTE_SOUND")))}function kee(t,n){if(1&t){const e=at();O(0,"button",32),we("click",function(){return Ie(e),Re(ie(3).toggleMuteForcibly())}),X(1,Oee,2,0,"mat-icon",29),X(2,Iee,3,3,"span",29),X(3,Ree,2,0,"mat-icon",29),X(4,Pee,3,3,"span",29),V()}if(2&t){const e=ie(3);A(1),U("ngIf",!e._stream.participant.isMutedForcibly),A(1),U("ngIf",!e._stream.participant.isMutedForcibly),A(1),U("ngIf",e._stream.participant.isMutedForcibly),A(1),U("ngIf",e._stream.participant.isMutedForcibly)}}function Nee(t,n){if(1&t){const e=at();O(0,"button",33),we("click",function(){return Ie(e),Re(ie(3).replaceScreenTrack())}),O(1,"mat-icon"),se(2,"picture_in_picture"),V(),O(3,"span"),se(4),ye(5,"translate"),V()()}2&t&&(A(4),Ne(Se(5,1,"STREAM.REPLACE_SCREEN")))}function Lee(t,n){if(1&t){const e=at();O(0,"div",23)(1,"button",24),we("click",function(o){return Ie(e),Re(ie(2).toggleVideoMenu(o))}),ye(2,"translate"),O(3,"mat-icon"),se(4,"more_vert"),V()(),Xe(5,"span",25),O(6,"mat-menu",26,27)(8,"button",28),we("click",function(){return Ie(e),Re(ie(2).toggleVideoEnlarged())}),O(9,"mat-icon"),se(10),V(),X(11,Mee,3,3,"span",29),X(12,xee,3,3,"span",29),V(),X(13,kee,5,4,"button",30),X(14,Nee,6,3,"button",31),V()()}if(2&t){const e=Ui(7),i=ie(2);A(1),Ht("matTooltip",Se(2,7,"STREAM.SETTINGS")),A(4),U("matMenuTriggerFor",e),A(5),Ne(i.videoSizeIcon),A(1),U("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),A(1),U("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG),A(1),U("ngIf",!i._stream.local),A(1),U("ngIf",!(null!=i._stream.streamManager&&i._stream.streamManager.remote)&&(null==i._stream.streamManager||null==i._stream.streamManager.stream?null:i._stream.streamManager.stream.typeOfVideo)===i.videoTypeEnum.SCREEN)}}const Fee=function(t){return{"no-size":t}};function Bee(t,n){if(1&t){const e=at();O(0,"div",1,2),X(2,Aee,3,4,"div",3),X(3,wee,2,1,"div",4),X(4,Dee,1,3,"ov-avatar-profile",5),O(5,"ov-video",6),we("dblclick",function(){return Ie(e),Re(ie().toggleVideoEnlarged())}),V(),O(6,"div",7),X(7,Tee,3,0,"button",8),V(),X(8,Lee,15,9,"div",9),V()}if(2&t){const e=ie();U("ngClass",Xn(9,Fee,!e.showVideo))("id","container-"+(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.streamId)),A(2),U("ngIf",!e.isMinimal&&e.showNickname),A(1),U("ngIf",!e.isMinimal&&e.showAudioDetection&&"CAMERA"===e._stream.type&&(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.audioActive)),A(1),U("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.videoActive)&&"CAMERA"===e._stream.type),A(1),U("streamManager",e._stream.streamManager)("mutedSound",null==e._stream||null==e._stream.participant?null:e._stream.participant.isMutedForcibly),A(2),U("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.audioActive)),A(1),U("ngIf",!e.isMinimal&&e.showSettingsButton)}}const Vee=["toolbarAdditionalButtons"],jee=["toolbarAdditionalPanelButtons"];function Uee(t,n){1&t&&Xe(0,"img",33)}function Hee(t,n){if(1&t&&(O(0,"span",34),se(1),V()),2&t){const e=ie(2);A(1),Ne(e.session.sessionId)}}function Gee(t,n){if(1&t&&(O(0,"span"),se(1),ye(2,"date"),V()),2&t){const e=ie(3);A(1),wn(" | ",ss(2,1,e.recordingTime,"H:mm:ss"),"")}}function zee(t,n){if(1&t&&(O(0,"div",35)(1,"mat-icon",36),se(2,"radio_button_checked"),V(),O(3,"span",36),se(4,"REC"),V(),X(5,Gee,3,4,"span",20),V()),2&t){const e=ie(2);A(5),U("ngIf",e.recordingTime)}}function qee(t,n){if(1&t&&(O(0,"span"),se(1),ye(2,"date"),V()),2&t){const e=ie(3);A(1),wn(" | ",ss(2,1,e.broadcastingTime,"H:mm:ss"),"")}}function Wee(t,n){if(1&t&&(O(0,"div",37)(1,"mat-icon",36),se(2,"sensors"),V(),O(3,"span",36),se(4,"LIVE"),V(),X(5,qee,3,4,"span",20),V()),2&t){const e=ie(2);A(5),U("ngIf",e.broadcastingTime)}}function $ee(t,n){if(1&t&&(O(0,"div",26)(1,"div"),X(2,Uee,1,0,"img",27),O(3,"div",28),X(4,Hee,2,1,"span",29),O(5,"div",30),X(6,zee,6,1,"div",31),X(7,Wee,6,1,"div",32),V()()()()),2&t){const e=ie();A(2),U("ngIf",!e.isMinimal&&e.showLogo),A(1),ct("collapsed",e.recordingStatus===e._recordingStatus.STARTED||e.broadcastingStatus===e._broadcastingStatus.STARTED),A(1),U("ngIf",!e.isMinimal&&e.session&&e.session.sessionId&&e.showSessionName),A(2),U("ngIf",e.recordingStatus===e._recordingStatus.STARTED),A(1),U("ngIf",e.broadcastingStatus===e._broadcastingStatus.STARTED)}}function Yee(t,n){if(1&t&&(O(0,"mat-icon",38),ye(1,"translate"),se(2," mic "),V()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.MUTE_AUDIO")),U("matTooltipDisabled",!e.hasAudioDevices)}}function Qee(t,n){if(1&t&&(O(0,"mat-icon",39),ye(1,"translate"),se(2," mic_off "),V()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.UNMUTE_AUDIO")),U("matTooltipDisabled",!e.hasAudioDevices)}}function Kee(t,n){if(1&t&&(O(0,"mat-icon",40),ye(1,"translate"),se(2," videocam "),V()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.MUTE_VIDEO")),U("matTooltipDisabled",!e.hasVideoDevices)}}function Zee(t,n){if(1&t&&(O(0,"mat-icon",41),ye(1,"translate"),se(2," videocam_off "),V()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.UNMUTE_VIDEO")),U("matTooltipDisabled",!e.hasVideoDevices)}}function Xee(t,n){1&t&&(O(0,"mat-icon",44),ye(1,"translate"),se(2,"screen_share"),V()),2&t&&Ht("matTooltip",Se(1,1,"TOOLBAR.ENABLE_SCREEN"))}function Jee(t,n){1&t&&(O(0,"mat-icon",44),ye(1,"translate"),se(2,"screen_share"),V()),2&t&&Ht("matTooltip",Se(1,1,"TOOLBAR.DISABLE_SCREEN"))}function ete(t,n){if(1&t){const e=at();O(0,"button",42),we("click",function(){return Ie(e),Re(ie().toggleScreenShare())}),X(1,Xee,3,3,"mat-icon",43),X(2,Jee,3,3,"mat-icon",43),V()}if(2&t){const e=ie();ct("active-btn",e.isScreenShareActive),U("disabled",e.isConnectionLost),A(1),U("ngIf",!e.isScreenShareActive),A(1),U("ngIf",e.isScreenShareActive)}}function tte(t,n){if(1&t&&(O(0,"button",45)(1,"mat-icon",44),ye(2,"translate"),se(3,"more_vert"),V()()),2&t){const e=ie();U("matMenuTriggerFor",Ui(12))("disabled",e.isConnectionLost),A(1),Ht("matTooltip",Se(2,3,"TOOLBAR.MORE_OPTIONS"))}}function nte(t,n){1&t&&(O(0,"mat-icon"),se(1,"fullscreen"),V())}function ite(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.FULLSCREEN")))}function ote(t,n){1&t&&(O(0,"mat-icon"),se(1,"fullscreen_exit"),V())}function rte(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.EXIT_FULLSCREEN")))}function ste(t,n){if(1&t){const e=at();O(0,"button",46),we("click",function(){return Ie(e),Re(ie().toggleFullscreen())}),X(1,nte,2,0,"mat-icon",20),X(2,ite,3,3,"span",20),X(3,ote,2,0,"mat-icon",20),X(4,rte,3,3,"span",20),V()}if(2&t){const e=ie();A(1),U("ngIf",!e.isFullscreenActive),A(1),U("ngIf",!e.isFullscreenActive),A(1),U("ngIf",e.isFullscreenActive),A(1),U("ngIf",e.isFullscreenActive)}}function ate(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),wn(" ",Se(2,1,"TOOLBAR.START_RECORDING")," "))}function lte(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),wn(" ",Se(2,1,"TOOLBAR.STOP_RECORDING")," "))}function cte(t,n){if(1&t){const e=at();O(0,"button",47),we("click",function(){return Ie(e),Re(ie().toggleRecording())}),O(1,"mat-icon",48),se(2,"radio_button_checked"),V(),X(3,ate,3,3,"span",20),X(4,lte,3,3,"span",20),V()}if(2&t){const e=ie();U("disabled",e.recordingStatus===e._recordingStatus.STARTING||e.recordingStatus===e._recordingStatus.STOPPING||!e.isSessionCreator),A(3),U("ngIf",e.recordingStatus===e._recordingStatus.STOPPED||e.recordingStatus===e._recordingStatus.STOPPING),A(1),U("ngIf",e.recordingStatus===e._recordingStatus.STARTED||e.recordingStatus===e._recordingStatus.STARTING)}}function ute(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),wn(" ",Se(2,1,"PANEL.STREAMING.START")," "))}function dte(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),wn(" ",Se(2,1,"PANEL.STREAMING.STOP")," "))}function hte(t,n){if(1&t){const e=at();O(0,"button",49),we("click",function(){return Ie(e),Re(ie().toggleBroadcasting())}),O(1,"mat-icon"),se(2,"sensors"),V(),X(3,ute,3,3,"span",20),X(4,dte,3,3,"span",20),V()}if(2&t){const e=ie();U("disabled",e.broadcastingStatus===e._broadcastingStatus.STARTING||e.recordingStatus===e._broadcastingStatus.STOPPING),A(3),U("ngIf",e.broadcastingStatus===e._broadcastingStatus.STOPPED||e.broadcastingStatus===e._broadcastingStatus.STOPPING||e.broadcastingStatus===e._broadcastingStatus.FAILED),A(1),U("ngIf",e.broadcastingStatus===e._broadcastingStatus.STARTED||e.broadcastingStatus===e._broadcastingStatus.STARTING)}}function fte(t,n){if(1&t){const e=at();O(0,"button",50),we("click",function(){return Ie(e),Re(ie().toggleBackgroundEffects())}),O(1,"mat-icon"),se(2,"auto_awesome"),V(),O(3,"span"),se(4),ye(5,"translate"),V()()}2&t&&(U("disabled",!ie().isWebcamVideoActive),A(4),Ne(Se(5,2,"TOOLBAR.BACKGROUND")))}function pte(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.DISABLE_CAPTIONS")))}function gte(t,n){1&t&&(O(0,"span"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.ENABLE_CAPTIONS")))}function mte(t,n){if(1&t){const e=at();O(0,"button",51),we("click",function(){return Ie(e),Re(ie().toggleCaptions())}),O(1,"mat-icon"),se(2,"closed_caption"),V(),X(3,pte,3,3,"span",20),X(4,gte,3,3,"span",20),V()}if(2&t){const e=ie();U("disabled",e.isConnectionLost),A(3),U("ngIf",e.captionsEnabled),A(1),U("ngIf",!e.captionsEnabled)}}function vte(t,n){1&t&&Xe(0,"mat-divider",52)}function _te(t,n){if(1&t){const e=at();O(0,"button",53),we("click",function(){return Ie(e),Re(ie().toggleSettings())}),O(1,"mat-icon"),se(2,"settings"),V(),O(3,"span"),se(4),ye(5,"translate"),V()()}2&t&&(A(4),Ne(Se(5,1,"TOOLBAR.SETTINGS")))}function bte(t,n){1&t&&rn(0)}function yte(t,n){if(1&t&&(Ci(0),X(1,bte,1,0,"ng-container",54),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.toolbarAdditionalButtonsTemplate)}}function Cte(t,n){if(1&t){const e=at();O(0,"button",55),we("click",function(){return Ie(e),Re(ie().leaveSession())}),O(1,"mat-icon",44),ye(2,"translate"),se(3,"call_end"),V()()}2&t&&(A(1),Ht("matTooltip",Se(2,1,"TOOLBAR.LEAVE")))}function Ste(t,n){if(1&t){const e=at();O(0,"button",56),we("click",function(){return Ie(e),Re(ie().toggleActivitiesPanel())}),ye(1,"translate"),O(2,"mat-icon"),se(3,"category"),V()()}if(2&t){const e=ie();ct("active-btn",e.isActivitiesOpened),Ht("matTooltip",Se(1,4,"TOOLBAR.ACTIVITIES")),U("disabled",e.isConnectionLost)}}function Ete(t,n){if(1&t){const e=at();O(0,"button",57),we("click",function(){return Ie(e),Re(ie().toggleParticipantsPanel())}),ye(1,"translate"),O(2,"mat-icon"),se(3,"people"),V()()}if(2&t){const e=ie();ct("active-btn",e.isParticipantsOpened),Ht("matTooltip",Se(1,4,"TOOLBAR.PARTICIPANTS")),U("disabled",e.isConnectionLost)}}function Ate(t,n){if(1&t){const e=at();O(0,"button",58),we("click",function(){return Ie(e),Re(ie().toggleChatPanel())}),ye(1,"translate"),O(2,"mat-icon",59),se(3," chat "),V()()}if(2&t){const e=ie();ct("active-btn",e.isChatOpened),Ht("matTooltip",Se(1,6,"TOOLBAR.CHAT")),U("disabled",e.isConnectionLost),A(2),Ht("matBadge",e.unreadMessages),U("matBadgeHidden",0===e.unreadMessages)}}function wte(t,n){1&t&&rn(0)}function Dte(t,n){if(1&t&&(Ci(0),X(1,wte,1,0,"ng-container",54),Si()),2&t){const e=ie();A(1),U("ngTemplateOutlet",e.toolbarAdditionalPanelButtonsTemplate)}}const Tte=["toolbar"],Mte=["panel"],xte=["sidenav"],Ote=["videoContainer"],Ite=["container"],Rte=["layoutContainer"];function Pte(t,n){1&t&&rn(0)}function kte(t,n){1&t&&rn(0)}function Nte(t,n){1&t&&rn(0)}function Lte(t,n){if(1&t&&(O(0,"div",11),X(1,Nte,1,0,"ng-container",6),V()),2&t){const e=ie(2);A(1),U("ngTemplateOutlet",e.toolbarTemplate)}}const Fte=function(t){return{big:t}};function Bte(t,n){if(1&t&&(O(0,"div",1)(1,"mat-sidenav-container",2,3)(4,"mat-sidenav",4,5),X(6,Pte,1,0,"ng-container",6),V(),O(7,"mat-sidenav-content",7)(8,"div",8,9),X(10,kte,1,0,"ng-container",6),V()()(),X(11,Lte,2,1,"div",10),V()),2&t){const e=ie();U("@sessionAnimation",void 0),A(4),Ht("mode",e.sidenavMode),U("ngClass",Xn(6,Fte,e.settingsPanelOpened)),A(2),U("ngTemplateOutlet",e.panelTemplate),A(4),U("ngTemplateOutlet",e.layoutTemplate),A(1),U("ngIf",e.toolbarTemplate)}}function Vte(t,n){if(1&t){const e=at();O(0,"button",8),we("click",function(){const r=Ie(e).$implicit;return Re(ie().applyBackground(r))}),O(1,"mat-icon",9),ye(2,"translate"),ye(3,"translate"),se(4),V()()}if(2&t){const e=n.$implicit,i=ie();ct("active-effect-btn",i.backgroundSelectedId===e.id),A(1),U("matTooltip",e.type===i.effectType.NONE?Se(2,4,"PANEL.BACKGROUND.NO_EFFECTS"):Se(3,6,"PANEL.BACKGROUND.BLURRED_EFFECT")),A(3),Ne(e.thumbnail)}}function jte(t,n){if(1&t){const e=at();O(0,"div",10),we("click",function(){const r=Ie(e).$implicit;return Re(ie().applyBackground(r))}),Xe(1,"img",11),V()}if(2&t){const e=n.$implicit;ct("active-effect-btn",ie().backgroundSelectedId===e.id),A(1),U("src",e.thumbnail,Ha)}}function Ute(t,n){if(1&t&&(O(0,"mat-icon",7),ye(1,"translate"),se(2," videocam "),V()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.MUTE_VIDEO")),U("matTooltipDisabled",!e.hasVideoDevices)}}function Hte(t,n){if(1&t&&(O(0,"mat-icon",8),ye(1,"translate"),se(2," videocam_off "),V()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.UNMUTE_VIDEO")),U("matTooltipDisabled",!e.hasVideoDevices)}}function Gte(t,n){1&t&&(O(0,"mat-label"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.VIDEO_DEVICE")))}function zte(t,n){1&t&&(O(0,"mat-label"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.NO_VIDEO_DEVICE")))}function qte(t,n){if(1&t&&(O(0,"mat-option",9),se(1),V()),2&t){const e=n.$implicit;U("value",e.device),A(1),wn(" ",e.label," ")}}function Wte(t,n){if(1&t&&(O(0,"mat-icon",7),ye(1,"translate"),se(2," mic "),V()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.MUTE_AUDIO")),U("matTooltipDisabled",!e.hasAudioDevices)}}function $te(t,n){if(1&t&&(O(0,"mat-icon",8),ye(1,"translate"),se(2," mic_off "),V()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.UNMUTE_AUDIO")),U("matTooltipDisabled",!e.hasAudioDevices)}}function Yte(t,n){1&t&&(O(0,"mat-label"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.AUDIO_DEVICE")))}function Qte(t,n){1&t&&(O(0,"mat-label"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.NO_AUDIO_DEVICE")))}function Kte(t,n){if(1&t&&(O(0,"mat-option",9),se(1),V()),2&t){const e=n.$implicit;U("value",e.device),A(1),wn(" ",e.label," ")}}function Zte(t,n){if(1&t){const e=at();O(0,"button",3),we("click",function(){const r=Ie(e).$implicit;return Re(ie().onLangSelected(r.ISO))}),O(1,"span"),se(2),V()()}if(2&t){const e=n.$implicit;A(2),Ne(e.name)}}function Xte(t,n){1&t&&Xe(0,"img",11)}function Jte(t,n){if(1&t){const e=at();O(0,"ov-lang-selector",12),we("onLangSelectorClicked",function(){return Ie(e),Re(ie().onDeviceSelectorClicked())}),V()}}function ene(t,n){1&t&&Xe(0,"ov-background-effects-panel")}function tne(t,n){1&t&&(O(0,"ov-panel"),X(1,ene,1,0,"ng-template",null,14,dn),V())}function nne(t,n){1&t&&X(0,tne,3,0,"ng-template",null,13,dn)}function ine(t,n){if(1&t){const e=at();O(0,"button",18),we("click",function(){return Ie(e),Re(ie(3).toggleBackgroundEffects())}),ye(1,"translate"),O(2,"mat-icon"),se(3,"auto_awesome"),V()()}if(2&t){const e=ie().$implicit;Ht("matTooltip",Se(1,2,"TOOLBAR.BACKGROUND")),U("disabled",!(null!=e.streamManager&&null!=e.streamManager.stream&&e.streamManager.stream.videoActive))}}function one(t,n){if(1&t&&(X(0,ine,4,4,"button",16),Xe(1,"ov-stream",17)),2&t){const e=n.$implicit,i=ie(2);U("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),A(1),U("stream",e)("displayParticipantName",!1)("settingsButton",!1)}}function rne(t,n){1&t&&(O(0,"ov-layout"),X(1,one,2,4,"ng-template",null,15,dn),V())}function sne(t,n){1&t&&(O(0,"h4"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.NICKNAME_SECTION")))}function ane(t,n){1&t&&Xe(0,"hr")}function lne(t,n){1&t&&(O(0,"h4"),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.DEVICE_SECTION")))}function cne(t,n){1&t&&Xe(0,"hr")}function une(t,n){if(1&t){const e=at();O(0,"div",19)(1,"div",20)(2,"div",21)(3,"div",22),X(4,sne,3,3,"h4",8),X(5,ane,1,0,"hr",8),Xe(6,"ov-nickname-input"),V(),O(7,"div",23),X(8,lne,3,3,"h4",8),X(9,cne,1,0,"hr",8),O(10,"ov-video-devices-select",24),we("onDeviceSelectorClicked",function(){return Ie(e),Re(ie().onDeviceSelectorClicked())})("onVideoMutedClicked",function(o){return Ie(e),Re(ie().onVideoMutedClicked(o))}),V(),O(11,"ov-audio-devices-select",25),we("onDeviceSelectorClicked",function(){return Ie(e),Re(ie().onDeviceSelectorClicked())}),V()(),O(12,"div",26)(13,"button",27),we("click",function(){return Ie(e),Re(ie().joinSession())}),se(14),ye(15,"translate"),V()()()()()}if(2&t){const e=ie();A(4),U("ngIf",e.windowSize>=960),A(1),U("ngIf",e.windowSize>=960),A(3),U("ngIf",e.windowSize>=960),A(1),U("ngIf",e.windowSize>=960),A(5),wn(" ",Se(15,5,"PREJOIN.JOIN")," ")}}function dne(t,n){if(1&t){const e=at();O(0,"button",9),we("click",function(){const r=Ie(e).$implicit;return Re(ie(2).onLangSelected(r))}),O(1,"span"),se(2),V()()}if(2&t){const e=n.$implicit;U("id",e.lang),A(2),Ne(e.name)}}function hne(t,n){if(1&t){const e=at();O(0,"mat-list")(1,"div")(2,"mat-list-item")(3,"div",2),se(4),ye(5,"translate"),V(),O(6,"mat-slide-toggle",3),we("change",function(){return Ie(e),Re(ie().toggleCaptions())}),V()()(),O(7,"div",4)(8,"mat-list-item")(9,"div",2),se(10),ye(11,"translate"),V(),O(12,"button",5)(13,"span"),se(14),V(),O(15,"mat-icon"),se(16,"expand_more"),V()(),O(17,"mat-menu",null,6),X(19,dne,3,2,"button",7),V()(),O(20,"span",8),se(21),ye(22,"translate"),V()()()}if(2&t){const e=Ui(18),i=ie();A(4),Ne(Se(5,9,"PANEL.SETTINGS.CAPTIONS")),A(2),U("checked",i.captionsEnabled)("disableRipple",!0),A(4),Ne(Se(11,11,"PANEL.SETTINGS.LANGUAGE")),A(2),U("matMenuTriggerFor",e)("disabled",!i.isSttReady),A(2),Ne(i.langSelected),A(5),U("ngForOf",i.languagesAvailable),A(2),Ne(Se(22,13,"PANEL.SETTINGS.CAPTIONS_LANG_TEXT"))}}function fne(t,n){1&t&&(O(0,"div",10),Xe(1,"img",11)(2,"p",12),ye(3,"translate"),V()),2&t&&(A(2),U("innerHTML",Se(3,1,"PANEL.PRO_FEATURE"),Vd))}function pne(t,n){1&t&&(O(0,"div",16),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.SETTINGS.GENERAL")))}function gne(t,n){1&t&&(O(0,"div",16),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.SETTINGS.VIDEO")))}function mne(t,n){1&t&&(O(0,"div",16),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.SETTINGS.AUDIO")))}function vne(t,n){1&t&&(O(0,"div",16),se(1),ye(2,"translate"),V()),2&t&&(A(1),Ne(Se(2,1,"PANEL.SETTINGS.CAPTIONS")))}function _ne(t,n){if(1&t&&(O(0,"mat-list-option",17)(1,"mat-icon",9),se(2,"closed_caption"),V(),X(3,vne,3,3,"div",10),V()),2&t){const e=ie();U("selected",e.selectedOption===e.settingsOptions.CAPTIONS)("value",e.settingsOptions.CAPTIONS),A(3),U("ngIf",!e.isMobile)}}function bne(t,n){1&t&&(O(0,"div"),Xe(1,"ov-nickname-input"),O(2,"mat-list")(3,"mat-list-item")(4,"mat-icon",9),se(5,"language"),V(),O(6,"div",16),se(7),ye(8,"translate"),V(),Xe(9,"ov-lang-selector"),V()()()),2&t&&(A(7),Ne(Se(8,1,"PANEL.SETTINGS.LANGUAGE")))}function yne(t,n){1&t&&Xe(0,"ov-video-devices-select")}function Cne(t,n){1&t&&Xe(0,"ov-audio-devices-select")}function Sne(t,n){1&t&&Xe(0,"ov-captions-settings")}const Ene=function(t){return{mobile:t}},Ane=["defaultToolbar"],wne=["defaultPanel"],Dne=["defaultChatPanel"],Tne=["defaultParticipantsPanel"],Mne=["defaultActivitiesPanel"],xne=["defaultLayout"],One=["defaultStream"];function Ine(t,n){1&t&&(O(0,"div",12),Xe(1,"mat-spinner",13),O(2,"span"),se(3),ye(4,"translate"),V()()),2&t&&(A(1),U("diameter",50),A(2),Ne(Se(4,2,"PREJOIN.PREPARING")))}function Rne(t,n){if(1&t){const e=at();O(0,"div",14)(1,"ov-pre-join",15),we("onJoinButtonClicked",function(){return Ie(e),Re(ie()._onJoinButtonClicked())}),V()()}2&t&&U("@inOutAnimation",void 0)}function Pne(t,n){if(1&t&&(O(0,"div",12)(1,"mat-icon",16),se(2,"error"),V(),O(3,"span"),se(4),V()()),2&t){const e=ie();A(4),Ne(e.errorMessage)}}function kne(t,n){1&t&&rn(0)}function Nne(t,n){if(1&t&&(Ci(0),X(1,kne,1,0,"ng-container",24),Si()),2&t){const e=ie(4);A(1),U("ngTemplateOutlet",e.openviduAngularToolbarTemplate)}}function Lne(t,n){1&t&&X(0,Nne,2,1,"ng-container",23),2&t&&U("ngIf",ie(3).openviduAngularToolbarTemplate)}function Fne(t,n){1&t&&rn(0)}function Bne(t,n){if(1&t&&(Ci(0),X(1,Fne,1,0,"ng-container",24),Si()),2&t){const e=ie(4);A(1),U("ngTemplateOutlet",e.openviduAngularPanelTemplate)}}function Vne(t,n){1&t&&X(0,Bne,2,1,"ng-container",23),2&t&&U("ngIf",ie(3).openviduAngularPanelTemplate)}function jne(t,n){1&t&&rn(0)}function Une(t,n){if(1&t&&(Ci(0),X(1,jne,1,0,"ng-container",24),Si()),2&t){const e=ie(4);A(1),U("ngTemplateOutlet",e.openviduAngularLayoutTemplate)}}function Hne(t,n){1&t&&X(0,Une,2,1,"ng-container",23),2&t&&U("ngIf",ie(3).openviduAngularLayoutTemplate)}function Gne(t,n){if(1&t){const e=at();O(0,"ov-session",19),we("onNodeCrashed",function(){return Ie(e),Re(ie(2)._onNodeCrashed())}),X(1,Lne,1,1,"ng-template",null,20,dn),X(3,Vne,1,1,"ng-template",null,21,dn),X(5,Hne,1,1,"ng-template",null,22,dn),V()}}function zne(t,n){if(1&t&&(O(0,"div",17),X(1,Gne,7,0,"ov-session",18),V()),2&t){const e=ie();U("@inOutAnimation",void 0),A(1),U("ngIf",e.isSessionInitialized&&!e.nodeCrashed)}}function qne(t,n){1&t&&rn(0)}function Wne(t,n){1&t&&X(0,qne,1,0,"ng-container",24),2&t&&U("ngTemplateOutlet",ie(2).openviduAngularToolbarAdditionalButtonsTemplate)}function $ne(t,n){1&t&&rn(0)}function Yne(t,n){1&t&&X(0,$ne,1,0,"ng-container",24),2&t&&U("ngTemplateOutlet",ie(2).openviduAngularToolbarAdditionalPanelButtonsTemplate)}function Qne(t,n){if(1&t){const e=at();O(0,"ov-toolbar",25),we("onLeaveButtonClicked",function(){return Ie(e),Re(ie().onLeaveButtonClicked())})("onCameraButtonClicked",function(){return Ie(e),Re(ie().onCameraButtonClicked())})("onMicrophoneButtonClicked",function(){return Ie(e),Re(ie().onMicrophoneButtonClicked())})("onScreenshareButtonClicked",function(){return Ie(e),Re(ie().onScreenshareButtonClicked())})("onFullscreenButtonClicked",function(){return Ie(e),Re(ie().onFullscreenButtonClicked())})("onParticipantsPanelButtonClicked",function(){return Ie(e),Re(ie().onParticipantsPanelButtonClicked())})("onChatPanelButtonClicked",function(){return Ie(e),Re(ie().onChatPanelButtonClicked())})("onActivitiesPanelButtonClicked",function(){return Ie(e),Re(ie().onActivitiesPanelButtonClicked())})("onStartRecordingClicked",function(){return Ie(e),Re(ie().onStartRecordingClicked("toolbar"))})("onStopRecordingClicked",function(){return Ie(e),Re(ie().onStopRecordingClicked("toolbar"))})("onStopBroadcastingClicked",function(){return Ie(e),Re(ie().onStopBroadcastingClicked("toolbar"))}),X(1,Wne,1,1,"ng-template",null,26,dn),X(3,Yne,1,1,"ng-template",null,27,dn),V()}}function Kne(t,n){1&t&&rn(0)}function Zne(t,n){1&t&&X(0,Kne,1,0,"ng-container",24),2&t&&U("ngTemplateOutlet",ie(2).openviduAngularChatPanelTemplate)}function Xne(t,n){1&t&&rn(0)}function Jne(t,n){1&t&&X(0,Xne,1,0,"ng-container",24),2&t&&U("ngTemplateOutlet",ie(2).openviduAngularParticipantsPanelTemplate)}function eie(t,n){1&t&&Xe(0,"ov-background-effects-panel",35)}function tie(t,n){1&t&&Xe(0,"ov-settings-panel",36)}function nie(t,n){1&t&&rn(0)}function iie(t,n){1&t&&X(0,nie,1,0,"ng-container",24),2&t&&U("ngTemplateOutlet",ie(2).openviduAngularActivitiesPanelTemplate)}function oie(t,n){1&t&&rn(0)}function rie(t,n){1&t&&X(0,oie,1,0,"ng-container",24),2&t&&U("ngTemplateOutlet",ie(2).openviduAngularAdditionalPanelsTemplate)}function sie(t,n){1&t&&(O(0,"ov-panel",28),X(1,Zne,1,1,"ng-template",null,29,dn),X(3,Jne,1,1,"ng-template",null,30,dn),X(5,eie,1,0,"ng-template",null,31,dn),X(7,tie,1,0,"ng-template",null,32,dn),X(9,iie,1,1,"ng-template",null,33,dn),X(11,rie,1,1,"ng-template",null,34,dn),V())}function aie(t,n){1&t&&Xe(0,"ov-chat-panel",37)}function lie(t,n){if(1&t){const e=at();O(0,"ov-activities-panel",38),we("onStartRecordingClicked",function(){return Ie(e),Re(ie().onStartRecordingClicked("panel"))})("onStopRecordingClicked",function(){return Ie(e),Re(ie().onStopRecordingClicked("panel"))})("onDeleteRecordingClicked",function(o){return Ie(e),Re(ie().onDeleteRecordingClicked(o))})("onStartBroadcastingClicked",function(o){return Ie(e),Re(ie().onStartBroadcastingClicked(o))})("onStopBroadcastingClicked",function(){return Ie(e),Re(ie().onStopBroadcastingClicked("panel"))}),V()}}function cie(t,n){1&t&&rn(0)}function uie(t,n){if(1&t&&X(0,cie,1,0,"ng-container",41),2&t){const e=n.$implicit;U("ngTemplateOutlet",ie(2).openviduAngularParticipantPanelItemTemplate)("ngTemplateOutletContext",Xn(2,_a,e))}}function die(t,n){1&t&&(O(0,"ov-participants-panel",39),X(1,uie,1,4,"ng-template",null,40,dn),V())}function hie(t,n){1&t&&rn(0)}function fie(t,n){if(1&t&&X(0,hie,1,0,"ng-container",41),2&t){const e=ie().$implicit;U("ngTemplateOutlet",ie().openviduAngularParticipantPanelItemElementsTemplate)("ngTemplateOutletContext",Xn(2,_a,e))}}function pie(t,n){1&t&&(O(0,"ov-participant-panel-item",42),X(1,fie,1,4,"ng-template",null,43,dn),V()),2&t&&U("participant",n.$implicit)}function gie(t,n){1&t&&rn(0)}function mie(t,n){if(1&t&&X(0,gie,1,0,"ng-container",41),2&t){const e=n.$implicit;U("ngTemplateOutlet",ie(2).openviduAngularStreamTemplate)("ngTemplateOutletContext",Xn(2,_a,e))}}function vie(t,n){1&t&&(O(0,"ov-layout",44),X(1,mie,1,4,"ng-template",null,45,dn),V())}function _ie(t,n){1&t&&Xe(0,"ov-stream",46),2&t&&U("stream",n.$implicit)}var W1={LOGIN:"\u767b\u5f55",SECRET:"\u79d8\u5bc6",SECRET_REQURED:"\u5fc5\u987b\u63d0\u4f9b\u79d8\u5bc6",DASHBOARD:"\u4eea\u8868\u677f",NO_RECORDINGS:"\u6ca1\u6709\u5f55\u97f3",SEARCH:"\u641c\u7d22\u5f55\u97f3",DATE:"\u65e5\u671f",DURATION:"\u671f\u95f4",SIZE:"\u5c3a\u5bf8",STATUS:"\u5730\u4f4d",NAME:"\u59d3\u540d",SESSION:"\u4f1a\u8bae",OUTPUT:"\u8f93\u51fa\u65b9\u5f0f",POWERED_BY:"\u52a8\u529b b"},$1={NICKNAME_SECTION:"\u8bbe\u7f6e\u4f60\u7684\u7ef0\u53f7",NICKNAME:"\u6635\u79f0",DEVICE_SECTION:"\u9009\u62e9\u4f60\u7684\u8bbe\u5907",VIDEO_DEVICE:"\u89c6\u9891\u8bbe\u5907",AUDIO_DEVICE:"\u97f3\u9891\u8bbe\u5907",NO_VIDEO_DEVICE:"\u672a\u627e\u5230\u89c6\u9891\u8bbe\u5907",NO_AUDIO_DEVICE:"\u672a\u627e\u5230\u97f3\u9891\u8bbe\u5907",JOIN:"\u52a0\u5165\u4f1a\u8bdd",PREPARING:"\u7b79\u5907\u4f1a\u8bae"},Y1={MUTE_AUDIO:"\u5c06\u4f60\u7684\u97f3\u9891\u9759\u97f3",UNMUTE_AUDIO:"\u53d6\u6d88\u97f3\u9891\u9759\u97f3",MUTE_VIDEO:"\u5c06\u4f60\u7684\u89c6\u9891\u9759\u97f3",UNMUTE_VIDEO:"\u53d6\u6d88\u4f60\u7684\u89c6\u9891\u9759\u97f3",ENABLE_SCREEN:"\u542f\u7528\u5c4f\u5e55\u5171\u4eab",DISABLE_SCREEN:"\u7981\u7528\u5c4f\u5e55\u5171\u4eab",MORE_OPTIONS:"\u66f4\u591a\u9009\u9879",FULLSCREEN:"\u5168\u5c4f",EXIT_FULLSCREEN:"\u9000\u51fa\u5168\u5c4f",ENABLE_CAPTIONS:"\u542f\u7528\u5b57\u5e55",DISABLE_CAPTIONS:"\u7981\u7528\u5b57\u5e55",BACKGROUND:"\u80cc\u666f\u6548\u679c",START_RECORDING:"\u5f00\u59cb\u5f55\u97f3",STOP_RECORDING:"\u505c\u6b62\u5f55\u5236",SETTINGS:"\u8bbe\u7f6e",LEAVE:"\u79bb\u5f00\u4f1a\u8bae",PARTICIPANTS:"\u53c2\u4e0e\u8005",CHAT:"\u804a\u5929",ACTIVITIES:"\u6d3b\u52a8"},Q1={SETTINGS:"\u8bbe\u7f6e",MUTE_SOUND:"\u9759\u97f3",UNMUTE_SOUND:"\u53d6\u6d88\u9759\u97f3",ZOOM_IN:"\u653e\u5927",ZOOM_OUT:"\u7f29\u5c0f",REPLACE_SCREEN:"\u66f4\u6362\u5c4f\u5e55"},K1={CLOSE:"\u5173\u95ed",SEE_MORE:"\u67e5\u770b\u66f4\u591a",PRO_FEATURE:"\u6b64\u529f\u80fd\u5c5e\u4e8eOpenVidu PRO\u7ea7\u522b",PAID_FEATURE:"\u6b64\u529f\u80fd\u662f OpenVidu \u5546\u4e1a\u670d\u52a1\u7684\u4e00\u90e8\u5206\u3002\u8bf7\u901a\u8fc7 commercial@openvidu.io \u8054\u7cfb\u6211\u4eec\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002",CHAT:{TITLE:"\u804a\u5929",YOU:"\u4f60",SUBTITLE:"\u4fe1\u606f\u5c06\u5728\u4f1a\u8bae\u7ed3\u675f\u65f6\u88ab\u5220\u9664",PLACEHOLDER:"\u53d1\u9001\u6d88\u606f...",SEND:"\u53d1\u9001"},PARTICIPANTS:{TITLE:"\u53c2\u4e0e\u8005",CAMERA:"\u6444\u50cf\u5934",SCREEN:"\u5c4f\u5e55"},SETTINGS:{TITLE:"\u8bbe\u7f6e",GENERAL:"\u4e00\u822c\u7684",VIDEO:"\u89c6\u9891",AUDIO:"\u58f0\u97f3\u7684",LANGUAGE:"\u8bed",CAPTIONS:"\u5b57\u5e55",CAPTIONS_LANG_TEXT:"\u9009\u62e9\u4f1a\u8bdd\u53c2\u4e0e\u8005\u5c06\u4f7f\u7528\u7684\u8bed\u8a00\u3002\u5b57\u5e55\u5c06\u4ee5\u8be5\u8bed\u8a00\u663e\u793a\u3002"},BACKGROUND:{TITLE:"\u80cc\u666f\u6548\u679c",BLURRED_SECTION:"\u6ca1\u6709\u6548\u679c\u548c\u6a21\u7cca\u7684\u80cc\u666f",NO_EFFECTS:"\u6ca1\u6709\u80cc\u666f\u6548\u679c",BLURRED_EFFECT:"\u6a21\u7cca\u7684\u80cc\u666f",IMAGES_SECTION:"\u80cc\u666f\u56fe\u50cf"},RECORDING:{TITLE:"\u5f55\u97f3",SUBTITLE:"\u4e3a\u540e\u4eba\u8bb0\u5f55\u4f60\u7684\u4f1a\u8bae",CONTENT_TITLE:"\u8bb0\u5f55\u4f60\u7684\u89c6\u9891\u901a\u8bdd",CONTENT_SUBTITLE:"\u5f53\u5f55\u97f3\u5b8c\u6210\u540e\uff0c\u4f60\u5c06\u53ef\u4ee5\u8f7b\u677e\u5730\u4e0b\u8f7d\u5b83",STARTING:"\u5f00\u59cb\u5f55\u97f3",STOPPING:"\u505c\u6b62\u5f55\u5236",PLAY:"\u73a9",DELETE:"\u5220\u9664",CANCEL:"\u53d6\u6d88",DELETE_QUESTION:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u5f55\u97f3\u5417",DOWNLOAD:"\u4e0b\u8f7d",RECORDINGS:"\u5f55\u5236",NO_MODERATOR:"\u53ea\u6709\u4e3b\u6301\u4eba\u53ef\u4ee5\u5f00\u59cb\u5f55\u97f3"},STREAMING:{TITLE:"\u76f4\u64ad",SUBTITLE:"\u5411\u89c2\u4f17\u76f4\u64ad\u60a8\u7684\u4f1a\u8bae",CONTENT_SUBTITLE:"OpenVidu\u9700\u8981\u76f4\u64ad\u5e73\u53f0\u7684\u7f51\u5740\u3002",START:"\u5f00\u59cb\u76f4\u64ad",STOP:"\u7ed3\u675f\u76f4\u64ad",URL:"\u63d2\u5165\u60a8\u7684\u76f4\u64ad\u7f51\u5740",CANCEL:"\u53d6\u6d88",REQUIRED_URL:"\u9700\u8981\u63d0\u4f9b\u76f4\u64ad\u7f51\u5740",NO_MODERATOR:"\u53ea\u6709MODERATOR\u624d\u80fd\u5f00\u59cb\u76f4\u64ad"}},Z1={SESSION:"\u8fde\u63a5\u5230\u4f1a\u8bdd\u65f6\u6709\u9519\u8bef",CONNECTION:"\u8fde\u63a5\u4e22\u5931",RECONNECT:"\u8bd5\u56fe\u91cd\u65b0\u8fde\u63a5\u5230\u4f1a\u8bdd",TOGGLE_CAMERA:"\u5207\u6362\u76f8\u673a\u65f6\u51fa\u73b0\u9519\u8bef",TOGGLE_MICROPHONE:"\u5207\u6362\u9ea6\u514b\u98ce\u65f6\u51fa\u73b0\u9519\u8bef",SCREEN_SHARING:"\u5206\u4eab\u5c4f\u5e55\u51fa\u9519",SCREEN_SUPPORT:"\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5c4f\u5e55\u5171\u4eab",MEDIA_ACCESS:"\u4e0d\u5141\u8bb8\u8bbf\u95ee\u5a92\u4f53\u8bbe\u5907",DEVICE_NOT_FOUND:"\u6ca1\u6709\u627e\u5230\u89c6\u9891\u6216\u97f3\u9891\u8bbe\u5907 \u8bf7\u81f3\u5c11\u8fde\u63a5\u4e00\u4e2a",SST_CONNECTION:"\u8fde\u63a5\u4e22\u5931\u3002\u6b63\u5728\u91cd\u65b0\u8fde\u63a5\u5230\u8bed\u97f3\u5230\u6587\u672c\u670d\u52a1"},yie=Object.freeze({__proto__:null,ADMIN:W1,PREJOIN:$1,TOOLBAR:Y1,STREAM:Q1,PANEL:K1,ERRORS:Z1,default:{ADMIN:W1,PREJOIN:$1,TOOLBAR:Y1,STREAM:Q1,PANEL:K1,ERRORS:Z1}}),X1={LOGIN:"Anmeldung",SECRET:"Geheimnis",SECRET_REQURED:"Geheimnis ist erforderlich",DASHBOARD:"Armaturenbrett",NO_RECORDINGS:"Aufnahmen gibt es nicht",SEARCH:"Suchen Sie eine Aufzeichnung",DATE:"Datum",DURATION:"Dauer",SIZE:"Gr\xf6\xdfe",STATUS:"Status",NAME:"Name",SESSION:"Sitzung",OUTPUT:"Ausgabemodus",POWERED_BY:"Unterst\xfctzt von"},J1={NICKNAME_SECTION:"Legen Sie Ihren Spitznamen fest",NICKNAME:"Spitzname",DEVICE_SECTION:"W\xe4hlen Sie Ihre Ger\xe4te",VIDEO_DEVICE:"Videoger\xe4t",AUDIO_DEVICE:"Audioger\xe4t",NO_VIDEO_DEVICE:"Video-Ger\xe4t nicht gefunden",NO_AUDIO_DEVICE:"Audio-Ger\xe4t nicht gefunden",JOIN:"Sitzung beitreten",PREPARING:"Sitzung vorbereiten..."},eR={MUTE_AUDIO:"Stummschalten des Audios",UNMUTE_AUDIO:"Stummschaltung f\xfcr Audio aufheben",MUTE_VIDEO:"Stummschalten des Videos",UNMUTE_VIDEO:"Heben Sie die Stummschaltung Ihres Videos auf",ENABLE_SCREEN:"Bildschirmfreigabe aktivieren",DISABLE_SCREEN:"Bildschirmfreigabe deaktivieren",MORE_OPTIONS:"Weitere Optionen",FULLSCREEN:"Vollbild",EXIT_FULLSCREEN:"Vollbildmodus beenden",ENABLE_CAPTIONS:"Untertitel aktivieren",DISABLE_CAPTIONS:"Untertitel deaktivieren",BACKGROUND:"Hintergrund-Effekte",START_RECORDING:"Aufzeichnung starten",STOP_RECORDING:"Aufzeichnung stoppen",SETTINGS:"Einstellungen",LEAVE:"Die Sitzung verlassen",PARTICIPANTS:"Teilnehmer",CHAT:"Chat",ACTIVITIES:"Aktivit\xe4ten"},tR={SETTINGS:"Einstellungen",MUTE_SOUND:"Ton stummschalten",UNMUTE_SOUND:"Stummschaltung aufheben",ZOOM_IN:"Vergr\xf6\xdfern",ZOOM_OUT:"Herauszoomen",REPLACE_SCREEN:"Bildschirm austauschen"},nR={CLOSE:"Schlie\xdfen",SEE_MORE:"Mehr sehen",PRO_FEATURE:"Diese Funktion ist Teil des OpenVidu PRO-Tiers",PAID_FEATURE:"Diese Funktion ist Teil des kommerziellen Dienstes von OpenVidu. Bitte kontaktieren Sie uns \xfcber commercial@openvidu.io f\xfcr weitere Informationen.",CHAT:{TITLE:"Chat",YOU:"Sie",SUBTITLE:"Nachrichten werden am Ende der Sitzung entfernt",PLACEHOLDER:"Eine Nachricht senden...",SEND:"Senden"},PARTICIPANTS:{TITLE:"Teilnehmer",CAMERA:"KAMERA",SCREEN:"BILDSCHIRM"},SETTINGS:{TITLE:"Einstellungen",GENERAL:"Allgemein",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Sprache",CAPTIONS:"Untertitel",CAPTIONS_LANG_TEXT:"W\xe4hlen Sie die Sprache, die die Teilnehmer der Sitzung verwenden. Die Untertitel werden in dieser Sprache angezeigt."},BACKGROUND:{TITLE:"Hintergrund-Effekte",BLURRED_SECTION:"Keine Effekte und unscharfer Hintergrund",NO_EFFECTS:"Kein Hintergrundeffekt",BLURRED_EFFECT:"Unscharfer Hintergrund",IMAGES_SECTION:"Hintergrundbilder"},RECORDING:{TITLE:"Aufnahme",SUBTITLE:"Zeichnen Sie Ihr Meeting f\xfcr die Nachwelt auf",CONTENT_TITLE:"Ihr Videogespr\xe4ch aufzeichnen",CONTENT_SUBTITLE:"Wenn die Aufzeichnung beendet ist, k\xf6nnen Sie sie ganz einfach herunterladen",STARTING:"Aufzeichnung starten",STOPPING:"Aufnahme stoppen",PLAY:"Spielen",DELETE:"L\xf6schen",CANCEL:"Absagen",DELETE_QUESTION:"M\xf6chten Sie die Aufzeichnung wirklich l\xf6schen?",DOWNLOAD:"Download",RECORDINGS:"AUFZEICHNUNGEN",NO_MODERATOR:"Nur der MODERATOR kann die Aufzeichnung starten"},STREAMING:{TITLE:"Streaming",SUBTITLE:"Streamen Sie Ihr Meeting f\xfcr Ihr Publikum",CONTENT_SUBTITLE:"OpenVidu ben\xf6tigt die URL der Streaming-Plattform.",START:"Streaming starten",STOP:"Streaming beenden",URL:"Geben Sie Ihre Streaming-URL ein",CANCEL:"Abbrechen",REQUIRED_URL:"Die Streaming-URL ist erforderlich",NO_MODERATOR:"Nur der MODERATOR kann das Streaming starten"}},iR={SESSION:"Es ist ein Fehler beim Verbinden mit der Sitzung aufgetreten",CONNECTION:"Verbindung verloren",RECONNECT:"Ich versuche, die Verbindung zur Sitzung wiederherzustellen...",TOGGLE_CAMERA:"Es gab einen Fehler beim Umschalten der Kamera",TOGGLE_MICROPHONE:"Es ist ein Fehler beim Umschalten des Mikrofons aufgetreten",SCREEN_SHARING:"Fehler beim Teilen des Bildschirms",SCREEN_SUPPORT:"Ihr Browser unterst\xfctzt keine Bildschirmfreigabe",MEDIA_ACCESS:"Der Zugriff auf Medienger\xe4te war nicht erlaubt.",DEVICE_NOT_FOUND:"Es wurden keine Video- oder Audioger\xe4te gefunden. Bitte schlie\xdfen Sie mindestens eines an.",SST_CONNECTION:"Verbindung verloren. Wiederverbindung zum Sprach zu Text Service..."},Sie=Object.freeze({__proto__:null,ADMIN:X1,PREJOIN:J1,TOOLBAR:eR,STREAM:tR,PANEL:nR,ERRORS:iR,default:{ADMIN:X1,PREJOIN:J1,TOOLBAR:eR,STREAM:tR,PANEL:nR,ERRORS:iR}}),oR={LOGIN:"Login",SECRET:"Secret",SECRET_REQURED:"Secret is required",DASHBOARD:"Dashboard",NO_RECORDINGS:"There are no recordings",SEARCH:"Search a recording",DATE:"Date",DURATION:"Duration",SIZE:"Size",STATUS:"Status",NAME:"Name",SESSION:"Session",OUTPUT:"Output mode",POWERED_BY:"Powered by"},rR={NICKNAME_SECTION:"Set your nickname",NICKNAME:"Nickname",DEVICE_SECTION:"Choose your devices",VIDEO_DEVICE:"Video device",AUDIO_DEVICE:"Audio device",NO_VIDEO_DEVICE:"Video device not found",NO_AUDIO_DEVICE:"Audio device not found",JOIN:"Join session",PREPARING:"Preparing session..."},sR={MUTE_AUDIO:"Mute your audio",UNMUTE_AUDIO:"Unmute your audio",MUTE_VIDEO:"Mute your video",UNMUTE_VIDEO:"Unmute your video",ENABLE_SCREEN:"Enable screen share",DISABLE_SCREEN:"Disable screen share",MORE_OPTIONS:"More options",FULLSCREEN:"Fullscreen",EXIT_FULLSCREEN:"Exit fullscreen",ENABLE_CAPTIONS:"Enable captions",DISABLE_CAPTIONS:"Disable captions",BACKGROUND:"Background effects",START_RECORDING:"Start recording",STOP_RECORDING:"Stop recording",SETTINGS:"Settings",LEAVE:"Leave the session",PARTICIPANTS:"Participants",CHAT:"Chat",ACTIVITIES:"Activities"},aR={SETTINGS:"Settings",MUTE_SOUND:"Mute sound",UNMUTE_SOUND:"Unmute sound",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",REPLACE_SCREEN:"Replace screen"},lR={CLOSE:"Close",SEE_MORE:"See more",PRO_FEATURE:"This feature is part of OpenVidu PRO tier",PAID_FEATURE:"This feature is part of OpenVidu commercial service. Please contact us through commercial@openvidu.io for more information.",CHAT:{TITLE:"Chat",YOU:"You",SUBTITLE:"Messages will be removed at the end of the session",PLACEHOLDER:"Send a message...",SEND:"Send"},PARTICIPANTS:{TITLE:"Participants",CAMERA:"CAMERA",SCREEN:"SCREEN"},SETTINGS:{TITLE:"Settings",GENERAL:"General",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Language",CAPTIONS:"Captions",CAPTIONS_LANG_TEXT:"Select the language that the participants of the session will use. The captions will appear in that language."},BACKGROUND:{TITLE:"Background effects",BLURRED_SECTION:"No effects and blurred background",NO_EFFECTS:"No background effect",BLURRED_EFFECT:"Blurred background",IMAGES_SECTION:"Background images"},RECORDING:{TITLE:"Recording",SUBTITLE:"Record your meeting for posterity",CONTENT_TITLE:"Record your video call",CONTENT_SUBTITLE:"When recording has finished you will be able to download it with ease",STARTING:"Starting recording",STOPPING:"Stopping recording",PLAY:"Play",DELETE:"Delete",CANCEL:"Cancel",RESTORE:"Restore",DELETE_QUESTION:"Are you sure you want to delete the recording?",DOWNLOAD:"Download",RECORDINGS:"RECORDINGS",NO_MODERATOR:"Only the MODERATOR can start the recording"},STREAMING:{TITLE:"Streaming",SUBTITLE:"Stream your meeting to your audience",CONTENT_SUBTITLE:"OpenVidu need the url of the streaming platform.",START:"Start streaming",STOP:"End streaming",URL:"Insert your streaming url",CANCEL:"Cancel",REQUIRED_URL:"The streaming url is required",NO_MODERATOR:"Only the MODERATOR can start the streaming"}},cR={SESSION:"There was an error connecting to the session",CONNECTION:"Connection lost",RECONNECT:"Oops! Trying to reconnect to the session...",TOGGLE_CAMERA:"There was an error toggling camera",TOGGLE_MICROPHONE:"There was an error toggling microhpone",SCREEN_SHARING:"Error sharing screen",SCREEN_SUPPORT:"Your browser does not support screen sharing",MEDIA_ACCESS:"Access to media devices was not allowed.",DEVICE_NOT_FOUND:"No video or audio devices have been found. Please, connect at least one.",SST_CONNECTION:"Connection lost. Reconnecting to the speech to text service ..."},Aie=Object.freeze({__proto__:null,ADMIN:oR,PREJOIN:rR,TOOLBAR:sR,STREAM:aR,PANEL:lR,ERRORS:cR,default:{ADMIN:oR,PREJOIN:rR,TOOLBAR:sR,STREAM:aR,PANEL:lR,ERRORS:cR}}),uR={LOGIN:"Iniciar sesi\xf3n",SECRET:"Contrase\xf1a",SECRET_REQURED:"Contrase\xf1a obligatoria",DASHBOARD:"Panel",NO_RECORDINGS:"No se han encontrado grabaciones",SEARCH:"Busca una grabaci\xf3n",DATE:"Fecha",DURATION:"Duraci\xf3n",SIZE:"Tama\xf1o",STATUS:"Estado",NAME:"Nombre",SESSION:"Sesi\xf3n",OUTPUT:"Modo",POWERED_BY:"Construido por"},dR={NICKNAME_SECTION:"Elige tu nombre",NICKNAME:"Nombre",DEVICE_SECTION:"Elige tus dispositivos",VIDEO_DEVICE:"Dispositivo de video",AUDIO_DEVICE:"Dispositivo de audio",NO_VIDEO_DEVICE:"Dispositivo de v\xeddeo no encontrado",NO_AUDIO_DEVICE:"Dispositivo de audio no encontrado",PREPARING:"Preparando la session ...",JOIN:"Unirme ahora"},hR={MUTE_AUDIO:"Silenciar tu audio",UNMUTE_AUDIO:"Activar tu audio",MUTE_VIDEO:"Silenciar tu video",UNMUTE_VIDEO:"Activar tu video",ENABLE_SCREEN:"Compartir pantalla",DISABLE_SCREEN:"Dejar de compartir pantalla",MORE_OPTIONS:"M\xe1s opciones",EXIT_FULLSCREEN:"Quitar pantalla completa",FULLSCREEN:"Pantalla completa",ENABLE_CAPTIONS:"Activar subt\xedtulos",DISABLE_CAPTIONS:"Desactivar subt\xedtulos",BACKGROUND:"Efectos de fondo",START_RECORDING:"Iniciar grabaci\xf3n",STOP_RECORDING:"Detener grabaci\xf3n",SETTINGS:"Configuraci\xf3n",LEAVE:"Salir de la sesi\xf3n",PARTICIPANTS:"Participantes",CHAT:"Chat",ACTIVITIES:"Actividades"},fR={SETTINGS:"Ajustes",MUTE_SOUND:"Silenciar sonido",UNMUTE_SOUND:"Activar sonido",ZOOM_IN:"Aumentar tama\xf1o",ZOOM_OUT:"Disminuir tama\xf1o",REPLACE_SCREEN:"Reemplazar pantalla"},pR={CLOSE:"Cerrar",SEE_MORE:"Ver m\xe1s",PRO_FEATURE:"Esta funcionalidad es parte de OpenVidu PRO",PAID_FEATURE:"Esta funci\xf3n es parte del servicio comercial de OpenVidu. Cont\xe1ctenos a trav\xe9s de commercial@openvidu.io para obtener m\xe1s informaci\xf3n",CHAT:{TITLE:"Chat",YOU:"T\xfa",SUBTITLE:"Los mensajes se borrar\xe1n al finalizar la sesi\xf3n",PLACEHOLDER:"Enviar mensaje...",SEND:"Enviar"},PARTICIPANTS:{TITLE:"Participantes",CAMERA:"C\xc1MARA",SCREEN:"PANTALLA"},SETTINGS:{TITLE:"Configuraci\xf3n",GENERAL:"General",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Idioma",CAPTIONS:"Subt\xedtulos",CAPTIONS_LANG_TEXT:"Selecciona el idioma que usar\xe1n los participantes de la sesi\xf3n. Los subt\xedtulos aparecer\xe1n en ese idioma."},BACKGROUND:{TITLE:"Efectos de fondo",BLURRED_SECTION:"Sin efectos y fondo desenfocado",NO_EFFECTS:"Sin efecto",BLURRED_EFFECT:"Fondo desenfocado",IMAGES_SECTION:"Im\xe1genes de fondo"},RECORDING:{TITLE:"Grabaci\xf3n",SUBTITLE:"Graba tus llamadas para la posteridad",CONTENT_TITLE:"Graba tu video conferencia",CONTENT_SUBTITLE:"Cuando la grabaci\xf3n haya finalizado, podr\xe1s descargarla con facilidad",STARTING:"Iniciando grabaci\xf3n",STOPPING:"Parando grabaci\xf3n",PLAY:"Reproducir",DELETE:"Borrar",CANCEL:"Cancelar",DELETE_QUESTION:"\xbfEst\xe1s seguro/a de que deseas borrar la grabaci\xf3n?",DOWNLOAD:"Descargar",RECORDINGS:"GRABACIONES",NO_MODERATOR:"S\xf3lo el MODERADOR puede iniciar la grabaci\xf3n"},STREAMING:{TITLE:"Streaming",SUBTITLE:"Comparte tu llamada con tu p\xfablico",CONTENT_SUBTITLE:"OpenVidu necesita la url de tu plataforma de streaming.",START:"Empezar streaming",STOP:"Finalizar streaming",URL:"Inserta tu url de streaming",CANCEL:"Cancelar",NO_MODERATOR:"Solo el MODERADOR puede iniciar el streaming"}},gR={SESSION:"Hubo un error al conectar a la sesi\xf3n",CONNECTION:"Sin conexi\xf3n",RECONNECT:"Intentando reconectar a la sesi\xf3n...",TOGGLE_CAMERA:"Hubo un error cambiando la c\xe1mara",TOGGLE_MICROPHONE:"Hubo un error cambiando el micr\xf3fono",SCREEN_SHARING:"Hubo un error compartiendo pantalla",SCREEN_SUPPORT:"Tu navegador no soporta la pantalla compartida",MEDIA_ACCESS:"No se ha podido acceder a tus dispositivos",DEVICE_NOT_FOUND:"No se han encontrado dispositivos de audio o video. Por favor, conecta al menos uno.",SST_CONNECTION:"Conexi\xf3n perdida. Reconectando al servicio de transcripci\xf3n a texto..."},Die=Object.freeze({__proto__:null,ADMIN:uR,PREJOIN:dR,TOOLBAR:hR,STREAM:fR,PANEL:pR,ERRORS:gR,default:{ADMIN:uR,PREJOIN:dR,TOOLBAR:hR,STREAM:fR,PANEL:pR,ERRORS:gR}}),mR={LOGIN:"Connexion",SECRET:"Secret",SECRET_REQURED:"Le secret est requis",DASHBOARD:"Tableau de bord",NO_RECORDINGS:"Il n'y a pas d'enregistrements",SEARCH:"Rechercher un enregistrement",DATE:"Date",DURATION:"Dur\xe9e",SIZE:"Taille",STATUS:"Statut",NAME:"Nom",SESSION:"Session",OUTPUT:"Mode de sortie",POWERED_BY:"Aliment\xe9 par"},vR={NICKNAME_SECTION:"D\xe9finir votre surnom",NICKNAME:"Surnom",DEVICE_SECTION:"Choisissez vos appareils",VIDEO_DEVICE:"P\xe9riph\xe9rique vid\xe9o",AUDIO_DEVICE:"P\xe9riph\xe9rique audio",NO_VIDEO_DEVICE:"Appareil vid\xe9o introuvable",NO_AUDIO_DEVICE:"Appareil audio introuvable",JOIN:"Joindre une session",PREPARING:"Pr\xe9paration de la session ..."},_R={MUTE_AUDIO:"Mettez votre audio en sourdine",UNMUTE_AUDIO:"D\xe9sactiver le son",MUTE_VIDEO:"Couper le son de votre vid\xe9o",UNMUTE_VIDEO:"Unmute your video",ENABLE_SCREEN:"Activer le partage d'\xe9cran",DISABLE_SCREEN:"D\xe9sactiver le partage d'\xe9cran",MORE_OPTIONS:"Plus d'options",FULLSCREEN:"Plein \xe9cran",EXIT_FULLSCREEN:"Quitter le plein \xe9cran",ENABLE_CAPTIONS:"Activer les sous-titres",DISABLE_CAPTIONS:"D\xe9sactiver les sous-titres",BACKGROUND:"Effets de fond",START_RECORDING:"d\xe9marrer l'enregistrement",STOP_RECORDING:"Arr\xeater l'enregistrement",SETTINGS:"Param\xe8tres",LEAVE:"Quitter la session",PARTICIPANTS:"Participants",CHAT:"Chat",ACTIVITES:"Activit\xe9s"},bR={SETTINGS:"Param\xe8tres",MUTE_SOUND:"Couper le son",UNMUTE_SOUND:"D\xe9sactiver le son",ZOOM_IN:"Zoom avant",ZOOM_OUT:"Zoom arri\xe8re",REPLACE_SCREEN:"Remplacer l'\xe9cran"},yR={CLOSE:"Fermer",SEE_MORE:"Voir plus",PRO_FEATURE:"Cette fonctionnalit\xe9 fait partie de la gamme OpenVidu PRO",PAID_FEATURE:"Cette fonctionnalit\xe9 fait partie du service commercial d'OpenVidu. Veuillez nous contacter via commercial@openvidu.io pour plus d'informations.",CHAT:{TITLE:"Chat",YOU:"Vous",SUBTITLE:"Les messages seront supprim\xe9s \xe0 la fin de la session",PLACEHOLDER:"Envoyer un message...",SEND:"Envoyer"},PARTICIPANTS:{TITLE:"Participants",CAMERA:"CAM\xc9RA",SCREEN:"\xc9CRAN"},SETTINGS:{TITLE:"Param\xe8tres",GENERAL:"G\xe9n\xe9ral",VIDEO:"Vid\xe9o",AUDIO:"l'audio",LANGUAGE:"Langue",CAPTIONS:"Les sous-titres",CAPTIONS_LANG_TEXT:"S\xe9lectionnez la langue que les participants de la session utiliseront. Les sous-titres appara\xeetront dans cette langue."},BACKGROUND:{TITLE:"Effets de fond",BLURRED_SECTION:"Aucun effet et arri\xe8re-plan flou",NO_EFFECTS:"Aucun effet de fond",BLURRED_EFFECT:"Arri\xe8re-plan flou",IMAGES_SECTION:"Images d'arri\xe8re-plan"},RECORDING:{TITLE:"Enregistrement",SUBTITLE:"Enregistrez votre r\xe9union pour la post\xe9rit\xe9",CONTENT_TITLE:"Enregistrez votre appel vid\xe9o",CONTENT_SUBTITLE:"Une fois l'enregistrement termin\xe9, vous pourrez le t\xe9l\xe9charger facilement",STARTING:"D\xe9but de l'enregistrement",STOPPING:"Arr\xeat de l'enregistrement",PLAY:"Jouer",DELETE:"Effacer",CANCEL:"Annuler",DELETE_QUESTION:"Voulez-vous vraiment supprimer l'enregistrement\xa0?",DOWNLOAD:"T\xe9l\xe9charger",RECORDINGS:"ENREGISTREMENTS",NO_MODERATOR:"Seul le MODERATEUR peut lancer l'enregistrement"},STREAMING:{TITLE:"Streaming",SUBTITLE:"Diffusez votre r\xe9union en direct \xe0 votre public",CONTENT_SUBTITLE:"OpenVidu a besoin de l'URL de la plateforme de streaming.",START:"Commencer le streaming",STOP:"Arr\xeater le streaming",URL:"Ins\xe9rez votre URL de streaming",CANCEL:"Annuler",REQUIRED_URL:"L'URL de streaming est requise",NO_MODERATOR:"Seul le MODERATEUR peut d\xe9marrer le streaming"}},CR={SESSION:"There was an error connecting to the session",CONNECTION:"Connexion perdue",RECONNECT:"Oups ! Tentative de reconnexion \xe0 la session...",TOGGLE_CAMERA:"There was an error toggle camera",TOGGLE_MICROPHONE:"There was an error toggling microhpone",SCREEN_SHARING:"Erreur de partage d'\xe9cran",SCREEN_SUPPORT:"Votre navigateur ne prend pas en charge le partage d'\xe9cran",MEDIA_ACCESS:"L'acc\xe8s aux p\xe9riph\xe9riques m\xe9dias n'a pas \xe9t\xe9 autoris\xe9",DEVICE_NOT_FOUND:"Aucun p\xe9riph\xe9rique vid\xe9o ou audio n'a \xe9t\xe9 trouv\xe9. Veuillez en connecter au moins un.",SST_CONNECTION:"Connexion perdue. Reconnexion au service de reconnaissance vocale..."},Mie=Object.freeze({__proto__:null,ADMIN:mR,PREJOIN:vR,TOOLBAR:_R,STREAM:bR,PANEL:yR,ERRORS:CR,default:{ADMIN:mR,PREJOIN:vR,TOOLBAR:_R,STREAM:bR,PANEL:yR,ERRORS:CR}}),SR={LOGIN:"\u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0947\u0902",SECRET:"\u0917\u0941\u092a\u094d\u0924",SECRET_REQURED:"\u0930\u0939\u0938\u094d\u092f \u0915\u0940 \u0906\u0935\u0936\u094d\u092f\u0915\u0924\u093e \u0939\u0948",DASHBOARD:"\u0921\u0948\u0936\u092c\u094b\u0930\u094d\u0921",NO_RECORDINGS:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902",SEARCH:"\u090f\u0915 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0916\u094b\u091c\u0947\u0902",DATE:"\u0926\u093f\u0928\u093e\u0902\u0915",DURATION:"\u0905\u0935\u0927\u093f",SIZE:"\u0906\u0915\u093e\u0930",STATUS:"\u0926\u0930\u094d\u091c\u093e",NAME:"\u0928\u093e\u092e",SESSION:"\u0938\u0924\u094d\u0930",OUTPUT:"\u0906\u0909\u091f\u092a\u0941\u091f \u092e\u094b\u0921",POWERED_BY:"\u0926\u094d\u0935\u093e\u0930\u093e \u0938\u0902\u091a\u093e\u0932\u093f\u0924"},ER={NICKNAME_SECTION:"\u0905\u092a\u0928\u093e \u0928\u093f\u0915\u0928\u0947\u092e \u0938\u0947\u091f \u0915\u0930\u0947\u0902",NICKNAME:"\u0928\u093f\u0915\u0928\u0947\u092e",DEVICE_SECTION:"\u0905\u092a\u0928\u0947 \u0921\u093f\u0935\u093e\u0907\u0938 \u091a\u0941\u0928\u0947\u0902",VIDEO_DEVICE:"\u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938",AUDIO_DEVICE:"\u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938",NO_VIDEO_DEVICE:"\u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e",NO_AUDIO_DEVICE:"\u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e",JOIN:"\u0938\u0924\u094d\u0930 \u092e\u0947\u0902 \u0936\u093e\u092e\u093f\u0932 \u0939\u094b\u0902",PREPARING:"\u0938\u0924\u094d\u0930 \u0924\u0948\u092f\u093e\u0930 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948 ..."},AR={MUTE_AUDIO:"\u0905\u092a\u0928\u0940 \u0911\u0921\u093f\u092f\u094b \u0915\u094b \u092e\u094c\u0928 \u0915\u0930\u0947\u0902",UNMUTE_AUDIO:"\u0905\u092a\u0928\u0940 \u0911\u0921\u093f\u092f\u094b \u0915\u094b \u0905\u0928\u092e\u094c\u0928 \u0915\u0930\u0947\u0902",MUTE_VIDEO:"\u0905\u092a\u0928\u0940 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u094b \u092e\u094c\u0928 \u0915\u0930\u0947\u0902",UNMUTE_VIDEO:"\u0905\u092a\u0928\u0940 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u094b \u0905\u0928\u092e\u094c\u0928 \u0915\u0930\u0947\u0902",ENABLE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0936\u0947\u092f\u0930 \u0938\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",DISABLE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0936\u0947\u092f\u0930 \u0905\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",MORE_OPTIONS:"\u0905\u0927\u093f\u0915 \u0935\u093f\u0915\u0932\u094d\u092a",FULLSCREEN:"\u092a\u0942\u0930\u094d\u0923 \u0938\u094d\u0915\u094d\u0930\u0940\u0928",EXIT_FULLSCREEN:"\u092a\u0942\u0930\u094d\u0923 \u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u0947 \u092c\u093e\u0939\u0930 \u0928\u093f\u0915\u0932\u0947\u0902",ENABLE_CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0938\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",DISABLE_CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0905\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",BACKGROUND:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935",START_RECORDING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u092a\u094d\u0930\u093e\u0930\u0902\u092d \u0915\u0930\u0947\u0902",STOP_RECORDING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0930\u094b\u0915\u0947\u0902",SETTINGS:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",LEAVE:"\u0938\u0924\u094d\u0930 \u091b\u094b\u0921\u093c\u0947\u0902",PARTICIPANTS:"\u0938\u0926\u0938\u094d\u092f",CHAT:"\u092c\u093e\u0924\u091a\u0940\u0924",ACTIVITIES:"\u0917\u0924\u093f\u0935\u093f\u0927\u093f\u092f\u093e\u0901"},wR={SETTINGS:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",MUTE_SOUND:"\u0927\u094d\u0935\u0928\u093f \u092c\u0902\u0926 \u0915\u0930\u0947\u0902",UNMUTE_SOUND:"\u0927\u094d\u0935\u0928\u093f \u091a\u093e\u0932\u0942 \u0915\u0930\u0947\u0902",ZOOM_IN:"\u091c\u093c\u0942\u092e \u0907\u0928 \u0915\u0930\u0947\u0902",ZOOM_OUT:"\u091c\u093c\u0942\u092e \u0906\u0909\u091f \u0915\u0930\u0947\u0902",REPLACE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0915\u094b \u092c\u0926\u0932\u0947\u0902"},DR={CLOSE:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902",SEE_MORE:"\u0914\u0930 \u0926\u0947\u0916\u0947\u0902",PRO_FEATURE:"\u092f\u0939 \u0938\u0941\u0935\u093f\u0927\u093e OpenVidu PRO \u091f\u093e\u092f\u0930 \u0915\u093e \u0939\u093f\u0938\u094d\u0938\u093e \u0939\u0948",PAID_FEATURE:"\u092f\u0939 \u0938\u0941\u0935\u093f\u0927\u093e OpenVidu \u0935\u093e\u0923\u093f\u091c\u094d\u092f\u093f\u0915 \u0938\u0947\u0935\u093e \u0915\u093e \u0939\u093f\u0938\u094d\u0938\u093e \u0939\u0948\u0964 \u0905\u0927\u093f\u0915 \u091c\u093e\u0928\u0915\u093e\u0930\u0940 \u0915\u0947 \u0932\u093f\u090f \u0915\u0943\u092a\u092f\u093e commercial@openvidu.io \u0915\u0947 \u092e\u093e\u0927\u094d\u092f\u092e \u0938\u0947 \u0939\u092e\u0938\u0947 \u0938\u0902\u092a\u0930\u094d\u0915 \u0915\u0930\u0947\u0902\u0964",CHAT:{TITLE:"\u092c\u093e\u0924\u091a\u0940\u0924",YOU:"\u0906\u092a",SUBTITLE:"\u0938\u0924\u094d\u0930 \u0938\u092e\u093e\u092a\u094d\u0924 \u0939\u094b\u0928\u0947 \u092a\u0930 \u0938\u0902\u0926\u0947\u0936 \u0939\u091f\u093e \u0926\u093f\u090f \u091c\u093e\u090f\u0902\u0917\u0947",PLACEHOLDER:"\u090f\u0915 \u0938\u0902\u0926\u0947\u0936 \u092d\u0947\u091c\u0947\u0902 ...",SEND:"\u092d\u0947\u091c\u0947\u0902"},PARTICIPANTS:{TITLE:"\u0938\u0926\u0938\u094d\u092f",CAMERA:"\u0915\u0948\u092e\u0930\u093e",SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928"},SETTINGS:{TITLE:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",GENERAL:"\u0938\u093e\u092e\u093e\u0928\u094d\u092f",VIDEO:"\u0935\u0940\u0921\u093f\u092f\u094b",AUDIO:"\u0911\u0921\u093f\u092f\u094b",LANGUAGE:"\u092d\u093e\u0937\u093e",CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915",CAPTIONS_LANG_TEXT:"\u0909\u0938 \u092d\u093e\u0937\u093e \u0915\u093e \u091a\u092f\u0928 \u0915\u0930\u0947\u0902 \u091c\u093f\u0938\u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0938\u0924\u094d\u0930 \u0915\u0947 \u092a\u094d\u0930\u0924\u093f\u092d\u093e\u0917\u0940 \u0915\u0930\u0947\u0902\u0917\u0947\u0964 \u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0909\u0938 \u092d\u093e\u0937\u093e \u092e\u0947\u0902 \u0926\u093f\u0916\u093e\u0908 \u0926\u0947\u0902\u0917\u0947\u0964"},BACKGROUND:{TITLE:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935",BLURRED_SECTION:"\u0915\u094b\u0908 \u092a\u094d\u0930\u092d\u093e\u0935 \u0928\u0939\u0940\u0902 \u0939\u0948 \u0914\u0930 \u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u0927\u0941\u0902\u0927\u0932\u0940 \u0939\u0948",NO_EFFECTS:"\u0915\u094b\u0908 \u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935 \u0928\u0939\u0940\u0902 \u0939\u0948",BLURRED_EFFECT:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u0927\u0941\u0902\u0927\u0932\u0940 \u0939\u0948",IMAGES_SECTION:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u091b\u0935\u093f\u092f\u093e\u0902"},RECORDING:{TITLE:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917",SUBTITLE:"\u0905\u092a\u0928\u0940 \u092c\u0948\u0920\u0915 \u0915\u094b \u092d\u093e\u0935\u0940 \u092a\u0940\u0922\u093c\u0940 \u0915\u0947 \u0932\u093f\u090f \u0930\u093f\u0915\u0949\u0930\u094d\u0921 \u0915\u0930\u0947\u0902",CONTENT_TITLE:"\u0905\u092a\u0928\u093e \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u0949\u0932 \u0930\u093f\u0915\u0949\u0930\u094d\u0921 \u0915\u0930\u0947\u0902",CONTENT_SUBTITLE:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0938\u092e\u093e\u092a\u094d\u0924 \u0939\u094b \u091c\u093e\u0928\u0947 \u092a\u0930 \u0906\u092a \u0907\u0938\u0947 \u0906\u0938\u093e\u0928\u0940 \u0938\u0947 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930 \u0938\u0915\u0947\u0902\u0917\u0947",STARTING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0936\u0941\u0930\u0942 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948",STOPPING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u092c\u0902\u0926 \u0915\u0930\u0928\u093e",PLAY:"\u0916\u0947\u0932\u0947\u0902",DELETE:"\u092e\u093f\u091f\u093e\u0928\u093e",CANCEL:"\u0930\u0926\u094d\u0926 \u0915\u0930\u0928\u093e",DELETE_QUESTION:"\u0915\u094d\u092f\u093e \u0906\u092a \u0935\u093e\u0915\u0908 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0939\u091f\u093e\u0928\u093e \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902",DOWNLOAD:"\u0921\u093e\u0909\u0928\u0932\u094b\u0921",RECORDINGS:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917",NO_MODERATOR:"\u0915\u0947\u0935\u0932 \u092e\u0949\u0921\u0930\u0947\u091f\u0930 \u0939\u0940 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0936\u0941\u0930\u0942 \u0915\u0930 \u0938\u0915\u0924\u093e \u0939\u0948"},STREAMING:{TITLE:"\u0938\u094d\u091f\u094d\u0930\u0940\u092e\u093f\u0902\u0917",SUBTITLE:"\u0905\u092a\u0928\u0947 \u0926\u0930\u094d\u0936\u0915\u094b\u0902 \u0915\u0947 \u0932\u093f\u090f \u0905\u092a\u0928\u0940 \u092e\u0940\u091f\u093f\u0902\u0917 \u0938\u094d\u091f\u094d\u0930\u0940\u092e \u0915\u0930\u0947\u0902",CONTENT_SUBTITLE:"OpenVidu \u0915\u094b \u0938\u094d\u091f\u094d\u0930\u0940\u092e\u093f\u0902\u0917 \u092a\u094d\u0932\u0947\u091f\u092b\u093c\u0949\u0930\u094d\u092e \u0915\u093e URL \u091a\u093e\u0939\u093f\u090f\u0964",START:"\u0938\u094d\u091f\u094d\u0930\u0940\u092e\u093f\u0902\u0917 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902",STOP:"\u0938\u094d\u091f\u094d\u0930\u0940\u092e\u093f\u0902\u0917 \u0938\u092e\u093e\u092a\u094d\u0924 \u0915\u0930\u0947\u0902",URL:"\u0905\u092a\u0928\u093e \u0938\u094d\u091f\u094d\u0930\u0940\u092e\u093f\u0902\u0917 URL \u0907\u0928\u094d\u0938\u0930\u094d\u091f \u0915\u0930\u0947\u0902",CANCEL:"\u0930\u0926\u094d\u0926 \u0915\u0930\u0947\u0902",REQUIRED_URL:"\u0938\u094d\u091f\u094d\u0930\u0940\u092e\u093f\u0902\u0917 URL \u0905\u0928\u093f\u0935\u093e\u0930\u094d\u092f \u0939\u0948",NO_MODERATOR:"\u0915\u0947\u0935\u0932 \u092e\u0949\u0921\u0930\u0947\u091f\u0930 \u0938\u094d\u091f\u094d\u0930\u0940\u092e\u093f\u0902\u0917 \u0936\u0941\u0930\u0942 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902"}},TR={SESSION:"\u0938\u0924\u094d\u0930 \u0938\u0947 \u091c\u0941\u0921\u093c\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",CONNECTION:"\u0915\u0928\u0947\u0915\u094d\u0936\u0928 \u0916\u094b \u0917\u092f\u093e",RECONNECT:"\u0913\u0939! \u0938\u0924\u094d\u0930 \u0938\u0947 \u092b\u093f\u0930 \u0938\u0947 \u0915\u0928\u0947\u0915\u094d\u091f \u0915\u0930\u0928\u0947 \u0915\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948",TOGGLE_CAMERA:"\u0915\u0948\u092e\u0930\u093e \u091f\u0949\u0917\u0932 \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",TOGGLE_MICROPHONE:"\u092e\u093e\u0907\u0915\u094d\u0930\u094b\u092b\u093c\u094b\u0928 \u0915\u094b \u091a\u093e\u0932\u0942 \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",SCREEN_SHARING:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u093e\u091d\u093e \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f",SCREEN_SUPPORT:"\u0906\u092a\u0915\u093e \u092c\u094d\u0930\u093e\u0909\u091c\u093c\u0930 \u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u093e\u091d\u093e\u0915\u0930\u0923 \u0915\u093e \u0938\u092e\u0930\u094d\u0925\u0928 \u0928\u0939\u0940\u0902 \u0915\u0930\u0924\u093e",MEDIA_ACCESS:"\u092e\u0940\u0921\u093f\u092f\u093e \u0909\u092a\u0915\u0930\u0923\u094b\u0902 \u0924\u0915 \u092a\u0939\u0941\u0902\u091a \u0915\u0940 \u0905\u0928\u0941\u092e\u0924\u093f \u0928\u0939\u0940\u0902 \u0925\u0940\u0964",DEVICE_NOT_FOUND:"\u0915\u094b\u0908 \u0935\u0940\u0921\u093f\u092f\u094b \u092f\u093e \u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e\u0964 \u0915\u0943\u092a\u092f\u093e, \u0915\u092e \u0938\u0947 \u0915\u092e \u090f\u0915 \u0915\u0928\u0947\u0915\u094d\u091f \u0915\u0930\u0947\u0902\u0964",SST_CONNECTION:"\u0916\u094b\u092f\u093e \u0924\u093e\u0930\u0964 \u0932\u0947\u0916 \u0938\u0947\u0935\u093e \u0938\u0947 \u0932\u093f\u092a\u094d\u092f\u0902\u0924\u0930\u0923 \u0938\u0947 \u092a\u0941\u0928: \u0915\u0928\u0947\u0915\u094d\u091f \u0939\u094b \u0930\u0939\u093e \u0939\u0948..."},Oie=Object.freeze({__proto__:null,ADMIN:SR,PREJOIN:ER,TOOLBAR:AR,STREAM:wR,PANEL:DR,ERRORS:TR,default:{ADMIN:SR,PREJOIN:ER,TOOLBAR:AR,STREAM:wR,PANEL:DR,ERRORS:TR}}),MR={LOGIN:"Login",SECRET:"Segreto",SECRET_REQURED:"Il segreto \xe8 richiesto",DASHBOARD:"Pannello di controllo",NO_RECORDINGS:"Non ci sono registrazioni",SEARCH:"Cerca una registrazione",DATE:"Data",DURATION:"Durata",SIZE:"Dimensione",STATUS:"Stato",NAME:"Nome",SESSION:"Sessione",OUTPUT:"Modalit\xe0 di uscita",POWERED_BY:"Offerto da"},xR={NICKNAME_SECTION:"Imposta il tuo soprannome",NICKNAME:"Soprannome",DEVICE_SECTION:"Scegli i tuoi dispositivi",VIDEO_DEVICE:"Dispositivo video",AUDIO_DEVICE:"Dispositivo audio",NO_VIDEO_DEVICE:"Dispositivo video non trovato",NO_AUDIO_DEVICE:"Dispositivo audio non trovato",JOIN:"Unisciti alla sessione",PREPARING:"Preparazione della sessione in corso..."},OR={MUTE_AUDIO:"Disattiva l'audio",UNMUTE_AUDIO:"Attiva l'audio",MUTE_VIDEO:"Disattiva il video",UNMUTE_VIDEO:"Attiva il video",ENABLE_SCREEN:"Abilita la condivisione dello schermo",DISABLE_SCREEN:"Disabilita la condivisione dello schermo",MORE_OPTIONS:"Altre opzioni",FULLSCREEN:"Schermo intero",EXIT_FULLSCREEN:"Esci dallo schermo intero",ENABLE_CAPTIONS:"Abilita i sottotitoli",DISABLE_CAPTIONS:"Disabilita i sottotitoli",BACKGROUND:"Effetti di sfondo",START_RECORDING:"Avvia registrazione",STOP_RECORDING:"Interrompi registrazione",SETTINGS:"Impostazioni",LEAVE:"Abbandona la sessione",PARTICIPANTS:"Partecipanti",CHAT:"Chat",ACTIVITIES:"Attivit\xe0"},IR={SETTINGS:"Impostazioni",MUTE_SOUND:"Disattiva l'audio",UNMUTE_SOUND:"Attiva l'audio",ZOOM_IN:"Ingrandisci",ZOOM_OUT:"Riduci",REPLACE_SCREEN:"Sostituisci lo schermo"},RR={CLOSE:"Chiudi",SEE_MORE:"Vedi di pi\xf9",PRO_FEATURE:"Questa funzione fa parte del livello OpenVidu PRO",PAID_FEATURE:"Questa funzione fa parte del servizio commerciale di OpenVidu. Per ulteriori informazioni, contattaci tramite commercial@openvidu.io.",CHAT:{TITLE:"Chat",YOU:"Tu",SUBTITLE:"I messaggi verranno rimossi alla fine della sessione",PLACEHOLDER:"Invia un messaggio...",SEND:"Invia"},PARTICIPANTS:{TITLE:"Partecipanti",CAMERA:"CAMERA",SCREEN:"SCREEN"},SETTINGS:{TITLE:"Impostazioni",GENERAL:"Generale",VIDEO:"video",AUDIO:"Audio",LANGUAGE:"Lingua",CAPTIONS:"Sottotitoli",CAPTIONS_LANG_TEXT:"Seleziona la lingua che i partecipanti della sessione useranno. I sottotitoli appariranno in quella lingua."},BACKGROUND:{TITLE:"Effetti di sfondo",BLURRED_SECTION:"Nessun effetto e sfondo sfocato",NO_EFFECTS:"Nessun effetto di sfondo",BLURRED_EFFECT:"Sfondo sfocato",IMAGES_SECTION:"Immagini di sfondo"},RECORDING:{TITLE:"Registrazione",SUBTITLE:"Registra la tua riunione per i posteri",CONTENT_TITLE:"Registra la tua videochiamata",CONTENT_SUBTITLE:"Al termine della registrazione potrete scaricarla con facilit\xe0",STARTING:"Avvio della registrazione",STOPPING:"Interruzione della registrazione",PLAY:"Giocare a",DELETE:"Elimina",CANCEL:"Annulla",DELETE_QUESTION:"Sei sicuro di voler eliminare la registrazione?",DOWNLOAD:"Scarica",RECORDINGS:"REGISTRAZIONI",NO_MODERATOR:"Solo il MODERATORE pu\xf2 avviare la registrazione"},STREAMING:{TITLE:"Streaming",SUBTITLE:"Trasmetti la tua riunione al tuo pubblico",CONTENT_SUBTITLE:"OpenVidu ha bisogno dell'URL della piattaforma di streaming.",START:"Inizia lo streaming",STOP:"Termina lo streaming",URL:"Inserisci il tuo URL di streaming",CANCEL:"Annulla",REQUIRED_URL:"L'URL di streaming \xe8 obbligatorio",NO_MODERATOR:"Solo il MODERATORE pu\xf2 avviare lo streaming"}},PR={SESSION:"Si \xe8 verificato un errore di connessione alla sessione",CONNECTION:"Connessione persa",RECONNECT:"Oops! Si sta cercando di riconnettersi alla sessione...",TOGGLE_CAMERA:"Si \xe8 verificato un errore nell'attivazione della telecamera",TOGGLE_MICROPHONE:"Si \xe8 verificato un errore nell'attivazione del microfono",SCREEN_SHARING:"Errore nella condivisione dello schermo",SCREEN_SUPPORT:"Il browser non supporta la condivisione dello schermo",MEDIA_ACCESS:"L'accesso ai dispositivi multimediali non \xe8 stato consentito",DEVICE_NOT_FOUND:"Non sono stati trovati dispositivi video o audio. Si prega di collegarne almeno uno",SST_CONNECTION:"Connessione persa. Riconnessione al servizio di conversione testo da audio in corso..."},Rie=Object.freeze({__proto__:null,ADMIN:MR,PREJOIN:xR,TOOLBAR:OR,STREAM:IR,PANEL:RR,ERRORS:PR,default:{ADMIN:MR,PREJOIN:xR,TOOLBAR:OR,STREAM:IR,PANEL:RR,ERRORS:PR}}),kR={LOGIN:"\u30ed\u30b0\u30a4\u30f3",SECRET:"\u3072\u307f\u3064",SECRET_REQURED:"\u79d8\u5bc6\u304c\u5fc5\u8981\u3067\u3059",DASHBOARD:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9",NO_RECORDINGS:"\u9332\u97f3\u306f\u3042\u308a\u307e\u305b\u3093",SEARCH:"\u9332\u97f3\u3092\u691c\u7d22\u3059\u308b",DATE:"\u65e5\u306b\u3061",DURATION:"\u9593\u9694",SIZE:"\u30b5\u30a4\u30ba",STATUS:"\u72b6\u614b",NAME:"\u540d\u524d",SESSION:"\u30bb\u30c3\u30b7\u30e7\u30f3",OUTPUT:"\u51fa\u529b\u30e2\u30fc\u30c9",POWERED_BY:"\u642d\u8f09"},NR={NICKNAME_SECTION:"\u30cb\u30c3\u30af\u30cd\u30fc\u30e0\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044",NICKNAME:"\u30cb\u30c3\u30af\u30cd\u30fc\u30e0",DEVICE_SECTION:"\u30c7\u30d0\u30a4\u30b9\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044",VIDEO_DEVICE:"\u30d3\u30c7\u30aa\u30c7\u30d0\u30a4\u30b9",AUDIO_DEVICE:"\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9",NO_VIDEO_DEVICE:"\u30d3\u30c7\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093",NO_AUDIO_DEVICE:"\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093",JOIN:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u53c2\u52a0\u3059\u308b",PREPARING:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u6e96\u5099\u4e2d..."},LR={MUTE_AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",MUTE_VIDEO:"\u30d3\u30c7\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_VIDEO:"\u30d3\u30c7\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",ENABLE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u5171\u6709\u3092\u6709\u52b9\u306b\u3059\u308b",DISABLE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u5171\u6709\u3092\u7121\u52b9\u306b\u3059\u308b",MORE_OPTIONS:"\u305d\u306e\u4ed6\u306e\u30aa\u30d7\u30b7\u30e7\u30f3",FULLSCREEN:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3",EXIT_FULLSCREEN:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u7d42\u4e86\u3059\u308b",ENABLE_CAPTIONS:"\u5b57\u5e55\u3092\u6709\u52b9\u306b\u3059\u308b",DISABLE_CAPTIONS:"\u5b57\u5e55\u3092\u7121\u52b9\u306b\u3059\u308b",BACKGROUND:"\u80cc\u666f\u52b9\u679c",START_RECORDING:"\u9332\u753b\u958b\u59cb",STOP_RECORDING:"\u9332\u753b\u306e\u505c\u6b62",SETTINGS:"\u8a2d\u5b9a",LEAVE:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\u3059\u308b",PARTICIPANTS:"\u53c2\u52a0\u8005",CHAT:"\u30c1\u30e3\u30c3\u30c8",ACTIVITIES:"\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3"},FR={SETTINGS:"\u8a2d\u5b9a",MUTE_SOUND:"\u30b5\u30a6\u30f3\u30c9\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_SOUND:"\u30b5\u30a6\u30f3\u30c9\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",ZOOM_IN:"\u62e1\u5927\u3059\u308b",ZOOM_OUT:"\u7e2e\u5c0f\u3059\u308b",REPLACE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u5165\u308c\u66ff\u3048\u308b"},BR={CLOSE:"\u9589\u3058\u308b",PRO_FEATURE:"\u3053\u306e\u6a5f\u80fd\u306fOpenVidu PRO\u306e\u6a5f\u80fd\u3067\u3059",SEE_MORE:"\u3082\u3063\u3068\u898b\u308b",PAID_FEATURE:"\u3053\u306e\u6a5f\u80fd\u306f\u3001OpenVidu \u5546\u7528\u30b5\u30fc\u30d3\u30b9\u306e\u4e00\u90e8\u3067\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001commercial@openvidu.io \u307e\u3067\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002",CHAT:{TITLE:"\u30c1\u30e3\u30c3\u30c8",YOU:"\u3042\u306a\u305f",SUBTITLE:"\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u7d42\u4e86\u6642\u306b\u524a\u9664\u3055\u308c\u307e\u3059",PLACEHOLDER:"\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1...",SEND:"\u9001\u4fe1\u3059\u308b"},PARTICIPANTS:{TITLE:"\u53c2\u52a0\u8005",CAMERA:"\u30ab\u30e1\u30e9",SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3"},SETTINGS:{TITLE:"\u8a2d\u5b9a",GENERAL:"\u5168\u822c\u7684",VIDEO:"\u30d3\u30c7\u30aa",AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa",LANGUAGE:"\u8a00\u8a9e",CAPTIONS:"\u5b57\u5e55",CAPTIONS_LANG_TEXT:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u53c2\u52a0\u8005\u304c\u4f7f\u7528\u3059\u308b\u8a00\u8a9e\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u306f\u305d\u306e\u8a00\u8a9e\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002"},BACKGROUND:{TITLE:"\u80cc\u666f\u52b9\u679c",BLURRED_SECTION:"\u30a8\u30d5\u30a7\u30af\u30c8\u306a\u3057\u3001\u307c\u3084\u3051\u305f\u80cc\u666f",NO_EFFECTS:"\u80cc\u666f\u30a8\u30d5\u30a7\u30af\u30c8\u306a\u3057",BLURRED_EFFECT:"\u307c\u3084\u3051\u305f\u80cc\u666f",IMAGES_SECTION:"\u80cc\u666f\u753b\u50cf"},RECORDING:{TITLE:"\u30ec\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0",SUBTITLE:"\u4f1a\u8b70\u3092\u9332\u97f3\u3057\u3066\u5f8c\u4e16\u306b\u6b8b\u3059",CONTENT_TITLE:"\u30d3\u30c7\u30aa\u901a\u8a71\u3092\u9332\u97f3\u3059\u308b",CONTENT_SUBTITLE:"\u9332\u97f3\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u7c21\u5358\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059",STARTING:"\u9332\u753b\u958b\u59cb",STOPPING:"\u9332\u97f3\u3092\u505c\u6b62\u3057\u307e\u3059",PLAY:"\u904a\u3076",DELETE:"\u6d88\u53bb",CANCEL:"\u30ad\u30e3\u30f3\u30bb\u30eb",DELETE_QUESTION:"\u9332\u97f3\u3092\u524a\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b",DOWNLOAD:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",RECORDINGS:"\u9332\u753b",NO_MODERATOR:"\u9332\u97f3\u3092\u958b\u59cb\u3067\u304d\u308b\u306e\u306f\u3001\u30e2\u30c7\u30ec\u30fc\u30bf\u30fc\u306e\u307f\u3067\u3059"},STREAMING:{TITLE:"\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0",SUBTITLE:"\u30df\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u8996\u8074\u8005\u306b\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3059\u308b",CONTENT_SUBTITLE:"OpenVidu\u306f\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306eURL\u304c\u5fc5\u8981\u3067\u3059\u3002",START:"\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3092\u958b\u59cb\u3059\u308b",STOP:"\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3092\u7d42\u4e86\u3059\u308b",URL:"\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0URL\u3092\u633f\u5165\u3057\u3066\u304f\u3060\u3055\u3044",CANCEL:"\u30ad\u30e3\u30f3\u30bb\u30eb",REQUIRED_URL:"\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0URL\u306f\u5fc5\u9808\u3067\u3059",NO_MODERATOR:"MODERATOR\u306e\u307f\u304c\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3092\u958b\u59cb\u3067\u304d\u307e\u3059"}},VR={SESSION:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3078\u306e\u63a5\u7d9a\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",CONNECTION:"\u63a5\u7d9a\u304c\u5931\u308f\u308c\u307e\u3057\u305f",RECONNECT:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3078\u306e\u518d\u63a5\u7d9a\u3092\u8a66\u307f\u3066\u3044\u307e\u3059",TOGGLE_CAMERA:"\u30ab\u30e1\u30e9\u306e\u30c8\u30b0\u30eb\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",TOGGLE_MICROPHONE:"\u30de\u30a4\u30af\u30ed\u30d5\u30a9\u30f3\u306e\u30c8\u30b0\u30eb\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",SCREEN_SHARING:"\u753b\u9762\u5171\u6709\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",SCREEN_SUPPORT:"\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u306f\u753b\u9762\u5171\u6709\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093",MEDIA_ACCESS:"\u30e1\u30c7\u30a3\u30a2\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u8a31\u53ef\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f",DEVICE_NOT_FOUND:"\u30d3\u30c7\u30aa\u307e\u305f\u306f\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f \u6700\u4f4e1\u53f0\u306f\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044",SST_CONNECTION:"\u63a5\u7d9a\u304c\u5931\u308f\u308c\u307e\u3057\u305f\u3002\u97f3\u58f0\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u3078\u306e\u5909\u63db\u30b5\u30fc\u30d3\u30b9\u306b\u518d\u63a5\u7d9a\u3057\u3066\u3044\u307e\u3059"},kie=Object.freeze({__proto__:null,ADMIN:kR,PREJOIN:NR,TOOLBAR:LR,STREAM:FR,PANEL:BR,ERRORS:VR,default:{ADMIN:kR,PREJOIN:NR,TOOLBAR:LR,STREAM:FR,PANEL:BR,ERRORS:VR}}),jR={LOGIN:"Log in",SECRET:"Geheim",SECRET_REQURED:"Geheim is vereist",DASHBOARD:"Dashboard",NO_RECORDINGS:"Er zijn geen opnames",SEARCH:"Een opname zoeken",DATE:"Datum",DURATION:"Looptijd",SIZE:"Maat",STATUS:"Toestand",NAME:"Naam",SESSION:"Sessie",OUTPUT:"Uitgangsmodus",POWERED_BY:"Aangedreven door"},UR={NICKNAME_SECTION:"Stel je bijnaam in",NICKNAME:"Bijnaam",DEVICE_SECTION:"Kies je apparaten",VIDEO_DEVICE:"Videospeler",AUDIO_DEVICE:"Audiospeler",NO_VIDEO_DEVICE:"Videoapparaat niet gevonden",NO_AUDIO_DEVICE:"Audioapparaat niet gevonden",JOIN:"Deelnemen aan sessie",PREPARING:"Sessie voorbereiden ..."},HR={MUTE_AUDIO:"Audio dempen",UNMUTE_AUDIO:"Audio niet meer dempen",MUTE_VIDEO:"Video dempen",UNMUTE_VIDEO:"Video niet meer dempen",ENABLE_SCREEN:"Scherm delen inschakelen",DISABLE_SCREEN:"Scherm delen uitschakelen",MORE_OPTIONS:"Meer opties",FULLSCREEN:"Volledig scherm",EXIT_FULLSCREEN:"Volledig scherm verlaten",ENABLE_CAPTIONS:"Ondertiteling inschakelen",DISABLE_CAPTIONS:"Ondertiteling uitschakelen",BACKGROUND:"Achtergrondeffecten",START_RECORDING:"Start opname",STOP_RECORDING:"Stop opname",SETTINGS:"Instellingen",LEAVE:"Verlaat de sessie",PARTICIPANTS:"Deelnemers",CHAT:"Chat",ACTIVITIES:"Activiteiten"},GR={SETTINGS:"Instellingen",MUTE_SOUND:"Geluid dempen",UNMUTE_SOUND:"Geluid niet meer dempen",ZOOM_IN:"Inzoomen",ZOOM_OUT:"Uitzoomen",REPLACE_SCREEN:"Vervang scherm"},zR={CLOSE:"Sluiten",SEE_MORE:"Zie meer",PRO_FEATURE:"Deze functie is onderdeel van OpenVidu PRO tier",PAID_FEATURE:"Deze functie maakt deel uit van de commerci\xeble service van OpenVidu. Neem voor meer informatie contact met ons op via commercial@openvidu.io.",CHAT:{TITLE:"Chat",YOU:"Jij",SUBTITLE:"Berichten worden aan het einde van de sessie verwijderd",PLACEHOLDER:"Stuur een bericht ...",SEND:"Versturen"},PARTICIPANTS:{TITLE:"Deelnemers",CAMERA:"CAMERA",SCREEN:"SCHERM"},SETTINGS:{TITLE:"Instellingen",GENERAL:"Algemeen",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Taal",CAPTIONS:"Ondertitels",CAPTIONS_LANG_TEXT:"Selecteer de taal die de deelnemers van de sessie zullen gebruiken. De ondertiteling zal in die taal verschijnen."},BACKGROUND:{TITLE:"Achtergrondeffecten",BLURRED_SECTION:"Geen effecten en onscherpe achtergrond",NO_EFFECTS:"Geen achtergrondeffect",BLURRED_EFFECT:"Onscherpe achtergrond",IMAGES_SECTION:"Achtergrondafbeeldingen"},RECORDING:{TITLE:"Opname",SUBTITLE:"Neem uw vergadering op voor het nageslacht",CONTENT_TITLE:"Neem uw videogesprek op",CONTENT_SUBTITLE:"Als de opname klaar is kunt u deze met gemak downloaden",STARTING:"Beginnen met opnemen",STOPPING:"Opname stoppen",PLAY:"Toneelstuk",DELETE:"Verwijderen",CANCEL:"Annuleren",DELETE_QUESTION:"Weet je zeker dat je de opname wilt verwijderen?",DOWNLOAD:"Downloaden",RECORDINGS:"OPNAME",NO_MODERATOR:"Alleen de MOEDERATOR kan de opname starten"},STREAMING:{TITLE:"Streaming",SUBTITLE:"Stream uw vergadering naar uw publiek",CONTENT_SUBTITLE:"OpenVidu heeft de url van het streamingplatform nodig.",START:"Start met streamen",STOP:"Stop met streamen",URL:"Voeg uw stream-URL in",CANCEL:"Annuleren",REQUIRED_URL:"De stream-URL is vereist",NO_MODERATOR:"Alleen de MODERATOR kan beginnen met streamen"}},qR={SESSION:"Er is een fout opgetreden bij het verbinden met de sessie",CONNECTION:"Verbinding verloren",RECONNECT:"Proberen opnieuw verbinding te maken met de sessie...",TOGGLE_CAMERA:"Er is een fout opgetreden bij het overschakelen naar een andere camera",TOGGLE_MICROPHONE:"Er is een fout opgetreden bij het overschakelen naar een microfoon",SCREEN_SHARING:"Fout bij het delen van het scherm",SCREEN_SUPPORT:"Uw browser ondersteunt het delen van schermen niet",MEDIA_ACCESS:"Toegang tot media-apparaten was niet toegestaan.",DEVICE_NOT_FOUND:"Er zijn geen video- of audioapparaten gevonden. Sluit er alstublieft ten minste \xe9\xe9n aan.",SST_CONNECTION:"Verbinding verbroken. Opnieuw verbinden met de spraak-naar-tekstservice..."},Lie=Object.freeze({__proto__:null,ADMIN:jR,PREJOIN:UR,TOOLBAR:HR,STREAM:GR,PANEL:zR,ERRORS:qR,default:{ADMIN:jR,PREJOIN:UR,TOOLBAR:HR,STREAM:GR,PANEL:zR,ERRORS:qR}}),WR={LOGIN:"Conecte-se",SECRET:"Segredo",SECRET_REQURED:"O segredo \xe9 obrigat\xf3rio",DASHBOARD:"Painel",NO_RECORDINGS:"N\xe3o h\xe1 grava\xe7\xf5es",SEARCH:"Pesquisar uma grava\xe7\xe3o",DATE:"Encontro",DURATION:"Dura\xe7\xe3o",SIZE:"Tamanho",STATUS:"Status",NAME:"Nome",SESSION:"Sess\xe3o",OUTPUT:"Modo de sa\xedda",POWERED_BY:"Distribu\xeddo por"},$R={NICKNAME_SECTION:"Defina seu apelido",NICKNAME:"Apelido",DEVICE_SECTION:"Escolha seus dispositivos",VIDEO_DEVICE:"Dispositivo de v\xeddeo",AUDIO_DEVICE:"Dispositivo de \xe1udio",NO_VIDEO_DEVICE:"Dispositivo de v\xeddeo n\xe3o encontrado",NO_AUDIO_DEVICE:"Dispositivo de \xe1udio n\xe3o encontrado",JOIN:"Entrar na sess\xe3o",PREPARING:"Preparando sess\xe3o..."},YR={MUTE_AUDIO:"Mute seu \xe1udio",UNMUTE_AUDIO:"Desmute seu \xe1udio",MUTE_VIDEO:"Mute seu v\xeddeo",UNMUTE_VIDEO:"Desmute seu v\xeddeo",ENABLE_SCREEN:"Habilitar compartilhamento de tela",DISABLE_SCREEN:"Desabilitar compartilhamento de tela",MORE_OPTIONS:"Mais op\xe7\xf5es",FULLSCREEN:"Tela cheia",EXIT_FULLSCREEN:"Sair da tela cheia",ENABLE_CAPTIONS:"Ativar legendas",DISABLE_CAPTIONS:"Desativar legendas",BACKGROUND:"Efeitos de fundo",START_RECORDING:"Iniciar_grava\xe7\xe3o",STOP_RECORDING:"Parar de gravar",SETTINGS:"Configura\xe7\xf5es",LEAVE:"Sair da sess\xe3o",PARTICIPANTS:"Participantes",CHAT:"Chat",ACTIVITIES:"Actividades"},QR={SETTINGS:"Configura\xe7\xf5es",MUTE_SOUND:"Mudo",UNMUTE_SOUND:"Com som",ZOOM_IN:"Aumentar zoom",ZOOM_OUT:"Diminuir zoom",REPLACE_SCREEN:"Trocar tela"},KR={CLOSE:"Fechar",SEE_MORE:"Ver mais",PRO_FEATURE:"Esta funcionalidade \xe9 parte do OpenVidu PRO tier",PAID_FEATURE:"Este recurso faz parte do servi\xe7o comercial OpenVidu. Entre em contato conosco atrav\xe9s de commercial@openvidu.io para obter mais informa\xe7\xf5es.",CHAT:{TITLE:"Chat",YOU:"Voc\xea",SUBTITLE:"As mensagens ser\xe3o removidas no final da sess\xe3o",PLACEHOLDER:"Enviar uma mensagem...",SEND:"Enviar"},PARTICIPANTS:{TITLE:"Participantes",CAMERA:"C\xc2MERA",SCREEN:"TELA"},SETTINGS:{TITLE:"Configura\xe7\xf5es",GENERAL:"Em geral",VIDEO:"V\xeddeo",AUDIO:"\xc1udio",LANGUAGE:"Linguagem",CAPTIONS:"Legendas",CAPTIONS_LANG_TEXT:"Selecione o idioma que os participantes da sess\xe3o utilizar\xe3o. Os legendas aparecer\xe3o nesse idioma."},BACKGROUND:{TITLE:"Efeitos de fundo",BLURRED_SECTION:"Sem efeitos e fundo desfocado",NO_EFFECTS:"Sem efeito de fundo",BLURRED_EFFECT:"Fundo desfocado",IMAGES_SECTION:"Imagens de fundo"},RECORDING:{TITLE:"Grava\xe7\xe3o",SUBTITLE:"Grave a sua reuni\xe3o para a posteridade",CONTENT_TITLE:"Grave a sua videochamada",CONTENT_SUBTITLE:"Quando a grava\xe7\xe3o tiver terminado, poder\xe1 descarreg\xe1-la com facilidade",STARTING:"Come\xe7ar a grava\xe7\xe3o",STOPPING:"Parando a grava\xe7\xe3o",PLAY:"Toque",DELETE:"Excluir",CANCEL:"Cancelar",DELETE_QUESTION:"Tem certeza de que deseja excluir a grava\xe7\xe3o?",DOWNLOAD:"Download",RECORDINGS:"GRAVA\xc7\xd5ES",NO_MODERATOR:"S\xf3 o MODERADOR pode iniciar a grava\xe7\xe3o"},STREAMING:{TITLE:"Streaming",SUBTITLE:"Transmita sua reuni\xe3o para sua audi\xeancia",CONTENT_SUBTITLE:"O OpenVidu precisa do URL da plataforma de streaming.",START:"Iniciar streaming",STOP:"Finalizar streaming",URL:"Insira seu URL de streaming",CANCEL:"Cancelar",REQUIRED_URL:"O URL de streaming \xe9 obrigat\xf3rio",NO_MODERATOR:"Apenas o MODERADOR pode iniciar o streaming"}},ZR={SESSION:"Houve um erro de liga\xe7\xe3o \xe0 sess\xe3o",CONNECTION:"Liga\xe7\xe3o perdida",RECONNECT:"A tentar restabelecer a liga\xe7\xe3o \xe0 sess\xe3o...",TOGGLE_CAMERA:"Houve um erro ao alternar a c\xe2mara",TOGGLE_MICROPHONE:"Houve um erro ao alternar microhpone",SCREEN_SHARING:"ecr\xe3_partilha de erros",SCREEN_SUPPORT:"O seu browser n\xe3o suporta a partilha de ecr\xe3s",MEDIA_ACCESS:"N\xe3o foi permitido o acesso a dispositivos de media",DEVICE_NOT_FOUND:"Nenhum dispositivo de v\xeddeo ou \xe1udio foi encontrado. Por favor, ligue pelo menos um",SST_CONNECTION:"Conex\xe3o perdida. Reconectando ao servi\xe7o de texto de voz..."},Bie=Object.freeze({__proto__:null,ADMIN:WR,PREJOIN:$R,TOOLBAR:YR,STREAM:QR,PANEL:KR,ERRORS:ZR,default:{ADMIN:WR,PREJOIN:$R,TOOLBAR:YR,STREAM:QR,PANEL:KR,ERRORS:ZR}}),ri=(()=>{return(t=ri||(ri={})).USER_NICKNAME="openviduCallNickname",t.VIDEO_DEVICE="openviduCallVideoDevice",t.AUDIO_DEVICE="openviduCallAudioDevice",t.AUDIO_MUTED="openviduCallAudioMuted",t.VIDEO_MUTED="openviduCallVideoMuted",t.LANG="openviduCallLang",t.CAPTION_LANG="openviduCallCaptionLang",t.BACKGROUND="openviduCallBackground",ri;var t})();let Mt=(()=>{class t{constructor(e){this.minimal=new pt(!1),this.participantName=new pt(""),this.prejoin=new pt(!0),this.videoMuted=new pt(!1),this.audioMuted=new pt(!1),this.screenshareButton=new pt(!0),this.fullscreenButton=new pt(!0),this.captionsButton=new pt(!0),this.toolbarSettingsButton=new pt(!0),this.leaveButton=new pt(!0),this.participantsPanelButton=new pt(!0),this.chatPanelButton=new pt(!0),this.activitiesPanelButton=new pt(!0),this.displaySessionName=new pt(!0),this.displayLogo=new pt(!0),this.displayParticipantName=new pt(!0),this.displayAudioDetection=new pt(!0),this.streamSettingsButton=new pt(!0),this.participantItemMuteButton=new pt(!0),this.backgroundEffectsButton=new pt(!0),this.recordingsList=new pt([]),this.recordingButton=new pt(!0),this.broadcastingButton=new pt(!0),this.recordingActivity=new pt(!0),this.broadcastingActivity=new pt(!0),this.recordingError=new pt(null),this.broadcastingError=new pt(void 0),this.adminRecordingsList=new pt([]),this.adminLoginError=new pt(null),this.configuration=e,console.log(this.configuration),this.isProduction()&&console.log("OpenVidu Angular Production Mode"),this.minimalObs=this.minimal.asObservable(),this.participantNameObs=this.participantName.asObservable(),this.prejoinObs=this.prejoin.asObservable(),this.videoMutedObs=this.videoMuted.asObservable(),this.audioMutedObs=this.audioMuted.asObservable(),this.screenshareButtonObs=this.screenshareButton.asObservable(),this.fullscreenButtonObs=this.fullscreenButton.asObservable(),this.backgroundEffectsButtonObs=this.backgroundEffectsButton.asObservable(),this.leaveButtonObs=this.leaveButton.asObservable(),this.participantsPanelButtonObs=this.participantsPanelButton.asObservable(),this.chatPanelButtonObs=this.chatPanelButton.asObservable(),this.activitiesPanelButtonObs=this.activitiesPanelButton.asObservable(),this.displaySessionNameObs=this.displaySessionName.asObservable(),this.displayLogoObs=this.displayLogo.asObservable(),this.recordingButtonObs=this.recordingButton.asObservable(),this.broadcastingButtonObs=this.broadcastingButton.asObservable(),this.toolbarSettingsButtonObs=this.toolbarSettingsButton.asObservable(),this.captionsButtonObs=this.captionsButton.asObservable(),this.displayParticipantNameObs=this.displayParticipantName.asObservable(),this.displayAudioDetectionObs=this.displayAudioDetection.asObservable(),this.streamSettingsButtonObs=this.streamSettingsButton.asObservable(),this.participantItemMuteButtonObs=this.participantItemMuteButton.asObservable(),this.recordingActivityObs=this.recordingActivity.asObservable(),this.recordingsListObs=this.recordingsList.asObservable(),this.recordingErrorObs=this.recordingError.asObservable(),this.broadcastingActivityObs=this.broadcastingActivity.asObservable(),this.broadcastingErrorObs=this.broadcastingError.asObservable(),this.adminRecordingsListObs=this.adminRecordingsList.asObservable(),this.adminLoginErrorObs=this.adminLoginError.asObservable()}getConfig(){return this.configuration}isProduction(){var e;return(null===(e=this.configuration)||void 0===e?void 0:e.production)||!1}hasParticipantFactory(){return"function"==typeof this.getConfig().participantFactory}getParticipantFactory(){return this.getConfig().participantFactory}isRecordingEnabled(){return this.recordingButton.getValue()&&this.recordingActivity.getValue()}isBroadcastingEnabled(){return this.broadcastingButton.getValue()&&this.broadcastingActivity.getValue()}}return t.\u0275fac=function(e){return new(e||t)(oe("OPENVIDU_ANGULAR_CONFIG"))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),sr=(()=>{class t{constructor(e){this.openviduAngularConfigSrv=e,this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]]}getLoggerFns(e){return this.log=window.console,this.LOG_FNS=[this.log.log,this.log.warn,this.log.error],this.LOG_FNS.map((o,r)=>o.bind(this.log,this.MSG_PREFIXES[r][0]+e+this.MSG_PREFIXES[r][1]))}get(e){const i=this.openviduAngularConfigSrv.isProduction(),o=this;return{d:function(...r){i||o.getLoggerFns(e)[0].apply(this.log,arguments)},w:function(...r){o.getLoggerFns(e)[1].apply(this.log,arguments)},e:function(...r){o.getLoggerFns(e)[2].apply(this.log,arguments)}}}}return t.\u0275fac=function(e){return new(e||t)(oe(Mt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jo=(()=>{class t{constructor(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}getNickname(){return this.get(ri.USER_NICKNAME)}setNickname(e){this.set(ri.USER_NICKNAME,e)}getVideoDevice(){return this.get(ri.VIDEO_DEVICE)}setVideoDevice(e){this.set(ri.VIDEO_DEVICE,e)}getAudioDevice(){return this.get(ri.AUDIO_DEVICE)}setAudioDevice(e){this.set(ri.AUDIO_DEVICE,e)}isVideoMuted(){return"true"===this.get(ri.VIDEO_MUTED)}setVideoMuted(e){this.set(ri.VIDEO_MUTED,`${e}`)}isAudioMuted(){return"true"===this.get(ri.AUDIO_MUTED)}setAudioMuted(e){this.set(ri.AUDIO_MUTED,`${e}`)}setLang(e){this.set(ri.LANG,e)}getLang(){return this.get(ri.LANG)}setCaptionLang(e){this.set(ri.CAPTION_LANG,e)}getCaptionsLang(){return this.get(ri.CAPTION_LANG)}setBackground(e){this.set(ri.BACKGROUND,e)}getBackground(){return this.get(ri.BACKGROUND)}removeBackground(){this.remove(ri.BACKGROUND)}set(e,i){const o=JSON.stringify({item:i});this.storage.setItem(e,o)}get(e){const i=this.storage.getItem(e);return i?JSON.parse(i).item:null}remove(e){this.storage.removeItem(e)}clear(){this.log.d("Clearing localStorage"),this.storage.clear()}}return t.\u0275fac=function(e){return new(e||t)(oe(sr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ms=(()=>{class t{constructor(e){this.storageService=e,this.availableLanguages={en:Aie,es:Die,de:Sie,fr:Mie,cn:yie,hi:Oie,it:Rie,ja:kie,nl:Lie,pt:Bie},this.langTitles=[{name:"English",ISO:"en"},{name:"Espa\xf1ol",ISO:"es"},{name:"Deutsch",ISO:"de"},{name:"Fran\xe7ais",ISO:"fr"},{name:"\u4e2d\u56fd",ISO:"cn"},{name:"\u0939\u093f\u0928\u094d\u0926\u0940",ISO:"hi"},{name:"Italiano",ISO:"it"},{name:"\u3084\u307e\u3068",ISO:"ja"},{name:"Dutch",ISO:"nl"},{name:"Portugu\xeas",ISO:"pt"}];const i=this.storageService.getLang()||"en";this.langSelected=this.langTitles.find(o=>o.ISO===i)||this.langTitles[0],this.currentLang=this.availableLanguages[this.langSelected.ISO]}setLanguage(e){this.langTitles.some(i=>i.ISO===e)&&(this.currentLang=this.availableLanguages[e],this.langSelected=this.langTitles.find(i=>i.ISO===e))}getLangSelected(){return this.langSelected}getLanguagesInfo(){return this.langTitles}translate(e){let i=this.currentLang;return e.split(".").forEach(o=>{try{i=i[o]}catch(r){return""}}),i}}return t.\u0275fac=function(e){return new(e||t)(oe(jo))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Un=(()=>{class t{constructor(e){this.translateService=e}transform(e){const i=this.translateService.translate(e);return null!=i&&i.includes("OpenVidu PRO")?i.replace("OpenVidu PRO",'<a href="https://docs.openvidu.io/en/stable/openvidu-pro/" target="_blank">OpenVidu PRO</a>'):i}}return t.\u0275fac=function(e){return new(e||t)(h(Ms,16))},t.\u0275pipe=zn({name:"translate",type:t,pure:!1}),t})(),XR=(()=>{class t{constructor(e){this.dialogRef=e}close(e=!1){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Rl))},t.\u0275cmp=et({type:t,selectors:[["app-delete-dialog"]],decls:10,vars:9,consts:[["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","","id","delete-recording-confirm-btn",3,"click"]],template:function(e,i){1&e&&(O(0,"div",0),se(1),ye(2,"translate"),V(),O(3,"div",1)(4,"button",2),we("click",function(){return i.close()}),se(5),ye(6,"translate"),V(),O(7,"button",3),we("click",function(){return i.close(!0)}),se(8),ye(9,"translate"),V()()),2&e&&(A(1),Ne(Se(2,3,"PANEL.RECORDING.DELETE_QUESTION")),A(4),Ne(Se(6,5,"PANEL.RECORDING.CANCEL")),A(3),Ne(Se(9,7,"PANEL.RECORDING.DELETE")))},dependencies:[Mn,bf,yf,Un]}),t})(),JR=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(h(Rl),h(_f))},t.\u0275cmp=et({type:t,selectors:[["ov-dialog-template"]],decls:5,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(e,i){1&e&&(O(0,"h1",0),se(1),V(),O(2,"div",1),se(3),V(),X(4,vX,4,3,"div",2)),2&e&&(A(1),Ne(i.data.title),A(2),Ne(i.data.description),A(1),U("ngIf",i.data.showActionButtons))},dependencies:[Zt,Mn,bM,bf,yf,Un],encapsulation:2}),t})(),eP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i}close(){this.dialogRef.close()}seeMore(){var e;null===(e=window.open("https://docs.openvidu.io/en/stable/openvidu-pro/","_blank"))||void 0===e||e.focus()}}return t.\u0275fac=function(e){return new(e||t)(h(Rl),h(_f))},t.\u0275cmp=et({type:t,selectors:[["ov-pro-feature-template"]],decls:5,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(e,i){1&e&&(O(0,"h1",0),se(1),V(),O(2,"div",1),se(3),V(),X(4,_X,10,6,"div",2)),2&e&&(A(1),Ne(i.data.title),A(2),Ne(i.data.description),A(1),U("ngIf",i.data.showActionButtons))},dependencies:[Zt,Mn,oi,bM,bf,yf,Un],encapsulation:2}),t})(),tP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.src=i.src}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(h(Rl),h(_f))},t.\u0275cmp=et({type:t,selectors:[["app-recording-dialog"]],decls:3,vars:2,consts:[["mat-dialog-content",""],["controls","","autoplay","",3,"src"],["mat-dialog-actions","","align","end",4,"ngIf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(O(0,"div",0),Xe(1,"video",1),V(),X(2,bX,4,3,"div",2)),2&e&&(A(1),U("src",i.src,Ha),A(1),U("ngIf",i.data.showActionButtons))},dependencies:[Zt,Mn,bf,yf,Un],styles:["video[_ngcontent-%COMP%]{max-height:64vh;max-width:100%}"]}),t})(),Sr=(()=>{class t{constructor(e,i){this.snackBar=e,this.dialog=i}launchNotification(e,i){e.config||(e.config={duration:3e3,verticalPosition:"top",horizontalPosition:"end"});const o=this.snackBar.open(e.message,e.buttonActionText,e.config);i&&o.onAction().subscribe(()=>{i()})}openDialog(e,i,o=!0){try{this.closeDialog()}catch(r){}finally{this.dialogRef=this.dialog.open(JR,{minWidth:"250px",data:{title:e,description:i,showActionButtons:o},disableClose:!o}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=void 0})}}openProFeatureDialog(e,i,o=!0){try{this.closeDialog()}catch(r){}finally{this.dialogRef=this.dialog.open(eP,{minWidth:"250px",data:{title:e,description:i,showActionButtons:o},disableClose:!o}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=void 0})}}openDeleteRecordingDialog(e){try{this.closeDialog()}catch(i){}finally{this.dialogRef=this.dialog.open(XR),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(i=>{i&&e()})}}openRecordingPlayerDialog(e,i=!0){try{this.closeDialog()}catch(o){}finally{this.dialogRef=this.dialog.open(tP,{minWidth:"250px",data:{src:e,showActionButtons:i},disableClose:!i})}}closeDialog(){var e;null===(e=this.dialogRef)||void 0===e||e.close(),this.dialogSubscription&&this.dialogSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(oe(E8),oe(R_))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var kn=(()=>{return(t=kn||(kn={})).STARTING="starting",t.STARTED="started",t.STOPPING="stopping",t.STOPPED="stopped",t.FAILED="failed",t.READY="ready",kn;var t})();let td=(()=>{class t{constructor(e){this.actionService=e,this.currentRecording={status:kn.STOPPED},this.recordingStatus=new pt(void 0),this.baseUrl="/"+(window.location.pathname.split("/")[1]?window.location.pathname.split("/")[1]+"/":""),this.recordingStatusObs=this.recordingStatus.asObservable()}updateStatus(e){this.currentRecording={status:e},this.recordingStatus.next({info:this.currentRecording})}startRecording(e){this.currentRecording={status:kn.STARTED,id:e.id,name:e.name,reason:e.reason},this.startRecordingTime(),this.recordingStatus.next({info:this.currentRecording,time:this.recordingTime})}stopRecording(e){this.currentRecording.status=kn.STOPPED,this.currentRecording.reason=e.reason,this.recordingStatus.next({info:this.currentRecording,time:void 0}),this.stopRecordingTime()}playRecording(e){const i=e.id;this.actionService.openRecordingPlayerDialog(`${this.baseUrl}recordings/${i}/${i}.mp4`)}downloadRecording(e){const i=e.id,r=document.createElement("a");r.href=`/recordings/${i}/${i}.mp4`,r.download=`${i}.mp4`,r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{r.remove()},100)}startRecordingTime(){this.recordingTime=new Date,this.recordingTime.setHours(0,0,0,0),this.recordingTimeInterval=setInterval(()=>{this.recordingTime&&(this.recordingTime.setSeconds(this.recordingTime.getSeconds()+1),this.recordingTime=new Date(this.recordingTime.getTime()),this.recordingStatus.next({info:this.currentRecording,time:this.recordingTime}))},1e3)}stopRecordingTime(){clearInterval(this.recordingTimeInterval),this.recordingTime=void 0}}return t.\u0275fac=function(e){return new(e||t)(oe(Sr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nP=(()=>{class t{transform(e){if(e<60)return Math.floor(e)+"s";if(e<3600)return Math.floor(e/60)+"m "+Math.floor(e%60)+"s";{const i=Math.floor(e/3600);return i+"h "+Math.floor((e-3600*i)/60)+"m"}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=zn({name:"duration",type:t,pure:!0}),t})(),zie=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovToolbar",""]]}),t})(),iP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovToolbarAdditionalButtons",""]]}),t})(),oP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovToolbarAdditionalPanelButtons",""]]}),t})(),qie=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovPanel",""]]}),t})(),rP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovAdditionalPanels",""]]}),t})(),sP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovChatPanel",""]]}),t})(),aP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovActivitiesPanel",""]]}),t})(),lP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovParticipantsPanel",""]]}),t})(),cP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovParticipantPanelItem",""]]}),t})(),uP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovParticipantPanelItemElements",""]]}),t})(),Wie=(()=>{class t{constructor(e,i){this.template=e,this.container=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovLayout",""]]}),t})(),dP=(()=>{class t{constructor(e,i){this.template=e,this.container=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovStream",""]]}),t})();var Uo=(()=>{return(t=Uo||(Uo={})).ROOT_ELEMENT="OT_root",t.BIG_ELEMENT="OV_big",t.SMALL_ELEMENT="OV_small",t.IGNORED_ELEMENT="OV_ignored",t.SIDENAV_CONTAINER="sidenav-container",t.NO_SIZE_ELEMENT="no-size",t.CLASS_NAME="layout",Uo;var t})(),Kl=(()=>{return(t=Kl||(Kl={})).OVER="over",t.SIDE="side",Kl;var t})(),Zl=(()=>{return(t=Zl||(Zl={})).START="start",t.CENTER="center",t.END="end",Zl;var t})();class $ie{updateLayout(n,e){setTimeout(()=>{if(this.layoutContainer=n,this.opts=e,"none"===this.css(this.layoutContainer,"display"))return;let i=this.layoutContainer.id;i||(i="OT_"+this.cheapUUID(),this.layoutContainer.id=i),e.containerHeight=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"border-top")-this.getCSSNumber(this.layoutContainer,"border-bottom"),e.containerWidth=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"border-left")-this.getCSSNumber(this.layoutContainer,"border-right");const o=Array.prototype.filter.call(this.layoutContainer.querySelectorAll(`#${i}>*:not(.${Uo.IGNORED_ELEMENT})`),()=>this.filterDisplayNone),r=o.map(a=>{const l=this.getChildDims(a);return l.big=a.classList.contains(this.opts.bigClass),l});this.getLayout(e,r).boxes.forEach((a,l)=>{const c=o[l];this.css(c,"position","absolute");const u=a.width- -this.getCSSNumber(c,"margin-left")-this.getCSSNumber(c,"margin-right")-("border-box"!==this.css(c,"box-sizing")?this.getCSSNumber(c,"padding-left")+this.getCSSNumber(c,"padding-right")+this.getCSSNumber(c,"border-left")+this.getCSSNumber(c,"border-right"):0),d=a.height- -this.getCSSNumber(c,"margin-top")-this.getCSSNumber(c,"margin-bottom")-("border-box"!==this.css(c,"box-sizing")?this.getCSSNumber(c,"padding-top")+this.getCSSNumber(c,"padding-bottom")+this.getCSSNumber(c,"border-top")+this.getCSSNumber(c,"border-bottom"):0);this.positionElement(c,a.left,a.top,u,d,this.opts.animate)})},50)}initLayoutContainer(n,e){this.opts=e,this.layoutContainer=n,this.updateLayout(n,e)}getLayoutContainer(){return this.layoutContainer}css(n,e,i){if(i)return n.style[e]=i,NaN;if("object"==typeof e)return Object.keys(e).forEach(s=>{this.css(n,s,e[s])}),NaN;var r=window.getComputedStyle(n).getPropertyValue(e);return""===r&&(r=n.style[e]),r}height(n){return n.offsetHeight>0?`${n.offsetHeight}px`:this.css(n,"height")}width(n){return n.offsetWidth>0?`${n.offsetWidth}px`:this.css(n,"width")}defaults(n,e){var i=e;return Object.keys(e).forEach(o=>{n.hasOwnProperty(o)&&(i[o]=n[o])}),i}fixAspectRatio(n,e){const i=n.querySelector(`.${Uo.ROOT_ELEMENT}`);if(i){const o=i.style.width;i.style.width=`${e}px`,i.style.width=o||""}}positionElement(n,e,i,o,r,s){const a={left:`${e}px`,top:`${i}px`,width:`${o}px`,height:`${r}px`};this.fixAspectRatio(n,o),s?setTimeout(()=>{n.style.left=a.left,n.style.top=a.top,n.style.width=a.width,n.style.height=a.height,this.fixAspectRatio(n,o)},10):(this.css(n,a),n.classList.contains(Uo.CLASS_NAME)||n.classList.add(Uo.CLASS_NAME)),this.fixAspectRatio(n,o)}getChildDims(n){if(n){if(n.videoHeight&&n.videoWidth)return{height:n.videoHeight,width:n.videoWidth};const e=n.querySelector("video");if(e&&e.videoHeight&&e.videoWidth)return{height:e.videoHeight,width:e.videoWidth}}return{height:480,width:640}}getCSSNumber(n,e){const i=this.css(n,e);return i?parseInt(i.toString(),10):0}cheapUUID(){return(1e8*Math.random()).toFixed(0)}getHeight(n){const e=this.height(n);return e?parseInt(e.toString(),10):0}getWidth(n){const e=this.width(n);return e?parseInt(e.toString(),10):0}filterDisplayNone(n){return"none"!==this.css(n,"display")}getBestDimensions(n,e,i,o,r,s,a){let l,c,u,d,f,w,z,ne;for(let fe=1;fe<=r;fe++){const he=fe,_e=Math.ceil(r/he);z=Math.floor(o/_e),w=Math.floor(i/he),ne=z/w,ne>e?(ne=e,z=w*ne):ne<n&&(ne=n,w=z/ne),w=Math.min(s,w),z=Math.min(a,z);const pe=w*z*r;(void 0===l||pe>=l)&&(pe===l&&r%(he*_e)>r%(u*c)||(l=pe,d=z,f=w,c=he,u=_e))}return{maxArea:l,targetCols:c,targetRows:u,targetHeight:d,targetWidth:f,ratio:d/f}}getVideoRatio(n){return n.height/n.width}getLayout(n,e){const{maxRatio:i=1.5,minRatio:o=9/16,fixedRatio:r=!1,bigPercentage:s=.8,minBigPercentage:a=0,bigFixedRatio:l=!1,bigMaxRatio:c=1.5,bigMinRatio:u=9/16,bigFirst:d=!0,containerWidth:f=640,containerHeight:w=480,alignItems:z="center",bigAlignItems:ne="center",smallAlignItems:fe="center",maxWidth:he=1/0,maxHeight:_e=1/0,smallMaxWidth:pe=1/0,smallMaxHeight:ve=1/0,bigMaxWidth:He=1/0,bigMaxHeight:ht=1/0,scaleLastRow:$t=!0,bigScaleLastRow:xt=!0}=n,Sn=w/f;let Rt=0,hn=0,_i=0,Hn=0;const Di=[];let yo=[],Ke=[],Ge={big:null,small:null};const ot=e.filter(Bt=>!Bt.big),it=e.filter((Bt,Ct)=>!!Bt.big&&(Di.push(Ct),!0));if(it.length>0&&ot.length>0){let Bt,Ct,Ve=d;if(Sn>this.getVideoRatio(it[0])){if(Bt=f,Ct=Math.floor(w*s),a>0){let Co;if(l){const Qi=it[0].height/it[0].width;Co=this.getBestDimensions(Qi,Qi,Bt,Ct,it.length,He,ht)}else Co=this.getBestDimensions(u,c,Bt,Ct,it.length,He,ht);Ct=Math.max(w*a,Math.min(Ct,Co.targetHeight*Co.targetRows));const On=this.getBestDimensions(o,i,f,w-Ct,ot.length,pe,ve);Ct=Math.max(Ct,w-On.targetRows*On.targetHeight)}hn=Ct,_i=w-hn,"column"===d?Ve=!1:"row"===d&&(Ve=!0)}else{if(Ct=w,Bt=Math.floor(f*s),a>0){let Co;if(l){const Qi=it[0].height/it[0].width;Co=this.getBestDimensions(Qi,Qi,Bt,Ct,it.length,He,ht)}else Co=this.getBestDimensions(u,c,Bt,Ct,it.length,He,ht);Bt=Math.max(f*a,Math.min(Bt,Co.targetWidth*Co.targetCols));const On=this.getBestDimensions(o,i,f-Bt,w,ot.length,pe,ve);Bt=Math.max(Bt,f-On.targetCols*On.targetWidth)}Rt=Bt,Hn=f-Rt,"column"===d?Ve=!0:"row"===d&&(Ve=!1)}Ve?(Ge.big={top:0,left:0,width:Bt,height:Ct},Ge.small={top:hn,left:Rt,width:f-Rt,height:w-hn}):(Ge.big={left:Hn,top:_i,width:Bt,height:Ct},Ge.small={top:0,left:0,width:f-Rt,height:w-hn})}else it.length>0&&0===ot.length?Ge.big={top:0,left:0,width:f,height:w}:Ge.small={top:hn,left:Rt,width:f-Rt,height:w-hn};Ge.big&&(yo=this.getLayoutAux({containerWidth:Ge.big.width,containerHeight:Ge.big.height,offsetLeft:Ge.big.left,offsetTop:Ge.big.top,fixedRatio:l,minRatio:u,maxRatio:c,alignItems:ne,maxWidth:He,maxHeight:ht,scaleLastRow:xt},it)),Ge.small&&(Ke=this.getLayoutAux({containerWidth:Ge.small.width,containerHeight:Ge.small.height,offsetLeft:Ge.small.left,offsetTop:Ge.small.top,fixedRatio:r,minRatio:o,maxRatio:i,alignItems:Ge.big?fe:z,maxWidth:Ge.big?pe:he,maxHeight:Ge.big?ve:_e,scaleLastRow:$t},ot));const Ut=[];let En=0,si=0;return e.forEach((Bt,Ct)=>{Di.indexOf(Ct)>-1?(Ut[Ct]=yo[En],En+=1):(Ut[Ct]=Ke[si],si+=1)}),{boxes:Ut,areas:Ge}}getLayoutAux(n,e){const{maxRatio:i=1.5,minRatio:o=9/16,fixedRatio:r=!1,containerWidth:s=640,containerHeight:a=480,offsetLeft:l=0,offsetTop:c=0,alignItems:u="center",maxWidth:d=1/0,maxHeight:f=1/0,scaleLastRow:w=!0}=n,z=e.map(xt=>xt.height/xt.width),ne=z.length;let fe;if(r){const xt=z.length>0?z[0]:null;fe=this.getBestDimensions(xt,xt,s,a,ne,d,f)}else fe=this.getBestDimensions(o,i,s,a,ne,d,f);let he=0,_e=0;const pe=[];let ve;const He=[];for(let xt=0;xt<z.length;xt++){xt%fe.targetCols==0&&(ve={ratios:[],width:0,height:0},pe.push(ve));const Sn=z[xt];ve.ratios.push(Sn);let Rt=fe.targetWidth;const hn=fe.targetHeight;r&&(Rt=hn/Sn),ve.width+=Rt,ve.height=hn}let ht=0,$t=0;for(let xt=0;xt<pe.length;xt++)ve=pe[xt],ve.width>s?(ve.height=Math.floor(ve.height*(s/ve.width)),ve.width=s):ve.width<s&&ve.height<f&&($t+=1),ht+=ve.height;if(w&&ht<a&&$t>0){let xt=a-ht;ht=0;for(let Sn=0;Sn<pe.length;Sn++){if(ve=pe[Sn],ve.width<s){let Rt=xt/$t;Rt/ve.height>(s-ve.width)/ve.width&&(Rt=Math.floor((s-ve.width)/ve.width*ve.height)),ve.width+=Math.floor(Rt/ve.height*ve.width),ve.height+=Rt,xt-=Rt,$t-=1}ht+=ve.height}}switch(u){case"start":_e=0;break;case"end":_e=a-ht;break;default:_e=(a-ht)/2}for(let xt=0;xt<pe.length;xt++){let Sn,Rt;switch(ve=pe[xt],u){case"start":Sn=0;break;case"end":Sn=s-ve.width;break;default:Sn=(s-ve.width)/2}he=Sn;for(let hn=0;hn<ve.ratios.length;hn++){const _i=ve.ratios[hn];let Hn=fe.targetWidth;Rt=ve.height,r?Hn=Math.floor(Rt/_i):Rt/Hn!=fe.targetHeight/fe.targetWidth&&(Hn=Math.floor(fe.targetWidth/fe.targetHeight*Rt)),He.push({left:he+l,top:_e+c,width:Hn,height:Rt}),he+=Hn}_e+=Rt}return He}}let ba=(()=>{class t{constructor(){this.layoutContainer=null,this.layoutWidth=new pt(0),this.captionsToggling=new pt(!1),this.layoutWidthObs=this.layoutWidth.asObservable(),this.captionsTogglingObs=this.captionsToggling.asObservable()}initialize(e){this.layoutContainer=e,this.openviduLayout=new $ie,this.openviduLayoutOptions=this.getOptions(),this.layoutContainer&&this.openviduLayout.initLayoutContainer(this.layoutContainer,this.openviduLayoutOptions),this.sendLayoutWidthEvent()}getOptions(){return{maxRatio:1.5,minRatio:.5625,fixedRatio:!1,bigClass:Uo.BIG_ELEMENT,smallClass:Uo.SMALL_ELEMENT,ignoredClass:Uo.IGNORED_ELEMENT,bigPercentage:.8,minBigPercentage:0,bigFixedRatio:!1,bigMaxRatio:.5625,bigMinRatio:.5625,bigFirst:!0,animate:!0,alignItems:Zl.CENTER,bigAlignItems:Zl.CENTER,smallAlignItems:Zl.CENTER,maxWidth:1/0,maxHeight:1/0,smallMaxWidth:1/0,smallMaxHeight:1/0,bigMaxWidth:1/0,bigMaxHeight:1/0,scaleLastRow:!0,bigScaleLastRow:!0}}toggleCaptions(){this.captionsToggling.next(!this.captionsToggling.getValue())}update(e=null){const i=()=>{this.openviduLayout&&(this.openviduLayout.updateLayout(this.layoutContainer,this.openviduLayoutOptions),this.sendLayoutWidthEvent())};"number"==typeof e&&e>=0?setTimeout(()=>i(),e):i()}getLayout(){return this.openviduLayout}clear(){this.openviduLayout=null}sendLayoutWidthEvent(){var e;const i=this.getHTMLElementByClassName(null===(e=this.openviduLayout)||void 0===e?void 0:e.getLayoutContainer(),Uo.SIDENAV_CONTAINER);i&&i.clientWidth&&this.layoutWidth.next(i.clientWidth)}getHTMLElementByClassName(e,i){for(;e&&e!==document.body;){if(e.className.includes(i))return e;e=e.parentElement}return null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var en=(()=>{return(t=en||(en={})).CAMERA="CAMERA",t.SCREEN="SCREEN",t.CUSTOM="CUSTOM",en;var t})(),nd=(()=>{return(t=nd||(nd={})).WINDOW="window",t.SCREEN="screen",nd;var t})(),id=(()=>{return(t=id||(id={})).MODERATOR="MODERATOR",t.PUBLISHER="PUBLISHER",id;var t})();class Qie extends class Yie{constructor(n,e){this.streams=new Map,this.id=n.id?n.id:Math.random().toString(32).replace(".","_"),this.local=n.local,this.nickname=n.nickname,this.colorProfile=n.colorProfile?n.colorProfile:`hsl(${360*Math.random()}, 100%, 80%)`,this.isMutedForcibly="boolean"==typeof n.isMutedForcibly&&n.isMutedForcibly;let i={connected:!e||e.connected,type:e?e.type:en.CAMERA,streamManager:e?e.streamManager:null,videoEnlarged:!!e&&e.videoEnlarged,connectionId:e?e.connectionId:null,participant:this};this.streams.set(i.type,i)}addConnection(n){n.participant=this,this.streams.set(n.type,n)}hasAudioActive(){const n=this.getCameraConnection(),e=this.getScreenConnection();return n.connected?this.isCameraAudioActive():!!e.connected&&this.isScreenAudioActive()}isCameraAudioActive(){var n,e;const i=this.getCameraConnection();return!(null==i||!i.connected)&&(null===(e=null===(n=i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.audioActive)}isCameraVideoActive(){var n,e;const i=this.getCameraConnection();return(null==i?void 0:i.connected)&&(null===(e=null===(n=null==i?void 0:i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.videoActive)}isScreenAudioActive(){var n,e;const i=this.getScreenConnection();return!(null==i||!i.connected)&&(null===(e=null===(n=null==i?void 0:i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.audioActive)}hasConnectionType(n){return this.streams.has(n)}getCameraConnection(){return this.streams.get(en.CAMERA)}getScreenConnection(){return this.streams.get(en.SCREEN)}getConnectionTypesActive(){let n=[];return this.isCameraActive()&&n.push(en.CAMERA),this.isScreenActive()&&n.push(en.SCREEN),n}setCameraConnectionId(n){this.getCameraConnection().connectionId=n}setScreenConnectionId(n){this.getScreenConnection().connectionId=n}removeConnection(n){const e=this.getConnectionById(n);return this.streams.delete(e.type),e}hasConnectionId(n){return Array.from(this.streams.values()).some(e=>e.connectionId===n)}getConnectionById(n){return Array.from(this.streams.values()).find(e=>e.connectionId===n)}getAvailableConnections(){return Array.from(this.streams.values()).filter(n=>n.connected)}isLocal(){return this.local}setNickname(n){this.nickname=n}getNickname(){return this.nickname}setCameraPublisher(n){const e=this.getCameraConnection();e&&(e.streamManager=n)}setScreenPublisher(n){const e=this.getScreenConnection();e&&(e.streamManager=n)}setPublisher(n,e){const i=this.streams.get(n);i&&(i.streamManager=e)}isCameraActive(){var n;return null===(n=this.getCameraConnection())||void 0===n?void 0:n.connected}enableCamera(){const n=this.getCameraConnection();n&&(n.connected=!0)}disableCamera(){const n=this.getCameraConnection();n&&(n.connected=!1)}isScreenActive(){var n;return null===(n=this.getScreenConnection())||void 0===n?void 0:n.connected}enableScreen(){const n=this.getScreenConnection();n&&(n.connected=!0)}disableScreen(){const n=this.getScreenConnection();n&&(n.connected=!1)}setAllVideoEnlarged(n){this.streams.forEach(e=>e.videoEnlarged=n)}setCameraEnlarged(n){this.streams.get(en.CAMERA).videoEnlarged=n}setScreenEnlarged(n){this.streams.get(en.SCREEN).videoEnlarged=n}toggleVideoEnlarged(n){this.streams.forEach(e=>{e.connectionId===n&&(e.videoEnlarged=!e.videoEnlarged)})}someHasVideoEnlarged(){return Array.from(this.streams.values()).some(n=>n.videoEnlarged)}setMutedForcibly(n){this.isMutedForcibly=n}getRole(){var n,e,i,o;return null===(o=null===(i=null===(e=null===(n=this.streams.get(en.CAMERA))||void 0===n?void 0:n.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.role}}{}let vi=(()=>{class t{constructor(e,i){this.openviduAngularConfigSrv=e,this.loggerSrv=i,this._localParticipant=new pt(null),this._remoteParticipants=new pt([]),this.remoteParticipants=[],this.log=this.loggerSrv.get("ParticipantService"),this.localParticipantObs=this._localParticipant.asObservable(),this.remoteParticipantsObs=this._remoteParticipants.asObservable()}initLocalParticipant(e){this.localParticipant=this.newParticipant(e),this.updateLocalParticipant()}getLocalParticipant(){return this.localParticipant}getMyCameraPublisher(){return this.localParticipant.getCameraConnection().streamManager}setMyCameraPublisher(e){this.localParticipant.setCameraPublisher(e)}setMyCameraConnectionId(e){this.localParticipant.setCameraConnectionId(e)}getMyScreenPublisher(){var e;return null===(e=this.localParticipant.getScreenConnection())||void 0===e?void 0:e.streamManager}setMyScreenPublisher(e){this.localParticipant.setScreenPublisher(e)}setMyScreenConnectionId(e){this.localParticipant.setScreenConnectionId(e)}enableWebcamStream(){this.localParticipant.enableCamera(),this.updateLocalParticipant()}disableWebcamStream(){this.localParticipant.disableCamera(),this.updateLocalParticipant()}activeMyScreenShare(e){this.log.d("Enabling screen publisher");const i={type:en.SCREEN,videoEnlarged:!0,streamManager:e,connected:!0,connectionId:""};this.resetRemoteStreamsToNormalSize(),this.resetMyStreamsToNormalSize(),this.localParticipant.addConnection(i),this.updateLocalParticipant()}disableScreenStream(){this.localParticipant.disableScreen(),this.updateLocalParticipant()}setMyNickname(e){this.localParticipant.setNickname(e),this.updateLocalParticipant()}getMyNickname(){return this.localParticipant.nickname}getMyRole(){return this.localParticipant.getRole()}amIModerator(){return this.getMyRole()===id.MODERATOR}toggleMyVideoEnlarged(e){this.localParticipant.toggleVideoEnlarged(e)}resetMyStreamsToNormalSize(){this.localParticipant.someHasVideoEnlarged()&&(this.localParticipant.setAllVideoEnlarged(!1),this.updateLocalParticipant())}clear(){this.disableScreenStream(),this.remoteParticipants=[],this.updateRemoteParticipants(),this.updateLocalParticipant()}isMyCameraActive(){return this.localParticipant.isCameraActive()}isMyVideoActive(){return this.localParticipant.isCameraVideoActive()}isMyAudioActive(){var e;return null===(e=this.localParticipant)||void 0===e?void 0:e.hasAudioActive()}isMyScreenActive(){return this.localParticipant.isScreenActive()}isOnlyMyCameraActive(){return this.isMyCameraActive()&&!this.isMyScreenActive()}isOnlyMyScreenActive(){return this.isMyScreenActive()&&!this.isMyCameraActive()}haveICameraAndScreenActive(){return this.isMyCameraActive()&&this.isMyScreenActive()}hasScreenAudioActive(){return this.localParticipant.isScreenAudioActive()}updateLocalParticipant(){this._localParticipant.next(Object.assign(Object.create(this.localParticipant),this.localParticipant))}addRemoteConnection(e,i,o){const r=this.getTypeConnectionData(i),s={type:r,videoEnlarged:r===en.SCREEN,streamManager:o,connected:!0,connectionId:e},a=this.getParticipantIdFromData(i)||e,l=this.getRemoteParticipantById(a);if(l)this.log.d("Adding connection to existing participant: ",a),l.hasConnectionType(s.type)?(this.log.d("Participant has publisher, updating it"),l.setPublisher(s.type,o)):(this.log.d("Participant has not publisher, adding it"),s.type===en.SCREEN&&(this.resetRemoteStreamsToNormalSize(),this.resetMyStreamsToNormalSize()),l.addConnection(s));else{this.log.w("Creating new participant with id: ",a);const c={nickname:this.getNicknameFromConnectionData(i),local:!1,id:a},u=this.newParticipant(c,s);this.remoteParticipants.push(u)}this.updateRemoteParticipants()}getRemoteParticipants(){return this.remoteParticipants}resetRemoteStreamsToNormalSize(){this.remoteParticipants.forEach(e=>e.setAllVideoEnlarged(!1)),this.updateRemoteParticipants()}removeConnectionByConnectionId(e){let i;if(this.log.w("Deleting connection: ",e),i=this.localParticipant.hasConnectionId(e)?this.localParticipant:this.getRemoteParticipantByConnectionId(e),i){const o=i.removeConnection(e);if(0===i.streams.size&&(this.remoteParticipants=this.remoteParticipants.filter(r=>r!==i)),o.type===en.SCREEN){const r=this.remoteParticipants.filter(s=>s.isScreenActive());r.length>0?r[r.length-1].setScreenEnlarged(!0):this.localParticipant.isScreenActive()&&this.localParticipant.setScreenEnlarged(!0)}this.updateRemoteParticipants()}}getRemoteParticipantByConnectionId(e){return this.remoteParticipants.find(i=>i.hasConnectionId(e))}getRemoteParticipantById(e){return this.remoteParticipants.find(i=>i.id===e)}someoneIsSharingScreen(){return this.remoteParticipants.some(e=>e.someHasVideoEnlarged())}toggleRemoteVideoEnlarged(e){const i=this.getRemoteParticipantByConnectionId(e);null==i||i.toggleVideoEnlarged(e)}getNicknameFromConnectionData(e){try{return JSON.parse(e).clientData}catch(i){return"OpenVidu_User"}}setRemoteNickname(e,i){const o=this.getRemoteParticipantByConnectionId(e);o&&(o.setNickname(i),this.updateRemoteParticipants())}setRemoteMutedForcibly(e,i){const o=this.getRemoteParticipantById(e);o&&(o.setMutedForcibly(i),this.updateRemoteParticipants())}updateRemoteParticipants(){this._remoteParticipants.next([...this.remoteParticipants])}getTypeConnectionData(e){try{return JSON.parse(e).type}catch(i){return en.CAMERA}}getParticipantIdFromData(e){try{return JSON.parse(e).participantId}catch(i){return""}}newParticipant(e,i){return this.openviduAngularConfigSrv.hasParticipantFactory()?this.openviduAngularConfigSrv.getParticipantFactory().apply(this,[e,i]):new Qie(e,i)}}return t.\u0275fac=function(e){return new(e||t)(oe(Mt),oe(sr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var zt=(()=>{return(t=zt||(zt={})).CHAT="chat",t.PARTICIPANTS="participants",t.BACKGROUND_EFFECTS="background-effects",t.ACTIVITIES="activities",t.SETTINGS="settings",zt;var t})(),Xl=(()=>{return(t=Xl||(Xl={})).GENERAL="general",t.AUDIO="audio",t.VIDEO="video",t.CAPTIONS="captions",Xl;var t})();let _o=(()=>{class t{constructor(e){this.loggerSrv=e,this.isExternalOpened=!1,this._panelOpened=new pt({opened:!1}),this.panelMap=new Map,this.log=this.loggerSrv.get("PanelService"),this.panelOpenedObs=this._panelOpened.asObservable(),Object.values(zt).forEach(i=>this.panelMap.set(i,!1))}togglePanel(e,i){let o=!1;this.panelMap.has(e)?(this.log.d(`Toggling ${e} menu`),this.panelMap.forEach((s,a)=>{a===e?(this.panelMap.set(a,!s),o=!s):this.panelMap.set(a,!1)})):(this.log.d("Toggling external panel"),this.panelMap.forEach((s,a)=>this.panelMap.set(a,!1)),this.isExternalOpened=!this.isExternalOpened||this.externalType!==e,this.externalType=this.isExternalOpened?e:"",o=this.isExternalOpened);const r=this._panelOpened.getValue().type;this._panelOpened.next({opened:o,type:e,expand:i,oldType:r})}isPanelOpened(){return Array.from(this.panelMap.values()).some(i=>i)||this.isExternalPanelOpened()}closePanel(){this.panelMap.forEach((e,i)=>this.panelMap.set(i,!1)),this._panelOpened.next({opened:!1})}isChatPanelOpened(){return!!this.panelMap.get(zt.CHAT)}isParticipantsPanelOpened(){return!!this.panelMap.get(zt.PARTICIPANTS)}isActivitiesPanelOpened(){return!!this.panelMap.get(zt.ACTIVITIES)}isSettingsPanelOpened(){return!!this.panelMap.get(zt.SETTINGS)}isBackgroundEffectsPanelOpened(){return!!this.panelMap.get(zt.BACKGROUND_EFFECTS)}isExternalPanelOpened(){return this.isExternalOpened}}return t.\u0275fac=function(e){return new(e||t)(oe(sr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Kr=(()=>{return(t=Kr||(Kr={})).FRONT="FRONT",t.BACK="BACK",Kr;var t})(),od=(()=>{return(t=od||(od={})).AUDIO_INPUT="audioinput",t.VIDEO_INPUT="videoinput",od;var t})(),ya=(()=>{return(t=ya||(ya={})).CE="CE",t.PRO="PRO",t.ENTERPRISE="ENTERPRISE",ya;var t})();let Jl=(()=>{class t{constructor(){}isMobile(){return this.isAndroid()||this.isIos()}isFirefox(){return/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)}isAndroid(){return/\b(\w*Android\w*)\b/.test(navigator.userAgent)&&/\b(\w*Mobile\w*)\b/.test(navigator.userAgent)}isIos(){return this.isIPhoneOrIPad(null==navigator?void 0:navigator.userAgent)}isIPhoneOrIPad(e){const i=/\b(\w*Macintosh\w*)\b/.test(e),o=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e),r="ontouchend"in document;return(i||o)&&r}isSafariIos(){return this.isIos()&&this.isIOSWithSafari(null==navigator?void 0:navigator.userAgent)}isIOSWithSafari(e){return/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(e)&&!/\b(\w*CriOS\w*)\b/.test(e)&&!/\b(\w*FxiOS\w*)\b/.test(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ec=(()=>{class t{constructor(e,i,o,r){this.loggerSrv=e,this.platformSrv=i,this.storageSrv=o,this.libSrv=r,this.OV=null,this.cameras=[],this.microphones=[],this.videoDevicesEnabled=!0,this.audioDevicesEnabled=!0,this.deviceAccessDeniedError=!1,this.log=this.loggerSrv.get("DevicesService")}forceInitDevices(){return Le(this,void 0,void 0,function*(){this.clear(),this.OV=new As.OpenVidu;try{yield this.OV.getUserMedia({audioSource:void 0,videoSource:void 0}),this.devices=yield this.getOpenViduDevices()}catch(e){this.deviceAccessDeniedError=e.name===As.OpenViduErrorName.DEVICE_ACCESS_DENIED,this.deviceAccessDeniedError&&(this.disableVideoDevices(),this.disableAudioDevices())}finally{this.deviceAccessDeniedError?this.log.w("Media devices permissions were not granted."):(this.initializeCustomDevices(),this.updateAudioDeviceSelected(),this.updateVideoDeviceSelected(),this._isVideoMuted=this.storageSrv.isVideoMuted()||this.libSrv.videoMuted.getValue(),this._isAudioMuted=this.storageSrv.isAudioMuted()||this.libSrv.audioMuted.getValue(),this.log.d("Media devices",this.cameras,this.microphones))}})}refreshDevices(){return Le(this,void 0,void 0,function*(){this.deviceAccessDeniedError||(this.devices=yield this.getOpenViduDevices(),this.initializeCustomDevices())})}initializeCustomDevices(e=!0){const o=this.devices.filter(s=>s.kind===od.AUDIO_INPUT),r=this.devices.filter(s=>s.kind===od.VIDEO_INPUT);o.length>0&&(this.microphones=[],o.forEach(s=>{this.microphones.push({label:s.label,device:s.deviceId})})),r.length>0&&(this.cameras=[],r.forEach((s,a)=>{const l={label:s.label,device:s.deviceId,type:Kr.BACK};this.platformSrv.isMobile()?l.label.toLowerCase().includes(Kr.FRONT.toLowerCase())&&(l.type=Kr.FRONT):0===a&&(l.type=Kr.FRONT),this.cameras.push(l)}))}updateAudioDeviceSelected(){if(this.microphones.length>0){const e=this.getMicrophoneFromStogare();e?this.microphoneSelected=e:this.microphones.length>0&&(this.microphoneSelected=this.deviceAccessDeniedError&&this.microphones.length>1?this.microphones[1]:this.microphones[0])}}updateVideoDeviceSelected(){if(this.cameras.length>0){const e=this.getCameraFromStorage();e?this.cameraSelected=e:this.cameras.length>0&&(this.cameraSelected=this.deviceAccessDeniedError&&this.cameras.length>1?this.cameras[1]:this.cameras[0])}}isVideoMuted(){return this.hasVideoDeviceAvailable()&&this._isVideoMuted}isAudioMuted(){return this.hasAudioDeviceAvailable()&&this._isAudioMuted}getCameraSelected(){return this.cameraSelected}getMicrophoneSelected(){return this.microphoneSelected}setCameraSelected(e){this.cameraSelected=this.getCameraByDeviceField(e),this.saveCameraToStorage(this.cameraSelected)}setMicSelected(e){this.microphoneSelected=this.getMicrophoneByDeviceField(e),this.saveMicrophoneToStorage(this.microphoneSelected)}needUpdateVideoTrack(e){var i;return(null===(i=this.cameraSelected)||void 0===i?void 0:i.device)!==e}needUpdateAudioTrack(e){var i;return(null===(i=this.microphoneSelected)||void 0===i?void 0:i.device)!==e}getCameras(){return this.cameras}getMicrophones(){return this.microphones}hasVideoDeviceAvailable(){return this.videoDevicesEnabled&&this.cameras.length>0}hasAudioDeviceAvailable(){return this.audioDevicesEnabled&&this.microphones.length>0}cameraNeedsMirror(e){var i;return(null===(i=this.getCameraByDeviceField(e))||void 0===i?void 0:i.type)===Kr.FRONT}disableVideoDevices(){this.videoDevicesEnabled=!1}disableAudioDevices(){this.audioDevicesEnabled=!1}clear(){this.OV=null,this.devices=[],this.cameras=[],this.microphones=[],this.cameraSelected=null,this.microphoneSelected=null,this.videoDevicesEnabled=!0,this.audioDevicesEnabled=!0}getCameraByDeviceField(e){return this.cameras.find(i=>i.device===e||i.label===e)}getMicrophoneByDeviceField(e){return this.microphones.find(i=>i.device===e||i.label===e)}getMicrophoneFromStogare(){const e=this.storageSrv.getAudioDevice();if(e&&this.microphones.some(i=>i.device===e.device))return e}getCameraFromStorage(){const e=this.storageSrv.getVideoDevice();if(e&&this.cameras.some(i=>i.device===e.device))return e}saveCameraToStorage(e){this.storageSrv.setVideoDevice(e)}saveMicrophoneToStorage(e){this.storageSrv.setAudioDevice(e)}getOpenViduDevices(){var e;return Le(this,void 0,void 0,function*(){return((yield null===(e=this.OV)||void 0===e?void 0:e.getDevices())||[]).filter(o=>!!o.label&&!!o.deviceId)})}}return t.\u0275fac=function(e){return new(e||t)(oe(sr),oe(Jl),oe(jo),oe(Mt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bo=(()=>{class t{constructor(e,i,o,r,s){this.openviduAngularConfigSrv=e,this.platformService=i,this.loggerSrv=o,this.participantService=r,this.deviceService=s,this.webcamToken="",this.screenToken="",this.videoSource=void 0,this.audioSource=void 0,this.STT_TIMEOUT_MS=2e3,this._isSttReady=new pt(!0),this.log=this.loggerSrv.get("OpenViduService"),this.isSttReadyObs=this._isSttReady.asObservable()}initialize(){this.OV=new As.OpenVidu,this.OV.setAdvancedConfiguration({publisherSpeakingEventsOptions:{interval:50}}),this.openviduAngularConfigSrv.isProduction()&&this.OV.enableProdMode(),this.webcamSession=this.OV.initSession(),this.platformService.isMobile()||(this.OVScreen=new As.OpenVidu,this.openviduAngularConfigSrv.isProduction()&&this.OVScreen.enableProdMode(),this.screenSession=this.OVScreen.initSession())}setWebcamToken(e){this.webcamToken=e}setScreenToken(e){this.screenToken=e}getWebcamToken(){return this.webcamToken}getScreenToken(){return this.screenToken}isOpenViduCE(){return this.ovEdition===ya.CE}isOpenViduPro(){return this.ovEdition===ya.PRO}setOpenViduEdition(e){this.ovEdition=e}isSessionConnected(){return!!this.webcamSession.connection}clear(){var e,i,o,r;return Le(this,void 0,void 0,function*(){this.videoSource=void 0,this.audioSource=void 0,yield null===(i=null===(e=this.participantService.getMyCameraPublisher())||void 0===e?void 0:e.stream)||void 0===i?void 0:i.disposeMediaStream(),yield null===(r=null===(o=this.participantService.getMyScreenPublisher())||void 0===o?void 0:o.stream)||void 0===r?void 0:r.disposeMediaStream()})}getSession(){return this.getWebcamSession()}getWebcamSession(){return this.webcamSession}isWebcamSessionConnected(){return!!this.webcamSession.capabilities}getScreenSession(){return this.screenSession}isScreenSessionConnected(){return!!this.screenSession.capabilities}isSttReady(){return this._isSttReady.getValue()}setSTTReady(e){this._isSttReady.getValue()!==e&&this._isSttReady.next(e)}connectSession(e,i){return Le(this,void 0,void 0,function*(){if(i&&e){const o=this.participantService.getMyNickname(),r=this.participantService.getLocalParticipant().id;e===this.webcamSession?(this.log.d("Connecting webcam session"),yield this.webcamSession.connect(i,{clientData:o,participantId:r,type:en.CAMERA}),this.participantService.setMyCameraConnectionId(this.webcamSession.connection.connectionId)):e===this.screenSession&&(this.log.d("Connecting screen session"),yield this.screenSession.connect(i,{clientData:`${o}_${en.SCREEN}`,participantId:r,type:en.SCREEN}),this.participantService.setMyScreenConnectionId(this.screenSession.connection.connectionId))}})}disconnect(){this.disconnectSession(this.webcamSession),this.disconnectSession(this.screenSession)}initDefaultPublisher(){return Le(this,void 0,void 0,function*(){const e=this.deviceService.hasVideoDeviceAvailable(),i=this.deviceService.hasAudioDeviceAvailable(),o=!this.deviceService.isVideoMuted(),r=!this.deviceService.isAudioMuted();let s=!1,a=!1;e&&(s=this.deviceService.getCameraSelected().device),i&&(a=this.deviceService.getMicrophoneSelected().device);const c={videoSource:s,audioSource:a,publishVideo:o,publishAudio:r,mirror:this.deviceService.getCameraSelected()&&this.deviceService.getCameraSelected().type===Kr.FRONT};if(e||i){const u=yield this.initPublisher(c);return this.participantService.setMyCameraPublisher(u),this.participantService.updateLocalParticipant(),u}this.participantService.setMyCameraPublisher(null)})}initPublisher(e,i){return Le(this,void 0,void 0,function*(){return this.log.d("Initializing publisher with properties: ",e),this.OV.initPublisherAsync(i,e)})}publish(e){var i,o,r,s;return Le(this,void 0,void 0,function*(){if(e)if(e===this.participantService.getMyCameraPublisher()){if(null!==(o=null===(i=this.webcamSession)||void 0===i?void 0:i.capabilities)&&void 0!==o&&o.publish)return yield this.webcamSession.publish(e);this.log.e("Webcam publisher cannot be published")}else if(e===this.participantService.getMyScreenPublisher()){if(null!==(s=null===(r=this.screenSession)||void 0===r?void 0:r.capabilities)&&void 0!==s&&s.publish)return yield this.screenSession.publish(e);this.log.e("Screen publisher cannot be published")}})}unpublish(e){e&&(e===this.participantService.getMyCameraPublisher()?(this.publishAudioAux(this.participantService.getMyScreenPublisher(),this.participantService.isMyAudioActive()),this.webcamSession.unpublish(e)):e===this.participantService.getMyScreenPublisher()&&this.screenSession.unpublish(e))}publishVideo(e){return Le(this,void 0,void 0,function*(){const i=this.participantService.isMyAudioActive();if(this.participantService.haveICameraAndScreenActive())yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),e),this.participantService.disableWebcamStream(),this.unpublish(this.participantService.getMyCameraPublisher()),this.publishAudioAux(this.participantService.getMyScreenPublisher(),i);else if(this.participantService.isOnlyMyScreenActive()){const o=this.participantService.hasScreenAudioActive();this.isWebcamSessionConnected()||(yield this.connectSession(this.getWebcamSession(),this.getWebcamToken())),yield this.publish(this.participantService.getMyCameraPublisher()),yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),!0),this.publishAudioAux(this.participantService.getMyScreenPublisher(),!1),this.publishAudioAux(this.participantService.getMyCameraPublisher(),o),this.participantService.enableWebcamStream()}else yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),e)})}publishVideoAux(e,i){var o;return Le(this,void 0,void 0,function*(){if(e){let r=!0;if(i){const s=null===(o=this.deviceService.getCameraSelected())||void 0===o?void 0:o.device;r=(yield this.createMediaStream({videoSource:s,audioSource:!1})).getVideoTracks()[0]}yield e.publishVideo(i,r),this.participantService.updateLocalParticipant()}})}publishAudio(e){return Le(this,void 0,void 0,function*(){this.participantService.isMyCameraActive()?(this.participantService.isMyScreenActive()&&this.participantService.hasScreenAudioActive()&&this.publishAudioAux(this.participantService.getMyScreenPublisher(),!1),this.publishAudioAux(this.participantService.getMyCameraPublisher(),e)):this.publishAudioAux(this.participantService.getMyScreenPublisher(),e)})}toggleScreenshare(){return Le(this,void 0,void 0,function*(){if(this.participantService.haveICameraAndScreenActive())this.participantService.disableScreenStream(),this.unpublish(this.participantService.getMyScreenPublisher());else if(this.participantService.isOnlyMyCameraActive()){const e=this.deviceService.hasAudioDeviceAvailable(),o=(!this.participantService.isMyCameraActive()||!this.participantService.isMyVideoActive())&&e&&this.participantService.isMyAudioActive(),r={videoSource:nd.SCREEN,audioSource:!!e&&this.deviceService.getMicrophoneSelected().device,publishVideo:!0,publishAudio:o,mirror:!1},s=yield this.initPublisher(r);s.once("accessAllowed",()=>Le(this,void 0,void 0,function*(){s.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",()=>Le(this,void 0,void 0,function*(){this.log.d("Clicked native stop button. Stopping screen sharing"),yield this.toggleScreenshare()})),this.participantService.activeMyScreenShare(s),this.isScreenSessionConnected()||(yield this.connectSession(this.getScreenSession(),this.getScreenToken())),yield this.publish(this.participantService.getMyScreenPublisher()),this.participantService.isMyVideoActive()||(this.participantService.disableWebcamStream(),this.unpublish(this.participantService.getMyCameraPublisher()))})),s.once("accessDenied",a=>Promise.reject(a))}else{const e=this.participantService.hasScreenAudioActive();this.isWebcamSessionConnected()||(yield this.connectSession(this.getWebcamSession(),this.getWebcamToken())),yield this.publish(this.participantService.getMyCameraPublisher()),this.publishAudioAux(this.participantService.getMyCameraPublisher(),e),this.participantService.enableWebcamStream(),this.participantService.disableScreenStream(),this.unpublish(this.participantService.getMyScreenPublisher())}})}publishAudioAux(e,i){e&&(e.publishAudio(i),this.participantService.updateLocalParticipant())}sendSignal(e,i,o){const r={data:JSON.stringify(o),type:e,to:i&&i.length>0?i:void 0};this.webcamSession.signal(r)}replaceTrack(e,i){return Le(this,void 0,void 0,function*(){try{if(this.log.d(`Replacing ${e} track`,i),e===en.CAMERA){let o;const r=!!i.audioSource;if(i.videoSource){o=yield this.createMediaStream(i);const a=o.getVideoTracks()[0];yield this.participantService.getMyCameraPublisher().replaceTrack(a)}else if(r){o=yield this.createMediaStream(i);const a=o.getAudioTracks()[0];yield this.participantService.getMyCameraPublisher().replaceTrack(a)}}else if(e===en.SCREEN)try{let o=yield this.OVScreen.getUserMedia(i);this.participantService.getMyScreenPublisher().stream.getMediaStream().getVideoTracks()[0].stop(),yield this.participantService.getMyScreenPublisher().replaceTrack(o.getVideoTracks()[0])}catch(o){this.log.w("Cannot create the new MediaStream",o)}}catch(o){this.log.e("Error replacing track ",o)}})}subscribeRemotesToSTT(e){var i,o;return Le(this,void 0,void 0,function*(){const r=this.participantService.getRemoteParticipants();let s=0;for(const a of r){const l=null===(o=null===(i=a.getCameraConnection())||void 0===i?void 0:i.streamManager)||void 0===o?void 0:o.stream;if(l)try{yield this.subscribeStreamToStt(l,e),s++}catch(c){this.log.e(`Error subscribing ${l.streamId} to STT:`,c);break}}this.setSTTReady(s===r.length),this.isSttReady()||(this.log.w("STT is not ready. Retrying subscription..."),this.sttReconnectionTimeout=setTimeout(this.subscribeRemotesToSTT.bind(this,e),this.STT_TIMEOUT_MS))})}subscribeStreamToStt(e,i){return Le(this,void 0,void 0,function*(){yield this.getWebcamSession().subscribeToSpeechToText(e,i),this.log.d(`Subscribed stream ${e.streamId} to STT with ${i} language.`)})}unsubscribeRemotesFromSTT(){return Le(this,void 0,void 0,function*(){if(clearTimeout(this.sttReconnectionTimeout),this.isSttReady())for(const e of this.participantService.getRemoteParticipants()){const i=e.getCameraConnection().streamManager.stream;if(i)try{yield this.getWebcamSession().unsubscribeFromSpeechToText(i)}catch(o){this.log.e(`Error unsubscribing ${i.streamId} from STT:`,o)}}})}createMediaStream(e){return Le(this,void 0,void 0,function*(){let i;const o=this.platformService.isFirefox(),r=!!e.audioSource,s=!!e.videoSource;try{i=yield this.OV.getUserMedia(e)}catch(a){a.name===As.OpenViduErrorName.DEVICE_ACCESS_DENIED&&o&&(this.log.w("The device requested is not available. Restoring the older one"),s?e.videoSource=this.deviceService.getCameraSelected().device:r&&(e.audioSource=this.deviceService.getMicrophoneSelected().device),i=yield this.OV.getUserMedia(e))}finally{return i}})}needSendNicknameSignal(){let e;try{e=JSON.parse(this.webcamSession.connection.data.split("%/%")[0]).clientData}catch(i){this.log.e(i)}return e!==this.participantService.getMyNickname()}isMyOwnConnection(e){var i,o,r,s;return(null===(o=null===(i=this.webcamSession)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.connectionId)===e||(null===(s=null===(r=this.screenSession)||void 0===r?void 0:r.connection)||void 0===s?void 0:s.connectionId)===e}getRemoteConnections(){return Array.from(this.webcamSession.remoteConnections.values()).filter(i=>{let o;return o=JSON.parse(i.data).type,o!==en.SCREEN})}disconnectSession(e){var i,o,r,s;e&&(e.sessionId===(null===(i=this.webcamSession)||void 0===i?void 0:i.sessionId)?(this.log.d("Disconnecting webcam session"),null===(o=this.webcamSession)||void 0===o||o.disconnect(),this.webcamSession=null):e.sessionId===(null===(r=this.screenSession)||void 0===r?void 0:r.sessionId)&&(this.log.d("Disconnecting screen session"),null===(s=this.screenSession)||void 0===s||s.disconnect(),this.screenSession=null))}}return t.\u0275fac=function(e){return new(e||t)(oe(Mt),oe(Jl),oe(sr),oe(vi),oe(ec))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rd=(()=>{class t{constructor(e){this.storageService=e,this.langsOptions=[{name:"English",lang:"en-US"},{name:"Espa\xf1ol",lang:"es-ES"},{name:"Deutsch",lang:"de-DE"},{name:"Fran\xe7ais",lang:"fr-FR"},{name:"\u4e2d\u56fd",lang:"zh-CN"},{name:"\u0939\u093f\u0928\u094d\u0926\u0940",lang:"hi-IN"},{name:"Italiano",lang:"it-IT"},{name:"\u3084\u307e\u3068",lang:"jp-JP"},{name:"Portugu\xeas",lang:"pt-PT"}],this._captionLang=new ce,this.captionsEnabled=!1,this.updateLangSelected(),this.captionLangObs=this._captionLang.asObservable()}setLanguageOptions(e){e&&e.length>0&&(this.langsOptions=e,this.updateLangSelected())}setCaptionsEnabled(e){this.captionsEnabled=e}areCaptionsEnabled(){return this.captionsEnabled}setLanguage(e){const i=this.langsOptions.find(o=>o.lang===e);i&&i.lang!==this.captionLangSelected.lang&&(this.captionLangSelected=i,this.storageService.setCaptionLang(e),this._captionLang.next(this.captionLangSelected))}getLangSelected(){return this.captionLangSelected}getCaptionLanguages(){return this.langsOptions}updateLangSelected(){const e=this.storageService.getCaptionsLang(),i=this.langsOptions.find(o=>o.lang===e);this.captionLangSelected=e&&i?i:this.langsOptions[0]}}return t.\u0275fac=function(e){return new(e||t)(oe(jo))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hP=(()=>{class t{constructor(e,i,o,r,s){this.panelService=e,this.openviduService=i,this.participantService=o,this.captionService=r,this.cd=s,this.captionEvents=[],this.isSttReady=!0,this.DELETE_TIMEOUT=1e4,this.MAX_EVENTS_LIMIT=3}set captionEventRef(e){setTimeout(()=>{e&&(this.scrollContainer=e)},0)}ngOnInit(){return Le(this,void 0,void 0,function*(){this.subscribeToSTTStatus(),this.captionService.setCaptionsEnabled(!0),this.captionLangSelected=this.captionService.getLangSelected(),this.session=this.openviduService.getWebcamSession(),yield this.openviduService.subscribeRemotesToSTT(this.captionLangSelected.lang),this.subscribeToCaptionLanguage(),this.subscribeToPanelToggling(),this.subscribeToTranscription()})}ngOnDestroy(){return Le(this,void 0,void 0,function*(){yield this.openviduService.unsubscribeRemotesFromSTT(),this.captionService.setCaptionsEnabled(!1),this.screenSizeSub&&this.screenSizeSub.unsubscribe(),this.panelTogglingSubscription&&this.panelTogglingSubscription.unsubscribe(),this.sttStatusSubscription&&this.sttStatusSubscription.unsubscribe(),this.session.off("speechToTextMessage"),this.captionEvents=[]})}onSettingsCliked(){this.panelService.togglePanel(zt.SETTINGS,Xl.CAPTIONS)}subscribeToTranscription(){this.session.on("speechToTextMessage",e=>{var i;if(e.text){clearInterval(this.deleteAllTimeout);const{connectionId:o,data:r}=e.connection,s=this.participantService.getNicknameFromConnectionData(r),a=(null===(i=this.participantService.getRemoteParticipantByConnectionId(o))||void 0===i?void 0:i.colorProfile)||"";this.updateCaption({connectionId:o,nickname:s,color:a,text:e.text,type:e.reason}),this.deleteAllEventsAfterDelay(this.DELETE_TIMEOUT),this.cd.markForCheck()}})}updateCaption(e){let i=[...this.captionEvents],o=i.length;if(0===o)i.push(e);else{const r=i[o-1],a="recognized"===r.type;if(r.connectionId===e.connectionId)a?e.text!==r.text&&(this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e)):(r.text=e.text,r.type=e.type);else if(i.some(c=>c.connectionId===e.connectionId))if(a)this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e);else{const c=i.find(u=>u.connectionId===e.connectionId);c&&("recognized"===c.type?i.push(e):(c.text=e.text,c.type=e.type))}else this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e)}i.length===this.MAX_EVENTS_LIMIT&&(clearInterval(this.deleteFirstTimeout),i.shift()),this.captionEvents=[...i],this.scrollToBottom()}deleteFirstEventAfterDelay(e){this.deleteFirstTimeout=setTimeout(()=>{this.captionEvents.shift(),this.cd.markForCheck()},e)}deleteAllEventsAfterDelay(e){this.deleteAllTimeout=setTimeout(()=>{this.captionEvents=[],this.cd.markForCheck()},e)}subscribeToSTTStatus(){this.sttStatusSubscription=this.openviduService.isSttReadyObs.subscribe(e=>{this.isSttReady=e,this.cd.markForCheck()})}subscribeToCaptionLanguage(){this.captionLanguageSubscription=this.captionService.captionLangObs.subscribe(e=>{this.captionLangSelected=e,this.cd.markForCheck()})}subscribeToPanelToggling(){this.panelTogglingSubscription=this.panelService.panelOpenedObs.subscribe(e=>{this.settingsPanelOpened=e.opened,setTimeout(()=>this.cd.markForCheck(),300)})}scrollToBottom(){setTimeout(()=>{try{this.scrollContainer.forEach((e,i)=>{var o;e.nativeElement.scroll({top:null===(o=this.scrollContainer.get(i))||void 0===o?void 0:o.nativeElement.scrollHeight,left:0})})}catch(e){}},20)}}return t.\u0275fac=function(e){return new(e||t)(h(_o),h(bo),h(vi),h(rd),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-captions"]],viewQuery:function(e,i){if(1&e&&Et(NX,5),2&e){let o;xe(o=Oe())&&(i.captionEventRef=o)}},decls:6,vars:4,consts:[[1,"captions-container"],["captionsContainer",""],["class","captions-offset",3,"ngClass",4,"ngIf"],["class","captions-center-container",3,"ngClass",4,"ngIf"],["class","captions-center-container error-container",4,"ngIf"],["class","captions-offset",4,"ngIf"],[1,"captions-offset",3,"ngClass"],["id","caption-settings-btn","mat-flat-button","",3,"click"],["id","subtitle-settings-icon"],[1,"captions-center-container",3,"ngClass"],["class","element",4,"ngFor","ngForOf"],[1,"element"],["id","speaker",3,"ngStyle"],["id","caption-event",1,"caption-event",3,"ngClass"],["captionEventElement",""],["id","caption-text",1,"caption-text"],[1,"captions-center-container","error-container"],[3,"diameter"],[1,"captions-offset"]],template:function(e,i){if(1&e&&(O(0,"div",0,1),X(2,FX,6,4,"div",2),X(3,HX,2,10,"div",3),X(4,GX,5,4,"div",4),X(5,zX,1,0,"div",5),V()),2&e){const o=Ui(1);A(2),U("ngIf",o.offsetWidth>=600&&!i.settingsPanelOpened),A(1),U("ngIf",i.isSttReady),A(1),U("ngIf",!i.isSttReady),A(1),U("ngIf",o.offsetWidth>=600&&!i.settingsPanelOpened)}},dependencies:[Ii,Ro,Zt,hl,Mn,oi,or,ir,fb,Un],styles:[".captions-container[_ngcontent-%COMP%]{display:flex;height:var(--ov-captions-height, 230px);margin:0 10px}.captions-offset[_ngcontent-%COMP%]{height:var(--ov-captions-height, 230px);width:15%;text-align:center}.captions-offset-xl[_ngcontent-%COMP%]{width:25%!important}.captions-center-container[_ngcontent-%COMP%]{flex-grow:1;align-self:center;max-height:var(--ov-captions-height, 230px);width:70%;overflow:hidden;height:var(--ov-captions-height, 230px);padding:0px 10vw}.error-container[_ngcontent-%COMP%]{display:grid;text-align:center;color:var(--ov-text-color);font-size:18px}mat-spinner[_ngcontent-%COMP%]{position:relative;inset:35% 0 0;margin:auto}.captions-center-container.screen-xl[_ngcontent-%COMP%]{padding:0px 14vw}.captions-center-container.screen-xl[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:22px}.captions-center-container.screen-xl[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:16px}.captions-center-container.screen-xl.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:140px}.captions-center-container.screen-xl.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-xl.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container.screen-md[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-md[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:14px}.captions-center-container.screen-md.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:140px}.captions-center-container.screen-md.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-md.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container.screen-sm[_ngcontent-%COMP%]{padding:0px 2vw}.captions-center-container.screen-sm[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-sm[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:12px}.captions-center-container.screen-sm.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:127px}.captions-center-container.screen-sm.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:64px}.captions-center-container.screen-sm.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:33px}.captions-center-container.screen-xs[_ngcontent-%COMP%]{padding:0px 2vw}.captions-center-container.screen-xs[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-xs[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:12px}.captions-center-container.screen-xs.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:130px}.captions-center-container.screen-xs.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-xs.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container[_ngcontent-%COMP%] .going-to-disappear[_ngcontent-%COMP%]{max-height:30px!important}#caption-settings-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-secondary-color)}#caption-settings-icon[_ngcontent-%COMP%]{font-size:15px;height:15px;width:15px;padding-right:5px}#speaker[_ngcontent-%COMP%]{margin-bottom:2px;font-weight:700;margin-left:-5px;width:fit-content}.captions-center-container[_ngcontent-%COMP%] .element[_ngcontent-%COMP%]{margin:8px 0}.caption-event[_ngcontent-%COMP%]{overflow:auto;pointer-events:none}.caption-text[_ngcontent-%COMP%], #speaker[_ngcontent-%COMP%]{color:var(--ov-text-color);font-family:Roboto,arial,sans-serif}.caption-text[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);padding:4.5px;line-height:1.6;word-break:break-word}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}"],data:{animation:[qi("captionAnimation",[Vn(":enter",[kt({opacity:0}),$n("50ms ease-in",kt({opacity:1}))])])]},changeDetection:0}),t})(),Kie=(()=>{class t{constructor(){}transform(e){let i=[];return e&&Object.keys(e).length>0&&(Array.isArray(e)?e.forEach(o=>{i=i.concat(o.getAvailableConnections())}):i=e.getAvailableConnections()),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=zn({name:"streams",type:t,pure:!0}),t})(),Zie=(()=>{class t{constructor(e){this.translateService=e}transform(e){let i="";const r=(null==e?void 0:e.getConnectionTypesActive().toString()).split(",");return r.forEach((s,a)=>{i+=this.translateService.translate(`PANEL.PARTICIPANTS.${s}`),r.length>0&&a<r.length-1&&(i+=", ")}),`(${i})`}}return t.\u0275fac=function(e){return new(e||t)(h(Ms,16))},t.\u0275pipe=zn({name:"streamTypesEnabled",type:t,pure:!0}),t})(),fy=(()=>{class t{constructor(e,i,o){this.layoutService=e,this.participantService=i,this.cd=o,this.remoteParticipants=[],this.captionsEnabled=!0}set externalStream(e){e&&(this.streamTemplate=e.template)}ngOnInit(){this.subscribeToParticipants(),this.subscribeToCaptions()}ngAfterViewInit(){this.layoutService.initialize(this.layoutContainer.element.nativeElement)}ngOnDestroy(){this.localParticipant=null,this.remoteParticipants=[],this.localParticipantSubs&&this.localParticipantSubs.unsubscribe(),this.remoteParticipantsSubs&&this.remoteParticipantsSubs.unsubscribe(),this.captionsSubs&&this.captionsSubs.unsubscribe(),this.layoutService.clear()}subscribeToCaptions(){this.captionsSubs=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e,this.cd.markForCheck(),this.layoutService.update()})}subscribeToParticipants(){this.localParticipantSubs=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.layoutService.update(),this.cd.markForCheck()}),this.remoteParticipantsSubs=this.participantService.remoteParticipantsObs.subscribe(e=>{this.remoteParticipants=e,this.layoutService.update(),this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(ba),h(vi),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-layout"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,qX,5,vt),Je(o,dP,5)),2&e){let r;xe(r=Oe())&&(i.streamTemplate=r.first),xe(r=Oe())&&(i.externalStream=r.first)}},viewQuery:function(e,i){if(1&e&&Et(U1,5,ln),2&e){let o;xe(o=Oe())&&(i.layoutContainer=o.first)}},decls:8,vars:9,consts:[[1,"container"],["id","layout",1,"layout"],["layout",""],["class","OT_root OT_publisher",3,"ngClass",4,"ngFor","ngForOf"],["class","OT_root OT_publisher","id","remote-participant",3,"ngClass",4,"ngFor","ngForOf"],["class","OV_ignored",4,"ngIf"],[1,"OT_root","OT_publisher",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","remote-participant",1,"OT_root","OT_publisher",3,"ngClass"],[1,"OV_ignored"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"div",1,2),X(3,$X,2,7,"div",3),ye(4,"streams"),X(5,QX,2,7,"div",4),ye(6,"streams"),V(),X(7,KX,1,0,"ov-captions",5),V()),2&e&&(ct("withCaptions",i.captionsEnabled),A(3),U("ngForOf",Se(4,5,i.localParticipant)),A(2),U("ngForOf",Se(6,7,i.remoteParticipants)),A(2),U("ngIf",i.captionsEnabled))},dependencies:[Ii,Ro,Zt,ls,ir,hP,Kie],styles:['#remote-participant[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{height:100%}.withCaptions[_ngcontent-%COMP%]{height:calc(100% - var(--ov-captions-height, 250px))!important}.layout[_ngcontent-%COMP%]{position:relative;inset:0;min-width:350px!important;min-height:100%;width:inherit;height:-webkit-fill-available;height:-moz-available}.OT_root[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff;margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline}.OT_dialog-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_dialog-centering-child[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_dialog[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;margin-right:auto;margin-left:auto;color:#fff;font-family:Ubuntu,sans-serif;font-size:13px;line-height:1.4}.OT_dialog[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:inherit;box-sizing:inherit}.OT_closeButton[_ngcontent-%COMP%]{color:#999;cursor:pointer;font-size:32px;line-height:36px;position:absolute;right:18px;top:0}.OT_dialog-messages[_ngcontent-%COMP%]{text-align:center}.OT_dialog-messages-main[_ngcontent-%COMP%]{margin-bottom:36px;line-height:36px;font-weight:300;font-size:24px}.OT_dialog-messages-minor[_ngcontent-%COMP%]{margin-bottom:18px;font-size:13px;line-height:18px;color:#a4a4a4}.OT_dialog-messages-minor[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff}.OT_dialog-actions-card[_ngcontent-%COMP%]{display:inline-block}.OT_dialog-button-title[_ngcontent-%COMP%]{margin-bottom:18px;line-height:18px;font-weight:300;text-align:center;font-size:14px;color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{color:#02a1de}.OT_dialog-button-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff;font-weight:100;display:block}.OT_dialog-button[_ngcontent-%COMP%]{display:inline-block;margin-bottom:18px;padding:0 1em;background-color:#1ca3dc;text-align:center;cursor:pointer}.OT_dialog-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.OT_dialog-button-large[_ngcontent-%COMP%]{line-height:36px;padding-top:9px;padding-bottom:9px;font-weight:100;font-size:24px}.OT_dialog-button-small[_ngcontent-%COMP%]{line-height:18px;padding-top:9px;padding-bottom:9px;background-color:#444;color:#999;font-size:16px}.OT_dialog-progress-bar[_ngcontent-%COMP%]{display:inline-block;width:100%;margin-top:5px;margin-bottom:41px;border:1px solid #4e4e4e;height:8px}.OT_dialog-progress-bar-fill[_ngcontent-%COMP%]{height:100%;background-color:#29a4da}.OT_dialog-plugin-upgrading[_ngcontent-%COMP%] .OT_dialog-plugin-upgrade-percentage[_ngcontent-%COMP%]{line-height:54px;font-size:48px;font-weight:100}.OT_centered[_ngcontent-%COMP%]{position:fixed;left:50%;top:50%;margin:0}.OT_dialog-hidden[_ngcontent-%COMP%]{display:none}.OT_dialog-button-block[_ngcontent-%COMP%]{display:block}.OT_dialog-no-natural-margin[_ngcontent-%COMP%]{margin-bottom:0}.OT_publisher[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]{position:relative;min-width:0px;min-height:0px;padding:3px;transition-duration:.1s;transition-timing-function:ease-in-out}.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;transform-origin:0 0}.OT_subscriber_error[_ngcontent-%COMP%]{background-color:#000;color:#fff;text-align:center}.OT_subscriber_error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{padding:20px}.OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%]{-ms-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;display:block;height:34px;position:absolute}.OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{background:rgba(0,0,0,.4)}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{z-index:1}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{background-color:transparent;color:#fff;font-size:15px;line-height:34px;font-weight:400;padding:0 4px 0 36px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;left:34px;padding:0 4px;color:#fffc;font-size:15px;line-height:34px;font-weight:400}.OT_micro[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_micro[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;right:auto;width:34px;height:34px}.OT_archiving-light[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:30px;position:absolute;top:14px;left:14px;background-color:#575757;box-shadow:0 0 5px 1px #575757}.OT_archiving-light.OT_active[_ngcontent-%COMP%]{background-color:#970d13;animation:OT_pulse 1.3s ease-in;-webkit-animation:OT_pulse 1.3s ease-in;-moz-animation:OT_pulse 1.3s ease-in;-webkit-animation:OT_pulse 1.3s ease-in;animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}.OT_mini[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_bar.OT_mode-mini[_ngcontent-%COMP%], .OT_bar.OT_mode-mini-auto[_ngcontent-%COMP%]{bottom:0;height:auto}.OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-off[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_name.OT_mode-auto[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{left:10px;right:37px;height:34px;padding-left:0}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{border:none;cursor:pointer;display:block;position:absolute;text-align:center;text-indent:-9999em;background-color:transparent;background-repeat:no-repeat}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{right:0;top:0;border-left:1px solid rgba(255,255,255,.2);height:36px;width:37px}.OT_mini[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_publisher.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%]{top:50%;left:50%;right:auto;margin-top:-18px;margin-left:-18.5px;border-left:none}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAcCAMAAAC02HQrAAAA1VBMVEUAAAD3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj39/j3+Pj3+Pn4+Pk/JRMlAAAAQ3RSTlMABAUHCQoLDhAQERwdHiAjLjAxOD9ASFBRVl1mbnZ6fH2LjI+QkaWqrrC1uLzAwcXJycrL1NXj5Ofo6u3w9fr7/P3+d4M3+QAAAQBJREFUGBlVwYdCglAABdCLlr5Unijm3hMUtBzlBLSr//9JgUToOQgVJgceJgU8aHgMeA38K50ZOpcQmTPwcyXn+JM8M3JJIqQypiIkeXelTyIkGZPwKS1NMia1lgKTVkaE3oQQGYsmHNqSMWnTgUFbMiZtGlD2dpaxrL1XgM0i4ZK8MeAmFhsAs29MGZniawagS63oMOQUNXYB5D0D1RMDpyoMLw/fiE2og/V+PVDR5AiBl0/2Uwik+vx4xV3a5G5Ye68Nd1czjUjZckm6VhmPciRzeCZICjwTJAViQq+3e+St167rAoHK8sLYZVkBYPCZAZ/eGa+2R5LH7Wrc0YFf/O9J3yBDFaoAAAAASUVORK5CYII=);background-position:9px 5px}.OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAADcElEQVRIiaWVXWhcRRTHf7NNd2aDtUKMIjTpg4ufFIuiUOmDEWm0Vi3VYhXRqIggQh4sWJFSig9+oOhTKSpIRUWMIBIr2kptoTbgU6ooxCiIjR+14kcJmf9sNceHnd3ebnc3Uv9wuXfOzPzmnDMz5zozGwdWAbc65w5RUJQ8cC2wDJgFJioh/MJCMrNxq2vOzK4HmIvRRemxKP0RJWt53o7S+d2Yzsx6gQ+AIUDAnUqpBLzXZd4RYFUlhB/bdZacc3PAOmAcCMC7wfvFwLNdoAPAyx09bXyYWRl4E7gDmAdGlNKFwLYu8GolhO9O87RJd64GbMrgEvB68P4osMWdXLtVV7czlooNpVRWSs8DO7NpR/B+3rBHsvetCgtCMTxwQCm9BbyQrc8F7/uBex3uRCeXO0PrUZ4NfKyUPgWeyj3bg/crDNsIRGwBaJQGorQ3Svdn2wHgc2BUKb0DPJHtjwfvbwRucc7tz+N+i9LFUdoXpfVN36I0CVwBTFI/q9e1LPxT8P4qYEdu70q12mYzWw1MYQzjeJF6zq+shHC4B7jklOBPP/TzSunh4P0DwKvAfb5c9krpe+CcwsEoZdbhEvBM9wxRAl5RShcA9wAngE3B+8tLpdLuwrhp4MNmK0pfRWkySr7NXS8+L5nZbWZWy/Vin1IaitJnUTqvwevJ71lgSSWEFKUfHG7Q2m/xqFJaGry/GXgfGPLl8mJgrXPur2JoUC8Qy3OpG+sAbGhEKT0ErAWOA6uBPWbW1wr9BOgFbgKezot0kAPYqJQA1gC/A9cA+82svzksSn1R+jNKX0SpnM/e1x3yqig92JhrZivM7FjO8bSZLSuCR/Ok16K0KMNHojQWpYko7Y7S1igN5PE3ROl4lNaZ2UVmNpPBU01orvZvZPCeKFXbBR+lEKVtUapFaSZKg9njqpl9aWYTrmXCImA7sCWb9lK/jj9TrwkrgA1AH3AQuKsSwkzbrLfxpgpsBtYDxf/R3xm2ExirhNCuHHZXTsmRwiat+S/zSt06eysVA/4pmGr/G3qm6ik28v29FKgCg8BS6pvS0KNRGgZ+Bb4FpsxsOkfUlMuwDcBWYOUZOHYM2AU8WQmhBifDv70O7PjX7KZ+4G7g3FM8zd6uBIaBy4AqxnIcZwFLCovPAhE4Sj38b4BDwEeVEFKD9S94Khjn486v3QAAAABJRU5ErkJggg==);background-position:9px 4px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAABx0lEQVQ4jaWUv48NURiGn3ONmCs32ZBd28ht1gqyZAkF21ylQkEiSp2ehpDlD1BoFGqqVdJohYKI7MaPxMoVNghCWMF+7ybLUewnOXfcMWO9yeQ857zne8+XmZOBGjJpr0kvTIomvTZpS526UCO4DUwD64FjwCFgqZnnR+oc8LfgzKQ73vGsr42ZtGjSQFV9o8KfBCacZwCaef4YmAf2rzjcpN3A2WSpm/AssKcqPDNpDBjs410CViXzTwk/A7b1C4wxDgOngAsZcAXY2buDfp/6S4F3lDS8DjgBzDWAjX/Y/e/QgYS/AhsKHa+OMQ6GEJ4Cj4BOAxgq6aCowyZtdf4OtAr+FHDO+R4wWnVbihr3cQnICt4boO38GWj9a/icjwOACt4m4K3zEPA+AxaAtTWCnwN3lzHkEL8V/OPAGud9wK2GF9XR1Wae/1zG2AI+pGYI4VUIoRtjHAc2A9cz4LRPevYCZ+i9/4sJt4GXJU10gaPAzdI2TTro/5Tfz8XEe2LSZGmxq/SDNvP8BnA5WRrx4BwYBe6vONx1EnjovGvBLAAd4Adwuyq8UiaNmDTvr+a8SQ9MuvbfwckBHZPe+QEfTdpep+4XZmPBHiHgz74AAAAASUVORK5CYII=);background-position:8px 7px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAACtklEQVQ4jZ2VSYiURxTHf+/T9Nc9iRrBuYySmIsXUU9iFMEFERRBvAjJLUQi5ioiHvSScfTmgqC4XAT1ZIgLuJHkICaaQAgKI2hAUBT30bjUq7bbv4eukXK029F3+eqtv/fqK6qQdEnSNUmT6CDB/bvgfjO4N9zj2RD8007xg1IABkwEzkma0qb4PGAPMBZYLtSD8eNwAEjqTlNI0gNJM4YU7w7ut4O7gvuhZFsR3C8NC5BBLiTIY0mzM8AvqbiC++pk+zLpE95XuwAws3vAQuBPYDRwWtL84P4tsDSLv5oaug4EYOawAMF9jMdoLxqNZcDvQA04UVYqL4G/svj7AF21mhJscrvCksYBFO7xc2AAGGg2mrdjvf4rcAyomNn+slLZmUEGBgsYdh945xZJmgvckDSrEJpK6ySBgV6q12O8ABwGPjGzfWWlsjdN9rpjoSfA+DYDXARGAksK4Is3XC1Ub4z1f4CDQGFmu6tleQSYk0U+p7WVeefLJc00s4fAeWB6Qeunvj0m2ugx9gO7kmlrtSxvBfcy6fXUZS6rgG/S+jLQUwCVNmMC9HqM14EtSe+rluWazN8YEv8IqKZ1E1qnaIDO0ucx3gX6kv6TpM3AM+D/IbGjgP60/gq4WQA33gMA2OQxPgHWJX1ttSwL4FAeZGYLgB2SasBs4A8L7qOBf9M0uXQB3a+TMYSmVctyDrA9mfcBK82smSdKWgCcAaa1bTm4fxbc/8uuCQX3RanAD5Ka6Wo5IGnE0HxJPZ03pQX5Org3MsD3AO5xXLPZXJ9BjkrqdFg6QjZkgG3Jtsw93pG0VFI9QU5K6voYQBHcTydAfwheBI9HgvvPAJIWS3qeIL9JGvUxkO7gfi1BrqTvwkG/pPmSnibIqTzXPgAyEVgBjAEu1qrVPbk/PVTHgb/NbPGg/RVIzOQqzSTBaQAAAABJRU5ErkJggg==);background-position:7px 7px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%]{top:-25px;opacity:0}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%]{top:auto;bottom:-25px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%]{top:0;opacity:1}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_mute.OT_mode-mini[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%]{top:auto;bottom:0;opacity:1}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;background-color:#000000bf}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%] .OT_video-loading-spinner[_ngcontent-%COMP%]{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAtMjAgMjQwIDI0MCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMCIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjA4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSIxIiB4Mj0iMCIgeTE9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjE2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgyPSIwIiB5MT0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii4xNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMzMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDI9IjEiIHkxPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii42NiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwIDEgMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2IpIiBkPSJNODYuNiA1MEExMDAgMTAwIDAgMCAxIDAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNjKSIgZD0iTTAgMTAwYTEwMCAxMDAgMCAwIDEtODYuNi01MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48cGF0aCBzdHJva2U9InVybCgjZCkiIGQ9Ik0tODYuNiA1MGExMDAgMTAwIDAgMCAxIDAtMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNlKSIgZD0iTS04Ni42LTUwQTEwMCAxMDAgMCAwIDEgMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAgMSA4Ni42IDUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjwvZz48L21hc2s+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9Ii0yMCIgeT0iLTIwIiBtYXNrPSJ1cmwoI2cpIiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;animation:OT_spin 2s linear infinite}@keyframes OT_spin{to{transform:rotate(360deg)}}.OT_publisher.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%], .OT_subscriber.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{display:block}.OT_video-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_video-container[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_video-poster[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;opacity:.25;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDcxIDQ2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSI2Ni42NiUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc5IDMwOGMxNC4yNS02LjUgNTQuMjUtMTkuNzUgNzEtMjkgOS0zLjI1IDI1LTIxIDI1LTIxczMuNzUtMTMgMy0yMmMtMS43NS02Ljc1LTE1LTQzLTE1LTQzLTIuNSAzLTQuNzQxIDMuMjU5LTcgMS0zLjI1LTcuNS0yMC41LTQ0LjUtMTYtNTcgMS4yNS03LjUgMTAtNiAxMC02LTExLjI1LTMzLjc1LTgtNjctOC02N3MuMDczLTcuMzQ2IDYtMTVjLTMuNDguNjM3LTkgNC05IDQgMi41NjMtMTEuNzI3IDE1LTIxIDE1LTIxIC4xNDgtLjMxMi0xLjMyMS0xLjQ1NC0xMCAxIDEuNS0yLjc4IDE2LjY3NS04LjY1NCAzMC0xMSAzLjc4Ny05LjM2MSAxMi43ODItMTcuMzk4IDIyLTIyLTIuMzY1IDMuMTMzLTMgNi0zIDZzMTUuNjQ3LTguMDg4IDQxLTZjLTE5Ljc1IDItMjQgNi0yNCA2czc0LjUtMTAuNzUgMTA0IDM3YzcuNSA5LjUgMjQuNzUgNTUuNzUgMTAgODkgMy43NS0xLjUgNC41LTQuNSA5IDEgLjI1IDE0Ljc1LTExLjUgNjMtMTkgNjItMi43NSAxLTQtMy00LTMtMTAuNzUgMjkuNS0xNCAzOC0xNCAzOC0yIDQuMjUtMy43NSAxOC41LTEgMjIgMS4yNSA0LjUgMjMgMjMgMjMgMjNsMTI3IDUzYzM3IDM1IDIzIDEzNSAyMyAxMzVMMCA0NjRzLTMtOTYuNzUgMTQtMTIwYzUuMjUtNi4yNSAyMS43NS0xOS43NSA2NS0zNnoiLz48L3N2Zz4=);background-size:auto 76%}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{object-fit:cover}@media only screen and (orientation: portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{object-fit:contain!important}}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{object-fit:contain}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:center bottom}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:center}.OT_audio-level-meter[_ngcontent-%COMP%]{position:absolute;width:25%;max-width:224px;min-width:21px;top:0;right:0;overflow:hidden}.OT_audio-level-meter[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__bar[_ngcontent-%COMP%]{position:absolute;width:192%;height:192%;top:-96%;right:-96%;border-radius:50%;background-color:#000c}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]{position:absolute;top:22%;right:15%;width:40%;opacity:.7;background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTkuNzU3IDQwLjkyNGMzLjczOC01LjE5MSAxMi43MTEtNC4zMDggMTIuNzExLTQuMzA4IDIuMjIzIDMuMDE0IDUuMTI2IDI0LjU4NiAzLjYyNCAyOC43MTgtMS40MDEgMS4zMDEtMTEuNjExIDEuNjI5LTEzLjM4LTEuNDM2LTEuMjI2LTguODA0LTIuOTU1LTIyLjk3NS0yLjk1NS0yMi45NzV6bTU4Ljc4NSAwYy0zLjczNy01LjE5MS0xMi43MTEtNC4zMDgtMTIuNzExLTQuMzA4LTIuMjIzIDMuMDE0LTUuMTI2IDI0LjU4Ni0zLjYyNCAyOC43MTggMS40MDEgMS4zMDEgMTEuNjExIDEuNjI5IDEzLjM4LTEuNDM2IDEuMjI2LTguODA0IDIuOTU1LTIyLjk3NSAyLjk1NS0yMi45NzV6Ii8+PHBhdGggZD0iTTY4LjY0NyA1OC42Yy43MjktNC43NTMgMi4zOC05LjU2MSAyLjM4LTE0LjgwNCAwLTIxLjQxMi0xNC4xMTUtMzguNzctMzEuNTI4LTM4Ljc3LTE3LjQxMiAwLTMxLjUyNyAxNy4zNTgtMzEuNTI3IDM4Ljc3IDAgNC41NDEuNTE1IDguOTM2IDEuODAyIDEyLjk1IDEuNjk4IDUuMjk1LTUuNTQyIDYuOTkxLTYuNjE2IDIuMDczQzIuNDEgNTUuMzk0IDAgNTEuNzg3IDAgNDguMTAzIDAgMjEuNTM2IDE3LjY4NSAwIDM5LjUgMCA2MS4zMTYgMCA3OSAyMS41MzYgNzkgNDguMTAzYzAgLjcxOC0yLjg5OSA5LjY5My0zLjI5MiAxMS40MDgtLjc1NCAzLjI5My03Ljc1MSAzLjU4OS03LjA2MS0uOTEyeiIvPjxwYXRoIGQ9Ik01LjA4NCA1MS4zODVjLS44MDQtMy43ODIuNTY5LTcuMzM1IDMuMTM0LTcuOTIxIDIuNjM2LS42MDMgNS40ODUgMi4xNSA2LjI4OSA2LjEzMi43OTcgMy45NDgtLjc1MiA3LjQ1Ny0zLjM4OCA3Ljg1OS0yLjU2Ni4zOTEtNS4yMzctMi4zMTgtNi4wMzQtNi4wN3ptNjguODM0IDBjLjgwNC0zLjc4Mi0uNTY4LTcuMzM1LTMuMTMzLTcuOTIxLTIuNjM2LS42MDMtNS40ODUgMi4xNS02LjI4OSA2LjEzMi0uNzk3IDMuOTQ4Ljc1MiA3LjQ1NyAzLjM4OSA3Ljg1OSAyLjU2NS4zOTEgNS4yMzctMi4zMTggNi4wMzQtNi4wN3ptLTIuMDM4IDguMjg4Yy0uOTI2IDE5LjY1OS0xNS4xMTIgMjQuNzU5LTI1Ljg1OSAyMC40NzUtNS40MDUtLjYwNi0zLjAzNCAxLjI2Mi0zLjAzNCAxLjI2MiAxMy42NjEgMy41NjIgMjYuMTY4IDMuNDk3IDMxLjI3My0yMC41NDktLjU4NS00LjUxMS0yLjM3OS0xLjE4Ny0yLjM3OS0xLjE4N3oiLz48cGF0aCBkPSJNNDEuNjYyIDc4LjQyMmw3LjU1My41NWMxLjE5Mi4xMDcgMi4xMiAxLjE1MyAyLjA3MiAyLjMzNWwtLjEwOSAyLjczOGMtLjA0NyAxLjE4Mi0xLjA1MSAyLjA1NC0yLjI0MyAxLjk0NmwtNy41NTMtLjU1Yy0xLjE5MS0uMTA3LTIuMTE5LTEuMTUzLTIuMDcyLTIuMzM1bC4xMDktMi43MzdjLjA0Ny0xLjE4MiAxLjA1Mi0yLjA1NCAyLjI0My0xLjk0N3oiLz48L2c+PC9zdmc+) no-repeat center}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__value[_ngcontent-%COMP%]{position:absolute;border-radius:50%;background-image:radial-gradient(circle,rgba(151,206,0,1) 0%,rgba(151,206,0,0) 100%)}.OT_audio-level-meter.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_audio-level-meter.OT_mode-on[_ngcontent-%COMP%], .OT_audio-only[_ngcontent-%COMP%] .OT_audio-level-meter.OT_mode-auto[_ngcontent-%COMP%]{display:block}.OT_audio-only.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_audio-only.OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:none}.OT_video-disabled-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:bottom right;pointer-events:none;inset:0 3px 3px 0}.OT_video-disabled[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAINUlEQVR42u2aaUxUVxTHcRBmAAEBRVTK4sKwDIsg+wCK7CqIw1CN1YobbbS2qYlJ06Qx1UpdqMbYWq2pSzWmH6ytNbXWJY1Lq7VuqBERtW64V0XFLYae0/xvcp3MMAMzDz6IyT/ge2ce5/7ucpY3Ts3NzZ1ygF57AJ0gO0G2jyZPmdbFyclJSAV1EeoEaUUSLGdSV5KLLFxzFmA7QVqGqDqjixhWkxCVeyRVl38wM6bwj6yYItYK47BAuu9B0gCqs6Ng2r494KQtkj/Dz2jHraw6qw2fdSE4rNmcCPCvZONP8iF1I6kdBdMaQJWZLeJqRWa2kPJAxXY+GxE+zxLI03GRh8lGSwoi9WCY8FWlCEh+8JOnT7MfPGjMuXX7Tt61hoaCi/9cKmKdv3BxeEtim/UbNpnbQiqF4MmT7kqrbr4lkMcTo46TTSpJB5g+8NHuVWnWuaampvhmO/7duHmrGluoO4C6OsJZGRrkDIld43ZqUOTnlkDSmXmabAoBU0vqBf+6KgFSxQ9++uzZ8rZApM81TJ8xM5me0Z/UF7PuBmdVdkGEb5gYDeQmyZNW3SJLIP9Kj64lGyMpmxRN6sOfIbkoAhKOdnv2/PmB1kB88eLFo+olyyrps3rSINIAzLonnqlqK8R9w+L86vtrt5L2nhug3Vc3ULu/Liz8AOuXESlZZONH6kmr7gtLIA9lRNeRzVukAvj3BslLnJNKgfScO69K+/Lly0ZbQW7e8tNK+pwBjqaSIjDrXgJkW1ciAZvbQjQ+RDahpBBKd5ZZsqN758hmImk4KQHnpDd8UwSkCyJarx07d4+3BeKJmlMHyX4qaRxpBCmNFE4KENvHDpAutVERn1kCVBMfeRRgYvZnx62wZPdnZkw92VQA5GClQXYRBze2S+iJmpPVVoJLA9l9QKokjcWKTCT1R5rhLg70NuSsziT16diIKkuAjibrTpJNDkn/e17CahtAjlAWJAYkb29Sb1LE9Rs391kILk8mVkyuIpuZcLKUlEmKkra1WuSTNuesEPzwoEploSVAh9Oiz+BIyd9dOHhtx4OEpFpVg6gbNK3yXX1j48N6U5Dz5i/gc/FDrMY3sTLiSMEkXxGxzUEUAGnbxlPaksMlHUXWAlHS8URCPseSohZbCSLjSSU7ixLXdzhIWVKq4Y7t2a/2bN0qGeKly1fYsVmk6RgIDz4J0bonyUOcjeYqm/8hRoYbWkigV2NH9CHAS60EkUkkw47hSRs6FqT1LR5AVcsrueXlK1d5AO+RpmBrZZEiefByytPCanRGNLZY0uF52gNDYr9sCRB8MHY0SJu2OJWKS2WQV65e4y31DmkCImEi0hBfufRime0RIhpbKen0/Ny9OYNW2ghyYytABjNIaxNuKttAWk6HPLn0k0FevdZwFinPWFIuKZbUV16NVko6jbWSDoPO3pOf8K0jQWLSQ0S9bdpkYck+m7vfWpAiHfKgBsZiGSSt0FqcTeU8WETqAHE2CgcAVd3Gkm4MD3xXYeI6B4NMItvKbcUpQ9gP+KMWnSsW+TaYJtoo+avBWLoKoK0CCSDud+7eXWQGZAXqV3YoQjQCfixJ8+fzj9ta3JHhlUeJ8wJOY2ws6eRKpPS3oqTvHAESEz9ya0naXL5WH6pt3FqSOhTHkTcKEXc6k1POh4Q9YJu/03TT4a8PoGMFI4i2EqSbOZAYaBkpCyD92RkG6KCSbjI/H0HEISBnlOZPFdcEzI2GTO4KBZICGKyAKLTEmJOB2txf5MbgohBINCl4FTqmpJMB2W+HiRn1Q2l6lXyPmiEP6VVE2TfGoaMYrHyPdtAnyI0jEOn9RLWmNEhvBBE7SjpFQZaShtLK+1S+T12lRwxUvrZlVPp8jE1PikeO7C/nyEqBDCB1t7+kUx4kKUWclea0yZC5BIGpiJSNSD9QgFR0RQKkL6KxHSWdsiARHJNYewoGrzG1/bk4dTPSunL2EyDjcbb7MQ+lQfZmkKiN7SjpFAM5CWAyGcwyY84YsZ1lUcbRNNtQMAdtQWGvQ0DyVjzYAKQfQFodeAeC1C8vzymXIZqD+ZEh/2OyLSalS/3VbnJZ+VqDXGjMrTCFuK4s66vVZUNfqaDolcbjOcb899sLpEE+I20GifywXe2QR3KElu99PzqjGufhREqB1pjCnG3IL3fY1v733r2FMsiGhutn0LAoJWWIGbPxjKwgjUbF0m52mPhigrpdXOecEq9pR6MkHbu2LOtrcZ9y3d0ODTb15y9MePz48aF79+8fvXnr9sljx2u2I7KNxDuaMPGVECoRs7mC4eT7SIruFNfNHK15MKuM2evwNq+4qjxvGnd5CHwNNynawW4cOlUZdG8b55IIJHmkItwrZHH6QxB3OSL9kTtAGpIvZiQB3Z4SKBfXQtEE9sashWAW87Bt3sYZNR6zn4uzJwWDKUKXfaKCdqUoBpLxSjYe9nqGiwWRBGipuGZ3Qm76itYLbbJI/PEhUApfw73uOIy9xfse3M9F9BuFJHcYrseSouGkHtCVtkuGTTikI8XgZzhg9SeF4VqcvSWiaSvNHQ8JwkNjIfEHemCmNLD1RaEfLs18mlgNuN6PFALHo7CyU5W2g00gFAQF4ozvibH04muwDbWraSFAyt/AAMzewgGR8uCeWn77xzBxPxgzPRCDDMZ14bQ/3jqGKGoHf2Hjgx3kw5LbaJDYWb52t9FMgw4AuWNWukNeuOYqOsmQi2jgws4PA/DD/z0B2x0/veCs4naw0cgybezid7X9jV3rX2RSs0wfLkll4pBGcgifg+NYxe1kJ2ycTaRq66uG/wBOl0vjcw70xwAAAABJRU5ErkJggg==);background-size:33px auto}.OT_video-disabled-warning[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAGMElEQVR4Ae2aA7D0yBaAc7oH12vbRmlLaxYWb23btm3btm2899a2bWuYtPZ01cmtU9lJrib315yqr9I3Oem/5/s7acwEnehEJzoxCcX2O+wEeIgRBDDaGjAZOgQ6ihRpLklHZDJIXK1WWymMIhGGkVBKCWMM+Iv/f/b5t7faYtM/sGgIS7j8RNLjceUVl41GvGN1BFiHy9sgtRWaYbhvuVQ6o1VOvV5/tLe3dyssKoZuh8xClkDEi2MMS6ZjR0cScxdK/+HgnJsmLccYOx0e/PUGUqfTJDEHkV5go9lcMQoj4R8RpSIRRUr4a9baTJFCCNfqESKJ7RYJibK0xoi05EhFRTxMi1Rit6xHAuLaKRLwEVi6q1x+EhlVpd3d3Wfh4VQkQhRhxthYLg7SRGqdLlIp7UVOHf+JhEhEMscUolVje3p63saeeOFoKsT7fjj++BNuw2I/0ouUENmGaQcQEilQvUU6xuWC0kqmVWCt8df6kG7WLoFA20VSCOyNh0RKPT+SyrTWtQsvuvTYCy84z3+oAdbgAiLGIvHjTz6bFuu/B3lKKfVkFKknwih6EnnipZdfXQZzepAupXSGSCfwUGZtkrx3t/0dSQGnnXbmdocdetArQoj+4VR23wMP3bj/vnv9Sv/rBmkish09ca655thHSrlWq4TFF1vkNDxsgjiUnPqZnHPABIq47jx7pPMcecShfz7x1DO7D6eit99576X1113nVd8rqLGAuDaNitJonTGIqHgQGQjDsJglMrUH5iDSEQbRa6y2yrNvv/PuWVmV/PTzLz8steTit1B9FtGJeZrJksmWdBzBMcami4xUkaY1A1Qe94WIaPGBApJhaERrLrXkElf8+NPPz6YMLs1DDjn0Wn9PnI/UiQadM4jNEkhzVsEGE8nIHESM1j5/KqRX+/IEiOQ/yifNBlEkpnb00cccesbpp13T3983H88/48xzrrvm6it/8U5JXgX5G6nSvSq1R5LATR7aYGkwMG1RSwkWABH+4jUb3vT/uJ1Z0xpjraTBRltrxUQhksIRmgTJyy69+Pv99tv3qYX6FxgU+fU33352xGEHf5wisU7nNWJpZRMkAjZ6aIN1mwV7h29Jo2wCHlveu/GV169z65E+T6koexCh6c+EEiky3lnxQKFjUeVyOeI5AOBzIiayRhJryd7YYnkIHgvB0qk9Tdql6N3XH4bRUIOIIIKJSiRb0hkSEpZKRd1CpEq8GxtIyCVmDSgFl94GacTgaJw1rUlYhYng0c4ewaUsmKRIJjpiqMSOCh9QeI+UYECmtQIsxEu6OorEcv6Rl0gu0woh8MhFkmSCTXVI4pC704WCFRJvSRNJSzrMMEZO2iKZTCHAZYnmvXCny7ed5vfZK3viHSBdIFCKEFj2+nt+73nw8m2uedcLJlktA++VNMEPaR45aYukcKnnCfY3/DFbZS8t7eHxNgsPM0N1hXhJJwwM1QbpoQFlog2R13a/zBxEYHAQEUYUM6qiVwEyBYoM6JFNF2kFLelI5KQf+fVI4dJFCguDS7oAyx2R6SFQJKRedSDj/cMg/RXQ6ZE05GSIDAaXdCi1I3L021SQWNJ1RLY5OiIdL4/yvuw8ADfWPFrSciaMyH8tEQPwf1uGG54g5+KlJGTmsrxsQdl5PKidnPFe2QS///7Hu+VS6WX/HYnf0sevGL7lXydwod2/9DykZq0s5yff0sgSWCigNOH7TPHL7ufj+/TH8P/+qYpL4HkBDiRYpEXeM8/89/9zzjn7EtY64dfd1nqccM7Bs8+9MKy8555/8TnKS+5MufH6EZVASkgPzf+mJXroet17JirU0ALST3nT0y5ONyLpeo1y64ih+vuQfsoTOeRFSJXa+SvyB90TUmdw49EjLaKpMQ0mzEeTzkWsd/oI6fzfiKM8gWg6X6OjpXstu5ZHnmIb0GFiu29MIUfUewkmVrEN3RqVQ/bY8FzNcquMBv/pCNUZ5pHHem01KdN/I/DG66/lLhKSvTO5M84kav5C5z2ZfyAivi9i9VGd45RH7UWJbjwGG/7NYsRECt7jiOToHedKAui8SW4CsxyRc54mKH/8f7ELhCCACyNcIl/wI+FaAJyc8yzRtinQPzWzuFZrFHq/AAAAAElFTkSuQmCC);background-size:33px auto}.OT_video-disabled-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_audio-blocked-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:center;pointer-events:none;inset:0}.OT_audio-blocked[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjkwIj48ZGVmcz48cGF0aCBkPSJNNjcgMTJMNi40NDggNzIuNTUyIDAgMzFWMThMMjYgMGw0MSAxMnptMyA3bDYgNDctMjkgMTgtMzUuNTAyLTYuNDk4TDcwIDE5eiIgaWQ9ImEiLz48L2RlZnM+PHJlY3Qgd2lkdGg9IjE1MCIgaGVpZ2h0PSI5MCIgcng9IjM1IiByeT0iNDUiIG9wYWNpdHk9Ii41Ii8+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNikiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwIDEgNDMgNDRhOC45ODggOC45ODggMCAwIDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAgMSAxMC4zNzQtLjQyQzUxLjcwMiAxOS4xMTQgNTQgMjkuMjA4IDU0IDQ1LjIwOGMwIDE0LjUyNy0yLjM0MyAyMy44OC03LjAzIDI4LjA1OGE3LjI4IDcuMjggMCAwIDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwIDEtNS01di0xM2E1IDUgMCAwIDEgNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked[_ngcontent-%COMP%]{cursor:pointer}.OT_container-audio-blocked.OT_mini[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_container-audio-blocked[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{display:none}.OT_audio-blocked-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_video-unsupported[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:center;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;inset:0;margin-top:-30px}.OT_video-unsupported-bar[_ngcontent-%COMP%]{display:none;position:absolute;width:192%;height:192%;top:-96%;left:-96%;border-radius:50%;background-color:#000c}.OT_video-unsupported-img[_ngcontent-%COMP%]{display:none;position:absolute;top:11%;left:15%;width:70%;opacity:.7;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:center;background-size:100% auto}.OT_video-unsupported-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:93%}.OT_video-unsupported-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;text-align:center;height:100%;margin-top:40px}'],changeDetection:0}),t})(),fP=(()=>{class t{constructor(e,i,o,r,s){this.recordingService=e,this.participantService=i,this.libService=o,this.actionService=r,this.cd=s,this.onStartRecordingClicked=new Ee,this.onStopRecordingClicked=new Ee,this.onDeleteRecordingClicked=new Ee,this.recordingStatus=kn.STOPPED,this.opened=!1,this.recStatusEnum=kn,this.isSessionCreator=!1,this.recordingAlive=!1,this.recordingsList=[]}ngOnInit(){this.subscribeToRecordingStatus(),this.subscribeToRecordingActivityDirective(),this.isSessionCreator=this.participantService.amIModerator()}ngOnDestroy(){this.recordingStatusSubscription&&this.recordingStatusSubscription.unsubscribe(),this.recordingListSubscription&&this.recordingListSubscription.unsubscribe(),this.recordingErrorSub&&this.recordingErrorSub.unsubscribe()}panelOpened(){this.opened=!0}panelClosed(){this.opened=!1}resetStatus(){let e=this.oldRecordingStatus;this.oldRecordingStatus===kn.STARTING?e=kn.STOPPED:this.oldRecordingStatus===kn.STOPPING&&(e=kn.STARTED),this.recordingService.updateStatus(e)}startRecording(){this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(kn.STARTING)}stopRecording(){this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(kn.STOPPING)}deleteRecording(e){this.actionService.openDeleteRecordingDialog(()=>{this.onDeleteRecordingClicked.emit(e)})}download(e){this.recordingService.downloadRecording(e)}play(e){this.recordingService.playRecording(e)}subscribeToRecordingStatus(){this.recordingStatusSubscription=this.recordingService.recordingStatusObs.subscribe(e=>{null!=e&&e.info&&(this.recordingStatus!==kn.FAILED&&(this.oldRecordingStatus=this.recordingStatus),this.recordingStatus=e.info.status,this.recordingAlive=e.info.status===kn.STARTED,this.cd.markForCheck())})}subscribeToRecordingActivityDirective(){this.recordingListSubscription=this.libService.recordingsListObs.subscribe(e=>{this.recordingsList=e,this.cd.markForCheck()}),this.recordingErrorSub=this.libService.recordingErrorObs.subscribe(e=>{var i;e&&(this.recordingService.updateStatus(kn.FAILED),this.recordingError=(null===(i=e.error)||void 0===i?void 0:i.message)||e.message||e)})}}return t.\u0275fac=function(e){return new(e||t)(h(td),h(vi),h(Mt),h(Sr),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-recording-activity"]],inputs:{expanded:"expanded"},outputs:{onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked",onDeleteRecordingClicked:"onDeleteRecordingClicked"},decls:20,vars:29,consts:[[3,"expanded","ngClass","opened","closed"],["matListAvatar","",1,"activity-icon",3,"ngClass"],["id","recording-icon",4,"ngIf"],[4,"ngIf"],["class","blink",4,"ngIf"],["matLine","",1,"activity-title"],["matLine","",1,"activity-subtitle"],[1,"activity-action-buttons"],["id","recording-status",3,"ngClass"],["class","panel-body-container",4,"ngIf"],["id","recording-icon"],[1,"blink"],[1,"panel-body-container"],[1,"content"],["class","item recording-action-buttons",4,"ngIf"],["class","not-allowed-message",4,"ngIf"],["class","item",4,"ngIf"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAACyCAMAAABcOSIOAAAC+lBMVEUAAAAXf/wpbeLk19IWf/zq2Mnf19vc3OYWf/ze3ujc3OcVf/0Wf/wXffvY2OQWf/3d3efd3OYWf/3d3efe3ujd3egVf/3d3ecVfv3d3efb2+bc3Ofc3Ofd3ejc3ejd3ugVf/3/zJcXf/zc3Obd3ugVf/0Wf/zPz93c3OdZW9QVf/3d3efZ2eQVf/0Vf/zb2+j7voHe3ugVf/39zJgLDxbX2OUYgPv/zJcXfvz/zJfd3eja2uZTVHd6e6Lc3Of/zJd4ead7fKOevuxXXNX+zJj+yZP/zJd2d55an/T/zJelpsZfd9b/ypRXXNXkhiOiqc0BBw9ZW9T/zZYAAAD1ljH8y5lxc9jyjiXwkCr+/f3/zZfsjCYAAACbq9EBCBDzlzjtiyVtbpYAAQLjw6b4okg9j/PjyLX3sWlrbJNCZ+JTVHegyv0SaM1clt6WmMlIXI8Vf/3/zJf////V1eT/lSalpsbe3unY2OVZW9RTVHflhiLnuIgAAADU1OT9/P5RUnYTf/+qq8lWWNT+liimp8bp6fFyc9BhlODu7vT8lCZ6fKTKyt22t88qhfW8vdD+y5bc3OgggvhYWXzFxtpcX9SUw/2am+WPkMqio8dT2WpiY4Q/aeSTos0ld/NUXtf3kin+nTfqiiXx8fYyiO/39/rk5O44gd5HZd+Ojqf6yZbxjST/tGaGiKHyyJ3+xId8ftntvoz+qVBIjuV3eJ5eX4D/vXiGs/A9i+j2xZIhf/GKi9uEos7ywpDgwqf/yJDslDjZtJC1s7fMsJcZd+hrmdWlq7dydJlxqPG4rKO3yepTkuB3m8pQhceaq8PGubBTYHZTXXZTrG7vq2Tlw6JTcXS4km0MLFXik0A7kPhek9Q1abhoh7TOvK1uZntUVnhT0WuZoLTnu5JsbYxKW4wLQoRUU3VTwWzJkVgWa9KqkYfbrX7yoUs0Kh8OV66WiYdpVUGGnr54iaP1s293YEjMpH6qjnW3iV2ZelpLOyzd0MtdX7WHiMxkgKclYKhp7MdAAAAAcHRSTlMA/gcE5w4JFvPvtSTcEPg9lHLQNPg8GqAuKuuI29K/qk7ycVZ9i18fyb2wRE3FfyMd37k8/eem15jmZmGV1FwuGm/87MeGnE3+roJpYz313q6ZUsi/uuXWl4pxbVs3kWBGNibl3NPFpH3w6efczLu2U2kwRQAAFbNJREFUeNrs2T+L02AcwPHnic8QeJ4QyFAyaQgkQ6EZOpQOFhSHG8TB0fE2/ww+PRCa5eJB9aAnelSP6tXecuILsIODJ4g9dJK7wk0HVUQUXHwDLvaBmIfmkvTZmofmO2XI8uF5fvDwPKCoqKioqKioqKioqGgmDWOsKWDZUrBbNxBCRtVx8TLxS24ZQRoGUdktgeUIewakM0HimECg1ZuXLwF5K3mEJoTq5nx4o9NpSItXXIOmhLzsbb9y2+/ufpIWj2uQplexQEYXfd8PpMXrBs1MdbRMurx4i9B5Vc0surR4C9H5GXoGXVa8SahIxEqnS4pXylQsZKXSJcW7kApG9DS6nHilOk8MB/1+f8C+DJxClxNvornwvVartdcfQEprWjJdTrwFBeAshoe2GJ3jV0B+c6EQ/NnDv73e4T7BAnSOH3YaqyC3WVAI3nvenvbybT2dfhwV4Xc7nRwvOyZi8Hus9jtiptGPxr/Cxkd+WHeYZzqoC8NZb+w0+vH4Rdi3E0noJhGCbzze2nrUbm+WlWQ6W3bZ6MBSBeBPH6yvrb3a3tisaPGJuetHdtnowFWF4KztON10yOlPbpeNDlwkAmetf57Z8HodUcro3B6nXwX5Tq/ATDhvxwNRJoOHdG6P0V87GOQ6za6oGXDeHTOacQdRFhz98GfWPUanhpXz+3zNvpUO512IfifRkIxOGZ7bY3Sq1vN8nX/u2vUrGXDeDcBSLDYhvCk+4PYYfVpFBzlNDM7pZk2lsUbDiR+E9pOvcTpFbh42vVLSXdtzHM92dawIwzm95CF6pv33339HeD8IOJ3f6S42xbTLRIXhkKqk6lhCcE5Pfqu4f/ik2fyPD7qTSTdGp7C20IFXrBo6c3ITgfPOlyFN6kuTxfD+5M+Hg4OPE04Pq2KwsPSa6JE1vR2aGPxHvJnFuhCFcXyq2lJUq6ra20W0KC1CXJFKPNSLRCTEKx48e+iozHmo1lgaFblpG9uLhFSLxi5xqX0N1/ZA7EsIYt9iT0icMzPt12lnalp6/Sy36t6H33zf9z8L9xRNC/IvH9OEl0tAXWDAYOr/0A9GtBHxXDaRSOb+pJ65Sos59A7Uwf3/BH2fUaomxLN5FInEIgi/X1/9fqX3rtMvHzyEhhff6fbo7qzvP6CZiudRLMKTUF71+5f2F8kmh1cvCjlIfrKqBfNmzp49c858qvvo37eJGc+msbgAyimZdcL1/SxZ54n8syf3tvK9Vnz79ObTM29vTljMMXsO1WrAXLk4mOOSAwlQl014wtWLsMN78kIYshc3ibDgzb3sLvfBAxoQB/NIBbF8XfWDx0pjTmouUCyWngIxFzO7e3q+3/hGxMFcuXqm3O+npJb9p4trmUd1B8MUiwNxJtaA+qWCYF5YyYZrOAOdDkzojrIP6aVYHMhHxMTqzfrB6+VJz0hscl+AegXdMO2DBjQsDu0OJEFdvt3pS2EpdfDt3o4fplwcyAvtrmhxO1ugBY5tCUsgXfWZLd/a9O+pWBzIoep+Z+KgLp3uhCvSi/5NKfXZrVbvMVG5OJCI1fa7nLrqXIour2zS+b/9zf+oev9eDYpDvIuLLqfO3jlKlzgFISe+xvj8XUKdajGTGheHfgeysie3jgvloqfOstL7nV303m/fa9RbfG0zvYGLCCBbbZ6XP7ReOkRLhxywfxf+y1ck6yZ8e19WfzuUaiUzpjYhDurQ7rLqB0+mZEIOuEjUU9+w7if6cyntJ7zo2dLT+yzeXCzeqHosnZO9pVE9gqLvuhiWrTpx/7T4/VH6xmKBm6rw+Ba2fI+RvHkD4jDrYJ6VvaBiLz6Got+HkKuZdcL7xTdo+lOp6HfZsApavkXqazesUCwOCQ/dnpO/m8tcgHinj1QrQ8LTmL1vJrzCvwnmP7s68KVN6y4q+0zliw7iCkmWxSN5MK9VPxst0PKLOjygG1Eat/qbvTjsePO351EIN8mw5ry0I6g/MXwbpw7iSoknIjHsHYswWfjCWvUtF/am6DonFziuf4++erP4e6Fw6D0352/D0xDqzIR7NndHa/N5qD8wkVdfCgmtmGw+nWbyIC6pfimqpN9Zclx/gzv9/aGj9NFvnz79OsMSdRS63WTZLQN7m7RVjWARvTGoL6+eXtgM8Th4S6tvOV2/30GdY8KNvQUuDjvwm+cRpmtac9PuH8gMNGqoSkyOseKDOlFfdhimtXniEseXD1FF/c6+5dXfR49Ce3QiQuz8UJ26KXWGcesoYHLvgRaqgjEqTn3934snmTSTyFWpHzxd2e8bJbXham7C03t7U+U9nyqEePeQa2wTDd+bwegh7IL4jSmi/+j+j9Tj+UgM/0hneXUoerRyP8PWccc30S/wsR5u7zJdSKDd1rj6iHGMyN1DHoVJNOqg/pfmHDGU5NSh6NFUnf07y7KqTLFYVJFX5NeR8nb39u1MCAnYm1BX67Eq9LxtHAPqWv68Cup/b05AWaIORd9LE6CWld7Fy/feffn6/PnzG18+Xi5i8477NMc5rN7VWVY3BEWLtMZj0nF25oBG3j3I8Fg15FOtTFld49WTLx8eBvW/NIdzzDqId+j36qWNzVx+9/zE8kUlNj3feXnrORojBPx5BLTrdeBk1iPkIR+tdojsWkY4BXevWph8ftY1Rmagn1zKgfpfmgPJdbCmRyuWttRKtlL8xglBGuyv0RX31ZlOVEGw3MiT2xFR17Xhj8Z60R9M8+q9AxTVxhCIstZIHgFJuT+ox3PZZDKbizdgHmPWlW8ocL+nJFf1rV82LaplByyDHWHsHgF1vVbYpBkNZPjNNj0ZBD+lMfstOml1jZ7h8em0LoYwDjeJiSx6+EH2G1BXPZ5kEDe/sGeTIBERgzpL11JR0ahfL6UcW/x4C3yB5Qfgk6+oOs6fD4G7YwRfcgf/IMw+7s2AyWU3GJywbRNhK7W8SedgCPj5WezCzPfpWU89y0RiQiXxspXIyW3lZdQz57D6Ubom4NmtN1YtkmLzbvjkwpHbXSgG6nYzkTEZ+NjzuviPdsRjlI47CzYmOM1OIeXUbv4FCfg66kkUEzUygtLLm4M6u/8kVj9UW/WLr8BWrH6cBnYdmdaFAIOFGmG2OYTU86EqrDZpd6HuJq738eOz2RnCZPKdHaBea17thA9pyXidOQd1YWWDlIN/a8sc2bV7s7T6vhRdQeHKtBCqrLqx3WpAcjiMgRFqiZ53DySqRhO3xKupKXzc4eAbGgZ1eXOg3PcwErLqHaejXMoBVw+GVftPpejUPhl1WsTuz/c6V1fMuhW1ozoYHO6geOa1Go1aO4UU3kqq3dtfSvreeHrGyKpnUUQGlE/mhPTPo4icOgk5IeWAY+dOcfdQB2A5Fwc8cPzAvs2LTnxeU+5oNTUZuQx13X0Qd1qbx2t1+Xwu4xSL18EYyYwb1aUt3jicmZPk1HPpiCw4fJhEIpkg6S+vrnoUhZSrAjpeJuB379jMP53XxxAmsjo0l6I8BquhjrjeU866EUG9Pc0IOLz+oImazJDtj46ffRd+RBPxhnEtqFddvNWx5+9n6qmTnRyknJjUvnoBD+LkzSjW7brda7A6YHW3tfNj7UQ1uKZAyOtcjAjn5IDfbMfRVko5I7ejyYT2LAN1CK/mYZKdfL9DytUgrX68JC7qhWs/8JG9Y3qbCYd4wEHy3T+izY7b28DFn8vR3u50T9FRgDbo603SDfC524xkGMz8fjbIfZvueSShnvwb8Th/fHnUiDoE/HGR+HLMIuyOutb4TIGA16gnvs6xlN+JjCbSA4YpurFja64yNGaPqc3tGsdlmsvttnrbvNryIb63BauPvh1L16rn0F+Ik/M6v4mFgFekvmofCcB9y8FbQBh4ZCDaXKnbyK2j3cL1AF6xZFCrPaT2A91+Nf6Dx6srVd2BX/Ub3cmAumjQmxXHxIn6wZMQ8IrUScCnSMnBHAb+MQKwvB67jHWb8BnOQKJfFttvWu4ltIkgjAP4yJpdsqBsSMKSbJIiu9BCAjGIiBYUREVBFMQXelDwdRXERCPxgc/YGFP1JEJTX2grRcX6topY3ydFVIQivQgKooKC4sGZnazfms3ETTb7P4ivy8/vm/lmpo20v71yEP+lhBRCQoTOd0xfl6tB3+sMfiB9lXwD+DbY4C0ZosJ8FX2IlBzk5sY32dskUdWbWiBvrAkBsePpSNN4pSRCcdmPZOPWPm5hGujQ7s7gdIf/AnTGcMv39VTRoRdAbtT95XjjPBMWVQ7ZjC9tJDLNg4Jt8aCXHmjwmAM67O45J3Ay9R/hqY6XOnutD+4m8l6oOmhryUl/fFqvQctLgg121ZgriUEUFFUJ39/ohmelH3AIx3lEdzn2Dt+PnyV6sxY6Q06zWDWdZxRkM/TKRhOexvlFLRZQaT9Y6KdLjuAkR/fTAw3zSHP4Ur4vm832WXhWOpQ9vwHoHdORbXsM7AEN/1KR9ZaRrfQzTuG5o7v20w2e2fEDZSyvT6914vkJTzYeZDuClgJ7J0pENYTDxyz0kxmHcP1D3PSuztzoBnuzJD02ig7J57+RyU7jQw0k6RMjXm84IkqSFA/K0STd+4EOI90RfNfmzQad0fKHr7/INkCHlO9IsvFCG0SNhBNC/pDAkZ+0t0syX4u+1zkc6LXt529vo/TevD06ZO1E5e9w5xuye0LxuB/b6a6vIcRX00+XHMMJna51sB82lxz/BtAby+7ZSjNfihISEr7OBLxReXqSvlolENdWRT+TcwYHOn6igVw8/xd+kfz6o07vY9NZf7LWN94Y7Qm7vR5UooG/sz0lkS+xd0b9SAN6I3tciQUH+phhYgT89fP4uyVuEzjJXSz/8SPPlLP+VfKrYkbZO22w4TEe4hUTHFI6ksEA0G3vccVzw9sZcKDvfLatTj4t+PH7xldm0fuYa2Gxz3iLtTfZ4WESEpBDfJtI3ujhvr7XHvz4joenGXCgk8XOzP1z5GuLF1jynmyWRd+9Rpkmjqdv03bDqzHvv/iI2t4h4zPNTONt7nTGHnzHjocnWXCgj3nPcN97/ODUGPwqzaTne+vMvRdhP0++6NYhNLK/x/X1DvH64pFo+skbSodrS304zpX3JQYc6OQ7p2q6n13rxm4cJr2v3sgvr08ipIbhEG97l5cjJn1A0gKZucaL7F678AtF7AY4g45bfriKfX8Yu+FrrV9ZRa97xl1OIMr4OGo47aochc6PpSaPrdBPZmzDM0w40Em63w7fv1dRP37/7Kne50B/l2es9Lozf9lEUkM52Qjao0nKND+PkBCc7lMUSRY7IqmUt1L1myXHcMhlQzfm1OW3OE8vn+oes5O6gf68dlf/73y/UsdwjdB5UX+d9CVRJZxHaE/KTw5Reuvge251m4A4gLZBz2N33Y5f7EENx08vbynJz5l+M/wI6E7gkFunLMya9LN3GZtc/Y7vWY0aj6+UhgdKI9KTY0BvAfzE/kMbndLrd/zyhtBwprPgQ5PxkQbo7sOB/pqxv0PHsza6Zlue4tsSPNKjAN19OJsO+zt0PL2/lstl/RILB3nURDrNU12k+ORSS8Pnil2uwtn0PKFDx+8uXxocGBgaGBjsv1SmfPx7G7gm6JyG7YBv89NPQVTRc+eOFzKuwoFuXepQ9t3l/gG46BM+Tv/g0JSJqCn7Pyf5sCYYdKh4rmt05L2LcKCzpjpNuX/I+par/7AINWVXo2lzYn6DDhXvGt1xxF04u+FN9Lsgr8oc1FyS0j+FT3X+Q9crjv+DJHfhMNysuxzkG4sOHd9guLhoxoeXmnb4jF5xLHcXDqc561K3UfYJk1Cz4YNaWzQVDodTkZiimqte1Cu+deSge3C4vjB2ORtln40chPO0h0KhpMDDNkfHGan4kZGCa3Cgf2YsdRtlX8KjFsSgZ3Q4lo9cKIyO7Mq4BIfc+MCa6pAXDPrUGc1ZBVVRpgUFjlaf5yndmONHjhRyo8eLGdfgsNRZRYe8nmBlOxhv8Y4AOchGRUnTFFmMiUu34PyqzPFdoyOFTbuKbsEh3d+Z+ztk+ZxWLnY1nIYE8FsFfowm9Moc7yIVz2xyDQ6bnI2iL5s4aULrFns8ZT7IxtuFUCetemWc5dytOLT7a6u8r0q+YBXi5rVssvMiVZdKAW9sOg+fZN53rkDHmasVh+PMB7Yc2p1DaH7LJjsX9Cmar1NV1YTfg5CJXtzk+jgD+Y1XNuT6vXzG1Nr2+chpgL6n2JVzFw7p/sxe59Du+kOUZwpjn2shHX98vVBwFQ752mPZ263ylagefR7XQjrELThc2djNDnJqY23xszwu0F2CQ268si3nJs1iXt5coLsGh4nOaHbIYrzOPRMnrZgHNa/KVBfo7sDph3Xh7M4uee+f9u6etW0gDOD4SZHLgXQIbhAaZYEUIiohZJDlyR1kgxOXUtMsgUylY4uzdSy00DEYOnQIlOCpFHcIlA4mKQZnSXGGeM0naLasXXoXhyqt6/pFl8Ry9IPgBLz8L7asF6xnd/fbk2q1VAkLpHukbJF5Ovtw8g3N5lH3e7vd7h41G9GlttcXPtBU6uzs7OTk5PycnobMbm+Nk80xTmcfzjW7h6f91qCl1T/u7fz4NPBl4DNxcHCw/WftrafHD9/r9UkTa+xf8OyPztp95s3RETsDj6N0NuEcFCRse5b3vLV1XfIumzuPDac/mjGcE7DlmLKqIJ5wS2GeKFzDCoT3mN1vjqZH4aubujBDtmeYKgJXZajl++vM08uAjYcrL9+9fxOFLwMAZIubKts2tGgUO88jpCiKSJFHtBkyLt+uAUbQ2srPq+EUMvGE3RAHpspfJCuqZuqGb3k2liRJoMgjxs929plu6cMMYObB2oso/JKiY25stuTrMqLVoub4tiTAEU9sdnud4+PDzuBDPqZsDbDEb66uRuHRgP3/ZVuOrPD0eZphC2OWidw1r9EgP829t+1e53S/9XHm8kIVXLNoEMpwtWAHOs2mZAPD+hRe0VVofj3qtg87T/OF7LTh5Ry4Ibyo6YGHJeGChD3fMWURgUtiINRnQg9nGoK/lqttlMqVkKzB+H33bL6yUVwCN4pHiqgSooL4ofkRsUBP4+mFMNct5mpVsgrlynpIdgYKhexv5I98uF4uVXPuEpgXCq7HBi0ZROgVoUzGJStRLOYGyG+um5mf6GiCa3yCPg+DraYkwzoLMIHtyKozAU2QOCpm047neYjfCDKjdh0kj+pxLNJ9kEB0OmV8VvI2dJSo2zBuugESCsnRAcxMhLmd1zkBpGqOhYXZ/v2cAxKOR6JsOr4nTbkCnJHMd/owerZGNywMucnKobMo5dECmMEk2z+sgUWEZGdMvWAkcEduQkjz4ejwQAWLjJetf8ZDW5/zwetM4gMJ/n3FwpERuBOUwdnqwfm9QNfEBduqj4EUkVDQ3apOpVKpVCqVSk3sF8syBtQPXiTJAAAAAElFTkSuQmCC"],[1,"item","recording-action-buttons"],["mat-flat-button","","id","stop-recording-btn",3,"click",4,"ngIf"],["mat-flat-button","","id","start-recording-btn",3,"click",4,"ngIf"],["class","recording-error",4,"ngIf"],["mat-flat-button","","id","reset-recording-status-btn",3,"click",4,"ngIf"],["mat-flat-button","","id","stop-recording-btn",3,"click"],["mat-flat-button","","id","start-recording-btn",3,"click"],[1,"recording-error"],["mat-flat-button","","id","reset-recording-status-btn",3,"click"],[1,"not-allowed-message"],[1,"item"],["mat-subheader",""],[4,"ngFor","ngForOf"],["mat-list-icon","",1,"recording-icon"],["mat-line",""],[1,"recording-name"],["mat-line","",1,"time-container"],[1,"recording-duration"],[1,"recording-size"],["mat-line","",1,"recording-date"],["mat-icon-button","","id","play-recording-btn",3,"matTooltip","click"],["mat-icon-button","","id","download-recording-btn",3,"matTooltip","click"],["mat-icon-button","","id","delete-recording-btn",1,"delete-recording-btn",3,"matTooltip","click"]],template:function(e,i){1&e&&(O(0,"mat-expansion-panel",0),we("opened",function(){return i.panelOpened()})("closed",function(){return i.panelClosed()}),O(1,"mat-expansion-panel-header")(2,"mat-list")(3,"mat-list-item")(4,"div",1),X(5,ZX,2,0,"mat-icon",2),X(6,XX,2,0,"mat-icon",3),X(7,JX,2,0,"mat-icon",4),V(),O(8,"h3",5),se(9),ye(10,"translate"),V(),O(11,"p",6),se(12),ye(13,"translate"),V(),O(14,"div",7)(15,"div",8)(16,"span"),se(17),ye(18,"uppercase"),V()()()()()(),X(19,mJ,9,7,"div",9),V()),2&e&&(U("expanded",i.expanded)("ngClass",Xn(17,G1,!i.opened)),A(4),U("ngClass",Hc(19,Ap,i.recordingStatus===i.recStatusEnum.STARTED,i.recordingStatus===i.recStatusEnum.STOPPED,i.recordingStatus===i.recStatusEnum.FAILED,i.recordingStatus===i.recStatusEnum.STARTING||i.recordingStatus===i.recStatusEnum.STOPPING)),A(1),U("ngIf",i.recordingStatus!==i.recStatusEnum.FAILED&&i.recordingStatus!==i.recStatusEnum.STARTED),A(1),U("ngIf",i.recordingStatus===i.recStatusEnum.FAILED),A(1),U("ngIf",i.recordingStatus===i.recStatusEnum.STARTED),A(2),Ne(Se(10,11,"PANEL.RECORDING.TITLE")),A(3),Ne(Se(13,13,"PANEL.RECORDING.SUBTITLE")),A(3),U("ngClass",Hc(24,Ap,i.recordingStatus===i.recStatusEnum.STARTED,i.recordingStatus===i.recStatusEnum.STOPPED,i.recordingStatus===i.recStatusEnum.FAILED,i.recordingStatus===i.recStatusEnum.STARTING||i.recordingStatus===i.recStatusEnum.STOPPING)),A(2),Ne(Se(18,15,i.recordingStatus)),A(2),U("ngIf",i.opened))},dependencies:[Ii,Ro,Zt,Mn,oi,Lo,oa,ir,Sb,ku,Lu,Nu,Xf,n7,yb,Cb,vv,Jw,_v,xh,nP,Un],styles:["#recording-status[_ngcontent-%COMP%]{color:var(--ov-text-color);display:inline;padding:3px;font-size:11px;border-radius:var(--ov-panel-radius)}.time-container[_ngcontent-%COMP%]{padding:2px}.recording-icon[_ngcontent-%COMP%]{font-size:32px!important;height:32px!important;width:32px!important}.recording-duration[_ngcontent-%COMP%]{background-color:var(--ov-light-color);padding:4px 8px;border-radius:var(--ov-panel-radius);font-weight:500}.recording-duration[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.started[_ngcontent-%COMP%]{background-color:#3b7430!important;color:var(--ov-text-color)}.activity-icon.started[_ngcontent-%COMP%], .failed[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important;color:var(--ov-text-color)}.stopped[_ngcontent-%COMP%]{background-color:var(--ov-light-color);color:var(--ov-panel-text-color)!important}.pending[_ngcontent-%COMP%]{background-color:#ffd79b!important;color:var(--ov-panel-text-color)!important}.panel-body-container[_ngcontent-%COMP%]{padding:10px}.panel-body-container[_ngcontent-%COMP%] > .content[_ngcontent-%COMP%]{align-items:stretch;justify-content:center;display:flex;flex-direction:column;box-flex:1;flex-grow:1;text-align:center}.recording-error[_ngcontent-%COMP%]{color:var(--ov-warn-color);font-weight:600}.recording-name[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.recording-date[_ngcontent-%COMP%]{font-size:12px!important;font-style:italic}.not-allowed-message[_ngcontent-%COMP%]{margin-top:10px;font-weight:700}.recording-action-buttons[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}#start-recording-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-tertiary-color);color:var(--ov-text-color)}#stop-recording-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-warn-color);color:var(--ov-text-color)}.delete-recording-btn[_ngcontent-%COMP%]{color:var(--ov-warn-color)}#reset-recording-status-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-light-color)}mat-expansion-panel[_ngcontent-%COMP%]{margin:0 0 5px}.blink[_ngcontent-%COMP%]{animation:blinker 1.5s linear infinite!important}@keyframes blinker{50%{opacity:.4}}",".activities-body-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.activity-icon[_ngcontent-%COMP%]{display:inherit;background-color:var(--ov-light-color);border-radius:var(--ov-panel-radius)}.activity-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:auto}.activity-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.activity-title[_ngcontent-%COMP%]{font-weight:700!important}.activity-action-buttons[_ngcontent-%COMP%]{font-weight:600;position:absolute;right:15px;top:15px} .mat-content{display:block!important} .mat-list-text{padding-left:10px!important} .mat-expansion-panel-header{padding:0 5px!important;height:65px!important} .mat-list-base .mat-list-item .mat-list-item-content, .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{padding:0!important} mat-expansion-panel .mat-expansion-panel-body{padding:0!important;min-height:400px} .mat-expansion-panel-header-description{flex-grow:0!important} .mat-expansion-panel{box-shadow:none!important} .no-body .mat-expansion-panel-content{display:none!important}"],changeDetection:0}),t})();var Yi=(()=>{return(t=Yi||(Yi={})).STARTING="starting",t.STARTED="started",t.STOPPING="stopping",t.STOPPED="stopped",t.FAILED="failed",Yi;var t})();let py=(()=>{class t{constructor(){this.broadcastingStatus=new pt(void 0),this.broadcastingStatusObs=this.broadcastingStatus.asObservable()}updateStatus(e){this.broadcastingStatus.next({status:e,time:this.broadcastingTime})}startBroadcasting(){this.startBroadcastingTime(),this.updateStatus(Yi.STARTED)}stopBroadcasting(){this.stopBroadcastingTime(),this.updateStatus(Yi.STOPPED)}startBroadcastingTime(){this.broadcastingTime=new Date,this.broadcastingTime.setHours(0,0,0,0),this.broadcastingTimeInterval=setInterval(()=>{var e,i;null===(e=this.broadcastingTime)||void 0===e||e.setSeconds(this.broadcastingTime.getSeconds()+1),this.broadcastingTime=new Date(this.broadcastingTime.getTime()),this.broadcastingStatus.next({status:null===(i=this.broadcastingStatus.getValue())||void 0===i?void 0:i.status,time:this.broadcastingTime})},1e3)}stopBroadcastingTime(){clearInterval(this.broadcastingTimeInterval),this.broadcastingTime=void 0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Xie={urls:{schemeMatches:!0,tldMatches:!0},email:!0,phone:!0,mention:"twitter",hashtag:"twitter",stripPrefix:!1,stripTrailingSlash:!1,newWindow:!0,truncate:{length:0,location:"end"},decodePercentEncoding:!0};class Jie{constructor(){this.autolinker=new _$(Xie)}link(n){return this.autolinker.link(n)}}let pP=(()=>{class t{constructor(){this.linkifer=new Jie}transform(e){return e&&this.linkifer.link(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=zn({name:"linkify",type:t,pure:!0}),t})(),gP=(()=>{class t{constructor(e,i,o,r){this.broadcastingService=e,this.participantService=i,this.libService=o,this.cd=r,this.onStartBroadcastingClicked=new Ee,this.onStopBroadcastingClicked=new Ee,this.urlRequiredError=!1,this.broadcastUrl="",this.broadcastingStatus=Yi.STOPPED,this.broadcastingStatusEnum=Yi,this.opened=!1,this.isSessionCreator=!1,this.isBroadcastModuleAvailable=!0}ngOnInit(){this.isSessionCreator=this.participantService.amIModerator(),this.subscribeToBroadcastingStatus(),this.subscribeToBroadcastingError()}ngOnDestroy(){this.broadcastingSub&&this.broadcastingSub.unsubscribe(),this.broadcastingErrorSub&&this.broadcastingErrorSub.unsubscribe()}panelOpened(){this.opened=!0}panelClosed(){this.opened=!1}eventKeyPress(e){e&&13===e.keyCode&&(e.preventDefault(),this.startBroadcasting())}startBroadcasting(){this.broadcastUrl&&(this.isBroadcastModuleAvailable=!0,this.broadcastingError=void 0,this.broadcastingService.updateStatus(Yi.STARTING),this.onStartBroadcastingClicked.emit(this.broadcastUrl)),this.urlRequiredError=!this.broadcastUrl}stopBroadcasting(){this.onStopBroadcastingClicked.emit(),this.broadcastingService.updateStatus(Yi.STOPPING)}subscribeToBroadcastingStatus(){this.broadcastingSub=this.broadcastingService.broadcastingStatusObs.subscribe(e=>{e&&(this.broadcastingStatus=e.status,this.cd.markForCheck())})}subscribeToBroadcastingError(){this.broadcastingErrorSub=this.libService.broadcastingErrorObs.subscribe(e=>{e&&(this.broadcastingError=e,this.isBroadcastModuleAvailable=e.broadcastAvailable,this.broadcastingService.updateStatus(Yi.FAILED),this.cd.markForCheck())})}}return t.\u0275fac=function(e){return new(e||t)(h(py),h(vi),h(Mt),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-broadcasting-activity"]],inputs:{expanded:"expanded"},outputs:{onStartBroadcastingClicked:"onStartBroadcastingClicked",onStopBroadcastingClicked:"onStopBroadcastingClicked"},decls:20,vars:29,consts:[[3,"expanded","ngClass","opened","closed"],["matListAvatar","",1,"activity-icon",3,"ngClass"],["id","broadcasting-icon",4,"ngIf"],[4,"ngIf"],["class","blink",4,"ngIf"],["matLine","",1,"activity-title"],["matLine","",1,"activity-subtitle"],[1,"activity-action-buttons"],["id","broadcasting-status",3,"ngClass"],["class","panel-body-container",4,"ngIf"],["id","broadcasting-icon"],[1,"blink"],[1,"panel-body-container"],[1,"content"],["class","input-container","id","broadcasting-url-input","fxFlex","55px","fxFlexOrder","3","fxLayoutAlign","space-evenly none",4,"ngIf"],["class","not-allowed-message",4,"ngIf"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADECAMAAAASw+wcAAAC/VBMVEUAAAAAAAAAAAAAAAAAAAD29/kAAAAAAAAAAAAAAAAAAAB5oZEAAADIlnQAAAAAAAAAAAAAAAADAQB2nY0AAAAAAAD06ucAAAAAAAAAAACKhIP09vj09fYBAQEAAAAAAAAAAADQzMvf4+fz8vPx8vIAAADl5uby8vD89vD18/Dw7u8HBwaeudLZnZDb5O0AAADz8vGyqKT2+PnS0M4EBAQBAQG8trTB0uGnwNa6zN7b5Ov49vHf5u3e5evy8e+/0eH88OH88eNnjH/779+ooZ05ODZoXFjPxL6jnptuZVy3sbB/dnRPUk+NhYTCvLn46tvNyMZYSEPMo4aDe3qmhnHJwr9+bmc0OTeLfniFhoLjrpguMzEvNDIeHRz45sf///+mv9bT3+vidmBwZmTi6O1uY2FIPzyiu9Lm6+/uvX90amjjclp+qJd3b27FjmtrYF797M1nW1mpxt75/P7qo4HL2ONiXajX5PHW4ezfbFTx9Pf88eVPREHc6vdXTEliV1R7pJPC0uKSnqysw9jn7/U9NDKOjI+6tbXpmn389fA2HRT19vja2Ndzn4zb5OzPjoZaVppZVqaOemiYqbnBxtHPysjl1LjtrJqenaL349z21Mvz4cX96cYtIyJ8jIPmjXk4Ly7m4+L/89LDh2KyyNzSf2/M0NOvs76UlJi6pY92hnyAd3bcfGt9Z13NnnyzkodbSkTzxbqmpankg2280citi3K3zN6ptcizrKm2usXr2r3bwKnzw4P76+W7wMiOorLItJzMdGO9f1z8yITwu67Rp4uIfXqVRzDGzdq5qLH77tjh8f700KndYknel3rPkmu3x9LJwr/gtHy6mHX/99aehW+dYlLi28zEvbnhxrLqno6onp3s183RvaSucFzTq3r03bysjpOAcWl4YFFsVEfv3tTvvKBNS5BFMCnC18/YsZvmzL52crKXsqW7Sjqhl5XHopmlw7h0apqgfYF7cXU4OWuinMKVkb+KnotnPjOGgLiJco+SfZtWd2hFaljLPq4JAAAAXnRSTlMA3Njg1MnRwbrGzvOy/srMq5rm7MmPLKKEef4HDgpiVG2EThUcRkI0g1UkH+f94zf33thpKxXA79KxfmS+n6eb5Lf80KFC2J/Dh9nFXubkmenk2tjI8NrUqpjBr5pmL/xpnwAAJx1JREFUeNrs0jEOgkAQRuH/FDTQMBATN3TbAM02ZBsrYmKMpbfwkN7JNdooKI0Vvq/aTWaalxEAAAAAAAAAAAAAAAAAAAAAAACAf1Fb6Nqk660Qvqj7tmlSqJCCpVfnf9DLBsnFRCqGTGtRhKYJVumpsvt/mit32WfOvS7EMe4l2cZ7qTrEcad1KFvL37pYW06mzgtOerrfkelVUUp+0Frk2bYPobdas/zlvOD66HscD06zLI7ryHWj3ux6mobCOH5u/Aq7sLsZIxtb1CAmU0EUo1Fj4luMxqu1nWDRaazDpatzGsGIi29J2dhwJosLiouaIUQRjEIMMQrBSIJmvkaFK73QCz+AT9sVx9qu3dxm/M2cbV1V8uP/POf0FCyrl0isWmdQ+HypW0sWuxQBW3bbMQwzGqyWKpvNZrWbs8vTvmkF+h+AOc6u/pWupqjVVXzbwaot65ZQq+XBWspqyoogM9SbuaapaULC/7hpw9qaBst/NcEaHJsdWx0mh0qNYatWYFn9ZcUqs6xjCbJYlhUGFVlbTu5ocsZizlzoCf+Gmiqr1WKB78eKXVWoYmzevn358q1bl4ts3e5AOnBgYs/Nd7KxCnrWCqkEFWVFxt+xrsi9iEuRN3Mx2qkGGAsGaxetbbBa+/ehSrF9+mG9vTFtsxqMmNnSmX6oS1bOs5xqqMQlsMiCGrQryoKedRXH8XF+uCqFycW6+dENo8v9MkE780P7g3hdjXmvGVWIneG0Adk2m+yZd3swPXE0i23alKdrreY7i9ECL5RlsRF8nsjUO/weC/Z6Bt3ucfxxnHd2XMGV/JA/WFuDoQqxZ/qhFZkMyCS06/R0J6Y7WhiM2mBIRdY43jYvix0M9kzdwyMwRvDxx34+ZudpmapHdzmR2TE6K19tayu0Rt053WlHKyBXBpORV5fWJcvo4I2ZNU5avQ5DgIqsd/g8cRd7tYdtG4eAuXquTsXx86ySrMT9pHOEh+Y+Lvgw+HUvqgSQrGokLrlNNmM63YnpnA+NDgvKzypYQKjKYsGP5Gqcf3OVhWo8jw8+vjc1iL9TlEVzI7SAk8uZI2fmKpKtnWFIlkU0tLU+HIZk6bO1RXPKpghiFco3G/bgAj1uF5+sqZ7HrqtB9h7uGscH3Qqy6LfcfaEO76Ze534Wm/3QgMoOyLIhmxFeWU1W63Q4bUSlwkQtqcony+16jAP+QVEWG2/DIVKDfr6HKfWsRJLjRrq7u2Mcl0zIWz+9wY7KzHT44ZqGRiuybrYgoy0dTpdwHsYwlDdZbl5MMC68jMfhbSTOgkJ+VJR1n0vOgBaQ9VZhpux2TtSg8hIOd9bWXVzTWG/EMEPNdHjaiMqMtM4CYBLEwQwgrK3crHiUdSnKAknQ12P0R45zyqHnkrRzPSor28MPr9eF0zVVFktVQ2NneDuqBNK1IRuHVi5HSRadeARVCM8zKS7FV6GsSPvhLzRVozJi2uxY/ud6x2EyoQpgdki7Dm41V+BxREJwleRmX0NfH4H+zo2BLLmtOd4hbUEVZmPLkUNlZf8nzS0a99NDEt20MzEGq4VUMkFzSfAFB+TQY5zgsAZVli3H9peXFj2yWjLn7gc30Ki6H82+pUHWSIqjnUrQmcNrUSUBWS1Hy8sbbVmfjomn7gdZQm6EZXvsPnc/5lRBtFXmNi+Xdau9vX20XRjKwblzN9wZchTNcyPaLnIIZAkNXtyFSNAJpxrcSOVtgawhj2f4RYfH8+qJx+MhKMJTWrra2398EbmRrevOF4mH0n/ZcaQFZOkiMZdMVN7WxmNdnqE7U1c8QwcPfiSIw5cOEyWmS2I0mp2r99JhykNkoPTLmkndnXGWxxZWXW3OJ4uduuEZPnjwm6ccsjo6CPHRNZpyz7u64iGk43/QL4t+dBLGcnT5zcvTneltFrPRXF1tt1ebzdgCWQTxIjVEEMMQLILqomAo8SMD1T76pxCHewkZmsmieTJr/KT4XOoVhLWz9cKFJ4ufM2QWy9Y02gxCz+rq7YB20cEPQG9H+egafS8Fa+myZctWytCSNQZ8pOU7qTZUGsz1ywJ9A8yTaF+IIXPwNtYboqcv4hfaKsOJcEhazi9SZHG2LLmTkWQslkxJ0co+yViKTDWSANPXF70VUJAFLLsFsipGbTg86ALYDbplTUzwo1R6I4+SY5npMPU6a13R9NddvZ4UCURDfcNkVFFWoIKygIvhj/yWw/lFumUFg9nJGkvSSTprOixR2zI3khLM8K2BaDTq9f17WSfCN/ld5kX6ZeF4drKgZ2VkJZJ3F6xYzahojGvJLJgAwzABH/nvZeHXoRDZiH5ZQRz3Z9kS9yVEWbMLZG0ougAbSQ1ksk5UinDoJ1snmKmDPwLqsmITODARy95Rnt+l5yP29zNiA0kWLKu1medymR5Z+DpD35tzuFynLOtaEAfEbGnfhS0qVmvIYmW1lolsMa03ybPNMjKyni2URWdkBTWW9UX3eCspw8d3LUBLFnmmTFzO941QlwUEVYOVSOZuONMYKpD6HBnM5GQAxtDAwECf0OrhrYqs1jNUmSBbmy971RCKtE5BlmQrqHwlfff+TM6hHagw1i5IVAAsnTt06ogvMHCq5fQRMtDXf/QZOGMYRVleiigPJP9vq+FtzSeLxnHlGkzMym4o0qgg1izIlLePDAzsv9X33JcpQ593OHr7FxgMTQYqLotQRpRVK8lSWZTK+XxSfhlpKdaVL3T75H5eWSDAZGUNyhAMHjg6UEFZVI4sSpesCfGVf0JZ1khSfmxDUa4Yhgn13w4J8fGSMhhvtH8xSCu9LEo7WdSZB5RM1gm5LL9fujWhTMIpR3+LbyQlJkNPGBgZUg3fJOOFmgwwWrIowlPYQ1sW2PESVI6sC3UyWVB/+YgpHWwoeCnKBM4dGIAGRebHR54+/TzAaCXrxZVCeKFki8qV1errpXJk1ebIEju7KnT3HNgqug4N866e94MEUhsfs/hAVCtZV9yFcUVPsppbm89QC2W15coS1wzqW/CzM0oOkT7mXcEeA5SXLiaHz+WV1dV1xe0qDNhb104Wv0b1dSyQhQt1eHtelnhRqJ6sfritr0B1Ic3dx4SgDEm9MFCGx1RlUaM/XHK09A0RMpRkkTmy2uqyZdG4AK3mamxO+SMb0oFFWhocOxKAJ73knw2HRlNyM4ODbP5ovfBoJ6v18oOcMoRdVNh/EGRJucqTLfnvFxRyW8wnuvKdbuEr8EGvfqiu3jNetWTJZbHx2girIYvSTBY/HebIAlsXLoiypFypZyvhVKFJ/0wYONIyyWsjKP0QHRTVqz9Z7jj/g//sXyWrmY+VTBbQNl+G0naDSq64mJot3d3d5wsxQsQ8fXcKYeiBvmRJsnD/ebbYZAEPOihCSxbYUnc1w82qRktvsBgvCTUoynIVAsgqKFnAuNtdbLL4CtSSBeCAWnc/EBPOKm46XCbewzkWIEshSztZQE+cLSxZhBoqsiZUuzst/kyI8sWQFWlg/83L2f2kdcZx/GqXvdlls6ttyV6SJbveW7bu//CIilqY8moQEVgnsWBdl+ALcDAzs1Ng1hdktVi1ox1KNxC3tdKWVWaqNV2XZk3Wi/Wizb7Pc8ADnAPySNcv7HjkMBI//f5+5/f8nudBqEVbA6WwsMbVbKY/aWYWFyvmj2aiIzoL8pjVNTsLn362koBKCguqaKyGSwfvmYhtTzDWDh9QWLb+pKIYlnmc9/k8amzmC5OpurBTYOb0jatxxGth3sfjxaM5C+Ij5hqdBVjVJA/L4qow0Ck+n5sDOabRoWCsdZOiCBYYcXGnh+PVZp4szFe7cIDwW9iMiwbzOOdxhjnQOpqzIFfWXKuz2GFhKlq+Qeo+8JJ/KzQ6GrrABOtV4U5oVRTDUkewPUZtJkfe58JutVUCCy+vxi2EpMscMUTMGzxvZneWqHCTuVZntVeSDKzKvRnt7l5xpo9NTIS2tSywPiCs0LUqgQUcgpF8G3wc+z+aKCy8vNpkyJpxFc6KmM2r4TqcBa2Om2tz1llFJZ2VwKqsCfduyfXQ7WXG2UOUVmj1dXWXwgr7KJy4a4MPNyEQLQIsX5y4iTqLi3t4X4Q9Z5UqXnudJfuUlg4VdUPbUHr5kjsW2vKz3A1fA53k4+lkmbP4PCwL4GzEOcFZahByhl1NAiyeZrO6nAWF1Qx1VrkYYE2QnYdlV7HN7hJTnfUWLRuumSqEIQ9nmdWuOA8uJOvzQJTdEMIQGyQj6nqcZYCzIrU4q35Y2ljvLsBIxNZY/pDUo4+R3qUJ3oyNolkKy+lapbB84Q31BjaQ0gSPGsLleRE5S9KDrwKrwsBZG+qNIQwPFcOUTmnpEM7GESQwlxkpDNv7yF8KQLii9nBmcm721Xc3jDeZj9J1OFURlmZUSmRi4lJoFOGGkqFuWApx0lRSlPJZUlPRxBQGJvW4kI7DkfG4OhKOYFVZvI6chSHP0fpZ6Py1VYC1N4NSYOIG3TWgnbhB0IVm5nflDcfehEcULiyZJLDE4YxZHO6o87vZ6Amtu9greKmt2PtZ7ejSyIdhzI1aYMs9FwKe7dCcO6b1b7m3hX57/YtDXgMs24KYsl5E10G0FbuzxLayrLP8LoAJuWf2wMy953Yvaye2NZqy3axa/05hiTfbOPpV3AtRZNUBi72fRXs0bF0H6YSFLCxVbAaUEH4HYTi6PdNsD02UjKSXl2dmkMbYb4bvIQrt1vKcpWYQu7NEW7E7S5wKk4Ol6z1uK6Hgjw3/4r67eHOseGP+kyd7e7u7t9jz+4eAFSyHdfErFrWxOssDwqyd0uoJvoejmg7220pgaZcDiw03tkcabxKn5StRyurJkyFp2fXR4ZVDd/k0YWObnkWMPXie2qoeZ6F00OuLYbVTVD1dwf5Lo6ejIqyxBu8wPDUa8/fd2o6F8gC3nuy6M4C1rGVMWeiSot9QplO1q2vo+LWWFhZnSZp+7D34DORt1B/A6pka+YYznOrrVulgq+DgWIGVfwjkiL9isS9GtPNC6tJeSKeNRudeB/sCLbSUg+Ur3DEhiFcOF503tH3DNG9I64W6nOX1JhKJXG5rSF+IyvWFnpGFRgX3jaZ5FDkp6B8TWN3s+92fv/01aPsGR9voeTSX20znNnc7trWMS/8Aq6sXA8Oj6pAZacBiVaC6s/Rt3r+BKgdgC3oKy9GlHFQsDv86MjJCx4baW16tlhTug43R4pqhb6pvChR/1lzNpdO5zn4rHMgUhYBlGrbBIkdU9RlpbHl7Pmsd8On5KXDTSCYzkzBupo2ZREZBXmlpaVz89hQy/BkDB1gEk3ce6WhrfYiWB2L+Gv6l0Q9Yupwz7ezc7P/25hhjFALW5XkGViywsD/Qe57UFmWPapoknyHbKSW9UhwziX9mrnZuGq8CFn7FhcW2RQVX3HXw7x3fuzGnUYo7mQopTD8F48U6jRBg+dnKd8FZj/8nWBfJHvO5SRbNDeH/q9aDH0xkzgSuXk0bc52JXx2kwurC5bIWjdvmnti226V3u9u5XRgodc6dNjqlV187HBa8XLYy5rk5i3lL/g8/UFhVZnccmUzyB+QcZ3oyMeiAtYKPrkn7WUNI6IFb0v7DzMDLoQm/39hpdE6mjrAo5AOUDsW0TNcCpvpgiRpiFz6ias6yhhLDX5wzQrlEZqTb0f/yk58cAixIpRFmthb9DWPXkJIkGwUGXnbf8DfspCevpPeZJ6PpyndxcxxclgwqQa9uWKLaGJ6HL+3WB3EbnDR6PMZcLpPz6lsHXl4owDozorTFKKxf/GNjvwBWubRzM5fIj/Sk02hkNRb0pkLRe1n0UtdC8PLx4S4GWC92abc3AV1FGOYymUQiqO+/3+8ohKHh9LQ9D+umPCyMrXHdnzISpXZYjYVlbFbdwby9dX16ocsU8GpqrrxML3jTQCYBnUtfuYKTjJeUXQpxID1iFwaGY5VgQTuplZNGJ1idPHlyBbyYvq/gFUVSGUweJKz+LhNa8gtSVt1Wk4y6rUEdreAd7e2OrkZ9HyMGdmf9480kcC9L9+kxgC3rOrz7WCOFVeIfkCICqryAi2XpLSKp33oQVUv9yeTl/qTMyKajd15OrffnbRA977UNHUYLy9/qcZZe3xd4kDZC75xuA6tSWChKy2DBSPs7DalCEKZOSpVi2ZqJ2qEoqpa8gWDAKzEW3DZQi3T6tuqoTikWgevIzno0iaG4kSrS9Ai4ZKfCxoaLYHk8DeBF5T8pJ3Lxk9o3golLua0LqsDl49MysPoH7tcAq/VxR1UNksyi6mDS444pRwuFpX9ER09OAZZaff4nvbyzhgFKgJXa95Bcng9CWVgphl2sb4HQwe0Qax6sViwBlIM1cF/ur7S1qtahux0d062ANVNNmt85Rd9ZLtjMgEqpVGqGBVj6i4UVz06nczzfoijAcvEcZ5GBRVg58zXVijwsrb/m7WCvK5LTHUmx0CKHCrAUSWu5kl4hwZ9xOAy6gYEnk1eqiTcgBrn2qdo13NGsUgqw2vQyWxAuFmDt8/w+v668VAIL2tknRiwz1gr9rwDrU4bveFVgKC2JO1lY1yqUDpiFJyMRwGpVaqrIHuUW27q4v3XNypql02h0eWddlG1SUFiGsBP+AazlMljUXLhUgPWb1FkrDKyQ4clcWC2wukxVilIKqzfYX01eA9fD9eA9bJpqAaw2mrGE+Uw1fQiBSOos6x0jItPDr2seSmBBCMQUjUJ5WK8xbfW1LnifEyzNmXZHFaEDbOhpcTDrjKEHx3EBliccz4adfNZDfz9PnHUbpOJYtjndkYc1CFj+A1gkEne0O4TMH7/VB+ttBFONYdhdIQxFWI6W5yzxVreaz+4cF3aFLRxdoglNOb7xgJVwNzzxWYMMrB1Yy9iQksIyEvk/YotDqLxPUypTkiZ4nJW/HrTTBN+Df34Cy1BupfrVwwnybNAgzPo8q2Ge430ccZb6keIOSBgt3OAg6qynD7XRUW0pLMhDMlpK8JEEls9i+fjNmmG9B1K6ktEgvi6rTAvTvfM2r1QL65rfT0ej0QVI09urXCCvHei0Qs5p7aJqgcXlxTvpolY+zlnCxF0udF0j4w9+JbWBD/fjL3umvjvx8O/vJvwSWCngFJRKycCCPmGIQ+vjjmQRK69OIqVKpdLJSNl8cNqsUuGXEnVcLPumNqTj7sWCvu06HNXZdnHVDaortQeWcsUByxJuco4TUHj+ZcDlh98vPT3x8Gl0eVlbCgvCuyAcLTvFsJx5WNAbtdIiQYgtAwesArpmqXAbb5aXCpTybym/ouk4VaputPG+zasGWFABloGL429ryoYJtjBn4bPjnFFAcJuG6iBIff702a1/CzlLZKVN5WHFXf4yYzk9Fqo3GbbdW70dVjGZa5qPJlXhKCKeQu+3SHWEIechsGj5no2MOyNNWUQmZSXcAwwPTzzD44Q0Z9EbIjWWz9VQL6w34CyT2Is3HRWWxk5/2InBEJVEZKhSLEpIZNRerko3Q8hlhPLrxprI0wN+IHe78J4/Tzx99uzEr1o4a2TMf+AsLRFyPHDta1e1payQ+F0U1vtM90OgMtUHS3l/YF6lVPUOtDar7OhAUFiXTRXWrp/tlpMMLAcnaNWJMBovmtrOEoCeOw4UbgacWka+fvrs6fG1tdnZ09HN2YuzVGtraw8eLC+nUkbe4rvnd+2IpARYYQHW60xf14PJ1i6TPKz8GEaprIqKwOoFrNaB+0qVbWDArlLi1bLpGnHtel+b/NpjmaQlwuKzG6jd85W8k6ayZMvgyPKDtdljnZNN5/G40tl5Lho91xnoPNdZpHMP7vjIhxhFUhD5SAsVw3dm0VR1fN7aLYEFUsq77gvXr1+/4FbhvCRFlUlna1bhYdPg3G5XCc5q6ZbZyVW7syADR2XB38avZr/6anw8ch6l+1f3OOhObBYkKJdJWqRudh4LBQLRaFs0dKyY1tpf91b5MPCIpIpS1kus36ySVOlMZbCA6u6F3378kY6qflz5Y0ulKWKls0NFBzzoUyccxJwlq/aqr0mrUheBxTkCdLgxtbR0yspxt4+BU0GbSGCRSOf1Rn1egWJYx+4ZwsZSUtD+KmN+p30aqNuEDnwpLI3q+srKrHvPBjLzu1u//XjyQiEYEXW9dpvd1gtMONiKDvPC4b5OhMUuadKisBRLJqFsXhruPrtWEmmzK6Q+P9Z5PRQlos46eEI+jnYC0xB+5NukLouYshhSPIQwtJqKYGn+Y+3sXpSIwjDeP+BtF3VXUV1FEN1ERVERQdFN90NMM+SAMw3TupHTSNBkgxIpTt/CykAFkX2A0KJJWC59UNsqS0WFZfRBLRUVBdVFzzlnxtF0t0yfTM+ZVVp+ve/j+74jzmSwWGtEMxkV6SVmRCmVu1FtKBRVSBzj7MSEHUvYuMaMbU9MxGysntj2p0c4Zsfs2FupP1iHyQ1qlg6o1M+UGKz0FfzH5igsD0eAdjO+S8l/KFd4d//+OF02u55TjNW63i726fU56tC+JiyhdkOGBZmqakZ5Ued1UeAvVIsphcJ6G0M/Bj5ZSoasyPZqonBvAivslhJYZ7S9fcs1rZsEVinNYA2RQcnQ9TYaAbz7+T7lYWR3Pr7x8ZzfTe9isHr8KklvUjpHHL0LWC6rmiEaogKrNkcMzCyxM4X6jUnycykqHnzy8cnHsT/v8h8m52B1cOzSJcBKcAPTZQrLPX2+Z7Q0hHNxZwgIx6FcOhRoXwMT4ir/82KwWPQi6w6DNbc3WPNcWnevvB09x7y5diMv8GbGCAmgRKKKxy4qgVYKa0FSRSL9zzvdwILIkPhBwkK9fuiaNgpYjNats6WhfWecynZ74jqpHAiz8VY8XiQxyfn8ly8/f46PvUmGf72oVEEMYqx6/mrlJV6zk751UCWsUmClmgZv6hJIhWg2GshGSQ0EJUor1BRZShJ5wB0W7KAwWFgotCJxFxY0jM+wPLjuPBvegwjbEY+8evp+chIlKRTwlAvkwYhA+vw5HE4mk0fk/JFwEgp//vzr56+nzN9X9wprQcv3ZykERbCumyKcPSRm9BD2ysgIdggyUynmBK+3Rq2KR7JopISUhA1u7kGewtL6/9OsHax4icySfFw1x97H1uRJX+mnaKBTrk5/TwINUzh8BMrLn7GCkkfevAnTicM137J6/2Y2GDxNwpRowq/gTQZhxiPBdNShhilG8zQRKa+x43MYuFRxUqlWGwJZzzl+3v25kuUGp2O7uQNDZ2FV/qQyIJ9Ns+1h77whkwstDDKuQApB9WX8Z7J5ZCrC9B9fB98KS5CKNdMIRc0o0i+E/BOQfxLMXhQl7IJ1wKBYYld4upSqAFi9QUJOOPjoeLMYexIbhOJ0noXIOrB9aHQ0DV7sPdF2Pg2XzrIx76NYLOTDYsQmkk1Qb47QePo5/iXpsXrzw6KRhcKhZy30YUlK/oYIZw+pmREJ/Z4EZw8JMK6MGMIuc+FGg8XTldjV88fHFBJYwWodby8NQZCuxq6cf+LGljoIGTZjtTuikaohTXhtB6/hZ86j4eEhSmvP1ygmkUdPt4yxTp3+lnRRQSz5Pst5P9S+WdfcwqF3rWyJrHrdEKMkpAxRQK1FU1HCIQQYElIt5hUPViw2BscCLFrpASJgQV8Fb8bVtyT1CaedJC2KxWkHDu8Z3gNeNMA+OTY+9UNrr+E5Av6prBW5c2cXFa5Sbk0lKRT4Fu6YYFoewGQasNzCoXcNNWFJwZqgijojpOoiHwIoyk2nNUG9LrA0BJYnZNFgpwOqZH0QB5GIg5NyHnP317tvXrY4CCdFcKoQwM6elQO0mgcst+9YyrVqJ8UCTFM/gI2ImdYRiir544RfOPSu+R4sIQUHksQRkedZ7uEhmjFJRhqmqUpKLeh60vmDc3hq6pOoWm4EUwI7OCZgMUBaWYySX3PXLM6XpmkPYVktsEhktcFKE0IkgiLWdyzp5itMCwpPfU9fo46FJvr/tNCDNVlsqDB44u66qLh1lmEqkijyCuw+j1LLm3W52FK1eq3hHWyiErrq7yTbn61e5SycqfhTj8uPCKYSg6XiRe2wvlNYyamIdSLsuhcxre/fRs9kI5YFUKyJ/k+tYLCUfFBEAJEq3dR5UlyJIow9apqGhK3OHL5dIKR0QpBCXcULf1GoXeeRX52qlGM+LPrhnKVcFn2pF3tTScrnm2Uhxhi3RDYn37EgRgp3fVzQaZUHyzANBgt4JIH0hoILS1JEk8H6uxRb2xvv0F5ujqnPrET769BMdyoekEcJJlao7oxDHJdYmr3qPnmHG0y2ZbG3RcrtXfm9dQKQXK1BkdUHLTcNSWWF3CO9Dps6SCwNpSh2NA3/qmnbHcASZ9a/FLOvnE+l7U1YAEWUeJRIxFsti5aeP9gyjOx7X37Hmpxr5LYOdUM/tJoGbzCDj46YAoJMxzyLx0HsPINXR6aXKPwJS2M3F5b+D7C09hd1WtYEg0VnlnvZC7KYFmm+ZSGwfj23smEWWN9RK7ySc+vXrGG41i6ePas/rQCsRhEjUfzOUfChAwQkpO7vBFY6qOb0EpuRpWnk1iqNwdKn+9M9srTC04i3hOnAspzEA/TVw2iuXVjtci3ri1MouVloWyciVkXevGjD4rVrty7eurX/S2GTorSag2mRolQh3iXqyD13F1JEQwnWFGrfM2jGNPx7ZHVGkyWXK14CynIB+9wBcEJkdYe1kwEKB+TcdzchwfhEIecsI4OD5QsKucqsvnWOFlKg4/U5PB5Ufxcaeck6aUGNTiu1CStrQ9lusLr/nS6yToCQxy3gVLhX5XfxUdjVdLBuscD6kXPeTR2h3NI4+r4sO5tmUVXKgYHAIqZFJjI6+hxgEg1ElbuTkIn1Kh1oRTPTa6TpWRjLJx4d7AKrG6oZDP6pLD/11hUnB8t6r5GqYU9pe1dY3xis2Lh8m1lWmDyl4GAa714Y25H7T8MtKkjUgyrQ6Dwd0cCzFH+nT5LJMiQYM0jyYF3FrxiLaZ2wOjNxxsh67AQiLWur4pzg0gwW1AnrB4U19d4JABuWb75x0DunUpHdr3WX5dmDgZXCAB4Njt/uqBmTl+hOqiKwqEIziG/CinFXsxPxrpHFXN67zRxZBViWXzXIrwI5pBqpR7vDOuBWVu/LObdw2MMK2cePyxtmUQXgXv3DYiP4l1G3wdFRvmPpVl0inf39NbI8WFos+zHBdUYWA9VDZFXKBd/sA3JBfsdxQyUC6zCBFefatZ1l4f5C+VOY6M0P1+1e2eWNs6i2YTEIWFC9mOJVWrOzdodn9TxGXWQ+04NnJexE4ur074ZeUP0tsn4Td34vTYVhHK9u+kGDhCQN1JDEi1EZav/BitGuTDCzOMhR8Ue9Ik6RKWpQF+IkFEXmRTgONQw6Fm7UGoE7a7IuMpooQaOYJMPNDV1NJXbR877nnWfzpOh2oO/F3nPOds7Fh+c87/d5z/ue8ZwviRxScSGAhS38l7p/wbITWJ0GN/dNDCwP7SUGriGa2LXCHWVgAQtv00jvY6ncEStFYLVAOByuNzTKYEmQDhZZEEzdyQkMIROEjwUGt8bksKglBRvKqD7HCazOdvH+dV+udqM8MWlxFRnDutUmolj2ul62sXAbgsmCBhc/bK/ESjGfdbCcZeJIypKcFg9NnaULYD0isOSWFO5CD7gxMpYVeEOOhgSHTl0pFNKkpVIIFtBiedePEbYHFzjsA6hzWtnFJpeNstrfwU8mOXhZwTNIYUmA5JElq3F8UsoSc08QZ3E7rDcyEli7fl4nFoODJm5arKfraIlUXVauEW4fIapAisGCcZTFJsD1Cix7a19Dw0+bF/ZaWap6gDW5hwBW/f6RtX9gySMLYsKXmu5D8GkgsAZru2SRNUruwj+Mj/OTwNpiiILoXlFZXiJplQrqTGHdBFhUrSwAcnkRTM9CeM7RyCFGQGWwzDsyzDX09uwt+G6sxJwQpeDgBlJgcSYcq/B/Zg+NDF7dvQtv19rwMHh2SG5RAquD9hJ8Tn6RupImLbVQqBwsEIxA2HivFyZoLSwuY1RpwzJDLKahtreUDs9IIhYAt2MOB0Dz6cfn36UMdcE6sSfx6Fojs77wEZ5XBDppIkAVWbn5V7QJp4W0isJiyQNm+BSb/wdL5WBSEjwXovOQ/HajQ6+3nTeaJVbP15ecev3rdqbLtiTMT8c3a+n0Qe766ezcAo1AIVVUZg6rWbknDcmw0lEzhTWAfKm1D4fhGfz+aCywFf/1OxaLjkqdgRMW6X+KBJn3H5zfl1pmZgZ2GJ88cS77QgGy5YnlYabeIU/TpxSrtrlEp9aeCax24ia76bVI40a8G9pGSExYgUAMFLU3YiBBQBXBejbujDhbnPAiWhM9L8QfO3s6Kye3EqkJLQ3KFJb6KluvjOZKGEklaV2C7RMjy5easpB7Ah8wkHkfAawYUZS5FEmoRXplZcLOOhxHTx0/k5WjFXTlhJYqgyH4izqdTlttDT9VRNvWVWtCsPkiPYVX8dmzU8nX+spNWRHe8nR4PKOiLPCU2rI5GprwgVZWTJJKTHAKET9bVVVVU3NXy01rNGWaQp3qRmlxcWFaxDRDovrvK6OhFKV5kX5y8vb2kCSySw5s7PADlphIGI5sJClM9Lc1e8ltFobCMCwI4pIfcfkDAgYFJowYMGiygaqDdlfdQPfcz+bUxD3gBuo3kyjIFjwceRK17IMeEF9eXtS2lyP/Hb5/0v1ZSkP/2yZre7HXgaQG/1WtU+vvf/h8PnJcva282H/rXdbDlY9HxkVuqy1UMWl2Q8slWiJWq42MT6DWXRDWydWvh4/3qWubMs/CIPVc5zTnOI7ruh7l/pbDOlH/H+y0ldxL7rgjZ871iygI4ywvm76bcMKzDmJVcRglvnQhJv8+j8cdGReBrXzM/aT/sTmu8/T3i7s/p0IqzmBV9+1wtYZVY7TiMIiKJD2L0jRRpaKzbAtvg2tXG48v25pvb8kXOklRRFEUyMIQM1XlqKybtptGWFnAGtpeaFXgCsNAL5IVKEFGNs6FDhlxDh/pMoheqhRC8EExykRVVeVlWaOmbzsMlg2s23XoZq28qrIsFoUqDY2bMa8dM2ZAQgxmKUXfRDREMxMRiUoEpqZHbQer8ckO1jRr1SW8AAYxFN+rGcQIzHCG8UxMHIp8AIRgpCnps6SU4ITg1HaQGqbriMGygTWSFrjgBTCIERkHi2Sal87l6j1KtZxOfKLIiZTgxKAqRPOknAAlRgpS09WOFbDm0epacM1eaMOLz9edlqfayyWkKCxeGapFClB8pLakQDVJqfF2ewKWtdHCbIELXqb54uNFXMts7Zsv80HFpbQTCmlSRLVIDYOSApUdrG8t4uLjhXQutMpFYJyMMkPtkFJDZaaa9lF9Aaq7Wu5vt9CKAAAAAElFTkSuQmCC"],["id","broadcasting-url-input","fxFlex","55px","fxFlexOrder","3","fxLayoutAlign","space-evenly none",1,"input-container"],["autocomplete","off","id","broadcast-url-input",3,"placeholder","disabled","ngModel","keypress","ngModelChange"],["mat-icon-button","","id","broadcasting-btn",3,"disabled","click",4,"ngIf"],["mat-icon-button","","id","stop-broadcasting-btn",3,"click",4,"ngIf"],["mat-icon-button","","id","broadcasting-btn",3,"disabled","click"],[3,"matTooltip"],["mat-icon-button","","id","stop-broadcasting-btn",3,"click"],["class","error-text","id","required-url-error",4,"ngIf"],["class","error-text","id","broadcasting-error",4,"ngIf"],["class","error-text","id","broadcasting-paid-error",3,"innerHTML",4,"ngIf"],["id","required-url-error",1,"error-text"],["id","broadcasting-error",1,"error-text"],["id","broadcasting-paid-error",1,"error-text",3,"innerHTML"],[1,"not-allowed-message"]],template:function(e,i){1&e&&(O(0,"mat-expansion-panel",0),we("opened",function(){return i.panelOpened()})("closed",function(){return i.panelClosed()}),O(1,"mat-expansion-panel-header")(2,"mat-list")(3,"mat-list-item")(4,"div",1),X(5,vJ,2,0,"mat-icon",2),X(6,_J,2,0,"mat-icon",3),X(7,bJ,2,0,"mat-icon",4),V(),O(8,"h3",5),se(9),ye(10,"translate"),V(),O(11,"p",6),se(12),ye(13,"translate"),V(),O(14,"div",7)(15,"div",8)(16,"span"),se(17),ye(18,"uppercase"),V()()()()()(),X(19,xJ,6,4,"div",9),V()),2&e&&(U("expanded",i.expanded)("ngClass",Xn(17,G1,!i.opened)),A(4),U("ngClass",Hc(19,Ap,i.broadcastingStatus===i.broadcastingStatusEnum.STARTED,i.broadcastingStatus===i.broadcastingStatusEnum.STOPPED,i.broadcastingStatus===i.broadcastingStatusEnum.FAILED,i.broadcastingStatus===i.broadcastingStatusEnum.STARTING||i.broadcastingStatus===i.broadcastingStatusEnum.STOPPING)),A(1),U("ngIf",i.broadcastingStatus!==i.broadcastingStatusEnum.FAILED&&i.broadcastingStatus!==i.broadcastingStatusEnum.STARTED),A(1),U("ngIf",i.broadcastingStatus===i.broadcastingStatusEnum.FAILED),A(1),U("ngIf",i.broadcastingStatus===i.broadcastingStatusEnum.STARTED),A(2),Ne(Se(10,11,"PANEL.STREAMING.TITLE")),A(3),Ne(Se(13,13,"PANEL.STREAMING.SUBTITLE")),A(3),U("ngClass",Hc(24,Ap,i.broadcastingStatus===i.broadcastingStatusEnum.STARTED,i.broadcastingStatus===i.broadcastingStatusEnum.STOPPED,i.broadcastingStatus===i.broadcastingStatusEnum.FAILED,i.broadcastingStatus===i.broadcastingStatusEnum.STARTING||i.broadcastingStatus===i.broadcastingStatusEnum.STOPPING)),A(2),Ne(Se(18,15,i.broadcastingStatus)),A(2),U("ngIf",i.opened))},dependencies:[Ii,Zt,qr,la,vs,Mn,oi,Lo,oa,Cs,Qf,ys,ir,ku,Lu,Nu,yb,Cb,vv,pP,Un],styles:["#broadcasting-status[_ngcontent-%COMP%]{color:var(--ov-text-color);display:inline;padding:3px;font-size:11px;border-radius:var(--ov-panel-radius)}.time-container[_ngcontent-%COMP%]{padding:2px}.error-text[_ngcontent-%COMP%]{color:var(--ov-warn-color);font-style:italic;font-size:14px}#broadcasting-icon[_ngcontent-%COMP%]{color:#5903ca}.broadcasting-duration[_ngcontent-%COMP%]{background-color:var(--ov-light-color);padding:4px 8px;border-radius:var(--ov-panel-radius);font-weight:500}.broadcasting-duration[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.started[_ngcontent-%COMP%], .activity-icon.started[_ngcontent-%COMP%]{background-color:#5903ca!important;color:var(--ov-text-color)}.failed[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important;color:var(--ov-text-color)}.stopped[_ngcontent-%COMP%]{background-color:var(--ov-light-color);color:var(--ov-panel-text-color)!important}.pending[_ngcontent-%COMP%]{background-color:#ffd79b!important;color:var(--ov-panel-text-color)!important}.panel-body-container[_ngcontent-%COMP%]{padding:10px}.panel-body-container[_ngcontent-%COMP%] > .content[_ngcontent-%COMP%]{align-items:stretch;justify-content:center;display:flex;flex-direction:column;box-flex:1;flex-grow:1;text-align:center}.broadcasting-error[_ngcontent-%COMP%]{color:var(--ov-warn-color);font-weight:600}.broadcasting-name[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.not-allowed-message[_ngcontent-%COMP%]{margin-top:10px;font-weight:700}.broadcasting-action-buttons[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}#stop-broadcasting-btn[_ngcontent-%COMP%]{color:var(--ov-warn-color)}#reset-broadcasting-status-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-light-color)}mat-expansion-panel[_ngcontent-%COMP%]{margin:0 0 5px}.blink[_ngcontent-%COMP%]{animation:blinker 1.5s linear infinite!important}@keyframes blinker{50%{opacity:.4}}.input-container[_ngcontent-%COMP%]{height:25px;display:flex;background-color:var(--ov-light-color);padding:10px;margin:10px;border-radius:var(--ov-panel-radius)}.input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;height:16px;margin:auto;background-color:transparent;display:block;border:none;padding:0;word-wrap:break-word;white-space:pre-wrap;resize:none;outline:none;box-shadow:none;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif}",z1],changeDetection:0}),t})(),mP=(()=>{class t{constructor(e,i,o){this.panelService=e,this.libService=i,this.cd=o,this.onStartRecordingClicked=new Ee,this.onStopRecordingClicked=new Ee,this.onDeleteRecordingClicked=new Ee,this.onStartBroadcastingClicked=new Ee,this.onStopBroadcastingClicked=new Ee,this.expandedPanel="",this.showRecordingActivity=!0,this.showBroadcastingActivity=!0}ngOnInit(){this.subscribeToPanelToggling(),this.subscribeToActivitiesPanelDirective()}ngOnDestroy(){this.panelSubscription&&this.panelSubscription.unsubscribe(),this.recordingActivitySub&&this.recordingActivitySub.unsubscribe(),this.broadcastingActivitySub&&this.broadcastingActivitySub.unsubscribe()}close(){this.panelService.togglePanel(zt.ACTIVITIES)}_onStartRecordingClicked(){this.onStartRecordingClicked.emit()}_onStopRecordingClicked(){this.onStopRecordingClicked.emit()}_onDeleteRecordingClicked(e){this.onDeleteRecordingClicked.emit(e)}_onStartBroadcastingClicked(e){this.onStartBroadcastingClicked.emit(e)}_onStopBroadcastingClicked(){this.onStopBroadcastingClicked.emit()}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.subscribe(e=>{e.type===zt.ACTIVITIES&&e.expand&&(this.expandedPanel=e.expand)})}subscribeToActivitiesPanelDirective(){this.recordingActivitySub=this.libService.recordingActivity.subscribe(e=>{this.showRecordingActivity=e,this.cd.markForCheck()}),this.broadcastingActivitySub=this.libService.broadcastingActivity.subscribe(e=>{this.showBroadcastingActivity=e,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(_o),h(Mt),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-activities-panel"]],outputs:{onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked",onDeleteRecordingClicked:"onDeleteRecordingClicked",onStartBroadcastingClicked:"onStartBroadcastingClicked",onStopBroadcastingClicked:"onStopBroadcastingClicked"},decls:12,vars:6,consts:[["id","activities-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","75%","fxLayoutAlign","space-evenly none",1,"activities-body-container"],[3,"multi"],["id","recording-activity",3,"expanded","onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked",4,"ngIf"],["id","broadcasting-activity",3,"expanded","onStartBroadcastingClicked","onStopBroadcastingClicked",4,"ngIf"],["id","recording-activity",3,"expanded","onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked"],["id","broadcasting-activity",3,"expanded","onStartBroadcastingClicked","onStopBroadcastingClicked"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"div",1)(2,"h3",2),se(3,"Activities"),V(),O(4,"button",3),we("click",function(){return i.close()}),ye(5,"translate"),O(6,"mat-icon"),se(7,"close"),V()()(),O(8,"div",4)(9,"mat-accordion",5),X(10,OJ,1,1,"ov-recording-activity",6),X(11,IJ,1,1,"ov-broadcasting-activity",7),V()()()),2&e&&(A(4),Ht("matTooltip",Se(5,4,"PANEL.CLOSE")),A(5),U("multi",!1),A(1),U("ngIf",i.showRecordingActivity),A(1),U("ngIf",i.showBroadcastingActivity))},dependencies:[Zt,Mn,oi,Lo,bs,Cs,ys,qW,fP,gP,Un],styles:[".panel-container[_ngcontent-%COMP%]{margin:20px;background-color:var(--ov-panel-background);border-radius:var(--ov-panel-radius);max-height:calc(100% - 40px);min-height:calc(100% - 40px)}.panel-header-container[_ngcontent-%COMP%]{padding:10px;display:flex}.panel-title[_ngcontent-%COMP%]{margin-left:5px;margin-top:auto;margin-bottom:auto}.panel-close-button[_ngcontent-%COMP%]{margin-left:auto;border-radius:var(--ov-buttons-radius)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#a7a7a7;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7c7c7c}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--ov-light-color);border-radius:4px}",z1],changeDetection:0}),t})();var xs=(()=>{return(t=xs||(xs={})).NICKNAME_CHANGED="nicknameChanged",t.CHAT="chat",xs;var t})();let wp=(()=>{class t{constructor(e,i,o,r,s){this.loggerSrv=e,this.openviduService=i,this.participantService=o,this.panelService=r,this.actionService=s,this._messageList=new pt([]),this.messageList=[],this.log=this.loggerSrv.get("ChatService"),this.messagesObs=this._messageList.asObservable(),this.messageSound=new Audio("data:audio/wav;base64,SUQzAwAAAAAAekNPTU0AAAAmAAAAAAAAAFJlY29yZGVkIG9uIDI3LjAxLjIwMjEgaW4gRWRpc29uLkNPTU0AAAAmAAAAWFhYAFJlY29yZGVkIG9uIDI3LjAxLjIwMjEgaW4gRWRpc29uLlRYWFgAAAAQAAAAU29mdHdhcmUARWRpc29u//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAJAAALNABMTExMTExMTExMTGxsbGxsbGxsbGxsiIiIiIiIiIiIiIijo6Ojo6Ojo6Ojo76+vr6+vr6+vr6+1NTU1NTU1NTU1NTk5OTk5OTk5OTk5PX19fX19fX19fX1//////////////8AAAA8TEFNRTMuMTAwBK8AAAAAAAAAABUgJAadQQABzAAACzQeSO05AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//vAxAAABsADb7QQACOOLW3/NaBQzcKNbIACRU4IPh+H1Bhx+D7xQH4IHBIcLh+D/KOk4PwQcUOfy7/5c/IQQdrP8p1g+/////4YmoaJIwUxAFESnqIkyedtyHBoIBBD8xRVFILBVXBA8OKGuWmpLAiIAgcMHgAiQM8uBWBHlMp9xxWyoxCaksudVh8KBx50YE0aK0syZbR704cguOpoXYAqcWGp2LDxF/YFSUFkYWDpfFqiICYsMX7nYBeBwqWVu/eWkW9sxXVlRstdTUjZp2R1qWXSSnooIdGHXZlVt/VA7kSkOMsgTHdzVqrds5Sqe3Kqamq8ytRR2V2unJ5+Ua5TV8qW5jlnW3u7DOvu5Z1a1rC5hWwzy1rD8KXWeW/y3hjrPLe61NvKVWix61qlzMpXARASAAS9weVYFrKBrMWqu6jjUZ7fTbfURVYa/M7yswHEFcSLKLxqmslA6BeR7roKj6JqOin0zpcOsgrR+x0kUiko0SNUDpLOuSprSMjVJNz6/rpOpNHRUlRNVImJq6lJPd3dE1b0ldExPFbgZMgYOwaBR942K9XsCn9m9lwgoQgAACZu3yILcRAQaUpwkvPr+a6+6KdVuq9gQIb1U7y4HjTa7HGscIisVOM5lXYFkWydyDBYmjp7oKgOUYUacqINdIqIEMd0FBAWiz/UyMqbMzMchf7XOtKFoSXM8QcfQaNlmA8HQ0tbXsD56lKDIvZ3XYxS3vulF0MAQQnvwnBXQfZPwLwVAMkYoSghSkIpckFJOBBNJZmYhE4E7P58SGQAgjVRZ1ZtNmo2rHq7nz3mS2U6OiXGtkhZehWmijBt/3d1TGcQEq42sxqOUFEQVDwWBY0tRsAioZKw6WJhg69O6pJra3XaSp791mB2IASQldhZLfOAk7DIgCXxTHo0nWBshqN0Y84zMGzCMKRtYGbVvz7WAVC5NzrmykQLIlrfN2qHXQ6Z/qUmDKX/+3DE1gAPtQ9b/YaAIeAiqv2GFazATncobkc9EAAkvb9pnMjVsk3wQhM9Llh+HCIRFERd4sLROgTPOK2jHfzHpU382nQFIAgACc2fGGBODtNkTQqhIzJHrH4NFkIEcw6PKxgocFSm3CrgiDYp1tMRSzjwCVaVDj43vWr7jWiC4oaHsHa27zUKxJKDNef/jXeGuxlKTY2dTwOFKA+y6l2TnRhImDKhYQgEia822x5Zt6y5b96ngYYjIBDeuCFQwnowEHFcp3F3Q2yFFZLvS54JdWCn+lVJXjs1V1u3qntRpyU8I7Uq3/ay03bW1ndLf92/uUxpELIO44f3Kr6CBbEYW5dOlWo5LKwRnMbRHsUId8KFVgUFXg+GEpWg9Vv41YxbN1tuymfD5Cr/3HMVUhALLdtDLQpBOv1r//tgxO0ADnD3V+ekTeG+G6q9hY30qMDU1SSNOegcyOxBoQ6FNCdLvxHr23ta0sU9ysR0WbGp8xM0j1rmy6Zr61vFbVi1920wDjexZD1Z+TpXaAnGC+1gfGlRYSgYUZSeasoiXkDdS8A7z2CJdo8X3+M5NAxThdP9vO5OpACoq7KA8i6CmgsiBNQ+BkMg9yVkFKk5DiSpPVTGZJJ0XCtvGs0fKYhJ1Sb+MYfbrmtaZw+f619TVxvG5msonGaUczjGdaJoY6OcuBcGi5RYaShYxh1TNgZGJNCzgoXIN4rdR1pV0JWhFmfyldXv/JcJhgBTctuDPFGOdFAmCeC4h9ncJKcguVzY//tgxPOADhDdUeelDSHXH6o9gwrUqD7gLVJhOFnCIov6lFMYCyLz5OtEnP0OCssoUOxoKYq1NRqMpI7E75LkV8jKdIyOCknQELjSQSIuahE0OjfSySUn1W63D7/HmEXCJq83cxwh1KJ2/AANk0J/F+vsgcl1QRtTY1iDZMF0eTtOv4KncRPWe0b0xGlbTjXSib4W3AlD5TypIs2e3aqryiyIkpcxOMeN3GtGH12uYqkWhO0dqSlA9aq6uwhmNp3cAAinFeOC6lmceR2EiGUjwM14WJE5cVj0Ss0zW1vY5ZjnpSSL3Fs/V2kvm3VN90v4Zn8/mlRoVZF07uiFRV3nb+Mxz9LI//tgxPgADjytT+w8beHFFen88ZuE0l3ZwRBEJJwAAVdxwnIVhoQyXVGAWpKYIQ8VhfxuratfsU5ID7+4IOeoYj0s3vrerQYt1oo8FPA5Yi/j+ig7Cprmx3iziji76xilapmKJEQCVJQABLYVBTxyRmsXMv5AC/C2TmwTQviGYc5ILASBakpWy1I4As5Z++CQmtb3UTMNv1opus8JJzSpx8Pgv8Ul6ktLZ3Oy7QEI6CIkVHyXmE+tt69/P0V0lIuLQGmhCSAQCJEiVa9VVEiSQV+QU26Kx/Tv/EGG5PBQoapMQU1FMy4xMDCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//tQxP4ADRjPT+ekbSFXFqi9h5k0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy4xMDCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7MMT8AAmom0HsMTJpKRLmPPYiUKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7MMTzgElMmTfnpNJo1AimfPSZgaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7EMTWA8AAAaQAAAAgAAA0gAAABKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"),this.messageSound.volume=.6}subscribeToChat(){this.openviduService.getWebcamSession().on(`signal:${xs.CHAT}`,i=>{const o=i.from.connectionId,r=JSON.parse(i.data),s=this.openviduService.isMyOwnConnection(o);if(this.messageList.push({isLocal:s,nickname:r.nickname,message:r.message}),!this.panelService.isChatPanelOpened()){const a={message:`${r.nickname.toUpperCase()} sent a message`,cssClassName:"messageSnackbar",buttonActionText:"READ"};this.launchNotification(a),this.messageSound.play().catch(()=>{})}this._messageList.next(this.messageList)})}sendMessage(e){if(""!==(e=e.replace(/ +(?= )/g,""))&&" "!==e){const i={message:e,nickname:this.participantService.getMyNickname()};this.openviduService.sendSignal(xs.CHAT,void 0,i)}}launchNotification(e){this.actionService.launchNotification(e,this.panelService.togglePanel.bind(this.panelService,zt.CHAT))}}return t.\u0275fac=function(e){return new(e||t)(oe(sr),oe(bo),oe(vi),oe(_o),oe(Sr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vP=(()=>{class t{constructor(e,i,o){this.chatService=e,this.panelService=i,this.cd=o,this.messageList=[]}ngOnInit(){this.subscribeToMessages()}ngAfterViewInit(){setTimeout(()=>{this.scrollToBottom(),this.chatInput.nativeElement.focus()},100)}ngOnDestroy(){this.chatMessageSubscription&&this.chatMessageSubscription.unsubscribe()}eventKeyPress(e){e&&13===e.keyCode&&(e.preventDefault(),this.sendMessage())}sendMessage(){this.message&&(this.chatService.sendMessage(this.message),this.message="")}scrollToBottom(){setTimeout(()=>{try{this.chatScroll.nativeElement.scrollTop=this.chatScroll.nativeElement.scrollHeight}catch(e){}},20)}close(){this.panelService.togglePanel(zt.CHAT)}subscribeToMessages(){this.chatMessageSubscription=this.chatService.messagesObs.subscribe(e=>{this.messageList=e,this.panelService.isChatPanelOpened()&&(this.scrollToBottom(),this.cd.markForCheck())})}}return t.\u0275fac=function(e){return new(e||t)(h(wp),h(_o),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-chat-panel"]],viewQuery:function(e,i){if(1&e&&(Et(RJ,5),Et(PJ,5)),2&e){let o;xe(o=Oe())&&(i.chatScroll=o.first),xe(o=Oe())&&(i.chatInput=o.first)}},decls:24,vars:17,consts:[["id","chat-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","20px",1,"text-container"],[1,"text-info"],["fxFlex","75%","fxLayoutAlign","space-evenly none",1,"messages-container"],["chatScroll",""],["class","message",3,"ngClass",4,"ngFor","ngForOf"],["fxFlex","55px","fxFlexOrder","3","fxLayoutAlign","space-evenly none",1,"input-container"],["maxlength","500","rows","4","autocomplete","off","id","chat-input",3,"placeholder","ngModel","keypress","ngModelChange"],["chatInput",""],["mat-icon-button","","id","send-btn",3,"click"],[3,"matTooltip"],[1,"message",3,"ngClass"],[1,"msg-detail"],[1,"nickname-container"],[4,"ngIf"],[1,"msg-content"],[3,"innerHTML"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"div",1)(2,"h3",2),se(3),ye(4,"translate"),V(),O(5,"button",3),we("click",function(){return i.close()}),ye(6,"translate"),O(7,"mat-icon"),se(8,"close"),V()()(),O(9,"div",4)(10,"p",5),se(11),ye(12,"translate"),V()(),O(13,"div",6,7),X(15,LJ,8,6,"div",8),V(),O(16,"div",9)(17,"textarea",10,11),we("keypress",function(r){return i.eventKeyPress(r)})("ngModelChange",function(r){return i.message=r}),ye(19,"translate"),V(),O(20,"button",12),we("click",function(){return i.sendMessage()}),O(21,"mat-icon",13),ye(22,"translate"),se(23,"send"),V()()()()),2&e&&(A(3),Ne(Se(4,7,"PANEL.CHAT.TITLE")),A(2),Ht("matTooltip",Se(6,9,"PANEL.CLOSE")),A(6),Ne(Se(12,11,"PANEL.CHAT.SUBTITLE")),A(4),U("ngForOf",i.messageList),A(2),Ht("placeholder",Se(19,13,"PANEL.CHAT.PLACEHOLDER")),U("ngModel",i.message),A(4),Ht("matTooltip",Se(22,15,"PANEL.CHAT.SEND")))},dependencies:[Ii,Ro,Zt,qr,la,Ll,vs,Mn,oi,Lo,bs,Cs,Qf,ys,ir,pP,Un],styles:[ed,".text-container[_ngcontent-%COMP%]{background-color:var(--ov-light-color);color:var(--ov-panel-text-color);text-align:center;font-size:12px}.text-info[_ngcontent-%COMP%]{margin:3px}.messages-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.input-container[_ngcontent-%COMP%]{height:25px;display:flex;background-color:var(--ov-light-color);padding:10px;margin:10px;border-radius:var(--ov-panel-radius)}.input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;height:16px;margin:auto;background-color:transparent;display:block;border:none;padding:0;word-wrap:break-word;white-space:pre-wrap;resize:none;outline:none;box-shadow:none;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif}.message[_ngcontent-%COMP%]{position:relative;padding:3px 0}.msg-detail[_ngcontent-%COMP%]{width:95%;display:inline-block}.msg-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.nickname-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:var(--ov-panel-text-color)}.msg-content[_ngcontent-%COMP%]{position:relative;border-radius:var(--ov-panel-radius);padding:8px;color:#000;width:auto;max-width:95%;font-size:13px;word-break:break-all}#send-btn[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .nickname-container[_ngcontent-%COMP%]{text-align:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{float:left}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .nickname-container[_ngcontent-%COMP%]{text-align:right}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{float:right} a:-webkit-any-link{color:#1a73e8}"],changeDetection:0}),t})(),gy=(()=>{class t{constructor(e,i){this.panelService=e,this.cd=i}set externalParticipantPanel(e){e&&(this.participantsPanelTemplate=e.template)}set externalActivitiesPanel(e){e&&(this.activitiesPanelTemplate=e.template)}set externalChatPanel(e){e&&(this.chatPanelTemplate=e.template)}set externalAdditionalPanels(e){e&&(this.additionalPanelsTemplate=e.template)}ngOnInit(){this.subscribeToPanelToggling()}ngOnDestroy(){this.isChatPanelOpened=!1,this.isParticipantsPanelOpened=!1,this.panelSubscription&&this.panelSubscription.unsubscribe()}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.pipe(du(1)).subscribe(e=>{this.isChatPanelOpened=e.opened&&e.type===zt.CHAT,this.isParticipantsPanelOpened=e.opened&&e.type===zt.PARTICIPANTS,this.isBackgroundEffectsPanelOpened=e.opened&&e.type===zt.BACKGROUND_EFFECTS,this.isSettingsPanelOpened=e.opened&&e.type===zt.SETTINGS,this.isActivitiesPanelOpened=e.opened&&e.type===zt.ACTIVITIES,this.isExternalPanelOpened=e.opened&&e.type!==zt.PARTICIPANTS&&e.type!==zt.CHAT,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(_o),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-panel"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,FJ,5,vt),Je(o,BJ,5,vt),Je(o,VJ,5,vt),Je(o,jJ,5,vt),Je(o,UJ,5,vt),Je(o,HJ,5,vt),Je(o,lP,5),Je(o,aP,5),Je(o,sP,5),Je(o,rP,5)),2&e){let r;xe(r=Oe())&&(i.participantsPanelTemplate=r.first),xe(r=Oe())&&(i.backgroundEffectsPanelTemplate=r.first),xe(r=Oe())&&(i.settingsPanelTemplate=r.first),xe(r=Oe())&&(i.activitiesPanelTemplate=r.first),xe(r=Oe())&&(i.chatPanelTemplate=r.first),xe(r=Oe())&&(i.additionalPanelsTemplate=r.first),xe(r=Oe())&&(i.externalParticipantPanel=r.first),xe(r=Oe())&&(i.externalActivitiesPanel=r.first),xe(r=Oe())&&(i.externalChatPanel=r.first),xe(r=Oe())&&(i.externalAdditionalPanels=r.first)}},decls:6,vars:6,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(X(0,zJ,2,1,"ng-container",0),X(1,WJ,2,1,"ng-container",0),X(2,YJ,2,1,"ng-container",0),X(3,KJ,2,1,"ng-container",0),X(4,XJ,2,1,"ng-container",0),X(5,eee,2,1,"ng-container",0)),2&e&&(U("ngIf",i.isChatPanelOpened),A(1),U("ngIf",i.isParticipantsPanelOpened),A(1),U("ngIf",i.isBackgroundEffectsPanelOpened),A(1),U("ngIf",i.isSettingsPanelOpened),A(1),U("ngIf",i.isActivitiesPanelOpened),A(1),U("ngIf",i.additionalPanelsTemplate&&i.isExternalPanelOpened))},dependencies:[Zt,ls],styles:[ed],changeDetection:0}),t})(),my=(()=>{class t{constructor(e,i,o){this.libService=e,this.participantService=i,this.cd=o,this.showMuteButton=!0}set externalItemElements(e){e&&(this.participantPanelItemElementsTemplate=e.template)}set participant(e){this._participant=e}ngOnInit(){this.subscribeToParticipantPanelItemDirectives()}ngOnDestroy(){this.muteButtonSub&&this.muteButtonSub.unsubscribe()}toggleMuteForcibly(){this.participantService.setRemoteMutedForcibly(this._participant.id,!this._participant.isMutedForcibly)}subscribeToParticipantPanelItemDirectives(){this.muteButtonSub=this.libService.participantItemMuteButton.subscribe(e=>{this.showMuteButton=e,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(Mt),h(vi),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-participant-panel-item"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,tee,5,vt),Je(o,uP,5)),2&e){let r;xe(r=Oe())&&(i.participantPanelItemElementsTemplate=r.first),xe(r=Oe())&&(i.externalItemElements=r.first)}},inputs:{participant:"participant"},decls:12,vars:6,consts:[["matListAvatar","",1,"participant-avatar"],["matLine","",1,"participant-nickname"],["matLine","",1,"participant-subtitle"],[1,"participant-action-buttons"],["mat-icon-button","","id","mute-btn",3,"warn-btn","click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","id","mute-btn",3,"click"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(O(0,"mat-list")(1,"mat-list-item")(2,"mat-icon",0),se(3,"person"),V(),O(4,"h3",1),se(5),V(),O(6,"p",2),se(7),ye(8,"streamTypesEnabled"),V(),O(9,"div",3),X(10,oee,3,4,"button",4),X(11,see,2,1,"ng-container",5),V()()()),2&e&&(A(5),Ne(i._participant.nickname),A(2),Ne(Se(8,4,i._participant)),A(3),U("ngIf",!i._participant.local&&i.showMuteButton),A(1),U("ngIf",i.participantPanelItemElementsTemplate))},dependencies:[Zt,ls,Mn,oi,oa,ku,Lu,Nu,Zie],styles:[".participant-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.participant-nickname[_ngcontent-%COMP%]{font-weight:700!important}.participant-action-buttons[_ngcontent-%COMP%]{display:flex} .participant-action-buttons>*:not(#mute-btn){display:contents} .participant-action-buttons>*:not(#mute-btn)>*{margin:auto}mat-list-item[_ngcontent-%COMP%]{height:max-content!important;padding-bottom:10px!important}mat-list[_ngcontent-%COMP%]{padding:3px}.participant-avatar[_ngcontent-%COMP%]{display:contents}#mute-btn[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-warn-color)}"],changeDetection:0}),t})(),_P=(()=>{class t{constructor(e,i,o){this.participantService=e,this.panelService=i,this.cd=o,this.remoteParticipants=[]}set externalParticipantPanelItem(e){e&&(this.participantPanelItemTemplate=e.template)}ngOnInit(){this.localParticipantSubs=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.cd.markForCheck()}),this.remoteParticipantsSubs=this.participantService.remoteParticipantsObs.subscribe(e=>{const i=[];e.forEach(o=>{i.push(Object.create(o))}),this.remoteParticipants=i,this.cd.markForCheck()})}ngOnDestroy(){this.localParticipantSubs&&this.localParticipantSubs.unsubscribe()}ngAfterViewInit(){this.participantPanelItemTemplate||(this.participantPanelItemTemplate=this.defaultParticipantPanelItemTemplate,this.cd.detectChanges())}close(){this.panelService.closePanel()}}return t.\u0275fac=function(e){return new(e||t)(h(vi),h(_o),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-participants-panel"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,aee,5,vt),Je(o,cP,5)),2&e){let r;xe(r=Oe())&&(i.participantPanelItemTemplate=r.first),xe(r=Oe())&&(i.externalParticipantPanelItem=r.first)}},viewQuery:function(e,i){if(1&e&&Et(q1,5,vt),2&e){let o;xe(o=Oe())&&(i.defaultParticipantPanelItemTemplate=o.first)}},decls:14,vars:8,consts:[["id","participants-container",1,"panel-container"],[1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],[1,"scrollable"],["class","local-participant-container",4,"ngIf"],["class","remote-participants-container","id","remote-participants-container",4,"ngIf"],["defaultParticipantPanelItem",""],[1,"local-participant-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["id","remote-participants-container",1,"remote-participants-container"],["id","remote-participant-item",4,"ngFor","ngForOf"],["id","remote-participant-item"],["id","default-participant-panel-item",3,"participant"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"div",1)(2,"h3",2),se(3),ye(4,"translate"),V(),O(5,"button",3),we("click",function(){return i.close()}),ye(6,"translate"),O(7,"mat-icon"),se(8,"close"),V()()(),O(9,"div",4),X(10,uee,3,5,"div",5),X(11,fee,2,1,"div",6),V()(),X(12,pee,1,1,"ng-template",null,7,dn)),2&e&&(A(3),Ne(Se(4,4,"PANEL.PARTICIPANTS.TITLE")),A(2),Ht("matTooltip",Se(6,6,"PANEL.CLOSE")),A(5),U("ngIf",i.localParticipant),A(1),U("ngIf",i.remoteParticipants.length>0))},dependencies:[Ro,Zt,ls,Mn,oi,Lo,Sb,my,Un],styles:[ed,".local-participant-container[_ngcontent-%COMP%], .remote-participants-container[_ngcontent-%COMP%]{margin:5px 10px}.scrollable[_ngcontent-%COMP%]{height:calc(100% - 60px);max-height:calc(100% - 60px);overflow:auto}.message-container[_ngcontent-%COMP%]{padding:5px;background-color:var(--ov-light-color);color:var(--ov-panel-text-color);text-align:center;margin:5px;font-size:12px}.message-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),t})();var Ca=(()=>{return(t=Ca||(Ca={})).BIG="zoom_in",t.NORMAL="zoom_out",Ca;var t})();let vy=(()=>{class t extends xl{constructor(){super(...arguments),this.containerSelector=".sidenav-main",this.customClass="cdk-overlay-container"}_createContainer(){const e=document.createElement("div");e.classList.add(this.customClass);let i=this.getElement(this.containerSelector);i||(i=this.getElement("body")),this._containerElement=i.appendChild(e)}setSelector(e){const i=this.getElement("."+this.customClass);if(i&&this.containerSelector!==e){const o=this.getElement(e);this.containerSelector=e,null==o||o.appendChild(i)}}getElement(e){return document.querySelector(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),bP=(()=>{class t{constructor(e){this.cdkOverlayModel=e}setSelector(e){this.cdkOverlayModel.setSelector(e)}}return t.\u0275fac=function(e){return new(e||t)(oe(vy))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yP=(()=>{class t{constructor(){this.isSpeaking=!1}ngOnInit(){this.subscribeSpeakingEvents()}ngOnDestroy(){this.unsubscribeSpeakingEvents()}subscribeSpeakingEvents(){this.streamManager&&(this.streamManager.on("publisherStartSpeaking",e=>this.isSpeaking=!0),this.streamManager.on("publisherStopSpeaking",e=>this.isSpeaking=!1))}unsubscribeSpeakingEvents(){this.streamManager&&(this.streamManager.off("publisherStartSpeaking"),this.streamManager.off("publisherStopSpeaking"))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ov-audio-wave"]],inputs:{streamManager:"streamManager"},decls:4,vars:3,consts:[[1,"audio-container"],[1,"stick","normal",3,"ngClass"],[1,"stick","loud",3,"ngClass"]],template:function(e,i){1&e&&(O(0,"div",0),Xe(1,"div",1)(2,"div",2)(3,"div",1),V()),2&e&&(A(1),U("ngClass",i.isSpeaking?"play":"pause"),A(1),U("ngClass",i.isSpeaking?"play":"pause"),A(1),U("ngClass",i.isSpeaking?"play":"pause"))},dependencies:[Ii,ir],styles:["@keyframes normal{0%{height:20%}50%{height:40%}to{height:20%}}@keyframes loud{0%{height:30%}50%{height:80%}to{height:30%}}.audio-container[_ngcontent-%COMP%]{background-color:var(--ov-tertiary-color);padding:5px;max-width:15px;max-height:15px;height:15px;width:15px;border-radius:var(--ov-buttons-radius);display:flex;justify-content:space-between}.stick[_ngcontent-%COMP%]{margin:auto;height:80%;width:3px;background:var(--ov-text-color);border-radius:8px}.pause[_ngcontent-%COMP%]{animation-play-state:paused;height:1px}.play[_ngcontent-%COMP%]{animation-duration:1.2s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-play-state:running}.normal[_ngcontent-%COMP%]{animation-name:normal}.loud[_ngcontent-%COMP%]{animation-name:loud}"]}),t})(),CP=(()=>{class t{constructor(){}set name(e){this.letter=e[0]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ov-avatar-profile"]],inputs:{name:"name",color:"color"},decls:4,vars:4,consts:[["id","video-poster",1,"poster"],[1,"initial",3,"ngStyle"],["id","poster-text"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"div",1)(2,"span",2),se(3),V()()()),2&e&&(A(1),U("ngStyle",Xn(2,gee,i.color)),A(2),Ne(i.letter))},dependencies:[hl,fb],styles:[".poster[_ngcontent-%COMP%]{height:100%;width:100%;background-color:#000;position:absolute;z-index:1}.initial[_ngcontent-%COMP%]{position:absolute;display:inline-grid;z-index:1;margin:auto;inset:0;height:70px;width:70px;border-radius:var(--ov-video-radius);border:2px solid var(--ov-text-color);color:#000}#poster-text[_ngcontent-%COMP%]{padding:0!important;font-weight:700;font-size:40px;margin:auto}"]}),t})(),SP=(()=>{class t{constructor(){this.type=en.CAMERA}ngAfterViewInit(){setTimeout(()=>{this._streamManager&&this._videoElement&&(this.updateVideoStyles(),this._streamManager.addVideoElement(this._videoElement.nativeElement))})}set videoElement(e){this._videoElement=e}set streamManager(e){e&&(this._streamManager=e,this._videoElement&&this._streamManager&&(this.updateVideoStyles(),this._streamManager.addVideoElement(this._videoElement.nativeElement)))}updateVideoStyles(){var e,i;this.type=null===(i=null===(e=this._streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.typeOfVideo,this.type===en.SCREEN?(this._videoElement.nativeElement.style.objectFit="contain",this._videoElement.nativeElement.classList.add("screen-type")):(this._videoElement.nativeElement.style.objectFit="cover",this._videoElement.nativeElement.classList.add("camera-type"))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ov-video"]],viewQuery:function(e,i){if(1&e&&Et(mee,5),2&e){let o;xe(o=Oe())&&(i.videoElement=o.first)}},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},decls:2,vars:2,consts:[[1,"OT_video-element",3,"muted"],["videoElement",""]],template:function(e,i){1&e&&Xe(0,"video",0,1),2&e&&(U("muted",i.mutedSound),Ot("id",i.streamManager&&i._streamManager.stream?"video-"+i._streamManager.stream.streamId:"video-undefined"))},styles:["video[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%;border-radius:var(--ov-video-radius);background-color:#000}"]}),t})(),_y=(()=>{class t{constructor(e,i,o,r,s,a){this.openviduService=e,this.layoutService=i,this.participantService=o,this.storageService=r,this.cdkSrv=s,this.libService=a,this.videoSizeIconEnum=Ca,this.videoTypeEnum=en,this.videoSizeIcon=Ca.BIG,this.isMinimal=!1,this.showNickname=!0,this.showAudioDetection=!0,this.showSettingsButton=!0}set streamContainer(e){setTimeout(()=>{e&&(this._streamContainer=e,setTimeout(()=>{this.showVideo=!0},100))},0)}set stream(e){this._stream=e,this.checkVideoEnlarged(),this._stream.participant&&(this.nickname=this._stream.participant.nickname)}set nicknameInputElement(e){setTimeout(()=>{null==e||e.nativeElement.focus()})}ngOnInit(){this.subscribeToStreamDirectives()}ngOnDestroy(){this.cdkSrv.setSelector("body"),this.settingsButtonSub&&this.settingsButtonSub.unsubscribe(),this.displayAudioDetectionSub&&this.displayAudioDetectionSub.unsubscribe(),this.displayParticipantNameSub&&this.displayParticipantNameSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe()}toggleVideoEnlarged(){var e,i,o,r,s,a,l,c,u,d,f,w;!(null===(o=null===(i=null===(e=this._stream.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===o)&&o.connectionId&&(this.openviduService.isMyOwnConnection(null===(a=null===(s=null===(r=this._stream.streamManager)||void 0===r?void 0:r.stream)||void 0===s?void 0:s.connection)||void 0===a?void 0:a.connectionId)?this.participantService.toggleMyVideoEnlarged(null===(u=null===(c=null===(l=this._stream.streamManager)||void 0===l?void 0:l.stream)||void 0===c?void 0:c.connection)||void 0===u?void 0:u.connectionId):this.participantService.toggleRemoteVideoEnlarged(null===(w=null===(f=null===(d=this._stream.streamManager)||void 0===d?void 0:d.stream)||void 0===f?void 0:f.connection)||void 0===w?void 0:w.connectionId)),this.layoutService.update()}toggleVideoMenu(e){var i,o;this.menuTrigger.menuOpen?this.menuTrigger.closeMenu():(this.cdkSrv.setSelector("#container-"+(null===(o=null===(i=this._stream.streamManager)||void 0===i?void 0:i.stream)||void 0===o?void 0:o.streamId)),this.menuTrigger.openMenu())}toggleMuteForcibly(){this.participantService.setRemoteMutedForcibly(this._stream.participant.id,!this._stream.participant.isMutedForcibly)}toggleNicknameForm(){var e,i;null!==(i=null===(e=this._stream)||void 0===e?void 0:e.participant)&&void 0!==i&&i.local&&(this.toggleNickname=!this.toggleNickname)}updateNickname(e){(13===(null==e?void 0:e.keyCode)||"focusout"===(null==e?void 0:e.type))&&(this.nickname&&(this.participantService.setMyNickname(this.nickname),this.storageService.setNickname(this.nickname),this.openviduService.sendSignal(xs.NICKNAME_CHANGED,void 0,{clientData:this.nickname})),this.toggleNicknameForm())}replaceScreenTrack(){return Le(this,void 0,void 0,function*(){const e={videoSource:nd.SCREEN,publishVideo:!0,publishAudio:!this.participantService.isMyCameraActive(),mirror:!1};yield this.openviduService.replaceTrack(en.SCREEN,e)})}checkVideoEnlarged(){this.videoSizeIcon=this._stream.videoEnlarged?Ca.NORMAL:Ca.BIG}subscribeToStreamDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e}),this.displayParticipantNameSub=this.libService.displayParticipantNameObs.subscribe(e=>{this.showNickname=e}),this.displayAudioDetectionSub=this.libService.displayAudioDetectionObs.subscribe(e=>{this.showAudioDetection=e}),this.settingsButtonSub=this.libService.streamSettingsButtonObs.subscribe(e=>{this.showSettingsButton=e})}}return t.\u0275fac=function(e){return new(e||t)(h(bo),h(ba),h(vi),h(jo),h(bP),h(Mt))},t.\u0275cmp=et({type:t,selectors:[["ov-stream"]],viewQuery:function(e,i){if(1&e&&(Et(Es,5),Et(vee,5),Et(_ee,5,ke),Et(bee,5)),2&e){let o;xe(o=Oe())&&(i.menuTrigger=o.first),xe(o=Oe())&&(i.menu=o.first),xe(o=Oe())&&(i.streamContainer=o.first),xe(o=Oe())&&(i.nicknameInputElement=o.first)}},inputs:{stream:"stream"},decls:1,vars:1,consts:[["class","OV_stream",3,"ngClass","id",4,"ngIf"],[1,"OV_stream",3,"ngClass","id"],["streamContainer",""],["id","nickname-container","class","nickname",3,"fullscreen",4,"ngIf"],["id","audio-wave-container",4,"ngIf"],[3,"name","color",4,"ngIf"],[3,"streamManager","mutedSound","dblclick"],[1,"status-icons"],["mat-icon-button","","id","statusMic","disabled","",4,"ngIf"],["id","settings-container","class","videoButtons",4,"ngIf"],["id","nickname-container",1,"nickname"],["class","nicknameContainer","selected","",3,"click",4,"ngIf"],["id","nickname-input-container",3,"fullscreen",4,"ngIf"],["selected","",1,"nicknameContainer",3,"click"],["id","nickname",4,"ngIf"],["id","nickname"],["id","nickname-input-container"],["matInput","","autocomplete","off","maxlength","20",3,"ngModel","ngModelChange","keypress","focusout"],["nicknameInput",""],["id","audio-wave-container"],[3,"streamManager"],[3,"name","color"],["mat-icon-button","","id","statusMic","disabled",""],["id","settings-container",1,"videoButtons"],["mat-icon-button","","matTooltipPosition","above","aria-label","Video settings menu",3,"matTooltip","click"],[3,"matMenuTriggerFor"],["yPosition","above","xPosition","before"],["menu","matMenu"],["mat-menu-item","","id","videoZoomButton",3,"click"],[4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click",4,"ngIf"],["mat-menu-item","","id","changeScreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click"],["mat-menu-item","","id","changeScreenButton",3,"click"]],template:function(e,i){1&e&&X(0,Bee,9,11,"div",0),2&e&&U("ngIf",i._stream)},dependencies:[Ii,Zt,qr,la,Ll,vs,Mn,oi,gb,Lo,ir,Pu,Ss,Es,yP,CP,SP,Un],styles:[".no-size[_ngcontent-%COMP%]{height:0px!important;width:0px!important}.nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:var(--ov-video-radius);color:var(--ov-text-color);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color);padding:5px;color:var(--ov-text-color);font-weight:700;border-radius:var(--ov-video-radius)}#nickname-input-container[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color);border-radius:var(--ov-video-radius)}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}#audio-wave-container[_ngcontent-%COMP%]{position:absolute;right:0;z-index:2;padding:5px}.fullscreen[_ngcontent-%COMP%]{top:40px}video[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.status-icons[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%]{position:absolute;bottom:0;z-index:10;text-align:center}.status-icons[_ngcontent-%COMP%]{left:0}.status-icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--ov-text-color);width:26px;height:26px;margin:5px;border-radius:var(--ov-buttons-radius)}.status-icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)}.status-icons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0px}.status-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px}#settings-container[_ngcontent-%COMP%]{right:0}#settings-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color)}.OV_stream[_ngcontent-%COMP%]{width:100%;height:100%;position:relative;overflow:hidden;background-color:transparent;border-radius:var(--ov-video-radius)}input[_ngcontent-%COMP%]{caret-color:#fff!important}"],data:{animation:[qi("posterAnimation",[Vn(":enter",[kt({opacity:0}),$n("100ms",kt({opacity:1}))]),Vn(":leave",[kt({opacity:1}),$n("200ms",kt({opacity:0}))])])]}}),t})(),EP=(()=>{class t{constructor(e){this.media=e,this.screenSizeObs=this.media.asObservable()}toggleFullscreen(e){const i=window.document,o=i.getElementById(e);i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement?i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():i.webkitExitFullscreen&&i.webkitExitFullscreen():o.requestFullscreen?o.requestFullscreen():o.msRequestFullscreen?o.msRequestFullscreen():o.mozRequestFullScreen?o.mozRequestFullScreen():o.webkitRequestFullscreen&&o.webkitRequestFullscreen()}isSmallElement(e){return null==e?void 0:e.className.includes(Uo.SMALL_ELEMENT)}}return t.\u0275fac=function(e){return new(e||t)(oe(I9))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),AP=(()=>{class t{constructor(e){this.elementRef=e,this.defaultLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAADtCAMAAACS/9AMAAACLlBMVEUAAAAAiqoAiKoAiKr/zAD/zAD/zAD/zAD+zAH/zAD/zAD+zAH/zAD/zAAAiKoBiKoAian/zAAAiKoAiKoAiKoAiKr/zAD/zAAAiKr/zAAAiKoAiKr/zAD/zAD/zAD/zAAAiKsAiKr/zAD/zQAAiKsAiKr/zAD/zQD/zAAAiKoAiKr/zAD/zAD/zQD/zAAAiKr+zAD/zAAAiar/zAD/zAD/zAAAian/zAAAiKr/zAD/zAD/zQAAiKv/zAAAiKr/zAAAiKr/zAD/zAAAiKoAiKoAiKr+zAD/zQAAiKr/zAAAiKr/zAAAiKr/zAAAiKr/zAAAiKoAiKoAiKoAiKoAiKoBian/zQBHwlYWymQAiKr/zAAG02IAiKr///8G0mMJ02EA02j7zAH9zAEA02UI02EG1mBl0D3+//4FxW+sziEG02MG1l/9//0ExHED02AJ1GT7/v0S1Wns/PMI02MA0FgA0VoG2F0Ag68C0l4Ah6sAha0B0lwi2HQN1GYBmJsEwXP2/vnL9t7a+egCpI8FzWhNzknk++7A9Ni789Sk78Z66KwAjqRV4pQu2nze+euE6rJh5JwEu3kX12yUzyqO67hx5qUDqopD3ok83YU13IADtIAO01880kxg0D/Hzhav8c2Z7b9o5aBN4I8DsYMFyGwU012A0DLnzQnxzQXx/ffp+/HU+OSS7Lsw0lGfzyalzyO0zh27zhvUzRHczg0Ai6cBk6Ad0lkm0lVy0De/zhkyJ1GVAAAAWnRSTlMAAvz+/AX6gAT7cQMB/qYDBAJh9p7h7BoO0beJbsyfPy1YZwjbvXtbUicU9XYg45FjMyDYxcGxsIFFKRQI8Oq7q6mJeW5COg3So5iYUujIkGRQRjszoU7vu07Vus4OAAANMUlEQVR42uzWPWsCQRDG8adYz93MTLGNEvAFTtADX1CiiEoQLGIl9vP9P0i8GIJNCvdOcBd/H+CKPzOzh5eXuzF7Imtt48lZS54ZD8TeEqJC1uMxiHDBx22/yN8mw+ZTm3TyYrHzANgy6sbEQGOR95anTCNhxt1ePgVAHrUihv86vBv9IcY5lz0154xoabzKd2Bi1MZ7DEYrKXM7IyIaBxHjjIq2Dm14X+NgFB8q4kwsHW6IMaKtSQOEWli01+VHNVZiRLsLEKM6wmamEbcoGaPjeR05CPNM427x2+MAz5Vj5LEPxpWUOahqjCLmi3FLnA6r5fDYthJYk7/pKECoYpVMDFWjpy08QhE6CcVQdboGIxCjPdMIf7j+V2VXCE11mhKjSwYjBOOY2GhUGQ6LUVJX41pjjzCMdXI1RLMtfNgN/UxtUVSdDmFxP0pwUcJXxeKc2ItSEm3twAGLgn2Cs3GxAQXUGCT3vpaMdgIOh8c0S7GG03NADUJfU6zxzX4drDQMBAEYnk08iApbqIJaBREL1kuhB/FQFNFeRDwIRdgEs9utUiM+Rp+gx1ZvrV6sUA/q2zmth4gYIQu7W0N+8gQfM8tkhh3CgoLGdhoxUOMgu0S//6oALCTX2Eypxvq8isZaCs+NscbKrIrGXKaRaWQamUamkWn8Fw0xrmG0Lw1Cyc8ozeVylACxoiEEsxNq/Hl9IYlpjQnF48dw8H5ttPs2dlFf/KWT8t7x6cYyYJSY1BD4PQx6/ZAbT0ou7/zYnP1ioVYFIMSUBi7vU6cXchl6zcBCty0nLndCslQoAaHEiIZgYvjGpRc0PStdXrX82Fx3QpKvl4ASAxqCjXpcBoFnqUgjngRB8kcUiHYNwW66XGEsTGlEHqs7QDVrCNaRocJcGNOIPPwt3BatGojBPYXBMK6BIUcFiEYNXBOpgGFHAznOqkC0aTTYqC8VMCxpIEdZnwbW5gpvhiUNzPVrQDVpCPYyBRhJNBy/qO/dEM/29ySRBg7HOdBII32jkUjD8XeBRBqpezWSzka+AkSDRoO9dkNvCkqigcPxyY6967YNQ2EAdtu96dBOXfoGfYUOHfsGLKcEEUIQomySgABZgOMhdgxfgsBG4ilxgAC5DVnzdjmKRSYGsgiIACX8/0HQ/OHw8PD8bX2rQYMGr0aURlWNPzXVxu471Pjy/wdNYE7jw90olTU+/6pF4+pymzUhlTSI419r6801aCpvxDlxGpXa6FtrUBN9aMSNUl3jZy0a9804KJU1fre2atDYa0YTrazxvfUJGl7jKzSgAQ1oQAMa0IAGNKARtIZWLI7pK6DBhM5MnOfCmlTp0DUEs8v5oD/dP1x1yUMEraHT/FzyIhHv3HVNrES4GoKpIZeJpCSSPEbHhUeoGtrOeRLxdSL6Oxi1ySNMDZ1NejziPrLwWLQNUyFqKDPjiaPwHtNVTh7habCYugbfjJQR768UeYSmEedTr7HpcXu0Qx5BaYi43Snaxqse+2NmmYLG2oOTR2yFgob3uEjJAxrOY3BCHhoapUc0PMms1tAokkguz05tpjU0So/kbGkzpaHhPA4nNlUaGuVzrrf2gIbzOO8a8oCG87grPAQ0So/r+ZMHNEqPzuxpPQaN0uNmvS6Exsa6EBp+PbbIDdPQcB79o51MQcOvgwYTq6Dh6oNfj62CRpmEy7FR0CgjeW+ZaWj46himqI3nRKeZhoYvjpFR0PAaM2i80FhAwyXiyQR945G98+pxGggC8CYxkJBYTui99957Eb33ItiYhHYCJaEJSAjlQi8CUQSiwwNdIJpE+3mM44QhIoBnbbi143m4p9Pp9Gm+bTPrxdS4dNifYX/AuHr8iE+jsrXfcv7eYX8tarLIbTl13N+nVEssJ68dPObvYavlpuNw3OOfbxil6hyUIuHo3D/7MtsYjkFZ1j8XNVugjJYOv4KwyzwPhXYfv7pUrh0YZ+X7/Mpjpc4GLPyqdLUmDTU2v0a/P1fpV8j4/Rs5o9fJ7+35scC4eNfv+6ouMIweWr8n0Cy4vrkCCwy/X7Q8kVwt383we4nNxhW4x9RAfeavkcavTV5GU1Pj3EGA2zqnt+T+vMBonPspgONCPRq5cvOwwaKR7i7BLT+4APr7BUaD3Ws7ePgOjhu1l1L2HWy8O4+GKvvrnuY04H1YSI67+xFH7sdpTkPelYaR4/D1XdWL9LuqpzmNeo/eyI4np82xw+iKNU5zGvcbC2UcJ65fOnX6zcVbTw4Yk2ojf3/DwLH30OHMiX3wE062ZPg2y4iWpJHMwGwKH+7ZhywcopEVodGKDfLmN52ye4RotOGtPUmj5NNAGvlS0aeBNG4c9ccNpHG/4LoZFsNxGreFaIzhigdpJJvOCNCIso1c9SKNVLPAuJFgYxWueo9G09lPAnNKjE2f6UEaOKUQaSR6csWDNG4XBGiwKFvGI56jgcMGjQZMKt7LDdilFHURGgk2cjhXvUYDRaHRYDE2mSseo5E8e7koRiPKBnuNRir/FFOD9EQZ5Eb/8Vzx0ts6qSZIDTKNSkTZGOdofJTg3aVUHlfl1l96rESMxSY6hGM7f5xs8cCVF/3dS3N1PpwrXnnmMZV9hp4Qxw10xZlZ9tWXFho4EMbZz5gapDkFcQziiuLIyPGwZSYV1ORsc0Gn01jKNOYYDlTlUUu+eplK5vdgZlBoTGFxpBGDVcdw4OHqF1FTqWzyqY4wKDRWmzQQx7QJXFUU25NKy4yigCKZzZaaC0UBGCE9tK4ybqAsrfqNAh4RVbWVHV///8CRAhRN+WTpTBETg0Zj1jCTBkYiwRa1Hc+BRSSiqKqoKt+sqJJyMJJAIp989rS5iMMnVZRuCANtgVX6xl6jTBBgTQRCcVAVZNGUdSLyRjQlU7tv3G7+VKiTF7QHUX/lAT8WLRw0Z/xM5d89Og4snu2xHaVS6caN+09vn2m+rB8VQ4Fvjg/F3KjlkWAQ4eljpw7u13bEoB5zuErdquzY+ZdZ8OwZ3YkoFo8WII4WdVuBK9G6QBLhBKtEGAqTEWeWHDgL3r9c0GWKkL4AadQlEktEw+Fwqyh9t6/yl192pH8rSb48C8oUQX0DwLAQxGoLbuszO38rCcyCUkVQHzDOGo0w1qxJON7tyNTJDgklKQ+h65hmBUaMMTz5IOF4n96RdoEkRma0X2MNBp6n03E8frs1k5ZdEj0U1GctsAgDROmHqUHE8erFA+CRlncmMViE9IHjrMCwW1zYDsdgjx5s3ZpJptM7D8onSQhQhPSOqzUCjOmdhAtP6jbOX94893zH1q07ks9AEvMfEIpgyDEGRgSD5h9cPL8LCwSYxYiyIUKpgekBQD68ePRw06QB7YM2/XY42i8evSDOAhYTw1bBGvNju6LyCQtZLD6sz9rl7QSjb/f2uiPpEZrVseOAxSu7LZ23fJyRE5rVxDDLTqNsHqUrCl8xJsoCMWYvhk7SHdAlpPdlXWZUN6uawYKSGr05V+2xiCzrzBJRBhHQtLhoQD6vGWBXFzwLDmhx6yRwfp1rRxS1Ikk0xmwH+N1lim1dYA6ZUTtsUkSJYtePUGJ06hdl0QRzJLSAI7rgUosYCTatNVfFWSi9qpI4xQN1EValO4szemBfragkPXvXSiKDLiF9scYCTCxmc0VYkh6tCJJQdOmGugjQCPYRoxFjnWHHJockmB6oi6Aq84RUMbvjZJHEti5YKhAdRJdwRR5JbOqCRzt4zkUSZdEKrkokSU16sL4d6bpgwZUaZje+XJLU6kLeu2CjhgiNVTwimyQ1uvQh6YIVV9jF00VpBaUD6SQR1wVxbGYafQxdqHJVQklEdUFVRpNoYI1NTkkwNEbXJaQPgJ0bVRQ2gSuSSmJLFyCHjSukHZu0kgjqgi1eVFF6cEVmScRnl5C+MoDJYb10ILUkQrpgswZxxzaTq5JLIqILNvJYC7ykIb8kZF2wp5xGoxePuEASmi6oCjQAknZs0CrpCkloumAhgVRVmuoeSei6BPUOLEAsHbhGErIuUEgg7NxiLNyVKy6ShK7LWlTFWrOXqyQh6EIsJJifeXKZJCRdoJAQt6pKrFw6cJ0kBF2gkLAeaBCavVwoSa0uA1EXC4UEcrOXKr0kVnUBGgPhdyzmxpx6NECSrtJLYkUXLCTQm71Qkpkj+rtAkjq6iBUSsNlL/VUSPmekOySxogveOqA3e6mGJFPdI4kFXfDq1u8DvzHgckkwNIa61OJYzjRCsxdKorpPkj/pgi1gFksHHpCkhsew0YYupEICluYjPy+32rpVku9DqV1CENkFMZHAT1whimhueQ7hTIKSPBiF4NkFMZFA1JAoJ+8wySS4swvhiQTE0SRsnCycwEwyZGsS7MEBzy6IiQRiZg9MQZUK7/DIJDiyC2LIh3CLQ93T3N9tuGQSBOAHZRcmYHYhZXkgDyQQBIdLJkEARljtwsQkTPR6OB4Obh7u4ZRJMLMLM2Tb54gHwOSh5Swl5aw1GhiQ8ICkktHAgGYXAUZGgdHAIAAAQBR1+dE1+L0AAAAASUVORK5CYII="}loadDefaultLogo(){this.elementRef.nativeElement.src=this.ovLogo||this.defaultLogo}}return t.\u0275fac=function(e){return new(e||t)(h(ke))},t.\u0275dir=ge({type:t,selectors:[["img","ovLogo",""]],hostBindings:function(e,i){1&e&&we("error",function(){return i.loadDefaultLogo()})},inputs:{ovLogo:"ovLogo"}}),t})(),wP=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,w,z,ne,fe,he){this.documentService=e,this.chatService=i,this.panelService=o,this.participantService=r,this.openviduService=s,this.oVDevicesService=a,this.actionService=l,this.loggerSrv=c,this.layoutService=u,this.cd=d,this.libService=f,this.platformService=w,this.recordingService=z,this.broadcastingService=ne,this.translateService=fe,this.storageSrv=he,this.onLeaveButtonClicked=new Ee,this.onCameraButtonClicked=new Ee,this.onMicrophoneButtonClicked=new Ee,this.onFullscreenButtonClicked=new Ee,this.onScreenshareButtonClicked=new Ee,this.onParticipantsPanelButtonClicked=new Ee,this.onChatPanelButtonClicked=new Ee,this.onActivitiesPanelButtonClicked=new Ee,this.onStartRecordingClicked=new Ee,this.onStopBroadcastingClicked=new Ee,this.onStopRecordingClicked=new Ee,this.unreadMessages=0,this.messageList=[],this.isFullscreenActive=!1,this.isChatOpened=!1,this.isParticipantsOpened=!1,this.isActivitiesOpened=!1,this.isMinimal=!1,this.showScreenshareButton=!0,this.showFullscreenButton=!0,this.showBackgroundEffectsButton=!0,this.showLeaveButton=!0,this.showRecordingButton=!0,this.showBroadcastingButton=!0,this.showSettingsButton=!0,this.showMoreOptionsButton=!0,this.showParticipantsPanelButton=!0,this.showActivitiesPanelButton=!0,this.showChatPanelButton=!0,this.showLogo=!0,this.showSessionName=!0,this.showCaptionsButton=!0,this.videoMuteChanging=!1,this.recordingStatus=kn.STOPPED,this.broadcastingStatus=Yi.STOPPED,this._recordingStatus=kn,this._broadcastingStatus=Yi,this.isSessionCreator=!1,this.currentWindowHeight=window.innerHeight,this.log=this.loggerSrv.get("ToolbarComponent")}set externalAdditionalButtons(e){e&&(this.toolbarAdditionalButtonsTemplate=e.template)}set externalAdditionalPanelButtons(e){e&&(this.toolbarAdditionalPanelButtonsTemplate=e.template)}sizeChange(e){this.currentWindowHeight>=window.innerHeight&&(this.isFullscreenActive=!1,this.currentWindowHeight=window.innerHeight)}keyDown(e){if("F11"===e.key)return e.preventDefault(),this.toggleFullscreen(),this.currentWindowHeight=window.innerHeight,!1}ngOnInit(){return Le(this,void 0,void 0,function*(){this.subscribeToToolbarDirectives(),this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.session=this.openviduService.getWebcamSession(),this.subscribeToUserMediaProperties(),this.subscribeToReconnection(),this.subscribeToMenuToggling(),this.subscribeToChatMessages(),this.subscribeToRecordingStatus(),this.subscribeToBroadcastingStatus(),this.subscribeToScreenSize(),this.subscribeToCaptionsToggling()})}ngAfterViewInit(){var e;null===(e=this.menuTrigger)||void 0===e||e.menuOpened.subscribe(()=>{this.isSessionCreator=this.participantService.amIModerator()})}ngOnDestroy(){this.panelTogglingSubscription&&this.panelTogglingSubscription.unsubscribe(),this.chatMessagesSubscription&&this.chatMessagesSubscription.unsubscribe(),this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe(),this.screenshareButtonSub&&this.screenshareButtonSub.unsubscribe(),this.fullscreenButtonSub&&this.fullscreenButtonSub.unsubscribe(),this.backgroundEffectsButtonSub&&this.backgroundEffectsButtonSub.unsubscribe(),this.leaveButtonSub&&this.leaveButtonSub.unsubscribe(),this.recordingButtonSub&&this.recordingButtonSub.unsubscribe(),this.broadcastingButtonSub&&this.broadcastingButtonSub.unsubscribe(),this.participantsPanelButtonSub&&this.participantsPanelButtonSub.unsubscribe(),this.chatPanelButtonSub&&this.chatPanelButtonSub.unsubscribe(),this.displayLogoSub&&this.displayLogoSub.unsubscribe(),this.displaySessionNameSub&&this.displaySessionNameSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe(),this.activitiesPanelButtonSub&&this.activitiesPanelButtonSub.unsubscribe(),this.recordingSubscription&&this.recordingSubscription.unsubscribe(),this.broadcastingSubscription&&this.broadcastingSubscription.unsubscribe(),this.screenSizeSub&&this.screenSizeSub.unsubscribe(),this.settingsButtonSub&&this.settingsButtonSub.unsubscribe(),this.captionsSubs&&this.captionsSubs.unsubscribe()}toggleMicrophone(){return Le(this,void 0,void 0,function*(){this.onMicrophoneButtonClicked.emit();try{yield this.openviduService.publishAudio(!this.isAudioActive)}catch(e){this.log.e("There was an error toggling microphone:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.TOGGLE_MICROPHONE"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}})}toggleCamera(){return Le(this,void 0,void 0,function*(){this.videoMuteChanging=!0,this.onCameraButtonClicked.emit();try{const e=!this.participantService.isMyVideoActive();this.panelService.isExternalPanelOpened()&&!e&&this.panelService.togglePanel(zt.BACKGROUND_EFFECTS),yield this.openviduService.publishVideo(e)}catch(e){this.log.e("There was an error toggling camera:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.TOGGLE_CAMERA"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}this.videoMuteChanging=!1})}toggleScreenShare(){return Le(this,void 0,void 0,function*(){this.onScreenshareButtonClicked.emit();try{yield this.openviduService.toggleScreenshare()}catch(e){this.log.e("There was an error toggling screen share",e.code,e.message),e&&"SCREEN_SHARING_NOT_SUPPORTED"===e.name&&this.actionService.openDialog(this.translateService.translate("ERRORS.SCREEN_SHARING"),this.translateService.translate("ERRORS.SCREEN_SUPPORT"))}})}leaveSession(){this.log.d("Leaving session..."),this.openviduService.disconnect(),this.onLeaveButtonClicked.emit()}toggleRecording(){this.recordingStatus===kn.STARTED?(this.log.d("Stopping recording"),this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(kn.STOPPING)):this.recordingStatus===kn.STOPPED&&(this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(kn.STARTING),this.showActivitiesPanelButton&&!this.isActivitiesOpened&&this.toggleActivitiesPanel("recording"))}toggleBroadcasting(){this.broadcastingStatus===Yi.STARTED?(this.log.d("Stopping broadcasting"),this.onStopBroadcastingClicked.emit(),this.broadcastingService.updateStatus(Yi.STOPPING)):this.broadcastingStatus===Yi.STOPPED&&this.showActivitiesPanelButton&&!this.isActivitiesOpened&&this.toggleActivitiesPanel("broadcasting")}toggleBackgroundEffects(){this.openviduService.isOpenViduPro()?this.panelService.togglePanel(zt.BACKGROUND_EFFECTS):this.actionService.openProFeatureDialog(this.translateService.translate("PANEL.BACKGROUND.TITLE"),this.translateService.translate("PANEL.PRO_FEATURE"))}toggleCaptions(){this.openviduService.isOpenViduPro()?this.layoutService.toggleCaptions():this.actionService.openProFeatureDialog(this.translateService.translate("PANEL.SETTINGS.CAPTIONS"),this.translateService.translate("PANEL.PRO_FEATURE"))}toggleSettings(){this.panelService.togglePanel(zt.SETTINGS)}toggleParticipantsPanel(){this.onParticipantsPanelButtonClicked.emit(),this.panelService.togglePanel(zt.PARTICIPANTS)}toggleChatPanel(){this.onChatPanelButtonClicked.emit(),this.panelService.togglePanel(zt.CHAT)}toggleFullscreen(){this.isFullscreenActive=!this.isFullscreenActive,this.documentService.toggleFullscreen("session-container"),this.onFullscreenButtonClicked.emit()}toggleActivitiesPanel(e){this.onActivitiesPanelButtonClicked.emit(),this.panelService.togglePanel(zt.ACTIVITIES,e)}subscribeToReconnection(){this.session.on("reconnecting",()=>{this.panelService.isPanelOpened()&&this.panelService.closePanel(),this.isConnectionLost=!0}),this.session.on("reconnected",()=>{this.isConnectionLost=!1})}subscribeToMenuToggling(){this.panelTogglingSubscription=this.panelService.panelOpenedObs.subscribe(e=>{this.isChatOpened=e.opened&&e.type===zt.CHAT,this.isParticipantsOpened=e.opened&&e.type===zt.PARTICIPANTS,this.isActivitiesOpened=e.opened&&e.type===zt.ACTIVITIES,this.isChatOpened&&(this.unreadMessages=0),this.cd.markForCheck()})}subscribeToChatMessages(){this.chatMessagesSubscription=this.chatService.messagesObs.pipe(du(1)).subscribe(e=>{this.panelService.isChatPanelOpened()||this.unreadMessages++,this.messageList=e,this.cd.markForCheck()})}subscribeToUserMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isWebcamVideoActive=e.isCameraVideoActive(),this.isAudioActive=e.hasAudioActive(),this.isScreenShareActive=e.isScreenActive(),this.isSessionCreator=e.getRole()===id.MODERATOR,this.storageSrv.setAudioMuted(!this.isAudioActive),this.storageSrv.setVideoMuted(!this.isWebcamVideoActive),this.cd.markForCheck())})}subscribeToRecordingStatus(){this.recordingSubscription=this.recordingService.recordingStatusObs.subscribe(e=>{e&&(this.recordingStatus=e.info.status,null!=e&&e.time&&(this.recordingTime=e.time),this.cd.markForCheck())})}subscribeToBroadcastingStatus(){this.broadcastingSubscription=this.broadcastingService.broadcastingStatusObs.subscribe(e=>{e&&(this.broadcastingStatus=e.status,e.time&&(this.broadcastingTime=e.time),this.cd.markForCheck())})}subscribeToToolbarDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e,this.cd.markForCheck()}),this.screenshareButtonSub=this.libService.screenshareButtonObs.subscribe(e=>{this.showScreenshareButton=e&&!this.platformService.isMobile(),this.cd.markForCheck()}),this.fullscreenButtonSub=this.libService.fullscreenButtonObs.subscribe(e=>{this.showFullscreenButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.leaveButtonSub=this.libService.leaveButtonObs.subscribe(e=>{this.showLeaveButton=e,this.cd.markForCheck()}),this.recordingButtonSub=this.libService.recordingButtonObs.subscribe(e=>{this.showRecordingButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.broadcastingButtonSub=this.libService.broadcastingButtonObs.subscribe(e=>{this.showBroadcastingButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.settingsButtonSub=this.libService.toolbarSettingsButtonObs.subscribe(e=>{this.showSettingsButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.chatPanelButtonSub=this.libService.chatPanelButtonObs.subscribe(e=>{this.showChatPanelButton=e,this.cd.markForCheck()}),this.participantsPanelButtonSub=this.libService.participantsPanelButtonObs.subscribe(e=>{this.showParticipantsPanelButton=e,this.cd.markForCheck()}),this.activitiesPanelButtonSub=this.libService.activitiesPanelButtonObs.subscribe(e=>{this.showActivitiesPanelButton=e,this.cd.markForCheck()}),this.backgroundEffectsButtonSub=this.libService.backgroundEffectsButton.subscribe(e=>{this.showBackgroundEffectsButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.displayLogoSub=this.libService.displayLogoObs.subscribe(e=>{this.showLogo=e,this.cd.markForCheck()}),this.displaySessionNameSub=this.libService.displaySessionNameObs.subscribe(e=>{this.showSessionName=e,this.cd.markForCheck()}),this.captionsSubs=this.libService.captionsButtonObs.subscribe(e=>{this.showCaptionsButton=e,this.cd.markForCheck()})}subscribeToScreenSize(){this.screenSizeSub=this.documentService.screenSizeObs.subscribe(e=>{this.screenSize=e[0].mqAlias,this.cd.markForCheck()})}subscribeToCaptionsToggling(){this.captionsSubs=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e,this.cd.markForCheck()})}checkDisplayMoreOptions(){this.showMoreOptionsButton=this.showFullscreenButton||this.showBackgroundEffectsButton||this.showRecordingButton||this.showBroadcastingButton||this.showSettingsButton}}return t.\u0275fac=function(e){return new(e||t)(h(EP),h(wp),h(_o),h(vi),h(bo),h(ec),h(Sr),h(sr),h(ba),h(Vt),h(Mt),h(Jl),h(td),h(py),h(Ms),h(jo))},t.\u0275cmp=et({type:t,selectors:[["ov-toolbar"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Vee,5,vt),Je(o,jee,5,vt),Je(o,iP,5),Je(o,oP,5)),2&e){let r;xe(r=Oe())&&(i.toolbarAdditionalButtonsTemplate=r.first),xe(r=Oe())&&(i.toolbarAdditionalPanelButtonsTemplate=r.first),xe(r=Oe())&&(i.externalAdditionalButtons=r.first),xe(r=Oe())&&(i.externalAdditionalPanelButtons=r.first)}},viewQuery:function(e,i){if(1&e&&Et(Es,5),2&e){let o;xe(o=Oe())&&(i.menuTrigger=o.first)}},hostBindings:function(e,i){1&e&&we("resize",function(r){return i.sizeChange(r)},0,Dc)("keydown",function(r){return i.keyDown(r)},!1,xS)},outputs:{onLeaveButtonClicked:"onLeaveButtonClicked",onCameraButtonClicked:"onCameraButtonClicked",onMicrophoneButtonClicked:"onMicrophoneButtonClicked",onFullscreenButtonClicked:"onFullscreenButtonClicked",onScreenshareButtonClicked:"onScreenshareButtonClicked",onParticipantsPanelButtonClicked:"onParticipantsPanelButtonClicked",onChatPanelButtonClicked:"onChatPanelButtonClicked",onActivitiesPanelButtonClicked:"onActivitiesPanelButtonClicked",onStartRecordingClicked:"onStartRecordingClicked",onStopBroadcastingClicked:"onStopBroadcastingClicked",onStopRecordingClicked:"onStopRecordingClicked"},decls:27,vars:26,consts:[["id","toolbar","role","heading","fxLayout","","fxLayoutAlign","center","fxLayoutGap","40px"],["fxFlex","20%","fxLayoutAlign","start center","id","info-container",4,"ngIf"],["fxFlex","60%","fxFlexOrder","2","fxLayoutAlign","center center","id","media-buttons-container"],["id","mic-btn","mat-icon-button","",3,"disabled","click"],["id","mic",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","mic_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","camera-btn","mat-icon-button","",3,"disabled","click"],["id","videocam",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","videocam_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["mat-icon-button","","id","screenshare-btn",3,"disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","more-options-btn",3,"matMenuTriggerFor","disabled",4,"ngIf"],["id","more-options-menu"],["menu","matMenu"],["mat-menu-item","","id","fullscreen-btn",3,"click",4,"ngIf"],["mat-menu-item","","id","recording-btn",3,"disabled","click",4,"ngIf"],["mat-menu-item","","id","broadcasting-btn",3,"disabled","click",4,"ngIf"],["mat-menu-item","","id","virtual-bg-btn",3,"disabled","click",4,"ngIf"],["mat-menu-item","","id","captions-btn",3,"disabled","click",4,"ngIf"],["class","divider",4,"ngIf"],["mat-menu-item","","id","toolbar-settings-btn",3,"click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","id","leave-btn",3,"click",4,"ngIf"],["fxFlex","20%","fxFlexOrder","3","fxLayoutAlign","end center","id","menu-buttons-container"],["mat-icon-button","","id","activities-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","participants-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","chat-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["fxFlex","20%","fxLayoutAlign","start center","id","info-container"],["id","branding-logo","src","assets/images/logo.png","ovLogo","",4,"ngIf"],["id","session-info-container"],["id","session-name",4,"ngIf"],["id","activities-tag"],["id","recording-tag","class","recording-tag",4,"ngIf"],["id","broadcasting-tag","class","broadcasting-tag",4,"ngIf"],["id","branding-logo","src","assets/images/logo.png","ovLogo",""],["id","session-name"],["id","recording-tag",1,"recording-tag"],[1,"blink"],["id","broadcasting-tag",1,"broadcasting-tag"],["id","mic",3,"matTooltipDisabled","matTooltip"],["id","mic_off",3,"matTooltipDisabled","matTooltip"],["id","videocam",3,"matTooltipDisabled","matTooltip"],["id","videocam_off",3,"matTooltipDisabled","matTooltip"],["mat-icon-button","","id","screenshare-btn",3,"disabled","click"],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],["mat-icon-button","","id","more-options-btn",3,"matMenuTriggerFor","disabled"],["mat-menu-item","","id","fullscreen-btn",3,"click"],["mat-menu-item","","id","recording-btn",3,"disabled","click"],["color","warn"],["mat-menu-item","","id","broadcasting-btn",3,"disabled","click"],["mat-menu-item","","id","virtual-bg-btn",3,"disabled","click"],["mat-menu-item","","id","captions-btn",3,"disabled","click"],[1,"divider"],["mat-menu-item","","id","toolbar-settings-btn",3,"click"],[4,"ngTemplateOutlet"],["mat-icon-button","","id","leave-btn",3,"click"],["mat-icon-button","","id","activities-panel-btn",3,"matTooltip","disabled","click"],["mat-icon-button","","id","participants-panel-btn",3,"matTooltip","disabled","click"],["mat-icon-button","","id","chat-panel-btn",3,"matTooltip","disabled","click"],["matBadgePosition","above before","matBadgeSize","small","matBadgeColor","accent",3,"matBadge","matBadgeHidden"]],template:function(e,i){1&e&&(O(0,"mat-toolbar",0),X(1,$ee,8,6,"div",1),O(2,"div",2)(3,"button",3),we("click",function(){return i.toggleMicrophone()}),X(4,Yee,3,4,"mat-icon",4),X(5,Qee,3,4,"mat-icon",5),V(),O(6,"button",6),we("click",function(){return i.toggleCamera()}),X(7,Kee,3,4,"mat-icon",7),X(8,Zee,3,4,"mat-icon",8),V(),X(9,ete,3,5,"button",9),X(10,tte,4,5,"button",10),O(11,"mat-menu",11,12),X(13,ste,5,4,"button",13),X(14,cte,5,3,"button",14),X(15,hte,5,3,"button",15),X(16,fte,6,4,"button",16),X(17,mte,5,3,"button",17),X(18,vte,1,0,"mat-divider",18),X(19,_te,6,3,"button",19),V(),X(20,yte,2,1,"ng-container",20),X(21,Cte,4,3,"button",21),V(),O(22,"div",22),X(23,Ste,4,6,"button",23),X(24,Ete,4,6,"button",24),X(25,Ate,4,8,"button",25),X(26,Dte,2,1,"ng-container",20),V()()),2&e&&(A(1),U("ngIf","xs"!==i.screenSize||i.recordingStatus===i._recordingStatus.STARTED||i.broadcastingStatus!==i._broadcastingStatus.STARTED),A(2),ct("warn-btn",!i.isAudioActive),U("disabled",i.isConnectionLost||!i.hasAudioDevices),A(1),U("ngIf",i.isAudioActive),A(1),U("ngIf",!i.isAudioActive),A(1),ct("warn-btn",!i.isWebcamVideoActive),U("disabled",i.isConnectionLost||!i.hasVideoDevices||i.videoMuteChanging),A(1),U("ngIf",i.isWebcamVideoActive),A(1),U("ngIf",!i.isWebcamVideoActive),A(1),U("ngIf",!i.isMinimal&&i.showScreenshareButton),A(1),U("ngIf",!i.isMinimal&&i.showMoreOptionsButton),A(3),U("ngIf",i.showFullscreenButton),A(1),U("ngIf",!i.isMinimal&&i.showRecordingButton),A(1),U("ngIf",!i.isMinimal&&i.showBroadcastingButton),A(1),U("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),A(1),U("ngIf",!i.isMinimal&&i.showCaptionsButton),A(1),U("ngIf",!i.isMinimal&&i.showSettingsButton),A(1),U("ngIf",!i.isMinimal&&i.showSettingsButton),A(1),U("ngIf",i.toolbarAdditionalButtonsTemplate),A(1),U("ngIf",i.showLeaveButton),A(2),U("ngIf",!i.isMinimal&&i.showActivitiesPanelButton),A(1),U("ngIf",!i.isMinimal&&i.showParticipantsPanelButton),A(1),U("ngIf",!i.isMinimal&&i.showChatPanelButton),A(1),U("ngIf",i.toolbarAdditionalPanelButtonsTemplate))},dependencies:[Zt,ls,Mn,Bf,oi,Lo,WY,bs,$f,Cs,Qf,ys,Pu,Ss,Es,Sb,AP,xh,Un],styles:["#toolbar[_ngcontent-%COMP%]{height:100%;background-color:transparent;color:var(--ov-text-color)}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}#info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}#media-buttons-container[_ngcontent-%COMP%]{max-height:100%!important}#media-buttons-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], #media-buttons-container>button, #media-buttons-container[_ngcontent-%COMP%]:not(#media-buttons-container > button)[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #media-buttons-container:not(#media-buttons-container > button) button{width:40px;height:40px;background-color:var(--ov-secondary-color);margin:6px}.warn-btn[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important}.active-btn[_ngcontent-%COMP%], .active-btn{background-color:var(--ov-tertiary-color)!important}#media-buttons-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}#media-buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #menu-buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}#branding-logo[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);border-radius:var(--ov-panel-radius);max-width:35px;max-height:35px;padding:10px}#session-name[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:700;font-size:15px;height:fit-content;padding:0 15px}#session-info-container[_ngcontent-%COMP%]{display:flex}.collapsed[_ngcontent-%COMP%]{flex-direction:column}#activities-tag[_ngcontent-%COMP%]{display:inline-flex}#activities-tag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-left:5px}.recording-tag[_ngcontent-%COMP%], .broadcasting-tag[_ngcontent-%COMP%]{padding:0 10px;border-radius:var(--ov-panel-radius);width:fit-content;font-size:12px;text-align:center;line-height:20px;margin:auto}.recording-tag[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)}.broadcasting-tag[_ngcontent-%COMP%]{background-color:#5903ca}.recording-tag[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .broadcasting-tag[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;display:inline;vertical-align:sub;margin-right:5px}#broadcasting-btn[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{color:#5903ca}.blink[_ngcontent-%COMP%]{animation:blinker 1.5s linear infinite}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:var(--ov-buttons-radius);background-color:#ffa600;border:1px solid #000;z-index:99999}#leave-btn[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important;border-radius:var(--ov-leave-button-radius)!important;width:60px!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-17px}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-6px}.mat-icon-button[disabled][_ngcontent-%COMP%]{color:#fff}.divider[_ngcontent-%COMP%]{margin:8px 0} .mat-menu-item{height:40px;line-height:40px}@media (max-width: 750px){#session-name[_ngcontent-%COMP%]{display:none}#activities-tag[_ngcontent-%COMP%]{display:grid;gap:5px}}@media (max-width: 850px){#branding-logo[_ngcontent-%COMP%]{display:none}#session-info-container[_ngcontent-%COMP%]{display:inline-flex}}@media (max-width: 550px){#toolbar[_ngcontent-%COMP%]{padding:0;place-content:space-evenly}}@keyframes blinker{50%{opacity:.3}}"],changeDetection:0}),t})(),DP=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamDisplayParticipantName(e){this.displayParticipantNameValue=e,this.update(this.displayParticipantNameValue)}set displayParticipantName(e){this.displayParticipantNameValue=e,this.update(this.displayParticipantNameValue)}ngOnDestroy(){this.clear()}ngAfterViewInit(){this.update(this.displayParticipantNameValue)}update(e){this.libService.displayParticipantName.getValue()!==e&&this.libService.displayParticipantName.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","streamDisplayParticipantName",""],["ov-stream","displayParticipantName",""]],inputs:{streamDisplayParticipantName:"streamDisplayParticipantName",displayParticipantName:"displayParticipantName"}}),t})(),eoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamDisplayAudioDetection(e){this.displayAudioDetectionValue=e,this.update(this.displayAudioDetectionValue)}set displayAudioDetection(e){this.displayAudioDetectionValue=e,this.update(this.displayAudioDetectionValue)}ngAfterViewInit(){this.update(this.displayAudioDetectionValue)}ngOnDestroy(){this.clear()}update(e){this.libService.displayAudioDetection.getValue()!==e&&this.libService.displayAudioDetection.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","streamDisplayAudioDetection",""],["ov-stream","displayAudioDetection",""]],inputs:{streamDisplayAudioDetection:"streamDisplayAudioDetection",displayAudioDetection:"displayAudioDetection"}}),t})(),TP=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamSettingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}set settingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}ngAfterViewInit(){this.update(this.settingsValue)}ngOnDestroy(){this.clear()}update(e){this.libService.streamSettingsButton.getValue()!==e&&this.libService.streamSettingsButton.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","streamSettingsButton",""],["ov-stream","settingsButton",""]],inputs:{streamSettingsButton:"streamSettingsButton",settingsButton:"settingsButton"}}),t})();var sn=(()=>{return(t=sn||(sn={})).NONE="NONE",t.BLUR="BLUR",t.IMAGE="IMAGE",sn;var t})();let by=(()=>{class t{constructor(e,i,o){this.participantService=e,this.storageService=i,this.openviduService=o,this.backgroundSelected=new pt(""),this.backgrounds=[{id:"no_effect",type:sn.NONE,thumbnail:"block"},{id:"soft_blur",type:sn.BLUR,thumbnail:"blur_on"},{id:"1",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-1.jpg",src:"assets/backgrounds/bg-1.jpg"},{id:"2",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-2.jpg",src:"assets/backgrounds/bg-2.jpg"},{id:"3",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-3.jpg",src:"assets/backgrounds/bg-3.jpg"},{id:"4",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-4.jpg",src:"assets/backgrounds/bg-4.jpg"},{id:"19",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-19.jpg",src:"assets/backgrounds/bg-19.jpg"},{id:"5",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-5.jpg",src:"assets/backgrounds/bg-5.jpg"},{id:"6",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-6.jpg",src:"assets/backgrounds/bg-6.jpg"},{id:"7",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-7.jpg",src:"assets/backgrounds/bg-7.jpg"},{id:"8",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-8.jpg",src:"assets/backgrounds/bg-8.jpg"},{id:"9",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-9.jpg",src:"assets/backgrounds/bg-9.jpg"},{id:"10",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-10.jpg",src:"assets/backgrounds/bg-10.jpg"},{id:"11",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-11.jpg",src:"assets/backgrounds/bg-11.jpg"},{id:"12",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-12.jpg",src:"assets/backgrounds/bg-12.jpg"},{id:"13",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-13.jpg",src:"assets/backgrounds/bg-13.jpg"},{id:"14",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-14.jpg",src:"assets/backgrounds/bg-14.jpg"},{id:"15",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-15.jpg",src:"assets/backgrounds/bg-15.jpg"},{id:"16",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-16.jpg",src:"assets/backgrounds/bg-16.jpg"},{id:"17",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-17.jpg",src:"assets/backgrounds/bg-17.jpg"},{id:"18",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-18.jpg",src:"assets/backgrounds/bg-18.jpg"}],this.backgroundSelectedObs=this.backgroundSelected.asObservable()}getBackgrounds(){return this.backgrounds}isBackgroundApplied(){const e=this.backgroundSelected.getValue();return!!e&&"no_effect"!==e}applyBackgroundFromStorage(){return Le(this,void 0,void 0,function*(){const e=this.storageService.getBackground();if(e){const i=this.backgrounds.find(o=>o.id===e);i&&this.applyBackground(i)}})}applyBackground(e){return Le(this,void 0,void 0,function*(){if(e.id!==this.backgroundSelected.getValue()){const i=this.participantService.getMyCameraPublisher().stream.filter,o=!!i&&i.type.startsWith("VB:");let r={token:this.openviduService.getWebcamToken(),url:""};e.type===sn.IMAGE&&(r.url=e.src),o&&this.hasSameTypeAsAbove(e.type)?this.replaceBackground(e):(yield this.removeBackground(),yield this.participantService.getMyCameraPublisher().stream.applyFilter(`VB:${e.type.toLowerCase()}`,r)),this.storageService.setBackground(e.id),this.backgroundSelected.next(e.id)}})}removeBackground(){return Le(this,void 0,void 0,function*(){this.isBackgroundApplied()&&(this.backgroundSelected.next("no_effect"),yield this.participantService.getMyCameraPublisher().stream.removeFilter(),this.storageService.removeBackground())})}replaceBackground(e){return Le(this,void 0,void 0,function*(){yield this.participantService.getMyCameraPublisher().stream.filter.execMethod("update",{url:e.src})})}hasSameTypeAsAbove(e){const i=this.backgrounds.find(o=>o.id===this.backgroundSelected.getValue());return(null==i?void 0:i.type)===e}}return t.\u0275fac=function(e){return new(e||t)(oe(vi),oe(jo),oe(bo))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yy=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,w,z,ne,fe){this.actionService=e,this.openviduService=i,this.participantService=o,this.loggerSrv=r,this.chatService=s,this.libService=a,this.layoutService=l,this.panelService=c,this.recordingService=u,this.broadcastingService=d,this.translateService=f,this.captionService=w,this.platformService=z,this.backgroundService=ne,this.cd=fe,this.usedInPrejoinPage=!1,this.onNodeCrashed=new Ee,this.sidenavMode=Kl.SIDE,this.preparing=!0,this.SIDENAV_WIDTH_LIMIT_MODE=790,this.log=this.loggerSrv.get("SessionComponent")}beforeunloadHandler(){this.leaveSession()}sizeChange(){this.layoutService.update()}set sidenavMenu(e){setTimeout(()=>{e&&(this.sideMenu=e,this.subscribeToTogglingMenu())},0)}set videoContainer(e){setTimeout(()=>{e&&!this.toolbarTemplate&&(e.nativeElement.style.height="100%",e.nativeElement.style.minHeight="100%",this.layoutService.update())},0)}set container(e){setTimeout(()=>{e&&(this.drawer=e,this.drawer._contentMarginChanges.subscribe(()=>{setTimeout(()=>{this.stopUpdateLayoutInterval(),this.layoutService.update(),this.drawer.autosize=!1},250)}))},0)}set layoutContainer(e){setTimeout(()=>Le(this,void 0,void 0,function*(){e&&(yield this.backgroundService.applyBackgroundFromStorage())}),0)}ngOnInit(){return Le(this,void 0,void 0,function*(){this.usedInPrejoinPage||(this.openviduService.getScreenToken()||this.libService.screenshareButton.next(!1),this.session=this.openviduService.getWebcamSession(),this.sessionScreen=this.openviduService.getScreenSession(),this.subscribeToOpenViduException(),this.subscribeToCaptionLanguage(),this.subscribeToConnectionCreatedAndDestroyed(),this.subscribeToStreamCreated(),this.subscribeToStreamDestroyed(),this.subscribeToStreamPropertyChange(),this.subscribeToNicknameChanged(),this.chatService.subscribeToChat(),this.subscribeToReconnection(),yield this.connectToSession(),this.platformService.isIos()&&this.participantService.isMyCameraActive()&&(yield this.openviduService.publishVideo(!1),yield this.openviduService.publishVideo(!0)),this.libService.isRecordingEnabled()&&this.subscribeToRecordingEvents(),this.libService.isBroadcastingEnabled()&&this.subscribeToBroadcastingEvents()),this.preparing=!1,this.cd.markForCheck()})}ngOnDestroy(){var e;null===(e=this.session)||void 0===e||e.off("reconnecting"),this.participantService.clear(),this.session=null,this.sessionScreen=null,this.menuSubscription&&this.menuSubscription.unsubscribe(),this.layoutWidthSubscription&&this.layoutWidthSubscription.unsubscribe()}leaveSession(){this.log.d("Leaving session..."),this.openviduService.disconnect()}subscribeToTogglingMenu(){this.sideMenu.openedChange.subscribe(()=>{this.stopUpdateLayoutInterval(),this.layoutService.update()}),this.sideMenu.openedStart.subscribe(()=>{this.startUpdateLayoutInterval()}),this.sideMenu.closedStart.subscribe(()=>{this.startUpdateLayoutInterval()}),this.menuSubscription=this.panelService.panelOpenedObs.pipe(du(1)).subscribe(e=>{this.sideMenu&&(this.settingsPanelOpened=e.opened&&e.type===zt.SETTINGS,this.sideMenu.opened&&e.opened&&(e.type===zt.SETTINGS||e.oldType===zt.SETTINGS)&&(this.drawer.autosize=!0,this.startUpdateLayoutInterval()),e.opened?this.sideMenu.open():this.sideMenu.close())})}subscribeToLayoutWidth(){this.layoutWidthSubscription=this.layoutService.layoutWidthObs.subscribe(e=>{this.sidenavMode=e<=this.SIDENAV_WIDTH_LIMIT_MODE?Kl.OVER:Kl.SIDE})}connectToSession(){return Le(this,void 0,void 0,function*(){try{const e=this.openviduService.getWebcamToken(),i=this.openviduService.getScreenToken();this.participantService.haveICameraAndScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),e),yield this.openviduService.connectSession(this.openviduService.getScreenSession(),i),yield this.openviduService.publish(this.participantService.getMyCameraPublisher()),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):this.participantService.isOnlyMyScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getScreenSession(),i),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),e),yield this.openviduService.publish(this.participantService.getMyCameraPublisher()))}catch(e){this.log.e("There was an error connecting to the session:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.SESSION"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}})}subscribeToOpenViduException(){this.session.on("exception",e=>Le(this,void 0,void 0,function*(){e.name===As.ExceptionEventName.SPEECH_TO_TEXT_DISCONNECTED?(this.log.w(e.name,e.message),this.openviduService.setSTTReady(!1),yield this.openviduService.subscribeRemotesToSTT(this.captionService.getLangSelected().lang)):this.log.e(e.name,e.message)}))}subscribeToConnectionCreatedAndDestroyed(){this.session.on("connectionCreated",e=>{var i,o;const r=null===(i=e.connection)||void 0===i?void 0:i.connectionId,s=this.participantService.getNicknameFromConnectionData(e.connection.data),a=!this.openviduService.isMyOwnConnection(r),l=!(null!=s&&s.includes(`_${en.SCREEN}`)),c=null===(o=e.connection)||void 0===o?void 0:o.data;if(a&&l&&(this.participantService.addRemoteConnection(r,c,null),this.openviduService.needSendNicknameSignal())){const u={clientData:this.participantService.getMyNickname()};this.openviduService.sendSignal(xs.NICKNAME_CHANGED,[e.connection],u)}}),this.session.on("connectionDestroyed",e=>{const i=this.participantService.getNicknameFromConnectionData(e.connection.data),o=!this.openviduService.isMyOwnConnection(e.connection.connectionId),r=!(null!=i&&i.includes(`_${en.SCREEN}`));o&&r&&this.participantService.removeConnectionByConnectionId(e.connection.connectionId)})}subscribeToStreamCreated(){this.session.on("streamCreated",e=>Le(this,void 0,void 0,function*(){var i,o,r,s;const a=null===(o=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.connectionId,l=null===(s=null===(r=e.stream)||void 0===r?void 0:r.connection)||void 0===s?void 0:s.data,c=this.participantService.getTypeConnectionData(l)===en.CAMERA,u=!this.openviduService.isMyOwnConnection(a),d=this.captionService.getLangSelected().lang;if(u){const f=this.session.subscribe(e.stream,void 0);if(this.participantService.addRemoteConnection(a,l,f),this.openviduService.isSttReady()&&this.captionService.areCaptionsEnabled()&&c)try{yield this.openviduService.subscribeStreamToStt(e.stream,d)}catch(w){this.log.e("Error subscribing from STT: ",w),yield this.openviduService.subscribeRemotesToSTT(d)}}}))}subscribeToStreamDestroyed(){this.session.on("streamDestroyed",e=>Le(this,void 0,void 0,function*(){var i,o;const r=e.stream.connection.connectionId,s=null===(o=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.data,a=!this.openviduService.isMyOwnConnection(r),l=this.participantService.getTypeConnectionData(s)===en.CAMERA;if(this.participantService.removeConnectionByConnectionId(r),this.openviduService.isSttReady()&&this.captionService.areCaptionsEnabled()&&a&&l)try{yield this.session.unsubscribeFromSpeechToText(e.stream)}catch(c){this.log.e("Error unsubscribing from STT: ",c)}}))}subscribeToCaptionLanguage(){this.captionLanguageSubscription=this.captionService.captionLangObs.subscribe(e=>Le(this,void 0,void 0,function*(){this.captionService.areCaptionsEnabled()&&(this.log.d("Re-subscribe from STT because of language changed to ",e.lang),yield this.openviduService.unsubscribeRemotesFromSTT(),yield this.openviduService.subscribeRemotesToSTT(e.lang))}))}subscribeToStreamPropertyChange(){this.session.on("streamPropertyChanged",e=>{!this.openviduService.isMyOwnConnection(e.stream.connection.connectionId)&&this.participantService.updateRemoteParticipants()})}subscribeToNicknameChanged(){this.session.on(`signal:${xs.NICKNAME_CHANGED}`,e=>{const i=e.from.connectionId;if(!this.openviduService.isMyOwnConnection(i)){const r=this.participantService.getNicknameFromConnectionData(e.data);this.participantService.setRemoteNickname(i,r)}})}subscribeToReconnection(){this.session.on("reconnecting",()=>{this.log.w("Connection lost: Reconnecting"),this.actionService.openDialog(this.translateService.translate("ERRORS.CONNECTION"),this.translateService.translate("ERRORS.RECONNECT"),!1)}),this.session.on("reconnected",()=>{this.log.w("Connection lost: Reconnected"),this.actionService.closeDialog()}),this.session.on("sessionDisconnected",e=>{"nodeCrashed"===e.reason?(this.actionService.openDialog(this.translateService.translate("ERRORS.CONNECTION"),this.translateService.translate("ERRORS.RECONNECT"),!1),this.onNodeCrashed.emit()):"networkDisconnect"===e.reason&&(this.actionService.closeDialog(),this.leaveSession())})}subscribeToRecordingEvents(){this.session.on("recordingStarted",e=>this.recordingService.startRecording(e)),this.session.on("recordingStopped",e=>this.recordingService.stopRecording(e))}subscribeToBroadcastingEvents(){this.session.on("broadcastStarted",()=>this.broadcastingService.startBroadcasting()),this.session.on("broadcastStopped",()=>this.broadcastingService.stopBroadcasting())}startUpdateLayoutInterval(){this.updateLayoutInterval=setInterval(()=>{this.layoutService.update()},50)}stopUpdateLayoutInterval(){this.updateLayoutInterval&&clearInterval(this.updateLayoutInterval)}}return t.\u0275fac=function(e){return new(e||t)(h(Sr),h(bo),h(vi),h(sr),h(wp),h(Mt),h(ba),h(_o),h(td),h(py),h(Ms),h(rd),h(Jl),h(by),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-session"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Tte,5,vt),Je(o,Mte,5,vt),Je(o,U1,5,vt)),2&e){let r;xe(r=Oe())&&(i.toolbarTemplate=r.first),xe(r=Oe())&&(i.panelTemplate=r.first),xe(r=Oe())&&(i.layoutTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(Et(xte,5),Et(Ote,5,ke),Et(Ite,5),Et(Rte,5)),2&e){let o;xe(o=Oe())&&(i.sidenavMenu=o.first),xe(o=Oe())&&(i.videoContainer=o.first),xe(o=Oe())&&(i.container=o.first),xe(o=Oe())&&(i.layoutContainer=o.first)}},hostBindings:function(e,i){1&e&&we("beforeunload",function(){return i.beforeunloadHandler()},0,Dc)("resize",function(){return i.sizeChange()},!1,Dc)},inputs:{usedInPrejoinPage:"usedInPrejoinPage"},outputs:{onNodeCrashed:"onNodeCrashed"},decls:1,vars:1,consts:[["id","session-container",4,"ngIf"],["id","session-container"],[1,"sidenav-container"],["container","","videoContainer",""],["position","end","fixedInViewport","true","fixedTopGap","0","fixedBottomGap","0",1,"sidenav-menu",3,"mode","ngClass"],["sidenav",""],[4,"ngTemplateOutlet"],[1,"sidenav-main"],["id","layout-container"],["layoutContainer",""],["id","footer-container",4,"ngIf"],["id","footer-container"]],template:function(e,i){1&e&&X(0,Bte,12,8,"div",0),2&e&&U("ngIf",!i.preparing)},dependencies:[Ii,Zt,ls,bI,yI,kb,ir],styles:["#session-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color);height:100%}.sidenav-container[_ngcontent-%COMP%]{position:relative;height:calc(100% - 70px);min-height:calc(100% - 70px);padding-top:0;width:100%;overflow:hidden}.sidenav-menu[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:380px;background-color:var(--ov-primary-color);border-left:none;position:absolute;z-index:1}.big[_ngcontent-%COMP%]{width:650px;max-width:100%}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%]{z-index:0!important}.sidenav-main[_ngcontent-%COMP%]{height:100%;overflow:hidden;min-height:-webkit-fill-available;min-height:-moz-available}#layout-container[_ngcontent-%COMP%]{height:inherit;width:inherit}.mat-drawer-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color)}#toolbar-container[_ngcontent-%COMP%], #footer-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color);width:100%;height:70px}#footer[_ngcontent-%COMP%]{color:#fff;height:25px;background-color:#333;padding:0 14px 0 0;position:absolute;bottom:0;left:0;z-index:999999}.reconnecting-container[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1000;background-color:#000;opacity:80%;position:absolute}@media only screen and (max-width: 600px){#session-container[_ngcontent-%COMP%]{width:100%}} .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:1px!important} .mat-input-element{caret-color:#000} .mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#000} .mat-form-field-label{color:var(--ov-panel-text-color)!important} .mat-form-field.mat-focused .mat-form-field-ripple{background-color:var(--ov-panel-text-color)!important} .mat-drawer{background-color:transparent!important}"],data:{animation:[qi("sessionAnimation",[Vn(":enter",[kt({opacity:0}),$n("50ms",kt({opacity:1}))])])]},changeDetection:0}),t})(),Cy=(()=>{class t{constructor(e,i,o){this.panelService=e,this.backgroundService=i,this.cd=o,this.effectType=sn,this.backgroundImages=[],this.noEffectAndBlurredBackground=[]}ngOnInit(){this.subscribeToBackgroundSelected(),this.backgrounds=this.backgroundService.getBackgrounds(),this.noEffectAndBlurredBackground=this.backgrounds.filter(e=>e.type===sn.BLUR||e.type===sn.NONE),this.backgroundImages=this.backgrounds.filter(e=>e.type===sn.IMAGE)}ngOnDestroy(){this.backgroundSubs&&this.backgroundSubs.unsubscribe()}subscribeToBackgroundSelected(){this.backgroundSubs=this.backgroundService.backgroundSelectedObs.subscribe(e=>{this.backgroundSelectedId=e,this.cd.markForCheck()})}close(){this.panelService.togglePanel(zt.BACKGROUND_EFFECTS)}applyBackground(e){return Le(this,void 0,void 0,function*(){e.type===sn.NONE?yield this.removeBackground():yield this.backgroundService.applyBackground(e)})}removeBackground(){return Le(this,void 0,void 0,function*(){yield this.backgroundService.removeBackground()})}}return t.\u0275fac=function(e){return new(e||t)(h(_o),h(by),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-background-effects-panel"]],decls:23,vars:14,consts:[["id","background-effects-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","100%","fxLayoutAlign","space-evenly none",1,"effects-container"],["mat-icon-button","","class","effect-button",3,"active-effect-btn","click",4,"ngFor","ngForOf"],[1,"grid"],["class","effect-button",3,"active-effect-btn","click",4,"ngFor","ngForOf"],["mat-icon-button","",1,"effect-button",3,"click"],[3,"matTooltip"],[1,"effect-button",3,"click"],[3,"src"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"div",1)(2,"h3",2),se(3),ye(4,"translate"),V(),O(5,"button",3),we("click",function(){return i.close()}),ye(6,"translate"),O(7,"mat-icon"),se(8,"close"),V()()(),O(9,"div",4)(10,"div")(11,"h4"),se(12),ye(13,"translate"),V(),O(14,"div"),X(15,Vte,5,8,"button",5),V()(),Xe(16,"hr"),O(17,"div")(18,"h4"),se(19),ye(20,"translate"),V(),O(21,"div",6),X(22,jte,2,3,"div",7),V()()()()),2&e&&(A(3),Ne(Se(4,6,"PANEL.BACKGROUND.TITLE")),A(2),Ht("matTooltip",Se(6,8,"PANEL.CLOSE")),A(7),Ne(Se(13,10,"PANEL.BACKGROUND.BLURRED_SECTION")),A(3),U("ngForOf",i.noEffectAndBlurredBackground),A(4),Ne(Se(20,12,"PANEL.BACKGROUND.IMAGES_SECTION")),A(3),U("ngForOf",i.backgroundImages))},dependencies:[Ro,Mn,oi,Lo,bs,Cs,ys,Un],styles:[ed,".effects-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.effect-button[_ngcontent-%COMP%]{margin:5px;border-radius:var(--ov-panel-radius);background-color:var(--ov-light-color);width:60px;height:60px}.effect-button[_ngcontent-%COMP%]:hover{cursor:pointer}.active-effect-btn[_ngcontent-%COMP%]{border:2px solid var(--ov-tertiary-color)}#hard-blur-btn[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-weight:700!important}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,70px)}.grid[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;border-radius:var(--ov-panel-radius)} .mat-slider-thumb{visibility:hidden} .mat-slider-vertical .mat-slider-track-fill, .mat-slider-vertical .mat-slider-track-background, .mat-slider-vertical .mat-slider-track-wrapper{width:10px!important}"],changeDetection:0}),t})(),Sy=(()=>{class t{constructor(e,i,o,r,s,a){this.openviduService=e,this.panelService=i,this.storageSrv=o,this.deviceSrv=r,this.participantService=s,this.backgroundService=a,this.onDeviceSelectorClicked=new Ee,this.onVideoMutedClicked=new Ee,this.cameras=[]}ngOnInit(){return Le(this,void 0,void 0,function*(){this.subscribeToParticipantMediaProperties(),this.openviduService.isSessionConnected()&&(yield this.deviceSrv.refreshDevices()),this.hasVideoDevices=this.deviceSrv.hasVideoDeviceAvailable(),this.hasVideoDevices&&(this.cameras=this.deviceSrv.getCameras(),this.cameraSelected=this.deviceSrv.getCameraSelected()),this.isVideoMuted=this.openviduService.isSessionConnected()?!this.participantService.getLocalParticipant().isCameraVideoActive():this.deviceSrv.isVideoMuted()})}ngOnDestroy(){return Le(this,void 0,void 0,function*(){this.cameras=[],this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe()})}toggleCam(){return Le(this,void 0,void 0,function*(){this.videoMuteChanging=!0;const e=this.isVideoMuted;yield this.openviduService.publishVideo(e),this.isVideoMuted&&this.panelService.isExternalPanelOpened()&&this.panelService.togglePanel(zt.BACKGROUND_EFFECTS),this.videoMuteChanging=!1,this.onVideoMutedClicked.emit(e)})}onCameraSelected(e){return Le(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateVideoTrack(i)){const o=this.deviceSrv.cameraNeedsMirror(i),r=this.backgroundService.backgroundSelected.getValue(),s=this.backgroundService.isBackgroundApplied();s&&(yield this.backgroundService.removeBackground());const a={videoSource:i,audioSource:!1,mirror:o};if(yield this.openviduService.replaceTrack(en.CAMERA,a),s){const l=this.backgroundService.backgrounds.find(c=>c.id===r);l&&(yield this.backgroundService.applyBackground(l))}this.deviceSrv.setCameraSelected(i),this.cameraSelected=this.deviceSrv.getCameraSelected()}})}subscribeToParticipantMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isVideoMuted=!e.isCameraVideoActive(),this.storageSrv.setVideoMuted(this.isVideoMuted))})}}return t.\u0275fac=function(e){return new(e||t)(h(bo),h(_o),h(jo),h(ec),h(vi),h(by))},t.\u0275cmp=et({type:t,selectors:[["ov-video-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked",onVideoMutedClicked:"onVideoMutedClicked"},decls:9,vars:10,consts:[[1,"device-container-element"],["mat-icon-button","","id","camera-button",3,"disabled","click"],["id","videocam",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","videocam_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],[4,"ngIf"],[3,"disabled","value","click","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","videocam",3,"matTooltipDisabled","matTooltip"],["id","videocam_off",3,"matTooltipDisabled","matTooltip"],[3,"value"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"button",1),we("click",function(){return i.toggleCam()}),X(2,Ute,3,4,"mat-icon",2),X(3,Hte,3,4,"mat-icon",3),V(),O(4,"mat-form-field"),X(5,Gte,3,3,"mat-label",4),X(6,zte,3,3,"mat-label",4),O(7,"mat-select",5),we("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(r){return i.onCameraSelected(r)}),X(8,qte,2,2,"mat-option",6),V()()()),2&e&&(A(1),ct("warn-btn",i.isVideoMuted),U("disabled",!i.hasVideoDevices||i.videoMuteChanging),A(1),U("ngIf",!i.isVideoMuted),A(1),U("ngIf",i.isVideoMuted),A(2),U("ngIf",i.hasVideoDevices),A(1),U("ngIf",!i.hasVideoDevices),A(1),U("disabled",i.isVideoMuted||!i.hasVideoDevices)("value",null==i.cameraSelected?null:i.cameraSelected.device),A(1),U("ngForOf",i.cameras))},dependencies:[Ro,Zt,Mn,oi,jf,Fl,Lo,Nb,O_,Un],styles:["#camera-button[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.device-container-element[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}.device-container-element[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}.device-container-element[_ngcontent-%COMP%]{display:flex}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-warn-color)!important}"]}),t})(),Ey=(()=>{class t{constructor(e,i,o,r){this.openviduService=e,this.deviceSrv=i,this.storageSrv=o,this.participantService=r,this.onDeviceSelectorClicked=new Ee,this.onAudioMutedClicked=new Ee,this.microphones=[]}ngOnInit(){return Le(this,void 0,void 0,function*(){this.subscribeToParticipantMediaProperties(),this.openviduService.isSessionConnected()&&(yield this.deviceSrv.refreshDevices()),this.hasAudioDevices=this.deviceSrv.hasAudioDeviceAvailable(),this.hasAudioDevices&&(this.microphones=this.deviceSrv.getMicrophones(),this.microphoneSelected=this.deviceSrv.getMicrophoneSelected()),this.isAudioMuted=this.deviceSrv.isAudioMuted(),this.isAudioMuted=this.openviduService.isSessionConnected()?!this.participantService.isMyAudioActive():this.deviceSrv.isAudioMuted()})}ngOnDestroy(){this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe()}toggleMic(){const e=this.isAudioMuted;this.openviduService.publishAudio(e),this.onAudioMutedClicked.emit(e)}onMicrophoneSelected(e){return Le(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateAudioTrack(i)){const o={audioSource:i,videoSource:!1};yield this.openviduService.replaceTrack(en.CAMERA,o),this.deviceSrv.setMicSelected(i),this.microphoneSelected=this.deviceSrv.getMicrophoneSelected()}})}subscribeToParticipantMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isAudioMuted=!e.hasAudioActive(),this.storageSrv.setAudioMuted(this.isAudioMuted))})}}return t.\u0275fac=function(e){return new(e||t)(h(bo),h(ec),h(jo),h(vi))},t.\u0275cmp=et({type:t,selectors:[["ov-audio-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked",onAudioMutedClicked:"onAudioMutedClicked"},decls:9,vars:10,consts:[[1,"device-container-element"],["mat-icon-button","","id","microphone-button",3,"disabled","click"],["id","mic",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","mic_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],[4,"ngIf"],[3,"disabled","value","click","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","mic",3,"matTooltipDisabled","matTooltip"],["id","mic_off",3,"matTooltipDisabled","matTooltip"],[3,"value"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"button",1),we("click",function(){return i.toggleMic()}),X(2,Wte,3,4,"mat-icon",2),X(3,$te,3,4,"mat-icon",3),V(),O(4,"mat-form-field"),X(5,Yte,3,3,"mat-label",4),X(6,Qte,3,3,"mat-label",4),O(7,"mat-select",5),we("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(r){return i.onMicrophoneSelected(r)}),X(8,Kte,2,2,"mat-option",6),V()()()),2&e&&(A(1),ct("warn-btn",i.isAudioMuted),U("disabled",!i.hasAudioDevices),A(1),U("ngIf",!i.isAudioMuted),A(1),U("ngIf",i.isAudioMuted),A(2),U("ngIf",i.hasAudioDevices),A(1),U("ngIf",!i.hasAudioDevices),A(1),U("disabled",i.isAudioMuted||!i.hasAudioDevices)("value",null==i.microphoneSelected?null:i.microphoneSelected.device),A(1),U("ngForOf",i.microphones))},dependencies:[Ro,Zt,Mn,oi,jf,Fl,Lo,Nb,O_,Un],styles:[".device-container-element[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}.device-container-element[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}.device-container-element[_ngcontent-%COMP%]{display:flex}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-warn-color)!important}"]}),t})(),Ay=(()=>{class t{constructor(e,i){this.participantService=e,this.storageSrv=i}ngOnInit(){this.subscribeToParticipantProperties(),this.nickname=this.participantService.getMyNickname()}updateNickname(){this.nickname=""===this.nickname?this.participantService.getMyNickname():this.nickname,this.participantService.setMyNickname(this.nickname),this.storageSrv.setNickname(this.nickname)}subscribeToParticipantProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.nickname=e.getNickname())})}}return t.\u0275fac=function(e){return new(e||t)(h(vi),h(jo))},t.\u0275cmp=et({type:t,selectors:[["ov-nickname-input"]],decls:9,vars:4,consts:[["id","nickname-input-container"],["mat-icon-button","","disabled",""],["appearance","standard"],["matInput","","type","text","maxlength","20","autocomplete","off",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"button",1)(2,"mat-icon"),se(3,"person"),V()(),O(4,"mat-form-field",2)(5,"mat-label"),se(6),ye(7,"translate"),V(),O(8,"input",3),we("ngModelChange",function(r){return i.nickname=r})("change",function(){return i.updateNickname()}),V()()()),2&e&&(A(6),Ne(Se(7,2,"PREJOIN.NICKNAME")),A(2),U("ngModel",i.nickname))},dependencies:[qr,la,Ll,vs,Mn,oi,jf,Fl,gb,Un],styles:["#nickname-input-container[_ngcontent-%COMP%]{display:flex}#nickname-input-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}#nickname-input-container[_ngcontent-%COMP%] button.mat-button-disabled[_ngcontent-%COMP%]{color:#000!important}#nickname-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}#nickname-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{color:#000}"]}),t})(),wy=(()=>{class t{constructor(e,i){this.translateService=e,this.storageSrv=i,this.onLangSelectorClicked=new Ee,this.languages=[]}ngOnInit(){this.languages=this.translateService.getLanguagesInfo(),this.langSelected=this.translateService.getLangSelected()}ngAfterViewInit(){var e,i;null===(e=this.menuTrigger)||void 0===e||e.menuOpened.subscribe(()=>{this.onLangSelectorClicked.emit()}),null===(i=this.matSelect)||void 0===i||i.openedChange.subscribe(()=>{this.onLangSelectorClicked.emit()})}onLangSelected(e){this.translateService.setLanguage(e),this.storageSrv.setLang(e),this.langSelected=this.translateService.getLangSelected()}}return t.\u0275fac=function(e){return new(e||t)(h(Ms),h(jo))},t.\u0275cmp=et({type:t,selectors:[["ov-lang-selector"]],viewQuery:function(e,i){if(1&e&&(Et(Es,5),Et(Nb,5)),2&e){let o;xe(o=Oe())&&(i.menuTrigger=o.first),xe(o=Oe())&&(i.matSelect=o.first)}},outputs:{onLangSelectorClicked:"onLangSelectorClicked"},decls:8,vars:3,consts:[["mat-flat-button","",1,"lang-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(e,i){1&e&&(O(0,"button",0)(1,"span"),se(2),V(),O(3,"mat-icon"),se(4,"expand_more"),V()(),O(5,"mat-menu",null,1),X(7,Zte,3,1,"button",2),V()),2&e&&(U("matMenuTriggerFor",Ui(6)),A(2),Ne(null==i.langSelected?null:i.langSelected.name),A(5),U("ngForOf",i.languages))},dependencies:[Ro,Mn,oi,Pu,Ss,Es],styles:[".lang-button[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);color:var(--ov-text-color)}"]}),t})();const toe={provide:Gf,useValue:[{alias:"landscape",suffix:"Landscape",mediaQuery:"screen and (orientation: landscape)",overlapping:!1,priority:2001}],multi:!0},noe=["fxLayout.landscape"];let ioe=(()=>{class t extends pO{constructor(){super(...arguments),this.inputs=noe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["","fxLayout.landscape",""]],inputs:{"fxLayout.landscape":"fxLayout.landscape"},features:[Me]}),t})(),MP=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u){this.layoutService=e,this.loggerSrv=i,this.participantService=o,this.panelService=r,this.libService=s,this.cdkSrv=a,this.openviduService=l,this.translateService=c,this.actionService=u,this.onJoinButtonClicked=new Ee,this.isLoading=!0,this.showBackgroundEffectsButton=!0,this.isMinimal=!1,this.showLogo=!0,this.log=this.loggerSrv.get("PreJoinComponent")}sizeChange(){this.windowSize=window.innerWidth,this.layoutService.update()}ngOnInit(){this.subscribeToPrejoinDirectives(),this.subscribeToLocalParticipantEvents(),this.windowSize=window.innerWidth,this.isLoading=!1}ngOnDestroy(){return Le(this,void 0,void 0,function*(){this.cdkSrv.setSelector("body"),this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.backgroundEffectsButtonSub&&this.backgroundEffectsButtonSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe(),this.panelService.closePanel()})}onDeviceSelectorClicked(){this.cdkSrv.setSelector("#prejoin-container")}onVideoMutedClicked(e){e||this.panelService.closePanel()}joinSession(){this.onJoinButtonClicked.emit(),this.panelService.closePanel()}toggleBackgroundEffects(){this.openviduService.isOpenViduPro()?this.panelService.togglePanel(zt.BACKGROUND_EFFECTS):this.actionService.openProFeatureDialog(this.translateService.translate("PANEL.BACKGROUND.TITLE"),this.translateService.translate("PANEL.PRO_FEATURE"))}subscribeToLocalParticipantEvents(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.nickname=this.localParticipant.getNickname()})}subscribeToPrejoinDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e}),this.displayLogoSub=this.libService.displayLogoObs.subscribe(e=>{this.showLogo=e}),this.backgroundEffectsButtonSub=this.libService.backgroundEffectsButton.subscribe(e=>{this.showBackgroundEffectsButton=e})}}return t.\u0275fac=function(e){return new(e||t)(h(ba),h(sr),h(vi),h(_o),h(Mt),h(bP),h(bo),h(Ms),h(Sr))},t.\u0275cmp=et({type:t,selectors:[["ov-pre-join"]],hostBindings:function(e,i){1&e&&we("resize",function(){return i.sizeChange()},0,Dc)},outputs:{onJoinButtonClicked:"onJoinButtonClicked"},decls:12,vars:5,consts:[[1,"prejoin-toolbar"],["id","toolbar"],["id","branding-logo","src","assets/images/logo.png","ovLogo","",4,"ngIf"],[1,"spacer"],[3,"onLangSelectorClicked",4,"ngIf"],["id","prejoin-container","fxLayout.landscape","row","fxLayout.lt-md","column","fxLayout.md","row","fxLayout.gt-md","row",1,"container"],["fxFlex.lt-sm","50%","fxFlex.lt-md","50%","fxFlex.md","45%","fxFlex.gt-md","45%","fxLayoutAlign","center center","id","layout-container"],[1,"ov-session",3,"usedInPrejoinPage"],[4,"ngIf"],["layout",""],["fxFlex.lt-md","50%","fxFlex.md","55%","fxFlex.gt-md","55%","fxLayoutAlign","center center","class","media-panel",4,"ngIf"],["id","branding-logo","src","assets/images/logo.png","ovLogo",""],[3,"onLangSelectorClicked"],["panel",""],["backgroundEffectsPanel",""],["stream",""],["mat-icon-button","","id","background-effects-btn",3,"disabled","matTooltip","click",4,"ngIf"],[3,"stream","displayParticipantName","settingsButton"],["mat-icon-button","","id","background-effects-btn",3,"disabled","matTooltip","click"],["fxFlex.lt-md","50%","fxFlex.md","55%","fxFlex.gt-md","55%","fxLayoutAlign","center center",1,"media-panel"],["fxLayout","column","fxLayoutGap","10px",1,"media-panel-container"],["fxLayout.gt-sm","column","fxLayout.lt-md","column","fxLayoutGap","10px","fxFlex","33%"],["fxFlex.gt-sm","100%","fxFlex.lt-md","33%","fxLayoutAlign","center center","fxFlexFill","",1,"nickname-container"],["fxFlex.gt-sm","100%","fxFlex.lt-md","33%","fxLayoutAlign","center center","fxFlexFill","",1,"buttons-container"],[3,"onDeviceSelectorClicked","onVideoMutedClicked"],[3,"onDeviceSelectorClicked"],["fxFlex.gt-sm","60%","fxLayout.lt-md","column","fxLayoutAlign","center center","fxFlexFill","",1,"join-btn-container"],["mat-flat-button","","form","nicknameForm","id","join-button",3,"click"]],template:function(e,i){1&e&&(O(0,"div",0)(1,"mat-toolbar",1),X(2,Xte,1,0,"img",2),Xe(3,"span",3),X(4,Jte,1,0,"ov-lang-selector",4),V()(),O(5,"div",5)(6,"div",6)(7,"ov-session",7),X(8,nne,2,0,null,8),X(9,rne,3,0,"ng-template",null,9,dn),V()(),X(11,une,16,7,"div",10),V()),2&e&&(A(2),U("ngIf",!i.isMinimal&&i.showLogo),A(2),U("ngIf",!i.isMinimal),A(3),U("usedInPrejoinPage",!0),A(1),U("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),A(3),U("ngIf",i.localParticipant))},dependencies:[Zt,Mn,Bf,oi,Lo,bs,$f,Cs,_O,ys,DP,TP,AP,gy,_y,fy,yy,Cy,Sy,Ey,Ay,wy,ioe,Un],styles:[".container[_ngcontent-%COMP%]{height:calc(100% - 64px);padding:30px 60px;background-color:var(--ov-light-color)}.prejoin-toolbar[_ngcontent-%COMP%]{max-height:40px;height:40px}#toolbar[_ngcontent-%COMP%]{background-color:var(--ov-light-color);height:100%}#toolbar[_ngcontent-%COMP%] .lang-button{height:25px!important;font-size:14px!important;line-height:0px;align-items:unset!important}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}#branding-logo[_ngcontent-%COMP%]{border-radius:var(--ov-panel-radius);max-width:35px;max-height:35px;height:-webkit-fill-available;height:-moz-available;padding:10px;margin-right:10px}#layout-container[_ngcontent-%COMP%]{display:block!important}h4[_ngcontent-%COMP%]{margin-bottom:1px;font-weight:700}hr[_ngcontent-%COMP%]{margin:0}#prejoin-container[_ngcontent-%COMP%]{height:calc(100% - 40px)}#prejoin-container[_ngcontent-%COMP%] .sidenav-container{padding-top:0!important}#prejoin-container[_ngcontent-%COMP%] #background-effects-container{margin:0!important;max-height:100%!important;height:100%!important}#prejoin-container[_ngcontent-%COMP%] .mat-drawer-container, #prejoin-container[_ngcontent-%COMP%] .sidenav-menu, #prejoin-container[_ngcontent-%COMP%] #session-container{background-color:transparent!important}#prejoin-container[_ngcontent-%COMP%] .sidenav-menu{width:320px}#prejoin-container[_ngcontent-%COMP%] .layout{min-width:0px!important}#prejoin-container[_ngcontent-%COMP%] .OT_root{padding:0!important}#background-effects-btn[_ngcontent-%COMP%]{position:absolute;z-index:2;background-color:var(--ov-secondary-color);bottom:5px;right:5px}.media-panel[_ngcontent-%COMP%]{background-color:var(--ov-light-color)}.media-panel-container[_ngcontent-%COMP%]{width:100%;padding:20px 0 20px 20px}.nickname-container[_ngcontent-%COMP%]{display:block!important;margin-bottom:0!important}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border-radius:var(--ov-video-radius)}.buttons-container[_ngcontent-%COMP%]{border-radius:5px;padding:10px 0;height:100px;display:block!important}.join-btn-container[_ngcontent-%COMP%]{width:inherit;text-align:center}#join-button[_ngcontent-%COMP%]{width:100%;font-weight:700;color:var(--ov-text-color);background-color:var(--ov-tertiary-color);border-radius:var(--ov-video-radius)}@media only screen and (max-width: 480px){.container[_ngcontent-%COMP%], .media-panel-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%]{padding:0}.nickname-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%], .join-btn-container[_ngcontent-%COMP%]{width:90%!important;margin:auto}.join-btn-container[_ngcontent-%COMP%]{padding:0 10px}.media-panel[_ngcontent-%COMP%]{align-items:flex-start!important}}@media only screen and (min-width: 480px) and (max-width: 959px){.media-panel-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%]{padding:0}.nickname-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%], .join-btn-container[_ngcontent-%COMP%]{width:80%!important;min-width:80%!important;margin:auto}.buttons-container[_ngcontent-%COMP%], .media-panel-container[_ngcontent-%COMP%]{padding-top:0;max-width:600px}}"]}),t})(),xP=(()=>{class t{constructor(e,i,o){this.layoutService=e,this.captionService=i,this.openviduService=o,this.isSttReady=!0,this.languagesAvailable=[],this.isOpenViduPro=!1}ngOnInit(){this.isOpenViduPro=this.openviduService.isOpenViduPro(),this.isOpenViduPro&&(this.subscribeToSttStatus(),this.subscribeToCaptionsStatus(),this.langSelected=this.captionService.getLangSelected().name,this.languagesAvailable=this.captionService.getCaptionLanguages())}ngOnDestroy(){this.captionsStatusSubs&&this.captionsStatusSubs.unsubscribe(),this.sttStatusSubs&&this.sttStatusSubs.unsubscribe()}onLangSelected(e){this.langSelected=e.name,this.captionService.setLanguage(e.lang)}toggleCaptions(){this.layoutService.toggleCaptions()}subscribeToSttStatus(){this.sttStatusSubs=this.openviduService.isSttReadyObs.subscribe(e=>{this.isSttReady=e})}subscribeToCaptionsStatus(){this.captionsStatusSubs=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e})}}return t.\u0275fac=function(e){return new(e||t)(h(ba),h(rd),h(bo))},t.\u0275cmp=et({type:t,selectors:[["ov-captions-settings"]],decls:3,vars:2,consts:[[4,"ngIf"],["class","pro-feature",4,"ngIf"],["mat-line",""],["id","captions-toggle-slide",3,"checked","disableRipple","change"],["id","lang-section"],["mat-flat-button","",1,"lang-button",3,"matMenuTriggerFor","disabled"],["menu","matMenu"],["mat-menu-item","",3,"id","click",4,"ngFor","ngForOf"],[1,"section-description"],["mat-menu-item","",3,"id","click"],[1,"pro-feature"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAAEOCAMAAABPbwmXAAAC/VBMVEUAAADr6+s1Nzzo6Ojr1dHr7Ozq5eTr6+vq6+vo6OhAOkDo6Ojr6+vr6+vr6+vs7Ozs7Ozr6+vr7OzETk7q6urr6+vs7Ozr6+zr6+vs7OzCTEzs7Ozr6+vr6+vWbWXr6+vq6ur8+vslMTcvP0br7Ozq6urs7Ozs7Ozt7e3r6+vs7Ozs7OwsOUDr6+vr6+vs7OzCTEzs7Ozs7OzSUlLs7Ozr6+vr6+vs6+s1PkU3R0/t7e3s7Ozs7OyztLXYVFTs7OwzQkkyP0bhdW8zQkrggXM4SVHs7OyXTlHt7u4yP0bKT0/mkX/wu7jLhHU3R083R08zQ0vrlIE4SFHc3Nzb29vIUFA1REzJYF/slIE1RU3rlIHDTU3IT084Rk1IUFSum5c3R0/d3t7rk4DMVlY2Q0uDTVHb29s3R0/CTEzWVlXXWVjX2Njjy8vrlIHslYLmk4PokH7KzM3slIG+wMCSmJvV1tdJVVsmMjinp6icoaTc3Nzojn17fYDv8PDx8fEmMjjc3NzCxMXZ2dmmqKmhb2bYn597VlS5vb/linrrlIHEfHNLVlxdZGfJysyWZWGvsbOlRUfPxMWymZrGgnP+/v5jcHeVR0mudmrcsbHSjo7o6Oj+4drEgXLXVFTr6+vCTEw3R0/b29vslIHs7e3///8lMjjXU1M1REympqbglZU1Rk7HTk7CSkraVFTZWVjt7u7p6OjTU1POUVLk5OQ0Q0u9S0vaqanm5uYyQUnETk7f39/w8PDd3d3GUlPi4eHMzM2wSkq/UFG3T1DV1dXnhnefR0ibnZ7pkn/75eM/SVCoTU+3SkrFxcbWinuURkgwPkW6vL2PkZLfjn3caGdKSE+pR0jPfX3aYV+HioxuTVHS0tL0zMt9Qkb19vapq6xbSk82Njv88PCVl5h0en2jpKSioaK0fHJgaW1QOj7429rY2dpEOT28gnjKbWxxQETpp6Tgu7yXbGV5XlvRWlpiPUHn2dnVnZ3Tk49ZXF/gfX2udWrjiYmHYlu3kIyya2wPP+XLAAAAnXRSTlMA/QUEB/kKHxgOCxT1L91mX+zBa0o96LdYnfqQKSQYQzj9LhTxgGzlr04z0ifu2M+vo5Y4qot3Ux784Mtx/fHGbDr+vy+xhv25XlBM/f3n1IptMNi+vJr+993T05F8SST06sJ9UP727ujix2b96qGU3ZldXFQt/vfSp6GAbPnv46+efHv94+HJuq6l69/ZxIx5Ovrb2p2c1sm4spxqGmVgbgAAGPJJREFUeNrswYEAAAAAgKD9qRepAgAAAAAAAAAAAAAAAAAAmF3zjk0iDMP4h4C1trYVoaXSYlGqdbXWVW2r1VpnxbhHXXHExL333ivuFY1cLRwajSJ6USIC2jqoA2NAxT1iorFq3Ns//I4DDnoDSUDj+P1hG2xiv+fe93mf7z3/85///Oc///nP3wyvYng4+HeBx68UllBPJBRHZyc3a9w0TpAlEIJ/iwjX8SXx+PFTo2IbRvI5iBv9sLFc8C+RQRyfAX3RqOR/qmHq8hEIsxxFRXMqgb+EWtM2TJ48eepQwEyNSIQFXRGk93TwN1B52jq+DEXRe5mTmQWp15BVDmMRpFcN8OdTawMfdSHL2gQYSIj1Jwdk2Fjwp1N59kmUJJOp4MMyERY4UA6cUUsqgj+beRz00f47aNdXstL9z1C0E8N5KqX+hBx/vqG2WIeij+xd0Ve5smeOO7BfxAy5I41VDrPRYDCbzRiGNQs00/3+wFKhMlkcaihHLpTji6zUDuVAO/EAHeE5CBscjjuUNA3keBHZcYKU5CQe/IV+G5U7t2vXtyYgmC1zy4GW2mGzoFvD6J9iHPJzxPHAz5OM6M8UYcPmbGvfAvwCIgAQVuH6FEbbNu1majSahZ0JaVaiuBx30Fff0NJcXA5ZEqCD27T8MNFjEL0OKYcgEDOVcLCi27fLTj1d2xOEHK44JzojKjbe+3k3WIiLgevRwDllcTlkX6CVeuRgCA/xvjHU7DJPI1YuuqdFgJ8nMb0Oduby+acXZgyuAEJNbTmCt3SdRK/i6K5xMaAWUR2kHI8IOeoxPEjEC6yIxOyrR2pAo4WbuG3G58f37z9tH3r3EPOR+vEpcnlMmKefay7UPL/1EKrxYEVNj3egdx6hpXdQGfwCvYPhOB3Ky2E0GogKwRBvMsMCmWsNQOebl423e00LvXdwxXxBIuDGREamVgEu2s7U3LJ9fXvru3XZYGKy6FCoQyla+swlR1NAT3PfFGrAdHCa6I24Lj7+EZsAGIiWxCRV4npZeoPKDVqEx3PKTpmTQcipKKnDEeNfOyF8oac6Zmq+q1QKhUr1pC+RSe+haKnjFbrf/uiOtiuzdYBoXyPluDyEUh4NYbMxzSZOw9SUDuIqEVxn37ZoC/0immM+Ze4UyuxG/vP8uniRpCANM4CL3Q80T1S2NwrbsjfO6hgyCreLrs/QZ3fQR11LUbQxY+fRbzsM5eWIFDHF/ChXRKma1jQ5I2FIA8KhOZghpwr4BTRGkHg49ZJi64vCAYG04MlbG6wOm/XNsiH4YJl172Sk952lU0SACw9zeTlgJdIjkiMkZ4b1Sm8uTAwHwrT6kkTwK6gXk8VPj8lORVJ4nooZ/sSqUqm+K6xvd0jx4pi9dNq0pcNkKIEsPiLAhQdVDo7Yf7epDVcxNVSuTk58bXFSaG99VPuLIt2thwKXw2ZRvFjFw/vXOe2HLk49KZPJFsTVZQnYSXLacI43i28UiwZ+J3UZxlF7mitK0DhaBGdf6GneEMlpnlVfSJ4y32qBclgUX60TvKPq0GlTx06dzpqEqlRl2goafF0lm8HZBV61oUd8kUftmg5CTsWkZiKQ4NWavNVfbXh1vLCqeoDASMxkKo5yZ0tmdVKIHtMhFLBFwV89h8OT82oLmZtxSv83X6EcUJLxeSAwKrmPUz6OmRFfJP6852qZms6DloAgk5ieVo9XVx4ZJ6ZXWlptkurJtSd4u/QPoDiYFx56MoSRxDPcGDwVVcahHdjDkkAw4dZNg64piMWjUA1aMUZrz6osbx+uWD18Qn7glZfD2iokTdmvgLpTOoZla+8IEEQqZbHeKruMsWuVuSqYwTr2GdGkcuCprhNLq/hfeIQLPD5Kb8mQ4Eb12rAIq3ZKgT1ehxKUpSNaKx3KvQ7YKBatUtl6zKAuUt/TSvPy8vPz86SMxZdCfaJkq/hdeCTWQQjIDQnlijxMCIJINAcRiCpywyR8JKtZts8zyuujJIDlkUt8d2T0CEKGoXn5PeZOGF4wvn9/i1WxZQ1TH6XTHQFDKGTRGpeQ71Ljqo4hzUF6hYFgkVA3C8ms4hyv+OKqvne/NBmjVRJoc3O1xcWH4HcnlLkTJk4kZFC5sVkVCsVcKVPmpx6B5mypldguxNgpxjQHmcMLVsSIg62SDpxk8KGnegndZbTWriQ48k5rv/jedEh59ARsHAoWi8VmtU7ksS88yNubkWZIRIWx1RamZ3xtBRk1FgQFYpfpWuqLIuFwqeKlBqwKJcHefu+0px++P6osOZqrooKLYbXZ5rI9X/KJkoHU78Ij3OXz6qtn1LR6YJhzmdRrevDur/Cu5jaRWEEVjxqtlS60eHmUKC9qNHdNJQ4LrRxQD4V1Uh5jcPBfHQ3rsb3TLMMQJnQ6zGxYFKQLXTJci8oznHE4B8kUhXPJ2iC0eKe043oUl3ScCfWAxcGMZRKNn8aUPzpmNJpp5IgUsa0HDDqEDQ5staCQIKxdFamTnZBYVwBNhHRRqAbRKsVHCF1Ob+8+U/Ow41kVHf3HFwyH7mqZCChk6LwhXjWRavhZeCQjLloZKM1CGdNBQgJ/xdhMPj7s3BrnjbEr92rte3E5TIQc77ZX7rxQs6I/nRgTYfDg8QaN7jewEYU+N7wZx3gqTgbbWxo4i1hpDIIG+SqkqtCVvvq4TANytJiYLf1MXUDbdkPyJxSMp0gyadWaufl5Aw8eLKThoDevDyNMxLBceNRFGHt1RINgEZECazdTIqmKZLk3HIOUbhzaIyUOKEZx8VFHNQAqV4BawRg6ZUoPgik9httsMHh8tahWXbxU6I+Dxw8j0PkwumedzbIsUV8+xSoHNJ7g6SGOk9cGILuxu1WqtVa60WqVp99pTSUmRy40Bjqk+euHF0zaUjBhzZVj/uX4qHZGJzovTWbbO2Ps1QGdNIhUFEXARuV6bFRLCEFQUmwyOc5aoEVMAbQ0aCGVSiuCjacL/cvxifj/YHRW0IwtwnFO6f288A4V0jHO0aqFfzgxFeNi4BRQcwXsHjeD4HEvXfIjxw1SDv9uyCOvf2p8+aNWEy9qqEhAyBjhTqLufjF5ssZqyjhrMbKFW5g+hYXXr/iVQwebhT6WplO7uL53/tTpL58xtyorumrAsPJTKQaEilrrjyq9gfcWMolOlFJ+3C2HdCAsDr/N8hJD9AajQU9X8FzKnE13H1eQg9xvpbttTluSqjPqb7fS+zqJPAmEisEtbx09RNSG1kGMWy2ZvQrm5jG0aZPqhf452O/D4cOw6g/TIOBRF6XywxB1WvTQeVFlZw7HdggDtefDTxD9ZT3lNhwSenbbt+9W8SGH3ctN99pVJOOH96BdH3epDjl26Vh1Cie8MH08zsTyalSWO/9iRLWNG3ceP755DfxkBPwIQqTUkDtphb579u058KAEKkHiKg9SkdVThrqGysiaFdyWUwi5fuW6v/pghvGnr59zfnf9tOcj0zif6ugAQgQsjgN79hy41vHIIY8WZHmQTJowZSgPqkdOlkaFIeOSO9D8IObaflyIwvjUaCkti1VbSiUu67bYpbtucQnW5QFxS1zjfk9IxAsh4kG8+gM6ViZMMoymTRsrtVTpg6J92Y2QTXiSJptsPIhn35kz06/mDKWdnfk9bPdyXua33/f7fuf7zpxcRs+59+9FYYwPB5pDhLUQHARvIWF0KQUFIb30NwZcunNtSQUOPLISz5CMVA55yaQyKVWRXz93B0NTVBld5MLegMUYtlEGOpJJSeru3ZRQoKpoOLf/zRMWqysQtRTxitgg+YfcvMvkUn3fXM1jh8P2AlS0aWRwviVKyo9gq+x2kivJ7mKxW+r6sqnno6KQIFFWb91w7OPDqH2IPysTYKzeECDvfo5XS2to5dIQ2JMOS5R0apuH8dvbpK4y5K7eT5vy4NFfZW8vI2bVTjzSnx50lMGziyO50Z1joWXl5Syb0Y5tDjFKeprQgSCh0tvb+7ZrB25zbQHSkTLZGJ5Zws2bRNsR4Un1OlLcETRUoQP46Ia0gc/Th7kJUTuRKEfHPRYHpjWMIVMQv7d9nDDOmrriD7DbhGX7fqdDSnYn6XfrZyypQS3rpyNVMHEj54I+2hKc47KsMbjKxNyOWg9S+jt0fnZMOxu1D6ilKdM2QSWC1gycoF3LjOx3yJKRDu0Xp0/YqqXxRxobfeY9tQrM5uoCNt5EpgN1+IiRDrlb+2b9nqideIQmzIie76KA8IW5uoDjIHHzcDPj8Tu6dYJOKlH7gOJhti0WmePbVkwjxeap/5AtWnjIn6L2AenIpdimyQtLRyx4BO36XM6Adacl2ZgtMv38kojaiLhOxzuTlpp1IxYc90HEpTtNdy2/Q6+1va/szBYsLSbteMtHLLNIS0qMsa+wbVkuyUy2UORtpAO1lJ1XQGGxbsSCTWpRFFGHUEyZ8Chqv9hkPx2APiMdPRdEK0cs2KQWxethtlnaZQyPbhoe8smojUCbnmEKi1CBzXUrKR5BE9OrTBpixvCQipqWxqP2AekoZAyF5amFIxY0YWSMk25l/7aXhgebLb09URsR/8Oe9vEHa4fVWGfFWJo5sOcFZypLptnyNutAaQH09TGFxeIRCx8UVKQDBiMWbvOO2mgMD6nomJay+5Zn32PWj1j89Oi8QUv5sYHxHqi1ssRmC9FS2+lg1RSGCkMxYpm7goZHZe55Ot3CHB5qbReTLU7ZdJwomBeWCGcRoL0GiEUqqm8QeA/SWisx2eKMTUc5RYtu+bAaX6sSIRo0eIOiRveCfYbwkIsytelR+4BaCnhXMO/9tFg2rPY3q3SUS4unTZWoVaa1tphUS4sjNh3VA3s/1g+r2w02fVY6LeoH+NadliVGPJwoLYi+d2a9nzm8Za8PU1t6Q5voddxIp2OiMFPdEUGtTTLi4ZRNR/NBC4vb0mE13sojEj60lseI+SQ2RHHMCNN9rVx0xqazanrgbmN768qA25Jh9eiReGcTSRUwprTSRtIxrONkwmCoLaqWyvbbdESGdk0Xq4/h75i1dP44V4u/Tv0cH5nHl19hFAGxTjp0oRnpG6tPGIx0SM7YdEZND5Yt42h/02xv3YoRaA3z9AYGsmkRxTYaHGD/NwenzB2ub2sZOhzqACFSKh8TOCsx1gXP3RYqv2gSSy/lyY6OFJVFjXgICKUUk8U5m47eY/ISDmHRVlZc2MSDeFKXTjrRDTHtrXtsIBt9mJPd9Iqu6ZlpnKWYQiQj7ev0cnPHqaWWvP7WCiUWQC7uoHVWNgRHsuhkN72iTbjH4st+po8j+pmOtXm5pmbabIQqAxpCPN4IvX2cNOkPOmjTccawmLMWfCu1X7EIz00cL6g3QHWkVTrcWllZsF0yBAc5H9Vlv01/+IhJluNmj8RzfO3hATHR4hPS5OFHRnxCwM9NEUnNdUWGszpKIQEc7ADhQG7yVpOteWuTZ1Xtd72EZ83unAnx0TwdiG0ItMzzrBGJw5ui9aRPHKHPjli+fbmUdLCbjtPrM2xhaQoIgTUzhYUTa/emK9USO8lLKm9geihQycaM9bIxOPatPSJrdHxyzqan1HM/Zi9i+wJuCPJ6+ugilBd1quBpnd4RE5EN6P1oOoo4tGAbyR/HbDqO4/YMM+rGyHbX+PDUjoW+hpF8rd404lLL7QriMxomzqpkY53uRxH7ls3YTjhy1qanMmjREaFF7nHT1VfEfeNrvrnCs2qFOrFuI8E2cSm0BL36TBItBwYHbGEIHY7a9Iy5Rfe3wD0bdI42po5WkD/YAgFyA/Qn3LhSwPvZ1i5PGoNj+zKO20i6p9VtuqJUJ0sB1EAHMR0mhSU0RmgmqtHoc60cWY//CM9xwxCO58JNK8b4cSLJWI7la8kpGEJHdZuezeWr+rRXeVxTFQmMDYIzG5g490eEOf7RE9e420P1dcY8TYsECI/Gsc3QjtbdOauj62fQo/vJqja9ZxAurRzoT/z1+fphzVdmTRUtTZHYwMJivCwpML8FrzSoHSOCYpCb2942HFOF0dEjJ1QvshwkpcqgNvHjgYr+vz3eIF0zGP8PLX2nHfEwt+gNMwXfGCi04brbpby3fVGoY1YjP5wSsnMfq6P0gtR1xHj8vbQouQcUXytWKAQVa/JftTV55V9tel8GT+kfNHuKxkmzR3fOmVhvE/nKzd27dx/dBYDP8B9S5fQ6jkA1HlVs+uADDQV9hdKTLxRyWXxVSOnX1/T/Gx2JTEpvof+59+Mdznk89e9tT91HnGdShWKHfiYI6Khi038Y6YgXSqUfP0oDP/JlOgYZOqoAjUeV3o/VdECq6I+M2E6vB0Xjwdp09j+fUygb/QOFnng0ke0vy6tSQMpqsOnQ+xk6TL35+bWO3dNJqkgSW2TxDEyV85RKVtOFUkJ79AEqIko0UxpMaFV2gK4ZeFWDTcfez5Dg7vsyzpNUkZENLLIEaDwAb/94nrKg8jGQoX/vKaGGZEt6ucmpa77marHpUFiGEpdflnGLpAqygUVWx1pCRzWbnh8slfpf6YUGogQrCiUJkIU1g9naWh7HuaHELZSOq2yqAPbi/hGMh1SttEBaJOLwhSILAorIvcI1iahSEx1g0YcSEaRjt1mq7NuJa8F4SP95Nl1hfqiz5QG9nyEEf7PMxvNfxN1PSBRhFADwWcV2/VNtpYIklJZg7oohmxo55B4KFiSEgi6lROCloyVbeAmDDlpBpyB22WWNGaagEiHr4B4WBgXDHeqwjDiHmV0XQzET0ovRm3FnHsuMJ3e++R28rAfn+ea9t9/MN5O+wTGc+ZsswsHDudV0GNFtVHkrrkspHHNwHcXBg/z9lFhLce3HHu6bcR1/mTuwjhqDB/yGEytAWDzuUHY6es84VUbxVLGoozh4OLuafoqyU+2wcaowMc66jqIBIxwc4W1PhBrLg3iBDJcNZjjredQ0eDh3oRbWfuzUgqdKjJuZnWUs6ygOHgzjTGsh0VjAk/g+Or/Aabt4ZjFFYFc1wsHDmW1PREb0I0afFff+/ITigSmCdRT5cV8H6dV0Io3FY/TZ6PzyzrNdPUUY/Xt9Ebwzm3xrIdJYHul9dk59qdna5nohRRiGuxyiEA4eXMzJWgprP3aqM1Z/VqZA03z/zhakiL4+anIN4sAxGsL3UxJY+8E+K0p00gUJAimyvLkKKRK7EaQsDMQ46MezKsJjur1rP2VlZVVgBF6t+xTQLMtKaS1FmprW+r9vTQw0+5uLBYPB5oGYyrkLtReb9/lVPZpzmioAx0SVxFCY1dDJOVpabJqa7x/r6/OXmcAdUvuhUDnRWu6b/iLtR4mNs7yQZVVyRkzTK1PPQ+eCIcqsJ/RyFayrNiIkvccR3W6VYX50SWFVOSUjZenhsSp/n5+y8nZe1x8haRrXfuz2kBWW3uVZTS6j5POTd/tCPZSlwJTu93aEoM84otttHJIiL7MFgrI7OjFIHaBhpUDM/SD+EDFY+yFg6FWY57OsTlbyu5PYZ8uPVLsb2850e3tbTjcEXtAFsrJBKBxYPO5QZAyNhwWBL4rHoKfxbK2361JD68mOY/XtNa6oKpHUw5YV/hEPxymKlOqRx0JGyLEaXoDg3Kw/b37bXyLJGtYjRGAt/fqms8Vbe9RdWU7Zr3IkzGcysv7fl9KfElGrcAhKIY32IiRNw+5ZdTNxxYljVwOXjtc2VtsWlHJPm/d665UTc0nJSJEsb/WynITIL+hN6PU20Vpa/LyfivqO1uveNk/JY+Kp6w342l3awSa+pNKQIlBXeUHmF13mcKQwHLnbZFuLvpkYudp9gd46Twlj0d3pqyk6Xte3RUgRWT1pJDFhCkdcEhQ5m83mAOHW8mEnEbVQ4+vsLk1E3F0dxdUSUwSSg2XT5g/naDYHlTajIt1aYDOxtYqOLjd1aBd8UWRKEV7m0y6LN0v9SqVEUUyCvxGSpvGxDBZ8F6hDgrtTkVWKSEmrTwwf/7N37zoKAlEYgMfMoBAuzhARDBIouAhEDIZLgiS0Psw+E80mJttsYrVPsY+yic0W2+1UdtKgKMl85VRz/vzFqWbePgesx+lMn2XooKxBPxFpu7xfv9q65XfYNf2n8zokAv3AmrS9fP2dBnT+bjuQGoK+tLRfIJePIV3am0iqgTuAkaeSduSI6kUQ3IkQzdMd3cJGabLdpfNIAPclRjjXY8K1I8KRWM9xJILHQLwc1nt9F0gv3pSJFOz0fR3KPAKPhkRLMwozU5PAfbGycG6QqJlZGJolIjAoOOUtJ8SFmepNUhGJe1JjJpxEqqTRU7PAoWPxUwieCwm8JWsh9j1ztTk2sRIQ94Hp0PldEihxc9ysTM/HoSZbvIDAK4JIEGk4jr0wsF94+X6VbXS1OcSJUgVLsnVdSeKoCXVjWoqjJMl1t2QZVEoSHxpV32Srfe4VPjYWtkMDEAUEwQhBNBVoRrOZtZZlx9FsexGWpWFgjOeUfzWn6KFhlGW4sG3NcWR5bc1mdHJhOs7ZGYZhGIZhGIZhGIZh/tuDAxIAAAAAQf9ftyNQAQAAAAAAAAAAAABgKnFticyleiBsAAAAAElFTkSuQmCC"],[3,"innerHTML"]],template:function(e,i){1&e&&(O(0,"div"),X(1,hne,23,15,"mat-list",0),X(2,fne,4,3,"div",1),V()),2&e&&(A(1),U("ngIf",i.isOpenViduPro),A(1),U("ngIf",!i.isOpenViduPro))},dependencies:[Ro,Zt,Mn,oi,oa,Pu,Ss,Es,ku,Lu,wI,Un],styles:["#lang-section[_ngcontent-%COMP%]{margin-top:10px}.section-description[_ngcontent-%COMP%]{color:var(--ov-panel-text-color);font-size:12px;padding:0 5px;display:block}.lang-button[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);color:var(--ov-text-color)}.pro-feature[_ngcontent-%COMP%]{text-align:center}.pro-feture[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px} .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:var(--ov-tertiary-color)} .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:var(--ov-light-color)}"]}),t})(),OP=(()=>{class t{constructor(e,i,o){this.panelService=e,this.platformService=i,this.libService=o,this.settingsOptions=Xl,this.selectedOption=Xl.GENERAL,this.showCaptions=!0,this.isMobile=!1}ngOnInit(){this.isMobile=this.platformService.isMobile(),this.subscribeToPanelToggling(),this.subscribeToDirectives()}ngOnDestroy(){this.captionsSubs&&this.captionsSubs.unsubscribe()}close(){this.panelService.togglePanel(zt.SETTINGS)}onSelectionChanged(e){this.selectedOption=e}subscribeToDirectives(){this.captionsSubs=this.libService.captionsButtonObs.subscribe(e=>{this.showCaptions=e})}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.subscribe(e=>{e.type===zt.SETTINGS&&e.expand&&(this.selectedOption=e.expand)})}}return t.\u0275fac=function(e){return new(e||t)(h(_o),h(Jl),h(Mt))},t.\u0275cmp=et({type:t,selectors:[["ov-settings-panel"]],decls:31,vars:24,consts:[["id","settings-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","100%","fxLayoutAlign","space-evenly none",1,"settings-container"],[1,"item-menu",3,"ngClass"],[3,"multiple","selectionChange"],["optionList",""],["id","general-opt",1,"option",3,"selected","value"],["mat-list-icon",""],["mat-line","",4,"ngIf"],["id","video-opt",1,"option",3,"selected","value"],["id","audio-opt",1,"option",3,"selected","value"],["class","option","id","captions-opt",3,"selected","value",4,"ngIf"],[1,"item-content"],[4,"ngIf"],["mat-line",""],["id","captions-opt",1,"option",3,"selected","value"]],template:function(e,i){if(1&e){const o=at();O(0,"div",0)(1,"div",1)(2,"h3",2),se(3),ye(4,"translate"),V(),O(5,"button",3),we("click",function(){return i.close()}),ye(6,"translate"),O(7,"mat-icon"),se(8,"close"),V()()(),O(9,"div",4)(10,"div",5)(11,"mat-selection-list",6,7),we("selectionChange",function(){Ie(o);const s=Ui(12);return Re(i.onSelectionChanged(null==s.selectedOptions.selected[0]?null:s.selectedOptions.selected[0].value))}),O(13,"mat-list-option",8)(14,"mat-icon",9),se(15,"manage_accounts"),V(),X(16,pne,3,3,"div",10),V(),O(17,"mat-list-option",11)(18,"mat-icon",9),se(19,"videocam"),V(),X(20,gne,3,3,"div",10),V(),O(21,"mat-list-option",12)(22,"mat-icon",9),se(23,"mic"),V(),X(24,mne,3,3,"div",10),V(),X(25,_ne,4,3,"mat-list-option",13),V()(),O(26,"div",14),X(27,bne,10,3,"div",15),X(28,yne,1,0,"ov-video-devices-select",15),X(29,Cne,1,0,"ov-audio-devices-select",15),X(30,Sne,1,0,"ov-captions-settings",15),V()()()}2&e&&(A(3),Ne(Se(4,18,"PANEL.SETTINGS.TITLE")),A(2),Ht("matTooltip",Se(6,20,"PANEL.CLOSE")),A(5),U("ngClass",Xn(22,Ene,i.isMobile)),A(1),U("multiple",!1),A(2),U("selected",i.selectedOption===i.settingsOptions.GENERAL)("value",i.settingsOptions.GENERAL),A(3),U("ngIf",!i.isMobile),A(1),U("selected",i.selectedOption===i.settingsOptions.VIDEO)("value",i.settingsOptions.VIDEO),A(3),U("ngIf",!i.isMobile),A(1),U("selected",i.selectedOption===i.settingsOptions.AUDIO)("value",i.settingsOptions.AUDIO),A(3),U("ngIf",!i.isMobile),A(1),U("ngIf",i.showCaptions),A(2),U("ngIf",i.selectedOption===i.settingsOptions.GENERAL),A(1),U("ngIf",i.selectedOption===i.settingsOptions.VIDEO),A(1),U("ngIf",i.selectedOption===i.settingsOptions.AUDIO),A(1),U("ngIf",i.selectedOption===i.settingsOptions.CAPTIONS&&i.showCaptions))},dependencies:[Ii,Zt,Mn,oi,Lo,oa,bs,Cs,ys,ir,ku,Lu,Xf,Eb,WO,Sy,Ey,Ay,wy,xP,Un],styles:[ed,".settings-container[_ngcontent-%COMP%]{display:flex;padding:10px}.item-menu[_ngcontent-%COMP%]{padding-right:5px;border-right:1px solid var(--ov-secondary-color);width:170px}.item-menu.mobile[_ngcontent-%COMP%]{width:50px!important}.item-content[_ngcontent-%COMP%]{padding:16px;flex-grow:1;width:min-content}.option[_ngcontent-%COMP%]{border-radius:var(--ov-panel-radius)}.lang-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}mat-list-option[aria-selected=true][_ngcontent-%COMP%]{background:var(--ov-tertiary-color);font-weight:700!important;color:var(--ov-panel-background)} .mat-list-item-content{padding:5px!important}"]}),t})(),Dy=(()=>{class t{constructor(e,i,o,r,s,a,l,c){this.loggerSrv=e,this.storageSrv=i,this.participantService=o,this.deviceSrv=r,this.openviduService=s,this.actionService=a,this.libService=l,this.translateService=c,this.onJoinButtonClicked=new Ee,this.onToolbarLeaveButtonClicked=new Ee,this.onToolbarCameraButtonClicked=new Ee,this.onToolbarMicrophoneButtonClicked=new Ee,this.onToolbarScreenshareButtonClicked=new Ee,this.onToolbarFullscreenButtonClicked=new Ee,this.onToolbarParticipantsPanelButtonClicked=new Ee,this.onToolbarChatPanelButtonClicked=new Ee,this.onToolbarActivitiesPanelButtonClicked=new Ee,this.onToolbarStartRecordingClicked=new Ee,this.onToolbarStopRecordingClicked=new Ee,this.onActivitiesPanelStartRecordingClicked=new Ee,this.onActivitiesPanelStopRecordingClicked=new Ee,this.onActivitiesPanelDeleteRecordingClicked=new Ee,this.onActivitiesPanelPlayRecordingClicked=new Ee,this.onActivitiesPanelStartBroadcastingClicked=new Ee,this.onActivitiesPanelStopBroadcastingClicked=new Ee,this.onToolbarStopBroadcastingClicked=new Ee,this.onSessionCreated=new Ee,this.onParticipantCreated=new Ee,this.onNodeCrashed=new Ee,this.showVideoconference=!1,this.participantReady=!1,this.error=!1,this.errorMessage="",this.showPrejoin=!0,this.isSessionInitialized=!1,this.loading=!0,this.nodeCrashed=!1,this.log=this.loggerSrv.get("VideoconferenceComponent")}set tokens(e){let i;if(e&&e.webcam){try{i=new URL(e.webcam).searchParams.get("edition")}catch(o){return void this.log.e("Token received does not seem to be valid: ",e.webcam)}this.log.d("Tokens received"),this.openviduService.setOpenViduEdition(i?ya.PRO:ya.CE),this.openviduService.setWebcamToken(e.webcam),e.screen?this.openviduService.setScreenToken(e.screen):this.log.w("No screen token found. Screenshare feature will be disabled"),this.start()}else this.log.e("No tokens received")}ngOnInit(){return Le(this,void 0,void 0,function*(){this.subscribeToVideconferenceDirectives()})}ngOnDestroy(){return Le(this,void 0,void 0,function*(){this.prejoinSub&&this.prejoinSub.unsubscribe(),this.participantNameSub&&this.participantNameSub.unsubscribe(),this.deviceSrv.clear(),yield this.openviduService.clear()})}ngAfterViewInit(){this.externalToolbar?(this.log.d("Setting EXTERNAL TOOLBAR"),this.openviduAngularToolbarTemplate=this.externalToolbar.template):(this.log.d("Setting DEFAULT TOOLBAR"),this.externalToolbarAdditionalButtons&&(this.log.d("Setting EXTERNAL TOOLBAR ADDITIONAL BUTTONS"),this.openviduAngularToolbarAdditionalButtonsTemplate=this.externalToolbarAdditionalButtons.template),this.externalToolbarAdditionalPanelButtons&&(this.log.d("Setting EXTERNAL TOOLBAR ADDITIONAL PANEL BUTTONS"),this.openviduAngularToolbarAdditionalPanelButtonsTemplate=this.externalToolbarAdditionalPanelButtons.template),this.openviduAngularToolbarTemplate=this.defaultToolbarTemplate),this.externalPanel?(this.log.d("Setting EXTERNAL PANEL"),this.openviduAngularPanelTemplate=this.externalPanel.template):(this.log.d("Setting DEFAULT PANEL"),this.externalParticipantsPanel?(this.openviduAngularParticipantsPanelTemplate=this.externalParticipantsPanel.template,this.log.d("Setting EXTERNAL PARTICIPANTS PANEL")):(this.log.d("Setting DEFAULT PARTICIPANTS PANEL"),this.externalParticipantPanelItem?(this.log.d("Setting EXTERNAL P ITEM"),this.openviduAngularParticipantPanelItemTemplate=this.externalParticipantPanelItem.template):(this.externalParticipantPanelItemElements&&(this.log.d("Setting EXTERNAL PARTICIPANT PANEL ITEM ELEMENT"),this.openviduAngularParticipantPanelItemElementsTemplate=this.externalParticipantPanelItemElements.template),this.openviduAngularParticipantPanelItemTemplate=this.defaultParticipantPanelItemTemplate,this.log.d("Setting DEFAULT P ITEM")),this.openviduAngularParticipantsPanelTemplate=this.defaultParticipantsPanelTemplate),this.externalChatPanel?(this.log.d("Setting EXTERNAL CHAT PANEL"),this.openviduAngularChatPanelTemplate=this.externalChatPanel.template):(this.log.d("Setting DEFAULT CHAT PANEL"),this.openviduAngularChatPanelTemplate=this.defaultChatPanelTemplate),this.externalActivitiesPanel?(this.log.d("Setting EXTERNAL ACTIVITIES PANEL"),this.openviduAngularActivitiesPanelTemplate=this.externalActivitiesPanel.template):(this.log.d("Setting DEFAULT ACTIVITIES PANEL"),this.openviduAngularActivitiesPanelTemplate=this.defaultActivitiesPanelTemplate),this.externalAdditionalPanels&&(this.log.d("Setting EXTERNAL ADDITIONAL PANELS"),this.openviduAngularAdditionalPanelsTemplate=this.externalAdditionalPanels.template),this.openviduAngularPanelTemplate=this.defaultPanelTemplate),this.externalLayout?(this.log.d("Setting EXTERNAL LAYOUT"),this.openviduAngularLayoutTemplate=this.externalLayout.template):(this.log.d("Setting DEAFULT LAYOUT"),this.externalStream?(this.log.d("Setting EXTERNAL STREAM"),this.openviduAngularStreamTemplate=this.externalStream.template):(this.log.d("Setting DEFAULT STREAM"),this.openviduAngularStreamTemplate=this.defaultStreamTemplate),this.openviduAngularLayoutTemplate=this.defaultLayoutTemplate)}start(){return Le(this,void 0,void 0,function*(){yield this.deviceSrv.forceInitDevices();const e=this.externalParticipantName||this.storageSrv.getNickname()||`OpenVidu_User${Math.floor(100*Math.random())}`;this.participantService.initLocalParticipant({local:!0,nickname:e}),this.openviduService.initialize(),(this.deviceSrv.hasVideoDeviceAvailable()||this.deviceSrv.hasAudioDeviceAvailable())&&(yield this.initwebcamPublisher()),this.isSessionInitialized=!0,this.onSessionCreated.emit(this.openviduService.getWebcamSession()),this.onParticipantCreated.emit(this.participantService.getLocalParticipant()),this.loading=!1,this.participantReady=!0,this.nodeCrashed&&(this.nodeCrashed=!1,this.actionService.closeDialog())})}initwebcamPublisher(){return Le(this,void 0,void 0,function*(){return new Promise((e,i)=>Le(this,void 0,void 0,function*(){try{const o=yield this.openviduService.initDefaultPublisher();o&&(o.once("accessDenied",r=>Le(this,void 0,void 0,function*(){yield this.handlePublisherError(r),e()})),o.once("accessAllowed",()=>e()))}catch(o){this.actionService.openDialog(o.name.replace(/_/g," "),o.message,!0),this.log.e(o),i()}}))})}_onJoinButtonClicked(){this.showVideoconference=!0,this.showPrejoin=!1,this.onJoinButtonClicked.emit()}onLeaveButtonClicked(){this.showVideoconference=!1,this.participantReady=!1,this.onToolbarLeaveButtonClicked.emit()}onCameraButtonClicked(){this.onToolbarCameraButtonClicked.emit()}onMicrophoneButtonClicked(){this.onToolbarMicrophoneButtonClicked.emit()}onScreenshareButtonClicked(){this.onToolbarScreenshareButtonClicked.emit()}onFullscreenButtonClicked(){this.onToolbarFullscreenButtonClicked.emit()}onParticipantsPanelButtonClicked(){this.onToolbarParticipantsPanelButtonClicked.emit()}onChatPanelButtonClicked(){this.onToolbarChatPanelButtonClicked.emit()}onActivitiesPanelButtonClicked(){this.onToolbarActivitiesPanelButtonClicked.emit()}onStartRecordingClicked(e){"toolbar"===e?this.onToolbarStartRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStartRecordingClicked.emit()}onStopRecordingClicked(e){"toolbar"===e?this.onToolbarStopRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStopRecordingClicked.emit()}onDeleteRecordingClicked(e){this.onActivitiesPanelDeleteRecordingClicked.emit(e)}onStartBroadcastingClicked(e){this.onActivitiesPanelStartBroadcastingClicked.emit(e)}onStopBroadcastingClicked(e){"toolbar"===e?this.onToolbarStopBroadcastingClicked.emit():"panel"===e&&this.onActivitiesPanelStopBroadcastingClicked.emit()}_onSessionCreated(e){this.onSessionCreated.emit(e)}_onNodeCrashed(){this.nodeCrashed=!0,this.onNodeCrashed.emit()}handlePublisherError(e){return Le(this,void 0,void 0,function*(){let i="";if(e.name===As.OpenViduErrorName.DEVICE_ALREADY_IN_USE)return this.log.w("Video device already in use. Disabling video device..."),this.deviceSrv.disableVideoDevices(),yield this.initwebcamPublisher();e.name===As.OpenViduErrorName.NO_INPUT_SOURCE_SET&&(i=this.translateService.translate("ERRORS.DEVICE_NOT_FOUND")),this.actionService.openDialog(e.name.replace(/_/g," "),i,!0),this.log.e(e.message)})}subscribeToVideconferenceDirectives(){this.prejoinSub=this.libService.prejoin.subscribe(e=>{this.showPrejoin=e}),this.participantNameSub=this.libService.participantName.subscribe(e=>{this.externalParticipantName=e})}}return t.\u0275fac=function(e){return new(e||t)(h(sr),h(jo),h(vi),h(ec),h(bo),h(Sr),h(Mt),h(Ms))},t.\u0275cmp=et({type:t,selectors:[["ov-videoconference"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,zie,5),Je(o,iP,5),Je(o,oP,5),Je(o,rP,5),Je(o,qie,5),Je(o,sP,5),Je(o,aP,5),Je(o,lP,5),Je(o,cP,5),Je(o,uP,5),Je(o,Wie,5),Je(o,dP,5)),2&e){let r;xe(r=Oe())&&(i.externalToolbar=r.first),xe(r=Oe())&&(i.externalToolbarAdditionalButtons=r.first),xe(r=Oe())&&(i.externalToolbarAdditionalPanelButtons=r.first),xe(r=Oe())&&(i.externalAdditionalPanels=r.first),xe(r=Oe())&&(i.externalPanel=r.first),xe(r=Oe())&&(i.externalChatPanel=r.first),xe(r=Oe())&&(i.externalActivitiesPanel=r.first),xe(r=Oe())&&(i.externalParticipantsPanel=r.first),xe(r=Oe())&&(i.externalParticipantPanelItem=r.first),xe(r=Oe())&&(i.externalParticipantPanelItemElements=r.first),xe(r=Oe())&&(i.externalLayout=r.first),xe(r=Oe())&&(i.externalStream=r.first)}},viewQuery:function(e,i){if(1&e&&(Et(Ane,5,vt),Et(wne,5,vt),Et(Dne,5,vt),Et(Tne,5,vt),Et(Mne,5,vt),Et(q1,5,vt),Et(xne,5,vt),Et(One,5,vt)),2&e){let o;xe(o=Oe())&&(i.defaultToolbarTemplate=o.first),xe(o=Oe())&&(i.defaultPanelTemplate=o.first),xe(o=Oe())&&(i.defaultChatPanelTemplate=o.first),xe(o=Oe())&&(i.defaultParticipantsPanelTemplate=o.first),xe(o=Oe())&&(i.defaultActivitiesPanelTemplate=o.first),xe(o=Oe())&&(i.defaultParticipantPanelItemTemplate=o.first),xe(o=Oe())&&(i.defaultLayoutTemplate=o.first),xe(o=Oe())&&(i.defaultStreamTemplate=o.first)}},inputs:{tokens:"tokens"},outputs:{onJoinButtonClicked:"onJoinButtonClicked",onToolbarLeaveButtonClicked:"onToolbarLeaveButtonClicked",onToolbarCameraButtonClicked:"onToolbarCameraButtonClicked",onToolbarMicrophoneButtonClicked:"onToolbarMicrophoneButtonClicked",onToolbarScreenshareButtonClicked:"onToolbarScreenshareButtonClicked",onToolbarFullscreenButtonClicked:"onToolbarFullscreenButtonClicked",onToolbarParticipantsPanelButtonClicked:"onToolbarParticipantsPanelButtonClicked",onToolbarChatPanelButtonClicked:"onToolbarChatPanelButtonClicked",onToolbarActivitiesPanelButtonClicked:"onToolbarActivitiesPanelButtonClicked",onToolbarStartRecordingClicked:"onToolbarStartRecordingClicked",onToolbarStopRecordingClicked:"onToolbarStopRecordingClicked",onActivitiesPanelStartRecordingClicked:"onActivitiesPanelStartRecordingClicked",onActivitiesPanelStopRecordingClicked:"onActivitiesPanelStopRecordingClicked",onActivitiesPanelDeleteRecordingClicked:"onActivitiesPanelDeleteRecordingClicked",onActivitiesPanelPlayRecordingClicked:"onActivitiesPanelPlayRecordingClicked",onActivitiesPanelStartBroadcastingClicked:"onActivitiesPanelStartBroadcastingClicked",onActivitiesPanelStopBroadcastingClicked:"onActivitiesPanelStopBroadcastingClicked",onToolbarStopBroadcastingClicked:"onToolbarStopBroadcastingClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated",onNodeCrashed:"onNodeCrashed"},decls:21,vars:4,consts:[["id","call-container"],["id","spinner",4,"ngIf"],["id","pre-join-container",4,"ngIf"],["id","vc-container",4,"ngIf"],["defaultToolbar",""],["defaultPanel",""],["defaultChatPanel",""],["defaultActivitiesPanel",""],["defaultParticipantsPanel",""],["defaultParticipantPanelItem",""],["defaultLayout",""],["defaultStream",""],["id","spinner"],[3,"diameter"],["id","pre-join-container"],[3,"onJoinButtonClicked"],[1,"error-icon"],["id","vc-container"],[3,"onNodeCrashed",4,"ngIf"],[3,"onNodeCrashed"],["toolbar",""],["panel",""],["layout",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["id","default-toolbar",3,"onLeaveButtonClicked","onCameraButtonClicked","onMicrophoneButtonClicked","onScreenshareButtonClicked","onFullscreenButtonClicked","onParticipantsPanelButtonClicked","onChatPanelButtonClicked","onActivitiesPanelButtonClicked","onStartRecordingClicked","onStopRecordingClicked","onStopBroadcastingClicked"],["toolbarAdditionalButtons",""],["toolbarAdditionalPanelButtons",""],["id","default-panel"],["chatPanel",""],["participantsPanel",""],["backgroundEffectsPanel",""],["settingsPanel",""],["activitiesPanel",""],["additionalPanels",""],["id","default-background-effects-panel"],["id","default-settings-panel"],["id","default-chat-panel"],["id","default-activities-panel",3,"onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked","onStartBroadcastingClicked","onStopBroadcastingClicked"],["id","default-participants-panel"],["participantPanelItem",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","default-participant-panel-item",3,"participant"],["participantPanelItemElements",""],["id","default-layout"],["stream",""],["id","default-stream",3,"stream"]],template:function(e,i){1&e&&(O(0,"div",0),X(1,Ine,5,4,"div",1),X(2,Rne,2,1,"div",2),X(3,Pne,5,1,"div",1),X(4,zne,2,2,"div",3),V(),X(5,Qne,5,0,"ng-template",null,4,dn),X(7,sie,13,0,"ng-template",null,5,dn),X(9,aie,1,0,"ng-template",null,6,dn),X(11,lie,1,0,"ng-template",null,7,dn),X(13,die,3,0,"ng-template",null,8,dn),X(15,pie,3,1,"ng-template",null,9,dn),X(17,vie,3,0,"ng-template",null,10,dn),X(19,_ie,1,1,"ng-template",null,11,dn)),2&e&&(A(1),U("ngIf",i.loading),A(1),U("ngIf",i.showPrejoin&&i.participantReady&&!i.loading),A(1),U("ngIf",!i.loading&&i.error),A(1),U("ngIf",i.showVideoconference||!i.showPrejoin&&!i.loading&&!i.error))},dependencies:[Zt,ls,oi,or,wP,gy,mP,_P,my,vP,_y,fy,MP,yy,Cy,OP,Un],styles:["#call-container[_ngcontent-%COMP%], #vc-container[_ngcontent-%COMP%]{height:100%}#vc-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color)}#pre-join-container[_ngcontent-%COMP%]{height:inherit}.error-icon[_ngcontent-%COMP%]{color:var(--ov-warn-color)}#spinner[_ngcontent-%COMP%]{position:absolute;inset:40% 0 0;margin:auto;text-align:-webkit-center;text-align:-moz-center;color:var(--ov-panel-text-color)}#call-container[_ngcontent-%COMP%]{--ov-captions-height: 230px}"],data:{animation:[qi("inOutAnimation",[Vn(":enter",[kt({opacity:0}),$n("300ms ease-out",kt({opacity:1}))])])]}}),t})(),ooe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingActivityValue=!0}set activitiesPanelRecordingActivity(e){this.recordingActivityValue=e,this.update(this.recordingActivityValue)}set recordingActivity(e){this.recordingActivityValue=e,this.update(this.recordingActivityValue)}ngAfterViewInit(){this.update(this.recordingActivityValue)}ngOnDestroy(){this.clear()}clear(){this.recordingActivityValue=!0,this.update(!0)}update(e){this.libService.recordingActivity.getValue()!==e&&this.libService.recordingActivity.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","activitiesPanelRecordingActivity",""],["ov-activities-panel","recordingActivity",""]],inputs:{activitiesPanelRecordingActivity:"activitiesPanelRecordingActivity",recordingActivity:"recordingActivity"}}),t})(),roe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.broadcastingActivityValue=!0}set activitiesPanelBroadcastingActivity(e){this.broadcastingActivityValue=e,this.update(this.broadcastingActivityValue)}set broadcastingActivity(e){this.broadcastingActivityValue=e,this.update(this.broadcastingActivityValue)}ngAfterViewInit(){this.update(this.broadcastingActivityValue)}ngOnDestroy(){this.clear()}clear(){this.broadcastingActivityValue=!0,this.update(!0)}update(e){this.libService.broadcastingActivity.getValue()!==e&&this.libService.broadcastingActivity.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","activitiesPanelBroadcastingActivity",""],["ov-activities-panel","broadcastingActivity",""]],inputs:{activitiesPanelBroadcastingActivity:"activitiesPanelBroadcastingActivity",broadcastingActivity:"broadcastingActivity"}}),t})(),soe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.broadcastingErrorValue=void 0}set broadcastingActivityBroadcastingError(e){this.broadcastingErrorValue=e,this.update(this.broadcastingErrorValue)}set broadcastingError(e){this.broadcastingErrorValue=e,this.update(this.broadcastingErrorValue)}ngAfterViewInit(){this.update(this.broadcastingErrorValue)}ngOnDestroy(){this.clear()}clear(){this.broadcastingErrorValue=void 0,this.update(void 0)}update(e){this.libService.broadcastingError.getValue()!==e&&this.libService.broadcastingError.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","broadcastingActivityBroadcastingError",""],["ov-broadcasting-activity","broadcastingError",""]],inputs:{broadcastingActivityBroadcastingError:"broadcastingActivityBroadcastingError",broadcastingError:"broadcastingError"}}),t})(),aoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.muteValue=!0}set participantPanelItemMuteButton(e){this.muteValue=e,this.update(this.muteValue)}set muteButton(e){this.muteValue=e,this.update(this.muteValue)}ngAfterViewInit(){this.update(this.muteValue)}ngOnDestroy(){this.clear()}clear(){this.muteValue=!0,this.update(!0)}update(e){this.libService.participantItemMuteButton.getValue()!==e&&this.libService.participantItemMuteButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","participantPanelItemMuteButton",""],["ov-participant-panel-item","muteButton",""]],inputs:{participantPanelItemMuteButton:"participantPanelItemMuteButton",muteButton:"muteButton"}}),t})(),loe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingsValue=[]}set recordingActivityRecordingsList(e){this.recordingsValue=e,this.update(this.recordingsValue)}set recordingsList(e){this.recordingsValue=e,this.update(this.recordingsValue)}ngAfterViewInit(){this.update(this.recordingsValue)}ngOnDestroy(){this.clear()}clear(){this.recordingsValue=[],this.update([])}update(e){this.libService.recordingsList.getValue()!==e&&this.libService.recordingsList.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","recordingActivityRecordingsList",""],["ov-recording-activity","recordingsList",""]],inputs:{recordingActivityRecordingsList:"recordingActivityRecordingsList",recordingsList:"recordingsList"}}),t})(),coe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingErrorValue=null}set recordingActivityRecordingError(e){this.recordingErrorValue=e,this.update(this.recordingErrorValue)}set recordingError(e){this.recordingErrorValue=e,this.update(this.recordingErrorValue)}ngAfterViewInit(){this.update(this.recordingErrorValue)}ngOnDestroy(){this.clear()}clear(){this.recordingErrorValue=null,this.update(null)}update(e){this.libService.recordingError.getValue()!==e&&this.libService.recordingError.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","recordingActivityRecordingError",""],["ov-recording-activity","recordingError",""]],inputs:{recordingActivityRecordingError:"recordingActivityRecordingError",recordingError:"recordingError"}}),t})(),uoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.screenshareValue=!0}set toolbarScreenshareButton(e){this.screenshareValue=e,this.update(this.screenshareValue)}set screenshareButton(e){this.screenshareValue=e,this.update(this.screenshareValue)}ngAfterViewInit(){this.update(this.screenshareValue)}ngOnDestroy(){this.clear()}clear(){this.screenshareValue=!0,this.update(!0)}update(e){this.libService.screenshareButton.getValue()!==e&&this.libService.screenshareButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarScreenshareButton",""],["ov-toolbar","screenshareButton",""]],inputs:{toolbarScreenshareButton:"toolbarScreenshareButton",screenshareButton:"screenshareButton"}}),t})(),doe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingValue=!0}set toolbarRecordingButton(e){this.recordingValue=e,this.update(this.recordingValue)}set recordingButton(e){this.recordingValue=e,this.update(this.recordingValue)}ngAfterViewInit(){this.update(this.recordingValue)}ngOnDestroy(){this.clear()}clear(){this.recordingValue=!0,this.update(!0)}update(e){this.libService.recordingButton.getValue()!==e&&this.libService.recordingButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarRecordingButton",""],["ov-toolbar","recordingButton",""]],inputs:{toolbarRecordingButton:"toolbarRecordingButton",recordingButton:"recordingButton"}}),t})(),hoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.broadcastingValue=!0}set toolbarBroadcastingButton(e){this.broadcastingValue=e,this.update(this.broadcastingValue)}set broadcastingButton(e){this.broadcastingValue=e,this.update(this.broadcastingValue)}ngAfterViewInit(){this.update(this.broadcastingValue)}ngOnDestroy(){this.clear()}clear(){this.broadcastingValue=!0,this.update(!0)}update(e){this.libService.broadcastingButton.getValue()!==e&&this.libService.broadcastingButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarBroadcastingButton",""],["ov-toolbar","broadcastingButton",""]],inputs:{toolbarBroadcastingButton:"toolbarBroadcastingButton",broadcastingButton:"broadcastingButton"}}),t})(),foe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.fullscreenValue=!0}set toolbarFullscreenButton(e){this.fullscreenValue=e,this.update(this.fullscreenValue)}set fullscreenButton(e){this.fullscreenValue=e,this.update(this.fullscreenValue)}ngAfterViewInit(){this.update(this.fullscreenValue)}ngOnDestroy(){this.clear()}clear(){this.fullscreenValue=!0,this.update(!0)}update(e){this.libService.fullscreenButton.getValue()!==e&&this.libService.fullscreenButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarFullscreenButton",""],["ov-toolbar","fullscreenButton",""]],inputs:{toolbarFullscreenButton:"toolbarFullscreenButton",fullscreenButton:"fullscreenButton"}}),t})(),poe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.backgroundEffectsValue=!0}set toolbarBackgroundEffectsButton(e){this.backgroundEffectsValue=e,this.update(this.backgroundEffectsValue)}set backgroundEffectsButton(e){this.backgroundEffectsValue=e,this.update(this.backgroundEffectsValue)}ngAfterViewInit(){this.update(this.backgroundEffectsValue)}ngOnDestroy(){this.clear()}clear(){this.backgroundEffectsValue=!0,this.update(!0)}update(e){this.libService.backgroundEffectsButton.getValue()!==e&&this.libService.backgroundEffectsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarBackgroundEffectsButton",""],["ov-toolbar","backgroundEffectsButton",""]],inputs:{toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",backgroundEffectsButton:"backgroundEffectsButton"}}),t})(),goe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.captionsButtonValue=!0}set toolbarCaptionsButton(e){this.captionsButtonValue=e,this.update(this.captionsButtonValue)}set captionsButton(e){this.captionsButtonValue=e,this.update(this.captionsButtonValue)}ngAfterViewInit(){this.update(this.captionsButtonValue)}ngOnDestroy(){this.clear()}clear(){this.captionsButtonValue=!0,this.update(!0)}update(e){this.libService.captionsButton.getValue()!==e&&this.libService.captionsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarCaptionsButton",""],["ov-toolbar","captionsButton",""]],inputs:{toolbarCaptionsButton:"toolbarCaptionsButton",captionsButton:"captionsButton"}}),t})(),moe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.settingsValue=!0}set toolbarSettingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}set settingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}ngAfterViewInit(){this.update(this.settingsValue)}ngOnDestroy(){this.clear()}clear(){this.settingsValue=!0,this.update(!0)}update(e){this.libService.toolbarSettingsButton.getValue()!==e&&this.libService.toolbarSettingsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarSettingsButton",""],["ov-toolbar","settingsButton",""]],inputs:{toolbarSettingsButton:"toolbarSettingsButton",settingsButton:"settingsButton"}}),t})(),voe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.leaveValue=!0}set toolbarLeaveButton(e){this.leaveValue=e,this.update(this.leaveValue)}set leaveButton(e){this.leaveValue=e,this.update(this.leaveValue)}ngAfterViewInit(){this.update(this.leaveValue)}ngOnDestroy(){this.clear()}clear(){this.leaveValue=!0,this.update(!0)}update(e){this.libService.leaveButton.getValue()!==e&&this.libService.leaveButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarLeaveButton",""],["ov-toolbar","leaveButton",""]],inputs:{toolbarLeaveButton:"toolbarLeaveButton",leaveButton:"leaveButton"}}),t})(),_oe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.participantsPanelValue=!0}set toolbarParticipantsPanelButton(e){this.participantsPanelValue=e,this.update(this.participantsPanelValue)}set participantsPanelButton(e){this.participantsPanelValue=e,this.update(this.participantsPanelValue)}ngAfterViewInit(){this.update(this.participantsPanelValue)}ngOnDestroy(){this.clear()}clear(){this.participantsPanelValue=!0,this.update(!0)}update(e){this.libService.participantsPanelButton.getValue()!==e&&this.libService.participantsPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarParticipantsPanelButton",""],["ov-toolbar","participantsPanelButton",""]],inputs:{toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",participantsPanelButton:"participantsPanelButton"}}),t})(),boe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.toolbarChatPanelValue=!0}set toolbarChatPanelButton(e){this.toolbarChatPanelValue=e,this.update(this.toolbarChatPanelValue)}set chatPanelButton(e){this.toolbarChatPanelValue=e,this.update(this.toolbarChatPanelValue)}ngAfterViewInit(){this.update(this.toolbarChatPanelValue)}ngOnDestroy(){this.clear()}clear(){this.toolbarChatPanelValue=!0,this.update(!0)}update(e){this.libService.chatPanelButton.getValue()!==e&&this.libService.chatPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarChatPanelButton",""],["ov-toolbar","chatPanelButton",""]],inputs:{toolbarChatPanelButton:"toolbarChatPanelButton",chatPanelButton:"chatPanelButton"}}),t})(),yoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.toolbarActivitiesPanelValue=!0}set toolbarActivitiesPanelButton(e){this.toolbarActivitiesPanelValue=e,this.update(this.toolbarActivitiesPanelValue)}set activitiesPanelButton(e){this.toolbarActivitiesPanelValue=e,this.update(this.toolbarActivitiesPanelValue)}ngAfterViewInit(){this.update(this.toolbarActivitiesPanelValue)}ngOnDestroy(){this.clear()}clear(){this.toolbarActivitiesPanelValue=!0,this.update(!0)}update(e){this.libService.activitiesPanelButton.getValue()!==e&&this.libService.activitiesPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarActivitiesPanelButton",""],["ov-toolbar","activitiesPanelButton",""]],inputs:{toolbarActivitiesPanelButton:"toolbarActivitiesPanelButton",activitiesPanelButton:"activitiesPanelButton"}}),t})(),Coe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.displaySessionValue=!0}set toolbarDisplaySessionName(e){this.displaySessionValue=e,this.update(this.displaySessionValue)}set displaySessionName(e){this.displaySessionValue=e,this.update(this.displaySessionValue)}ngAfterViewInit(){this.update(this.displaySessionValue)}ngOnDestroy(){this.clear()}clear(){this.displaySessionValue=!0,this.update(!0)}update(e){this.libService.displaySessionName.getValue()!==e&&this.libService.displaySessionName.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarDisplaySessionName",""],["ov-toolbar","displaySessionName",""]],inputs:{toolbarDisplaySessionName:"toolbarDisplaySessionName",displaySessionName:"displaySessionName"}}),t})(),Soe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.displayLogoValue=!0}set toolbarDisplayLogo(e){this.displayLogoValue=e,this.update(this.displayLogoValue)}set displayLogo(e){this.displayLogoValue=e,this.update(this.displayLogoValue)}ngAfterViewInit(){this.update(this.displayLogoValue)}ngOnDestroy(){this.clear()}clear(){this.displayLogoValue=!0,this.update(!0)}update(e){this.libService.displayLogo.getValue()!==e&&this.libService.displayLogo.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarDisplayLogo",""],["ov-toolbar","displayLogo",""]],inputs:{toolbarDisplayLogo:"toolbarDisplayLogo",displayLogo:"displayLogo"}}),t})(),Eoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set minimal(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.minimal.getValue()!==e&&this.libService.minimal.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","minimal",""]],inputs:{minimal:"minimal"}}),t})(),Aoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.translateService=i}set lang(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update("en")}update(e){this.translateService.setLanguage(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Ms))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","lang",""]],inputs:{lang:"lang"}}),t})(),woe=(()=>{class t{constructor(e,i){this.elementRef=e,this.captionService=i}set captionsLang(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update("en-US")}update(e){this.captionService.setLanguage(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(rd))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","captionsLang",""]],inputs:{captionsLang:"captionsLang"}}),t})(),Doe=(()=>{class t{constructor(e,i){this.elementRef=e,this.captionService=i}set captionsLangOptions(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(void 0)}update(e){this.captionService.setLanguageOptions(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(rd))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","captionsLangOptions",""]],inputs:{captionsLangOptions:"captionsLangOptions"}}),t})(),Toe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}ngOnInit(){this.update(this.participantName)}ngOnDestroy(){this.clear()}clear(){this.update("")}update(e){this.libService.participantName.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","participantName",""]],inputs:{participantName:"participantName"}}),t})(),Moe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set prejoin(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!0)}update(e){this.libService.prejoin.getValue()!==e&&this.libService.prejoin.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","prejoin",""]],inputs:{prejoin:"prejoin"}}),t})(),xoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set videoMuted(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.videoMuted.getValue()!==e&&this.libService.videoMuted.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","videoMuted",""]],inputs:{videoMuted:"videoMuted"}}),t})(),Ooe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set audioMuted(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.audioMuted.getValue()!==e&&this.libService.audioMuted.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(Mt))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","audioMuted",""]],inputs:{audioMuted:"audioMuted"}}),t})(),IP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),RP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),Ioe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[gT,yM,T6,R6,f8,cW,Uf,Lz,MW,$Y,rX,wQ,I_,vW,mX,sQ,VM,GY,iW,HO,a7,WW,FQ]}),t})(),Roe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[Mt,{provide:"OPENVIDU_ANGULAR_CONFIG",useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[Sr,vy,{provide:xl,useClass:vy},toe,wp,_o,ec,EP,ba,sr,Jl,vi,jo,bo,td],imports:[zi,t8,C6,S6,KZ.forRoot([]),Ioe,RP,IP,zi,RP,IP]}),t})();function Poe(t,n){if(1&t){const e=at();O(0,"ov-videoconference",1),we("onJoinButtonClicked",function(){return Ie(e),Re(ie()._onJoinButtonClicked())})("onToolbarLeaveButtonClicked",function(){return Ie(e),Re(ie()._onToolbarLeaveButtonClicked())})("onToolbarCameraButtonClicked",function(){return Ie(e),Re(ie()._onToolbarCameraButtonClicked())})("onToolbarMicrophoneButtonClicked",function(){return Ie(e),Re(ie()._onToolbarMicrophoneButtonClicked())})("onToolbarScreenshareButtonClicked",function(){return Ie(e),Re(ie()._onToolbarScreenshareButtonClicked())})("onToolbarParticipantsPanelButtonClicked",function(){return Ie(e),Re(ie()._onToolbarParticipantsPanelButtonClicked())})("onToolbarChatPanelButtonClicked",function(){return Ie(e),Re(ie()._onToolbarChatPanelButtonClicked())})("onToolbarActivitiesPanelButtonClicked",function(){return Ie(e),Re(ie()._onToolbarActivitiesPanelButtonClicked())})("onToolbarFullscreenButtonClicked",function(){return Ie(e),Re(ie()._onToolbarFullscreenButtonClicked())})("onToolbarStartRecordingClicked",function(){return Ie(e),Re(ie().onStartRecordingClicked("toolbar"))})("onToolbarStopRecordingClicked",function(){return Ie(e),Re(ie().onStopRecordingClicked("toolbar"))})("onToolbarStopBroadcastingClicked",function(){return Ie(e),Re(ie().onStopBroadcastingClicked("toolbar"))})("onActivitiesPanelStartRecordingClicked",function(){return Ie(e),Re(ie().onStartRecordingClicked("panel"))})("onActivitiesPanelStopRecordingClicked",function(){return Ie(e),Re(ie().onStopRecordingClicked("panel"))})("onActivitiesPanelDownloadRecordingClicked",function(o){return Ie(e),Re(ie()._onActivitiesDownloadRecordingClicked(o))})("onActivitiesPanelDeleteRecordingClicked",function(o){return Ie(e),Re(ie()._onActivitiesDeleteRecordingClicked(o))})("onActivitiesPanelStartBroadcastingClicked",function(o){return Ie(e),Re(ie().onStartBroadcastingClicked(o))})("onActivitiesPanelStopBroadcastingClicked",function(){return Ie(e),Re(ie().onStopBroadcastingClicked("panel"))})("onSessionCreated",function(o){return Ie(e),Re(ie()._onSessionCreated(o))})("onParticipantCreated",function(o){return Ie(e),Re(ie()._onParticipantCreated(o))}),V()}if(2&t){const e=ie();U("participantName",e._participantName)("tokens",e._tokens)("minimal",e._minimal)("lang",e._lang)("captionsLang",e._captionsLang)("captionsLangOptions",e._captionsLangOptions)("prejoin",e._prejoin)("videoMuted",e._videoMuted)("audioMuted",e._audioMuted)("toolbarScreenshareButton",e._toolbarScreenshareButton)("toolbarRecordingButton",e._toolbarRecordingButton)("toolbarBroadcastingButton",e._toolbarBroadcastingButton)("toolbarFullscreenButton",e._toolbarFullscreenButton)("toolbarBackgroundEffectsButton",e._toolbarBackgroundEffectsButton)("toolbarSettingsButton",e._toolbarSettingsButton)("toolbarLeaveButton",e._toolbarLeaveButton)("toolbarActivitiesPanelButton",e._toolbarActivitiesPanelButton)("toolbarChatPanelButton",e._toolbarChatPanelButton)("toolbarParticipantsPanelButton",e._toolbarParticipantsPanelButton)("toolbarDisplayLogo",e._toolbarDisplayLogo)("toolbarDisplaySessionName",e._toolbarDisplaySessionName)("toolbarCaptionsButton",e._toolbarCaptionsButton)("streamDisplayParticipantName",e._streamDisplayParticipantName)("streamDisplayAudioDetection",e._streamDisplayAudioDetection)("streamSettingsButton",e._streamSettingsButton)("participantPanelItemMuteButton",e._participantPanelItemMuteButton)("activitiesPanelRecordingActivity",e._activitiesPanelRecordingActivity)("activitiesPanelBroadcastingActivity",e._activitiesPanelBroadcastingActivity)("recordingActivityRecordingsList",e._recordingActivityRecordingsList)("recordingActivityRecordingError",e._recordingActivityRecordingError)("broadcastingActivityBroadcastingInfo",e._broadcastingActivityBroadcastingInfo)("broadcastingActivityBroadcastingError",e._broadcastingActivityBroadcastingError)}}let koe=(()=>{class t{constructor(e,i){this.host=e,this.openviduService=i,this._minimal=!1,this._lang="",this._captionsLang="",this._prejoin=!0,this._videoMuted=!1,this._audioMuted=!1,this._toolbarScreenshareButton=!0,this._toolbarRecordingButton=!0,this._toolbarBroadcastingButton=!0,this._toolbarFullscreenButton=!0,this._toolbarBackgroundEffectsButton=!0,this._toolbarSettingsButton=!0,this._toolbarLeaveButton=!0,this._toolbarChatPanelButton=!0,this._toolbarActivitiesPanelButton=!0,this._toolbarParticipantsPanelButton=!0,this._toolbarDisplayLogo=!0,this._toolbarDisplaySessionName=!0,this._toolbarCaptionsButton=!0,this._streamDisplayParticipantName=!0,this._streamDisplayAudioDetection=!0,this._streamSettingsButton=!0,this._participantPanelItemMuteButton=!0,this._recordingActivityRecordingError=null,this._activitiesPanelRecordingActivity=!0,this._activitiesPanelBroadcastingActivity=!0,this._recordingActivityRecordingsList=[],this.onJoinButtonClicked=new Ee,this.onToolbarLeaveButtonClicked=new Ee,this.onToolbarCameraButtonClicked=new Ee,this.onToolbarMicrophoneButtonClicked=new Ee,this.onToolbarScreenshareButtonClicked=new Ee,this.onToolbarFullscreenButtonClicked=new Ee,this.onToolbarParticipantsPanelButtonClicked=new Ee,this.onToolbarChatPanelButtonClicked=new Ee,this.onToolbarActivitiesPanelButtonClicked=new Ee,this.onToolbarStartRecordingClicked=new Ee,this.onToolbarStopRecordingClicked=new Ee,this.onToolbarStopBroadcastingClicked=new Ee,this.onActivitiesPanelStartRecordingClicked=new Ee,this.onActivitiesPanelStopRecordingClicked=new Ee,this.onActivitiesPanelDownloadRecordingClicked=new Ee,this.onActivitiesPanelDeleteRecordingClicked=new Ee,this.onActivitiesPanelStartBroadcastingClicked=new Ee,this.onActivitiesPanelStopBroadcastingClicked=new Ee,this.onSessionCreated=new Ee,this.onParticipantCreated=new Ee,this.success=!1,this.host.nativeElement.disconnect=this.disconnect.bind(this)}set minimal(e){this._minimal=this.castToBoolean(e)}set lang(e){this._lang=e}set captionsLang(e){this._captionsLang=e}set captionsLangOptions(e){this._captionsLangOptions=this.castToArray(e)}set participantName(e){this._participantName=e}set prejoin(e){this._prejoin=this.castToBoolean(e)}set videoMuted(e){this._videoMuted=this.castToBoolean(e)}set audioMuted(e){this._audioMuted=this.castToBoolean(e)}set toolbarScreenshareButton(e){this._toolbarScreenshareButton=this.castToBoolean(e)}set toolbarRecordingButton(e){this._toolbarRecordingButton=this.castToBoolean(e)}set toolbarBroadcastingButton(e){this._toolbarBroadcastingButton=this.castToBoolean(e)}set toolbarFullscreenButton(e){this._toolbarFullscreenButton=this.castToBoolean(e)}set toolbarBackgroundEffectsButton(e){this._toolbarBackgroundEffectsButton=this.castToBoolean(e)}set toolbarSettingsButton(e){this._toolbarSettingsButton=this.castToBoolean(e)}set toolbarLeaveButton(e){this._toolbarLeaveButton=this.castToBoolean(e)}set toolbarChatPanelButton(e){this._toolbarChatPanelButton=this.castToBoolean(e)}set toolbarActivitiesPanelButton(e){this._toolbarActivitiesPanelButton=this.castToBoolean(e)}set toolbarParticipantsPanelButton(e){this._toolbarParticipantsPanelButton=this.castToBoolean(e)}set toolbarDisplayLogo(e){this._toolbarDisplayLogo=this.castToBoolean(e)}set toolbarDisplaySessionName(e){this._toolbarDisplaySessionName=this.castToBoolean(e)}set toolbarCaptionsButton(e){this._toolbarCaptionsButton=this.castToBoolean(e)}set streamDisplayParticipantName(e){this._streamDisplayParticipantName=this.castToBoolean(e)}set streamDisplayAudioDetection(e){this._streamDisplayAudioDetection=this.castToBoolean(e)}set streamSettingsButton(e){this._streamSettingsButton=this.castToBoolean(e)}set participantPanelItemMuteButton(e){this._participantPanelItemMuteButton=this.castToBoolean(e)}set recordingActivityRecordingError(e){this._recordingActivityRecordingError=e}set activitiesPanelRecordingActivity(e){this._activitiesPanelRecordingActivity=this.castToBoolean(e)}set activitiesPanelBroadcastingActivity(e){this._activitiesPanelBroadcastingActivity=this.castToBoolean(e)}set broadcastingActivityBroadcastingError(e){this._broadcastingActivityBroadcastingError=e}set recordingActivityRecordingsList(e){this._recordingActivityRecordingsList=e}ngOnInit(){}set tokens(e){var i,o;try{this._tokens=this.castToJson(e),this.success=!(null===(i=this._tokens)||void 0===i||!i.webcam||null===(o=this._tokens)||void 0===o||!o.screen)}catch(r){"string"==typeof e&&""!==e?(console.debug("Single token received."),this._tokens={webcam:e},this.success=!0):(console.error(r),console.error("Tokens parameter received is incorrect: ",e),console.error("Session cannot start"))}}_onJoinButtonClicked(){this.onJoinButtonClicked.emit()}_onToolbarLeaveButtonClicked(){this.success=!1,this.onToolbarLeaveButtonClicked.emit()}_onToolbarCameraButtonClicked(){this.onToolbarCameraButtonClicked.emit()}_onToolbarMicrophoneButtonClicked(){this.onToolbarMicrophoneButtonClicked.emit()}_onToolbarScreenshareButtonClicked(){this.onToolbarScreenshareButtonClicked.emit()}_onToolbarParticipantsPanelButtonClicked(){this.onToolbarParticipantsPanelButtonClicked.emit()}_onToolbarChatPanelButtonClicked(){this.onToolbarChatPanelButtonClicked.emit()}_onToolbarActivitiesPanelButtonClicked(){this.onToolbarActivitiesPanelButtonClicked.emit()}_onToolbarFullscreenButtonClicked(){this.onToolbarFullscreenButtonClicked.emit()}onStartRecordingClicked(e){"toolbar"===e?this.onToolbarStartRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStartRecordingClicked.emit()}onStopRecordingClicked(e){"toolbar"===e?this.onToolbarStopRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStopRecordingClicked.emit()}_onActivitiesDownloadRecordingClicked(e){this.onActivitiesPanelDownloadRecordingClicked.emit(e)}_onActivitiesDeleteRecordingClicked(e){this.onActivitiesPanelDeleteRecordingClicked.emit(e)}onStartBroadcastingClicked(e){this.onActivitiesPanelStartBroadcastingClicked.emit(e)}onStopBroadcastingClicked(e){"toolbar"===e?this.onToolbarStopBroadcastingClicked.emit():"panel"===e&&this.onActivitiesPanelStopBroadcastingClicked.emit()}_onSessionCreated(e){this.onSessionCreated.emit(e)}_onParticipantCreated(e){this.onParticipantCreated.emit(e)}disconnect(){this.openviduService.disconnect()}castToBoolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"!==e&&"false"!==e)throw new Error("Parameter has an incorrect string value.");return"true"===e}throw new Error("Parameter has not a valid type. The parameters must to be string or boolean.")}castToJson(e){if("string"!=typeof e){if("object"==typeof e)return e;throw new Error("Parameter has not a valid type. The parameters must to be string or TokenModel {webcam:string, screen: string}.")}try{return JSON.parse(e)}catch(i){throw"Unexpected JSON"+i}}castToArray(e){if("string"!=typeof e){if("object"==typeof e&&e.length>0)return e;throw new Error("Parameter has not a valid type. The parameters must to be string or CaptionsLangOptions [] [{name:string, ISO: string}].")}try{return JSON.parse(e)}catch(i){throw"Unexpected JSON"+i}}}return t.\u0275fac=function(e){return new(e||t)(h(ke),h(bo))},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],inputs:{minimal:"minimal",lang:"lang",captionsLang:"captionsLang",captionsLangOptions:"captionsLangOptions",participantName:"participantName",prejoin:"prejoin",videoMuted:"videoMuted",audioMuted:"audioMuted",toolbarScreenshareButton:"toolbarScreenshareButton",toolbarRecordingButton:"toolbarRecordingButton",toolbarBroadcastingButton:"toolbarBroadcastingButton",toolbarFullscreenButton:"toolbarFullscreenButton",toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",toolbarSettingsButton:"toolbarSettingsButton",toolbarLeaveButton:"toolbarLeaveButton",toolbarChatPanelButton:"toolbarChatPanelButton",toolbarActivitiesPanelButton:"toolbarActivitiesPanelButton",toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",toolbarDisplayLogo:"toolbarDisplayLogo",toolbarDisplaySessionName:"toolbarDisplaySessionName",toolbarCaptionsButton:"toolbarCaptionsButton",streamDisplayParticipantName:"streamDisplayParticipantName",streamDisplayAudioDetection:"streamDisplayAudioDetection",streamSettingsButton:"streamSettingsButton",participantPanelItemMuteButton:"participantPanelItemMuteButton",recordingActivityRecordingError:"recordingActivityRecordingError",activitiesPanelRecordingActivity:"activitiesPanelRecordingActivity",activitiesPanelBroadcastingActivity:"activitiesPanelBroadcastingActivity",broadcastingActivityBroadcastingError:"broadcastingActivityBroadcastingError",recordingActivityRecordingsList:"recordingActivityRecordingsList",tokens:"tokens"},outputs:{onJoinButtonClicked:"onJoinButtonClicked",onToolbarLeaveButtonClicked:"onToolbarLeaveButtonClicked",onToolbarCameraButtonClicked:"onToolbarCameraButtonClicked",onToolbarMicrophoneButtonClicked:"onToolbarMicrophoneButtonClicked",onToolbarScreenshareButtonClicked:"onToolbarScreenshareButtonClicked",onToolbarFullscreenButtonClicked:"onToolbarFullscreenButtonClicked",onToolbarParticipantsPanelButtonClicked:"onToolbarParticipantsPanelButtonClicked",onToolbarChatPanelButtonClicked:"onToolbarChatPanelButtonClicked",onToolbarActivitiesPanelButtonClicked:"onToolbarActivitiesPanelButtonClicked",onToolbarStartRecordingClicked:"onToolbarStartRecordingClicked",onToolbarStopRecordingClicked:"onToolbarStopRecordingClicked",onToolbarStopBroadcastingClicked:"onToolbarStopBroadcastingClicked",onActivitiesPanelStartRecordingClicked:"onActivitiesPanelStartRecordingClicked",onActivitiesPanelStopRecordingClicked:"onActivitiesPanelStopRecordingClicked",onActivitiesPanelDownloadRecordingClicked:"onActivitiesPanelDownloadRecordingClicked",onActivitiesPanelDeleteRecordingClicked:"onActivitiesPanelDeleteRecordingClicked",onActivitiesPanelStartBroadcastingClicked:"onActivitiesPanelStartBroadcastingClicked",onActivitiesPanelStopBroadcastingClicked:"onActivitiesPanelStopBroadcastingClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated"},decls:1,vars:1,consts:[[3,"participantName","tokens","minimal","lang","captionsLang","captionsLangOptions","prejoin","videoMuted","audioMuted","toolbarScreenshareButton","toolbarRecordingButton","toolbarBroadcastingButton","toolbarFullscreenButton","toolbarBackgroundEffectsButton","toolbarSettingsButton","toolbarLeaveButton","toolbarActivitiesPanelButton","toolbarChatPanelButton","toolbarParticipantsPanelButton","toolbarDisplayLogo","toolbarDisplaySessionName","toolbarCaptionsButton","streamDisplayParticipantName","streamDisplayAudioDetection","streamSettingsButton","participantPanelItemMuteButton","activitiesPanelRecordingActivity","activitiesPanelBroadcastingActivity","recordingActivityRecordingsList","recordingActivityRecordingError","broadcastingActivityBroadcastingInfo","broadcastingActivityBroadcastingError","onJoinButtonClicked","onToolbarLeaveButtonClicked","onToolbarCameraButtonClicked","onToolbarMicrophoneButtonClicked","onToolbarScreenshareButtonClicked","onToolbarParticipantsPanelButtonClicked","onToolbarChatPanelButtonClicked","onToolbarActivitiesPanelButtonClicked","onToolbarFullscreenButtonClicked","onToolbarStartRecordingClicked","onToolbarStopRecordingClicked","onToolbarStopBroadcastingClicked","onActivitiesPanelStartRecordingClicked","onActivitiesPanelStopRecordingClicked","onActivitiesPanelDownloadRecordingClicked","onActivitiesPanelDeleteRecordingClicked","onActivitiesPanelStartBroadcastingClicked","onActivitiesPanelStopBroadcastingClicked","onSessionCreated","onParticipantCreated",4,"ngIf"],[3,"participantName","tokens","minimal","lang","captionsLang","captionsLangOptions","prejoin","videoMuted","audioMuted","toolbarScreenshareButton","toolbarRecordingButton","toolbarBroadcastingButton","toolbarFullscreenButton","toolbarBackgroundEffectsButton","toolbarSettingsButton","toolbarLeaveButton","toolbarActivitiesPanelButton","toolbarChatPanelButton","toolbarParticipantsPanelButton","toolbarDisplayLogo","toolbarDisplaySessionName","toolbarCaptionsButton","streamDisplayParticipantName","streamDisplayAudioDetection","streamSettingsButton","participantPanelItemMuteButton","activitiesPanelRecordingActivity","activitiesPanelBroadcastingActivity","recordingActivityRecordingsList","recordingActivityRecordingError","broadcastingActivityBroadcastingInfo","broadcastingActivityBroadcastingError","onJoinButtonClicked","onToolbarLeaveButtonClicked","onToolbarCameraButtonClicked","onToolbarMicrophoneButtonClicked","onToolbarScreenshareButtonClicked","onToolbarParticipantsPanelButtonClicked","onToolbarChatPanelButtonClicked","onToolbarActivitiesPanelButtonClicked","onToolbarFullscreenButtonClicked","onToolbarStartRecordingClicked","onToolbarStopRecordingClicked","onToolbarStopBroadcastingClicked","onActivitiesPanelStartRecordingClicked","onActivitiesPanelStopRecordingClicked","onActivitiesPanelDownloadRecordingClicked","onActivitiesPanelDeleteRecordingClicked","onActivitiesPanelStartBroadcastingClicked","onActivitiesPanelStopBroadcastingClicked","onSessionCreated","onParticipantCreated"]],template:function(e,i){1&e&&X(0,Poe,1,32,"ov-videoconference",0),2&e&&U("ngIf",i.success)},dependencies:[Zt,Dy,Eoe,Aoe,Doe,woe,Moe,xoe,Ooe,uoe,foe,poe,goe,voe,doe,hoe,_oe,boe,yoe,Coe,Soe,moe,DP,eoe,TP,aoe,Toe,ooe,roe,loe,coe,soe],encapsulation:2}),t})();const PP={production:!0};class Noe extends ce{constructor(n=1/0,e=1/0,i=u_){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;e||(i.push(n),!o&&i.push(r.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!n.closed;s+=i?1:2)n.next(r[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){const{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:o}=this,r=(o?1:2)*n;if(n<1/0&&r<i.length&&i.splice(0,i.length-r),!o){const s=e.now();let a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}}const Dp={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return Dp.schedule(t,0);if(void 0===window.requestAnimationFrame)return Dp.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let Ty;function zoe(t,n,e){let i=e;return function Foe(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((o,r)=>!("*"===o||!function Voe(t,n){if(!Ty){const e=Element.prototype;Ty=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Ty.call(t,n)}(t,o)||(i=r,0))),i}class Woe{constructor(n,e){this.componentFactory=e.get(Or).resolveComponentFactory(n)}create(n){return new $oe(this.componentFactory,n)}}class $oe{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new Noe(1),this.events=this.eventEmitters.pipe(Pi(i=>Ni(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(lt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Dp.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function joe(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=_n.create({providers:[],parent:this.injector}),i=function Goe(t,n){const e=t.childNodes,i=n.map(()=>[]);let o=-1;n.some((r,s)=>"*"===r&&(o=s,!0));for(let r=0,s=e.length;r<s;++r){const a=e[r],l=zoe(a,n,o);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Vt),this.implementsOnChanges=function Boe(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Gs).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>n.instance[i].pipe(Ue(s=>({name:o,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Dp.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const o=this.unchangedInputs.has(n),r=o?void 0:this.getInputValue(n);this.inputChanges[n]=new oC(r,e,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class Yoe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let Koe=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function Qoe(t,n){const e=function Hoe(t,n){return n.get(Or).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new Woe(t,n.injector),o=function Uoe(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function Loe(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends Yoe{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(o[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(o),e.forEach(({propName:s})=>{Object.defineProperty(r.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),r}(koe,{injector:this.injector});customElements.define("openvidu-webcomponent",e)}}return t.\u0275fac=function(e){return new(e||t)(oe(_n))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[{provide:sv,useValue:"/"},Dy],imports:[zi,SD,gT,Roe.forRoot(PP)]}),t})();PP.production&&function z3(){Cw=!1}(),cU().bootstrapModule(Koe).catch(t=>console.error(t))},9069:Ae=>{"use strict";var N,P="object"==typeof Reflect?Reflect:null,B=P&&"function"==typeof P.apply?P.apply:function(Z,M,p){return Function.prototype.apply.call(Z,M,p)};N=P&&"function"==typeof P.ownKeys?P.ownKeys:Object.getOwnPropertySymbols?function(Z){return Object.getOwnPropertyNames(Z).concat(Object.getOwnPropertySymbols(Z))}:function(Z){return Object.getOwnPropertyNames(Z)};var j=Number.isNaN||function(Z){return Z!=Z};function y(){y.init.call(this)}Ae.exports=y,Ae.exports.once=function W(F,Z){return new Promise(function(M,p){function k(T){F.removeListener(Z,te),p(T)}function te(){"function"==typeof F.removeListener&&F.removeListener("error",k),M([].slice.call(arguments))}v(F,Z,te,{once:!0}),"error"!==Z&&function E(F,Z,M){"function"==typeof F.on&&v(F,"error",Z,M)}(F,k,{once:!0})})},y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var b=10;function S(F){if("function"!=typeof F)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof F)}function _(F){return void 0===F._maxListeners?y.defaultMaxListeners:F._maxListeners}function m(F,Z,M,p){var k,te,T;if(S(M),void 0===(te=F._events)?(te=F._events=Object.create(null),F._eventsCount=0):(void 0!==te.newListener&&(F.emit("newListener",Z,M.listener?M.listener:M),te=F._events),T=te[Z]),void 0===T)T=te[Z]=M,++F._eventsCount;else if("function"==typeof T?T=te[Z]=p?[M,T]:[T,M]:p?T.unshift(M):T.push(M),(k=_(F))>0&&T.length>k&&!T.warned){T.warned=!0;var R=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(Z)+" listeners added. Use emitter.setMaxListeners() to increase limit");R.name="MaxListenersExceededWarning",R.emitter=F,R.type=Z,R.count=T.length,function $(F){console&&console.warn&&console.warn(F)}(R)}return F}function D(){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 C(F,Z,M){var p={fired:!1,wrapFn:void 0,target:F,type:Z,listener:M},k=D.bind(p);return k.listener=M,p.wrapFn=k,k}function q(F,Z,M){var p=F._events;if(void 0===p)return[];var k=p[Z];return void 0===k?[]:"function"==typeof k?M?[k.listener||k]:[k]:M?function Q(F){for(var Z=new Array(F.length),M=0;M<Z.length;++M)Z[M]=F[M].listener||F[M];return Z}(k):I(k,k.length)}function ee(F){var Z=this._events;if(void 0!==Z){var M=Z[F];if("function"==typeof M)return 1;if(void 0!==M)return M.length}return 0}function I(F,Z){for(var M=new Array(Z),p=0;p<Z;++p)M[p]=F[p];return M}function v(F,Z,M,p){if("function"==typeof F.on)p.once?F.once(Z,M):F.on(Z,M);else{if("function"!=typeof F.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof F);F.addEventListener(Z,function k(te){p.once&&F.removeEventListener(Z,k),M(te)})}}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(F){if("number"!=typeof F||F<0||j(F))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+F+".");b=F}}),y.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},y.prototype.setMaxListeners=function(Z){if("number"!=typeof Z||Z<0||j(Z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Z+".");return this._maxListeners=Z,this},y.prototype.getMaxListeners=function(){return _(this)},y.prototype.emit=function(Z){for(var M=[],p=1;p<arguments.length;p++)M.push(arguments[p]);var k="error"===Z,te=this._events;if(void 0!==te)k=k&&void 0===te.error;else if(!k)return!1;if(k){var T;if(M.length>0&&(T=M[0]),T instanceof Error)throw T;var R=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw R.context=T,R}var J=te[Z];if(void 0===J)return!1;if("function"==typeof J)B(J,this,M);else{var re=J.length,ae=I(J,re);for(p=0;p<re;++p)B(ae[p],this,M)}return!0},y.prototype.on=y.prototype.addListener=function(Z,M){return m(this,Z,M,!1)},y.prototype.prependListener=function(Z,M){return m(this,Z,M,!0)},y.prototype.once=function(Z,M){return S(M),this.on(Z,C(this,Z,M)),this},y.prototype.prependOnceListener=function(Z,M){return S(M),this.prependListener(Z,C(this,Z,M)),this},y.prototype.off=y.prototype.removeListener=function(Z,M){var p,k,te,T,R;if(S(M),void 0===(k=this._events))return this;if(void 0===(p=k[Z]))return this;if(p===M||p.listener===M)0==--this._eventsCount?this._events=Object.create(null):(delete k[Z],k.removeListener&&this.emit("removeListener",Z,p.listener||M));else if("function"!=typeof p){for(te=-1,T=p.length-1;T>=0;T--)if(p[T]===M||p[T].listener===M){R=p[T].listener,te=T;break}if(te<0)return this;0===te?p.shift():function L(F,Z){for(;Z+1<F.length;Z++)F[Z]=F[Z+1];F.pop()}(p,te),1===p.length&&(k[Z]=p[0]),void 0!==k.removeListener&&this.emit("removeListener",Z,R||M)}return this},y.prototype.removeAllListeners=function(Z){var M,p,k;if(void 0===(p=this._events))return this;if(void 0===p.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==p[Z]&&(0==--this._eventsCount?this._events=Object.create(null):delete p[Z]),this;if(0===arguments.length){var T,te=Object.keys(p);for(k=0;k<te.length;++k)"removeListener"!==(T=te[k])&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(M=p[Z]))this.removeListener(Z,M);else if(void 0!==M)for(k=M.length-1;k>=0;k--)this.removeListener(Z,M[k]);return this},y.prototype.listeners=function(Z){return q(this,Z,!0)},y.prototype.rawListeners=function(Z){return q(this,Z,!1)},y.listenerCount=function(F,Z){return"function"==typeof F.listenerCount?F.listenerCount(Z):ee.call(F,Z)},y.prototype.listenerCount=ee,y.prototype.eventNames=function(){return this._eventsCount>0?N(this._events):[]}},4491:(Ae,P,B)=>{"use strict";var N=B(1897);Ae.exports=function(j){var _,y={stun:(j||{}).stun||B(8808),turn:(j||{}).turn||B(4576)},S=(j||{}).turnCount||0;function m(D,C){for(var I,q=[],ee=[].concat(y[D]);ee.length&&q.length<C;)I=Math.random()*ee.length|0,q=q.concat(ee.splice(I,1));return q.map(function(L){return"string"==typeof L||L instanceof String?N(D+":"+L):L})}return _=[].concat(m("stun",(j||{}).stunCount||2)),S&&(_=_.concat(m("turn",S))),_}},5164:(Ae,P,B)=>{var j,N=B(2069);"undefined"!=typeof window&&(j=window.AudioContext||window.webkitAudioContext);var y=null;Ae.exports=function(b,m){var _=new N;if(!j)return _;var Q,W,E,D=(m=m||{}).smoothing||.1,C=m.interval||50,q=m.threshold,ee=m.play,I=m.history||10,L=!0;y=m.audioContext||y||new j,(E=y.createAnalyser()).fftSize=512,E.smoothingTimeConstant=D,W=new Float32Array(E.frequencyBinCount),b.jquery&&(b=b[0]),b instanceof HTMLAudioElement||b instanceof HTMLVideoElement?(Q=y.createMediaElementSource(b),void 0===ee&&(ee=!0),q=q||-50):(Q=y.createMediaStreamSource(b),q=q||-50),Q.connect(E),ee&&E.connect(y.destination),_.speaking=!1,_.suspend=function(){return y.suspend()},_.resume=function(){return y.resume()},Object.defineProperty(_,"state",{get:function(){return y.state}}),y.onstatechange=function(){_.emit("state_change",y.state)},_.setThreshold=function(Z){q=Z},_.setInterval=function(Z){C=Z},_.stop=function(){L=!1,_.emit("volume_change",-100,q),_.speaking&&(_.speaking=!1,_.emit("stopped_speaking")),E.disconnect(),Q.disconnect()},_.speakingHistory=[];for(var v=0;v<I;v++)_.speakingHistory.push(0);var F=function(){setTimeout(function(){if(L){var Z=function $(b,S){var _=-1/0;b.getFloatFrequencyData(S);for(var m=4,D=S.length;m<D;m++)S[m]>_&&S[m]<0&&(_=S[m]);return _}(E,W);_.emit("volume_change",Z,q);var M=0;if(Z>q&&!_.speaking){for(var p=_.speakingHistory.length-3;p<_.speakingHistory.length;p++)M+=_.speakingHistory[p];M>=2&&(_.speaking=!0,_.emit("speaking"))}else if(Z<q&&_.speaking){for(p=0;p<_.speakingHistory.length;p++)M+=_.speakingHistory[p];0==M&&(_.speaking=!1,_.emit("stopped_speaking"))}_.speakingHistory.shift(),_.speakingHistory.push(0+(Z>q)),F()}},C)};return F(),_}},3894:Ae=>{Ae.exports="function"==typeof Object.create?function(B,N){N&&(B.super_=N,B.prototype=Object.create(N.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}))}:function(B,N){if(N){B.super_=N;var $=function(){};$.prototype=N.prototype,B.prototype=new $,B.prototype.constructor=B}}},8659:function(Ae,P){var j,B=this&&this.__extends||(j=function(y,b){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,_){S.__proto__=_}||function(S,_){for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(S[m]=_[m])})(y,b)},function(y,b){function S(){this.constructor=y}j(y,b),y.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)});function N(j){if(!j)return N.__;Array.prototype.reduce||(Array.prototype.reduce=function(S,_){for(var m=_,D=0;D<this.length;D++)m=S(m,this[D],D,this);return m});var y="";return("."+j).split(".").reduce(function(S,_,m,D){y?y+="."+_:y=_;var C=S["__"+y];return void 0===C&&(N.Logger.prototype=S,C=new N.Logger(y),S["__"+y]=C),C},N.__)}(function(j){function y(Y,x,H){if(void 0!==x[Y]){if(null===x[Y])return void delete H[Y];H[Y]=x[Y]}}function b(Y){if(null!=j.enabled&&!j.enabled)return!1;try{if(Y.userAgentRegex&&!new RegExp(Y.userAgentRegex).test(navigator.userAgent))return!1}catch(x){}try{if(Y.ipRegex&&j.clientIP&&!new RegExp(Y.ipRegex).test(j.clientIP))return!1}catch(x){}return!0}function S(Y,x){try{if(Y.disallow&&new RegExp(Y.disallow).test(x))return!1}catch(H){}return!0}function _(Y){return"function"==typeof Y?Y instanceof RegExp?Y.toString():Y():Y}j.requestId="",j.entryId=0,j._createXMLHttpRequest=function(){return new XMLHttpRequest},j._getTime=function(){return(new Date).getTime()},j._console=console,j._appenderNames=[];var m=function Y(x,H,K){this.msg=x,this.meta=H,this.finalString=K};function D(Y){var H,x=_(Y);switch(typeof x){case"string":return new m(x,null,x);case"number":case"boolean":return H=x.toString(),new m(H,null,H);case"undefined":return new m("undefined",null,"undefined");case"object":return x instanceof RegExp||x instanceof String||x instanceof Number||x instanceof Boolean?(H=x.toString(),new m(H,null,H)):(H="function"==typeof j.serialize?j.serialize.call(this,x):JSON.stringify(x),new m("",x,H));default:return new m("unknown",null,"unknown")}}function F(Y){return Y<=1e3?"trace":Y<=2e3?"debug":Y<=3e3?"info":Y<=4e3?"warn":Y<=5e3?"error":"fatal"}j.setOptions=function C(Y){return y("enabled",Y,this),y("maxMessages",Y,this),y("defaultAjaxUrl",Y,this),y("clientIP",Y,this),y("requestId",Y,this),y("defaultBeforeSend",Y,this),y("serialize",Y,this),this},j.getAllLevel=function q(){return-2147483648},j.getTraceLevel=function ee(){return 1e3},j.getDebugLevel=function I(){return 2e3},j.getInfoLevel=function L(){return 3e3},j.getWarnLevel=function Q(){return 4e3},j.getErrorLevel=function W(){return 5e3},j.getFatalLevel=function E(){return 6e3},j.getOffLevel=function v(){return 2147483647};var Z=function Y(x,H){this.inner=H,this.name="JL.Exception",this.message=D(x).finalString};j.Exception=Z,Z.prototype=new Error;var M=function Y(x,H,K,me,le){this.l=x,this.m=H,this.n=K,this.t=me,this.u=le};function p(Y,x,H){return j.entryId++,new M(Y,x,H,j._getTime(),j.entryId)}function k(Y){Y.id&&(clearTimeout(Y.id),Y.id=null)}function te(Y,x,H){var K=this;Y.id||(Y.id=setTimeout(function(){H.call(K)},x))}j.LogItem=M;var T=function(){function Y(x,H){this.appenderName=x,this.sendLogItems=H,this.level=j.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.maxBatchSize=20,this.batchTimeout=2147483647,this.sendTimeout=5e3,this.buffer=[],this.batchBuffer=[],this.batchTimeoutTimer={id:null},this.sendTimeoutTimer={id:null},this.nbrLogItemsSkipped=0,this.nbrLogItemsBeingSent=0;var K="Trying to create an appender without a name or with an empty name";if(null==x)throw K;if(-1!=j._appenderNames.indexOf(x))throw x?"Multiple appenders use the same name "+x:K;j._appenderNames.push(x)}return Y.prototype.addLogItemsToBuffer=function(x){if(this.batchBuffer.length>=this.maxBatchSize)this.nbrLogItemsSkipped+=x.length;else{if(null!=j.maxMessages){if(j.maxMessages<1)return;j.maxMessages-=x.length}this.batchBuffer=this.batchBuffer.concat(x);var H=this;te(this.batchTimeoutTimer,this.batchTimeout,function(){H.sendBatch.call(H)})}},Y.prototype.batchBufferHasOverdueMessages=function(){for(var x=0;x<this.batchBuffer.length;x++)if(j._getTime()-this.batchBuffer[x].t>this.batchTimeout)return!0;return!1},Y.prototype.batchBufferHasStrandedMessage=function(){return null!=j.maxMessages&&j.maxMessages<1&&this.batchBuffer.length>0},Y.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},Y.prototype.onSendingEnded=function(){k(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},Y.prototype.setOptions=function(x){if(y("level",x,this),y("ipRegex",x,this),y("userAgentRegex",x,this),y("disallow",x,this),y("sendWithBufferLevel",x,this),y("storeInBufferLevel",x,this),y("bufferSize",x,this),y("batchSize",x,this),y("maxBatchSize",x,this),y("batchTimeout",x,this),y("sendTimeout",x,this),this.bufferSize<this.buffer.length&&(this.buffer.length=this.bufferSize),this.maxBatchSize<this.batchSize)throw new j.Exception({message:"maxBatchSize cannot be smaller than batchSize",maxBatchSize:this.maxBatchSize,batchSize:this.batchSize});return this},Y.prototype.log=function(x,H,K,me,le,ce,De){var $e;if(b(this)&&S(this,ce)&&!(le<this.storeInBufferLevel)){if($e=p(le,ce,De),le<this.level)return void(this.bufferSize>0&&(this.buffer.push($e),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([$e]),le>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},Y.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(k(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var x=this;te(this.sendTimeoutTimer,this.sendTimeout,function(){x.onSendingEnded.call(x)}),this.sendLogItems(this.batchBuffer,function(){x.batchBuffer.splice(0,x.nbrLogItemsBeingSent),x.nbrLogItemsSkipped>0&&(x.batchBuffer.push(p(4e3,"Lost "+x.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.",x.appenderName)),x.nbrLogItemsSkipped=0),x.onSendingEnded.call(x)})}},Y}();j.Appender=T;var R=function(Y){function x(H){return Y.call(this,H,x.prototype.sendLogItemsAjax)||this}return B(x,Y),x.prototype.setOptions=function(H){return y("url",H,this),y("beforeSend",H,this),Y.prototype.setOptions.call(this,H),this},x.prototype.sendLogItemsAjax=function(H,K){try{if(!b(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=j._createXMLHttpRequest();var me="/jsnlog.logger";null!=j.defaultAjaxUrl&&(me=j.defaultAjaxUrl),this.url&&(me=this.url),this.xhr.open("POST",me),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",j.requestId);var le=this;this.xhr.onreadystatechange=function(){4==le.xhr.readyState&&le.xhr.status>=200&&le.xhr.status<300&&K()};var ce={r:j.requestId,lg:H};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,ce):"function"==typeof j.defaultBeforeSend&&j.defaultBeforeSend.call(this,this.xhr,ce);var De=JSON.stringify(ce);this.xhr.send(De)}catch($e){}},x}(T);j.AjaxAppender=R;var J=function(Y){function x(H){return Y.call(this,H,x.prototype.sendLogItemsConsole)||this}return B(x,Y),x.prototype.clog=function(H){j._console.log(H)},x.prototype.cerror=function(H){j._console.error?j._console.error(H):this.clog(H)},x.prototype.cwarn=function(H){j._console.warn?j._console.warn(H):this.clog(H)},x.prototype.cinfo=function(H){j._console.info?j._console.info(H):this.clog(H)},x.prototype.cdebug=function(H){j._console.debug?j._console.debug(H):this.cinfo(H)},x.prototype.sendLogItemsConsole=function(H,K){try{if(!b(this)||!j._console)return;var me;for(me=0;me<H.length;++me){var le=H[me],ce=le.n+": "+le.m;"undefined"==typeof window&&(ce=new Date(le.t)+" | "+ce),le.l<=j.getDebugLevel()?this.cdebug(ce):le.l<=j.getInfoLevel()?this.cinfo(ce):le.l<=j.getWarnLevel()?this.cwarn(ce):this.cerror(ce)}}catch(De){}K()},x}(T);j.ConsoleAppender=J;var G,re=function(){function Y(x){this.loggerName=x,this.seenRegexes=[]}return Y.prototype.setOptions=function(x){return y("level",x,this),y("userAgentRegex",x,this),y("disallow",x,this),y("ipRegex",x,this),y("appenders",x,this),y("onceOnly",x,this),this.seenRegexes=[],this},Y.prototype.buildExceptionObject=function(x){var H={};return x.stack?H.stack=x.stack:H.e=x,x.message&&(H.message=x.message),x.name&&(H.name=x.name),x.data&&(H.data=x.data),x.inner&&(H.inner=this.buildExceptionObject(x.inner)),H},Y.prototype.log=function(x,H,K){var le,ce,me=0;if(!this.appenders)return this;if(x>=this.level&&b(this)&&(K?(ce=this.buildExceptionObject(K)).logData=_(H):ce=H,S(this,(le=D(ce)).finalString))){if(this.onceOnly)for(me=this.onceOnly.length-1;me>=0;){if(new RegExp(this.onceOnly[me]).test(le.finalString)){if(this.seenRegexes[me])return this;this.seenRegexes[me]=!0}me--}for(le.meta=le.meta||{},me=this.appenders.length-1;me>=0;)this.appenders[me].log(F(x),le.msg,le.meta,function(){},x,le.finalString,this.loggerName),me--}return this},Y.prototype.trace=function(x){return this.log(1e3,x)},Y.prototype.debug=function(x){return this.log(2e3,x)},Y.prototype.info=function(x){return this.log(3e3,x)},Y.prototype.warn=function(x){return this.log(4e3,x)},Y.prototype.error=function(x){return this.log(5e3,x)},Y.prototype.fatal=function(x){return this.log(6e3,x)},Y.prototype.fatalException=function(x,H){return this.log(6e3,x,H)},Y}();j.Logger=re,j.createAjaxAppender=function ae(Y){return new R(Y)},j.createConsoleAppender=function g(Y){return new J(Y)},G="undefined"!=typeof window?new R(""):new J(""),j.__=new j.Logger(""),j.__.setOptions({level:j.getDebugLevel(),appenders:[G]})})(N||(N={})),P.__esModule=!0,P.JL=N,"function"==typeof __jsnlog_configure&&__jsnlog_configure(N),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(j,y,b,S,_){return N("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:j?j.message||j:"",url:y,"line number":b,column:S},_),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(j){N("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:j.reason?j.reason.message:j.message||null},j.reason)})},1897:Ae=>{var P=["stun:","turn:"];Ae.exports=function(B){var $,j,N=(B||{}).url||B,y={};return("string"==typeof N||N instanceof String)&&(N=N.trim(),$=P[P.indexOf(N.slice(0,5))])?(j=(N=N.slice(5)).split("@"),y.username=B.username,y.credential=B.credential,j.length>1&&(N=j[1],j=j[0].split(":"),y.username=j[0],y.credential=(B||{}).credential||j[1]||""),y.url=$+N,y.urls=[y.url],y):B}},7490:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.Connection=void 0;var N=B(2096),$=B(6946),j=B(7507),y=$.OpenViduLogger.getInstance(),b=function(){function S(_,m){this.session=_,this.disposed=!1;var D="'Connection' created ";m.role?(this.localOptions=m,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,D+="(local)"):(this.remoteOptions=m,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),D+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),y.info(D)}return S.prototype.sendIceCandidate=function(_){var m=this;this.disposed?y.warn("Connection ".concat(this.connectionId," disposed when trying to send an ICE candidate. ICE candidate not sent")):(y.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,_),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:_.candidate,sdpMid:_.sdpMid,sdpMLineIndex:_.sdpMLineIndex},function(D,C){D&&(y.error("Error sending ICE candidate: "+JSON.stringify(D)),m.session.emitEvent("exception",[new j.ExceptionEvent(m.session,j.ExceptionEventName.ICE_CANDIDATE_ERROR,m.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",D)]))}))},S.prototype.initRemoteStreams=function(_){var m=this;_.forEach(function(D){var C={id:D.id,createdAt:D.createdAt,connection:m,hasAudio:D.hasAudio,hasVideo:D.hasVideo,audioActive:D.audioActive,videoActive:D.videoActive,typeOfVideo:D.typeOfVideo,frameRate:D.frameRate,videoDimensions:D.videoDimensions?JSON.parse(D.videoDimensions):void 0,filter:D.filter?D.filter:void 0},q=new N.Stream(m.session,C);m.addStream(q)}),y.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},S.prototype.addStream=function(_){_.connection=this,this.stream=_},S.prototype.removeStream=function(){delete this.stream},S.prototype.dispose=function(){this.disposed=!0,this.removeStream()},S}();P.Connection=b},8074:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.EventDispatcher=void 0;var N=B(6946),$=B(940),j=N.OpenViduLogger.getInstance(),y=function(){function b(){this.userHandlerArrowHandler=new WeakMap,this.ee=new $}return b.prototype.onAux=function(S,_,m){var D=function(C){C?j.debug(_,C):j.debug(_),m(C)};return this.userHandlerArrowHandler.set(m,D),this.ee.on(S,D),this},b.prototype.onceAux=function(S,_,m){var D=this,C=function(q){q?j.debug(_,q):j.debug(_),m(q),D.userHandlerArrowHandler.delete(m)};return this.userHandlerArrowHandler.set(m,C),this.ee.once(S,C),this},b.prototype.offAux=function(S,_){if(_){var m=this.userHandlerArrowHandler.get(_);m&&this.ee.off(S,m),this.userHandlerArrowHandler.delete(_)}else this.ee.removeAllListeners(S);return this},b}();P.EventDispatcher=y},4540:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.Filter=void 0;var N=B(2798),$=B(4103),y=B(6946).OpenViduLogger.getInstance(),b=function(){function S(_,m){this.handlers=new Map,this.type=_,this.options=m}return S.prototype.execMethod=function(_,m){var D=this;return new Promise(function(C,q){var ee;y.info("Executing filter method to stream "+D.stream.streamId);var I,L=function(E){y.info("Filter method successfully executed on Stream "+D.stream.streamId);var v=Object.assign({},D.stream.filter);return D.stream.filter.lastExecMethod={method:_,params:I},E&&(D.stream.session.emitEvent("streamPropertyChanged",[new N.StreamPropertyChangedEvent(D.stream.session,D.stream,"filter",D.stream.filter,v,"execFilterMethod")]),D.stream.streamManager.emitEvent("streamPropertyChanged",[new N.StreamPropertyChangedEvent(D.stream.streamManager,D.stream,"filter",D.stream.filter,v,"execFilterMethod")])),C()};if(D.type.startsWith("VB:")){if("string"==typeof m)try{m=JSON.parse(m)}catch(E){return q(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+E))}if(I=m,"update"!==_)return q(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(_,'"')));if(null===(ee=D.stream.virtualBackgroundSinkElements)||void 0===ee||!ee.VB)return q(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));D.stream.virtualBackgroundSinkElements.VB.updateValues(m).then(function(){return L(!1)}).catch(function(E){return q(E.name===$.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new $.OpenViduError(E.name,E.message):new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+E))})}else{var Q=void 0;if("string"!=typeof m)try{Q=JSON.stringify(m)}catch(E){var W="'params' property must be a JSON formatted object";return y.error(W),q(W)}else Q=m;I=Q,D.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:D.stream.streamId,method:_,params:Q},function(E,v){return E?(y.error("Error executing filter method for Stream "+D.stream.streamId,E),q(401===E.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):E)):L(!0)})}})},S.prototype.addEventListener=function(_,m){var D=this;return new Promise(function(C,q){y.info("Adding filter event listener to event "+_+" to stream "+D.stream.streamId),D.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:D.stream.streamId,eventType:_},function(ee,I){return ee?(y.error("Error adding filter event listener to event "+_+"for Stream "+D.stream.streamId,ee),q(401===ee.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):ee)):(D.handlers.set(_,m),y.info("Filter event listener to event "+_+" successfully applied on Stream "+D.stream.streamId),C())})})},S.prototype.removeEventListener=function(_){var m=this;return new Promise(function(D,C){y.info("Removing filter event listener to event "+_+" to stream "+m.stream.streamId),m.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:m.stream.streamId,eventType:_},function(q,ee){return q?(y.error("Error removing filter event listener to event "+_+"for Stream "+m.stream.streamId,q),C(401===q.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):q)):(m.handlers.delete(_),y.info("Filter event listener to event "+_+" successfully removed on Stream "+m.stream.streamId),D())})})},S}();P.Filter=b},4289:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.LocalRecorder=void 0;var S,N=B(5156),$=B(6946),j=B(543),y=B(8946),b=$.OpenViduLogger.getInstance(),_=function(){function m(D){this.stream=D,this.chunks=[],S=j.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=N.LocalRecorderState.READY}return m.prototype.record=function(D){var C=this;return new Promise(function(q,ee){try{if("string"==typeof D||D instanceof String)return ee("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(D,'" }'));if("undefined"==typeof MediaRecorder)throw b.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(C.state!==N.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+C.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");b.log("Starting local recording of stream '"+C.stream.streamId+"' of connection '"+C.connectionId+"'"),D?D.mimeType||(D.mimeType="video/webm"):D={mimeType:"video/webm"},C.mediaRecorder=new MediaRecorder(C.stream.getMediaStream(),D),C.mediaRecorder.start()}catch(I){return ee(I)}return C.mediaRecorder.ondataavailable=function(I){I.data.size>0&&C.chunks.push(I.data)},C.mediaRecorder.onerror=function(I){b.error("MediaRecorder error: ",I)},C.mediaRecorder.onstart=function(){b.log("MediaRecorder started (state="+C.mediaRecorder.state+")")},C.mediaRecorder.onstop=function(){C.onStopDefault()},C.mediaRecorder.onpause=function(){b.log("MediaRecorder paused (state="+C.mediaRecorder.state+")")},C.mediaRecorder.onresume=function(){b.log("MediaRecorder resumed (state="+C.mediaRecorder.state+")")},C.state=N.LocalRecorderState.RECORDING,q()})},m.prototype.stop=function(){var D=this;return new Promise(function(C,q){try{if(D.state===N.LocalRecorderState.READY||D.state===N.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+D.state+"'). Call 'LocalRecorder.start()' before");D.mediaRecorder.onstop=function(){return D.onStopDefault(),C()},D.mediaRecorder.stop()}catch(ee){return q(ee)}})},m.prototype.pause=function(){var D=this;return new Promise(function(C,q){try{return D.state!==N.LocalRecorderState.RECORDING?q(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+D.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(D.mediaRecorder.pause(),D.state=N.LocalRecorderState.PAUSED,C())}catch(ee){return q(ee)}})},m.prototype.resume=function(){var D=this;return new Promise(function(C,q){try{if(D.state!==N.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+D.state+"'). Call 'LocalRecorder.pause()' before");return D.mediaRecorder.resume(),D.state=N.LocalRecorderState.RECORDING,C()}catch(ee){return q(ee)}})},m.prototype.preview=function(D){if(this.state!==N.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,S.isSafariBrowser()&&(this.videoPreview.playsInline=!0),"string"==typeof D){var C=document.getElementById(D);C&&(this.videoPreview=C.appendChild(this.videoPreview))}else this.videoPreview=D.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},m.prototype.clean=function(){var D=this,C=function(){delete D.blob,D.chunks=[],D.state=N.LocalRecorderState.READY};this.state===N.LocalRecorderState.RECORDING||this.state===N.LocalRecorderState.PAUSED?this.stop().then(function(){return C()}).catch(function(){return C()}):C()},m.prototype.download=function(){if(this.state!==N.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var D=document.createElement("a");D.style.display="none",document.body.appendChild(D);var C=globalThis.URL.createObjectURL(this.blob);D.href=C,D.download=this.id+"."+y.getExtension(this.blob.type),D.click(),globalThis.URL.revokeObjectURL(C),document.body.removeChild(D)},m.prototype.getBlob=function(){if(this.state!==N.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},m.prototype.uploadAsBinary=function(D,C){var q=this;return new Promise(function(ee,I){if(q.state!==N.LocalRecorderState.FINISHED)return I(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+q.state+"'). Call 'LocalRecorder.stop()' before"));var L=new XMLHttpRequest;if(L.open("POST",D,!0),"object"==typeof C)for(var Q=0,W=Object.keys(C);Q<W.length;Q++){var E=W[Q];L.setRequestHeader(E,C[E])}L.onreadystatechange=function(){if(4===L.readyState)return"2"===L.status.toString().charAt(0)?ee(L.responseText):I(L.status)},L.send(q.blob)})},m.prototype.uploadAsMultipartfile=function(D,C){var q=this;return new Promise(function(ee,I){if(q.state!==N.LocalRecorderState.FINISHED)return I(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+q.state+"'). Call 'LocalRecorder.stop()' before"));var L=new XMLHttpRequest;if(L.open("POST",D,!0),"object"==typeof C)for(var Q=0,W=Object.keys(C);Q<W.length;Q++){var E=W[Q];L.setRequestHeader(E,C[E])}var v=new FormData;v.append("file",q.blob,q.id+"."+y.getExtension(q.blob.type)),L.onreadystatechange=function(){if(4===L.readyState)return"2"===L.status.toString().charAt(0)?ee(L.responseText):I(L.status)},L.send(v)})},m.prototype.onStopDefault=function(){b.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:this.mediaRecorder.mimeType}),this.chunks=[],this.videoPreviewSrc=globalThis.URL.createObjectURL(this.blob),this.state=N.LocalRecorderState.FINISHED},m}();P.LocalRecorder=_},763:function(Ae,P,B){"use strict";var N=this&&this.__awaiter||function(M,p,k,te){return new(k||(k=Promise))(function(R,J){function re(G){try{g(te.next(G))}catch(Y){J(Y)}}function ae(G){try{g(te.throw(G))}catch(Y){J(Y)}}function g(G){G.done?R(G.value):function T(R){return R instanceof k?R:new k(function(J){J(R)})}(G.value).then(re,ae)}g((te=te.apply(M,p||[])).next())})},$=this&&this.__generator||function(M,p){var te,T,R,J,k={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return J={next:re(0),throw:re(1),return:re(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function re(g){return function(G){return function ae(g){if(te)throw new TypeError("Generator is already executing.");for(;J&&(J=0,g[0]&&(k=0)),k;)try{if(te=1,T&&(R=2&g[0]?T.return:g[0]?T.throw||((R=T.return)&&R.call(T),0):T.next)&&!(R=R.call(T,g[1])).done)return R;switch(T=0,R&&(g=[2&g[0],R.value]),g[0]){case 0:case 1:R=g;break;case 4:return k.label++,{value:g[1],done:!1};case 5:k.label++,T=g[1],g=[0];continue;case 7:g=k.ops.pop(),k.trys.pop();continue;default:if(!(R=(R=k.trys).length>0&&R[R.length-1])&&(6===g[0]||2===g[0])){k=0;continue}if(3===g[0]&&(!R||g[1]>R[0]&&g[1]<R[3])){k.label=g[1];break}if(6===g[0]&&k.label<R[1]){k.label=R[1],R=g;break}if(R&&k.label<R[2]){k.label=R[2],k.ops.push(g);break}R[2]&&k.ops.pop(),k.trys.pop();continue}g=p.call(M,k)}catch(G){g=[6,G],T=0}finally{te=R=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,G])}}};Object.defineProperty(P,"__esModule",{value:!0}),P.OpenVidu=void 0;var F,j=B(4289),y=B(4259),b=B(8402),S=B(1018),_=B(2798),m=B(4103),D=B(6274),C=B(6946),q=B(543),ee=B(4611),I=B(4627),L=B(541),Q=B(940),W=B(3031),E=B(5549),v=C.OpenViduLogger.getInstance(),Z=function(){function M(){var p=this;this.masterNodeHasCrashed=!1,this.publishers=[],this.secret="",this.recorder=!1,this.stt=!1,this.life=-1,this.advancedConfiguration={},this.webrtcStatsInterval=-1,this.sendBrowserLogs=L.OpenViduLoggerConfiguration.disabled,this.isAtLeastPro=!1,this.isEnterprise=!1,this.ee=new Q,F=q.PlatformUtils.getInstance(),this.libraryVersion=E.version,v.info("OpenVidu initialized"),v.info("Platform detected: "+F.getDescription()),v.info("openvidu-browser version: "+this.libraryVersion),(F.isMobileDevice()||F.isReactNative())&&this.onOrientationChanged(function(){p.publishers.forEach(function(k){k.stream.isLocalStreamPublished&&k.stream&&k.stream.hasVideo&&p.sendNewVideoDimensionsIfRequired(k,"deviceRotated",75,10)})})}return M.prototype.initSession=function(){return this.session=new b.Session(this),this.session},M.prototype.initPublisher=function(p,k,te){var T;T=k&&"function"!=typeof k?{audioSource:void 0!==(T=k).audioSource?T.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&T.videoSource instanceof MediaStreamTrack?void 0:void 0!==T.frameRate?T.frameRate:void 0,insertMode:void 0!==T.insertMode?"string"==typeof T.insertMode?D.VideoInsertMode[T.insertMode]:T.insertMode:D.VideoInsertMode.APPEND,mirror:void 0===T.mirror||T.mirror,publishAudio:void 0===T.publishAudio||T.publishAudio,publishVideo:void 0===T.publishVideo||T.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&T.videoSource instanceof MediaStreamTrack?void 0:void 0!==T.resolution?T.resolution:"640x480",videoSource:void 0!==T.videoSource?T.videoSource:void 0,videoSimulcast:T.videoSimulcast,filter:T.filter}:{insertMode:D.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var J,R=new y.Publisher(p,T,this);return k&&"function"==typeof k?J=k:te&&(J=te),R.initialize().then(function(){void 0!==J&&J(void 0),R.emitEvent("accessAllowed",[])}).catch(function(re){void 0!==J&&J(re),R.emitEvent("accessDenied",[re])}),this.publishers.push(R),R},M.prototype.initPublisherAsync=function(p,k){var te=this;return new Promise(function(T,R){var J,re=function(ae){return ae?R(ae):T(J)};J=k?te.initPublisher(p,k,re):te.initPublisher(p,re)})},M.prototype.initLocalRecorder=function(p){return new j.LocalRecorder(p)},M.prototype.checkSystemRequirements=function(){return F.isIPhoneOrIPad()?F.isIOSWithSafari()||F.isChromeMobileBrowser()||F.isFirefoxMobileBrowser()||F.isOperaMobileBrowser()||F.isEdgeMobileBrowser()||F.isIonicIos():F.isChromeBrowser()||F.isChromeMobileBrowser()||F.isFirefoxBrowser()||F.isFirefoxMobileBrowser()||F.isOperaBrowser()||F.isOperaMobileBrowser()||F.isEdgeBrowser()||F.isEdgeMobileBrowser()||F.isSamsungBrowser()||F.isSafariBrowser()||F.isAndroidBrowser()||F.isElectron()||F.isNodeJs()},M.prototype.checkScreenSharingCapabilities=function(){return F.canScreenShare()},M.prototype.getDevices=function(){return new Promise(function(p,k){navigator.mediaDevices.enumerateDevices().then(function(te){var T,R=[];if(!F.isIonicAndroid()||"undefined"==typeof cordova||!(null===(T=null==cordova?void 0:cordova.plugins)||void 0===T?void 0:T.EnumerateDevicesPlugin))return te.forEach(function(J){("audioinput"===J.kind||"videoinput"===J.kind)&&R.push({kind:J.kind,deviceId:J.deviceId,label:J.label})}),p(R);cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then(function(J){var re=[],ae=[],g=[];return re=J.filter(function(G){return"audioinput"===G.kind}),ae=te.filter(function(G){return"videoinput"===G.kind}),g=te.filter(function(G){return"audioinput"===G.kind}),ae.forEach(function(G,Y){R.push(G.label?{kind:G.kind,deviceId:G.deviceId,label:G.label}:{kind:G.kind,deviceId:G.deviceId,label:0===Y?"Front Camera":1===Y?"Back Camera":"Unknown Camera"})}),g.forEach(function(G,Y){if(G.label)R.push({kind:G.kind,deviceId:G.deviceId,label:G.label});else{var x="";switch(Y){case 0:x="Default";break;case 1:var H=re.filter(function(le){return le.label.includes("Built")})[0];x=H?H.label:"Built-in Microphone";break;case 2:var K=re.filter(function(le){return le.label.includes("Wired")})[0];x=K?K.label:"Headset earpiece";break;case 3:var me=re.filter(function(le){return le.label.includes("Bluetooth")})[0];x=me?me.label:"Wireless";break;default:x="Unknown Microphone"}R.push({kind:G.kind,deviceId:G.deviceId,label:x})}}),p(R)})}).catch(function(te){return v.error("Error getting devices",te),k(te)})})},M.prototype.getUserMedia=function(p){var k=this;return new Promise(function(te,T){return N(k,void 0,void 0,function(){var R,J,re,ae,g,G,Y,x,H,K,le,ce,me=this;return $(this,function(De){switch(De.label){case 0:R=function($e,Be){return N(me,void 0,void 0,function(){var ut,Ue,ue;return $(this,function(Yt){switch(Yt.label){case 0:ut={audio:void 0===Be.audio||Be.audio,video:!1},Yt.label=1;case 1:return Yt.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia(ut)];case 2:return Ue=Yt.sent(),$e.addTrack(Ue.getAudioTracks()[0]),[2,te($e)];case 3:return ue=Yt.sent(),$e.getAudioTracks().forEach(function(qe){qe.stop()}),$e.getVideoTracks().forEach(function(qe){qe.stop()}),[2,T(this.generateAudioDeviceError(ue,ut))];case 4:return[2]}})})},De.label=1;case 1:return De.trys.push([1,20,,21]),[4,this.generateMediaConstraints(p)];case 2:return(J=De.sent()).videoTrack&&J.audioTrack||J.audioTrack&&!1===(null===(le=J.constraints)||void 0===le?void 0:le.video)||J.videoTrack&&!1===(null===(ce=J.constraints)||void 0===ce?void 0:ce.audio)?[2,te(this.addAlreadyProvidedTracks(J,new MediaStream))]:[3,3];case 3:if(J.videoTrack&&delete J.constraints.video,J.audioTrack&&delete J.constraints.audio,re=!1,"string"!=typeof p.videoSource)return[3,12];if(!("screen"===p.videoSource||"window"===p.videoSource||F.isElectron()&&p.videoSource.startsWith("screen:")))return[3,12];if(re=!J.audioTrack&&null!==p.audioSource&&!1!==p.audioSource,!navigator.mediaDevices.getDisplayMedia||F.isElectron())return[3,11];De.label=4;case 4:return De.trys.push([4,9,,10]),[4,navigator.mediaDevices.getDisplayMedia({video:!0})];case 5:return G=De.sent(),this.addAlreadyProvidedTracks(J,G),re?[4,R(G,J.constraints)]:[3,7];case 6:return De.sent(),[2];case 7:return[2,te(G)];case 8:return[3,10];case 9:return ae=De.sent(),x=m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,H=ae.toString(),[2,T(new m.OpenViduError(x,H))];case 10:return[3,11];case 11:return[3,12];case 12:g=re?{video:J.constraints.video}:J.constraints,De.label=13;case 13:return De.trys.push([13,18,,19]),[4,navigator.mediaDevices.getUserMedia(g)];case 14:return G=De.sent(),this.addAlreadyProvidedTracks(J,G),re?[4,R(G,J.constraints)]:[3,16];case 15:return De.sent(),[3,17];case 16:return[2,te(G)];case 17:return[3,19];case 18:return Y=De.sent(),x=void 0,H=Y.toString(),[2,T(new m.OpenViduError(x="screen"!==p.videoSource?m.OpenViduErrorName.DEVICE_ACCESS_DENIED:m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,H))];case 19:return[3,21];case 20:return K=De.sent(),T(K),[3,21];case 21:return[2]}})})})},M.prototype.enableProdMode=function(){v.enableProdMode()},M.prototype.setAdvancedConfiguration=function(p){this.advancedConfiguration=p},M.prototype.onOrientationChanged=function(p){globalThis.addEventListener("orientationchange",p)},M.prototype.sendNewVideoDimensionsIfRequired=function(p,k,te,T){var J,re,ae,g,R=this,G=0,Y=(null===(re=null===(J=null==p?void 0:p.stream)||void 0===J?void 0:J.videoDimensions)||void 0===re?void 0:re.width)||0,x=(null===(g=null===(ae=null==p?void 0:p.stream)||void 0===ae?void 0:ae.videoDimensions)||void 0===g?void 0:g.height)||0,H=setInterval(function(){++G>T&&clearTimeout(H),p.getVideoDimensions().then(function(K){(K.width!==Y||K.height!==x)&&(clearTimeout(H),R.sendVideoDimensionsChangedEvent(p,k,Y,x,K.width,K.height))})},te)},M.prototype.sendVideoDimensionsChangedEvent=function(p,k,te,T,R,J){var re=this;p.stream.videoDimensions={width:R||0,height:J||0},this.sendRequest("streamPropertyChanged",{streamId:p.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(p.stream.videoDimensions),reason:k},function(ae,g){ae?v.error("Error sending 'streamPropertyChanged' event",ae):(re.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(re.session,p.stream,"videoDimensions",p.stream.videoDimensions,{width:te,height:T},k)]),p.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(p,p.stream,"videoDimensions",p.stream.videoDimensions,{width:te,height:T},k)]),re.session.sendVideoData(p))})},M.prototype.sendTrackChangedEvent=function(p,k,te,T){var R=this,J={label:k},re={label:te},ae="trackReplaced";p.stream.isLocalStreamPublished?this.sendRequest("streamPropertyChanged",{streamId:p.stream.streamId,property:T,newValue:re,reason:ae},function(g,G){g?v.error("Error sending 'streamPropertyChanged' event",g):(R.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(R.session,p.stream,T,re,J,ae)]),p.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(p,p.stream,T,re,J,ae)]))}):(this.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(this.session,p.stream,T,re,J,ae)]),p.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(p,p.stream,T,re,J,ae)]))},M.prototype.generateMediaConstraints=function(p){var k=this;return new Promise(function(te,T){var R={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},J=p.audioSource,re=p.videoSource;if((null===J||!1===J)&&(R.constraints.audio=!1),(null===re||!1===re)&&(R.constraints.video=!1),!1===R.constraints.audio&&!1===R.constraints.video)return T(new m.OpenViduError(m.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&J instanceof MediaStreamTrack&&(R.audioTrack=J),"undefined"!=typeof MediaStreamTrack&&re instanceof MediaStreamTrack&&(R.videoTrack=re),void 0===J&&(R.constraints.audio=!0),void 0===re&&(R.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==re&&!1!==re){if(p.resolution){var ae=p.resolution.toLowerCase().split("x"),g=Number(ae[0]),G=Number(ae[1]);R.constraints.video={width:{ideal:g},height:{ideal:G}}}p.frameRate&&(R.constraints.video.frameRate={ideal:p.frameRate})}return k.configureDeviceIdOrScreensharing(R,p,te,T),te(R)})},M.prototype.startWs=function(p){var k={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:p,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),broadcastStarted:this.session.onBroadcastStarted.bind(this.session),broadcastStopped:this.session.onBroadcastStopped.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 W.clients.JsonRpcClient(k)},M.prototype.onMasterNodeCrashedNotification=function(p){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},M.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},M.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},M.prototype.sendRequest=function(p,k,te){var T;k&&k instanceof Function&&(te=k,k={}),v.debug('Sending request: {method:"'+p+'", params: '+JSON.stringify(k)+"}"),null===(T=this.jsonRpcClient)||void 0===T||T.send(p,k,te)},M.prototype.getWsUri=function(){return this.wsUri},M.prototype.getSecret=function(){return this.secret},M.prototype.getRecorder=function(){return this.recorder},M.prototype.getStt=function(){return this.stt},M.prototype.generateAudioDeviceError=function(p,k){var te,T;switch("Error"===p.name&&(p.name=p.constructor.name),p.name.toLowerCase()){case"notfounderror":return te=m.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,T=p.toString(),new m.OpenViduError(te,T);case"notallowederror":return te=m.OpenViduErrorName.DEVICE_ACCESS_DENIED,T=p.toString(),new m.OpenViduError(te,T);case"overconstrainederror":return"deviceid"===p.constraint.toLowerCase()?(te=m.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,T="Audio input device with deviceId '"+k.audio.deviceId.exact+"' not found"):(te=m.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,T="Audio input device doesn't support the value passed for constraint '"+p.constraint+"'"),new m.OpenViduError(te,T);case"notreadableerror":return te=m.OpenViduErrorName.DEVICE_ALREADY_IN_USE,T=p.toString(),new m.OpenViduError(te,T);default:return new m.OpenViduError(m.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,p.toString())}},M.prototype.addAlreadyProvidedTracks=function(p,k,te){return p.videoTrack&&(k.addTrack(p.videoTrack),te&&(te.lastVideoTrackConstraints=p.constraints.video?p.constraints.video:p.videoTrack.getConstraints())),p.audioTrack&&k.addTrack(p.audioTrack),k},M.prototype.configureDeviceIdOrScreensharing=function(p,k,te,T){var R=this,J=k.audioSource,re=k.videoSource;if("string"==typeof J&&(p.constraints.audio={deviceId:{exact:J}}),"string"==typeof re){if(this.isScreenShare(re)){if(this.checkScreenSharingCapabilities()){if(F.isElectron()){var g="screen:",Y=re.substr(re.indexOf(g)+g.length);return p.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:Y}},te(p)}if(!this.advancedConfiguration.screenShareChromeExtension||F.isFirefoxBrowser()||F.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return te(p);var x=F.isFirefoxBrowser()||F.isFirefoxMobileBrowser()?k.videoSource:void 0;return void ee.getScreenId(x,function(H,K,me){if(H){if("not-installed"===H){var ce=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,R.advancedConfiguration.screenShareChromeExtension?R.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return v.error(ce),T(ce)}return"installed-disabled"===H?(ce=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),v.error(ce),T(ce)):"permission-denied"===H?(ce=new m.OpenViduError(m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),v.error(ce),T(ce)):(ce=new m.OpenViduError(m.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),v.error(ce),v.error(H),T(ce))}return p.constraints.video=me.video,te(p)})}return void I.getScreenConstraints(function(H,K){if(!(H||K.mandatory&&"screen"===K.mandatory.chromeMediaSource))return p.constraints.video=K,te(p);if("permission-denied"===H||"PermissionDeniedError"===H){var me=new m.OpenViduError(m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return v.error(me),T(me)}var le=R.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();I.getChromeExtensionStatus(le,function(ce){if("installed-disabled"===ce){var De=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return v.error(De),T(De)}if("not-installed"===ce){var $e=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,R.advancedConfiguration.screenShareChromeExtension);return v.error($e),T($e)}})})}var ae=new m.OpenViduError(m.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+F.getName()+" "+F.getVersion());return v.error(ae),T(ae)}this.setVideoSource(p,re)}},M.prototype.setVideoSource=function(p,k){p.constraints.video||(p.constraints.video={}),p.constraints.video.deviceId={exact:k}},M.prototype.disconnectCallback=function(){v.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},M.prototype.reconnectingCallback=function(){v.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},M.prototype.reconnectWebsocketThroughRpcConnectMethod=function(p){var k=this;this.sendRequest("connect",{sessionId:p,reconnect:!0},function(te,T){if(te)if(k.isMasterNodeCrashed())v.warn("Master Node has crashed!");else{v.error(te);var R=function(re,ae){v.warn(ae),k.session.onLostConnection(re),k.jsonRpcClient.close(4101,"Reconnection fault: "+ae)};40007===te.code&&"reconnection error"===te.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===k.life?R("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):k.sendRequest("sessionStatus",{sessionId:k.session.sessionId},function(re,ae){null!=re?console.error("Error checking session status",re):k.life===ae.life?R("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):R("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else k.jsonRpcClient.resetPing(),k.session.onRecoveredConnection()})},M.prototype.reconnectedCallback=function(){if(v.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{v.warn("There was no previous connection when running reconnection callback");var p=new S.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[p]),p.callDefaultBehavior()}else alert("Connection error. Please reload page.")},M.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},M.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof b.Session||(v.warn("Session instance not found"),!1)},M.prototype.isScreenShare=function(p){return"screen"===p||"window"===p||F.isElectron()&&p.startsWith("screen:")},M}();P.OpenVidu=Z},4259:function(Ae,P,B){"use strict";var W,N=this&&this.__extends||(W=function(E,v){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,Z){F.__proto__=Z}||function(F,Z){for(var M in Z)Object.prototype.hasOwnProperty.call(Z,M)&&(F[M]=Z[M])})(E,v)},function(E,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function F(){this.constructor=E}W(E,v),E.prototype=null===v?Object.create(v):(F.prototype=v.prototype,new F)}),$=this&&this.__awaiter||function(W,E,v,F){return new(v||(v=Promise))(function(M,p){function k(R){try{T(F.next(R))}catch(J){p(J)}}function te(R){try{T(F.throw(R))}catch(J){p(J)}}function T(R){R.done?M(R.value):function Z(M){return M instanceof v?M:new v(function(p){p(M)})}(R.value).then(k,te)}T((F=F.apply(W,E||[])).next())})},j=this&&this.__generator||function(W,E){var F,Z,M,p,v={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return p={next:k(0),throw:k(1),return:k(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function k(T){return function(R){return function te(T){if(F)throw new TypeError("Generator is already executing.");for(;p&&(p=0,T[0]&&(v=0)),v;)try{if(F=1,Z&&(M=2&T[0]?Z.return:T[0]?Z.throw||((M=Z.return)&&M.call(Z),0):Z.next)&&!(M=M.call(Z,T[1])).done)return M;switch(Z=0,M&&(T=[2&T[0],M.value]),T[0]){case 0:case 1:M=T;break;case 4:return v.label++,{value:T[1],done:!1};case 5:v.label++,Z=T[1],T=[0];continue;case 7:T=v.ops.pop(),v.trys.pop();continue;default:if(!(M=(M=v.trys).length>0&&M[M.length-1])&&(6===T[0]||2===T[0])){v=0;continue}if(3===T[0]&&(!M||T[1]>M[0]&&T[1]<M[3])){v.label=T[1];break}if(6===T[0]&&v.label<M[1]){v.label=M[1],M=T;break}if(M&&v.label<M[2]){v.label=M[2],v.ops.push(T);break}M[2]&&v.ops.pop(),v.trys.pop();continue}T=E.call(W,v)}catch(R){T=[6,R],Z=0}finally{F=M=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}([T,R])}}};Object.defineProperty(P,"__esModule",{value:!0}),P.Publisher=void 0;var L,y=B(8402),b=B(2096),S=B(8613),_=B(2299),m=B(2798),D=B(4103),C=B(6946),q=B(543),ee=B(5913),I=C.OpenViduLogger.getInstance(),Q=function(W){function E(v,F,Z){var M=W.call(this,new b.Stream(Z.session?Z.session:new y.Session(Z),{publisherProperties:F,mediaConstraints:{}}),v)||this;return M.accessAllowed=!1,M.isSubscribedToRemote=!1,M.accessDenied=!1,L=q.PlatformUtils.getInstance(),M.properties=F,M.openvidu=Z,M.stream.ee.on("local-stream-destroyed",function(p){M.stream.isLocalStreamPublished=!1;var k=new _.StreamEvent(!0,M,"streamDestroyed",M.stream,p);M.emitEvent("streamDestroyed",[k]),k.callDefaultBehavior()}),M}return N(E,W),E.prototype.publishAudio=function(v){var F=this;this.stream.audioActive!==v&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach(function(M){M.enabled=v}),!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:v,reason:"publishAudio"},function(M,p){M?I.error("Error sending 'streamPropertyChanged' event",M):(F.session.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(F.session,F.stream,"audioActive",v,!v,"publishAudio")]),F.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(F,F.stream,"audioActive",v,!v,"publishAudio")]),F.session.sendVideoData(F.stream.streamManager))}),this.stream.audioActive=v,I.info("'Publisher' has "+(v?"published":"unpublished")+" its audio stream"))},E.prototype.publishVideo=function(v,F){var Z=this;return new Promise(function(M,p){return $(Z,void 0,void 0,function(){var k,te,T,R,J,re,ae=this;return j(this,function(g){switch(g.label){case 0:return this.stream.videoActive===v?[3,9]:(k=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream(),te=!1,k.getVideoTracks().forEach(function(G){G.enabled=v,v||!0!==F?v&&"ended"===G.readyState&&(te=!0):G.stop()}),!v&&!0===F&&this.stream.filter&&this.stream.filter.type.startsWith("VB:")?(this.stream.lastVBFilter=this.stream.filter,[4,this.stream.removeFilterAux(!0)]):[3,2]);case 1:g.sent(),g.label=2;case 2:return te?(T=k.getVideoTracks()[0],k.removeTrack(T),R=function(G){return $(ae,void 0,void 0,function(){var Y=this;return j(this,function(x){switch(x.label){case 0:return k.addTrack(G),this.stream.isLocalStreamPublished?[4,this.replaceTrackInRtcRtpSender(G)]:[3,2];case 1:x.sent(),x.label=2;case 2:return this.stream.lastVBFilter&&setTimeout(function(){return $(Y,void 0,void 0,function(){var H,K;return j(this,function(me){switch(me.label){case 0:return H=this.stream.lastVBFilter.options,!!(K=this.stream.lastVBFilter.lastExecMethod)&&"update"===K.method&&(H=Object.assign({},H,K.params)),[4,this.stream.applyFilter(this.stream.lastVBFilter.type,H)];case 1:return me.sent(),delete this.stream.lastVBFilter,[2]}})})},1),[2]}})})},F&&F instanceof MediaStreamTrack?[4,R(F)]:[3,4]):[3,8];case 3:return g.sent(),[3,8];case 4:return g.trys.push([4,7,,8]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:this.stream.lastVideoTrackConstraints})];case 5:return J=g.sent(),[4,R(J.getVideoTracks()[0])];case 6:return g.sent(),[3,8];case 7:return re=g.sent(),[2,p(re)];case 8:return!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:v,reason:"publishVideo"},function(G,Y){G?I.error("Error sending 'streamPropertyChanged' event",G):(ae.session.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(ae.session,ae.stream,"videoActive",v,!v,"publishVideo")]),ae.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(ae,ae.stream,"videoActive",v,!v,"publishVideo")]),ae.session.sendVideoData(ae.stream.streamManager))}),this.stream.videoActive=v,I.info("'Publisher' has "+(v?"published":"unpublished")+" its video stream"),[2,M()];case 9:return[2]}})})})},E.prototype.subscribeToRemote=function(v){this.isSubscribedToRemote=v=void 0===v||v,this.stream.subscribeToMyRemote(v)},E.prototype.on=function(v,F){var Z=this;return W.prototype.on.call(this,v,F),"streamCreated"===v&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new _.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){Z.emitEvent("streamCreated",[new _.StreamEvent(!1,Z,"streamCreated",Z.stream,"")])})),"accessAllowed"===v&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===v&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},E.prototype.once=function(v,F){var Z=this;return W.prototype.once.call(this,v,F),"streamCreated"===v&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new _.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){Z.emitEvent("streamCreated",[new _.StreamEvent(!1,Z,"streamCreated",Z.stream,"")])})),"accessAllowed"===v&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===v&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},E.prototype.off=function(v,F){return W.prototype.off.call(this,v,F),this},E.prototype.replaceTrack=function(v){return $(this,void 0,void 0,function(){return j(this,function(F){return[2,this.replaceTrackAux(v,!0)]})})},E.prototype.initialize=function(){var v=this;return new Promise(function(F,Z){return $(v,void 0,void 0,function(){var M,p,k,te,T,R,J,re,ae,G,Y,x,H,me,le,K=this;return j(this,function(ce){switch(ce.label){case 0:M={},p={},k=2e3,T=function(De){return K.accessDenied=!0,K.accessAllowed=!1,I.error("Publisher initialization failed. ".concat(De.name,": ").concat(De.message)),Z(De)},R=function(De){var $e,Be;if(K.accessAllowed=!0,K.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&K.properties.audioSource instanceof MediaStreamTrack&&(De.removeTrack(De.getAudioTracks()[0]),De.addTrack(K.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&K.properties.videoSource instanceof MediaStreamTrack&&(De.removeTrack(De.getVideoTracks()[0]),De.addTrack(K.properties.videoSource)),De.getAudioTracks()[0]){var ze=null!=K.stream.audioActive?K.stream.audioActive:!!K.stream.outboundStreamOpts.publisherProperties.publishAudio;De.getAudioTracks()[0].enabled=ze}De.getVideoTracks()[0]&&(ze=null!=K.stream.videoActive?K.stream.videoActive:!!K.stream.outboundStreamOpts.publisherProperties.publishVideo,De.getVideoTracks()[0].enabled=ze);for(var ut=0,Ue=De.getAudioTracks();ut<Ue.length;ut++)null!==($e=(ue=Ue[ut]).contentHint)&&void 0!==$e&&$e.length||(ue.contentHint="",I.info("Audio track Content Hint set: '".concat(ue.contentHint,"'")));for(var Yt=0,qe=De.getVideoTracks();Yt<qe.length;Yt++){var ue;if(null===(Be=(ue=qe[Yt]).contentHint)||void 0===Be||!Be.length){switch(K.stream.typeOfVideo){case ee.TypeOfVideo.SCREEN:ue.contentHint="detail";break;case ee.TypeOfVideo.CUSTOM:I.warn("CUSTOM type video track was provided without Content Hint!"),ue.contentHint="motion";break;default:ue.contentHint="motion"}I.info("Video track Content Hint set: '".concat(ue.contentHint,"'"))}}return K.initializeVideoReference(De),K.stream.displayMyRemote()||K.stream.updateMediaStreamInVideos(),delete K.firstVideoElement,K.stream.isSendVideo()?K.getVideoDimensions().then(function(cn){K.stream.videoDimensions={width:cn.width,height:cn.height},K.stream.isSendScreen()&&(K.screenShareResizeInterval=setInterval(function(){var Gn=De.getVideoTracks()[0].getSettings(),Ye=Gn.width,Qn=Gn.height;K.stream.isLocalStreamPublished&&(null!=Ye&&Ye!==K.stream.videoDimensions.width||null!=Qn&&Qn!==K.stream.videoDimensions.height)&&K.openvidu.sendVideoDimensionsChangedEvent(K,"screenResized",K.stream.videoDimensions.width,K.stream.videoDimensions.height,Ye||0,Qn||0)},650)),K.stream.isLocalStreamReadyToPublish=!0,K.stream.ee.emitEvent("stream-ready-to-publish",[])}):(K.stream.isLocalStreamReadyToPublish=!0,K.stream.ee.emitEvent("stream-ready-to-publish",[])),F()},J=function(De,$e){return $(K,void 0,void 0,function(){var Be,ze;return j(this,function(ut){switch(ut.label){case 0:if(this.clearPermissionDialogTimer(te,k),!this.stream.isSendScreen()||!this.stream.isSendAudio())return[3,5];p.audio=$e,p.video=!1,te=Date.now(),this.setPermissionDialogTimer(k),ut.label=1;case 1:return ut.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia(p)];case 2:return Be=ut.sent(),this.clearPermissionDialogTimer(te,k),De.addTrack(Be.getAudioTracks()[0]),R(De),[3,4];case 3:return ze=ut.sent(),this.clearPermissionDialogTimer(te,k),De.getAudioTracks().forEach(function(Ue){Ue.stop()}),De.getVideoTracks().forEach(function(Ue){Ue.stop()}),T(this.openvidu.generateAudioDeviceError(ze,M)),[2];case 4:return[3,6];case 5:R(De),ut.label=6;case 6:return[2]}})})},re=function(De){return $(K,void 0,void 0,function(){var $e,Be,ut,ue;return j(this,function(Yt){switch(Yt.label){case 0:switch(I.error("getMediaError: ".concat(De.toString())),this.clearPermissionDialogTimer(te,k),"Error"===De.name&&(De.name=De.constructor.name),De.name.toLowerCase()){case"notfounderror":return[3,1];case"notallowederror":return[3,5];case"overconstrainederror":return[3,6];case"aborterror":case"notreadableerror":return[3,10]}return[3,11];case 1:return Yt.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:M.video})];case 2:return Yt.sent().getVideoTracks().forEach(function(qe){qe.stop()}),$e=D.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,Be=De.toString(),T(new D.OpenViduError($e,Be)),[3,4];case 3:return ut=Yt.sent(),$e=D.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,Be=ut.toString(),T(new D.OpenViduError($e,Be)),[3,4];case 4:case 9:return[3,12];case 5:return $e=this.stream.isSendScreen()?D.OpenViduErrorName.SCREEN_CAPTURE_DENIED:D.OpenViduErrorName.DEVICE_ACCESS_DENIED,Be=De.toString(),T(new D.OpenViduError($e,Be)),[3,12];case 6:return Yt.trys.push([6,8,,9]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:M.video})];case 7:return Yt.sent().getVideoTracks().forEach(function(qe){qe.stop()}),"deviceid"===De.constraint.toLowerCase()?($e=D.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,Be="Audio input device with deviceId '"+M.audio.deviceId.exact+"' not found"):($e=D.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,Be="Audio input device doesn't support the value passed for constraint '"+De.constraint+"'"),T(new D.OpenViduError($e,Be)),[3,9];case 8:return"deviceid"===(ue=Yt.sent()).constraint.toLowerCase()?($e=D.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,Be="Video input device with deviceId '"+M.video.deviceId.exact+"' not found"):($e=D.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,Be="Video input device doesn't support the value passed for constraint '"+ue.constraint+"'"),T(new D.OpenViduError($e,Be)),[3,9];case 10:return $e=D.OpenViduErrorName.DEVICE_ALREADY_IN_USE,Be=De.toString(),T(new D.OpenViduError($e,Be)),[3,12];case 11:return $e=D.OpenViduErrorName.GENERIC_ERROR,Be=De.toString(),T(new D.OpenViduError($e,Be)),[3,12];case 12:return[2]}})})},ce.label=1;case 1:return ce.trys.push([1,14,,15]),[4,this.openvidu.generateMediaConstraints(this.properties)];case 2:return(ae=ce.sent()).videoTrack&&ae.audioTrack||ae.audioTrack&&!1===(null===(me=ae.constraints)||void 0===me?void 0:me.video)||ae.videoTrack&&!1===(null===(le=ae.constraints)||void 0===le?void 0:le.audio)?(R(this.openvidu.addAlreadyProvidedTracks(ae,new MediaStream,this.stream)),[3,13]):[3,3];case 3:this.stream.setOutboundStreamOptions({mediaConstraints:M=ae.constraints,publisherProperties:this.properties}),G=void 0===M.audio||M.audio,p.audio=!this.stream.isSendScreen()&&G,p.video=M.video,te=Date.now(),this.setPermissionDialogTimer(k),ce.label=4;case 4:return ce.trys.push([4,11,,13]),this.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!L.isElectron()?[4,navigator.mediaDevices.getDisplayMedia({video:!0})]:[3,7];case 5:return Y=ce.sent(),this.openvidu.addAlreadyProvidedTracks(ae,Y),[4,J(Y,G)];case 6:return ce.sent(),[3,10];case 7:return this.stream.lastVideoTrackConstraints=p.video,[4,navigator.mediaDevices.getUserMedia(p)];case 8:return Y=ce.sent(),this.openvidu.addAlreadyProvidedTracks(ae,Y,this.stream),[4,J(Y,G)];case 9:ce.sent(),ce.label=10;case 10:return[3,13];case 11:return x=ce.sent(),[4,re(x)];case 12:return ce.sent(),[3,13];case 13:return[3,15];case 14:return H=ce.sent(),T(H),[3,15];case 15:return[2]}})})})},E.prototype.replaceTrackAux=function(v,F){return $(this,void 0,void 0,function(){var Z,M;return j(this,function(p){switch(p.label){case 0:Z=v.enabled,"video"===v.kind?v.enabled=this.stream.videoActive:"audio"===v.kind&&(v.enabled=this.stream.audioActive),p.label=1;case 1:return p.trys.push([1,5,,6]),this.stream.isLocalStreamPublished?(this.replaceTrackInMediaStream(v,F),[4,this.replaceTrackInRtcRtpSender(v)]):[3,3];case 2:return[2,p.sent()];case 3:return[2,this.replaceTrackInMediaStream(v,F)];case 4:return[3,6];case 5:throw M=p.sent(),v.enabled=Z,M;case 6:return[2]}})})},E.prototype.getVideoDimensions=function(){var v=this;return new Promise(function(F,Z){var p,M=L.isIonicIos()||L.isIOSWithSafari(),k=function(){var te,T;if("function"==typeof v.stream.getMediaStream().getVideoTracks()[0].getSettings){var R=v.stream.getMediaStream().getVideoTracks()[0].getSettings();te=R.width||v.videoReference.videoWidth,T=R.height||v.videoReference.videoHeight}else I.warn("MediaStreamTrack does not have getSettings method on "+L.getDescription()),te=v.videoReference.videoWidth,T=v.videoReference.videoHeight;return null!=p&&v.videoReference.removeEventListener("loadedmetadata",p),M&&document.body.removeChild(v.videoReference),F({width:te,height:T})};v.videoReference.readyState>=1?k():(v.videoReference.addEventListener("loadedmetadata",p=function(){if(v.videoReference.videoWidth)k();else var te=setInterval(function(){v.videoReference.videoWidth&&(clearInterval(te),k())},40)}),M&&document.body.appendChild(v.videoReference))})},E.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},E.prototype.initializeVideoReference=function(v){this.videoReference=document.createElement("video"),this.videoReference.style.display="none",this.videoReference.muted=!0,this.videoReference.autoplay=!0,this.videoReference.controls=!1,(L.isSafariBrowser()||L.isIPhoneOrIPad()&&(L.isChromeMobileBrowser()||L.isEdgeMobileBrowser()||L.isOperaMobileBrowser()||L.isFirefoxMobileBrowser()))&&(this.videoReference.playsInline=!0),this.stream.setMediaStream(v),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=this.stream.getMediaStream()},E.prototype.replaceTrackInMediaStream=function(v,F){var M,Z=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream();"video"===v.kind?(M=Z.getVideoTracks()[0],F&&(this.stream.lastVideoTrackConstraints=v.getConstraints())):M=Z.getAudioTracks()[0],M.enabled=!1,M.stop(),Z.removeTrack(M),Z.addTrack(v);var p={oldLabel:(null==M?void 0:M.label)||"",newLabel:(null==v?void 0:v.label)||""};"video"===v.kind&&F?(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.openvidu.sendTrackChangedEvent(this,p.oldLabel,p.newLabel,"videoTrack"),this.stream.isLocalStreamPublished&&this.session.sendVideoData(this.stream.streamManager,5,!0,5)):"audio"===v.kind&&F&&this.openvidu.sendTrackChangedEvent(this,p.oldLabel,p.newLabel,"audioTrack"),"audio"===v.kind&&(this.stream.disableHarkSpeakingEvent(!1),this.stream.disableHarkStoppedSpeakingEvent(!1),this.stream.disableHarkVolumeChangeEvent(!1),this.stream.initHarkEvents())},E.prototype.setPermissionDialogTimer=function(v){var F=this;this.permissionDialogTimeout=setTimeout(function(){F.emitEvent("accessDialogOpened",[])},v)},E.prototype.clearPermissionDialogTimer=function(v,F){clearTimeout(this.permissionDialogTimeout),Date.now()-v>F&&this.emitEvent("accessDialogClosed",[])},E.prototype.replaceTrackInRtcRtpSender=function(v){return $(this,void 0,void 0,function(){var F,Z;return j(this,function(M){switch(M.label){case 0:if(F=this.stream.getRTCPeerConnection().getSenders(),"video"===v.kind){if(!(Z=F.find(function(p){return!!p.track&&"video"===p.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==v.kind)throw new Error("Unknown track kind "+v.kind);if(!(Z=F.find(function(p){return!!p.track&&"audio"===p.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,Z.replaceTrack(v)];case 1:return M.sent(),[2]}})})},E}(S.StreamManager);P.Publisher=Q},8402:function(Ae,P,B){"use strict";var re,N=this&&this.__extends||(re=function(ae,g){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var x in Y)Object.prototype.hasOwnProperty.call(Y,x)&&(G[x]=Y[x])})(ae,g)},function(ae,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function G(){this.constructor=ae}re(ae,g),ae.prototype=null===g?Object.create(g):(G.prototype=g.prototype,new G)}),$=this&&this.__awaiter||function(re,ae,g,G){return new(g||(g=Promise))(function(x,H){function K(ce){try{le(G.next(ce))}catch(De){H(De)}}function me(ce){try{le(G.throw(ce))}catch(De){H(De)}}function le(ce){ce.done?x(ce.value):function Y(x){return x instanceof g?x:new g(function(H){H(x)})}(ce.value).then(K,me)}le((G=G.apply(re,ae||[])).next())})},j=this&&this.__generator||function(re,ae){var G,Y,x,H,g={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return H={next:K(0),throw:K(1),return:K(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function K(le){return function(ce){return function me(le){if(G)throw new TypeError("Generator is already executing.");for(;H&&(H=0,le[0]&&(g=0)),g;)try{if(G=1,Y&&(x=2&le[0]?Y.return:le[0]?Y.throw||((x=Y.return)&&x.call(Y),0):Y.next)&&!(x=x.call(Y,le[1])).done)return x;switch(Y=0,x&&(le=[2&le[0],x.value]),le[0]){case 0:case 1:x=le;break;case 4:return g.label++,{value:le[1],done:!1};case 5:g.label++,Y=le[1],le=[0];continue;case 7:le=g.ops.pop(),g.trys.pop();continue;default:if(!(x=(x=g.trys).length>0&&x[x.length-1])&&(6===le[0]||2===le[0])){g=0;continue}if(3===le[0]&&(!x||le[1]>x[0]&&le[1]<x[3])){g.label=le[1];break}if(6===le[0]&&g.label<x[1]){g.label=x[1],x=le;break}if(x&&g.label<x[2]){g.label=x[2],g.ops.push(le);break}x[2]&&g.ops.pop(),g.trys.pop();continue}le=ae.call(re,g)}catch(ce){le=[6,ce],Y=0}finally{G=x=0}if(5&le[0])throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}([le,ce])}}};Object.defineProperty(P,"__esModule",{value:!0}),P.Session=void 0;var R,y=B(7490),b=B(4540),S=B(1758),_=B(8074),m=B(8702),D=B(2156),C=B(7936),q=B(1018),ee=B(5785),I=B(6282),L=B(2299),Q=B(2798),W=B(865),E=B(6237),v=B(4103),F=B(6274),Z=B(6946),M=B(543),p=B(4778),k=B(3042),te=B(7507),T=Z.OpenViduLogger.getInstance(),J=function(re){function ae(g){var G=re.call(this)||this;return G.streamManagers=[],G.remoteStreamsCreated=new Map,G.remoteConnections=new Map,R=M.PlatformUtils.getInstance(),G.openvidu=g,G}return N(ae,re),ae.prototype.connect=function(g,G){var Y=this;return new Promise(function(x,H){if(Y.processToken(g),!Y.openvidu.checkSystemRequirements())return H(new v.OpenViduError(v.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+R.getName()+" (version "+R.getVersion()+") for "+R.getFamily()+" is not supported in OpenVidu"));Y.options={sessionId:Y.sessionId,participantId:g,metadata:G?Y.stringClientMetadata(G):""},Y.connectAux(g).then(function(){return x()}).catch(function(K){return H(K)})})},ae.prototype.disconnect=function(){this.leave(!1,"disconnect")},ae.prototype.subscribe=function(g,G,Y,x){var H={};H=Y&&"function"!=typeof Y?{insertMode:void 0!==Y.insertMode?"string"==typeof Y.insertMode?F.VideoInsertMode[Y.insertMode]:H.insertMode:F.VideoInsertMode.APPEND,subscribeToAudio:void 0===Y.subscribeToAudio||Y.subscribeToAudio,subscribeToVideo:void 0===Y.subscribeToVideo||Y.subscribeToVideo}:{insertMode:F.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0};var K=void 0;if(Y&&"function"==typeof Y?K=Y:x&&(K=x),!this.sessionConnected())throw void 0!==K&&K(this.notConnectedError()),this.notConnectedError();T.info("Subscribing to "+g.connection.connectionId),g.subscribe().then(function(){T.info("Subscribed correctly to "+g.connection.connectionId),void 0!==K&&K(void 0)}).catch(function(le){void 0!==K&&K(le)});var me=new S.Subscriber(g,G,H);return me.targetElement&&g.streamManager.createVideoElement(me.targetElement,H.insertMode),me},ae.prototype.subscribeAsync=function(g,G,Y){var x=this;return new Promise(function(H,K){if(!x.sessionConnected())return K(x.notConnectedError());var me,le=function(ce){return ce?K(ce):H(me)};me=Y?x.subscribe(g,G,Y,le):x.subscribe(g,G,le)})},ae.prototype.unsubscribe=function(g){var G=this;return new Promise(function(Y,x){if(!G.sessionConnected())return x(G.notConnectedError());var H=g.stream.connection.connectionId;T.info("Unsubscribing from "+H),G.openvidu.sendRequest("unsubscribeFromVideo",{sender:g.stream.connection.connectionId},function(K,me){return K?(T.error("Error unsubscribing from "+H),x(K)):(T.info("Unsubscribed correctly from "+H),g.stream.streamManager.removeAllVideos(),g.stream.disposeWebRtcPeer(),g.stream.disposeMediaStream(),Y())})})},ae.prototype.publish=function(g){var G=this;return new Promise(function(Y,x){if(!G.sessionConnected())return x(G.notConnectedError());g.session=G,g.stream.session=G,g.stream.publishedOnce?g.initialize().then(function(){G.connection.addStream(g.stream),g.reestablishStreamPlayingEvent(),g.stream.publish().then(function(){return G.sendVideoData(g,8,!0,5),Y()}).catch(function(H){return x(H)})}).catch(function(H){return x(H)}):(G.connection.addStream(g.stream),g.stream.publish().then(function(){return G.sendVideoData(g,8,!0,5),Y()}).catch(function(H){return x(H)}))})},ae.prototype.unpublish=function(g){var G=this;return new Promise(function(Y,x){if(!G.sessionConnected())throw G.notConnectedError();var H=g.stream;return H.connection?H.connection!==G.connection?x(new Error("The associated Connection object of this Publisher is not your local Connection. Only moderators can force unpublish on remote Streams via 'forceUnpublish' method")):(T.info("Unpublishing local media ("+H.connection.connectionId+")"),void G.openvidu.sendRequest("unpublishVideo",function(K,me){if(K)return x(K);T.info("Media unpublished correctly"),H.disposeWebRtcPeer(),H.connection.stream==H&&delete H.connection.stream;var le=new L.StreamEvent(!0,g,"streamDestroyed",g.stream,"unpublish");return g.emitEvent("streamDestroyed",[le]),le.callDefaultBehavior(),Y()})):x(new Error("The associated Connection object of this Publisher is null"))})},ae.prototype.forceDisconnect=function(g){var G=this;return new Promise(function(Y,x){if(!G.sessionConnected())return x(G.notConnectedError());T.info("Forcing disconnect for connection "+g.connectionId),G.openvidu.sendRequest("forceDisconnect",{connectionId:g.connectionId},function(H,K){return H?(T.error("Error forcing disconnect for Connection "+g.connectionId,H),x(401===H.code?new v.OpenViduError(v.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):H)):(T.info("Forcing disconnect correctly for Connection "+g.connectionId),Y())})})},ae.prototype.forceUnpublish=function(g){var G=this;return new Promise(function(Y,x){if(!G.sessionConnected())return x(G.notConnectedError());T.info("Forcing unpublish for stream "+g.streamId),G.openvidu.sendRequest("forceUnpublish",{streamId:g.streamId},function(H,K){return H?(T.error("Error forcing unpublish for Stream "+g.streamId,H),x(401===H.code?new v.OpenViduError(v.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):H)):(T.info("Forcing unpublish correctly for Stream "+g.streamId),Y())})})},ae.prototype.signal=function(g){var G=this;return new Promise(function(Y,x){if(!G.sessionConnected())return x(G.notConnectedError());var H={};if(g.to&&g.to.length>0){var K=[];g.to.forEach(function(le){le.connectionId&&K.push(le.connectionId)}),H.to=K}else H.to=[];H.data=g.data?g.data:"";var me=g.type?g.type:"signal";me&&"signal:"!==me.substring(0,7)&&(me="signal:"+me),H.type=me,G.openvidu.sendRequest("sendMessage",{message:JSON.stringify(H)},function(le,ce){return le?x(le):Y()})})},ae.prototype.subscribeToSpeechToText=function(g,G){var Y=this;return new Promise(function(x,H){Y.openvidu.sendRequest("subscribeToSpeechToText",{connectionId:g.connection.connectionId,lang:G},function(K,me){return K?H(K):x()})})},ae.prototype.unsubscribeFromSpeechToText=function(g){var G=this;return new Promise(function(Y,x){G.openvidu.sendRequest("unsubscribeFromSpeechToText",{connectionId:g.connection.connectionId},function(H,K){return H?x(H):Y()})})},ae.prototype.on=function(g,G){var Y,x,H,K;return re.prototype.onAux.call(this,g,"Event '"+g+"' triggered by 'Session'",G),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(me){var le;null!==(le=me.stream)&&void 0!==le&&le.hasAudio&&me.stream.enableHarkSpeakingEvent()}),!(null===(x=null===(Y=this.connection)||void 0===Y?void 0:Y.stream)||void 0===x)&&x.hasAudio&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(me){var le;null!==(le=me.stream)&&void 0!==le&&le.hasAudio&&me.stream.enableHarkStoppedSpeakingEvent()}),!(null===(K=null===(H=this.connection)||void 0===H?void 0:H.stream)||void 0===K)&&K.hasAudio&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},ae.prototype.once=function(g,G){var Y,x,H,K;return re.prototype.onceAux.call(this,g,"Event '"+g+"' triggered once by 'Session'",G),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(me){var le;null!==(le=me.stream)&&void 0!==le&&le.hasAudio&&me.stream.enableOnceHarkSpeakingEvent()}),!(null===(x=null===(Y=this.connection)||void 0===Y?void 0:Y.stream)||void 0===x)&&x.hasAudio&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(me){var le;null!==(le=me.stream)&&void 0!==le&&le.hasAudio&&me.stream.enableOnceHarkStoppedSpeakingEvent()}),!(null===(K=null===(H=this.connection)||void 0===H?void 0:H.stream)||void 0===K)&&K.hasAudio&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},ae.prototype.off=function(g,G){var x,H,K,me,Y=this;return re.prototype.offAux.call(this,g,G),"publisherStartSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(le){var ce;null!==(ce=le.stream)&&void 0!==ce&&ce.streamManager&&(Y.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,le.stream.streamManager)||le.stream.disableHarkSpeakingEvent(!1))}),!(null===(H=null===(x=this.connection)||void 0===x?void 0:x.stream)||void 0===H)&&H.streamManager&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(le){var ce;null!==(ce=le.stream)&&void 0!==ce&&ce.streamManager&&(Y.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,le.stream.streamManager)||le.stream.disableHarkStoppedSpeakingEvent(!1))}),!(null===(me=null===(K=this.connection)||void 0===K?void 0:K.stream)||void 0===me)&&me.streamManager&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},ae.prototype.onParticipantJoined=function(g){var G=this;this.getConnection(g.id,"").then(function(Y){T.warn("Connection "+Y.connectionId+" already exists in connections list")}).catch(function(Y){var x=new y.Connection(G,g);G.remoteConnections.set(g.id,x),G.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,G,"connectionCreated",x,"")])})},ae.prototype.onParticipantLeft=function(g){var G=this;this.getRemoteConnection(g.connectionId,"onParticipantLeft").then(function(Y){if(Y.stream){var x=Y.stream,H=new L.StreamEvent(!0,G,"streamDestroyed",x,g.reason);G.ee.emitEvent("streamDestroyed",[H]),H.callDefaultBehavior(),G.remoteStreamsCreated.delete(x.streamId)}Y.dispose(),G.remoteConnections.delete(Y.connectionId),G.ee.emitEvent("connectionDestroyed",[new m.ConnectionEvent(!1,G,"connectionDestroyed",Y,g.reason)])}).catch(function(Y){T.error(Y)})},ae.prototype.onParticipantPublished=function(g){var x,G=this,Y=function(H){G.remoteConnections.set(H.connectionId,H),G.remoteStreamsCreated.get(H.stream.streamId)||G.ee.emitEvent("streamCreated",[new L.StreamEvent(!1,G,"streamCreated",H.stream,"")]),G.remoteStreamsCreated.set(H.stream.streamId,!0)};this.getRemoteConnection(g.id,"onParticipantPublished").then(function(H){x=H,g.metadata=H.data,x.remoteOptions=g,x.initRemoteStreams(g.streams),Y(x)}).catch(function(H){x=new y.Connection(G,g),Y(x)})},ae.prototype.onParticipantUnpublished=function(g){var G=this;g.connectionId===this.connection.connectionId?this.stopPublisherStream(g.reason):this.getRemoteConnection(g.connectionId,"onParticipantUnpublished").then(function(Y){var x=new L.StreamEvent(!0,G,"streamDestroyed",Y.stream,g.reason);G.ee.emitEvent("streamDestroyed",[x]),x.callDefaultBehavior(),null!=Y.stream&&(G.remoteStreamsCreated.delete(Y.stream.streamId),Y.removeStream())}).catch(function(Y){T.error(Y)})},ae.prototype.onParticipantEvicted=function(g){g.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,g.reason)},ae.prototype.onNewMessage=function(g){var G=this;T.info("New signal: "+JSON.stringify(g));var Y=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(x){G.ee.emitEvent("signal",[new ee.SignalEvent(G,Y,g.data,x)]),g.type&&"signal"!==g.type&&G.ee.emitEvent(g.type,[new ee.SignalEvent(G,Y,g.data,x)])}).catch(function(x){T.error(x)}):(this.ee.emitEvent("signal",[new ee.SignalEvent(this,Y,g.data,void 0)]),g.type&&"signal"!==g.type&&this.ee.emitEvent(g.type,[new ee.SignalEvent(this,Y,g.data,void 0)]))},ae.prototype.onStreamPropertyChanged=function(g){var G=this,Y=function(x){if(x.stream&&x.stream.streamId===g.streamId){var H=x.stream,K=void 0;switch(g.property){case"audioActive":K=H.audioActive,g.newValue="true"===g.newValue,H.audioActive=g.newValue;break;case"videoActive":K=H.videoActive,g.newValue="true"===g.newValue,H.videoActive=g.newValue;break;case"videoTrack":case"audioTrack":g.newValue=JSON.parse(g.newValue);break;case"videoDimensions":K=H.videoDimensions,g.newValue=JSON.parse(JSON.parse(g.newValue)),H.videoDimensions=g.newValue;break;case"filter":K=H.filter,g.newValue=Object.keys(g.newValue).length>0?g.newValue:void 0,void 0!==g.newValue?(H.filter=new b.Filter(g.newValue.type,g.newValue.options),H.filter.stream=H,g.newValue.lastExecMethod&&(H.filter.lastExecMethod=g.newValue.lastExecMethod)):delete H.filter,g.newValue=H.filter}G.ee.emitEvent("streamPropertyChanged",[new Q.StreamPropertyChangedEvent(G,H,g.property,g.newValue,K,g.reason)]),H.streamManager&&H.streamManager.emitEvent("streamPropertyChanged",[new Q.StreamPropertyChangedEvent(H.streamManager,H,g.property,g.newValue,K,g.reason)])}else T.error("No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event")};g.connectionId===this.connection.connectionId?Y(this.connection):this.getRemoteConnection(g.connectionId,"onStreamPropertyChanged").then(function(x){Y(x)}).catch(function(x){T.error(x)})},ae.prototype.onConnectionPropertyChanged=function(g){var G;switch(g.property){case"role":G=this.connection.role.slice(),this.connection.role=g.newValue,this.connection.localOptions.role=g.newValue;break;case"record":G=this.connection.record,g.newValue="true"===g.newValue,this.connection.record=g.newValue,this.connection.localOptions.record=g.newValue}this.ee.emitEvent("connectionPropertyChanged",[new W.ConnectionPropertyChangedEvent(this,this.connection,g.property,g.newValue,G)])},ae.prototype.onNetworkQualityLevelChangedChanged=function(g){var G=this;g.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new E.NetworkQualityLevelChangedEvent(this,g.newValue,g.oldValue,this.connection)]):this.getConnection(g.connectionId,"Connection not found for connectionId "+g.connectionId).then(function(Y){G.ee.emitEvent("networkQualityLevelChanged",[new E.NetworkQualityLevelChangedEvent(G,g.newValue,g.oldValue,Y)])}).catch(function(Y){T.error(Y)})},ae.prototype.recvIceCandidate=function(g){var Y=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: "+Y).then(function(x){var H=x.stream;H.getWebRtcPeer().addIceCandidate(Y).catch(function(K){T.error("Error adding candidate for "+H.streamId+" stream of endpoint "+g.endpointName+": "+K)})}).catch(function(x){T.error(x)})},ae.prototype.onSessionClosed=function(g){T.info("Session closed: "+JSON.stringify(g));var G=g.sessionId;void 0!==G?this.ee.emitEvent("session-closed",[{session:G}]):T.warn("Session undefined on session closed",g)},ae.prototype.onLostConnection=function(g){T.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,g)},ae.prototype.onRecoveredConnection=function(){T.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},ae.prototype.onMediaError=function(g){T.error("Media error: "+JSON.stringify(g));var G=g.error;G?this.ee.emitEvent("error-media",[{error:G}]):T.warn("Received undefined media error:",g)},ae.prototype.onRecordingStarted=function(g){this.ee.emitEvent("recordingStarted",[new C.RecordingEvent(this,"recordingStarted",g.id,g.name)])},ae.prototype.onRecordingStopped=function(g){this.ee.emitEvent("recordingStopped",[new C.RecordingEvent(this,"recordingStopped",g.id,g.name,g.reason)])},ae.prototype.onBroadcastStarted=function(){this.ee.emitEvent("broadcastStarted",[])},ae.prototype.onBroadcastStopped=function(){this.ee.emitEvent("broadcastStopped",[])},ae.prototype.onFilterEventDispatched=function(g){var G=this,Y=g.connectionId;this.getConnection(Y,"No connection found for connectionId "+Y).then(function(x){T.info('Filter event of type "'.concat(g.eventType,'" dispatched'));var H=x.stream;if(!H||!H.filter)return T.error('Filter event of type "'.concat(g.eventType,'" dispatched for stream ').concat(H.streamId," but there is no ").concat(H?"filter":"stream"," defined"));var K=H.filter.handlers.get(g.eventType);if(!K||"function"!=typeof K){var me=Array.from(H.filter.handlers.keys());return T.error('Filter event of type "'.concat(g.eventType,'" not handled or not a function! Active filter events: ').concat(me.join(",")))}K.call(G,new D.FilterEvent(H.filter,g.eventType,g.data))})},ae.prototype.onForciblyReconnectSubscriber=function(g){var G=this;return new Promise(function(Y,x){G.getRemoteConnection(g.connectionId,"onForciblyReconnectSubscriber").then(function(H){if(!H.stream||H.stream.streamId!==g.streamId){var le="No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event";return T.error(le),x(le)}var K=H.stream;if(K.setupReconnectionEventEmitter(Y,x)){if(null!=K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g,x("Ongoing forced subscriber reconnection");K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g;var me=function(){var ce=K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,G.onForciblyReconnectSubscriber(ce)};return K.reconnectionEventEmitter.once("success",function(){me()}),void K.reconnectionEventEmitter.once("error",function(){me()})}K.completeWebRtcPeerReceive(!0,!0,g.sdpOffer).then(function(){return K.finalResolveForSubscription(!0,Y)}).catch(function(ce){return K.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(g.streamId,": ").concat(ce.toString()),x)})}).catch(function(H){return T.error(H),x(H)})})},ae.prototype.reconnectBrokenStreams=function(){T.info("Re-establishing media connections...");var g=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(T.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),g=!0),this.remoteConnections.forEach(function(G){G.stream&&G.stream.streamIceConnectionStateBroken()&&(T.warn("Re-establishing Subscriber "+G.stream.streamId),G.stream.initWebRtcPeerReceive(!0),g=!0)}),g||T.info("There were no media streams in need of a reconnection")},ae.prototype.onSpeechToTextMessage=function(g){return $(this,void 0,void 0,function(){var G,Y;return j(this,function(x){switch(x.label){case 0:return[4,this.getConnection(g.connectionId,"No connection found for connectionId "+g.connectionId)];case 1:return G=x.sent(),Y=new I.SpeechToTextEvent(this,G,g.text,g.reason.toLowerCase(),g.raw,g.lang),this.ee.emitEvent("speechToTextMessage",[Y]),[2]}})})},ae.prototype.onSpeechToTextDisconnected=function(g){return $(this,void 0,void 0,function(){return j(this,function(G){return this.emitEvent("exception",[new te.ExceptionEvent(this,te.ExceptionEventName.SPEECH_TO_TEXT_DISCONNECTED,this,g.message)]),[2]})})},ae.prototype.emitEvent=function(g,G){this.ee.emitEvent(g,G)},ae.prototype.leave=function(g,G){var Y=this;if(T.info("Leaving Session (forced="+(g=!!g)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||g?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(H,K){H&&T.error("leaveRoom error: ".concat(JSON.stringify(H))),Y.openvidu.closeWs()}),this.stopPublisherStream(G),!this.connection.disposed){var x=new q.SessionDisconnectedEvent(this,G);this.ee.emitEvent("sessionDisconnected",[x]),x.callDefaultBehavior()}}else T.warn("You were not connected to the session "+this.sessionId);T.flush()},ae.prototype.initializeParams=function(g){return{token:g||"",session:this.sessionId,platform:R.getDescription()?R.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()}},ae.prototype.sendVideoData=function(g,G,Y,x){var K,me,H=this;if(void 0===G&&(G=1),void 0===Y&&(Y=!1),void 0===x&&(x=1),R.isChromeBrowser()||R.isChromeMobileBrowser()||R.isOperaBrowser()||R.isOperaMobileBrowser()||R.isEdgeBrowser()||R.isEdgeMobileBrowser()||R.isElectron()||R.isSafariBrowser()&&!R.isIonicIos()||R.isAndroidBrowser()||R.isSamsungBrowser()||R.isIonicAndroid()||R.isIOSWithSafari()){var le=function(){return $(H,void 0,void 0,function(){var De,$e,Be;return j(this,function(ze){switch(ze.label){case 0:return"connected"!==(De=g.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,De.getStats()];case 1:$e=ze.sent(),Be=[],$e.forEach(function(ut){"frameWidth"in ut&&"frameHeight"in ut&&0===Be.length&&Be.push(ut)}),Be.length>0&&this.openvidu.sendRequest("videoData",{height:Be[0].frameHeight,width:Be[0].frameWidth,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(ut,Ue){ut&&T.error("Error sending 'videoData' event",ut)}),ze.label=2;case 2:return[2]}})})};if(Y){var ce=1;this.videoDataInterval=setInterval(function(){ce<x?(ce++,le()):clearInterval(H.videoDataInterval)},1e3*G)}else this.videoDataTimeout=setTimeout(le,1e3*G)}else R.isFirefoxBrowser()||R.isFirefoxMobileBrowser()||R.isIonicIos()||R.isReactNative()?this.openvidu.sendRequest("videoData",{height:(null===(K=g.stream.videoDimensions)||void 0===K?void 0:K.height)||0,width:(null===(me=g.stream.videoDimensions)||void 0===me?void 0:me.width)||0,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(De,$e){De&&T.error("Error sending 'videoData' event",De)}):T.error("Browser "+R.getName()+" (version "+R.getVersion()+") for "+R.getFamily()+" is not supported in OpenVidu for Network Quality")},ae.prototype.sessionConnected=function(){return null!=this.connection},ae.prototype.notConnectedError=function(){return new v.OpenViduError(v.OpenViduErrorName.OPENVIDU_NOT_CONNECTED,"There is no connection to the session. Method 'Session.connect' must be successfully completed first")},ae.prototype.anySpeechEventListenerEnabled=function(g,G,Y){var x=this.ee.getListeners(g);if(G&&(x=x.filter(function(le){return le.once})),x.length>0)return!0;var K=0;if(Y){var me=Y.ee.getListeners(g);G&&(me=me.filter(function(le){return le.once})),K=me.length}return K>0},ae.prototype.getTokenParams=function(g){var G=g.match(/^(wss?)\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(G){var Y={protocol:G[1],host:G[2],hostname:G[3],port:G[4],pathname:G[5],search:G[6],hash:G[7]},x=g.split("?"),H=decodeURI(x[1]).split("&").map(function(K){return K.split("=")}).reduce(function(K,me){return K[me[0]]=me[1],K},{});return{sessionId:H.sessionId,secret:H.secret,recorder:H.recorder,stt:H.stt,webrtcStatsInterval:H.webrtcStatsInterval,sendBrowserLogs:H.sendBrowserLogs,edition:H.edition,wsUri:Y.protocol+"://"+Y.host+"/openvidu",httpUri:"https://"+Y.host}}throw new Error('Token not valid: "'.concat(g,'"'))},ae.prototype.connectAux=function(g){var G=this;return new Promise(function(Y,x){G.openvidu.startWs(function(H){if(H)return x(H);var K=G.initializeParams(g);G.openvidu.sendRequest("joinRoom",K,function(me,le){if(me)return x(me);G.processJoinRoomResponse(le,g),G.connection=new y.Connection(G,le);var ce={connections:new Array,streams:new Array};return le.value.forEach(function($e){var Be=new y.Connection(G,$e);G.remoteConnections.set(Be.connectionId,Be),ce.connections.push(Be),Be.stream&&(G.remoteStreamsCreated.set(Be.stream.streamId,!0),ce.streams.push(Be.stream))}),G.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,G,"connectionCreated",G.connection,"")]),ce.connections.forEach(function($e){G.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,G,"connectionCreated",$e,"")])}),ce.streams.forEach(function($e){G.ee.emitEvent("streamCreated",[new L.StreamEvent(!1,G,"streamCreated",$e,"")])}),!!le.recordingId&&!!le.recordingName&&G.ee.emitEvent("recordingStarted",[new C.RecordingEvent(G,"recordingStarted",le.recordingId,le.recordingName)]),Y()})})})},ae.prototype.stopPublisherStream=function(g){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[g]))},ae.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},ae.prototype.stringClientMetadata=function(g){return"string"!=typeof g?JSON.stringify(g):g},ae.prototype.getConnection=function(g,G){var Y=this;return new Promise(function(x,H){var K=Y.remoteConnections.get(g);return K?x(K):Y.connection.connectionId===g?x(Y.connection):H(new v.OpenViduError(v.OpenViduErrorName.GENERIC_ERROR,G))})},ae.prototype.getRemoteConnection=function(g,G){var Y=this;return new Promise(function(x,H){var K=Y.remoteConnections.get(g);if(K)return x(K);var me="Remote connection "+g+" unknown when '"+G+"'. Existing remote connections: "+JSON.stringify(Y.remoteConnections.keys());return H(new v.OpenViduError(v.OpenViduErrorName.GENERIC_ERROR,me))})},ae.prototype.processToken=function(g){var G=this.getTokenParams(g);this.sessionId=G.sessionId,G.secret&&(this.openvidu.secret=G.secret),G.recorder&&(this.openvidu.recorder=!0),G.stt&&(this.openvidu.stt=!0),G.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=G.webrtcStatsInterval),G.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=G.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===G.edition||"enterprise"===G.edition,this.openvidu.isEnterprise="enterprise"===G.edition,this.openvidu.wsUri=G.wsUri,this.openvidu.httpUri=G.httpUri},ae.prototype.processJoinRoomResponse=function(g,G){if(this.sessionId=g.session,null!=g.customIceServers&&g.customIceServers.length>0){this.openvidu.iceServers=[];for(var Y=0,x=g.customIceServers;Y<x.length;Y++){var H=x[Y],K={urls:[H.url]};T.log("STUN/TURN server IP: "+H.url),null!=H.username&&null!=H.credential&&(K.username=H.username,K.credential=H.credential,T.log("TURN credentials ["+H.username+":"+H.credential+"]")),this.openvidu.iceServers.push(K)}}this.openvidu.role=g.role,this.openvidu.finalUserId=g.finalUserId,this.openvidu.mediaServer=g.mediaServer,this.openvidu.videoSimulcast=g.videoSimulcast,this.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==this.openvidu.role,forceUnpublish:"MODERATOR"===this.openvidu.role,forceDisconnect:"MODERATOR"===this.openvidu.role},T.info("openvidu-server version: "+g.version),null!=g.life&&(this.openvidu.life=g.life);var me=k(g.version)-k(this.openvidu.libraryVersion);p(g.version)!==p(this.openvidu.libraryVersion)||0!=me&&1!=me?T.error("openvidu-browser (".concat(this.openvidu.libraryVersion,") and openvidu-server (").concat(g.version,") versions are incompatible. ")+"Errors are likely to occur. openvidu-browser SDK is only compatible with the same version or the immediately following minor version of an OpenVidu deployment"):1==me&&T.warn("openvidu-browser version ".concat(this.openvidu.libraryVersion," does not match openvidu-server version ").concat(g.version,". ")+"These versions are still compatible with each other, but openvidu-browser version must be updated as soon as possible to ".concat(p(g.version),".").concat(k(g.version),".x. ")+"This client using openvidu-browser ".concat(this.openvidu.libraryVersion," will become incompatible with the next release of openvidu-server")),Z.OpenViduLogger.configureJSNLog(this.openvidu,G),this.token=G},ae}(_.EventDispatcher);P.Session=J},2096:function(Ae,P,B){"use strict";var N=this&&this.__awaiter||function(M,p,k,te){return new(k||(k=Promise))(function(R,J){function re(G){try{g(te.next(G))}catch(Y){J(Y)}}function ae(G){try{g(te.throw(G))}catch(Y){J(Y)}}function g(G){G.done?R(G.value):function T(R){return R instanceof k?R:new k(function(J){J(R)})}(G.value).then(re,ae)}g((te=te.apply(M,p||[])).next())})},$=this&&this.__generator||function(M,p){var te,T,R,J,k={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return J={next:re(0),throw:re(1),return:re(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function re(g){return function(G){return function ae(g){if(te)throw new TypeError("Generator is already executing.");for(;J&&(J=0,g[0]&&(k=0)),k;)try{if(te=1,T&&(R=2&g[0]?T.return:g[0]?T.throw||((R=T.return)&&R.call(T),0):T.next)&&!(R=R.call(T,g[1])).done)return R;switch(T=0,R&&(g=[2&g[0],R.value]),g[0]){case 0:case 1:R=g;break;case 4:return k.label++,{value:g[1],done:!1};case 5:k.label++,T=g[1],g=[0];continue;case 7:g=k.ops.pop(),k.trys.pop();continue;default:if(!(R=(R=k.trys).length>0&&R[R.length-1])&&(6===g[0]||2===g[0])){k=0;continue}if(3===g[0]&&(!R||g[1]>R[0]&&g[1]<R[3])){k.label=g[1];break}if(6===g[0]&&k.label<R[1]){k.label=R[1],R=g;break}if(R&&k.label<R[2]){k.label=R[2],k.ops.push(g);break}R[2]&&k.ops.pop(),k.trys.pop();continue}g=p.call(M,k)}catch(G){g=[6,G],T=0}finally{te=R=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,G])}}};Object.defineProperty(P,"__esModule",{value:!0}),P.Stream=void 0;var F,j=B(4540),y=B(1758),b=B(4641),S=B(2102),_=B(7507),m=B(805),D=B(4006),C=B(2798),q=B(4103),ee=B(5913),I=B(6946),L=B(543),Q=B(4816),W=B(5164),E=B(940),v=I.OpenViduLogger.getInstance(),Z=function(){function M(p,k){var te=this;this.isSubscribeToRemote=!1,this.isLocalStreamReadyToPublish=!1,this.isLocalStreamPublished=!1,this.publishedOnce=!1,this.harkSpeakingEnabled=!1,this.harkSpeakingEnabledOnce=!1,this.harkStoppedSpeakingEnabled=!1,this.harkStoppedSpeakingEnabledOnce=!1,this.harkVolumeChangeEnabled=!1,this.harkVolumeChangeEnabledOnce=!1,this.ee=new E,F=L.PlatformUtils.getInstance(),this.session=p,k.hasOwnProperty("id")?(this.inboundStreamOpts=k,this.streamId=this.inboundStreamOpts.id,this.creationTime=this.inboundStreamOpts.createdAt,this.hasAudio=this.inboundStreamOpts.hasAudio,this.hasVideo=this.inboundStreamOpts.hasVideo,this.hasAudio&&(this.audioActive=this.inboundStreamOpts.audioActive),this.hasVideo&&(this.videoActive=this.inboundStreamOpts.videoActive,this.typeOfVideo=this.inboundStreamOpts.typeOfVideo?this.inboundStreamOpts.typeOfVideo:void 0,this.frameRate=-1===this.inboundStreamOpts.frameRate?void 0:this.inboundStreamOpts.frameRate,this.videoDimensions=this.inboundStreamOpts.videoDimensions),!!this.inboundStreamOpts.filter&&Object.keys(this.inboundStreamOpts.filter).length>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=k,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?ee.TypeOfVideo.CUSTOM:this.isSendScreen()?ee.TypeOfVideo.SCREEN:ee.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var T;te.streamManager.updateMediaStream(te.mediaStream),v.debug("Video srcObject ["+(null===(T=te.mediaStream)||void 0===T?void 0:T.id)+"] updated in stream ["+te.streamId+"]")})}return M.prototype.reconnect=function(){return this.reconnectStream("API")},M.prototype.applyFilter=function(p,k){var te=this;return new Promise(function(T,R){return N(te,void 0,void 0,function(){var J,re,ae,g,G,Y,x=this;return $(this,function(H){if(this.filter)return[2,R(new q.OpenViduError(q.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(J=function(K,me){if(K)return v.error("Error applying filter for Stream "+x.streamId,K),R(401===K.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):K);v.info("Filter successfully applied on Stream "+x.streamId);var le=x.filter;return x.filter=new j.Filter(p,k),x.filter.stream=x,me&&(x.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(x.session,x,"filter",x.filter,le,"applyFilter")]),x.streamManager.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(x.streamManager,x,"filter",x.filter,le,"applyFilter")])),T(x.filter)},p.startsWith("VB:")){if(!this.hasVideo)return[2,R(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,R(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(!(re=this.session.token?this.session.token:k.token))return[2,R(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"!==(ae=this.session.getTokenParams(re)).edition&&"enterprise"!==ae.edition)return[2,R(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];re=encodeURIComponent(btoa(re)),v.info("Applying Virtual Background to stream "+this.streamId),g=function(){return N(x,void 0,void 0,function(){var K,me,le,ce,De,Be;return $(this,function(ze){switch(ze.label){case 0:return ze.trys.push([0,8,,9]),K=this.streamId+"_"+(0,Q.v4)(),me=this.mediaStream.clone(),(le=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+K,le.srcObject=me,le.muted=!0,this.virtualBackgroundSourceElements={videoClone:le,mediaStreamClone:me},VirtualBackground.VirtualBackground.hideHtmlElement(le,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(le,K),[4,le.play()];case 1:switch(ze.sent(),ce=new VirtualBackground.VirtualBackground({id:K,openviduServerUrl:new URL(ae.httpUri),openviduToken:re,inputVideo:le,inputResolution:"160x96",outputFramerate:24}),De=void 0,p){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,ce.backgroundBlur(k)];case 3:case 5:return De=ze.sent(),[3,7];case 4:return[4,ce.backgroundImage(k)];case 6:throw new Error("Unknown Virtual Background filter: "+p);case 7:return this.virtualBackgroundSinkElements={VB:ce,video:De},le.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),J(void 0,!1),[3,9];case 8:return Be=ze.sent(),J(Be.name===q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Be.message):Be,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((G=document.createElement("script")).type="text/javascript",G.src=ae.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+re,G.onload=function(){return N(x,void 0,void 0,function(){var K;return $(this,function(me){switch(me.label){case 0:return me.trys.push([0,2,,3]),[4,g()];case 1:return me.sent(),T(new j.Filter(p,k)),[3,3];case 2:return K=me.sent(),R(K),[3,3];case 3:return[2]}})})},document.body.appendChild(G)):g().then(function(){return T(new j.Filter(p,k))}).catch(function(K){return R(K)})}else{if(!this.session.sessionConnected())return[2,R(this.session.notConnectedError())];v.info("Applying server filter to stream "+this.streamId),"string"!=typeof(Y=k=null!=k?k:{})&&(Y=JSON.stringify(Y)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:p,options:Y},function(K,me){J(K,!0)})}return[2]})})})},M.prototype.removeFilter=function(){return N(this,void 0,void 0,function(){return $(this,function(p){switch(p.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,p.sent()]}})})},M.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},M.prototype.getMediaStream=function(){return this.mediaStream},M.prototype.removeFilterAux=function(p){var k=this;return new Promise(function(te,T){return N(k,void 0,void 0,function(){var R,J,re,g,ae=this;return $(this,function(G){switch(G.label){case 0:if(R=function(Y,x){if(Y)return delete ae.filter,v.error("Error removing filter for Stream "+ae.streamId,Y),T(401===Y.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):Y);v.info("Filter successfully removed from Stream "+ae.streamId);var H=ae.filter;return delete ae.filter,x&&(ae.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(ae.session,ae,"filter",ae.filter,H,"applyFilter")]),ae.streamManager.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(ae.streamManager,ae,"filter",ae.filter,H,"applyFilter")])),te()},!this.filter)return[3,11];if(null===(g=this.filter)||void 0===g||!g.type.startsWith("VB:"))return[3,9];G.label=1;case 1:return G.trys.push([1,7,,8]),J=this.virtualBackgroundSourceElements.mediaStreamClone,p?[3,5]:this.streamManager.remote?(this.streamManager.replaceTrackInMediaStream(J.getVideoTracks()[0],!1),[3,4]):[3,2];case 2:return[4,this.streamManager.replaceTrackAux(J.getVideoTracks()[0],!1)];case 3:G.sent(),G.label=4;case 4:return[3,6];case 5:J.getTracks().forEach(function(Y){return Y.stop()}),G.label=6;case 6:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,R(void 0,!1)];case 7:return re=G.sent(),[2,R(re,!1)];case 8:return[3,10];case 9:if(!this.session.sessionConnected())return[2,T(this.session.notConnectedError())];v.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(Y,x){return R(Y,!0)}),G.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]}})})})},M.prototype.setMediaStream=function(p){this.mediaStream=p},M.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},M.prototype.getWebRtcPeer=function(){return this.webRtcPeer},M.prototype.subscribeToMyRemote=function(p){this.isSubscribeToRemote=p},M.prototype.setOutboundStreamOptions=function(p){this.outboundStreamOpts=p},M.prototype.subscribe=function(){var p=this;return new Promise(function(k,te){p.initWebRtcPeerReceive(!1).then(function(){return k()}).catch(function(T){return te(T)})})},M.prototype.publish=function(){var p=this;return new Promise(function(k,te){p.isLocalStreamReadyToPublish?p.initWebRtcPeerSend(!1).then(function(){return k()}).catch(function(T){return te(T)}):p.ee.once("stream-ready-to-publish",function(){p.publish().then(function(){return k()}).catch(function(T){return te(T)})})})},M.prototype.disposeWebRtcPeer=function(){var p;this.webRtcPeer&&(this.webRtcPeer.dispose(),p=this.webRtcPeer.getId()),this.stopWebRtcStats(),v.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+p+"] from 'Stream' with id ["+this.streamId+"] is now closed")},M.prototype.disposeMediaStream=function(){return N(this,void 0,void 0,function(){var p;return $(this,function(k){switch(k.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];k.label=1;case 1:return k.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return k.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return p=k.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),p),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(te){te.stop()}),this.mediaStream.getVideoTracks().forEach(function(te){te.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(te){te.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(te){te.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),v.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},M.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},M.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},M.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},M.prototype.isSendScreen=function(){var p="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return F.isElectron()&&(p="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&p},M.prototype.enableHarkSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){p.session.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStartSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStartSpeaking",p.connection,p.streamId)]),p.harkSpeakingEnabledOnce=!1}))},M.prototype.enableOnceHarkSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){p.harkSpeakingEnabledOnce&&(p.session.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStartSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStartSpeaking",p.connection,p.streamId)])),p.disableHarkSpeakingEvent(!0)}))},M.prototype.disableHarkSpeakingEvent=function(p){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,p){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)}},M.prototype.enableHarkStoppedSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){p.session.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStopSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStopSpeaking",p.connection,p.streamId)]),p.harkStoppedSpeakingEnabledOnce=!1}))},M.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){p.harkStoppedSpeakingEnabledOnce&&(p.session.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStopSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStopSpeaking",p.connection,p.streamId)])),p.disableHarkStoppedSpeakingEvent(!0)}))},M.prototype.disableHarkStoppedSpeakingEvent=function(p){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,p){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)}},M.prototype.enableHarkVolumeChangeEvent=function(p){var k=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||p)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(te){var R={newValue:te,oldValue:k.speechEvent.oldVolumeValue};k.speechEvent.oldVolumeValue=te,k.streamManager.emitEvent("streamAudioVolumeChange",[new D.StreamManagerEvent(k.streamManager,"streamAudioVolumeChange",R)])})):this.harkVolumeChangeEnabled=!0},M.prototype.enableOnceHarkVolumeChangeEvent=function(p){var k=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||p)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(te){var R={newValue:te,oldValue:k.speechEvent.oldVolumeValue};k.speechEvent.oldVolumeValue=te,k.disableHarkVolumeChangeEvent(!0),k.streamManager.emitEvent("streamAudioVolumeChange",[new D.StreamManagerEvent(k.streamManager,"streamAudioVolumeChange",R)])})):this.harkVolumeChangeEnabledOnce=!0},M.prototype.disableHarkVolumeChangeEvent=function(p){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,p){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)}},M.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},M.prototype.getSelectedIceCandidate=function(){var p=this;return new Promise(function(k,te){p.webRtcStats.getSelectedIceCandidateInfo().then(function(T){return k(T)}).catch(function(T){return te(T)})})},M.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},M.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},M.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return v.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var p=this.getRTCPeerConnection().iceConnectionState;return"connected"!==p&&"completed"!==p},M.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var p=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};p.interval="number"==typeof p.interval?p.interval:100,p.threshold="number"==typeof p.threshold?p.threshold:-50,this.speechEvent=W(this.mediaStream,p)}return!0}return!1},M.prototype.setupReconnectionEventEmitter=function(p,k){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new E,!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 p()}),this.reconnectionEventEmitter.once("error",function(te){return k(te)}),!0)},M.prototype.initWebRtcPeerSend=function(p){var k=this;return new Promise(function(te,T){var R;if(p){if(k.setupReconnectionEventEmitter(te,T))return}else k.initHarkEvents();var re=function(G){var Y;return p&&(null===(Y=k.reconnectionEventEmitter)||void 0===Y||Y.emitEvent("error",[G]),delete k.reconnectionEventEmitter),T(G)},g={mediaConstraints:{audio:k.hasAudio,video:k.hasVideo},simulcast:null!==(R=k.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==R?R:k.session.openvidu.videoSimulcast,onIceCandidate:k.connection.sendIceCandidate.bind(k.connection),onIceConnectionStateException:k.onIceConnectionStateExceptionHandler.bind(k),iceServers:k.getIceServersConf(),mediaStream:k.mediaStream,mediaServer:k.session.openvidu.mediaServer,typeOfVideo:k.typeOfVideo?ee.TypeOfVideo[k.typeOfVideo]:void 0};"mediasoup"!==k.session.openvidu.mediaServer&&(g.simulcast=!1),p&&k.disposeWebRtcPeer(),k.webRtcPeer=k.displayMyRemote()?new b.WebRtcPeerSendrecv(g):new b.WebRtcPeerSendonly(g),k.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+k.connection.connectionId),k.webRtcPeer.createOffer().then(function(G){k.webRtcPeer.processLocalOffer(G).then(function(){!function(G){v.debug("Sending SDP offer to publish as "+k.streamId,G);var x,Y=p?"reconnectStream":"publishVideo";if(p)x={stream:k.streamId,sdpString:G};else{var H=void 0;k.isSendVideo()&&(H="undefined"!=typeof MediaStreamTrack&&k.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?ee.TypeOfVideo.CUSTOM:k.isSendScreen()?ee.TypeOfVideo.SCREEN:ee.TypeOfVideo.CAMERA),x={doLoopback:k.displayMyRemote()||!1,hasAudio:k.isSendAudio(),hasVideo:k.isSendVideo(),audioActive:k.audioActive,videoActive:k.videoActive,typeOfVideo:H,frameRate:k.frameRate?k.frameRate:-1,videoDimensions:JSON.stringify(k.videoDimensions),filter:k.outboundStreamOpts.publisherProperties.filter,sdpOffer:G}}k.session.openvidu.sendRequest(Y,x,function(K,me){K?re(401===K.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(K)):k.webRtcPeer.processRemoteAnswer(me.sdpAnswer).then(function(){k.streamId=me.id,k.creationTime=me.createdAt,k.isLocalStreamPublished=!0,k.publishedOnce=!0,k.displayMyRemote()&&(k.localMediaStreamWhenSubscribedToRemote=k.mediaStream,k.remotePeerSuccessfullyEstablished(p)),k.ee.emitEvent(p?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),k.initWebRtcStats(),v.info("'Publisher' ("+k.streamId+") successfully "+(p?"reconnected":"published")+" to session"),function(){var G;p&&(null===(G=k.reconnectionEventEmitter)||void 0===G||G.emitEvent("success"),delete k.reconnectionEventEmitter),te()}()}).catch(function(le){re(le)})})}(G.sdp)}).catch(function(Y){re(new Error("(publish) SDP process local offer error: "+JSON.stringify(Y)))})}).catch(function(G){re(new Error("(publish) SDP create offer error: "+JSON.stringify(G)))})})},M.prototype.finalResolveForSubscription=function(p,k){var te;return v.info("'Subscriber' ("+this.streamId+") successfully "+(p?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(p),this.initWebRtcStats(),p&&(null===(te=this.reconnectionEventEmitter)||void 0===te||te.emitEvent("success"),delete this.reconnectionEventEmitter),k()},M.prototype.finalRejectForSubscription=function(p,k,te){var T;return v.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(p?"reconnect":"subscribe")+": "+k.toString()),p&&(null===(T=this.reconnectionEventEmitter)||void 0===T||T.emitEvent("error",[k]),delete this.reconnectionEventEmitter),te(k)},M.prototype.initWebRtcPeerReceive=function(p){var k=this;return new Promise(function(te,T){p&&k.setupReconnectionEventEmitter(te,T)||("mediasoup"===k.session.openvidu.mediaServer?k.initWebRtcPeerReceiveFromServer(p).then(function(){return k.finalResolveForSubscription(p,te)}).catch(function(R){return k.finalRejectForSubscription(p,R,T)}):k.initWebRtcPeerReceiveFromClient(p).then(function(){return k.finalResolveForSubscription(p,te)}).catch(function(R){return k.finalRejectForSubscription(p,R,T)}))})},M.prototype.initWebRtcPeerReceiveFromClient=function(p){var k=this;return new Promise(function(te,T){k.completeWebRtcPeerReceive(p,!1).then(function(R){k.webRtcPeer.processRemoteAnswer(R.sdpAnswer).then(function(){return te()}).catch(function(J){return T(J)})}).catch(function(R){return T(R)})})},M.prototype.initWebRtcPeerReceiveFromServer=function(p){var k=this;return new Promise(function(te,T){k.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:k.streamId,reconnect:p},function(R,J){if(R)return T(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(R)));k.completeWebRtcPeerReceive(p,!1,J.sdpOffer).then(function(){return te()}).catch(function(re){return T(re)})})})},M.prototype.completeWebRtcPeerReceive=function(p,k,te){var T=this;return new Promise(function(R,J){v.debug("'Session.subscribe(Stream)' called");var re=function(g){v.debug("Sending local SDP ".concat(te?"answer":"offer"," to subscribe to ").concat(T.streamId),g);var G=p?"reconnectStream":"receiveVideoFrom",Y={};Y[p?"stream":"sender"]=T.streamId,te?Y[p?"sdpString":"sdpAnswer"]=g:Y.sdpOffer=g,p&&(Y.forciblyReconnect=k),T.session.openvidu.sendRequest(G,Y,function(x,H){return x?J(new Error("Error on "+G+" : "+JSON.stringify(x))):R(H)})},ae={mediaConstraints:{audio:T.hasAudio,video:T.hasVideo},simulcast:!1,onIceCandidate:T.connection.sendIceCandidate.bind(T.connection),onIceConnectionStateException:T.onIceConnectionStateExceptionHandler.bind(T),iceServers:T.getIceServersConf(),mediaServer:T.session.openvidu.mediaServer,typeOfVideo:T.typeOfVideo?ee.TypeOfVideo[T.typeOfVideo]:void 0};p&&T.disposeWebRtcPeer(),T.webRtcPeer=new b.WebRtcPeerRecvonly(ae),T.webRtcPeer.addIceConnectionStateChangeListener(T.streamId),te?T.webRtcPeer.processRemoteOffer(te).then(function(){T.webRtcPeer.createAnswer().then(function(g){T.webRtcPeer.processLocalAnswer(g).then(function(){re(g.sdp)}).catch(function(G){return J(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(G)))})}).catch(function(g){return J(new Error("(subscribe) SDP create answer error: "+JSON.stringify(g)))})}).catch(function(g){return J(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(g)))}):T.webRtcPeer.createOffer().then(function(g){T.webRtcPeer.processLocalOffer(g).then(function(){re(g.sdp)}).catch(function(G){return J(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(G)))})}).catch(function(g){return J(new Error("(subscribe) SDP create offer error: "+JSON.stringify(g)))})})},M.prototype.remotePeerSuccessfullyEstablished=function(p){p&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var k,te=0,T=this.webRtcPeer.pc.getReceivers();te<T.length;te++)(k=T[te]).track&&this.mediaStream.addTrack(k.track);if(v.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof y.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var R=p?this.audioActive:!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=R}this.mediaStream.getVideoTracks()[0]&&(R=p?this.videoActive:!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=R)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},M.prototype.initHarkEvents=function(){this.mediaStream.getAudioTracks()[0]&&(this.session.anySpeechEventListenerEnabled("publisherStartSpeaking",!0,this.streamManager)&&this.enableOnceHarkSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.streamManager)&&this.enableHarkSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStopSpeaking",!0,this.streamManager)&&this.enableOnceHarkStoppedSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.streamManager)&&this.enableHarkStoppedSpeakingEvent(),this.harkVolumeChangeEnabledOnce&&this.enableOnceHarkVolumeChangeEvent(!0),this.harkVolumeChangeEnabled&&this.enableHarkVolumeChangeEvent(!0))},M.prototype.onIceConnectionStateExceptionHandler=function(p,k,te){switch(p){case _.ExceptionEventName.ICE_CONNECTION_FAILED:this.onIceConnectionFailed();break;case _.ExceptionEventName.ICE_CONNECTION_DISCONNECTED:this.onIceConnectionDisconnected()}this.session.emitEvent("exception",[new _.ExceptionEvent(this.session,p,this,k,te)])},M.prototype.onIceConnectionFailed=function(){v.log("[ICE_CONNECTION_FAILED] Handling ICE_CONNECTION_FAILED event. Reconnecting stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",")")),this.reconnectStreamAndLogResultingIceConnectionState(_.ExceptionEventName.ICE_CONNECTION_FAILED)},M.prototype.onIceConnectionDisconnected=function(){var p=this;v.log("[ICE_CONNECTION_DISCONNECTED] Handling ICE_CONNECTION_DISCONNECTED event. Waiting for ICE to be restored and reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") if not possible"));var k=this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3;this.awaitWebRtcPeerConnectionState(k).then(function(te){switch(te){case"failed":v.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") is now failed after ICE_CONNECTION_DISCONNECTED"));break;case"connected":case"completed":v.log("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") automatically restored after ICE_CONNECTION_DISCONNECTED. Current ICE connection state: ").concat(te));break;case"closed":case"checking":case"new":case"disconnected":v.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") couldn't be restored after ICE_CONNECTION_DISCONNECTED event. Current ICE connection state after ").concat(k," ms: ").concat(te)),p.reconnectStreamAndLogResultingIceConnectionState(_.ExceptionEventName.ICE_CONNECTION_DISCONNECTED)}})},M.prototype.reconnectStreamAndLogResultingIceConnectionState=function(p){return N(this,void 0,void 0,function(){var k,te;return $(this,function(T){switch(T.label){case 0:return T.trys.push([0,2,,3]),[4,this.reconnectStreamAndReturnIceConnectionState(p)];case 1:switch(k=T.sent()){case"connected":case"completed":v.log("[".concat(p,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") successfully reconnected after ").concat(p,". Current ICE connection state: ").concat(k));break;default:v.error("[".concat(p,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") failed to reconnect after ").concat(p,". Current ICE connection state: ").concat(k))}return[3,3];case 2:return te=T.sent(),v.error("[".concat(p,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after ").concat(p,": ").concat(te)),[3,3];case 3:return[2]}})})},M.prototype.reconnectStreamAndReturnIceConnectionState=function(p){return N(this,void 0,void 0,function(){var te;return $(this,function(T){switch(T.label){case 0:v.log("[".concat(p,"] Reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after event ").concat(p)),T.label=1;case 1:return T.trys.push([1,3,,4]),[4,this.reconnectStream(p)];case 2:return T.sent(),[2,this.awaitWebRtcPeerConnectionState(this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3)];case 3:return te=T.sent(),v.warn("[".concat(p,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber","). Reason: ").concat(te)),[2,this.awaitWebRtcPeerConnectionState(1)];case 4:return[2]}})})},M.prototype.awaitWebRtcPeerConnectionState=function(p){return N(this,void 0,void 0,function(){var k,te,T,R;return $(this,function(J){switch(J.label){case 0:k=this.getRTCPeerConnection().iceConnectionState,te=150,T=Math.ceil(p/te),R=0,J.label=1;case 1:return R<T?"connected"===(k=this.getRTCPeerConnection().iceConnectionState)||"completed"===k?[3,4]:[4,new Promise(function(re){return setTimeout(re,te)})]:[3,4];case 2:J.sent(),J.label=3;case 3:return R++,[3,1];case 4:return[2,k]}})})},M.prototype.reconnectStream=function(p){return N(this,void 0,void 0,function(){var te;return $(this,function(T){switch(T.label){case 0:return[4,this.isWebsocketConnected(p,3e3)];case 1:if(T.sent())return v.log("[".concat(p,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") and the websocket is opened")),this.isLocal()?[2,this.initWebRtcPeerSend(!0)]:[2,this.initWebRtcPeerReceive(!0)];throw te="[".concat(p,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but the websocket wasn't opened"),v.error(te),Error(te)}})})},M.prototype.isWebsocketConnected=function(p,k){var te=this;return new Promise(function(T,R){var J=te.session.openvidu.getWsReadyState();if(1!==J)return console.warn("[".concat(p,"] Websocket readyState is ").concat(J)),T(!1);var re=setTimeout(function(){return console.warn("[".concat(p,"] Websocket timeout of ").concat(k,"ms")),T(!1)},k);te.session.openvidu.sendRequest("echo",{},function(ae,g){return clearTimeout(re),ae?(console.warn("[".concat(p,"] Websocket 'echo' returned error: ").concat(ae)),T(!1)):T(!0)})})},M.prototype.initWebRtcStats=function(){this.webRtcStats=new S.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},M.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},M.prototype.getIceServersConf=function(){return this.session.openvidu.advancedConfiguration.iceServers?"freeice"===this.session.openvidu.advancedConfiguration.iceServers?void 0:this.session.openvidu.advancedConfiguration.iceServers:this.session.openvidu.iceServers?this.session.openvidu.iceServers:void 0},M.prototype.gatherStatsForPeer=function(){var p=this;return new Promise(function(k,te){p.isLocal()?p.getRTCPeerConnection().getSenders().forEach(function(T){return T.getStats().then(function(R){R.forEach(function(J){if(p.isReportWanted(J)){var re={};re.type=J.type,re.timestamp=J.timestamp,re.id=J.id,"outbound-rtp"===J.type&&(re.ssrc=J.ssrc,re.firCount=J.firCount,re.pliCount=J.pliCount,re.nackCount=J.nackCount,re.qpSum=J.qpSum,re.mediaType=J.kind?J.kind:J.mediaType?J.mediaType:-1!==J.id.indexOf("VideoStream")?"video":"audio","video"===re.mediaType&&(re.framesEncoded=J.framesEncoded),re.packetsSent=J.packetsSent,re.bytesSent=J.bytesSent),"candidate-pair"===J.type&&void 0!==J.totalRoundTripTime&&(re.availableOutgoingBitrate=J.availableOutgoingBitrate,re.rtt=J.currentRoundTripTime,re.averageRtt=J.totalRoundTripTime/J.responsesReceived),v.log(re)}})})}):p.getRTCPeerConnection().getReceivers().forEach(function(T){return T.getStats().then(function(R){R.forEach(function(J){if(p.isReportWanted(J)){var re={};re.type=J.type,re.timestamp=J.timestamp,re.id=J.id,"inbound-rtp"===J.type&&(re.ssrc=J.ssrc,re.firCount=J.firCount,re.pliCount=J.pliCount,re.nackCount=J.nackCount,re.qpSum=J.qpSum,re.mediaType=J.kind?J.kind:J.mediaType?J.mediaType:-1!==J.id.indexOf("VideoStream")?"video":"audio","video"===re.mediaType&&(re.framesDecoded=J.framesDecoded),re.packetsReceived=J.packetsReceived,re.packetsLost=J.packetsLost,re.jitter=J.jitter,re.bytesReceived=J.bytesReceived),"candidate-pair"===J.type&&void 0!==J.totalRoundTripTime&&(re.availableIncomingBitrate=J.availableIncomingBitrate,re.rtt=J.currentRoundTripTime,re.averageRtt=J.totalRoundTripTime/J.responsesReceived),v.log(re)}})})})})},M.prototype.isReportWanted=function(p){return"inbound-rtp"===p.type&&!this.isLocal()||"outbound-rtp"===p.type&&this.isLocal()||"candidate-pair"===p.type&&p.nominated&&p.bytesSent>0},M}();P.Stream=Z},8613:function(Ae,P,B){"use strict";var ee,N=this&&this.__extends||(ee=function(I,L){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,W){Q.__proto__=W}||function(Q,W){for(var E in W)Object.prototype.hasOwnProperty.call(W,E)&&(Q[E]=W[E])})(I,L)},function(I,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function Q(){this.constructor=I}ee(I,L),I.prototype=null===L?Object.create(L):(Q.prototype=L.prototype,new Q)});Object.defineProperty(P,"__esModule",{value:!0}),P.StreamManager=void 0;var C,$=B(8074),j=B(4006),y=B(4281),b=B(7507),S=B(6274),_=B(6946),m=B(543),D=_.OpenViduLogger.getInstance(),q=function(ee){function I(L,Q){var W=ee.call(this)||this;if(W.videos=[],W.lazyLaunchVideoElementCreatedEvent=!1,C=m.PlatformUtils.getInstance(),W.stream=L,W.stream.streamManager=W,W.remote=!W.stream.isLocal(),Q){var E=void 0;"string"==typeof Q?E=document.getElementById(Q):Q instanceof HTMLElement&&(E=Q),E&&(W.firstVideoElement={targetElement:E,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(C.isSafariBrowser()||C.isIPhoneOrIPad()&&(C.isChromeMobileBrowser()||C.isEdgeMobileBrowser()||C.isOperaMobileBrowser()||C.isFirefoxMobileBrowser()))&&(W.firstVideoElement.video.playsInline=!0),W.targetElement=E,W.element=E)}return W.canPlayListener=function(){W.deactivateStreamPlayingEventExceptionTimeout(),W.ee.emitEvent("streamPlaying",[new j.StreamManagerEvent(W,"streamPlaying",void 0)])},W}return N(I,ee),I.prototype.on=function(L,Q){return ee.prototype.onAux.call(this,L,"Event '"+L+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",Q),"videoElementCreated"===L&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===L&&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 j.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===L&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===L&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===L&&this.stream.enableHarkVolumeChangeEvent(!1)),this},I.prototype.once=function(L,Q){return ee.prototype.onceAux.call(this,L,"Event '"+L+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",Q),"videoElementCreated"===L&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===L&&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 j.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===L&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===L&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===L&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},I.prototype.off=function(L,Q){return ee.prototype.offAux.call(this,L,Q),"publisherStartSpeaking"===L&&0===this.ee.getListeners(L).length+this.stream.session.ee.getListeners(L).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===L&&0===this.ee.getListeners(L).length+this.stream.session.ee.getListeners(L).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===L&&0===this.ee.getListeners(L).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},I.prototype.addVideoElement=function(L){this.initializeVideoProperties(L),!this.remote&&this.stream.displayMyRemote()&&L.srcObject!==this.stream.getMediaStream()&&(L.srcObject=this.stream.getMediaStream());for(var Q=0,W=this.videos;Q<W.length;Q++)if(W[Q].video===L)return 0;for(var v=1,F=0,Z=this.stream.session.streamManagers;F<Z.length;F++)if(Z[F].disassociateVideo(L)){v=-1;break}return this.stream.session.streamManagers.forEach(function(p){p.disassociateVideo(L)}),this.pushNewStreamManagerVideo({video:L,id:L.id,canplayListenerAdded:!1}),D.info("New video element associated to ",this),v},I.prototype.createVideoElement=function(L,Q){var W;if("string"==typeof L){if(!(W=document.getElementById(L)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+L)}else{if(!(L instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+L);W=L}var E=this.createVideo();this.initializeVideoProperties(E);var v=Q||S.VideoInsertMode.APPEND;switch(v){case S.VideoInsertMode.AFTER:W.parentNode.insertBefore(E,W.nextSibling);break;case S.VideoInsertMode.APPEND:W.appendChild(E);break;case S.VideoInsertMode.BEFORE:W.parentNode.insertBefore(E,W);break;case S.VideoInsertMode.PREPEND:W.insertBefore(E,W.childNodes[0]);break;case S.VideoInsertMode.REPLACE:W.parentNode.replaceChild(E,W);break;default:v=S.VideoInsertMode.APPEND,W.appendChild(E)}var F={targetElement:W,video:E,insertMode:v,id:E.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(F),this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(F.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,E},I.prototype.updatePublisherSpeakingEventsOptions=function(L){var Q=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},W="number"==typeof L.interval?L.interval:"number"==typeof Q.interval?Q.interval:100,E="number"==typeof L.threshold?L.threshold:"number"==typeof Q.threshold?Q.threshold:-50;this.stream.harkOptions={interval:W,threshold:E},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(W),this.stream.speechEvent.setThreshold(E))},I.prototype.initializeVideoProperties=function(L){!this.remote&&this.stream.displayMyRemote()||L.srcObject!==this.stream.getMediaStream()&&(L.srcObject=this.stream.getMediaStream()),L.autoplay=!0,L.controls=!1,(C.isSafariBrowser()||C.isIPhoneOrIPad()&&(C.isChromeMobileBrowser()||C.isEdgeMobileBrowser()||C.isOperaMobileBrowser()||C.isFirefoxMobileBrowser()))&&(L.playsInline=!0),L.id||(L.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&!!this.targetElement&&(this.id=L.id)),this.remote&&this.isMirroredVideo(L)?this.removeMirrorVideo(L):!this.remote&&!this.stream.displayMyRemote()&&(L.muted=!0,this.isMirroredVideo(L)&&!this.stream.outboundStreamOpts.publisherProperties.mirror?this.removeMirrorVideo(L):this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(L))},I.prototype.removeAllVideos=function(){for(var L=this,Q=this.stream.session.streamManagers.length-1;Q>=0;--Q)this.stream.session.streamManagers[Q]===this&&this.stream.session.streamManagers.splice(Q,1);this.videos.forEach(function(W){!!W.video&&!!W.video.removeEventListener&&W.video.removeEventListener("canplay",L.canPlayListener),W.canplayListenerAdded=!1,W.targetElement&&(W.video.parentNode.removeChild(W.video),L.ee.emitEvent("videoElementDestroyed",[new y.VideoElementEvent(W.video,L,"videoElementDestroyed")])),L.removeSrcObject(W),L.videos.filter(function(E){return!E.targetElement})})},I.prototype.disassociateVideo=function(L){for(var Q=!1,W=0;W<this.videos.length;W++)if(this.videos[W].video===L){this.videos[W].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(W,1),Q=!0,D.info("Video element disassociated from ",this);break}return Q},I.prototype.addPlayEventToFirstVideo=function(){this.videos[0]&&this.videos[0].video&&!this.videos[0].canplayListenerAdded&&(this.activateStreamPlayingEventExceptionTimeout(),this.videos[0].video.addEventListener("canplay",this.canPlayListener),this.videos[0].canplayListenerAdded=!0)},I.prototype.updateMediaStream=function(L){this.videos.forEach(function(Q){if(Q.video.srcObject=L,C.isIonicIos()){var E=Q.video;Q.video.parentElement.replaceChild(E,Q.video),Q.video=E}})},I.prototype.emitEvent=function(L,Q){this.ee.emitEvent(L,Q)},I.prototype.createVideo=function(){return document.createElement("video")},I.prototype.removeSrcObject=function(L){L.video.srcObject=null,this.deactivateStreamPlayingEventExceptionTimeout()},I.prototype.pushNewStreamManagerVideo=function(L){this.videos.push(L),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},I.prototype.mirrorVideo=function(L){C.isIonicIos()||(L.style.transform="rotateY(180deg)",L.style.webkitTransform="rotateY(180deg)")},I.prototype.removeMirrorVideo=function(L){L.style.transform="unset",L.style.webkitTransform="unset"},I.prototype.isMirroredVideo=function(L){return"rotateY(180deg)"===L.style.transform||"rotateY(180deg)"===L.style.webkitTransform},I.prototype.activateStreamPlayingEventExceptionTimeout=function(){var L=this;if(this.remote&&null==this.streamPlayingEventExceptionTimeout){var Q=this.stream.session.openvidu.advancedConfiguration.noStreamPlayingEventExceptionTimeout||4e3;this.streamPlayingEventExceptionTimeout=setTimeout(function(){var W="StreamManager of Stream "+L.stream.streamId+" ("+(L.remote?"Subscriber":"Publisher")+') did not trigger "streamPlaying" event in '+Q+" ms";D.warn(W),L.stream.session.emitEvent("exception",[new b.ExceptionEvent(L.stream.session,b.ExceptionEventName.NO_STREAM_PLAYING_EVENT,L,W)]),delete L.streamPlayingEventExceptionTimeout},Q)}},I.prototype.deactivateStreamPlayingEventExceptionTimeout=function(){clearTimeout(this.streamPlayingEventExceptionTimeout),delete this.streamPlayingEventExceptionTimeout},I}($.EventDispatcher);P.StreamManager=q},1758:function(Ae,P,B){"use strict";var S,N=this&&this.__extends||(S=function(_,m){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var q in C)Object.prototype.hasOwnProperty.call(C,q)&&(D[q]=C[q])})(_,m)},function(_,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function D(){this.constructor=_}S(_,m),_.prototype=null===m?Object.create(m):(D.prototype=m.prototype,new D)});Object.defineProperty(P,"__esModule",{value:!0}),P.Subscriber=void 0;var $=B(8613),y=B(6946).OpenViduLogger.getInstance(),b=function(S){function _(m,D,C){var q=S.call(this,m,D)||this;return q.element=q.targetElement,q.stream=m,q.properties=C,q}return N(_,S),_.prototype.subscribeToAudio=function(m){return this.stream.getMediaStream().getAudioTracks().forEach(function(D){D.enabled=m}),this.stream.audioActive=m,y.info("'Subscriber' has "+(m?"subscribed to":"unsubscribed from")+" its audio stream"),this},_.prototype.subscribeToVideo=function(m){return this.stream.getMediaStream().getVideoTracks().forEach(function(D){D.enabled=m}),this.stream.videoActive=m,y.info("'Subscriber' has "+(m?"subscribed to":"unsubscribed from")+" its video stream"),this},_.prototype.replaceTrackInMediaStream=function(m,D){var q,C=this.stream.getMediaStream();"video"===m.kind?(q=C.getVideoTracks()[0],D&&(this.stream.lastVideoTrackConstraints=m.getConstraints())):q=C.getAudioTracks()[0],C.removeTrack(q),q.stop(),C.addTrack(m)},_}($.StreamManager);P.Subscriber=b},5156:(Ae,P)=>{"use strict";var N;Object.defineProperty(P,"__esModule",{value:!0}),P.LocalRecorderState=void 0,(N=P.LocalRecorderState||(P.LocalRecorderState={})).READY="READY",N.RECORDING="RECORDING",N.PAUSED="PAUSED",N.FINISHED="FINISHED"},4103:(Ae,P)=>{"use strict";var $;Object.defineProperty(P,"__esModule",{value:!0}),P.OpenViduError=P.OpenViduErrorName=void 0,($=P.OpenViduErrorName||(P.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",$.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",$.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",$.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",$.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",$.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",$.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",$.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",$.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",$.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",$.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",$.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",$.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",$.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",$.VIRTUAL_BACKGROUND_ERROR="VIRTUAL_BACKGROUND_ERROR",$.GENERIC_ERROR="GENERIC_ERROR",P.OpenViduError=function $(j,y){this.name=j,this.message=y}},5913:(Ae,P)=>{"use strict";var N;Object.defineProperty(P,"__esModule",{value:!0}),P.TypeOfVideo=void 0,(N=P.TypeOfVideo||(P.TypeOfVideo={})).CAMERA="CAMERA",N.SCREEN="SCREEN",N.CUSTOM="CUSTOM",N.IPCAM="IPCAM"},6274:(Ae,P)=>{"use strict";var N;Object.defineProperty(P,"__esModule",{value:!0}),P.VideoInsertMode=void 0,(N=P.VideoInsertMode||(P.VideoInsertMode={})).AFTER="AFTER",N.APPEND="APPEND",N.BEFORE="BEFORE",N.PREPEND="PREPEND",N.REPLACE="REPLACE"},8702:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.ConnectionEvent=void 0;var j=function(y){function b(S,_,m,D,C){var q=y.call(this,S,_,m)||this;return q.connection=D,q.reason=C,q}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.ConnectionEvent=j},865:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.ConnectionPropertyChangedEvent=void 0;var j=function(y){function b(S,_,m,D,C){var q=y.call(this,!1,S,"connectionPropertyChanged")||this;return q.connection=_,q.changedProperty=m,q.newValue=D,q.oldValue=C,q}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.ConnectionPropertyChangedEvent=j},2345:(Ae,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.Event=void 0;var B=function(){function N($,j,y){this.hasBeenPrevented=!1,this.cancelable=$,this.target=j,this.type=y}return N.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},N.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},N}();P.Event=B},7507:function(Ae,P,B){"use strict";var b,N=this&&this.__extends||(b=function(S,_){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,D){m.__proto__=D}||function(m,D){for(var C in D)Object.prototype.hasOwnProperty.call(D,C)&&(m[C]=D[C])})(S,_)},function(S,_){if("function"!=typeof _&&null!==_)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=S}b(S,_),S.prototype=null===_?Object.create(_):(m.prototype=_.prototype,new m)});Object.defineProperty(P,"__esModule",{value:!0}),P.ExceptionEvent=P.ExceptionEventName=void 0;var $=B(2345);!function(b){b.ICE_CANDIDATE_ERROR="ICE_CANDIDATE_ERROR",b.ICE_CONNECTION_FAILED="ICE_CONNECTION_FAILED",b.ICE_CONNECTION_DISCONNECTED="ICE_CONNECTION_DISCONNECTED",b.NO_STREAM_PLAYING_EVENT="NO_STREAM_PLAYING_EVENT",b.SPEECH_TO_TEXT_DISCONNECTED="SPEECH_TO_TEXT_DISCONNECTED"}(P.ExceptionEventName||(P.ExceptionEventName={}));var y=function(b){function S(_,m,D,C,q){var ee=b.call(this,!1,_,"exception")||this;return ee.name=m,ee.origin=D,ee.message=C,ee.data=q,ee}return N(S,b),S.prototype.callDefaultBehavior=function(){},S}($.Event);P.ExceptionEvent=y},2156:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.FilterEvent=void 0;var j=function(y){function b(S,_,m){var D=y.call(this,!1,S,_)||this;return D.data=m,D}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.FilterEvent=j},6237:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.NetworkQualityLevelChangedEvent=void 0;var j=function(y){function b(S,_,m,D){var C=y.call(this,!1,S,"networkQualityLevelChanged")||this;return C.newValue=_,C.oldValue=m,C.connection=D,C}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.NetworkQualityLevelChangedEvent=j},805:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.PublisherSpeakingEvent=void 0;var j=function(y){function b(S,_,m,D){var C=y.call(this,!1,S,_)||this;return C.type=_,C.connection=m,C.streamId=D,C}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.PublisherSpeakingEvent=j},7936:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.RecordingEvent=void 0;var j=function(y){function b(S,_,m,D,C){var q=y.call(this,!1,S,_)||this;return q.id=m,D!==m&&(q.name=D),q.reason=C,q}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.RecordingEvent=j},1018:function(Ae,P,B){"use strict";var S,N=this&&this.__extends||(S=function(_,m){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var q in C)Object.prototype.hasOwnProperty.call(C,q)&&(D[q]=C[q])})(_,m)},function(_,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function D(){this.constructor=_}S(_,m),_.prototype=null===m?Object.create(m):(D.prototype=m.prototype,new D)});Object.defineProperty(P,"__esModule",{value:!0}),P.SessionDisconnectedEvent=void 0;var $=B(2345),y=B(6946).OpenViduLogger.getInstance(),b=function(S){function _(m,D){var C=S.call(this,!0,m,"sessionDisconnected")||this;return C.reason=D,C}return N(_,S),_.prototype.callDefaultBehavior=function(){y.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var m=this.target;m.remoteConnections.forEach(function(D){var C,q,ee,I,L,Q,W,E,v=D.connectionId;if(null!==(C=m.remoteConnections.get(v))&&void 0!==C&&C.stream){null===(q=m.remoteConnections.get(v))||void 0===q||q.stream.disposeWebRtcPeer(),null===(ee=m.remoteConnections.get(v))||void 0===ee||ee.stream.disposeMediaStream(),null!==(I=m.remoteConnections.get(v))&&void 0!==I&&I.stream.streamManager&&(null===(L=m.remoteConnections.get(v))||void 0===L||L.stream.streamManager.removeAllVideos());var F=null===(W=null===(Q=m.remoteConnections.get(v))||void 0===Q?void 0:Q.stream)||void 0===W?void 0:W.streamId;F&&m.remoteStreamsCreated.delete(F),null===(E=m.remoteConnections.get(v))||void 0===E||E.dispose()}m.remoteConnections.delete(v)})},_}($.Event);P.SessionDisconnectedEvent=b},5785:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.SignalEvent=void 0;var j=function(y){function b(S,_,m,D){var C=y.call(this,!1,S,"signal")||this;return _&&(C.type="signal:"+_),C.data=m,C.from=D,C}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.SignalEvent=j},6282:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.SpeechToTextEvent=void 0;var j=function(y){function b(S,_,m,D,C,q){var ee=y.call(this,!1,S,"speechToTextMessage")||this;return ee.connection=_,ee.text=m,ee.reason=D,ee.raw=C,ee.lang=q,ee}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.SpeechToTextEvent=j},2299:function(Ae,P,B){"use strict";var m,N=this&&this.__extends||(m=function(D,C){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ee){q.__proto__=ee}||function(q,ee){for(var I in ee)Object.prototype.hasOwnProperty.call(ee,I)&&(q[I]=ee[I])})(D,C)},function(D,C){if("function"!=typeof C&&null!==C)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function q(){this.constructor=D}m(D,C),D.prototype=null===C?Object.create(C):(q.prototype=C.prototype,new q)});Object.defineProperty(P,"__esModule",{value:!0}),P.StreamEvent=void 0;var $=B(2345),j=B(4259),y=B(8402),S=B(6946).OpenViduLogger.getInstance(),_=function(m){function D(C,q,ee,I,L){var Q=m.call(this,C,q,ee)||this;return Q.stream=I,Q.reason=L,Q}return N(D,m),D.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof y.Session)S.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof j.Publisher){S.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var C=this.target.openvidu.publishers,q=0;q<C.length;q++)if(C[q]===this.target){C.splice(q,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),this.stream.session.remoteStreamsCreated.delete(this.stream.streamId);var ee=this.stream.session.remoteConnections.get(this.stream.connection.connectionId);if(ee&&ee.remoteOptions){var I=ee.remoteOptions.streams;for(q=I.length-1;q>=0;--q)I[q].id===this.stream.streamId&&I.splice(q,1)}}},D}($.Event);P.StreamEvent=_},4006:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.StreamManagerEvent=void 0;var j=function(y){function b(S,_,m){var D=y.call(this,!1,S,_)||this;return D.value=m,D}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.StreamManagerEvent=j},2798:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.StreamPropertyChangedEvent=void 0;var j=function(y){function b(S,_,m,D,C,q){var ee=y.call(this,!1,S,"streamPropertyChanged")||this;return ee.stream=_,ee.changedProperty=m,ee.newValue=D,ee.oldValue=C,ee.reason=q,ee}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.StreamPropertyChangedEvent=j},5810:(Ae,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0})},4281:function(Ae,P,B){"use strict";var y,N=this&&this.__extends||(y=function(b,S){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(_[D]=m[D])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function _(){this.constructor=b}y(b,S),b.prototype=null===S?Object.create(S):(_.prototype=S.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.VideoElementEvent=void 0;var j=function(y){function b(S,_,m){var D=y.call(this,!1,_,m)||this;return D.element=S,D}return N(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(2345).Event);P.VideoElementEvent=j},6842:Ae=>{function P(){var B={};this.forEach=function(N){for(var $ in B){var j=B[$];for(var y in j)N(j[y])}},this.get=function(N,$){var j=B[$];if(null!=j)return j[N]},this.remove=function(N,$){var j=B[$];if(null!=j){for(var y in delete j[N],j)return!1;delete B[$]}},this.set=function(N,$,j){if(null==N)return this.remove($,j);var y=B[j];null==y&&(B[j]=y={}),y[$]=N}}P.prototype.pop=function(B,N){var $=this.get(B,N);if(null!=$)return this.remove(B,N),$},Ae.exports=P},5150:(Ae,P,B)=>{var N=B(245);P.JsonRpcClient=N},245:(Ae,P,B)=>{var N=B(3031),$=B(7182),j=B(6946).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var b="RECONNECTING",S="CONNECTED",_="DISCONNECTED",m=j.getInstance();Ae.exports=function D(C){var E,q=this,ee=C.ws,I=-1,L=0,Q=!0,W=!1,v=_,F=ee.onreconnecting,Z=ee.onreconnected,M=ee.onconnected,p=ee.onerror;C.rpc.pull=function(g,G){G.reply(null,"push")},ee.onreconnecting=function(){m.debug("--------- ONRECONNECTING -----------"),v!==b?(ae(),v=b,F&&F()):m.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},ee.onreconnected=function(){m.debug("--------- ONRECONNECTED -----------"),v!==S?(v=S,R(),Z&&Z()):m.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},ee.onconnected=function(){m.debug("--------- ONCONNECTED -----------"),v!==S?(v=S,Q=!0,re(),M&&M()):m.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},ee.onerror=function(g){m.debug("--------- ONERROR -----------"),v=_,ae(),p&&p(g)};var k=new $(ee);m.debug("Connecting websocket to URI: "+ee.uri);var T=new N(N.packers.JsonRPC,{request_timeout:C.rpc.requestTimeout,ping_request_timeout:C.rpc.heartbeatRequestTimeout},k,function(g){m.debug("Received request: "+JSON.stringify(g));try{var G=C.rpc[g.method];void 0===G?m.error("Method "+g.method+" not registered in client"):G(g.params,g)}catch(Y){m.error("Exception processing request: "+JSON.stringify(g)),m.error(Y)}});function R(){m.debug("notReconnectIfNumLessThan = "+L+" (old="+I+")"),I=L}function J(){if(Q){var g=null;(0==L||L==I)&&(g={interval:C.heartbeat||5e3}),L++,q.send("ping",g,(G=L,function(Y,x){Y&&(m.debug("Error in ping request #"+G+" ("+Y.message+")"),G>I&&(Q=!1,R(),m.debug("Server did not respond to ping message #"+G+". Reconnecting... "),k.reconnectWs()))}))}else m.debug("Trying to send ping, but ping is not enabled");var G}function re(){W||(m.debug("Starting ping (if configured)"),W=!0,null!=C.heartbeat&&(E=setInterval(J,C.heartbeat),J()))}function ae(){clearInterval(E),W=!1,Q=!1,L=-1,T.cancel()}this.send=function(g,G,Y){var x=Date.now();T.encode(g,G,function(H,K){if(H){try{m.error("ERROR:"+H.message+" in Request: method:"+g+" params:"+JSON.stringify(G)+" request:"+H.request),H.data&&m.error("ERROR DATA:"+JSON.stringify(H.data))}catch(me){}H.requestTime=x}Y&&(null!=K&&"pong"!==K.value&&m.debug("Response: "+JSON.stringify(K)),Y(H,K))})},this.close=function(g,G){m.debug("Closing with code: "+g+" because: "+G),null!=E&&(m.debug("Clearing ping interval"),clearInterval(E)),W=!1,Q=!1,k.close(g,G)},this.reconnect=function(){k.reconnectWs()},this.resetPing=function(){Q=!0,L=0,re()},this.getReadyState=function(){return k.getReadyState()}}},593:(Ae,P,B)=>{var N=B(7182);P.WebSocketWithReconnection=N},7182:(Ae,P,B)=>{"use strict";var $=B(6946).OpenViduLogger.getInstance();Ae.exports=function D(C){var ee,q=!1,I=C.uri,L=!1,Q=new WebSocket(I);Q.onopen=function(){$.debug("WebSocket connected to "+I),C.onconnected&&C.onconnected()},Q.onerror=function(Z){$.error("Could not connect to "+I+" (invoking onerror if defined)",Z),C.onerror&&C.onerror(Z)};var W=function(){3===Q.readyState?q?$.debug("Connection closed by user"):C.ismasternodecrashed()?$.error("Master Node has crashed. Stopping reconnection process"):($.debug("Connection closed unexpectedly. Reconnecting..."),E(2e3,1)):$.debug("Close callback from previous websocket. Ignoring it")};function E(Z,M){if($.debug("reconnect (attempt #"+M+", max="+Z+")"),1===M){if(L)return void $.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");L=!0,C.onreconnecting&&C.onreconnecting()}!function F(Z,M){$.debug("Reconnection attempt #"+M),Q.close(4104,"Connection closed for reconnection"),I=function v(Z){var M=new URLSearchParams(new URL(Z).search);return M.has("reconnect")||(Z=Array.from(M).length>0?Z+"&reconnect=true":Z+"?reconnect=true"),Z}(I),(Q=new WebSocket(I)).onopen=function(){$.debug("Reconnected to "+I+" after "+M+" attempts..."),L=!1,ee(),C.onreconnected()&&C.onreconnected(),Q.onclose=W},Q.onerror=function(p){$.warn("Reconnection error: ",p),M===Z?C.ondisconnect&&C.ondisconnect():setTimeout(function(){E(Z,M+1)},3e3)}}(Z,M)}Q.onclose=W,this.close=function(Z,M){q=!0,Q.close(Z,M)},this.reconnectWs=function(){$.debug("reconnectWs"),E(2e3,1)},this.send=function(Z){Q.send(Z)},this.addEventListener=function(Z,M){(ee=function(){Q.addEventListener(Z,M)})()},this.getReadyState=function(){return Q.readyState}}},3031:(Ae,P,B)=>{var N=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(I){N=!0}Function.prototype.bind||(Function.prototype.bind=function(I){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var L=Array.prototype.slice.call(arguments,1),Q=this,W=function(){},E=function(){return Q.apply(this instanceof W&&I?this:I,L.concat(Array.prototype.slice.call(arguments)))};return W.prototype=this.prototype,E.prototype=new W,E});var $=B(9069).EventEmitter,j=B(3894),y=B(8080),b=B(6842),S=5e3;function m(I){if(I){if(I instanceof Function)return{send:I};if(I.send instanceof Function)return I;if(I.postMessage instanceof Function)return I.send=I.postMessage,I;if(I.write instanceof Function)return I.send=I.write,I;if(void 0===I.onmessage&&!(I.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function D(I,L){N?(this.method=I,this.params=L):(Object.defineProperty(this,"method",{value:I,enumerable:!0}),Object.defineProperty(this,"params",{value:L,enumerable:!0}))}function C(I,L,Q,W){var E=this;if(!I)throw new SyntaxError("Packer is not defined");if(!I.pack||!I.unpack)throw new SyntaxError("Packer is invalid");var v=function _(I){if(!I)return{};for(var L in I){var Q=I[L];"string"==typeof Q&&(I[L]={response:Q})}return I}(I.responseMethods);if(L instanceof Function){if(null!=Q)throw new SyntaxError("There can't be parameters after onRequest");W=L,Q=void 0,L=void 0}if(L&&L.send instanceof Function){if(Q&&!(Q instanceof Function))throw new SyntaxError("Only a function can be after transport");W=Q,Q=L,L=void 0}if(Q instanceof Function){if(null!=W)throw new SyntaxError("There can't be parameters after onRequest");W=Q,Q=void 0}if(Q&&Q.send instanceof Function&&W&&!(W instanceof Function))throw new SyntaxError("Only a function can be after transport");L=L||{},$.call(this),W&&this.on("request",W),N?this.peerID=L.peerID:Object.defineProperty(this,"peerID",{value:L.peerID});var F=L.max_retries||0;function Z(H){E.decode(H.data||H)}this.getTransport=function(){return Q},this.setTransport=function(H){Q&&(Q.removeEventListener?Q.removeEventListener("message",Z):Q.removeListener&&Q.removeListener("data",Z)),H&&(H.addEventListener?H.addEventListener("message",Z):H.addListener&&H.addListener("data",Z)),Q=m(H)},N||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(Q);var M=L.request_timeout||S,p=L.ping_request_timeout||M,k=L.response_timeout||S,te=L.duplicates_timeout||S,T=0,R=new b,J=new b,re=new b,ae={};function G(H,K){var me=setTimeout(function(){re.remove(H,K)},te);re.set(me,H,K)}function Y(H,K,me,le,ce){D.call(this,H,K),this.getTransport=function(){return ce},this.setTransport=function(Be){ce=m(Be)},N||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var De=J.get(me,le);ce||E.getTransport()||(N?this.duplicated=Boolean(De):Object.defineProperty(this,"duplicated",{value:Boolean(De)}));var $e=v[H];this.pack=I.pack.bind(I,this,me),this.reply=function(Be,ze,ut){if(Be instanceof Function||Be&&Be.send instanceof Function){if(null!=ze)throw new SyntaxError("There can't be parameters after callback");ut=Be,ze=null,Be=void 0}else if(ze instanceof Function||ze&&ze.send instanceof Function){if(null!=ut)throw new SyntaxError("There can't be parameters after callback");ut=ze,ze=null}var Ue;return ut=m(ut),De&&clearTimeout(De.timeout),null!=le&&(Be&&(Be.dest=le),ze&&(ze.dest=le)),Be||null!=ze?(null!=E.peerID&&(Be?Be.from=E.peerID:ze.from=E.peerID),Ue=I.pack(Ue=$e?null==$e.error&&Be?{error:Be}:{method:Be?$e.error:$e.response,params:Be||ze}:{error:Be,result:ze},me)):Ue=De?De.message:I.pack({result:null},me),function g(H,K,me){var le={message:H,timeout:setTimeout(function(){J.remove(K,me)},k)};J.set(le,K,me)}(Ue,me,le),(ut=ut||this.getTransport()||E.getTransport())?ut.send(Ue):Ue}}function x(H){var K=ae[H];if(K){delete ae[H];var me=R.pop(K.id,K.dest);!me||(clearTimeout(me.timeout),G(K.id,K.dest))}}j(Y,D),this.cancel=function(H){if(H)return x(H);for(var H in ae)x(H)},this.close=function(){var H=this.getTransport();H&&H.close&&H.close(4003,"Cancel request"),this.cancel(),re.forEach(clearTimeout),J.forEach(function(K){clearTimeout(K.timeout)})},this.encode=function(H,K,me,le,ce){if(K instanceof Function){if(null!=me)throw new SyntaxError("There can't be parameters after callback");ce=K,le=void 0,me=void 0,K=void 0}else if(me instanceof Function){if(null!=le)throw new SyntaxError("There can't be parameters after callback");ce=me,le=void 0,me=void 0}else if(le instanceof Function){if(null!=ce)throw new SyntaxError("There can't be parameters after callback");ce=le,le=void 0}null!=E.peerID&&((K=K||{}).from=E.peerID),null!=me&&((K=K||{}).dest=me);var De={method:H,params:K};if(ce){let cn=function(Le,je){E.cancel(De),ce(Le,je)},Gn=function(Le){return ze.timeout=setTimeout(Qn,("ping"===H?p:M)*Math.pow(2,Be++)),ae[De]={id:$e,dest:me},R.set(ze,$e,me),(Le=Le||ut||E.getTransport())?Le.send(De):De},Ye=function(Le){Le=m(Le),console.warn(Be+" retry for request message:",De);var je=re.pop($e,me);return clearTimeout(je),Gn(Le)},Qn=function(){if(Be<F)return Ye(le);var Le=new Error("Request has timed out");Le.request=De,Le.retry=Ye,cn(Le)};var $e=T++,Be=0,ze={message:De=I.pack(De,$e),callback:cn,responseMethods:v[H]||{}},ut=m(le);return Gn(le)}return De=I.pack(De),(le=le||this.getTransport())?le.send(De):De},this.decode=function(H,K){if(!H)throw new TypeError("Message is not defined");try{H=I.unpack(H)}catch(Qn){return console.debug(Qn,H)}var me=H.id,le=H.ack,ce=H.method,De=H.params||{},$e=De.from,Be=De.dest;if(null==E.peerID||$e!=E.peerID){if(null==me&&null==le){var ze=new D(ce,De);return E.emit("request",ze)?void 0:ze}if(ce){if(null==Be||Be==E.peerID){if(Ye=R.get(le,$e)){var Yt=Ye.responseMethods;return ce==Yt.error?Ue(Ye,De):ce==Yt.response?Ue(Ye,null,De):ut()}if(qe=re.get(le,$e))return ue(qe)}return ut()}var cn=H.error,Gn=H.result;if(!(cn&&cn.dest&&cn.dest!=E.peerID||Gn&&Gn.dest&&Gn.dest!=E.peerID)){var Ye,qe;if(!(Ye=R.get(le,$e)))return(qe=re.get(le,$e))?ue(qe):console.warn("No callback was defined for this message",H);Ue(Ye,cn,Gn)}}function ut(){if(K=m(K)||E.getTransport()){var Qn=J.get(me,$e);if(Qn)return K.send(Qn.message)}var je=new Y(ce,De,null!=me?me:le,$e,K);if(!E.emit("request",je))return je}function Ue(Qn,Le,je){Qn.callback(Le,je)}function ue(Qn){console.warn("Response already processed",H),clearTimeout(Qn),G(le,$e)}}}j(C,$),C.RpcNotification=D,Ae.exports=C;var q=B(5150),ee=B(593);(C.clients=q).transports=ee,C.packers=y},8727:(Ae,P)=>{P.pack=function B($,j){var y={jsonrpc:"2.0"};if($.method)y.method=$.method,$.params&&(y.params=$.params),null!=j&&(y.id=j);else if(null!=j){if($.error){if(void 0!==$.result)throw new TypeError("Both result and error are defined");y.error=$.error}else{if(void 0===$.result)throw new TypeError("No result or error is defined");y.result=$.result}y.id=j}return JSON.stringify(y)},P.unpack=function N($){var j=$;("string"==typeof $||$ instanceof String)&&(j=JSON.parse($));var y=j.jsonrpc;if("2.0"!==y)throw new TypeError("Invalid JsonRPC version '"+y+"': "+$);if(null==j.method){if(null==j.id)throw new TypeError("Invalid message: "+$);var b=void 0!==j.result,S=void 0!==j.error;if(b&&S)throw new TypeError("Both result and error are defined: "+$);if(!b&&!S)throw new TypeError("No result or error is defined: "+$);j.ack=j.id,delete j.id}return j}},9688:(Ae,P)=>{P.pack=function B($){throw new TypeError("Not yet implemented")},P.unpack=function N($){throw new TypeError("Not yet implemented")}},8080:(Ae,P,B)=>{var N=B(8727),$=B(9688);P.JsonRPC=N,P.XmlRPC=$},9380:(Ae,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.ConsoleLogger=void 0,P.ConsoleLogger=function N($){this.logger=$,this.log=$.log,this.info=$.info,this.debug=$.debug,this.warn=$.warn,this.error=$.error}},6946:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.OpenViduLogger=void 0;var N=B(8659),$=B(9380),j=B(541),y=function(){function b(){this.JSNLOG_URL="/openvidu/elk/openvidu-browser-logs",this.MAX_JSNLOG_BATCH_LOG_MESSAGES=100,this.MAX_MSECONDS_BATCH_MESSAGES=5e3,this.MAX_LENGTH_STRING_JSON=1e3,this.defaultConsoleLogger=new $.ConsoleLogger(globalThis.console),this.isProdMode=!1,this.isJSNLogSetup=!1}return b.configureJSNLog=function(S,_){var m=this;try{if(globalThis.LOG_JSNLOG_RESULTS||this.instance&&S.isAtLeastPro&&this.instance.isOpenViduBrowserLogsDebugActive(S)&&this.instance.canConfigureJSNLog(S,this.instance)){S.sendBrowserLogs===j.OpenViduLoggerConfiguration.debug_app&&this.instance.replaceWindowConsole(),this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var D=S.finalUserId,C=S.session.sessionId;this.instance.currentAppender=N.JL.createAjaxAppender("appender-".concat(D,"-").concat(C)),this.instance.currentAppender.setOptions({beforeSend:function(I){var L=I.onreadystatechange;I.onreadystatechange=function(){m.isInvalidResponse(I)&&(Object.defineProperty(I,"readyState",{value:4}),Object.defineProperty(I,"status",{value:200}),m.instance.disableLogger()),L()},I.setRequestHeader("Authorization","Basic "+btoa("".concat(D,"%/%").concat(C)+":"+_)),I.setRequestHeader("X-Requested-With","XMLHttpRequest"),I.setRequestHeader("OV-Final-User-Id",D),I.setRequestHeader("OV-Session-Id",C),I.setRequestHeader("OV-Token",_)},maxBatchSize:1e3,batchSize:this.instance.MAX_JSNLOG_BATCH_LOG_MESSAGES,batchTimeout:this.instance.MAX_MSECONDS_BATCH_MESSAGES}),N.JL.setOptions({defaultAjaxUrl:S.httpUri+this.instance.JSNLOG_URL,serialize:function(I){var W,Q=JSON.stringify(I,(W=new WeakSet,function(E,v){if("object"==typeof v&&null!=v){if(W.has(v)||globalThis.HTMLElement&&v instanceof HTMLElement)return;W.add(v)}return v}));return Q.length>m.instance.MAX_LENGTH_STRING_JSON&&(Q="".concat(Q.substring(0,m.instance.MAX_LENGTH_STRING_JSON),"...")),globalThis.LOG_JSNLOG_RESULTS&&console.log(Q),Q},enabled:!0}),(0,N.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=C,this.instance.info("JSNLog configured.")}}catch(I){console.error("Error configuring JSNLog: "),console.error(I),this.instance.disableLogger()}},b.getInstance=function(){return b.instance||(b.instance=new b),b.instance},b.isInvalidResponse=function(S){return 401==S.status||403==S.status||404==S.status||0==S.status},b.prototype.canConfigureJSNLog=function(S,_){return S.session.sessionId!=_.loggingSessionId},b.prototype.isOpenViduBrowserLogsDebugActive=function(S){return S.sendBrowserLogs===j.OpenViduLoggerConfiguration.debug||S.sendBrowserLogs===j.OpenViduLoggerConfiguration.debug_app},b.prototype.getConsoleWithJSNLog=function(){return S=this,{log:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];S.defaultConsoleLogger.log.apply(S.defaultConsoleLogger.logger,arguments),S.isJSNLogSetup&&(0,N.JL)().info(arguments)},info:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];S.defaultConsoleLogger.info.apply(S.defaultConsoleLogger.logger,arguments),S.isJSNLogSetup&&(0,N.JL)().info(arguments)},debug:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];S.defaultConsoleLogger.debug.apply(S.defaultConsoleLogger.logger,arguments)},warn:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];S.defaultConsoleLogger.warn.apply(S.defaultConsoleLogger.logger,arguments),S.isJSNLogSetup&&(0,N.JL)().warn(arguments)},error:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];S.defaultConsoleLogger.error.apply(S.defaultConsoleLogger.logger,arguments),S.isJSNLogSetup&&(0,N.JL)().error(arguments)}};var S},b.prototype.replaceWindowConsole=function(){globalThis.console=this.defaultConsoleLogger.logger,globalThis.console.log=this.getConsoleWithJSNLog().log,globalThis.console.info=this.getConsoleWithJSNLog().info,globalThis.console.debug=this.getConsoleWithJSNLog().debug,globalThis.console.warn=this.getConsoleWithJSNLog().warn,globalThis.console.error=this.getConsoleWithJSNLog().error},b.prototype.disableLogger=function(){N.JL.setOptions({enabled:!1}),this.isJSNLogSetup=!1,this.loggingSessionId=void 0,this.currentAppender=void 0,globalThis.console=this.defaultConsoleLogger.logger,globalThis.console.log=this.defaultConsoleLogger.log,globalThis.console.info=this.defaultConsoleLogger.info,globalThis.console.debug=this.defaultConsoleLogger.debug,globalThis.console.warn=this.defaultConsoleLogger.warn,globalThis.console.error=this.defaultConsoleLogger.error},b.prototype.log=function(){for(var S=[],_=0;_<arguments.length;_++)S[_]=arguments[_];this.isProdMode||this.defaultConsoleLogger.log.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,N.JL)().info(arguments)},b.prototype.debug=function(){for(var S=[],_=0;_<arguments.length;_++)S[_]=arguments[_];this.isProdMode||this.defaultConsoleLogger.debug.apply(this.defaultConsoleLogger.logger,arguments)},b.prototype.info=function(){for(var S=[],_=0;_<arguments.length;_++)S[_]=arguments[_];this.isProdMode||this.defaultConsoleLogger.info.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,N.JL)().info(arguments)},b.prototype.warn=function(){for(var S=[],_=0;_<arguments.length;_++)S[_]=arguments[_];this.defaultConsoleLogger.warn.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,N.JL)().warn(arguments)},b.prototype.error=function(){for(var S=[],_=0;_<arguments.length;_++)S[_]=arguments[_];this.defaultConsoleLogger.error.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,N.JL)().error(arguments)},b.prototype.flush=function(){this.isJSNLogSetup&&null!=this.currentAppender&&this.currentAppender.sendBatch()},b.prototype.enableProdMode=function(){this.isProdMode=!0},b}();P.OpenViduLogger=y},541:(Ae,P)=>{"use strict";var N;Object.defineProperty(P,"__esModule",{value:!0}),P.OpenViduLoggerConfiguration=void 0,(N=P.OpenViduLoggerConfiguration||(P.OpenViduLoggerConfiguration={})).disabled="disabled",N.debug="debug",N.debug_app="debug_app"},4611:(Ae,P)=>{function B(b,S,_){var m={audio:!1,video:{mandatory:{chromeMediaSource:b?"screen":"desktop",maxWidth:globalThis.screen.width>1920?globalThis.screen.width:1920,maxHeight:globalThis.screen.height>1080?globalThis.screen.height:1080},optional:[]}};return _&&(m.audio={mandatory:{chromeMediaSource:b?"screen":"desktop"},optional:[]}),S&&(m.video.mandatory.chromeMediaSourceId=S,m.audio&&m.audio.mandatory&&(m.audio.mandatory.chromeMediaSourceId=S)),m}function N(b){$?$.isLoaded?$.contentWindow.postMessage(b?b.forEach?{captureCustomSourceId:b}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){N(b)},100):j(function(){N(b)})}var $;function j(b){$?b():(($=document.createElement("iframe")).onload=function(){$.isLoaded=!0,b()},$.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",$.style.display="none",(document.body||document.documentElement).appendChild($))}function y(){$?$.isLoaded?$.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(y,100):j(y)}globalThis.getScreenId=function(b,S,_){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?S(null,"firefox",{video:{mozMediaSource:b,mediaSource:b}}):(globalThis.addEventListener("message",function m(D){!D.data||(D.data.chromeMediaSourceId&&("PermissionDeniedError"===D.data.chromeMediaSourceId?S("permission-denied"):S(null,D.data.chromeMediaSourceId,B(null,D.data.chromeMediaSourceId,D.data.canRequestAudioTrack)),globalThis.removeEventListener("message",m)),D.data.chromeExtensionStatus&&(S(D.data.chromeExtensionStatus,null,B(D.data.chromeExtensionStatus)),globalThis.removeEventListener("message",m)))}),setTimeout(_?function(){N(_)}:N,100)):S({video:!0})},globalThis.getScreenConstraints=function(b){j(function(){getScreenId(function(S,_,m){m||(m={video:!0}),b(S,m.video)})})},globalThis.getChromeExtensionStatus=function(b){navigator.mozGetUserMedia?b("installed-enabled"):(globalThis.addEventListener("message",function S(_){!_.data||_.data.chromeExtensionStatus&&(b(_.data.chromeExtensionStatus),globalThis.removeEventListener("message",S))}),setTimeout(y,100))},P.getScreenId=globalThis.getScreenId},4627:(Ae,P)=>{var N,$,B="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var j=void 0!==window.InstallTrigger;!!window.opera||navigator.userAgent.indexOf(" OPR/");window,window.addEventListener("message",function(L){L.origin==window.location.origin&&function S(L){if("PermissionDeniedError"==L){if($)return $("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==L&&(B="desktop"),L.sourceId&&$&&$(N=L.sourceId,!0===L.canRequestAudioTrack)}(L.data)})}function m(L){if(!L)throw'"callback" parameter is mandatory.';if(N)return L(N);$=L,window.postMessage("get-sourceId","*")}function I(L,Q){if(N="",j)return L(null,{mozMediaSource:"window",mediaSource:"window"});var E={mandatory:{chromeMediaSource:B,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=B||N?("desktop"==B&&(E.mandatory.chromeMediaSourceId=N),L(null,E)):Q?function C(L){if(!L)throw'"callback" parameter is mandatory.';if(N)return L(N);$=L,window.postMessage("audio-plus-tab","*")}(function(v,F){E.mandatory.chromeMediaSourceId=v,F&&(E.canRequestAudioTrack=!0),L("PermissionDeniedError"==v?v:null,E)}):m(function(v){E.mandatory.chromeMediaSourceId=v,L("PermissionDeniedError"==v?v:null,E)})}P.getScreenConstraints=I,P.getScreenConstraintsWithAudio=function ee(L){I(L,!0)},P.isChromeExtensionAvailable=function _(L){if(L){if("desktop"==B)return L(!0);window.postMessage("are-you-there","*"),setTimeout(function(){L("screen"!=B)},2e3)}},P.getChromeExtensionStatus=function q(L,Q){if(j)return Q("not-chrome");2!=arguments.length&&(Q=L,L="lfcgfepafnobdloecchnfaclibenjold");var W=document.createElement("img");W.src="chrome-extension://"+L+"/icon.png",W.onload=function(){B="screen",window.postMessage("are-you-there","*"),setTimeout(function(){Q("screen"==B?"installed-disabled":"installed-enabled")},2e3)},W.onerror=function(){Q("not-installed")}},P.getSourceId=m},543:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.PlatformUtils=void 0;var N=B(2437),$=function(){function j(){}return j.getInstance=function(){return this.instance||(this.instance=new j),j.instance},j.prototype.isChromeBrowser=function(){return"Chrome"===N.name},j.prototype.isSafariBrowser=function(){return"Safari"===N.name},j.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===N.name},j.prototype.isFirefoxBrowser=function(){return"Firefox"===N.name},j.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===N.name||"Firefox for iOS"===N.name},j.prototype.isOperaBrowser=function(){return"Opera"===N.name},j.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===N.name},j.prototype.isEdgeBrowser=function(){var y=null!=N&&N.version?parseFloat(N.version):-1;return"Microsoft Edge"===N.name&&y>=80},j.prototype.isEdgeMobileBrowser=function(){var y,b,S=null!=N&&N.version?parseFloat(N.version):-1;return"Microsoft Edge"===N.name&&("Android"===(null===(y=N.os)||void 0===y?void 0:y.family)||"iOS"===(null===(b=N.os)||void 0===b?void 0:b.family))&&S>45},j.prototype.isAndroidBrowser=function(){return"Android Browser"===N.name},j.prototype.isElectron=function(){return"Electron"===N.name},j.prototype.isNodeJs=function(){return"Node.js"===N.name},j.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===N.name||"Samsung Internet"===N.name},j.prototype.isIPhoneOrIPad=function(){var y=N.ua?N.ua:navigator.userAgent,b="ontouchend"in document,S=/\b(\w*Macintosh\w*)\b/.test(y)&&b,_=/\b(\w*iPhone\w*)\b/.test(y)&&/\b(\w*Mobile\w*)\b/.test(y)&&b;return S||_},j.prototype.isIOSWithSafari=function(){var y=N.ua?N.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(y)&&!/\b(\w*CriOS\w*)\b/.test(y)&&!/\b(\w*FxiOS\w*)\b/.test(y)},j.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===N.ua.indexOf("Safari")},j.prototype.isIonicAndroid=function(){return"Android"===N.os.family&&"Android Browser"==N.name},j.prototype.isMobileDevice=function(){return"iOS"===N.os.family||"Android"===N.os.family},j.prototype.isReactNative=function(){return!1},j.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},j.prototype.canScreenShare=function(){var y=null!=N&&N.version?parseFloat(N.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&y>=13)},j.prototype.getName=function(){return N.name||""},j.prototype.getVersion=function(){return N.version||""},j.prototype.getFamily=function(){return N.os.family||""},j.prototype.getDescription=function(){return N.description||""},j}();P.PlatformUtils=$},4641:function(Ae,P,B){"use strict";var W,N=this&&this.__extends||(W=function(E,v){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,Z){F.__proto__=Z}||function(F,Z){for(var M in Z)Object.prototype.hasOwnProperty.call(Z,M)&&(F[M]=Z[M])})(E,v)},function(E,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function F(){this.constructor=E}W(E,v),E.prototype=null===v?Object.create(v):(F.prototype=v.prototype,new F)}),$=this&&this.__assign||function(){return $=Object.assign||function(W){for(var E,v=1,F=arguments.length;v<F;v++)for(var Z in E=arguments[v])Object.prototype.hasOwnProperty.call(E,Z)&&(W[Z]=E[Z]);return W},$.apply(this,arguments)},j=this&&this.__awaiter||function(W,E,v,F){return new(v||(v=Promise))(function(M,p){function k(R){try{T(F.next(R))}catch(J){p(J)}}function te(R){try{T(F.throw(R))}catch(J){p(J)}}function T(R){R.done?M(R.value):function Z(M){return M instanceof v?M:new v(function(p){p(M)})}(R.value).then(k,te)}T((F=F.apply(W,E||[])).next())})},y=this&&this.__generator||function(W,E){var F,Z,M,p,v={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return p={next:k(0),throw:k(1),return:k(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function k(T){return function(R){return function te(T){if(F)throw new TypeError("Generator is already executing.");for(;p&&(p=0,T[0]&&(v=0)),v;)try{if(F=1,Z&&(M=2&T[0]?Z.return:T[0]?Z.throw||((M=Z.return)&&M.call(Z),0):Z.next)&&!(M=M.call(Z,T[1])).done)return M;switch(Z=0,M&&(T=[2&T[0],M.value]),T[0]){case 0:case 1:M=T;break;case 4:return v.label++,{value:T[1],done:!1};case 5:v.label++,Z=T[1],T=[0];continue;case 7:T=v.ops.pop(),v.trys.pop();continue;default:if(!(M=(M=v.trys).length>0&&M[M.length-1])&&(6===T[0]||2===T[0])){v=0;continue}if(3===T[0]&&(!M||T[1]>M[0]&&T[1]<M[3])){v.label=T[1];break}if(6===T[0]&&v.label<M[1]){v.label=M[1],M=T;break}if(M&&v.label<M[2]){v.label=M[2],v.ops.push(T);break}M[2]&&v.ops.pop(),v.trys.pop();continue}T=E.call(W,v)}catch(R){T=[6,R],Z=0}finally{F=M=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}([T,R])}}};Object.defineProperty(P,"__esModule",{value:!0}),P.WebRtcPeerSendrecv=P.WebRtcPeerSendonly=P.WebRtcPeerRecvonly=P.WebRtcPeer=void 0;var b=B(4491),S=B(4816),_=B(7507),m=B(6946),D=B(543),C=m.OpenViduLogger.getInstance(),ee=function(){function W(E){var v=this;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],D.PlatformUtils.getInstance(),this.configuration=$($({},E),{iceServers:E.iceServers&&E.iceServers.length>0?E.iceServers:b(),mediaStream:void 0!==E.mediaStream?E.mediaStream:null,mode:E.mode?E.mode:"sendrecv",id:E.id?E.id:this.generateUniqueId()}),C.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(F){if(null!==F.candidate){var M=new RTCIceCandidate(F.candidate);v.configuration.onIceCandidate(M),""!==M.candidate&&v.localCandidatesQueue.push(M)}}),this.pc.addEventListener("signalingstatechange",function(){return j(v,void 0,void 0,function(){var F,Z;return y(this,function(M){switch(M.label){case 0:if("stable"!==this.pc.signalingState)return[3,6];M.label=1;case 1:if(!(this.iceCandidateList.length>0))return[3,6];F=this.iceCandidateList.shift(),M.label=2;case 2:return M.trys.push([2,4,,5]),[4,this.pc.addIceCandidate(F)];case 3:return M.sent(),[3,5];case 4:return Z=M.sent(),C.error("Error when calling RTCPeerConnection#addIceCandidate for RTCPeerConnection "+this.getId(),Z),[3,5];case 5:return[3,1];case 6:return[2]}})})})}return W.prototype.getId=function(){return this.configuration.id},W.prototype.dispose=function(){if(C.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},W.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var F={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return C.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(F)),this.pc.createOffer(F)},W.prototype.createOffer=function(){var E,v,F,Z,M,p,k,te;return j(this,void 0,void 0,function(){var T,R,J,re,ae,g,G,Y,x,H,K,me,le,ce,De,$e,Be,ze,ut,Ue,ue,Yt,qe;return y(this,function(cn){switch(cn.label){case 0:if(!("addTransceiver"in this.pc))return C.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(C.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,R=this.configuration.mediaStream.getTracks(),cn.label=1;case 1:if(!(T<R.length))return[3,6];if(re={direction:this.configuration.mode,streams:[this.configuration.mediaStream]},"video"===(J=R[T]).kind&&this.configuration.simulcast)for(ae=J.getSettings(),g=J.getConstraints(),G=null!==(F=null!==(v=null!==(E=ae.width)&&void 0!==E?E:g.width.ideal)&&void 0!==v?v:g.width)&&void 0!==F?F:0,Y=null!==(p=null!==(M=null!==(Z=ae.height)&&void 0!==Z?Z:g.height.ideal)&&void 0!==M?M:g.height)&&void 0!==p?p:0,C.info("[createOffer] Video track dimensions: ".concat(G,"x").concat(Y)),0,H=(x=G*Y)>=518400?3:x>=129600?2:1,re.sendEncodings=[],K=0;K<H;K++)me=Math.pow(2,H-K-1),le={rid:"rdiv"+me.toString(),scalabilityMode:"L1T1"},["detail","text"].includes(J.contentHint)?(le.scaleResolutionDownBy=1,le.maxFramerate=Math.floor(30/me)):le.scaleResolutionDownBy=me,re.sendEncodings.push(le);if(ce=this.pc.addTransceiver(J,re),"video"!==J.kind)return[3,5];if(De=ce.sender.getParameters(),$e=!1,!(null===(k=De.degradationPreference)||void 0===k)&&k.length||(De.degradationPreference=["detail","text"].includes(J.contentHint)?"maintain-resolution":"balanced",C.info("[createOffer] Video sender Degradation Preference set: ".concat(De.degradationPreference)),$e=!0),this.configuration.simulcast&&(null===(te=De.encodings)||void 0===te?void 0:te.length)!==re.sendEncodings.length&&(De.encodings=re.sendEncodings,$e=!0),!$e)return[3,5];C.debug("[createOffer] Setting new RTCRtpSendParameters to video sender"),cn.label=2;case 2:return cn.trys.push([2,4,,5]),[4,ce.sender.setParameters(De)];case 3:return cn.sent(),[3,5];case 4:throw Be=cn.sent(),qe="[WebRtcPeer.createOffer] Cannot set RTCRtpSendParameters to video sender",Be instanceof Error&&(qe+=": ".concat(Be.message)),new Error(qe);case 5:return T++,[3,1];case 6:return[3,8];case 7:for(ze=0,ut=["audio","video"];ze<ut.length;ze++)this.configuration.mediaConstraints[Ue=ut[ze]]&&(this.configuration.mediaStream=new MediaStream,this.pc.addTransceiver(Ue,{direction:this.configuration.mode,streams:[this.configuration.mediaStream]}));cn.label=8;case 8:return cn.trys.push([8,10,,11]),[4,this.pc.createOffer()];case 9:return ue=cn.sent(),[3,11];case 10:throw Yt=cn.sent(),qe="[WebRtcPeer.createOffer] Browser failed creating an SDP Offer",Yt instanceof Error&&(qe+=": ".concat(Yt.message)),new Error(qe);case 11:return[2,ue]}})})},W.prototype.deprecatedPeerConnectionTrackApi=function(){for(var E=0,v=this.configuration.mediaStream.getTracks();E<v.length;E++)this.pc.addTrack(v[E],this.configuration.mediaStream)},W.prototype.createAnswer=function(){var E=this;return new Promise(function(v,F){if("getTransceivers"in E.pc){C.debug("[createAnswer] Method RTCPeerConnection.getTransceivers() is available; using it");for(var Z=function(re){if(!E.configuration.mediaConstraints[re])return"continue";var ae=E.pc.getTransceivers().find(function(g){return g.receiver.track.kind===re});if(!ae)return{value:F(new Error("".concat(re," requested, but no transceiver was created from remote description")))};ae.direction=E.configuration.mode},M=0,p=["audio","video"];M<p.length;M++){var te=Z(p[M]);if("object"==typeof te)return te.value}E.pc.createAnswer().then(function(re){return v(re)}).catch(function(re){return F(re)})}else E.configuration.mediaConstraints&&E.pc.createAnswer({offerToReceiveAudio:"boolean"!=typeof E.configuration.mediaConstraints.audio||E.configuration.mediaConstraints.audio,offerToReceiveVideo:"boolean"!=typeof E.configuration.mediaConstraints.video||E.configuration.mediaConstraints.video}).then(function(re){return v(re)}).catch(function(re){return F(re)})})},W.prototype.processLocalOffer=function(E){var v=this;return new Promise(function(F,Z){v.pc.setLocalDescription(E).then(function(){var M=v.pc.localDescription;return M?(C.debug("Local description set",M.sdp),F()):Z("Local description is not defined")}).catch(function(M){return Z(M)})})},W.prototype.processRemoteOffer=function(E){var v=this;return new Promise(function(F,Z){var M={type:"offer",sdp:E};if(C.debug("SDP offer received, setting remote description",M),"closed"===v.pc.signalingState)return Z("RTCPeerConnection is closed when trying to set remote description");v.setRemoteDescription(M).then(function(){return F()}).catch(function(p){return Z(p)})})},W.prototype.processLocalAnswer=function(E){var v=this;return new Promise(function(F,Z){if(C.debug("SDP answer created, setting local description"),"closed"===v.pc.signalingState)return Z("RTCPeerConnection is closed when trying to set local description");v.pc.setLocalDescription(E).then(function(){return F()}).catch(function(M){return Z(M)})})},W.prototype.processRemoteAnswer=function(E){var v=this;return new Promise(function(F,Z){var M={type:"answer",sdp:E};if(C.debug("SDP answer received, setting remote description"),"closed"===v.pc.signalingState)return Z("RTCPeerConnection is closed when trying to set remote description");v.setRemoteDescription(M).then(function(){F()}).catch(function(p){return Z(p)})})},W.prototype.setRemoteDescription=function(E){return j(this,void 0,void 0,function(){return y(this,function(v){return[2,this.pc.setRemoteDescription(E)]})})},W.prototype.addIceCandidate=function(E){var v=this;return new Promise(function(F,Z){switch(C.debug("Remote ICE candidate received",E),v.remoteCandidatesQueue.push(E),v.pc.signalingState){case"closed":Z(new Error("PeerConnection object is closed"));break;case"stable":v.pc.remoteDescription?v.pc.addIceCandidate(E).then(function(){return F()}).catch(function(M){return Z(M)}):(v.iceCandidateList.push(E),F());break;default:v.iceCandidateList.push(E),F()}})},W.prototype.addIceConnectionStateChangeListener=function(E){var v=this;this.pc.addEventListener("iceconnectionstatechange",function(){switch(v.pc.iceConnectionState){case"disconnected":var Z="IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+E+') change to "disconnected". Possible network disconnection';C.warn(Z),v.configuration.onIceConnectionStateException(_.ExceptionEventName.ICE_CONNECTION_DISCONNECTED,Z);break;case"failed":var M="IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+E+') to "failed"';C.error(M),v.configuration.onIceConnectionStateException(_.ExceptionEventName.ICE_CONNECTION_FAILED,M);break;case"closed":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+E+') change to "closed"');break;case"new":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+E+') change to "new"');break;case"checking":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+E+') change to "checking"');break;case"connected":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+E+') change to "connected"');break;case"completed":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+E+') change to "completed"')}})},W.prototype.generateUniqueId=function(){return(0,S.v4)()},W}();P.WebRtcPeer=ee;var I=function(W){function E(v){return v.mode="recvonly",W.call(this,v)||this}return N(E,W),E}(ee);P.WebRtcPeerRecvonly=I;var L=function(W){function E(v){return v.mode="sendonly",W.call(this,v)||this}return N(E,W),E}(ee);P.WebRtcPeerSendonly=L;var Q=function(W){function E(v){return v.mode="sendrecv",W.call(this,v)||this}return N(E,W),E}(ee);P.WebRtcPeerSendrecv=Q},2102:function(Ae,P,B){"use strict";var N=this&&this.__awaiter||function(m,D,C,q){return new(C||(C=Promise))(function(I,L){function Q(v){try{E(q.next(v))}catch(F){L(F)}}function W(v){try{E(q.throw(v))}catch(F){L(F)}}function E(v){v.done?I(v.value):function ee(I){return I instanceof C?I:new C(function(L){L(I)})}(v.value).then(Q,W)}E((q=q.apply(m,D||[])).next())})},$=this&&this.__generator||function(m,D){var q,ee,I,L,C={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return L={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(L[Symbol.iterator]=function(){return this}),L;function Q(E){return function(v){return function W(E){if(q)throw new TypeError("Generator is already executing.");for(;L&&(L=0,E[0]&&(C=0)),C;)try{if(q=1,ee&&(I=2&E[0]?ee.return:E[0]?ee.throw||((I=ee.return)&&I.call(ee),0):ee.next)&&!(I=I.call(ee,E[1])).done)return I;switch(ee=0,I&&(E=[2&E[0],I.value]),E[0]){case 0:case 1:I=E;break;case 4:return C.label++,{value:E[1],done:!1};case 5:C.label++,ee=E[1],E=[0];continue;case 7:E=C.ops.pop(),C.trys.pop();continue;default:if(!(I=(I=C.trys).length>0&&I[I.length-1])&&(6===E[0]||2===E[0])){C=0;continue}if(3===E[0]&&(!I||E[1]>I[0]&&E[1]<I[3])){C.label=E[1];break}if(6===E[0]&&C.label<I[1]){C.label=I[1],I=E;break}if(I&&C.label<I[2]){C.label=I[2],C.ops.push(E);break}I[2]&&C.ops.pop(),C.trys.pop();continue}E=D.call(m,C)}catch(v){E=[6,v],ee=0}finally{q=I=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,v])}}};Object.defineProperty(P,"__esModule",{value:!0}),P.WebRtcStats=void 0;var S,j=B(6946),y=B(543),b=j.OpenViduLogger.getInstance(),_=function(){function m(D){this.stream=D,this.STATS_ITEM_NAME="webrtc-stats-config",this.webRtcStatsEnabled=!1,this.statsInterval=1,S=y.PlatformUtils.getInstance()}return m.prototype.isEnabled=function(){return this.webRtcStatsEnabled},m.prototype.initWebRtcStats=function(){var D=this,C=localStorage.getItem(this.STATS_ITEM_NAME);if(C){this.webRtcStatsEnabled=!0;var q=JSON.parse(C);b.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),b.warn("localStorage item: "+JSON.stringify(q)),this.POST_URL=q.httpEndpoint,this.statsInterval=q.interval,this.webRtcStatsIntervalId=setInterval(function(){return N(D,void 0,void 0,function(){return $(this,function(ee){switch(ee.label){case 0:return[4,this.sendStatsToHttpEndpoint()];case 1:return ee.sent(),[2]}})})},1e3*this.statsInterval)}else b.debug("WebRtc stats not enabled")},m.prototype.getSelectedIceCandidateInfo=function(){var D=this;return new Promise(function(C,q){return N(D,void 0,void 0,function(){var ee,I,L,Q,W,E,F,Z,M,p,te,T,R,J,re,ae,g,G,Y;return $(this,function(H){switch(H.label){case 0:return[4,this.stream.getRTCPeerConnection().getStats()];case 1:if(ee=H.sent(),L=new Map,Q=new Map,W=new Map,ee.forEach(function(K){switch("transport"===K.type&&(S.isChromium()||S.isSafariBrowser()||S.isReactNative())&&(I=K),K.type){case"candidate-pair":L.set(K.id,K);break;case"local-candidate":Q.set(K.id,K);break;case"remote-candidate":W.set(K.id,K)}}),null!=I)E=L.get(I.selectedCandidatePairId);else for(F=L.size,Z=L.values(),M=0;M<F;M++)if((p=Z.next().value).selected){E=p;break}if(te=E.remoteCandidateId,T=Q.get(E.localCandidateId))for(ae=this.stream.getLocalIceCandidateList(),g=ae.filter(function(K){return!!K.candidate&&(K.candidate.indexOf(T.ip)>=0||K.candidate.indexOf(T.address)>=0)&&K.candidate.indexOf(T.port)>=0}),T.raw=[],R=0,J=g;R<J.length;R++)T.raw.push(J[R].candidate);else T="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";if(re=W.get(te))for(ae=this.stream.getRemoteIceCandidateList(),g=ae.filter(function(K){return!!K.candidate&&(K.candidate.indexOf(re.ip)>=0||K.candidate.indexOf(re.address)>=0)&&K.candidate.indexOf(re.port)>=0}),re.raw=[],G=0,Y=g;G<Y.length;G++)re.raw.push(Y[G].candidate);else re="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used";return[2,C({localCandidate:T,remoteCandidate:re})]}})})})},m.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),b.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},m.prototype.sendStats=function(D,C){return N(this,void 0,void 0,function(){var q,ee;return $(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),q={headers:{"Content-type":"application/json"},body:JSON.stringify(C),method:"POST"},[4,fetch(D,q)];case 1:return I.sent(),[3,3];case 2:return ee=I.sent(),b.error("sendStats error: ".concat(JSON.stringify(ee))),[3,3];case 3:return[2]}})})},m.prototype.sendStatsToHttpEndpoint=function(){return N(this,void 0,void 0,function(){var D,C,q;return $(this,function(ee){switch(ee.label){case 0:return ee.trys.push([0,3,,4]),[4,this.getCommonStats()];case 1:return D=ee.sent(),C=this.generateJSONStatsResponse(D),[4,this.sendStats(this.POST_URL,C)];case 2:return ee.sent(),[3,4];case 3:return q=ee.sent(),b.log(q),[3,4];case 4:return[2]}})})},m.prototype.getCommonStats=function(){return N(this,void 0,void 0,function(){var D=this;return $(this,function(C){return[2,new Promise(function(q,ee){return N(D,void 0,void 0,function(){var I,L,Q,W,E,v=this;return $(this,function(F){switch(F.label){case 0:return F.trys.push([0,2,,3]),[4,this.stream.getRTCPeerConnection().getStats()];case 1:return I=F.sent(),L=this.getWebRtcStatsResponseOutline(),Q=["framesReceived","framesDropped","framesSent","frameHeight","frameWidth"],W=["availableOutgoingBitrate","currentRoundTripTime"],I.forEach(function(Z){var M=null!=Z.mediaType?Z.mediaType:Z.kind,p=function(k,te){null!=Z[te]&&null!=L[k]&&(!M&&Q.indexOf(te)>-1&&(M="video"),null!=k&&null!=M&&null!=te&&null!=L[k][M]?L[k][M][te]=Number(Z[te]):null!=k&&null!=te&&W.includes(te)&&(L[k][te]=Number(Z[te])))};switch(Z.type){case"outbound-rtp":p("outbound","bytesSent"),p("outbound","packetsSent"),p("outbound","framesEncoded"),p("outbound","nackCount"),p("outbound","firCount"),p("outbound","pliCount"),p("outbound","qpSum");break;case"inbound-rtp":p("inbound","bytesReceived"),p("inbound","packetsReceived"),p("inbound","packetsLost"),p("inbound","jitter"),p("inbound","framesDecoded"),p("inbound","nackCount"),p("inbound","firCount"),p("inbound","pliCount");break;case"track":p("inbound","jitterBufferDelay"),p("inbound","framesReceived"),p("outbound","framesDropped"),p("outbound","framesSent"),p(v.stream.isLocal()?"outbound":"inbound","frameHeight"),p(v.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":p("candidatepair","currentRoundTripTime"),p("candidatepair","availableOutgoingBitrate")}}),null!=L&&L.candidatepair&&0!==Object.keys(L.candidatepair).length||delete L.candidatepair,[2,q(L)];case 2:return E=F.sent(),b.error("Error getting common stats: ",E),[2,ee(E)];case 3:return[2]}})})})]})})},m.prototype.generateJSONStatsResponse=function(D){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:S.getName(),platform_description:S.getDescription(),stream:"webRTC",webrtc_stats:D}},m.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},m}();P.WebRtcStats=_},5039:function(Ae,P,B){"use strict";var N=this&&this.__createBinding||(Object.create?function(x,H,K,me){void 0===me&&(me=K);var le=Object.getOwnPropertyDescriptor(H,K);(!le||("get"in le?!H.__esModule:le.writable||le.configurable))&&(le={enumerable:!0,get:function(){return H[K]}}),Object.defineProperty(x,me,le)}:function(x,H,K,me){void 0===me&&(me=K),x[me]=H[K]}),$=this&&this.__exportStar||function(x,H){for(var K in x)"default"!==K&&!Object.prototype.hasOwnProperty.call(H,K)&&N(H,x,K)};Object.defineProperty(P,"__esModule",{value:!0}),P.EventDispatcher=P.ExceptionEventName=P.ExceptionEvent=P.SpeechToTextEvent=P.NetworkQualityLevelChangedEvent=P.FilterEvent=P.ConnectionPropertyChangedEvent=P.StreamPropertyChangedEvent=P.VideoElementEvent=P.StreamManagerEvent=P.StreamEvent=P.SignalEvent=P.SessionDisconnectedEvent=P.RecordingEvent=P.PublisherSpeakingEvent=P.ConnectionEvent=P.Event=P.VideoInsertMode=P.TypeOfVideo=P.OpenViduErrorName=P.OpenViduError=P.LocalRecorderState=P.Filter=P.LocalRecorder=P.Connection=P.Stream=P.StreamManager=P.Subscriber=P.Publisher=P.Session=P.OpenVidu=void 0;var j=B(8659),y=B(763);Object.defineProperty(P,"OpenVidu",{enumerable:!0,get:function(){return y.OpenVidu}});var b=B(8402);Object.defineProperty(P,"Session",{enumerable:!0,get:function(){return b.Session}});var S=B(4259);Object.defineProperty(P,"Publisher",{enumerable:!0,get:function(){return S.Publisher}});var _=B(1758);Object.defineProperty(P,"Subscriber",{enumerable:!0,get:function(){return _.Subscriber}});var m=B(8613);Object.defineProperty(P,"StreamManager",{enumerable:!0,get:function(){return m.StreamManager}});var D=B(2096);Object.defineProperty(P,"Stream",{enumerable:!0,get:function(){return D.Stream}});var C=B(7490);Object.defineProperty(P,"Connection",{enumerable:!0,get:function(){return C.Connection}});var q=B(4289);Object.defineProperty(P,"LocalRecorder",{enumerable:!0,get:function(){return q.LocalRecorder}});var ee=B(4540);Object.defineProperty(P,"Filter",{enumerable:!0,get:function(){return ee.Filter}});var I=B(5156);Object.defineProperty(P,"LocalRecorderState",{enumerable:!0,get:function(){return I.LocalRecorderState}});var L=B(4103);Object.defineProperty(P,"OpenViduError",{enumerable:!0,get:function(){return L.OpenViduError}}),Object.defineProperty(P,"OpenViduErrorName",{enumerable:!0,get:function(){return L.OpenViduErrorName}});var Q=B(5913);Object.defineProperty(P,"TypeOfVideo",{enumerable:!0,get:function(){return Q.TypeOfVideo}});var W=B(6274);Object.defineProperty(P,"VideoInsertMode",{enumerable:!0,get:function(){return W.VideoInsertMode}});var E=B(2345);Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return E.Event}});var v=B(8702);Object.defineProperty(P,"ConnectionEvent",{enumerable:!0,get:function(){return v.ConnectionEvent}});var F=B(805);Object.defineProperty(P,"PublisherSpeakingEvent",{enumerable:!0,get:function(){return F.PublisherSpeakingEvent}});var Z=B(7936);Object.defineProperty(P,"RecordingEvent",{enumerable:!0,get:function(){return Z.RecordingEvent}});var M=B(1018);Object.defineProperty(P,"SessionDisconnectedEvent",{enumerable:!0,get:function(){return M.SessionDisconnectedEvent}});var p=B(5785);Object.defineProperty(P,"SignalEvent",{enumerable:!0,get:function(){return p.SignalEvent}});var k=B(2299);Object.defineProperty(P,"StreamEvent",{enumerable:!0,get:function(){return k.StreamEvent}});var te=B(4006);Object.defineProperty(P,"StreamManagerEvent",{enumerable:!0,get:function(){return te.StreamManagerEvent}});var T=B(4281);Object.defineProperty(P,"VideoElementEvent",{enumerable:!0,get:function(){return T.VideoElementEvent}});var R=B(2798);Object.defineProperty(P,"StreamPropertyChangedEvent",{enumerable:!0,get:function(){return R.StreamPropertyChangedEvent}});var J=B(865);Object.defineProperty(P,"ConnectionPropertyChangedEvent",{enumerable:!0,get:function(){return J.ConnectionPropertyChangedEvent}});var re=B(2156);Object.defineProperty(P,"FilterEvent",{enumerable:!0,get:function(){return re.FilterEvent}});var ae=B(6237);Object.defineProperty(P,"NetworkQualityLevelChangedEvent",{enumerable:!0,get:function(){return ae.NetworkQualityLevelChangedEvent}});var g=B(6282);Object.defineProperty(P,"SpeechToTextEvent",{enumerable:!0,get:function(){return g.SpeechToTextEvent}});var G=B(7507);Object.defineProperty(P,"ExceptionEvent",{enumerable:!0,get:function(){return G.ExceptionEvent}}),Object.defineProperty(P,"ExceptionEventName",{enumerable:!0,get:function(){return G.ExceptionEventName}});var Y=B(8074);Object.defineProperty(P,"EventDispatcher",{enumerable:!0,get:function(){return Y.EventDispatcher}}),$(B(5810),P),j.JL.setOptions({enabled:!1})},835:Ae=>{"use strict";function P(){this._types=Object.create(null),this._extensions=Object.create(null);for(let B=0;B<arguments.length;B++)this.define(arguments[B]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}P.prototype.define=function(B,N){for(let $ in B){let j=B[$].map(function(y){return y.toLowerCase()});$=$.toLowerCase();for(let y=0;y<j.length;y++){const b=j[y];if("*"!==b[0]){if(!N&&b in this._types)throw new Error('Attempt to change mapping for "'+b+'" extension from "'+this._types[b]+'" to "'+$+'". Pass `force=true` to allow this, otherwise remove "'+b+'" from the list of extensions for "'+$+'".');this._types[b]=$}}if(N||!this._extensions[$]){const y=j[0];this._extensions[$]="*"!==y[0]?y:y.substr(1)}}},P.prototype.getType=function(B){let N=(B=String(B)).replace(/^.*[/\\]/,"").toLowerCase(),$=N.replace(/^.*\./,"").toLowerCase();return($.length<N.length-1||!(N.length<B.length))&&this._types[$]||null},P.prototype.getExtension=function(B){return(B=/^\s*([^;\s]*)/.test(B)&&RegExp.$1)&&this._extensions[B.toLowerCase()]||null},Ae.exports=P},8946:(Ae,P,B)=>{"use strict";let N=B(835);Ae.exports=new N(B(9920))},9920:Ae=>{Ae.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},2463:(Ae,P,B)=>{const N=B(8977),{MAX_LENGTH:$,MAX_SAFE_INTEGER:j}=B(3054),{re:y,t:b}=B(6072),S=B(4931),{compareIdentifiers:_}=B(4452);class m{constructor(C,q){if(q=S(q),C instanceof m){if(C.loose===!!q.loose&&C.includePrerelease===!!q.includePrerelease)return C;C=C.version}else if("string"!=typeof C)throw new TypeError(`Invalid Version: ${C}`);if(C.length>$)throw new TypeError(`version is longer than ${$} characters`);N("SemVer",C,q),this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease;const ee=C.trim().match(q.loose?y[b.LOOSE]:y[b.FULL]);if(!ee)throw new TypeError(`Invalid Version: ${C}`);if(this.raw=C,this.major=+ee[1],this.minor=+ee[2],this.patch=+ee[3],this.major>j||this.major<0)throw new TypeError("Invalid major version");if(this.minor>j||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>j||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=ee[4]?ee[4].split(".").map(I=>{if(/^[0-9]+$/.test(I)){const L=+I;if(L>=0&&L<j)return L}return I}):[],this.build=ee[5]?ee[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(C){if(N("SemVer.compare",this.version,this.options,C),!(C instanceof m)){if("string"==typeof C&&C===this.version)return 0;C=new m(C,this.options)}return C.version===this.version?0:this.compareMain(C)||this.comparePre(C)}compareMain(C){return C instanceof m||(C=new m(C,this.options)),_(this.major,C.major)||_(this.minor,C.minor)||_(this.patch,C.patch)}comparePre(C){if(C instanceof m||(C=new m(C,this.options)),this.prerelease.length&&!C.prerelease.length)return-1;if(!this.prerelease.length&&C.prerelease.length)return 1;if(!this.prerelease.length&&!C.prerelease.length)return 0;let q=0;do{const ee=this.prerelease[q],I=C.prerelease[q];if(N("prerelease compare",q,ee,I),void 0===ee&&void 0===I)return 0;if(void 0===I)return 1;if(void 0===ee)return-1;if(ee!==I)return _(ee,I)}while(++q)}compareBuild(C){C instanceof m||(C=new m(C,this.options));let q=0;do{const ee=this.build[q],I=C.build[q];if(N("prerelease compare",q,ee,I),void 0===ee&&void 0===I)return 0;if(void 0===I)return 1;if(void 0===ee)return-1;if(ee!==I)return _(ee,I)}while(++q)}inc(C,q){switch(C){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",q);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",q);break;case"prepatch":this.prerelease.length=0,this.inc("patch",q),this.inc("pre",q);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",q),this.inc("pre",q);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let ee=this.prerelease.length;for(;--ee>=0;)"number"==typeof this.prerelease[ee]&&(this.prerelease[ee]++,ee=-2);-1===ee&&this.prerelease.push(0)}q&&(0===_(this.prerelease[0],q)?isNaN(this.prerelease[1])&&(this.prerelease=[q,0]):this.prerelease=[q,0]);break;default:throw new Error(`invalid increment argument: ${C}`)}return this.format(),this.raw=this.version,this}}Ae.exports=m},4778:(Ae,P,B)=>{const N=B(2463);Ae.exports=(j,y)=>new N(j,y).major},3042:(Ae,P,B)=>{const N=B(2463);Ae.exports=(j,y)=>new N(j,y).minor},3054:Ae=>{Ae.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},8977:Ae=>{const P="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...B)=>console.error("SEMVER",...B):()=>{};Ae.exports=P},4452:Ae=>{const P=/^[0-9]+$/,B=($,j)=>{const y=P.test($),b=P.test(j);return y&&b&&($=+$,j=+j),$===j?0:y&&!b?-1:b&&!y?1:$<j?-1:1};Ae.exports={compareIdentifiers:B,rcompareIdentifiers:($,j)=>B(j,$)}},4931:Ae=>{const P=["includePrerelease","loose","rtl"];Ae.exports=N=>N?"object"!=typeof N?{loose:!0}:P.filter($=>N[$]).reduce(($,j)=>($[j]=!0,$),{}):{}},6072:(Ae,P,B)=>{const{MAX_SAFE_COMPONENT_LENGTH:N}=B(3054),$=B(8977),j=(P=Ae.exports={}).re=[],y=P.src=[],b=P.t={};let S=0;const _=(m,D,C)=>{const q=S++;$(m,q,D),b[m]=q,y[q]=D,j[q]=new RegExp(D,C?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*"),_("NUMERICIDENTIFIERLOOSE","[0-9]+"),_("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),_("MAINVERSION",`(${y[b.NUMERICIDENTIFIER]})\\.(${y[b.NUMERICIDENTIFIER]})\\.(${y[b.NUMERICIDENTIFIER]})`),_("MAINVERSIONLOOSE",`(${y[b.NUMERICIDENTIFIERLOOSE]})\\.(${y[b.NUMERICIDENTIFIERLOOSE]})\\.(${y[b.NUMERICIDENTIFIERLOOSE]})`),_("PRERELEASEIDENTIFIER",`(?:${y[b.NUMERICIDENTIFIER]}|${y[b.NONNUMERICIDENTIFIER]})`),_("PRERELEASEIDENTIFIERLOOSE",`(?:${y[b.NUMERICIDENTIFIERLOOSE]}|${y[b.NONNUMERICIDENTIFIER]})`),_("PRERELEASE",`(?:-(${y[b.PRERELEASEIDENTIFIER]}(?:\\.${y[b.PRERELEASEIDENTIFIER]})*))`),_("PRERELEASELOOSE",`(?:-?(${y[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${y[b.PRERELEASEIDENTIFIERLOOSE]})*))`),_("BUILDIDENTIFIER","[0-9A-Za-z-]+"),_("BUILD",`(?:\\+(${y[b.BUILDIDENTIFIER]}(?:\\.${y[b.BUILDIDENTIFIER]})*))`),_("FULLPLAIN",`v?${y[b.MAINVERSION]}${y[b.PRERELEASE]}?${y[b.BUILD]}?`),_("FULL",`^${y[b.FULLPLAIN]}$`),_("LOOSEPLAIN",`[v=\\s]*${y[b.MAINVERSIONLOOSE]}${y[b.PRERELEASELOOSE]}?${y[b.BUILD]}?`),_("LOOSE",`^${y[b.LOOSEPLAIN]}$`),_("GTLT","((?:<|>)?=?)"),_("XRANGEIDENTIFIERLOOSE",`${y[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_("XRANGEIDENTIFIER",`${y[b.NUMERICIDENTIFIER]}|x|X|\\*`),_("XRANGEPLAIN",`[v=\\s]*(${y[b.XRANGEIDENTIFIER]})(?:\\.(${y[b.XRANGEIDENTIFIER]})(?:\\.(${y[b.XRANGEIDENTIFIER]})(?:${y[b.PRERELEASE]})?${y[b.BUILD]}?)?)?`),_("XRANGEPLAINLOOSE",`[v=\\s]*(${y[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${y[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${y[b.XRANGEIDENTIFIERLOOSE]})(?:${y[b.PRERELEASELOOSE]})?${y[b.BUILD]}?)?)?`),_("XRANGE",`^${y[b.GTLT]}\\s*${y[b.XRANGEPLAIN]}$`),_("XRANGELOOSE",`^${y[b.GTLT]}\\s*${y[b.XRANGEPLAINLOOSE]}$`),_("COERCE",`(^|[^\\d])(\\d{1,${N}})(?:\\.(\\d{1,${N}}))?(?:\\.(\\d{1,${N}}))?(?:$|[^\\d])`),_("COERCERTL",y[b.COERCE],!0),_("LONETILDE","(?:~>?)"),_("TILDETRIM",`(\\s*)${y[b.LONETILDE]}\\s+`,!0),P.tildeTrimReplace="$1~",_("TILDE",`^${y[b.LONETILDE]}${y[b.XRANGEPLAIN]}$`),_("TILDELOOSE",`^${y[b.LONETILDE]}${y[b.XRANGEPLAINLOOSE]}$`),_("LONECARET","(?:\\^)"),_("CARETTRIM",`(\\s*)${y[b.LONECARET]}\\s+`,!0),P.caretTrimReplace="$1^",_("CARET",`^${y[b.LONECARET]}${y[b.XRANGEPLAIN]}$`),_("CARETLOOSE",`^${y[b.LONECARET]}${y[b.XRANGEPLAINLOOSE]}$`),_("COMPARATORLOOSE",`^${y[b.GTLT]}\\s*(${y[b.LOOSEPLAIN]})$|^$`),_("COMPARATOR",`^${y[b.GTLT]}\\s*(${y[b.FULLPLAIN]})$|^$`),_("COMPARATORTRIM",`(\\s*)${y[b.GTLT]}\\s*(${y[b.LOOSEPLAIN]}|${y[b.XRANGEPLAIN]})`,!0),P.comparatorTrimReplace="$1$2$3",_("HYPHENRANGE",`^\\s*(${y[b.XRANGEPLAIN]})\\s+-\\s+(${y[b.XRANGEPLAIN]})\\s*$`),_("HYPHENRANGELOOSE",`^\\s*(${y[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${y[b.XRANGEPLAINLOOSE]})\\s*$`),_("STAR","(<|>)?=?\\s*\\*"),_("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),_("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},4816:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),Object.defineProperty(P,"NIL",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(P,"parse",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(P,"v1",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(P,"v3",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(P,"v4",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(P,"v5",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(P,"validate",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(P,"version",{enumerable:!0,get:function(){return S.default}});var N=C(B(3291)),$=C(B(4635)),j=C(B(1546)),y=C(B(9181)),b=C(B(3583)),S=C(B(2471)),_=C(B(809)),m=C(B(7992)),D=C(B(8877));function C(q){return q&&q.__esModule?q:{default:q}}},441:(Ae,P)=>{"use strict";function $(I){return 14+(I+64>>>9<<4)+1}function b(I,L){const Q=(65535&I)+(65535&L);return(I>>16)+(L>>16)+(Q>>16)<<16|65535&Q}function _(I,L,Q,W,E,v){return b(function S(I,L){return I<<L|I>>>32-L}(b(b(L,I),b(W,v)),E),Q)}function m(I,L,Q,W,E,v,F){return _(L&Q|~L&W,I,L,E,v,F)}function D(I,L,Q,W,E,v,F){return _(L&W|Q&~W,I,L,E,v,F)}function C(I,L,Q,W,E,v,F){return _(L^Q^W,I,L,E,v,F)}function q(I,L,Q,W,E,v,F){return _(Q^(L|~W),I,L,E,v,F)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.default=function B(I){if("string"==typeof I){const L=unescape(encodeURIComponent(I));I=new Uint8Array(L.length);for(let Q=0;Q<L.length;++Q)I[Q]=L.charCodeAt(Q)}return function N(I){const L=[],Q=32*I.length,W="0123456789abcdef";for(let E=0;E<Q;E+=8){const v=I[E>>5]>>>E%32&255,F=parseInt(W.charAt(v>>>4&15)+W.charAt(15&v),16);L.push(F)}return L}(function j(I,L){I[L>>5]|=128<<L%32,I[$(L)-1]=L;let Q=1732584193,W=-271733879,E=-1732584194,v=271733878;for(let F=0;F<I.length;F+=16){const Z=Q,M=W,p=E,k=v;Q=m(Q,W,E,v,I[F],7,-680876936),v=m(v,Q,W,E,I[F+1],12,-389564586),E=m(E,v,Q,W,I[F+2],17,606105819),W=m(W,E,v,Q,I[F+3],22,-1044525330),Q=m(Q,W,E,v,I[F+4],7,-176418897),v=m(v,Q,W,E,I[F+5],12,1200080426),E=m(E,v,Q,W,I[F+6],17,-1473231341),W=m(W,E,v,Q,I[F+7],22,-45705983),Q=m(Q,W,E,v,I[F+8],7,1770035416),v=m(v,Q,W,E,I[F+9],12,-1958414417),E=m(E,v,Q,W,I[F+10],17,-42063),W=m(W,E,v,Q,I[F+11],22,-1990404162),Q=m(Q,W,E,v,I[F+12],7,1804603682),v=m(v,Q,W,E,I[F+13],12,-40341101),E=m(E,v,Q,W,I[F+14],17,-1502002290),W=m(W,E,v,Q,I[F+15],22,1236535329),Q=D(Q,W,E,v,I[F+1],5,-165796510),v=D(v,Q,W,E,I[F+6],9,-1069501632),E=D(E,v,Q,W,I[F+11],14,643717713),W=D(W,E,v,Q,I[F],20,-373897302),Q=D(Q,W,E,v,I[F+5],5,-701558691),v=D(v,Q,W,E,I[F+10],9,38016083),E=D(E,v,Q,W,I[F+15],14,-660478335),W=D(W,E,v,Q,I[F+4],20,-405537848),Q=D(Q,W,E,v,I[F+9],5,568446438),v=D(v,Q,W,E,I[F+14],9,-1019803690),E=D(E,v,Q,W,I[F+3],14,-187363961),W=D(W,E,v,Q,I[F+8],20,1163531501),Q=D(Q,W,E,v,I[F+13],5,-1444681467),v=D(v,Q,W,E,I[F+2],9,-51403784),E=D(E,v,Q,W,I[F+7],14,1735328473),W=D(W,E,v,Q,I[F+12],20,-1926607734),Q=C(Q,W,E,v,I[F+5],4,-378558),v=C(v,Q,W,E,I[F+8],11,-2022574463),E=C(E,v,Q,W,I[F+11],16,1839030562),W=C(W,E,v,Q,I[F+14],23,-35309556),Q=C(Q,W,E,v,I[F+1],4,-1530992060),v=C(v,Q,W,E,I[F+4],11,1272893353),E=C(E,v,Q,W,I[F+7],16,-155497632),W=C(W,E,v,Q,I[F+10],23,-1094730640),Q=C(Q,W,E,v,I[F+13],4,681279174),v=C(v,Q,W,E,I[F],11,-358537222),E=C(E,v,Q,W,I[F+3],16,-722521979),W=C(W,E,v,Q,I[F+6],23,76029189),Q=C(Q,W,E,v,I[F+9],4,-640364487),v=C(v,Q,W,E,I[F+12],11,-421815835),E=C(E,v,Q,W,I[F+15],16,530742520),W=C(W,E,v,Q,I[F+2],23,-995338651),Q=q(Q,W,E,v,I[F],6,-198630844),v=q(v,Q,W,E,I[F+7],10,1126891415),E=q(E,v,Q,W,I[F+14],15,-1416354905),W=q(W,E,v,Q,I[F+5],21,-57434055),Q=q(Q,W,E,v,I[F+12],6,1700485571),v=q(v,Q,W,E,I[F+3],10,-1894986606),E=q(E,v,Q,W,I[F+10],15,-1051523),W=q(W,E,v,Q,I[F+1],21,-2054922799),Q=q(Q,W,E,v,I[F+8],6,1873313359),v=q(v,Q,W,E,I[F+15],10,-30611744),E=q(E,v,Q,W,I[F+6],15,-1560198380),W=q(W,E,v,Q,I[F+13],21,1309151649),Q=q(Q,W,E,v,I[F+4],6,-145523070),v=q(v,Q,W,E,I[F+11],10,-1120210379),E=q(E,v,Q,W,I[F+2],15,718787259),W=q(W,E,v,Q,I[F+9],21,-343485551),Q=b(Q,Z),W=b(W,M),E=b(E,p),v=b(v,k)}return[Q,W,E,v]}(function y(I){if(0===I.length)return[];const L=8*I.length,Q=new Uint32Array($(L));for(let W=0;W<L;W+=8)Q[W>>5]|=(255&I[W/8])<<W%32;return Q}(I),8*I.length))}},9869:(Ae,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};P.default=N},3583:(Ae,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.default="00000000-0000-0000-0000-000000000000"},8877:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=function $(b){return b&&b.__esModule?b:{default:b}}(B(809));P.default=function j(b){if(!(0,N.default)(b))throw TypeError("Invalid UUID");let S;const _=new Uint8Array(16);return _[0]=(S=parseInt(b.slice(0,8),16))>>>24,_[1]=S>>>16&255,_[2]=S>>>8&255,_[3]=255&S,_[4]=(S=parseInt(b.slice(9,13),16))>>>8,_[5]=255&S,_[6]=(S=parseInt(b.slice(14,18),16))>>>8,_[7]=255&S,_[8]=(S=parseInt(b.slice(19,23),16))>>>8,_[9]=255&S,_[10]=(S=parseInt(b.slice(24,36),16))/1099511627776&255,_[11]=S/4294967296&255,_[12]=S>>>24&255,_[13]=S>>>16&255,_[14]=S>>>8&255,_[15]=255&S,_}},2662:(Ae,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.default=/^(?:[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},2131:(Ae,P)=>{"use strict";let B;Object.defineProperty(P,"__esModule",{value:!0}),P.default=function $(){if(!B&&(B="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!B))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return B(N)};const N=new Uint8Array(16)},3137:(Ae,P)=>{"use strict";function B(y,b,S,_){switch(y){case 0:return b&S^~b&_;case 1:case 3:return b^S^_;case 2:return b&S^b&_^S&_}}function N(y,b){return y<<b|y>>>32-b}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.default=function $(y){const b=[1518500249,1859775393,2400959708,3395469782],S=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof y){const C=unescape(encodeURIComponent(y));y=[];for(let q=0;q<C.length;++q)y.push(C.charCodeAt(q))}else Array.isArray(y)||(y=Array.prototype.slice.call(y));y.push(128);const m=Math.ceil((y.length/4+2)/16),D=new Array(m);for(let C=0;C<m;++C){const q=new Uint32Array(16);for(let ee=0;ee<16;++ee)q[ee]=y[64*C+4*ee]<<24|y[64*C+4*ee+1]<<16|y[64*C+4*ee+2]<<8|y[64*C+4*ee+3];D[C]=q}D[m-1][14]=8*(y.length-1)/Math.pow(2,32),D[m-1][14]=Math.floor(D[m-1][14]),D[m-1][15]=8*(y.length-1)&4294967295;for(let C=0;C<m;++C){const q=new Uint32Array(80);for(let E=0;E<16;++E)q[E]=D[C][E];for(let E=16;E<80;++E)q[E]=N(q[E-3]^q[E-8]^q[E-14]^q[E-16],1);let ee=S[0],I=S[1],L=S[2],Q=S[3],W=S[4];for(let E=0;E<80;++E){const v=Math.floor(E/20),F=N(ee,5)+B(v,I,L,Q)+W+b[v]+q[E]>>>0;W=Q,Q=L,L=N(I,30)>>>0,I=ee,ee=F}S[0]=S[0]+ee>>>0,S[1]=S[1]+I>>>0,S[2]=S[2]+L>>>0,S[3]=S[3]+Q>>>0,S[4]=S[4]+W>>>0}return[S[0]>>24&255,S[0]>>16&255,S[0]>>8&255,255&S[0],S[1]>>24&255,S[1]>>16&255,S[1]>>8&255,255&S[1],S[2]>>24&255,S[2]>>16&255,S[2]>>8&255,255&S[2],S[3]>>24&255,S[3]>>16&255,S[3]>>8&255,255&S[3],S[4]>>24&255,S[4]>>16&255,S[4]>>8&255,255&S[4]]}},7992:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.unsafeStringify=y;var N=function $(_){return _&&_.__esModule?_:{default:_}}(B(809));const j=[];for(let _=0;_<256;++_)j.push((_+256).toString(16).slice(1));function y(_,m=0){return(j[_[m+0]]+j[_[m+1]]+j[_[m+2]]+j[_[m+3]]+"-"+j[_[m+4]]+j[_[m+5]]+"-"+j[_[m+6]]+j[_[m+7]]+"-"+j[_[m+8]]+j[_[m+9]]+"-"+j[_[m+10]]+j[_[m+11]]+j[_[m+12]]+j[_[m+13]]+j[_[m+14]]+j[_[m+15]]).toLowerCase()}P.default=function b(_,m=0){const D=y(_,m);if(!(0,N.default)(D))throw TypeError("Stringified UUID is invalid");return D}},3291:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=function j(C){return C&&C.__esModule?C:{default:C}}(B(2131)),$=B(7992);let y,b,S=0,_=0;P.default=function m(C,q,ee){let I=q&&ee||0;const L=q||new Array(16);let Q=(C=C||{}).node||y,W=void 0!==C.clockseq?C.clockseq:b;if(null==Q||null==W){const p=C.random||(C.rng||N.default)();null==Q&&(Q=y=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==W&&(W=b=16383&(p[6]<<8|p[7]))}let E=void 0!==C.msecs?C.msecs:Date.now(),v=void 0!==C.nsecs?C.nsecs:_+1;const F=E-S+(v-_)/1e4;if(F<0&&void 0===C.clockseq&&(W=W+1&16383),(F<0||E>S)&&void 0===C.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");S=E,_=v,b=W,E+=122192928e5;const Z=(1e4*(268435455&E)+v)%4294967296;L[I++]=Z>>>24&255,L[I++]=Z>>>16&255,L[I++]=Z>>>8&255,L[I++]=255&Z;const M=E/4294967296*1e4&268435455;L[I++]=M>>>8&255,L[I++]=255&M,L[I++]=M>>>24&15|16,L[I++]=M>>>16&255,L[I++]=W>>>8|128,L[I++]=255&W;for(let p=0;p<6;++p)L[I+p]=Q[p];return q||(0,$.unsafeStringify)(L)}},4635:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=j(B(250)),$=j(B(441));function j(S){return S&&S.__esModule?S:{default:S}}var b=(0,N.default)("v3",48,$.default);P.default=b},250:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.URL=P.DNS=void 0,P.default=function _(m,D,C){function q(ee,I,L,Q){var W;if("string"==typeof ee&&(ee=function y(m){m=unescape(encodeURIComponent(m));const D=[];for(let C=0;C<m.length;++C)D.push(m.charCodeAt(C));return D}(ee)),"string"==typeof I&&(I=(0,$.default)(I)),16!==(null===(W=I)||void 0===W?void 0:W.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let E=new Uint8Array(16+ee.length);if(E.set(I),E.set(ee,I.length),E=C(E),E[6]=15&E[6]|D,E[8]=63&E[8]|128,L){Q=Q||0;for(let v=0;v<16;++v)L[Q+v]=E[v];return L}return(0,N.unsafeStringify)(E)}try{q.name=m}catch(ee){}return q.DNS=b,q.URL=S,q};var N=B(7992),$=function j(m){return m&&m.__esModule?m:{default:m}}(B(8877));const b="6ba7b810-9dad-11d1-80b4-00c04fd430c8";P.DNS=b;const S="6ba7b811-9dad-11d1-80b4-00c04fd430c8";P.URL=S},1546:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=y(B(9869)),$=y(B(2131)),j=B(7992);function y(_){return _&&_.__esModule?_:{default:_}}P.default=function b(_,m,D){if(N.default.randomUUID&&!m&&!_)return N.default.randomUUID();const C=(_=_||{}).random||(_.rng||$.default)();if(C[6]=15&C[6]|64,C[8]=63&C[8]|128,m){D=D||0;for(let q=0;q<16;++q)m[D+q]=C[q];return m}return(0,j.unsafeStringify)(C)}},9181:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=j(B(250)),$=j(B(3137));function j(S){return S&&S.__esModule?S:{default:S}}var b=(0,N.default)("v5",80,$.default);P.default=b},809:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=function $(b){return b&&b.__esModule?b:{default:b}}(B(2662));P.default=function j(b){return"string"==typeof b&&N.default.test(b)}},2471:(Ae,P,B)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=function $(b){return b&&b.__esModule?b:{default:b}}(B(809));P.default=function j(b){if(!(0,N.default)(b))throw TypeError("Invalid UUID");return parseInt(b.slice(14,15),16)}},2437:function(Ae,P,B){var N;Ae=B.nmd(Ae),function(){"use strict";var $={function:!0,object:!0},j=$[typeof window]&&window||this,_=$[typeof P]&&P&&$.object&&Ae&&!Ae.nodeType&&Ae&&"object"==typeof global&&global;_&&(_.global===_||_.window===_||_.self===_)&&(j=_);var m=Math.pow(2,53)-1,D=/\bOpera/,q=Object.prototype,ee=q.hasOwnProperty,I=q.toString;function L(R){return(R=String(R)).charAt(0).toUpperCase()+R.slice(1)}function E(R){return R=k(R),/^(?:webOS|i(?:OS|P))/.test(R)?R:L(R)}function v(R,J){for(var re in R)ee.call(R,re)&&J(R[re],re,R)}function F(R){return null==R?L(R):I.call(R).slice(8,-1)}function M(R){return String(R).replace(/([ -])(?!$)/g,"$1?")}function p(R,J){var re=null;return function W(R,J){var re=-1,ae=R?R.length:0;if("number"==typeof ae&&ae>-1&&ae<=m)for(;++re<ae;)J(R[re],re,R);else v(R,J)}(R,function(ae,g){re=J(re,ae,g,R)}),re}function k(R){return String(R).replace(/^ +| +$/g,"")}var T=function te(R){var J=j,re=R&&"object"==typeof R&&"String"!=F(R);re&&(J=R,R=null);var ae=J.navigator||{},g=ae.userAgent||"";R||(R=g);var ue,Qn,Y=re?!!ae.likeChrome:/\bChrome\b/.test(R)&&!/internal|\n/i.test(I.toString()),x="Object",H=re?x:"ScriptBridgingProxyObject",K=re?x:"Environment",me=re&&J.java?"JavaPackage":F(J.java),le=re?x:"RuntimeObject",ce=/\bJava/.test(me)&&J.java,De=ce&&F(J.environment)==K,$e=ce?"a":"\u03b1",Be=ce?"b":"\u03b2",ze=J.document||{},ut=J.operamini||J.opera,Ue=D.test(Ue=re&&ut?ut["[[Class]]"]:F(ut))?Ue:ut=null,Yt=R,qe=[],cn=null,Gn=R==g,Ye=Gn&&ut&&"function"==typeof ut.version&&ut.version(),Le=function Tp(yi){return p(yi,function(gn,Xt){return gn||RegExp("\\b"+(Xt.pattern||M(Xt))+"\\b","i").exec(R)&&(Xt.label||Xt)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),je=function Oy(yi){return p(yi,function(gn,Xt){return gn||RegExp("\\b"+(Xt.pattern||M(Xt))+"\\b","i").exec(R)&&(Xt.label||Xt)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Lt=ar([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),ai=function xy(yi){return p(yi,function(gn,Xt,So){return gn||(Xt[Lt]||Xt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Lt)]||RegExp("\\b"+M(So)+"(?:\\b|\\w*\\d)","i").exec(R))&&So})}({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),We=function Iy(yi){return p(yi,function(gn,Xt){var So=Xt.pattern||M(Xt);return!gn&&(gn=RegExp("\\b"+So+"(?:/[\\d.]+|[ \\w.]*)","i").exec(R))&&(gn=function Q(R,J,re){var ae={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return J&&re&&/^Win/i.test(R)&&!/^Windows Phone /i.test(R)&&(ae=ae[/[\d.]+$/.exec(R)])&&(R="Windows "+ae),R=String(R),J&&re&&(R=R.replace(RegExp(J,"i"),re)),E(R.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(gn,So,Xt.label||Xt)),gn})}(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function ar(yi){return p(yi,function(gn,Xt){var So=Xt.pattern||M(Xt);return!gn&&(gn=RegExp("\\b"+So+" *\\d+[.\\w_]*","i").exec(R)||RegExp("\\b"+So+" *\\w+-[\\w]*","i").exec(R)||RegExp("\\b"+So+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(R))&&((gn=String(Xt.label&&!RegExp(So,"i").test(Xt.label)?Xt.label:gn).split("/"))[1]&&!/[\d.]+/.test(gn[0])&&(gn[0]+=" "+gn[1]),Xt=Xt.label||Xt,gn=E(gn[0].replace(RegExp(So,"i"),Xt).replace(RegExp("; *(?:"+Xt+"[_-])?","i")," ").replace(RegExp("("+Xt+")[-_.]?(\\w)","i"),"$1 $2"))),gn})}function ld(yi){return p(yi,function(gn,Xt){return gn||(RegExp(Xt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(R)||0)[1]||null})}if(Le&&(Le=[Le]),/\bAndroid\b/.test(We)&&!Lt&&(ue=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(R))&&(Lt=k(ue[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ai&&!Lt?Lt=ar([ai]):ai&&Lt&&(Lt=Lt.replace(RegExp("^("+M(ai)+")[-_.\\s]","i"),ai+" ").replace(RegExp("^("+M(ai)+")[-_.]?(\\w)","i"),ai+" $2")),(ue=/\bGoogle TV\b/.exec(Lt))&&(Lt=ue[0]),/\bSimulator\b/i.test(R)&&(Lt=(Lt?Lt+" ":"")+"Simulator"),"Opera Mini"==je&&/\bOPiOS\b/.test(R)&&qe.push("running in Turbo/Uncompressed mode"),"IE"==je&&/\blike iPhone OS\b/.test(R)?(ai=(ue=te(R.replace(/like iPhone OS/,""))).manufacturer,Lt=ue.product):/^iP/.test(Lt)?(je||(je="Safari"),We="iOS"+((ue=/ OS ([\d_]+)/i.exec(R))?" "+ue[1].replace(/_/g,"."):"")):"Konqueror"==je&&/^Linux\b/i.test(We)?We="Kubuntu":ai&&"Google"!=ai&&(/Chrome/.test(je)&&!/\bMobile Safari\b/i.test(R)||/\bVita\b/.test(Lt))||/\bAndroid\b/.test(We)&&/^Chrome/.test(je)&&/\bVersion\//i.test(R)?(je="Android Browser",We=/\bAndroid\b/.test(We)?We:"Android"):"Silk"==je?(/\bMobi/i.test(R)||(We="Android",qe.unshift("desktop mode")),/Accelerated *= *true/i.test(R)&&qe.unshift("accelerated")):"UC Browser"==je&&/\bUCWEB\b/.test(R)?qe.push("speed mode"):"PaleMoon"==je&&(ue=/\bFirefox\/([\d.]+)\b/.exec(R))?qe.push("identifying as Firefox "+ue[1]):"Firefox"==je&&(ue=/\b(Mobile|Tablet|TV)\b/i.exec(R))?(We||(We="Firefox OS"),Lt||(Lt=ue[1])):!je||(ue=!/\bMinefield\b/i.test(R)&&/\b(?:Firefox|Safari)\b/.exec(je))?(je&&!Lt&&/[\/,]|^[^(]+?\)/.test(R.slice(R.indexOf(ue+"/")+8))&&(je=null),(ue=Lt||ai||We)&&(Lt||ai||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(We))&&(je=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(We)?We:ue)+" Browser")):"Electron"==je&&(ue=(/\bChrome\/([\d.]+)\b/.exec(R)||0)[1])&&qe.push("Chromium "+ue),Ye||(Ye=ld(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",M(je),"(?:Firefox|Minefield|NetFront)"])),(ue=("iCab"==Le&&parseFloat(Ye)>3?"WebKit":/\bOpera\b/.test(je)&&(/\bOPR\b/.test(R)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(R)&&!/^(?:Trident|EdgeHTML)$/.test(Le)&&"WebKit"||!Le&&/\bMSIE\b/i.test(R)&&("Mac OS"==We?"Tasman":"Trident")||"WebKit"==Le&&/\bPlayStation\b(?! Vita\b)/i.test(je)&&"NetFront")&&(Le=[ue]),"IE"==je&&(ue=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(R)||0)[1])?(je+=" Mobile",We="Windows Phone "+(/\+$/.test(ue)?ue:ue+".x"),qe.unshift("desktop mode")):/\bWPDesktop\b/i.test(R)?(je="IE Mobile",We="Windows Phone 8.x",qe.unshift("desktop mode"),Ye||(Ye=(/\brv:([\d.]+)/.exec(R)||0)[1])):"IE"!=je&&"Trident"==Le&&(ue=/\brv:([\d.]+)/.exec(R))&&(je&&qe.push("identifying as "+je+(Ye?" "+Ye:"")),je="IE",Ye=ue[1]),Gn){if(function Z(R,J){var re=null!=R?typeof R[J]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(re)||"object"==re&&!R[J])}(J,"global"))if(ce&&(Yt=(ue=ce.lang.System).getProperty("os.arch"),We=We||ue.getProperty("os.name")+" "+ue.getProperty("os.version")),De){try{Ye=J.require("ringo/engine").version.join("."),je="RingoJS"}catch(yi){(ue=J.system)&&ue.global.system==J.system&&(je="Narwhal",We||(We=ue[0].os||null))}je||(je="Rhino")}else"object"==typeof J.process&&!J.process.browser&&(ue=J.process)&&("object"==typeof ue.versions&&("string"==typeof ue.versions.electron?(qe.push("Node "+ue.versions.node),je="Electron",Ye=ue.versions.electron):"string"==typeof ue.versions.nw&&(qe.push("Chromium "+Ye,"Node "+ue.versions.node),je="NW.js",Ye=ue.versions.nw)),je||(je="Node.js",Yt=ue.arch,We=ue.platform,Ye=(Ye=/[\d.]+/.exec(ue.version))?Ye[0]:null));else F(ue=J.runtime)==H?(je="Adobe AIR",We=ue.flash.system.Capabilities.os):F(ue=J.phantom)==le?(je="PhantomJS",Ye=(ue=ue.version||null)&&ue.major+"."+ue.minor+"."+ue.patch):"number"==typeof ze.documentMode&&(ue=/\bTrident\/(\d+)/i.exec(R))?((ue=+ue[1]+4)!=(Ye=[Ye,ze.documentMode])[1]&&(qe.push("IE "+Ye[1]+" mode"),Le&&(Le[1]=""),Ye[1]=ue),Ye="IE"==je?String(Ye[1].toFixed(1)):Ye[0]):"number"==typeof ze.documentMode&&/^(?:Chrome|Firefox)\b/.test(je)&&(qe.push("masking as "+je+" "+Ye),je="IE",Ye="11.0",Le=["Trident"],We="Windows");We=We&&E(We)}if(Ye&&(ue=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ye)||/(?:alpha|beta)(?: ?\d)?/i.exec(R+";"+(Gn&&ae.appMinorVersion))||/\bMinefield\b/i.test(R)&&"a")&&(cn=/b/i.test(ue)?"beta":"alpha",Ye=Ye.replace(RegExp(ue+"\\+?$"),"")+("beta"==cn?Be:$e)+(/\d+\+?/.exec(ue)||"")),"Fennec"==je||"Firefox"==je&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(We))je="Firefox Mobile";else if("Maxthon"==je&&Ye)Ye=Ye.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Lt))"Xbox 360"==Lt&&(We=null),"Xbox 360"==Lt&&/\bIEMobile\b/.test(R)&&qe.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(je)&&(!je||Lt||/Browser|Mobi/.test(je))||"Windows CE"!=We&&!/Mobi/i.test(R))if("IE"==je&&Gn)try{null===J.external&&qe.unshift("platform preview")}catch(yi){qe.unshift("embedded")}else(/\bBlackBerry\b/.test(Lt)||/\bBB10\b/.test(R))&&(ue=(RegExp(Lt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(R)||0)[1]||Ye)?(We=((ue=[ue,/BB10/.test(R)])[1]?(Lt=null,ai="BlackBerry"):"Device Software")+" "+ue[0],Ye=null):this!=v&&"Wii"!=Lt&&(Gn&&ut||/Opera/.test(je)&&/\b(?:MSIE|Firefox)\b/i.test(R)||"Firefox"==je&&/\bOS X (?:\d+\.){2,}/.test(We)||"IE"==je&&(We&&!/^Win/.test(We)&&Ye>5.5||/\bWindows XP\b/.test(We)&&Ye>8||8==Ye&&!/\bTrident\b/.test(R)))&&!D.test(ue=te.call(v,R.replace(D,"")+";"))&&ue.name&&(ue="ing as "+ue.name+((ue=ue.version)?" "+ue:""),D.test(je)?(/\bIE\b/.test(ue)&&"Mac OS"==We&&(We=null),ue="identify"+ue):(ue="mask"+ue,je=Ue?E(Ue.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(ue)&&(We=null),Gn||(Ye=null)),Le=["Presto"],qe.push(ue));else je+=" Mobile";(ue=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(R)||0)[1])&&(ue=[parseFloat(ue.replace(/\.(\d)$/,".0$1")),ue],"Safari"==je&&"+"==ue[1].slice(-1)?(je="WebKit Nightly",cn="alpha",Ye=ue[1].slice(0,-1)):(Ye==ue[1]||Ye==(ue[2]=(/\bSafari\/([\d.]+\+?)/i.exec(R)||0)[1]))&&(Ye=null),ue[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(R)||0)[1],537.36==ue[0]&&537.36==ue[2]&&parseFloat(ue[1])>=28&&"WebKit"==Le&&(Le=["Blink"]),Gn&&(Y||ue[1])?(Le&&(Le[1]="like Chrome"),ue=ue[1]||((ue=ue[0])<530?1:ue<532?2:ue<532.05?3:ue<533?4:ue<534.03?5:ue<534.07?6:ue<534.1?7:ue<534.13?8:ue<534.16?9:ue<534.24?10:ue<534.3?11:ue<535.01?12:ue<535.02?"13+":ue<535.07?15:ue<535.11?16:ue<535.19?17:ue<536.05?18:ue<536.1?19:ue<537.01?20:ue<537.11?"21+":ue<537.13?23:ue<537.18?24:ue<537.24?25:ue<537.36?26:"Blink"!=Le?"27":"28")):(Le&&(Le[1]="like Safari"),ue=(ue=ue[0])<400?1:ue<500?2:ue<526?3:ue<533?4:ue<534?"4+":ue<535?5:ue<537?6:ue<538?7:ue<601?8:ue<602?9:ue<604?10:ue<606?11:ue<608?12:"12"),Le&&(Le[1]+=" "+(ue+="number"==typeof ue?".x":/[.+]/.test(ue)?"":"+")),"Safari"==je&&(!Ye||parseInt(Ye)>45)?Ye=ue:"Chrome"==je&&/\bHeadlessChrome/i.test(R)&&qe.unshift("headless")),"Opera"==je&&(ue=/\bzbov|zvav$/.exec(We))?(je+=" ",qe.unshift("desktop mode"),"zvav"==ue?(je+="Mini",Ye=null):je+="Mobile",We=We.replace(RegExp(" *"+ue+"$"),"")):"Safari"==je&&/\bChrome\b/.exec(Le&&Le[1])?(qe.unshift("desktop mode"),je="Chrome Mobile",Ye=null,/\bOS X\b/.test(We)?(ai="Apple",We="iOS 4.3+"):We=null):/\bSRWare Iron\b/.test(je)&&!Ye&&(Ye=ld("Chrome")),Ye&&0==Ye.indexOf(ue=/[\d.]+$/.exec(We))&&R.indexOf("/"+ue+"-")>-1&&(We=k(We.replace(ue,""))),We&&-1!=We.indexOf(je)&&!RegExp(je+" OS").test(We)&&(We=We.replace(RegExp(" *"+M(je)+" *"),"")),Le&&!/\b(?:Avant|Nook)\b/.test(je)&&(/Browser|Lunascape|Maxthon/.test(je)||"Safari"!=je&&/^iOS/.test(We)&&/\bSafari\b/.test(Le[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(je)&&Le[1])&&(ue=Le[Le.length-1])&&qe.push(ue),qe.length&&(qe=["("+qe.join("; ")+")"]),ai&&Lt&&Lt.indexOf(ai)<0&&qe.push("on "+ai),Lt&&qe.push((/^on /.test(qe[qe.length-1])?"":"on ")+Lt),We&&(ue=/ ([\d.+]+)$/.exec(We),Qn=ue&&"/"==We.charAt(We.length-ue[0].length-1),We={architecture:32,family:ue&&!Qn?We.replace(ue[0],""):We,version:ue?ue[1]:null,toString:function(){var yi=this.version;return this.family+(yi&&!Qn?" "+yi:"")+(64==this.architecture?" 64-bit":"")}}),(ue=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Yt))&&!/\bi686\b/i.test(Yt)?(We&&(We.architecture=64,We.family=We.family.replace(RegExp(" *"+ue),"")),je&&(/\bWOW64\b/i.test(R)||Gn&&/\w(?:86|32)$/.test(ae.cpuClass||ae.platform)&&!/\bWin64; x64\b/i.test(R))&&qe.unshift("32-bit")):We&&/^OS X/.test(We.family)&&"Chrome"==je&&parseFloat(Ye)>=39&&(We.architecture=64),R||(R=null);var bi={};return bi.description=R,bi.layout=Le&&Le[0],bi.manufacturer=ai,bi.name=je,bi.prerelease=cn,bi.product=Lt,bi.ua=R,bi.version=je&&Ye,bi.os=We||{architecture:null,family:null,version:null,toString:function(){return"null"}},bi.parse=te,bi.toString=function Ry(){return this.description||""},bi.version&&qe.unshift(Ye),bi.name&&qe.unshift(je),We&&je&&!(We==String(We).split(" ")[0]&&(We==je.split(" ")[0]||Lt))&&qe.push(Lt?"("+We+")":"on "+We),qe.length&&(bi.description=qe.join(" ")),bi}();j.platform=T,void 0!==(N=function(){return T}.call(P,B,P,Ae))&&(Ae.exports=N)}.call(this)},2069:Ae=>{function P(){}Ae.exports=P,P.mixin=function(B){var N=B.prototype||B;N.isWildEmitter=!0,N.on=function($,j,y){this.callbacks=this.callbacks||{};var b=3===arguments.length,S=b?arguments[1]:void 0,_=b?arguments[2]:arguments[1];return _._groupName=S,(this.callbacks[$]=this.callbacks[$]||[]).push(_),this},N.once=function($,j,y){var b=this,S=3===arguments.length,_=S?arguments[1]:void 0,m=S?arguments[2]:arguments[1];function D(){b.off($,D),m.apply(this,arguments)}return this.on($,_,D),this},N.releaseGroup=function($){var j,y,b,S;for(j in this.callbacks=this.callbacks||{},this.callbacks)for(y=0,b=(S=this.callbacks[j]).length;y<b;y++)S[y]._groupName===$&&(S.splice(y,1),y--,b--);return this},N.off=function($,j){this.callbacks=this.callbacks||{};var b,y=this.callbacks[$];return y?1===arguments.length?(delete this.callbacks[$],this):(-1!==(b=y.indexOf(j))&&(y.splice(b,1),0===y.length&&delete this.callbacks[$]),this):this},N.emit=function($){this.callbacks=this.callbacks||{};var S,_,D,j=[].slice.call(arguments,1),y=this.callbacks[$],b=this.getWildcardCallbacks($);if(y)for(S=0,_=(D=y.slice()).length;S<_&&D[S];++S)D[S].apply(this,j);if(b)for(_=b.length,S=0,_=(D=b.slice()).length;S<_&&D[S];++S)D[S].apply(this,[$].concat(j));return this},N.getWildcardCallbacks=function($){this.callbacks=this.callbacks||{};var j,y,b=[];for(j in this.callbacks)y=j.split("*"),("*"===j||2===y.length&&$.slice(0,y[0].length)===y[0])&&(b=b.concat(this.callbacks[j]));return b}},P.mixin(P)},940:function(Ae,P,B){var N;!function($){"use strict";function j(){}var y=j.prototype,b=$.EventEmitter;function S(D,C){for(var q=D.length;q--;)if(D[q].listener===C)return q;return-1}function _(D){return function(){return this[D].apply(this,arguments)}}function m(D){return"function"==typeof D||D instanceof RegExp||!(!D||"object"!=typeof D)&&m(D.listener)}y.getListeners=function(C){var ee,I,q=this._getEvents();if(C instanceof RegExp)for(I in ee={},q)q.hasOwnProperty(I)&&C.test(I)&&(ee[I]=q[I]);else ee=q[C]||(q[C]=[]);return ee},y.flattenListeners=function(C){var ee,q=[];for(ee=0;ee<C.length;ee+=1)q.push(C[ee].listener);return q},y.getListenersAsObject=function(C){var ee,q=this.getListeners(C);return q instanceof Array&&((ee={})[C]=q),ee||q},y.addListener=function(C,q){if(!m(q))throw new TypeError("listener must be a function");var L,ee=this.getListenersAsObject(C),I="object"==typeof q;for(L in ee)ee.hasOwnProperty(L)&&-1===S(ee[L],q)&&ee[L].push(I?q:{listener:q,once:!1});return this},y.on=_("addListener"),y.addOnceListener=function(C,q){return this.addListener(C,{listener:q,once:!0})},y.once=_("addOnceListener"),y.defineEvent=function(C){return this.getListeners(C),this},y.defineEvents=function(C){for(var q=0;q<C.length;q+=1)this.defineEvent(C[q]);return this},y.removeListener=function(C,q){var I,L,ee=this.getListenersAsObject(C);for(L in ee)ee.hasOwnProperty(L)&&-1!==(I=S(ee[L],q))&&ee[L].splice(I,1);return this},y.off=_("removeListener"),y.addListeners=function(C,q){return this.manipulateListeners(!1,C,q)},y.removeListeners=function(C,q){return this.manipulateListeners(!0,C,q)},y.manipulateListeners=function(C,q,ee){var I,L,Q=C?this.removeListener:this.addListener,W=C?this.removeListeners:this.addListeners;if("object"!=typeof q||q instanceof RegExp)for(I=ee.length;I--;)Q.call(this,q,ee[I]);else for(I in q)q.hasOwnProperty(I)&&(L=q[I])&&("function"==typeof L?Q.call(this,I,L):W.call(this,I,L));return this},y.removeEvent=function(C){var I,q=typeof C,ee=this._getEvents();if("string"===q)delete ee[C];else if(C instanceof RegExp)for(I in ee)ee.hasOwnProperty(I)&&C.test(I)&&delete ee[I];else delete this._events;return this},y.removeAllListeners=_("removeEvent"),y.emitEvent=function(C,q){var I,L,Q,W,ee=this.getListenersAsObject(C);for(W in ee)if(ee.hasOwnProperty(W))for(I=ee[W].slice(0),Q=0;Q<I.length;Q++)!0===(L=I[Q]).once&&this.removeListener(C,L.listener),L.listener.apply(this,q||[])===this._getOnceReturnValue()&&this.removeListener(C,L.listener);return this},y.trigger=_("emitEvent"),y.emit=function(C){var q=Array.prototype.slice.call(arguments,1);return this.emitEvent(C,q)},y.setOnceReturnValue=function(C){return this._onceReturnValue=C,this},y._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},y._getEvents=function(){return this._events||(this._events={})},j.noConflict=function(){return $.EventEmitter=b,j},void 0!==(N=function(){return j}.call($,B,$,Ae))&&(Ae.exports=N)}("undefined"!=typeof window?window:this||{})},8808:Ae=>{"use strict";Ae.exports=JSON.parse('["stun.l.google.com:19302","stun1.l.google.com:19302","stun2.l.google.com:19302","stun3.l.google.com:19302","stun4.l.google.com:19302","stun.ekiga.net","stun.ideasip.com","stun.schlund.de","stun.stunprotocol.org:3478","stun.voiparound.com","stun.voipbuster.com","stun.voipstunt.com","stun.voxgratia.org"]')},4576:Ae=>{"use strict";Ae.exports=[]},5549:Ae=>{"use strict";Ae.exports=JSON.parse('{"author":"OpenVidu","dependencies":{"freeice":"2.2.2","hark":"1.2.3","jsnlog":"2.30.0","mime":"3.0.0","platform":"1.3.6","semver":"7.3.8","uuid":"9.0.0","wolfy87-eventemitter":"5.2.9","events":"3.3.0","inherits":"2.0.4"},"description":"OpenVidu Browser","devDependencies":{"@types/node":"18.11.9","@types/platform":"1.3.4","browserify":"17.0.0","grunt":"1.5.3","grunt-cli":"1.4.3","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"2.0.0","grunt-contrib-uglify":"5.2.2","grunt-contrib-watch":"1.1.0","grunt-postcss":"0.9.0","grunt-string-replace":"1.3.3","grunt-ts":"6.0.0-beta.22","terser":"5.15.1","tsify":"5.0.4","tslint":"6.1.3","typedoc":"0.23.21","typescript":"4.9.3"},"license":"Apache-2.0","main":"lib/index.js","name":"openvidu-browser","repository":{"type":"git","url":"git://github.com/OpenVidu/openvidu"},"scripts":{"browserify":"VERSION=${VERSION:-dev}; mkdir -p static/js/ && cd src && ../node_modules/browserify/bin/cmd.js Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/openvidu-browser-$VERSION.js -v","browserify-prod":"VERSION=${VERSION:-dev}; mkdir -p static/js/ && cd src && ../node_modules/browserify/bin/cmd.js --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | ../node_modules/terser/bin/terser --source-map content=inline --output ../static/js/openvidu-browser-$VERSION.min.js","build":"cd src/OpenVidu && ./../../node_modules/typescript/bin/tsc && cd ../.. && ./node_modules/typescript/bin/tsc --declaration src/index.ts --outDir ./lib --sourceMap --target es5 --lib dom,es5,es2015.promise,scripthost && rm -rf ./ts4.4 && mkdir -p ./ts4.4/lib && cp -r ./lib ./ts4.4 && find ./ts4.4/lib -type f ! -iname \'*.d.ts\' -delete && ./config/replace_for_ts44.sh","docs":"./generate-docs.sh"},"types":"lib/index.d.ts","typesVersions":{"<4.4":{"*":["ts4.4/*"]}},"version":"2.26.0"}')}},Ae=>{Ae(Ae.s=3749)}]);
"use strict";(self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[]).push([[429],{7435:(Ee,Pe,we)=>{we(609)},609:(Ee,Pe,we)=>{var De;void 0!==(De=function(){!function(e){var r=e.performance;function t(h){r&&r.mark&&r.mark(h)}function n(h,a){r&&r.measure&&r.measure(h,a)}t("Zone");var u=e.__Zone_symbol_prefix||"__zone_symbol__";function c(h){return u+h}var l=!0===e[c("forceDuplicateZoneCheck")];if(e.Zone){if(l||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var v=function(){function h(a,o){this._parent=a,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,o)}return h.assertZonePatched=function(){if(e.Promise!==F.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(h,"root",{get:function(){for(var a=h.current;a.parent;)a=a.parent;return a},enumerable:!1,configurable:!0}),Object.defineProperty(h,"current",{get:function(){return A.zone},enumerable:!1,configurable:!0}),Object.defineProperty(h,"currentTask",{get:function(){return ie},enumerable:!1,configurable:!0}),h.__load_patch=function(a,o,i){if(void 0===i&&(i=!1),F.hasOwnProperty(a)){if(!i&&l)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var P="Zone:"+a;t(P),F[a]=o(e,h,w),n(P,P)}},Object.defineProperty(h.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),h.prototype.get=function(a){var o=this.getZoneWith(a);if(o)return o._properties[a]},h.prototype.getZoneWith=function(a){for(var o=this;o;){if(o._properties.hasOwnProperty(a))return o;o=o._parent}return null},h.prototype.fork=function(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)},h.prototype.wrap=function(a,o){if("function"!=typeof a)throw new Error("Expecting function got: "+a);var i=this._zoneDelegate.intercept(this,a,o),P=this;return function(){return P.runGuarded(i,this,arguments,o)}},h.prototype.run=function(a,o,i,P){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,a,o,i,P)}finally{A=A.parent}},h.prototype.runGuarded=function(a,o,i,P){void 0===o&&(o=null),A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,a,o,i,P)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{A=A.parent}},h.prototype.runTask=function(a,o,i){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");if(a.state!==j||a.type!==R&&a.type!==Y){var P=a.state!=k;P&&a._transitionTo(k,U),a.runCount++;var z=ie;ie=a,A={parent:A,zone:this};try{a.type==Y&&a.data&&!a.data.isPeriodic&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,a,o,i)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{a.state!==j&&a.state!==I&&(a.type==R||a.data&&a.data.isPeriodic?P&&a._transitionTo(U,k):(a.runCount=0,this._updateTaskCount(a,-1),P&&a._transitionTo(j,k,j))),A=A.parent,ie=z}}},h.prototype.scheduleTask=function(a){if(a.zone&&a.zone!==this)for(var o=this;o;){if(o===a.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+a.zone.name);o=o.parent}a._transitionTo(V,j);var i=[];a._zoneDelegates=i,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(P){throw a._transitionTo(I,V,j),this._zoneDelegate.handleError(this,P),P}return a._zoneDelegates===i&&this._updateTaskCount(a,1),a.state==V&&a._transitionTo(U,V),a},h.prototype.scheduleMicroTask=function(a,o,i,P){return this.scheduleTask(new p(ee,a,o,i,P,void 0))},h.prototype.scheduleMacroTask=function(a,o,i,P,z){return this.scheduleTask(new p(Y,a,o,i,P,z))},h.prototype.scheduleEventTask=function(a,o,i,P,z){return this.scheduleTask(new p(R,a,o,i,P,z))},h.prototype.cancelTask=function(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");a._transitionTo($,U,k);try{this._zoneDelegate.cancelTask(this,a)}catch(o){throw a._transitionTo(I,$),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(a,-1),a._transitionTo(j,$),a.runCount=0,a},h.prototype._updateTaskCount=function(a,o){var i=a._zoneDelegates;-1==o&&(a._zoneDelegates=null);for(var P=0;P<i.length;P++)i[P]._updateTaskCount(a.type,o)},h}();v.__symbol__=c;var X,T={name:"",onHasTask:function(h,a,o,i){return h.hasTask(o,i)},onScheduleTask:function(h,a,o,i){return h.scheduleTask(o,i)},onInvokeTask:function(h,a,o,i,P,z){return h.invokeTask(o,i,P,z)},onCancelTask:function(h,a,o,i){return h.cancelTask(o,i)}},d=function(){function h(a,o,i){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=a,this._parentDelegate=o,this._forkZS=i&&(i&&i.onFork?i:o._forkZS),this._forkDlgt=i&&(i.onFork?o:o._forkDlgt),this._forkCurrZone=i&&(i.onFork?this.zone:o._forkCurrZone),this._interceptZS=i&&(i.onIntercept?i:o._interceptZS),this._interceptDlgt=i&&(i.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=i&&(i.onIntercept?this.zone:o._interceptCurrZone),this._invokeZS=i&&(i.onInvoke?i:o._invokeZS),this._invokeDlgt=i&&(i.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=i&&(i.onInvoke?this.zone:o._invokeCurrZone),this._handleErrorZS=i&&(i.onHandleError?i:o._handleErrorZS),this._handleErrorDlgt=i&&(i.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=i&&(i.onHandleError?this.zone:o._handleErrorCurrZone),this._scheduleTaskZS=i&&(i.onScheduleTask?i:o._scheduleTaskZS),this._scheduleTaskDlgt=i&&(i.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=i&&(i.onScheduleTask?this.zone:o._scheduleTaskCurrZone),this._invokeTaskZS=i&&(i.onInvokeTask?i:o._invokeTaskZS),this._invokeTaskDlgt=i&&(i.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=i&&(i.onInvokeTask?this.zone:o._invokeTaskCurrZone),this._cancelTaskZS=i&&(i.onCancelTask?i:o._cancelTaskZS),this._cancelTaskDlgt=i&&(i.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=i&&(i.onCancelTask?this.zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var P=i&&i.onHasTask;(P||o&&o._hasTaskZS)&&(this._hasTaskZS=P?i:T,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=a,i.onScheduleTask||(this._scheduleTaskZS=T,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this.zone),i.onInvokeTask||(this._invokeTaskZS=T,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this.zone),i.onCancelTask||(this._cancelTaskZS=T,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this.zone))}return h.prototype.fork=function(a,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,a,o):new v(a,o)},h.prototype.intercept=function(a,o,i){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,a,o,i):o},h.prototype.invoke=function(a,o,i,P,z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,a,o,i,P,z):o.apply(i,P)},h.prototype.handleError=function(a,o){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,a,o)},h.prototype.scheduleTask=function(a,o){var i=o;if(this._scheduleTaskZS)this._hasTaskZS&&i._zoneDelegates.push(this._hasTaskDlgtOwner),(i=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,a,o))||(i=o);else if(o.scheduleFn)o.scheduleFn(o);else{if(o.type!=ee)throw new Error("Task is missing scheduleFn.");g(o)}return i},h.prototype.invokeTask=function(a,o,i,P){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,a,o,i,P):o.callback.apply(i,P)},h.prototype.cancelTask=function(a,o){var i;if(this._cancelTaskZS)i=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,a,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");i=o.cancelFn(o)}return i},h.prototype.hasTask=function(a,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,a,o)}catch(i){this.handleError(a,i)}},h.prototype._updateTaskCount=function(a,o){var i=this._taskCounts,P=i[a],z=i[a]=P+o;if(z<0)throw new Error("More tasks executed then were scheduled.");0!=P&&0!=z||this.hasTask(this.zone,{microTask:i.microTask>0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:a})},h}(),p=function(){function h(a,o,i,P,z,se){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=a,this.source=o,this.data=P,this.scheduleFn=z,this.cancelFn=se,!i)throw new Error("callback is not defined");this.callback=i;var f=this;this.invoke=a===R&&P&&P.useG?h.invokeTask:function(){return h.invokeTask.call(e,f,this,arguments)}}return h.invokeTask=function(a,o,i){a||(a=this),ne++;try{return a.runCount++,a.zone.runTask(a,o,i)}finally{1==ne&&m(),ne--}},Object.defineProperty(h.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),h.prototype.cancelScheduleRequest=function(){this._transitionTo(j,V)},h.prototype._transitionTo=function(a,o,i){if(this._state!==o&&this._state!==i)throw new Error(this.type+" '"+this.source+"': can not transition to '"+a+"', expecting state '"+o+"'"+(i?" or '"+i+"'":"")+", was '"+this._state+"'.");this._state=a,a==j&&(this._zoneDelegates=null)},h.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},h.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},h}(),y=c("setTimeout"),b=c("Promise"),O=c("then"),N=[],M=!1;function g(h){if(0===ne&&0===N.length)if(X||e[b]&&(X=e[b].resolve(0)),X){var a=X[O];a||(a=X.then),a.call(X,m)}else e[y](m,0);h&&N.push(h)}function m(){if(!M){for(M=!0;N.length;){var h=N;N=[];for(var a=0;a<h.length;a++){var o=h[a];try{o.zone.runTask(o,null,null)}catch(i){w.onUnhandledError(i)}}}w.microtaskDrainDone(),M=!1}}var B={name:"NO ZONE"},j="notScheduled",V="scheduling",U="scheduled",k="running",$="canceling",I="unknown",ee="microTask",Y="macroTask",R="eventTask",F={},w={symbol:c,currentZoneFrame:function(){return A},onUnhandledError:H,microtaskDrainDone:H,scheduleMicroTask:g,showUncaughtError:function(){return!v[c("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:H,patchMethod:function(){return H},bindArguments:function(){return[]},patchThen:function(){return H},patchMacroTask:function(){return H},patchEventPrototype:function(){return H},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return H},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return H},wrapWithCurrentZone:function(){return H},filterProperties:function(){return[]},attachOriginToPatched:function(){return H},_redefineProperty:function(){return H},patchCallbacks:function(){return H}},A={parent:null,zone:new v(null,null)},ie=null,ne=0;function H(){}n("Zone","Zone"),e.Zone=v}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var Oe=Object.getOwnPropertyDescriptor,xe=Object.defineProperty,Be=Object.getPrototypeOf,Pr=Object.create,wr=Array.prototype.slice,Fe="addEventListener",Ge="removeEventListener",Ve=Zone.__symbol__(Fe),Ue=Zone.__symbol__(Ge),fe="true",le="false",Se=Zone.__symbol__("");function ze(e,r){return Zone.current.wrap(e,r)}function We(e,r,t,n,u){return Zone.current.scheduleMacroTask(e,r,t,n,u)}var G=Zone.__symbol__,Ze="undefined"!=typeof window,ye=Ze?window:void 0,J=Ze&&ye||"object"==typeof self&&self||global,Sr=[null];function Xe(e,r){for(var t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=ze(e[t],r+"_"+t));return e}function rr(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ne=!("nw"in J)&&void 0!==J.process&&"[object process]"==={}.toString.call(J.process),qe=!Ne&&!tr&&!(!Ze||!ye.HTMLElement),nr=void 0!==J.process&&"[object process]"==={}.toString.call(J.process)&&!tr&&!(!Ze||!ye.HTMLElement),Le={},or=function(e){if(e=e||J.event){var r=Le[e.type];r||(r=Le[e.type]=G("ON_PROPERTY"+e.type));var u,t=this||e.target||J,n=t[r];return qe&&t===ye&&"error"===e.type?!0===(u=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(u=n&&n.apply(this,arguments))&&!u&&e.preventDefault(),u}};function ar(e,r,t){var n=Oe(e,r);if(!n&&t&&Oe(t,r)&&(n={enumerable:!0,configurable:!0}),n&&n.configurable){var c=G("on"+r+"patched");if(!e.hasOwnProperty(c)||!e[c]){delete n.writable,delete n.value;var l=n.get,v=n.set,T=r.substr(2),d=Le[T];d||(d=Le[T]=G("ON_PROPERTY"+T)),n.set=function(p){var y=this;!y&&e===J&&(y=J),y&&(y[d]&&y.removeEventListener(T,or),v&&v.apply(y,Sr),"function"==typeof p?(y[d]=p,y.addEventListener(T,or,!1)):y[d]=null)},n.get=function(){var p=this;if(!p&&e===J&&(p=J),!p)return null;var y=p[d];if(y)return y;if(l){var b=l&&l.call(this);if(b)return n.set.call(this,b),"function"==typeof p.removeAttribute&&p.removeAttribute(r),b}return null},xe(e,r,n),e[c]=!0}}}function ir(e,r,t){if(r)for(var n=0;n<r.length;n++)ar(e,"on"+r[n],t);else{var u=[];for(var c in e)"on"==c.substr(0,2)&&u.push(c);for(var l=0;l<u.length;l++)ar(e,u[l],t)}}var ue=G("originalInstance");function Re(e){var r=J[e];if(r){J[G(e)]=r,J[e]=function(){var u=Xe(arguments,e);switch(u.length){case 0:this[ue]=new r;break;case 1:this[ue]=new r(u[0]);break;case 2:this[ue]=new r(u[0],u[1]);break;case 3:this[ue]=new r(u[0],u[1],u[2]);break;case 4:this[ue]=new r(u[0],u[1],u[2],u[3]);break;default:throw new Error("Arg list too long.")}},he(J[e],r);var n,t=new r(function(){});for(n in t)"XMLHttpRequest"===e&&"responseBlob"===n||function(u){"function"==typeof t[u]?J[e].prototype[u]=function(){return this[ue][u].apply(this[ue],arguments)}:xe(J[e].prototype,u,{set:function(c){"function"==typeof c?(this[ue][u]=ze(c,e+"."+u),he(this[ue][u],c)):this[ue][u]=c},get:function(){return this[ue][u]}})}(n);for(n in r)"prototype"!==n&&r.hasOwnProperty(n)&&(J[e][n]=r[n])}}function ve(e,r,t){for(var n=e;n&&!n.hasOwnProperty(r);)n=Be(n);!n&&e[r]&&(n=e);var u=G(r),c=null;if(n&&(!(c=n[u])||!n.hasOwnProperty(u))&&(c=n[u]=n[r],rr(n&&Oe(n,r)))){var v=t(c,u,r);n[r]=function(){return v(this,arguments)},he(n[r],c)}return c}function Cr(e,r,t){var n=null;function u(c){var l=c.data;return l.args[l.cbIdx]=function(){c.invoke.apply(this,arguments)},n.apply(l.target,l.args),c}n=ve(e,r,function(c){return function(l,v){var T=t(l,v);return T.cbIdx>=0&&"function"==typeof v[T.cbIdx]?We(T.name,v[T.cbIdx],T,u):c.apply(l,v)}})}function he(e,r){e[G("OriginalDelegate")]=r}var sr=!1,Ye=!1;function Zr(){if(sr)return Ye;sr=!0;try{var e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ye=!0)}catch(r){}return Ye}Zone.__load_patch("ZoneAwarePromise",function(e,r,t){var n=Object.getOwnPropertyDescriptor,u=Object.defineProperty;var l=t.symbol,v=[],T=!0===e[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=l("Promise"),p=l("then");t.onUnhandledError=function(f){if(t.showUncaughtError()){var E=f&&f.rejection;E?console.error("Unhandled Promise rejection:",E instanceof Error?E.message:E,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",E,E instanceof Error?E.stack:void 0):console.error(f)}},t.microtaskDrainDone=function(){for(var f=function(){var E=v.shift();try{E.zone.runGuarded(function(){throw E.throwOriginal?E.rejection:E})}catch(s){!function O(f){t.onUnhandledError(f);try{var E=r[b];"function"==typeof E&&E.call(this,f)}catch(s){}}(s)}};v.length;)f()};var b=l("unhandledPromiseRejectionHandler");function N(f){return f&&f.then}function M(f){return f}function X(f){return o.reject(f)}var g=l("state"),m=l("value"),B=l("finally"),j=l("parentPromiseValue"),V=l("parentPromiseState"),k=null,$=!0,I=!1;function Y(f,E){return function(s){try{A(f,E,s)}catch(_){A(f,!1,_)}}}var w=l("currentTaskTrace");function A(f,E,s){var _=function(){var f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}}();if(f===s)throw new TypeError("Promise resolved with itself");if(f[g]===k){var S=null;try{("object"==typeof s||"function"==typeof s)&&(S=s&&s.then)}catch(Z){return _(function(){A(f,!1,Z)})(),f}if(E!==I&&s instanceof o&&s.hasOwnProperty(g)&&s.hasOwnProperty(m)&&s[g]!==k)ne(s),A(f,s[g],s[m]);else if(E!==I&&"function"==typeof S)try{S.call(s,_(Y(f,E)),_(Y(f,!1)))}catch(Z){_(function(){A(f,!1,Z)})()}else{f[g]=E;var C=f[m];if(f[m]=s,f[B]===B&&E===$&&(f[g]=f[V],f[m]=f[j]),E===I&&s instanceof Error){var L=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;L&&u(s,w,{configurable:!0,enumerable:!1,writable:!0,value:L})}for(var x=0;x<C.length;)H(f,C[x++],C[x++],C[x++],C[x++]);if(0==C.length&&E==I){f[g]=0;var D=s;try{throw new Error("Uncaught (in promise): "+function c(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(Z){D=Z}T&&(D.throwOriginal=!0),D.rejection=s,D.promise=f,D.zone=r.current,D.task=r.currentTask,v.push(D),t.scheduleMicroTask()}}}return f}var ie=l("rejectionHandledHandler");function ne(f){if(0===f[g]){try{var E=r[ie];E&&"function"==typeof E&&E.call(this,{rejection:f[m],promise:f})}catch(_){}f[g]=I;for(var s=0;s<v.length;s++)f===v[s].promise&&v.splice(s,1)}}function H(f,E,s,_,S){ne(f);var C=f[g],L=C?"function"==typeof _?_:M:"function"==typeof S?S:X;E.scheduleMicroTask("Promise.then",function(){try{var x=f[m],D=!!s&&B===s[B];D&&(s[j]=x,s[V]=C);var Z=E.run(L,void 0,D&&L!==X&&L!==M?[]:[x]);A(s,!0,Z)}catch(W){A(s,!1,W)}},s)}var a=function(){},o=function(){function f(E){var s=this;if(!(s instanceof f))throw new Error("Must be an instanceof Promise.");s[g]=k,s[m]=[];try{E&&E(Y(s,$),Y(s,I))}catch(_){A(s,!1,_)}}return f.toString=function(){return"function ZoneAwarePromise() { [native code] }"},f.resolve=function(E){return A(new this(null),$,E)},f.reject=function(E){return A(new this(null),I,E)},f.race=function(E){var s,_,S=new this(function(W,re){s=W,_=re});function C(W){s(W)}function L(W){_(W)}for(var x=0,D=E;x<D.length;x++){var Z=D[x];N(Z)||(Z=this.resolve(Z)),Z.then(C,L)}return S},f.all=function(E){return f.allWithCallback(E)},f.allSettled=function(E){return(this&&this.prototype instanceof f?this:f).allWithCallback(E,{thenCallback:function(_){return{status:"fulfilled",value:_}},errorCallback:function(_){return{status:"rejected",reason:_}}})},f.allWithCallback=function(E,s){for(var _,S,C=new this(function(K,Q){_=K,S=Q}),L=2,x=0,D=[],Z=function(K){N(K)||(K=W.resolve(K));var Q=x;try{K.then(function(oe){D[Q]=s?s.thenCallback(oe):oe,0==--L&&_(D)},function(oe){s?(D[Q]=s.errorCallback(oe),0==--L&&_(D)):S(oe)})}catch(oe){S(oe)}L++,x++},W=this,re=0,ce=E;re<ce.length;re++)Z(ce[re]);return 0==(L-=2)&&_(D),C},Object.defineProperty(f.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,Symbol.species,{get:function(){return f},enumerable:!1,configurable:!0}),f.prototype.then=function(E,s){var _=this.constructor[Symbol.species];(!_||"function"!=typeof _)&&(_=this.constructor||f);var S=new _(a),C=r.current;return this[g]==k?this[m].push(C,S,E,s):H(this,C,S,E,s),S},f.prototype.catch=function(E){return this.then(null,E)},f.prototype.finally=function(E){var s=this.constructor[Symbol.species];(!s||"function"!=typeof s)&&(s=f);var _=new s(a);_[B]=B;var S=r.current;return this[g]==k?this[m].push(S,_,E,E):H(this,S,_,E,E),_},f}();o.resolve=o.resolve,o.reject=o.reject,o.race=o.race,o.all=o.all;var i=e[d]=e.Promise;e.Promise=o;var P=l("thenPatched");function z(f){var E=f.prototype,s=n(E,"then");if(!s||!1!==s.writable&&s.configurable){var _=E.then;E[p]=_,f.prototype.then=function(S,C){var L=this;return new o(function(D,Z){_.call(L,D,Z)}).then(S,C)},f[P]=!0}}return t.patchThen=z,i&&(z(i),ve(e,"fetch",function(f){return function se(f){return function(E,s){var _=f.apply(E,s);if(_ instanceof o)return _;var S=_.constructor;return S[P]||z(S),_}}(f)})),Promise[r.__symbol__("uncaughtPromiseErrors")]=v,o}),Zone.__load_patch("toString",function(e){var r=Function.prototype.toString,t=G("OriginalDelegate"),n=G("Promise"),u=G("Error"),c=function(){if("function"==typeof this){var d=this[t];if(d)return"function"==typeof d?r.call(d):Object.prototype.toString.call(d);if(this===Promise){var p=e[n];if(p)return r.call(p)}if(this===Error){var y=e[u];if(y)return r.call(y)}}return r.call(this)};c[t]=r,Function.prototype.toString=c;var l=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":l.call(this)}});var me=!1;if("undefined"!=typeof window)try{var Me=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(e){me=!1}var Nr={useG:!0},ae={},ur={},cr=new RegExp("^"+Se+"(\\w+)(true|false)$"),Ke=G("propagationStopped");function fr(e,r){var t=(r?r(e):e)+le,n=(r?r(e):e)+fe,u=Se+t,c=Se+n;ae[e]={},ae[e][le]=u,ae[e][fe]=c}function Lr(e,r,t){var n=t&&t.add||Fe,u=t&&t.rm||Ge,c=t&&t.listeners||"eventListeners",l=t&&t.rmAll||"removeAllListeners",v=G(n),T="."+n+":",d="prependListener",y=function(g,m,B){if(!g.isRemoved){var j=g.callback;"object"==typeof j&&j.handleEvent&&(g.callback=function(k){return j.handleEvent(k)},g.originalDelegate=j),g.invoke(g,m,[B]);var V=g.options;V&&"object"==typeof V&&V.once&&m[u].call(m,B.type,g.originalDelegate?g.originalDelegate:g.callback,V)}},b=function(g){if(g=g||e.event){var m=this||g.target||e,B=m[ae[g.type][le]];if(B)if(1===B.length)y(B[0],m,g);else for(var j=B.slice(),V=0;V<j.length&&(!g||!0!==g[Ke]);V++)y(j[V],m,g)}},O=function(g){if(g=g||e.event){var m=this||g.target||e,B=m[ae[g.type][fe]];if(B)if(1===B.length)y(B[0],m,g);else for(var j=B.slice(),V=0;V<j.length&&(!g||!0!==g[Ke]);V++)y(j[V],m,g)}};function N(g,m){if(!g)return!1;var B=!0;m&&void 0!==m.useG&&(B=m.useG);var j=m&&m.vh,V=!0;m&&void 0!==m.chkDup&&(V=m.chkDup);var U=!1;m&&void 0!==m.rt&&(U=m.rt);for(var k=g;k&&!k.hasOwnProperty(n);)k=Be(k);if(!k&&g[n]&&(k=g),!k||k[v])return!1;var w,$=m&&m.eventNameToString,I={},ee=k[v]=k[n],Y=k[G(u)]=k[u],R=k[G(c)]=k[c],F=k[G(l)]=k[l];function A(s,_){return!me&&"object"==typeof s&&s?!!s.capture:me&&_?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}m&&m.prepend&&(w=k[G(m.prepend)]=k[m.prepend]);var o=B?function(s){if(!I.isExisting)return ee.call(I.target,I.eventName,I.capture?O:b,I.options)}:function(s){return ee.call(I.target,I.eventName,s.invoke,I.options)},i=B?function(s){if(!s.isRemoved){var _=ae[s.eventName],S=void 0;_&&(S=_[s.capture?fe:le]);var C=S&&s.target[S];if(C)for(var L=0;L<C.length;L++)if(C[L]===s){C.splice(L,1),s.isRemoved=!0,0===C.length&&(s.allRemoved=!0,s.target[S]=null);break}}if(s.allRemoved)return Y.call(s.target,s.eventName,s.capture?O:b,s.options)}:function(s){return Y.call(s.target,s.eventName,s.invoke,s.options)},z=m&&m.diff?m.diff:function(s,_){var S=typeof _;return"function"===S&&s.callback===_||"object"===S&&s.originalDelegate===_},se=Zone[G("UNPATCHED_EVENTS")],f=e[G("PASSIVE_EVENTS")],E=function(s,_,S,C,L,x){return void 0===L&&(L=!1),void 0===x&&(x=!1),function(){var D=this||e,Z=arguments[0];m&&m.transferEventName&&(Z=m.transferEventName(Z));var W=arguments[1];if(!W)return s.apply(this,arguments);if(Ne&&"uncaughtException"===Z)return s.apply(this,arguments);var re=!1;if("function"!=typeof W){if(!W.handleEvent)return s.apply(this,arguments);re=!0}if(!j||j(s,W,D,arguments)){var ce=me&&!!f&&-1!==f.indexOf(Z),te=A(arguments[2],ce);if(se)for(var K=0;K<se.length;K++)if(Z===se[K])return ce?s.call(D,Z,W,te):s.apply(this,arguments);var Q=!!te&&("boolean"==typeof te||te.capture),oe=!(!te||"object"!=typeof te)&&te.once,at=Zone.current,$e=ae[Z];$e||(fr(Z,$),$e=ae[Z]);var Tr=$e[Q?fe:le],ke=D[Tr],gr=!1;if(ke){if(gr=!0,V)for(K=0;K<ke.length;K++)if(z(ke[K],W))return}else ke=D[Tr]=[];var He,br=D.constructor.name,kr=ur[br];kr&&(He=kr[Z]),He||(He=br+_+($?$(Z):Z)),I.options=te,oe&&(I.options.once=!1),I.target=D,I.capture=Q,I.eventName=Z,I.isExisting=gr;var Ce=B?Nr:void 0;Ce&&(Ce.taskData=I);var _e=at.scheduleEventTask(He,W,Ce,S,C);if(I.target=null,Ce&&(Ce.taskData=null),oe&&(te.once=!0),!me&&"boolean"==typeof _e.options||(_e.options=te),_e.target=D,_e.capture=Q,_e.eventName=Z,re&&(_e.originalDelegate=W),x?ke.unshift(_e):ke.push(_e),L)return D}}};return k[n]=E(ee,T,o,i,U),w&&(k[d]=E(w,".prependListener:",function(s){return w.call(I.target,I.eventName,s.invoke,I.options)},i,U,!0)),k[u]=function(){var s=this||e,_=arguments[0];m&&m.transferEventName&&(_=m.transferEventName(_));var S=arguments[2],C=!!S&&("boolean"==typeof S||S.capture),L=arguments[1];if(!L)return Y.apply(this,arguments);if(!j||j(Y,L,s,arguments)){var D,x=ae[_];x&&(D=x[C?fe:le]);var Z=D&&s[D];if(Z)for(var W=0;W<Z.length;W++){var re=Z[W];if(z(re,L))return Z.splice(W,1),re.isRemoved=!0,0===Z.length&&(re.allRemoved=!0,s[D]=null,"string"==typeof _)&&(s[Se+"ON_PROPERTY"+_]=null),re.zone.cancelTask(re),U?s:void 0}return Y.apply(this,arguments)}},k[c]=function(){var s=this||e,_=arguments[0];m&&m.transferEventName&&(_=m.transferEventName(_));for(var S=[],C=lr(s,$?$(_):_),L=0;L<C.length;L++){var x=C[L];S.push(x.originalDelegate?x.originalDelegate:x.callback)}return S},k[l]=function(){var s=this||e,_=arguments[0];if(_){m&&m.transferEventName&&(_=m.transferEventName(_));var Z=ae[_];if(Z){var ce=s[Z[le]],te=s[Z[fe]];if(ce)for(var K=ce.slice(),C=0;C<K.length;C++)this[u].call(this,_,(Q=K[C]).originalDelegate?Q.originalDelegate:Q.callback,Q.options);if(te)for(K=te.slice(),C=0;C<K.length;C++){var Q;this[u].call(this,_,(Q=K[C]).originalDelegate?Q.originalDelegate:Q.callback,Q.options)}}}else{var S=Object.keys(s);for(C=0;C<S.length;C++){var x=cr.exec(S[C]),D=x&&x[1];D&&"removeListener"!==D&&this[l].call(this,D)}this[l].call(this,"removeListener")}if(U)return this},he(k[n],ee),he(k[u],Y),F&&he(k[l],F),R&&he(k[c],R),!0}for(var M=[],X=0;X<r.length;X++)M[X]=N(r[X],t);return M}function lr(e,r){if(!r){var t=[];for(var n in e){var u=cr.exec(n),c=u&&u[1];if(c&&(!r||c===r)){var l=e[n];if(l)for(var v=0;v<l.length;v++)t.push(l[v])}}return t}var T=ae[r];T||(fr(r),T=ae[r]);var d=e[T[le]],p=e[T[fe]];return d?p?d.concat(p):d.slice():p?p.slice():[]}function Mr(e,r){var t=e.Event;t&&t.prototype&&r.patchMethod(t.prototype,"stopImmediatePropagation",function(n){return function(u,c){u[Ke]=!0,n&&n.apply(u,c)}})}function Ir(e,r,t,n,u){var c=Zone.__symbol__(n);if(!r[c]){var l=r[c]=r[n];r[n]=function(v,T,d){return T&&T.prototype&&u.forEach(function(p){var y=t+"."+n+"::"+p,b=T.prototype;if(b.hasOwnProperty(p)){var O=e.ObjectGetOwnPropertyDescriptor(b,p);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,y),e._redefineProperty(T.prototype,p,O)):b[p]&&(b[p]=e.wrapWithCurrentZone(b[p],y))}else b[p]&&(b[p]=e.wrapWithCurrentZone(b[p],y))}),l.call(r,v,T,d)},e.attachOriginToPatched(r[n],l)}}var Ie,Ae,pr,Er,pe,e,r,Je=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],xr=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],vr=["load"],hr=["blur","error","focus","load","resize","scroll","messageerror"],Ur=["bounce","finish","start"],dr=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Te=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],zr=["close","error","open","message"],Wr=["error","message"],ge=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Je,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function _r(e,r,t){if(!t||0===t.length)return r;var n=t.filter(function(c){return c.target===e});if(!n||0===n.length)return r;var u=n[0].ignoreProperties;return r.filter(function(c){return-1===u.indexOf(c)})}function q(e,r,t,n){e&&ir(e,_r(e,r,t),n)}function Xr(e,r){if((!Ne||nr)&&!Zone[e.symbol("patchEvents")]){var t="undefined"!=typeof WebSocket,n=r.__Zone_ignore_on_properties;if(qe){var u=window,c=function Dr(){try{var e=ye.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(r){}return!1}()?[{target:u,ignoreProperties:["error"]}]:[];q(u,ge.concat(["messageerror"]),n&&n.concat(c),Be(u)),q(Document.prototype,ge,n),void 0!==u.SVGElement&&q(u.SVGElement.prototype,ge,n),q(Element.prototype,ge,n),q(HTMLElement.prototype,ge,n),q(HTMLMediaElement.prototype,xr,n),q(HTMLFrameSetElement.prototype,Je.concat(hr),n),q(HTMLBodyElement.prototype,Je.concat(hr),n),q(HTMLFrameElement.prototype,vr,n),q(HTMLIFrameElement.prototype,vr,n);var l=u.HTMLMarqueeElement;l&&q(l.prototype,Ur,n);var v=u.Worker;v&&q(v.prototype,Wr,n)}var T=r.XMLHttpRequest;T&&q(T.prototype,dr,n);var d=r.XMLHttpRequestEventTarget;d&&q(d&&d.prototype,dr,n),"undefined"!=typeof IDBIndex&&(q(IDBIndex.prototype,Te,n),q(IDBRequest.prototype,Te,n),q(IDBOpenDBRequest.prototype,Te,n),q(IDBDatabase.prototype,Te,n),q(IDBTransaction.prototype,Te,n),q(IDBCursor.prototype,Te,n)),t&&q(WebSocket.prototype,zr,n)}}function Yr(e,r,t){var n=t.configurable;return mr(e,r,t=Qe(e,r,t),n)}function yr(e,r){return e&&e[pe]&&e[pe][r]}function Qe(e,r,t){return Object.isFrozen(t)||(t.configurable=!0),t.configurable||(!e[pe]&&!Object.isFrozen(e)&&Ae(e,pe,{writable:!0,value:{}}),e[pe]&&(e[pe][r]=!0)),t}function mr(e,r,t,n){try{return Ae(e,r,t)}catch(l){if(!t.configurable)throw l;void 0===n?delete t.configurable:t.configurable=n;try{return Ae(e,r,t)}catch(v){var u=!1;if(("createdCallback"===r||"attachedCallback"===r||"detachedCallback"===r||"attributeChangedCallback"===r)&&(u=!0),!u)throw v;var c=null;try{c=JSON.stringify(t)}catch(T){c=t.toString()}console.log("Attempting to configure '"+r+"' with descriptor '"+c+"' on object '"+e+"' and got error, giving up: "+v)}}}function Qr(e,r){var t=e.getGlobalObjects();if((!t.isNode||t.isMix)&&!function $r(e,r){var t=e.getGlobalObjects();if((t.isBrowser||t.isMix)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var c=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(c&&!c.configurable)return!1;if(c){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var v=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",c),v}}var T=r.XMLHttpRequest;if(!T)return!1;var d="onreadystatechange",p=T.prototype,y=e.ObjectGetOwnPropertyDescriptor(p,d);if(y)return e.ObjectDefineProperty(p,d,{enumerable:!0,configurable:!0,get:function(){return!0}}),v=!!(b=new T).onreadystatechange,e.ObjectDefineProperty(p,d,y||{}),v;var O=e.symbol("fake");e.ObjectDefineProperty(p,d,{enumerable:!0,configurable:!0,get:function(){return this[O]},set:function(g){this[O]=g}});var b,N=function(){};return(b=new T).onreadystatechange=N,v=b[O]===N,b.onreadystatechange=null,v}(e,r)){var c="undefined"!=typeof WebSocket;(function et(e){for(var r=e.getGlobalObjects().eventNames,t=e.symbol("unbound"),n=function(c){var l=r[c],v="on"+l;self.addEventListener(l,function(T){var p,y,d=T.target;for(y=d?d.constructor.name+"."+v:"unknown."+v;d;)d[v]&&!d[v][t]&&((p=e.wrapWithCurrentZone(d[v],y))[t]=d[v],d[v]=p),d=d.parentElement},!0)},u=0;u<r.length;u++)n(u)})(e),e.patchClass("XMLHttpRequest"),c&&function Jr(e,r){var t=e.getGlobalObjects(),n=t.ADD_EVENT_LISTENER_STR,u=t.REMOVE_EVENT_LISTENER_STR,c=r.WebSocket;r.EventTarget||e.patchEventTarget(r,[c.prototype]),r.WebSocket=function(T,d){var y,b,p=arguments.length>1?new c(T,d):new c(T),O=e.ObjectGetOwnPropertyDescriptor(p,"onmessage");return O&&!1===O.configurable?(y=e.ObjectCreate(p),b=p,[n,u,"send","close"].forEach(function(N){y[N]=function(){var M=e.ArraySlice.call(arguments);if(N===n||N===u){var X=M.length>0?M[0]:void 0;if(X){var g=Zone.__symbol__("ON_PROPERTY"+X);p[g]=y[g]}}return p[N].apply(p,M)}})):y=p,e.patchOnProperties(y,["close","error","message","open"],b),y};var l=r.WebSocket;for(var v in c)l[v]=c[v]}(e,r),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(e,r,t){t.patchOnProperties=ir,t.patchMethod=ve,t.bindArguments=Xe,t.patchMacroTask=Cr;var n=r.__symbol__("BLACK_LISTED_EVENTS"),u=r.__symbol__("UNPATCHED_EVENTS");e[u]&&(e[n]=e[u]),e[n]&&(r[n]=r[u]=e[n]),t.patchEventPrototype=Mr,t.patchEventTarget=Lr,t.isIEOrEdge=Zr,t.ObjectDefineProperty=xe,t.ObjectGetOwnPropertyDescriptor=Oe,t.ObjectCreate=Pr,t.ArraySlice=wr,t.patchClass=Re,t.wrapWithCurrentZone=ze,t.filterProperties=_r,t.attachOriginToPatched=he,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ir,t.getGlobalObjects=function(){return{globalSources:ur,zoneSymbolEventNames:ae,eventNames:ge,isBrowser:qe,isMix:nr,isNode:Ne,TRUE_STR:fe,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ge}}}),e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=e.__Zone_symbol_prefix||"__zone_symbol__",e[function t(n){return r+n}("legacyPatch")]=function(){var n=e.Zone;n.__load_patch("defineProperty",function(u,c,l){l._redefineProperty=Yr,function qr(){Ie=Zone.__symbol__,Ae=Object[Ie("defineProperty")]=Object.defineProperty,pr=Object[Ie("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Er=Object.create,pe=Ie("unconfigurables"),Object.defineProperty=function(e,r,t){if(yr(e,r))throw new TypeError("Cannot assign to read only property '"+r+"' of "+e);var n=t.configurable;return"prototype"!==r&&(t=Qe(e,r,t)),mr(e,r,t,n)},Object.defineProperties=function(e,r){return Object.keys(r).forEach(function(t){Object.defineProperty(e,t,r[t])}),e},Object.create=function(e,r){return"object"==typeof r&&!Object.isFrozen(r)&&Object.keys(r).forEach(function(t){r[t]=Qe(e,t,r[t])}),Er(e,r)},Object.getOwnPropertyDescriptor=function(e,r){var t=pr(e,r);return t&&yr(e,r)&&(t.configurable=!1),t}}()}),n.__load_patch("registerElement",function(u,c,l){!function rt(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&"registerElement"in e.document&&r.patchCallbacks(r,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(u,l)}),n.__load_patch("EventTargetLegacy",function(u,c,l){(function Kr(e,r){var t=r.getGlobalObjects(),n=t.eventNames,u=t.globalSources,c=t.zoneSymbolEventNames,l=t.TRUE_STR,v=t.FALSE_STR,T=t.ZONE_SYMBOL_PREFIX,p="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),y="EventTarget",b=[],O=e.wtf,N="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");O?b=N.map(function(H){return"HTML"+H+"Element"}).concat(p):e[y]?b.push(y):b=p;for(var M=e.__Zone_disable_IE_check||!1,X=e.__Zone_enable_cross_context_check||!1,g=r.isIEOrEdge(),B="[object FunctionWrapper]",j="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",V={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},U=0;U<n.length;U++){var ee=T+((k=n[U])+v),Y=T+(k+l);c[k]={},c[k][v]=ee,c[k][l]=Y}for(U=0;U<N.length;U++)for(var R=N[U],F=u[R]={},w=0;w<n.length;w++){var k;F[k=n[w]]=R+".addEventListener:"+k}var ie=[];for(U=0;U<b.length;U++){var ne=e[b[U]];ie.push(ne&&ne.prototype)}return r.patchEventTarget(e,ie,{vh:function(H,h,a,o){if(!M&&g)if(X)try{if((i=h.toString())===B||i==j)return H.apply(a,o),!1}catch(P){return H.apply(a,o),!1}else{var i;if((i=h.toString())===B||i==j)return H.apply(a,o),!1}else if(X)try{h.toString()}catch(P){return H.apply(a,o),!1}return!0},transferEventName:function(H){return V[H]||H}}),Zone[r.symbol("patchEventTarget")]=!!e[y],!0})(u,l),Qr(l,u)})};var je=G("zoneTask");function be(e,r,t,n){var u=null,c=null;t+=n;var l={};function v(d){var p=d.data;return p.args[0]=function(){return d.invoke.apply(this,arguments)},p.handleId=u.apply(e,p.args),d}function T(d){return c.call(e,d.data.handleId)}u=ve(e,r+=n,function(d){return function(p,y){if("function"==typeof y[0]){var b={isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?y[1]||0:void 0,args:y},O=y[0];y[0]=function(){try{return O.apply(this,arguments)}finally{b.isPeriodic||("number"==typeof b.handleId?delete l[b.handleId]:b.handleId&&(b.handleId[je]=null))}};var N=We(r,y[0],b,v,T);if(!N)return N;var M=N.data.handleId;return"number"==typeof M?l[M]=N:M&&(M[je]=N),M&&M.ref&&M.unref&&"function"==typeof M.ref&&"function"==typeof M.unref&&(N.ref=M.ref.bind(M),N.unref=M.unref.bind(M)),"number"==typeof M||M?M:N}return d.apply(e,y)}}),c=ve(e,t,function(d){return function(p,y){var O,b=y[0];"number"==typeof b?O=l[b]:(O=b&&b[je])||(O=b),O&&"string"==typeof O.type?"notScheduled"!==O.state&&(O.cancelFn&&O.data.isPeriodic||0===O.runCount)&&("number"==typeof b?delete l[b]:b&&(b[je]=null),O.zone.cancelTask(O)):d.apply(e,y)}})}Zone.__load_patch("legacy",function(e){var r=e[Zone.__symbol__("legacyPatch")];r&&r()}),Zone.__load_patch("queueMicrotask",function(e,r,t){t.patchMethod(e,"queueMicrotask",function(n){return function(u,c){r.current.scheduleMicroTask("queueMicrotask",c[0])}})}),Zone.__load_patch("timers",function(e){var r="set",t="clear";be(e,r,t,"Timeout"),be(e,r,t,"Interval"),be(e,r,t,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){be(e,"request","cancel","AnimationFrame"),be(e,"mozRequest","mozCancel","AnimationFrame"),be(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,r){for(var t=["alert","prompt","confirm"],n=0;n<t.length;n++)ve(e,t[n],function(c,l,v){return function(T,d){return r.current.run(c,e,d,v)}})}),Zone.__load_patch("EventTarget",function(e,r,t){(function ot(e,r){r.patchEventPrototype(e,r)})(e,t),function nt(e,r){if(!Zone[r.symbol("patchEventTarget")]){for(var t=r.getGlobalObjects(),n=t.eventNames,u=t.zoneSymbolEventNames,c=t.TRUE_STR,l=t.FALSE_STR,v=t.ZONE_SYMBOL_PREFIX,T=0;T<n.length;T++){var d=n[T],b=v+(d+l),O=v+(d+c);u[d]={},u[d][l]=b,u[d][c]=O}var N=e.EventTarget;if(N&&N.prototype)return r.patchEventTarget(e,[N&&N.prototype]),!0}}(e,t);var n=e.XMLHttpRequestEventTarget;n&&n.prototype&&t.patchEventTarget(e,[n.prototype])}),Zone.__load_patch("MutationObserver",function(e,r,t){Re("MutationObserver"),Re("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,r,t){Re("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,r,t){Re("FileReader")}),Zone.__load_patch("on_property",function(e,r,t){Xr(t,e)}),Zone.__load_patch("customElements",function(e,r,t){!function tt(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,t)}),Zone.__load_patch("XHR",function(e,r){!function T(d){var p=d.XMLHttpRequest;if(p){var y=p.prototype,O=y[Ve],N=y[Ue];if(!O){var M=d.XMLHttpRequestEventTarget;if(M){var X=M.prototype;O=X[Ve],N=X[Ue]}}var g="readystatechange",m="scheduled",U=ve(y,"open",function(){return function(R,F){return R[n]=0==F[2],R[l]=F[1],U.apply(R,F)}}),$=G("fetchTaskAborting"),I=G("fetchTaskScheduling"),ee=ve(y,"send",function(){return function(R,F){if(!0===r.current[I]||R[n])return ee.apply(R,F);var w={target:R,url:R[l],isPeriodic:!1,args:F,aborted:!1},A=We("XMLHttpRequest.send",j,w,B,V);R&&!0===R[v]&&!w.aborted&&A.state===m&&A.invoke()}}),Y=ve(y,"abort",function(){return function(R,F){var w=function b(R){return R[t]}(R);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===r.current[$])return Y.apply(R,F)}})}function B(R){var F=R.data,w=F.target;w[c]=!1,w[v]=!1;var A=w[u];O||(O=w[Ve],N=w[Ue]),A&&N.call(w,g,A);var ie=w[u]=function(){if(w.readyState===w.DONE)if(!F.aborted&&w[c]&&R.state===m){var H=w[r.__symbol__("loadfalse")];if(0!==w.status&&H&&H.length>0){var h=R.invoke;R.invoke=function(){for(var a=w[r.__symbol__("loadfalse")],o=0;o<a.length;o++)a[o]===R&&a.splice(o,1);!F.aborted&&R.state===m&&h.call(R)},H.push(R)}else R.invoke()}else!F.aborted&&!1===w[c]&&(w[v]=!0)};return O.call(w,g,ie),w[t]||(w[t]=R),ee.apply(w,F.args),w[c]=!0,R}function j(){}function V(R){var F=R.data;return F.aborted=!0,Y.apply(F.target,F.args)}}(e);var t=G("xhrTask"),n=G("xhrSync"),u=G("xhrListener"),c=G("xhrScheduled"),l=G("xhrURL"),v=G("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(e){e.navigator&&e.navigator.geolocation&&function Rr(e,r){for(var t=e.constructor.name,n=function(c){var d,p,l=r[c],v=e[l];if(v){if(!rr(Oe(e,l)))return"continue";e[l]=(p=function(){return d.apply(this,Xe(arguments,t+"."+l))},he(p,d=v),p)}},u=0;u<r.length;u++)n(u)}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,r){function t(n){return function(u){lr(e,n).forEach(function(l){var v=e.PromiseRejectionEvent;if(v){var T=new v(n,{promise:u.promise,reason:u.rejection});l.invoke(T)}})}}e.PromiseRejectionEvent&&(r[G("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),r[G("rejectionHandledHandler")]=t("rejectionhandled"))})}.call(Pe,we,Pe,Ee))&&(Ee.exports=De)}},Ee=>{Ee(Ee.s=7435)}]);