(()=>{"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=f)&&Object.keys(n.O).every(h=>n.O[h](r[l]))?r.splice(l--,1):(u=!1,f0&&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{"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 U=$(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function b(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class y{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 o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(N(i))try{i()}catch(o){n=o instanceof U?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{v(o)}catch(s){n=null!=n?n:[],s instanceof U?n=[...n,...s.errors]:n.push(s)}}if(n)throw new U(n)}}add(n){var e;if(n&&n!==this)if(this.closed)v(n);else{if(n instanceof y){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)&&b(e,n)}remove(n){const{_finalizers:e}=this;e&&b(e,n),n instanceof y&&n._removeParent(this)}}y.EMPTY=(()=>{const t=new y;return t.closed=!0,t})();const E=y.EMPTY;function _(t){return t instanceof y||t&&"closed"in t&&N(t.remove)&&N(t.add)&&N(t.unsubscribe)}function v(t){N(t)?t():t.unsubscribe()}const w={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 G(t){C.setTimeout(()=>{const{onUnhandledError:n}=w;if(!n)throw t;n(t)})}function J(){}const R=W("C",void 0,void 0);function W(t,n,e){return{kind:t,value:n,error:e}}let S=null;function m(t){if(w.useDeprecatedSynchronousErrorHandling){const n=!S;if(n&&(S={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=S;if(S=null,e)throw i}}else t()}class X extends y{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,_(n)&&n.add(this)):this.destination=oe}static create(n,e,i){return new ee(n,e,i)}next(n){this.isStopped?te(function Y(t){return W("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?te(function L(t){return W("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?te(R,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 x=Function.prototype.bind;function f(t,n){return x.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 ee extends X{constructor(n,e,i){let r;if(super(),N(n)||!n)r={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let o;this&&w.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&f(n.next,o),error:n.error&&f(n.error,o),complete:n.complete&&f(n.complete,o)}):r=n}this.destination=new k(r)}}function T(t){w.useDeprecatedSynchronousErrorHandling?function F(t){w.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=t)}(t):G(t)}function te(t,n){const{onStoppedNotification:e}=w;e&&C.setTimeout(()=>e(t,n))}const oe={closed:!0,next:J,error:function M(t){throw t},complete:J},le="function"==typeof Symbol&&Symbol.observable||"@@observable";function g(t){return t}function K(t){return 0===t.length?g:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let O=(()=>{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,r){const o=function ce(t){return t&&t instanceof X||function Q(t){return t&&N(t.next)&&N(t.error)&&N(t.complete)}(t)&&_(t)}(e)?e:new ee(e,i,r);return m(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=q(i))((r,o)=>{const s=new ee({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[le](){return this}pipe(...e){return K(e)(this)}toPromise(e){return new(e=q(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function q(t){var n;return null!==(n=null!=t?t:w.Promise)&&void 0!==n?n:Promise}const ae=$(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ue=(()=>{class t extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Le(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new ae}next(e){m(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){m(()=>{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(){m(()=>{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:r,observers:o}=this;return i||r?E:(this.currentObservers=null,o.push(e),new y(()=>{this.currentObservers=null,b(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new O;return e.source=this,e}}return t.create=(n,e)=>new Le(n,e),t})();class Le extends ue{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:E}}function We(t){return N(null==t?void 0:t.lift)}function Be(t){return n=>{if(We(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,r){return new ct(t,n,e,i,r)}class ct extends X{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(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 je(t,n){return Be((e,i)=>{let r=0;e.subscribe(ze(i,o=>{i.next(t.call(n,o,r++))}))})}var pe=function(t,n){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(t,n)};function on(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}pe(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var $e=function(){return $e=Object.assign||function(n){for(var e,i=1,r=arguments.length;i1||a(p,D)})})}function a(p,D){try{!function l(p){p.value instanceof so?Promise.resolve(p.value.v).then(c,u):d(o[0][2],p)}(i[p](D))}catch(H){d(o[0][3],H)}}function c(p){a("next",p)}function u(p){a("throw",p)}function d(p,D){p(D),o.shift(),o.length&&a(o[0][0],o[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 qe(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(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=t[o](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 Ny(t){return N(t[le])}function Ly(t){return Symbol.asyncIterator&&N(null==t?void 0:t[Symbol.asyncIterator])}function Fy(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 By=function Pk(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Vy(t){return N(null==t?void 0:t[By])}function Uy(t){return cd(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield so(e.read());if(r)return yield so(void 0);yield yield so(i)}}finally{e.releaseLock()}})}function jy(t){return N(null==t?void 0:t.getReader)}function Xi(t){if(t instanceof O)return t;if(null!=t){if(Ny(t))return function Nk(t){return new O(n=>{const e=t[le]();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 Lk(t){return new O(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,G)})}(t);if(Ly(t))return Hy(t);if(Vy(t))return function Bk(t){return new O(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(jy(t))return function Vk(t){return Hy(Uy(t))}(t)}throw Fy(t)}function Hy(t){return new O(n=>{(function Uk(t,n){var e,i,r,o;return De(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){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Ao(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function ci(t,n,e=1/0){return N(n)?ci((i,r)=>je((o,s)=>n(i,o,r,s))(Xi(t(i,r))),e):("number"==typeof n&&(e=n),Be((i,r)=>function jk(t,n,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const p=()=>{d&&!l.length&&!c&&n.complete()},D=ne=>c{o&&n.next(ne),c++;let fe=!1;Xi(e(ne,u++)).subscribe(ze(n,he=>{null==r||r(he),o?D(he):n.next(he)},()=>{fe=!0},void 0,()=>{if(fe)try{for(c--;l.length&&cH(he)):H(he)}p()}catch(he){n.error(he)}}))};return t.subscribe(ze(n,D,()=>{d=!0,p()})),()=>{null==a||a()}}(i,r,t,e)))}function Sa(t=1/0){return ci(g,t)}const jr=new O(t=>t.complete());function Gy(t){return t&&N(t.schedule)}function Op(t){return t[t.length-1]}function zy(t){return N(Op(t))?t.pop():void 0}function nc(t){return Gy(Op(t))?t.pop():void 0}function qy(t,n=0){return Be((e,i)=>{e.subscribe(ze(i,r=>Ao(i,t,()=>i.next(r),n),()=>Ao(i,t,()=>i.complete(),n),r=>Ao(i,t,()=>i.error(r),n)))})}function Wy(t,n=0){return Be((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function $y(t,n){if(!t)throw new Error("Iterable cannot be null");return new O(e=>{Ao(e,n,()=>{const i=t[Symbol.asyncIterator]();Ao(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Xn(t,n){return n?function Yk(t,n){if(null!=t){if(Ny(t))return function zk(t,n){return Xi(t).pipe(Wy(n),qy(n))}(t,n);if(Mp(t))return function Wk(t,n){return new O(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 qk(t,n){return Xi(t).pipe(Wy(n),qy(n))}(t,n);if(Ly(t))return $y(t,n);if(Vy(t))return function $k(t,n){return new O(e=>{let i;return Ao(e,n,()=>{i=t[By](),Ao(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>N(null==i?void 0:i.return)&&i.return()})}(t,n);if(jy(t))return function Kk(t,n){return $y(Uy(t),n)}(t,n)}throw Fy(t)}(t,n):Xi(t)}function Ni(...t){const n=nc(t),e=function Gk(t,n){return"number"==typeof Op(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Xi(i[0]):Sa(e)(Xn(i,n)):jr}function Ky(t={}){const{connector:n=(()=>new ue),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,u=!1,d=!1;const p=()=>{null==a||a.unsubscribe(),a=void 0},D=()=>{p(),s=l=void 0,u=d=!1},H=()=>{const ne=s;D(),null==ne||ne.unsubscribe()};return Be((ne,fe)=>{c++,!d&&!u&&p();const he=l=null!=l?l:n();fe.add(()=>{c--,0===c&&!d&&!u&&(a=Ip(H,r))}),he.subscribe(fe),!s&&c>0&&(s=new ee({next:_e=>he.next(_e),error:_e=>{d=!0,p(),a=Ip(D,e,_e),he.error(_e)},complete:()=>{u=!0,p(),a=Ip(D,i),he.complete()}}),Xi(ne).subscribe(s))})(o)}}function Ip(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new ee({next:()=>{i.unsubscribe(),t()}});return n(...e).subscribe(i)}function hn(t){for(let n in t)if(t[n]===hn)return n;throw Error("Could not find renamed property on target object.")}function Rp(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function fn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(fn).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 kp(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Qk=hn({__forward_ref__:hn});function Yt(t){return t.__forward_ref__=Yt,t.toString=function(){return fn(this())},t}function bt(t){return Pp(t)?t():t}function Pp(t){return"function"==typeof t&&t.hasOwnProperty(Qk)&&t.__forward_ref__===Yt}class Te extends Error{constructor(n,e){super(function ud(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 dd(t,n){throw new Te(-201,!1)}function sr(t,n){null==t&&function tn(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 ot(t){return{providers:t.providers||[],imports:t.imports||[]}}function hd(t){return Yy(t,fd)||Yy(t,Xy)}function Yy(t,n){return t.hasOwnProperty(n)?t[n]:null}function Qy(t){return t&&(t.hasOwnProperty(Np)||t.hasOwnProperty(oP))?t[Np]:null}const fd=hn({\u0275prov:hn}),Np=hn({\u0275inj:hn}),Xy=hn({ngInjectableDef:hn}),oP=hn({ngInjectorDef:hn});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 Lp;function Er(t){const n=Lp;return Lp=t,n}function Zy(t,n,e){const i=hd(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e>.Optional?null:void 0!==n?n:void dd(fn(t))}function Jo(t){return{toString:t}.toString()}var Hr=(()=>((Hr=Hr||{})[Hr.OnPush=0]="OnPush",Hr[Hr.Default=1]="Default",Hr))(),Gr=(()=>{return(t=Gr||(Gr={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Gr;var t})();const vn=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),Aa={},en=[],pd=hn({\u0275cmp:hn}),Fp=hn({\u0275dir:hn}),Bp=hn({\u0275pipe:hn}),Jy=hn({\u0275mod:hn}),Do=hn({\u0275fac:hn}),ic=hn({__NG_ELEMENT_ID__:hn});let aP=0;function et(t){return Jo(()=>{const e=!0===t.standalone,i={},r={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===Hr.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||en,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Gr.Emulated,id:"c"+aP++,styles:t.styles||en,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.dependencies,s=t.features;return r.inputs=nC(t.inputs,i),r.outputs=nC(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(eC).filter(tC):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Fi).filter(tC):null,r})}function eC(t){return sn(t)||Li(t)}function tC(t){return null!==t}function at(t){return Jo(()=>({type:t.type,bootstrap:t.bootstrap||en,declarations:t.declarations||en,imports:t.imports||en,exports:t.exports||en,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function nC(t,n){if(null==t)return Aa;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const me=et;function qn(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 sn(t){return t[pd]||null}function Li(t){return t[Fp]||null}function Fi(t){return t[Bp]||null}function ar(t,n){const e=t[Jy]||null;if(!e&&!0===n)throw new Error(`Type ${fn(t)} does not have '\u0275mod' property.`);return e}function Zi(t){return Array.isArray(t)&&"object"==typeof t[1]}function qr(t){return Array.isArray(t)&&!0===t[1]}function jp(t){return 0!=(8&t.flags)}function _d(t){return 2==(2&t.flags)}function bd(t){return 1==(1&t.flags)}function Wr(t){return null!==t.template}function fP(t){return 0!=(256&t[2])}function Ps(t,n){return t.hasOwnProperty(Do)?t[Do]:null}class oC{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Wn(){return sC}function sC(t){return t.type.prototype.ngOnChanges&&(t.setInput=vP),mP}function mP(){const t=lC(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===Aa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function vP(t,n,e,i){const r=lC(t)||function _P(t,n){return t[aC]=n}(t,{previous:Aa,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new oC(l&&l.currentValue,n,s===Aa),t[i]=n}Wn.ngInherit=!0;const aC="__ngSimpleChanges__";function lC(t){return t[aC]||null}function Zn(t){for(;Array.isArray(t);)t=t[0];return t}function yd(t,n){return Zn(n[t])}function wr(t,n){return Zn(n[t.index])}function Wp(t,n){return t.data[n]}function Ma(t,n){return t[n]}function cr(t,n){const e=n[t];return Zi(e)?e:e[0]}function Cd(t){return 64==(64&t[2])}function es(t,n){return null==n?null:t[n]}function cC(t){t[18]=0}function $p(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 Et={lFrame:bC(null),bindingsEnabled:!0};function dC(){return Et.bindingsEnabled}function Fe(){return Et.lFrame.lView}function Kt(){return Et.lFrame.tView}function xe(t){return Et.lFrame.contextLView=t,t[8]}function Me(t){return Et.lFrame.contextLView=null,t}function ui(){let t=hC();for(;null!==t&&64===t.type;)t=t.parent;return t}function hC(){return Et.lFrame.currentTNode}function ao(t,n){const e=Et.lFrame;e.currentTNode=t,e.isParent=n}function Kp(){return Et.lFrame.isParent}function Yp(){Et.lFrame.isParent=!1}function Bi(){const t=Et.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Oa(){return Et.lFrame.bindingIndex++}function xo(t){const n=Et.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function kP(t,n){const e=Et.lFrame;e.bindingIndex=e.bindingRootIndex=t,Qp(n)}function Qp(t){Et.lFrame.currentDirectiveIndex=t}function Xp(t){const n=Et.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function mC(){return Et.lFrame.currentQueryIndex}function Zp(t){Et.lFrame.currentQueryIndex=t}function NP(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function vC(t,n,e){if(e>.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e>.Host||(r=NP(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Et.lFrame=_C();return i.currentTNode=n,i.lView=t,!0}function Jp(t){const n=_C(),e=t[1];Et.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function _C(){const t=Et.lFrame,n=null===t?null:t.child;return null===n?bC(t):n}function bC(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 yC(){const t=Et.lFrame;return Et.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const CC=yC;function eg(){const t=yC();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 Et.lFrame.selectedIndex}function ts(t){Et.lFrame.selectedIndex=t}function Bn(){const t=Et.lFrame;return Wp(t.tView,t.selectedIndex)}function cc(){Et.lFrame.currentNamespace="svg"}function Ed(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===n){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class uc{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function wd(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let ig=!0;function Td(t){const n=ig;return ig=t,n}let YP=0;const lo={};function hc(t,n){const e=og(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,rg(i.data,t),rg(n,null),rg(i.blueprint,null));const r=xd(t,n),o=t.injectorIndex;if(DC(r)){const s=Ia(r),a=Ra(r,n),l=a[1].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function rg(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 xd(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=NC(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Md(t,n,e){!function QP(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ic)&&(i=e[ic]),null==i&&(i=e[ic]=YP++);const r=255&i;n.data[t+(r>>5)]|=1<=0?255&n:eN:n}(e);if("function"==typeof o){if(!vC(n,t,i))return i>.Host?MC(r,0,i):OC(n,e,i,r);try{const s=o(i);if(null!=s||i>.Optional)return s;dd()}finally{CC()}}else if("number"==typeof o){let s=null,a=og(t,n),l=-1,c=i>.Host?n[16][6]:null;for((-1===a||i>.SkipSelf)&&(l=-1===a?xd(t,n):n[a+8],-1!==l&&PC(i,!1)?(s=n[1],a=Ia(l),n=Ra(l,n)):a=-1);-1!==a;){const u=n[1];if(kC(o,a,u.data)){const d=ZP(a,n,e,s,i,c);if(d!==lo)return d}l=n[a+8],-1!==l&&PC(i,n[1].data[a+8]===c)&&kC(o,a,n)?(s=u,a=Ia(l),n=Ra(l,n)):a=-1}}return r}function ZP(t,n,e,i,r,o){const s=n[1],a=s.data[t+8],u=Od(a,s,e,null==i?_d(a)&&ig:i!=s&&0!=(3&a.type),r>.Host&&o===a);return null!==u?fc(n,s,u,a):lo}function Od(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,p=r?a+u:t.directiveEnd;for(let D=i?a:a+u;D=l&&H.type===e)return D}if(r){const D=s[l];if(D&&Wr(D)&&D.type===e)return l}return null}function fc(t,n,e,i){let r=t[e];const o=n.data;if(function zP(t){return t instanceof uc}(r)){const s=r;s.resolving&&function Xk(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Te(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Jt(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)}(o[e]));const a=Td(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Er(s.injectImpl):null;vC(t,i,gt.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function HP(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=sC(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Er(l),Td(a),s.resolving=!1,CC()}}return r}function kC(t,n,e){return!!(e[n+(t>>5)]&1<{const n=t.prototype.constructor,e=n[Do]||sg(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Do]||sg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function sg(t){return Pp(t)?()=>{const n=sg(bt(t));return n&&n()}:Ps(t)}function NC(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}function $r(t){return function XP(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 r=0;for(;r{const i=function ag(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Na)?l[Na]:Object.defineProperty(l,Na,{value:[]})[Na];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}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 ur(t,n){void 0===n&&(n=t);for(let e=0;eArray.isArray(e)?Mo(e,n):n(e))}function FC(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Id(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=0?t[1|i]=e:(i=~i,function oN(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function cg(t,n){const e=Ba(t,n);if(e>=0)return t[1|e]}function Ba(t,n){return function UC(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Ld}())||void 0===n?void 0:n.createHTML(t))||t}function XC(t){var n;return(null===(n=function mg(){if(void 0===Fd&&(Fd=null,vn.trustedTypes))try{Fd=vn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Fd}())||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 kN extends Ns{getTypeName(){return"Script"}}class PN extends Ns{getTypeName(){return"URL"}}class NN extends Ns{getTypeName(){return"ResourceURL"}}function hr(t){return t instanceof Ns?t.changingThisBreaksApplicationSecurity:t}function co(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=""+n;try{const e=(new window.DOMParser).parseFromString(Ha(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=Ha(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ha(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let r=e.length-1;0"),!0}endElement(n){const e=n.nodeName.toLowerCase();vg.hasOwnProperty(e)&&!tE.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(oE(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 KN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,YN=/([^\#-~ |!])/g;function oE(t){return t.replace(/&/g,"&").replace(KN,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(YN,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Vd;function sE(t,n){let e=null;try{Vd=Vd||function eE(t){const n=new GN(t);return function zN(){try{return!!(new window.DOMParser).parseFromString(Ha(""),"text/html")}catch(t){return!1}}()?new HN(n):n}(t);let i=n?String(n):"";e=Vd.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Vd.getInertBodyElement(i)}while(i!==o);return Ha((new $N).sanitizeChildren(bg(e)||e))}finally{if(e){const i=bg(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function bg(t){return"content"in t&&function QN(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Zt=(()=>((Zt=Zt||{})[Zt.NONE=0]="NONE",Zt[Zt.HTML=1]="HTML",Zt[Zt.STYLE=2]="STYLE",Zt[Zt.SCRIPT=3]="SCRIPT",Zt[Zt.URL=4]="URL",Zt[Zt.RESOURCE_URL=5]="RESOURCE_URL",Zt))();function Ud(t){const n=Sc();return n?XC(n.sanitize(Zt.HTML,t)||""):co(t,"HTML")?XC(hr(t)):sE(function QC(){return void 0!==pg?pg:"undefined"!=typeof document?document:void 0}(),At(t))}function Ga(t){const n=Sc();return n?n.sanitize(Zt.URL,t)||"":co(t,"URL")?hr(t):Bd(At(t))}function Sc(){const t=Fe();return t&&t[12]}const yg=new Pe("ENVIRONMENT_INITIALIZER"),lE=new Pe("INJECTOR",-1),cE=new Pe("INJECTOR_DEF_TYPES");class uE{get(n,e=vc){if(e===vc){const i=new Error(`NullInjectorError: No provider for ${fn(n)}!`);throw i.name="NullInjectorError",i}return e}}function iL(...t){return{\u0275providers:dE(0,t)}}function dE(t,...n){const e=[],i=new Set;let r;return Mo(n,o=>{const s=o;Cg(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&hE(r,e),e}function hE(t,n){for(let e=0;e{n.push(o)})}}function Cg(t,n,e,i){if(!(t=bt(t)))return!1;let r=null,o=Qy(t);const s=!o&&sn(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=Qy(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Cg(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Mo(o.imports,u=>{Cg(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&hE(c,n)}if(!a){const c=Ps(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:en},{provide:cE,useValue:r,multi:!0},{provide:yg,useValue:()=>re(r),multi:!0})}const l=o.providers;null==l||a||Mo(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}const rL=hn({provide:String,useValue:hn});function Eg(t){return null!==t&&"object"==typeof t&&rL in t}function Ls(t){return"function"==typeof t}const Sg=new Pe("Set Injector scope."),jd={},sL={};let Ag;function Hd(){return void 0===Ag&&(Ag=new uE),Ag}class rs{}class gE extends rs{constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Dg(n,s=>this.processProvider(s)),this.records.set(lE,za(void 0,this)),r.has("environment")&&this.records.set(rs,za(void 0,this));const o=this.records.get(Sg);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(cE.multi,en,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=Va(this),i=Er(void 0);try{return n()}finally{Va(e),Er(i)}}get(n,e=vc,i=gt.Default){this.assertNotDestroyed();const r=Va(this),o=Er(void 0);try{if(!(i>.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)&&hd(n);a=l&&this.injectableDefInScope(l)?za(wg(n),jd):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i>.Self?Hd():this.parent).get(n,e=i>.Optional&&e===vc?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[kd]=s[kd]||[]).unshift(fn(n)),r)throw s;return function vN(t,n,e,i){const r=t[kd];throw n[jC]&&r.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 r=fn(n);if(Array.isArray(n))r=n.map(fn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):fn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(fN,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[kd]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Er(o),Va(r)}}resolveInjectorInitializers(){const n=Va(this),e=Er(void 0);try{const i=this.get(yg.multi,en,gt.Self);for(const r of i)r()}finally{Va(n),Er(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(fn(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 Eg(t)?za(void 0,t.useValue):za(mE(t),jd)}(n);if(Ls(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=za(void 0,jd,!0),r.factory=()=>hg(r.multi),this.records.set(e,r)),e=n,r.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 wg(t){const n=hd(t),e=null!==n?n.factory:Ps(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 iP(t){const n=t&&(t[fd]||t[Xy]);if(n){const e=function rP(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 mE(t,n,e){let i;if(Ls(t)){const r=bt(t);return Ps(r)||wg(r)}if(Eg(t))i=()=>bt(t.useValue);else if(function pE(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...hg(t.deps||[]));else if(function fE(t){return!(!t||!t.useExisting)}(t))i=()=>re(bt(t.useExisting));else{const r=bt(t&&(t.useClass||t.provide));if(!function cL(t){return!!t.deps}(t))return Ps(r)||wg(r);i=()=>new r(...hg(t.deps))}return i}function za(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function hL(t){return!!t.\u0275providers}function Dg(t,n){for(const e of t)Array.isArray(e)?Dg(e,n):hL(e)?Dg(e.\u0275providers,n):n(e)}class vE{}class gL{resolveComponentFactory(n){throw function pL(t){const n=Error(`No component factory found for ${fn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Io=(()=>{class t{}return t.NULL=new gL,t})();function mL(){return qa(ui(),Fe())}function qa(t,n){return new Oe(wr(t,n))}let Oe=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=mL,t})();function vL(t){return t instanceof Oe?t.nativeElement:t}class Ac{}let Dr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function _L(){const t=Fe(),e=cr(ui().index,t);return(Zi(e)?e:t)[11]}(),t})(),bL=(()=>{class t{}return t.\u0275prov=Ce({token:t,providedIn:"root",factory:()=>null}),t})();class Ro{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 Ro("14.2.10"),Tg={};function Rg(t){return t.ngOriginalError}class ko{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&&Rg(n);for(;e&&Rg(e);)e=Rg(e);return e||null}}const kg=new Map;let RL=0;const Ng="__ngContext__";function Mi(t,n){Zi(n)?(t[Ng]=n[20],function PL(t){kg.set(t[20],t)}(n)):t[Ng]=n}function Dc(t){return t.ownerDocument.defaultView}function OE(t){return t.ownerDocument}function Po(t){return t instanceof Function?t():t}var Ji=(()=>((Ji=Ji||{})[Ji.Important=1]="Important",Ji[Ji.DashCase=2]="DashCase",Ji))();function Fg(t,n){return undefined(t,n)}function Tc(t){const n=t[3];return qr(n)?n[3]:n}function Bg(t){return kE(t[13])}function Vg(t){return kE(t[4])}function kE(t){for(;null!==t&&!qr(t);)t=t[4];return t}function $a(t,n,e,i,r){if(null!=i){let o,s=!1;qr(i)?o=i:Zi(i)&&(s=!0,i=i[0]);const a=Zn(i);0===t&&null!==e?null==r?VE(n,e,a):Fs(n,e,a,r||null,!0):1===t&&null!==e?Fs(n,e,a,r||null,!0):2===t?function WE(t,n,e){const i=Gd(t,n);i&&function oF(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function lF(t,n,e,i,r){const o=e[7];o!==Zn(e)&&$a(n,t,i,o,r);for(let a=10;a0&&(t[e-1][4]=i[4]);const o=Id(t,10+n);!function XL(t,n){xc(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function LE(t,n){if(!(128&n[2])){const e=n[11];e.destroyNode&&xc(t,n,e,3,null,null),function eF(t){let n=t[13];if(!n)return Gg(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)&&Gg(n[1],n),n=n[3];null===n&&(n=t),Zi(n)&&Gg(n[1],n),e=n&&n[4]}n=e}}(n)}}function Gg(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function rF(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const D=8&i?p:null;if(D&&-1!==YE(D,c,0)||2&i&&c!==p){if(Kr(i))return!1;s=!0}}}}else{if(!s&&!Kr(i)&&!Kr(l))return!1;if(s&&Kr(l))continue;s=!1,i=l|1&i}}return Kr(i)||s}function Kr(t){return 0==(1&t)}function fF(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Kr(s)&&(n+=JE(o,r),r=""),i=s,o=o||!Kr(i);e++}return""!==r&&(n+=JE(o,r)),n}const wt={};function A(t){eS(Kt(),Fe(),Vi()+t,!1)}function eS(t,n,e,i){if(!i)if(3==(3&n[2])){const o=t.preOrderCheckHooks;null!==o&&Sd(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Ad(n,o,0,e)}ts(e)}function rS(t,n=null,e=null,i){const r=oS(t,n,e,i);return r.resolveInjectorInitializers(),r}function oS(t,n=null,e=null,i,r=new Set){const o=[e||en,iL(t)];return i=i||("object"==typeof t?void 0:fn(t)),new gE(o,n||Hd(),i||null,r)}let pn=(()=>{class t{static create(e,i){var r;if(Array.isArray(e))return rS({name:""},i,e,"");{const o=null!==(r=e.name)&&void 0!==r?r:"";return rS({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=vc,t.NULL=new uE,t.\u0275prov=Ce({token:t,providedIn:"any",factory:()=>re(lE)}),t.__NG_ELEMENT_ID__=-1,t})();function h(t,n=gt.Default){const e=Fe();return null===e?re(t,n):IC(ui(),e,bt(t),n)}function Bs(){throw new Error("invalid")}function $d(t,n){return t<<17|n<<2}function Yr(t){return t>>17&32767}function Zg(t){return 2|t}function No(t){return(131068&t)>>2}function Jg(t,n){return-131069&t|n<<2}function em(t){return 1|t}function ES(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i22&&eS(t,n,22,!1),e(i,r)}finally{ts(o)}}function AS(t,n,e){if(jp(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function IS(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function RS(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;i0&&gm(e)}}function gm(t){for(let i=Bg(t);null!==i;i=Vg(i))for(let r=10;r0&&gm(o)}const e=t[1].components;if(null!==e)for(let i=0;i0&&gm(r)}}function mB(t,n){const e=cr(n,t),i=e[1];(function vB(t,n){for(let e=n.length;e-1&&(Hg(n,i),Id(e,i))}this._attachedToViewContainer=!1}LE(this._lView[1],this._lView)}onDestroy(n){DS(this._lView[1],this._lView,null,n)}markForCheck(){mm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Jd(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){xc(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 Mc{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Jd(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class bm extends Io{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=sn(n);return new Oc(e,this.ngModule)}}function US(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 r=this.injector.get(n,Tg,i);return r!==Tg||e===Tg?r:this.parentInjector.get(n,e,i)}}class Oc extends vE{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 US(this.componentDef.inputs)}get outputs(){return US(this.componentDef.outputs)}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof rs?r:null==r?void 0:r.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new yB(n,o):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===Gr.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)),p=this.componentDef.onPush?288:272,D=hm(0,null,null,1,0,null,null,null,null,null),H=Qd(null,D,null,p,null,null,a,c,l,s,null);let ne,fe;Jp(H);try{const he=function SB(t,n,e,i,r,o){const s=e[1];e[22]=t;const l=Ya(s,22,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(eh(l,c,!0),null!==t&&(wd(r,t,c),null!==l.classes&&$g(r,t,l.classes),null!==l.styles&&KE(r,t,l.styles)));const u=i.createRenderer(t,n),d=Qd(e,wS(n),null,n.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(Md(hc(l,e),s,n.type),RS(s,l),kS(l,e.length,1)),Zd(e,d),e[22]=d}(d,this.componentDef,H,a,c);if(d)if(i)wd(c,d,["ng-version",yL.full]);else{const{attrs:_e,classes:ge}=function yF(t){const n=[],e=[];let i=1,r=2;for(;i0&&$g(c,d,ge.join(" "))}if(fe=Wp(D,22),void 0!==e){const _e=fe.projection=[];for(let ge=0;ge=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Dd(r.hostAttrs,e=Dd(e,r.hostAttrs))}}(i)}function ym(t){return t===Aa?{}:t===en?[]:t}function TB(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function xB(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function MB(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let nh=null;function Vs(){if(!nh){const t=vn.Symbol;if(t&&t.iterator)nh=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Zn(He[i.index])):i.index;let ve=null;if(!a&&l&&(ve=function jB(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==ve)(ve.__ngLastListenerFn__||ve).__ngNextListenerFn__=o,ve.__ngLastListenerFn__=o,D=!1;else{o=e0(i,n,d,o,!1);const He=e.listen(he,r,o);p.push(o,He),u&&u.push(r,ge,_e,_e+1)}}else o=e0(i,n,d,o,!1);const H=i.outputs;let ne;if(D&&null!==H&&(ne=H[r])){const fe=ne.length;if(fe)for(let he=0;he0;)n=n[15],t--;return n}(t,Et.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 r=0;r=0}const hi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function d0(t){return t.substring(hi.key,hi.keyEnd)}function h0(t,n){const e=hi.textEnd;return e===n?-1:(n=hi.keyEnd=function YB(t,n,e){for(;n32;)n++;return n}(t,hi.key=n,e),sl(t,n,e))}function sl(t,n,e){for(;n=0;e=h0(n,e))dr(t,d0(n),!0)}function Qr(t,n,e,i){const r=Fe(),o=Kt(),s=xo(2);o.firstUpdatePass&&_0(o,t,s,i),n!==wt&&Oi(r,s,n)&&y0(o,o.data[Vi()],r,r[11],t,r[s+1]=function a2(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=fn(hr(t)))),t}(n,e),i,s)}function v0(t,n){return n>=t.expandoStartIndex}function _0(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[Vi()],s=v0(t,e);E0(o,i)&&null===n&&!s&&(n=!1),n=function e2(t,n,e,i){const r=Xp(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Lc(e=Am(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=Am(r,t,n,e,i),null===o){let l=function t2(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==No(i))return t[Yr(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Am(null,t,n,l[1],i),l=Lc(l,n.attrs,i),function n2(t,n,e,i){t[Yr(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function r2(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const p=Yr(t[a+1]);t[i+1]=$d(p,a),0!==p&&(t[p+1]=Jg(t[p+1],i)),t[a+1]=function VF(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$d(a,0),0!==a&&(t[a+1]=Jg(t[a+1],i)),a=i;else t[i+1]=$d(l,0),0===a?a=i:t[l+1]=Jg(t[l+1],i),l=i;c&&(t[i+1]=Zg(t[i+1])),u0(t,u,i,!0),u0(t,u,i,!1),function zB(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Ba(o,n)>=0&&(e[i+1]=em(e[i+1]))}(n,u,t,i,o),s=$d(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function Am(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let p=e[r+1];p===wt&&(p=d?en:void 0);let D=d?cg(p,i):u===i?p:void 0;if(c&&!rh(D)&&(D=cg(l,i)),rh(D)&&(a=D,s))return a;const H=t[r+1];r=s?Yr(H):No(H)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=cg(l,i))}return a}function rh(t){return void 0!==t}function E0(t,n){return 0!=(t.flags&(n?16:32))}function se(t,n=""){const e=Fe(),i=Kt(),r=t+22,o=i.firstCreatePass?Ya(i,r,1,n,null):i.data[r],s=e[r]=function Ug(t,n){return t.createText(n)}(e[11],n);zd(i,e,s,o),ao(o,!1)}function Ne(t){return wn("",t,""),Ne}function wn(t,n,e){const i=Fe(),r=Za(i,t,n,e);return r!==wt&&function Lo(t,n,e){const i=yd(n,t);!function PE(t,n,e){t.setValue(n,e)}(t[11],i,e)}(i,Vi(),r),wn}function I0(t,n,e){!function Xr(t,n,e,i){const r=Kt(),o=xo(2);r.firstUpdatePass&&_0(r,null,o,i);const s=Fe();if(e!==wt&&Oi(s,o,e)){const a=r.data[Vi()];if(E0(a,i)&&!v0(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=kp(l,e||"")),Em(r,a,s,e,i)}else!function s2(t,n,e,i,r,o,s,a){r===wt&&(r=en);let l=0,c=0,u=0((Xe=Xe||{})[Xe.LocaleId=0]="LocaleId",Xe[Xe.DayPeriodsFormat=1]="DayPeriodsFormat",Xe[Xe.DayPeriodsStandalone=2]="DayPeriodsStandalone",Xe[Xe.DaysFormat=3]="DaysFormat",Xe[Xe.DaysStandalone=4]="DaysStandalone",Xe[Xe.MonthsFormat=5]="MonthsFormat",Xe[Xe.MonthsStandalone=6]="MonthsStandalone",Xe[Xe.Eras=7]="Eras",Xe[Xe.FirstDayOfWeek=8]="FirstDayOfWeek",Xe[Xe.WeekendRange=9]="WeekendRange",Xe[Xe.DateFormat=10]="DateFormat",Xe[Xe.TimeFormat=11]="TimeFormat",Xe[Xe.DateTimeFormat=12]="DateTimeFormat",Xe[Xe.NumberSymbols=13]="NumberSymbols",Xe[Xe.NumberFormats=14]="NumberFormats",Xe[Xe.CurrencyCode=15]="CurrencyCode",Xe[Xe.CurrencySymbol=16]="CurrencySymbol",Xe[Xe.CurrencyName=17]="CurrencyName",Xe[Xe.Currencies=18]="Currencies",Xe[Xe.Directionality=19]="Directionality",Xe[Xe.PluralCase=20]="PluralCase",Xe[Xe.ExtraData=21]="ExtraData",Xe))();const ll="en-US";let G0=ll;function Tm(t,n,e,i,r){if(t=bt(t),Array.isArray(t))for(let o=0;o>20;if(Ls(t)||!t.multi){const D=new uc(l,r,h),H=Mm(a,n,r?u:u+p,d);-1===H?(Md(hc(c,s),o,a),xm(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(D),s.push(D)):(e[H]=D,s[H]=D)}else{const D=Mm(a,n,u+p,d),H=Mm(a,n,u,u+p),ne=D>=0&&e[D],fe=H>=0&&e[H];if(r&&!fe||!r&&!ne){Md(hc(c,s),o,a);const he=function AV(t,n,e,i,r){const o=new uc(t,e,h);return o.multi=[],o.index=n,o.componentProviders=0,pA(o,r,i&&!e),o}(r?SV:EV,e.length,r,i,l);!r&&fe&&(e[H].providerFactory=he),xm(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(he),s.push(he)}else xm(o,t,D>-1?D:H,pA(e[r?H:D],l,!r&&i));!r&&i&&fe&&e[H].componentProviders++}}}function xm(t,n,e,i){const r=Ls(n),o=function oL(t){return!!t.useClass}(n);if(r||o){const l=(o?bt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&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 pA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Mm(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function CV(t,n,e){const i=Kt();if(i.firstCreatePass){const r=Wr(t);Tm(e,i.data,i.blueprint,r,!0),Tm(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class Hs{}class gA{}class mA extends Hs{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new bm(this);const i=ar(n);this._bootstrapComponents=Po(i.bootstrap),this._r3Injector=oS(n,e,[{provide:Hs,useValue:this},{provide:Io,useValue:this.componentFactoryResolver}],fn(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 gA{constructor(n){super(),this.moduleType=n}create(n){return new mA(this.moduleType,n)}}class DV extends Hs{constructor(n,e,i){super(),this.componentFactoryResolver=new bm(this),this.instance=null;const r=new gE([...n,{provide:Hs,useValue:this},{provide:Io,useValue:this.componentFactoryResolver}],e||Hd(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function ch(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=dE(0,e.type),r=i.length>0?ch([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}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(re(rs))}),t})();function vA(t){t.getStandaloneInjector=n=>n.get(TV).getOrCreateStandaloneInjector(t)}function Jn(t,n,e,i){return TA(Fe(),Bi(),t,n,e,i)}function Gc(t,n,e,i,r,o,s){return function OA(t,n,e,i,r,o,s,a,l){const c=n+e;return Tr(t,c,r,o,s,a)?ho(t,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):zc(t,c+4)}(Fe(),Bi(),t,n,e,i,r,o,s)}function DA(t,n,e,i,r,o,s,a,l,c){const u=Bi()+t,d=Fe();let p=Tr(d,u,e,i,r,o);return function ih(t,n,e,i,r){const o=Us(t,n,e,i);return Oi(t,n+2,r)||o}(d,u+4,s,a,l)||p?ho(d,u+7,c?n.call(c,e,i,r,o,s,a,l):n(e,i,r,o,s,a,l)):function Rc(t,n){return t[n]}(d,u+7)}function zc(t,n){const e=t[n];return e===wt?void 0:e}function TA(t,n,e,i,r,o){const s=n+e;return Oi(t,s,r)?ho(t,s+1,o?i.call(o,r):i(r)):zc(t,s+1)}function ye(t,n){const e=Kt();let i;const r=t+22;e.firstCreatePass?(i=function jV(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[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ps(i.type)),s=Er(h);try{const a=Td(!1),l=o();return Td(a),function BB(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Fe(),r,l),l}finally{Er(s)}}function Se(t,n,e){const i=t+22,r=Fe(),o=Ma(r,i);return qc(r,i)?TA(r,Bi(),n,o.transform,e,o):o.transform(e)}function ls(t,n,e,i){const r=t+22,o=Fe(),s=Ma(o,r);return qc(o,r)?function xA(t,n,e,i,r,o,s){const a=n+e;return Us(t,a,r,o)?ho(t,a+2,s?i.call(s,r,o):i(r,o)):zc(t,a+2)}(o,Bi(),n,s.transform,e,i,s):s.transform(e,i)}function qc(t,n){return t[1].data[n].pure}function km(t){return n=>{setTimeout(t,void 0,n)}}const Ee=class qV extends ue{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var r,o,s;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const d=n;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=km(l),a&&(a=km(a)),c&&(c=km(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof y&&n.add(u),u}};function WV(){return this._results[Vs()]()}class cs{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=cs.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 r=ur(n);(this._changesDetected=!function iN(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=YV,t})();const $V=vt,KV=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,r=Qd(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),cm(i,r,n),new Mc(r)}};function YV(){return uh(ui(),Fe())}function uh(t,n){return 4&t.type?new KV(n,t,qa(t,n)):null}let an=(()=>{class t{}return t.__NG_ELEMENT_ID__=QV,t})();function QV(){return PA(ui(),Fe())}const XV=an,RA=class extends XV{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return qa(this._hostTNode,this._hostLView)}get injector(){return new ka(this._hostTNode,this._hostLView)}get parentInjector(){const n=xd(this._hostTNode,this._hostLView);if(DC(n)){const e=Ra(n,this._hostLView),i=Ia(n);return new ka(e[1].data[i+8],e)}return new ka(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=kA(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){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,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new Oc(sn(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const p=(s?c:this.parentInjector).get(rs,null);p&&(o=p)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[1];if(function wP(t){return qr(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],p=new RA(d,d[6],d[3]);p.detach(p.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function tF(t,n,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=10;d{class t{constructor(e){this.appInits=e,this.resolve=hh,this.reject=hh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(re(fh,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dl=new Pe("AppId",{providedIn:"root",factory:function rw(){return`${zm()}${zm()}${zm()}`}});function zm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ow=new Pe("Platform Initializer"),xr=new Pe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),qm=new Pe("appBootstrapListener"),gi=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 go=new Pe("LocaleId",{providedIn:"root",factory:()=>cn(go,gt.Optional|gt.SkipSelf)||function D3(){return"undefined"!=typeof $localize&&$localize.locale||ll}()});class x3{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),o=Po(ar(e).declarations).reduce((s,a)=>{const l=sn(a);return l&&s.push(new Oc(l)),s},[]);return new x3(i,o)}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 r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function R3(){let t=vn.requestAnimationFrame,n=vn.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 P3(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ym(t),t.isCheckStableRunning=!0,Km(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ym(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return lw(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),cw(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return lw(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),cw(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Ym(t),Km(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}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,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,k3,hh,hh);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const k3={};function Km(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 Ym(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function lw(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function cw(t){t._nesting--,Km(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,r){return n.apply(e,i)}}const uw=new Pe(""),gh=new Pe("");let $c,Qm=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$c||(function F3(t){$c=t}(r),r.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,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(re(lt),re(Xm),re(gh))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),Xm=(()=>{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 r;return null!==(r=null==$c?void 0:$c.findTestabilityInTree(this,e,i))&&void 0!==r?r:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),mo=null;const dw=new Pe("AllowMultipleToken"),Zm=new Pe("PlatformDestroyListeners");class hw{constructor(n,e){this.name=n,this.token=e}}function pw(t,n,e=[]){const i=`Platform: ${n}`,r=new Pe(i);return(o=[])=>{let s=Jm();if(!s||s.injector.get(dw,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function U3(t){if(mo&&!mo.get(dw,!1))throw new Te(400,!1);mo=t;const n=t.get(mw);(function fw(t){const n=t.get(ow,null);n&&n.forEach(e=>e())})(t)}(function gw(t=[],n){return pn.create({name:n,providers:[{provide:Sg,useValue:"platform"},{provide:Zm,useValue:new Set([()=>mo=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==mo?void 0:mo.get(mw))&&void 0!==t?t:null}let mw=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function _w(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 vw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:lt,useValue:r}];return r.run(()=>{const s=pn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ko,null);if(!l)throw new Te(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{mh(this._modules,a),c.unsubscribe()})}),function bw(t,n,e){try{const i=e();return kc(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(ph);return c.runInitializers(),c.donePromise.then(()=>(function z0(t){sr(t,"Expected localeId to be defined"),"string"==typeof t&&(G0=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(go,ll)||ll),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=yw({},i);return function B3(t,n,e){const i=new Im(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Gs);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));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(Zm,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)(re(pn))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function yw(t,n){return Array.isArray(n)?n.reduce(yw,t):Object.assign(Object.assign({},t),n)}let Gs=(()=>{class t{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,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 o=new O(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new O(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(o,s.pipe(Ky()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof vE;if(!this._injector.get(ph).done)throw!r&&function wa(t){const n=sn(t)||Li(t)||Fi(t);return null!==n&&n.standalone}(e),new Te(405,false);let s;s=r?e:this._injector.get(Io).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(pn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(uw,null);return null==d||d.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),mh(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;mh(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(r=>r(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),()=>mh(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)(re(lt),re(rs),re(ko))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function mh(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Ew=!0,Vt=(()=>{class t{}return t.__NG_ELEMENT_ID__=q3,t})();function q3(t){return function W3(t,n,e){if(_d(t)&&!e){const i=cr(t.index,n);return new Mc(i,i)}return 47&t.type?new Mc(n[16],n):null}(ui(),Fe(),16==(16&t))}class Tw{constructor(){}supports(n){return Ic(n)}create(n){return new Z3(n)}}const X3=(t,n)=>n;class Z3{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||X3}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;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,r){let o;return null===n?o=this._itTail:(o=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,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new J3(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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 r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,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 r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new xw),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 xw),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 eU{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 xw{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new eU,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.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 r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),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 r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new nU(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 nU{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 Iw(){return new Kc([new Tw])}let Kc=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Iw()),deps:[[t,new Ua,new is]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Te(901,!1)}}return t.\u0275prov=Ce({token:t,providedIn:"root",factory:Iw}),t})();function Rw(){return new qs([new Ow])}let qs=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Rw()),deps:[[t,new Ua,new is]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Te(901,!1)}}return t.\u0275prov=Ce({token:t,providedIn:"root",factory:Rw}),t})();const oU=pw(null,"core",[]);let sU=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(re(Gs))},t.\u0275mod=at({type:t}),t.\u0275inj=ot({}),t})();let bh=null;function vo(){return bh}const dt=new Pe("DocumentToken");let rv=(()=>{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 uU(){return re(kw)}()},providedIn:"platform"}),t})();const dU=new Pe("Location Initialized");let kw=(()=>{class t extends rv{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vo().getBaseHref(this._doc)}onPopState(e){const i=vo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=vo().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,r){Pw()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Pw()?this._history.replaceState(e,i,r):this.location.hash=r}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)(re(dt))},t.\u0275prov=Ce({token:t,factory:function(){return function hU(){return new kw(re(dt))}()},providedIn:"platform"}),t})();function Pw(){return!!window.history.pushState}function ov(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 Nw(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 Vo(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 cn(Lw)},providedIn:"root"}),t})();const sv=new Pe("appBaseHref");let Lw=(()=>{class t extends Ws{constructor(e,i){var r,o,s;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(s=null!==(r=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==r?r:null===(o=cn(dt).location)||void 0===o?void 0:o.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 ov(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Vo(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Vo(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Vo(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(re(rv),re(sv,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fU=(()=>{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=ov(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Vo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Vo(o));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,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(re(rv),re(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=Nw(Fw(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.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+Vo(i))}normalize(e){return t.stripTrailingSlash(function gU(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,Fw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vo(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vo(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._locationStrategy).historyGo)||void 0===r||r.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 r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(null===(i=this._urlChangeSubscription)||void 0===i||i.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Vo,t.joinWithSlash=ov,t.stripTrailingSlash=Nw,t.\u0275fac=function(e){return new(e||t)(re(Ws))},t.\u0275prov=Ce({token:t,factory:function(){return function pU(){return new Yc(re(Ws))}()},providedIn:"root"}),t})();function Fw(t){return t.replace(/\/index.html$/,"")}var tr=(()=>((tr=tr||{})[tr.Decimal=0]="Decimal",tr[tr.Percent=1]="Percent",tr[tr.Currency=2]="Currency",tr[tr.Scientific=3]="Scientific",tr))(),$n=(()=>(($n=$n||{})[$n.Format=0]="Format",$n[$n.Standalone=1]="Standalone",$n))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),Pn=(()=>((Pn=Pn||{})[Pn.Short=0]="Short",Pn[Pn.Medium=1]="Medium",Pn[Pn.Long=2]="Long",Pn[Pn.Full=3]="Full",Pn))(),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 yh(t,n){return Or(Hi(t)[Xe.DateFormat],n)}function Ch(t,n){return Or(Hi(t)[Xe.TimeFormat],n)}function Eh(t,n){return Or(Hi(t)[Xe.DateTimeFormat],n)}function Mr(t,n){const e=Hi(t),i=e[Xe.NumberSymbols][n];if(void 0===i){if(n===mt.CurrencyDecimal)return e[Xe.NumberSymbols][mt.Decimal];if(n===mt.CurrencyGroup)return e[Xe.NumberSymbols][mt.Group]}return i}function Vw(t){if(!t[Xe.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Xe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Or(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 xU=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},MU=/((?:[^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 fi=(()=>((fi=fi||{})[fi.Short=0]="Short",fi[fi.ShortGMT=1]="ShortGMT",fi[fi.Long=2]="Long",fi[fi.Extended=3]="Extended",fi))(),_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 OU(t,n,e,i){let r=function VU(t){if(Hw(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[r,o=1,s=1]=t.split("-").map(a=>+a);return Sh(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(xU))return function UU(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.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 o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!Hw(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Uo(e,n)||n;let a,s=[];for(;n;){if(a=MU.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=jw(i,l),r=function BU(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function FU(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(jw(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function LU(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=ti(_t.FullYear,1,0,!1,!0);break;case"yy":n=ti(_t.FullYear,2,0,!0,!0);break;case"yyy":n=ti(_t.FullYear,3,0,!1,!0);break;case"yyyy":n=ti(_t.FullYear,4,0,!1,!0);break;case"Y":n=Th(1);break;case"YY":n=Th(2,!0);break;case"YYY":n=Th(3);break;case"YYYY":n=Th(4);break;case"M":case"L":n=ti(_t.Month,1,1);break;case"MM":case"LL":n=ti(_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,$n.Standalone);break;case"LLLL":n=bn(Nt.Months,qt.Wide,$n.Standalone);break;case"LLLLL":n=bn(Nt.Months,qt.Narrow,$n.Standalone);break;case"w":n=cv(1);break;case"ww":n=cv(2);break;case"W":n=cv(1,!0);break;case"d":n=ti(_t.Date,1);break;case"dd":n=ti(_t.Date,2);break;case"c":case"cc":n=ti(_t.Day,1);break;case"ccc":n=bn(Nt.Days,qt.Abbreviated,$n.Standalone);break;case"cccc":n=bn(Nt.Days,qt.Wide,$n.Standalone);break;case"ccccc":n=bn(Nt.Days,qt.Narrow,$n.Standalone);break;case"cccccc":n=bn(Nt.Days,qt.Short,$n.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,$n.Standalone,!0);break;case"bbbb":n=bn(Nt.DayPeriods,qt.Wide,$n.Standalone,!0);break;case"bbbbb":n=bn(Nt.DayPeriods,qt.Narrow,$n.Standalone,!0);break;case"B":case"BB":case"BBB":n=bn(Nt.DayPeriods,qt.Abbreviated,$n.Format,!0);break;case"BBBB":n=bn(Nt.DayPeriods,qt.Wide,$n.Format,!0);break;case"BBBBB":n=bn(Nt.DayPeriods,qt.Narrow,$n.Format,!0);break;case"h":n=ti(_t.Hours,1,-12);break;case"hh":n=ti(_t.Hours,2,-12);break;case"H":n=ti(_t.Hours,1);break;case"HH":n=ti(_t.Hours,2);break;case"m":n=ti(_t.Minutes,1);break;case"mm":n=ti(_t.Minutes,2);break;case"s":n=ti(_t.Seconds,1);break;case"ss":n=ti(_t.Seconds,2);break;case"S":n=ti(_t.FractionalSeconds,1);break;case"SS":n=ti(_t.FractionalSeconds,2);break;case"SSS":n=ti(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=wh(fi.Short);break;case"ZZZZZ":n=wh(fi.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=wh(fi.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=wh(fi.Long);break;default:return null}return uv[t]=n,n}(u);c+=d?d(r,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 Uo(t,n){const e=function mU(t){return Hi(t)[Xe.LocaleId]}(t);if(Qc[e]=Qc[e]||{},Qc[e][n])return Qc[e][n];let i="";switch(n){case"shortDate":i=yh(t,Pn.Short);break;case"mediumDate":i=yh(t,Pn.Medium);break;case"longDate":i=yh(t,Pn.Long);break;case"fullDate":i=yh(t,Pn.Full);break;case"shortTime":i=Ch(t,Pn.Short);break;case"mediumTime":i=Ch(t,Pn.Medium);break;case"longTime":i=Ch(t,Pn.Long);break;case"fullTime":i=Ch(t,Pn.Full);break;case"short":const r=Uo(t,"shortTime"),o=Uo(t,"shortDate");i=Ah(Eh(t,Pn.Short),[r,o]);break;case"medium":const s=Uo(t,"mediumTime"),a=Uo(t,"mediumDate");i=Ah(Eh(t,Pn.Medium),[s,a]);break;case"long":const l=Uo(t,"longTime"),c=Uo(t,"longDate");i=Ah(Eh(t,Pn.Long),[l,c]);break;case"full":const u=Uo(t,"fullTime"),d=Uo(t,"fullDate");i=Ah(Eh(t,Pn.Full),[u,d])}return i&&(Qc[e][n]=i),i}function Ah(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Jr(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===_t.Hours)0===a&&-12===e&&(a=12);else if(t===_t.FractionalSeconds)return function IU(t,n){return Jr(t,3).substring(0,n)}(a,n);const l=Mr(s,mt.MinusSign);return Jr(a,n,l,i,r)}}function bn(t,n,e=$n.Format,i=!1){return function(r,o){return function kU(t,n,e,i,r,o){switch(e){case Nt.Months:return function bU(t,n,e){const i=Hi(t),o=Or([i[Xe.MonthsFormat],i[Xe.MonthsStandalone]],n);return Or(o,e)}(n,r,i)[t.getMonth()];case Nt.Days:return function _U(t,n,e){const i=Hi(t),o=Or([i[Xe.DaysFormat],i[Xe.DaysStandalone]],n);return Or(o,e)}(n,r,i)[t.getDay()];case Nt.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function SU(t){const n=Hi(t);return Vw(n),(n[Xe.ExtraData][2]||[]).map(i=>"string"==typeof i?lv(i):[lv(i[0]),lv(i[1])])}(n),u=function AU(t,n,e){const i=Hi(t);Vw(i);const o=Or([i[Xe.ExtraData][0],i[Xe.ExtraData][1]],n)||[];return Or(o,e)||[]}(n,r,i),d=c.findIndex(p=>{if(Array.isArray(p)){const[D,H]=p,ne=s>=D.hours&&a>=D.minutes,fe=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case fi.Short:return(r>=0?"+":"")+Jr(s,2,o)+Jr(Math.abs(r%60),2,o);case fi.ShortGMT:return"GMT"+(r>=0?"+":"")+Jr(s,1,o);case fi.Long:return"GMT"+(r>=0?"+":"")+Jr(s,2,o)+":"+Jr(Math.abs(r%60),2,o);case fi.Extended:return 0===i?"Z":(r>=0?"+":"")+Jr(s,2,o)+":"+Jr(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function Uw(t){return Sh(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function cv(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=Uw(e),s=function NU(t){const n=Sh(t,0,1).getDay();return Sh(t,0,1+(n<=4?4:11)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Jr(r,t,Mr(i,mt.MinusSign))}}function Th(t,n=!1){return function(e,i){return Jr(Uw(e).getFullYear(),t,Mr(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 Hw(t){return t instanceof Date&&!isNaN(t.valueOf())}const jU=/^(\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 Ww(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}let Ii=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,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 ${fn(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(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(h(Kc),h(qs),h(Oe),h(Dr))},t.\u0275dir=me({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class JU{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ir=(()=>{class t{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,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((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new JU(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),Yw(a,r)}});for(let r=0,o=i.length;r{Yw(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(h(an),h(vt),h(Kc))},t.\u0275dir=me({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 Qt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new t4,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(an),h(vt))},t.\u0275dir=me({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class t4{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 '${fn(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 hl=(()=>{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{class t{constructor(e,i,r){this.ngSwitch=r,r._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(an),h(vt),h(hl,9))},t.\u0275dir=me({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),Xw=(()=>{class t{constructor(e,i,r){r._addDefault(new mv(e,i))}}return t.\u0275fac=function(e){return new(e||t)(h(an),h(vt),h(hl,9))},t.\u0275dir=me({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),fl=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,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[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Ji.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,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(Oe),h(qs),h(Dr))},t.\u0275dir=me({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),us=(()=>{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:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,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(an))},t.\u0275dir=me({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Wn]}),t})();function eo(t,n){return new Te(2100,!1)}class i4{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}}class r4{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const o4=new r4,s4=new i4;let Jw=(()=>{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(kc(e))return o4;if(XS(e))return s4;throw eo()}_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=qn({name:"async",type:t,pure:!1,standalone:!0}),t})(),vv=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw eo();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=qn({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const u4=new Pe("DATE_PIPE_DEFAULT_TIMEZONE");let Oh=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",r,o){var s;if(null==e||""===e||e!=e)return null;try{return OU(e,i,o||this.locale,null!==(s=null!=r?r:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw eo()}}}return t.\u0275fac=function(e){return new(e||t)(h(go,16),h(u4,24))},t.\u0275pipe=qn({name:"date",type:t,pure:!0,standalone:!0}),t})(),eD=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=qn({name:"json",type:t,pure:!1,standalone:!0}),t})(),_v=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!function bv(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function $U(t,n,e){return function hv(t,n,e,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function YU(t){let i,r,o,s,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf("."))>-1&&(n=n.replace(".","")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;"0"===n.charAt(o);o++);if(o===(a=n.length))i=[0],r=1;else{for(a--;"0"===n.charAt(a);)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(n.charAt(o))}return r>22&&(i=i.splice(0,21),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);s&&(c=function KU(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,p=n.maxFrac;if(o){const _e=o.match(jU);if(null===_e)throw new Error(`${o} is not a valid digit info`);const ge=_e[1],ve=_e[3],He=_e[5];null!=ge&&(u=pv(ge)),null!=ve&&(d=pv(ve)),null!=He?p=pv(He):null!=ve&&d>p&&(p=d)}!function QU(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,r=i.length-t.integerLen;const o=Math.min(Math.max(n,r),e);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d=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(;r=c?H.pop():l=!1),p>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,p);let D=c.digits,H=c.integerLen;const ne=c.exponent;let fe=[];for(l=D.every(_e=>!_e);H0?fe=D.splice(H,D.length):(fe=D,D=[0]);const he=[];for(D.length>=n.lgSize&&he.unshift(D.splice(-n.lgSize,D.length).join(""));D.length>n.gSize;)he.unshift(D.splice(-n.gSize,D.length).join(""));D.length&&he.unshift(D.join("")),a=he.join(Mr(e,i)),fe.length&&(a+=Mr(e,r)+fe.join("")),ne&&(a+=Mr(e,mt.Exponential)+"+"+ne)}else a=Mr(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(";"),r=i[0],o=i[1],s=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf("#"));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({}),t})();const nD="browser";function $s(t){return t===nD}function pl(t){return"server"===t}let E4=(()=>{class t{}return t.\u0275prov=Ce({token:t,providedIn:"root",factory:()=>new S4(re(dt),window)}),t})();class S4{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 A4(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 r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=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,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=iD(this.window.history)||iD(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 iD(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class rD{}class Sv extends class H4 extends class cU{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function lU(t){bh||(bh=t)}(new Sv)}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 G4(){return Jc=Jc||document.querySelector("base"),Jc?Jc.getAttribute("href"):null}();return null==e?null:function z4(t){Rh=Rh||document.createElement("a"),Rh.setAttribute("href",t);const n=Rh.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Jc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Ww(document.cookie,n)}}let Rh,Jc=null;const lD=new Pe("TRANSITION_ID"),W4=[{provide:fh,useFactory:function q4(t,n,e){return()=>{e.get(ph).donePromise.then(()=>{const i=vo(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{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 kh=new Pe("EventManagerPlugins");let Ph=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),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})(),eu=(()=>{class t extends uD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.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(dD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(dD))}}return t.\u0275fac=function(e){return new(e||t)(re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();function dD(t){vo().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 Nh(t,n,e){for(let i=0;i{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Lh=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Dv(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Gr.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new ej(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Gr.ShadowDom:return new tj(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Nh(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(re(Ph),re(eu),re(dl))},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){(mD(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(mD(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,r){if(r){e=r+":"+e;const o=Av[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=Av[i];r?n.removeAttributeNS(r,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,r){r&(Ji.DashCase|Ji.Important)?n.style.setProperty(e,i,r&Ji.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Ji.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,pD(i)):this.eventManager.addEventListener(n,e,pD(i))}}function mD(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class ej extends Dv{constructor(n,e,i,r){super(n),this.component=i;const o=Nh(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function X4(t){return"_ngcontent-%COMP%".replace(wv,t)}(r+"-"+i.id),this.hostAttr=function Z4(t){return"_nghost-%COMP%".replace(wv,t)}(r+"-"+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 tj extends Dv{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Nh(r.id,r.styles,[]);for(let s=0;s{class t extends cD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const vD=["alt","control","meta","shift"],ij={"\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"},rj={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let oj=(()=>{class t extends cD{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vo().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),vD.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=ij[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),vD.forEach(s=>{s!==r&&(0,rj[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const bD=[{provide:xr,useValue:nD},{provide:ow,useValue:function sj(){Sv.makeCurrent()},multi:!0},{provide:dt,useFactory:function lj(){return function xN(t){pg=t}(document),document},deps:[]}],cj=pw(oU,"browser",bD),yD=new Pe(""),CD=[{provide:gh,useClass:class $4{addToWindow(n){vn.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},vn.getAllAngularTestabilities=()=>n.getAllTestabilities(),vn.getAllAngularRootElements=()=>n.getAllRootElements(),vn.frameworkStabilizers||(vn.frameworkStabilizers=[]),vn.frameworkStabilizers.push(i=>{const r=vn.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const r=n.getTestability(e);return null!=r?r:i?vo().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}},deps:[]},{provide:uw,useClass:Qm,deps:[lt,Xm,gh]},{provide:Qm,useClass:Qm,deps:[lt,Xm,gh]}],ED=[{provide:Sg,useValue:"root"},{provide:ko,useFactory:function aj(){return new ko},deps:[]},{provide:kh,useClass:nj,multi:!0,deps:[dt,lt,xr]},{provide:kh,useClass:oj,multi:!0,deps:[dt]},{provide:Lh,useClass:Lh,deps:[Ph,eu,dl]},{provide:Ac,useExisting:Lh},{provide:uD,useExisting:eu},{provide:eu,useClass:eu,deps:[dt]},{provide:Ph,useClass:Ph,deps:[kh,lt]},{provide:rD,useClass:K4,deps:[]},[]];let SD=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:dl,useValue:e.appId},{provide:lD,useExisting:dl},W4]}}}return t.\u0275fac=function(e){return new(e||t)(re(yD,12))},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[...ED,...CD],imports:[zi,sU]}),t})(),AD=(()=>{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)(re(dt))},t.\u0275prov=Ce({token:t,factory:function(e){let i=null;return i=e?new e:function dj(){return new AD(re(dt))}(),i},providedIn:"root"}),t})();"undefined"!=typeof window&&window;let Fh=(()=>{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):re(TD),i},providedIn:"root"}),t})(),TD=(()=>{class t extends Fh{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Zt.NONE:return i;case Zt.HTML:return co(i,"HTML")?hr(i):sE(this._doc,String(i)).toString();case Zt.STYLE:return co(i,"Style")?hr(i):i;case Zt.SCRIPT:if(co(i,"Script"))return hr(i);throw new Error("unsafe value used in a script context");case Zt.URL:return co(i,"URL")?hr(i):Bd(String(i));case Zt.RESOURCE_URL:if(co(i,"ResourceURL"))return hr(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 kN(t)}(e)}bypassSecurityTrustUrl(e){return function UN(t){return new PN(t)}(e)}bypassSecurityTrustResourceUrl(e){return function jN(t){return new NN(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(re(dt))},t.\u0275prov=Ce({token:t,factory:function(e){let i=null;return i=e?new e:function _j(t){return new TD(t.get(dt))}(re(pn)),i},providedIn:"root"}),t})();class xD{}const jo="*";function qi(t,n){return{type:7,name:t,definitions:n,options:{}}}function Kn(t,n=null){return{type:4,styles:n,timings:t}}function MD(t,n=null){return{type:3,steps:t,options:n}}function OD(t,n=null){return{type:2,steps:t,options:n}}function Pt(t){return{type:6,styles:t,offset:null}}function mi(t,n,e){return{type:0,name:t,styles:n,options:e}}function Un(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Mv(t=null){return{type:9,options:t}}function Ov(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function ID(t){Promise.resolve().then(t)}class tu{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(){ID(()=>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 RD{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,r=0;const o=this.players.length;0==o?ID(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&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 r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}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 kD(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 hs(t){switch(t.length){case 0:return new tu;case 1:return t[0];default:return new RD(t)}}function PD(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),p=d==l,D=p&&c||new Map;u.forEach((H,ne)=>{let fe=ne,he=H;if("offset"!==ne)switch(fe=n.normalizePropertyName(fe,s),he){case"!":he=r.get(ne);break;case jo:he=o.get(ne);break;default:he=n.normalizeStyleValue(ne,fe,he,s)}D.set(fe,he)}),p||a.push(D),c=D,l=d}),s.length)throw function Gj(t){return new Te(3502,!1)}();return a}function kv(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Pv(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Pv(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Pv(e,"destroy",t)))}}function Pv(t,n,e){const i=e.totalTime,o=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&&(o._data=s),o}function Nv(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function pr(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function ND(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let Lv=(t,n)=>!1,LD=(t,n,e)=>[],FD=null;function Fv(t){const n=t.parentNode||t.host;return n===FD?null:n}(Rv()||"undefined"!=typeof Element)&&(tH()?(FD=(()=>document.documentElement)(),Lv=(t,n)=>{for(;n;){if(n===t)return!0;n=Fv(n)}return!1}):Lv=(t,n)=>t.contains(n),LD=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Ks=null,BD=!1;const VD=Lv,UD=LD;let jD=(()=>{class t{validateStyleProperty(e){return function iH(t){Ks||(Ks=function rH(){return"undefined"!=typeof document?document.body:null}()||{},BD=!!Ks.style&&"WebkitAppearance"in Ks.style);let n=!0;return Ks.style&&!function nH(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Ks.style,!n&&BD&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ks.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return VD(e,i)}getParentElement(e){return Fv(e)}query(e,i,r){return UD(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new tu(r,o)}}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",Bh="ng-leave",Vh="ng-trigger",Uh=".ng-trigger",GD="ng-animating",Uv=".ng-animating";function Ho(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:jv(parseFloat(n[1]),n[2])}function jv(t,n){return"s"===n?1e3*t:t}function jh(t,n,e){return t.hasOwnProperty("duration")?t:function aH(t,n,e){let r,o=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(kD()),{duration:0,delay:0,easing:""};r=jv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=jv(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function Cj(){return new Te(3100,!1)}()),a=!0),o<0&&(n.push(function Ej(){return new Te(3101,!1)}()),a=!0),a&&n.splice(l,0,kD())}return{duration:r,delay:o,easing:s}}(t,n,e)}function nu(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function zD(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function fs(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function WD(t,n,e){return e?n+":"+e+";":""}function $D(t){let n="";for(let e=0;e{const o=Gv(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),Rv()&&$D(t))}function Ys(t,n){t.style&&(n.forEach((e,i)=>{const r=Gv(i);t.style[r]=""}),Rv()&&$D(t))}function iu(t){return Array.isArray(t)?1==t.length?t[0]:OD(t):t}const Hv=new RegExp("{{\\s*(.+?)\\s*}}","g");function KD(t){let n=[];if("string"==typeof t){let e;for(;e=Hv.exec(t);)n.push(e[1]);Hv.lastIndex=0}return n}function ru(t,n,e){const i=t.toString(),r=i.replace(Hv,(o,s)=>{let a=n[s];return null==a&&(e.push(function Aj(t){return new Te(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function Hh(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 gr(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 wj(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) *"}}(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 Bj(t){return new Te(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(QD(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&n.push(QD(s,r))}(i,e,n)):e.push(t),e}const Wh=new Set(["true","1"]),$h=new Set(["false","0"]);function QD(t,n){const e=Wh.has(t)||$h.has(t),i=Wh.has(n)||$h.has(n);return(r,o)=>{let s="*"==t||t==r,a="*"==n||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Wh.has(t):$h.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Wh.has(n):$h.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 r=new AH(e);return this._resetContextStyleTimingState(r),gr(this,iu(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function Tj(){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,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function xj(){return new Te(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{KD(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Hh(o.values()),e.errors.push(function Mj(t,n){return new Te(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=gr(this,iu(n.animation),e);return{type:1,matchers:vH(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Qs(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>gr(this,i,e)),options:Qs(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=gr(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Qs(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(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=qv(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=jh(e,n);return qv(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Pt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Pt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===jo?i.push(a):e.errors.push(new Te(3002,!1)):i.push(zD(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=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&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function Ij(t,n,e,i,r){return new Te(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function cH(t,n,e){const i=n.params||{},r=KD(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function Sj(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 Rj(){return new Te(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(he=>{const _e=this._makeStyleAst(he,e);let ge=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!=ge&&(o++,ve=_e.offset=ge),l=l||ve<0||ve>1,a=a||ve0&&o{const ge=p>0?_e==D?1:p*_e:s[_e],ve=ge*fe;e.currentTime=H+ne.delay+ve,ne.duration=ve,this._validateStyleAst(he,e),he.offset=ge,i.styles.push(he)}),i}visitReference(n,e){return{type:8,animation:gr(this,iu(n.animation),e),options:Qs(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Qs(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Qs(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function EH(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(yH,"")),t=t.replace(/@\*/g,Uh).replace(/@\w+/g,e=>Uh+"-"+e.slice(1)).replace(/:animating/g,Uv),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,pr(e.collectedStyles,e.currentQuerySelector,new Map);const a=gr(this,iu(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Qs(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function Lj(){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:gr(this,iu(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 Qs(t){return t?(t=nu(t)).params&&(t.params=function SH(t){return t?nu(t):null}(t.params)):t={},t}function qv(t,n,e){return{duration:t,delay:n,easing:e}}function Wv(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Kh{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 MH=new RegExp(":enter","g"),IH=new RegExp(":leave","g");function $v(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new RH).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class RH{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Kh;const d=new Kv(n,e,c,r,o,u,[]);d.options=l;const p=l.delay?Ho(l.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,l),gr(this,i,d);const D=d.timelines.filter(H=>H.containsAnimation());if(D.length&&a.size){let H;for(let ne=D.length-1;ne>=0;ne--){const fe=D[ne];if(fe.element===e){H=fe;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([a],null,d.errors,l)}return D.length?D.map(H=>H.buildKeyframes()):[Wv(e,[],[],[],0,p,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=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 r;for(const o of n){const s=null==o?void 0:o.delay;if(s){const a="number"==typeof s?s:Ho(ru(s,null!==(r=null==o?void 0:o.params)&&void 0!==r?r:{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Ho(i.duration):null,a=null!=i.delay?Ho(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),gr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Yh);const s=Ho(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>gr(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Ho(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),gr(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return jh(e.params?ru(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),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Ho(r.delay):0;o&&(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,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),gr(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,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;gr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Yh={};class Kv{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,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 r=this.options;null!=i.duration&&(r.duration=Ho(i.duration)),null!=i.delay&&(r.delay=Ho(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=ru(o[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(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new Kv(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}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 r={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},o=new kH(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(MH,"."+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!o&&0==a.length&&s.push(function Fj(t){return new Te(3014,!1)}()),a}}class Qh{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,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||jo),this._currentKeyframe.set(e,jo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){var o;e&&this._previousKeyframe.set("easing",e);const s=r&&r.params||{},a=function PH(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,jo)}else fs(r,e)}),e}(n,this._globalTimelineStyles);for(let[l,c]of a){const u=ru(c,s,i);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(o=this._globalTimelineStyles.get(l))&&void 0!==o?o:jo),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 r=this._styleSummary.get(i);(!r||e.time>r.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 r=[];this._keyframes.forEach((a,l)=>{const c=fs(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===jo&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?Hh(n.values()):[],s=e.size?Hh(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Wv(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class kH extends Qh{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,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:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=fs(n[0]);l.set("offset",0),o.push(l);const c=fs(n[0]);c.set("offset",JD(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let p=fs(n[d]);const D=p.get("offset");p.set("offset",JD((e+D*i)/s)),o.push(p)}i=s,e=0,r="",n=o}return Wv(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function JD(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Yv{}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 Yv{normalizePropertyName(n,e){return Gv(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(NH.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function Dj(t,n){return new Te(3005,!1)}())}return s+o}}function eT(t,n,e,i,r,o,s,a,l,c,u,d,p){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:p}}const Qv={};class tT{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function FH(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(null==n?void 0:n.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){var d;const p=[],D=this.ast.options&&this.ast.options.params||Qv,ne=this.buildStyles(i,a&&a.params||Qv,p),fe=l&&l.params||Qv,he=this.buildStyles(r,fe,p),_e=new Set,ge=new Map,ve=new Map,He="void"===r,ht={params:BH(fe,D),delay:null===(d=this.ast.options)||void 0===d?void 0:d.delay},$t=u?[]:$v(n,e,this.ast.animation,o,s,ne,he,ht,c,p);let Mt=0;if($t.forEach(Rt=>{Mt=Math.max(Rt.duration+Rt.delay,Mt)}),p.length)return eT(e,this._triggerName,i,r,He,ne,he,[],[],ge,ve,Mt,p);$t.forEach(Rt=>{const dn=Rt.element,_i=pr(ge,dn,new Set);Rt.preStyleProps.forEach(Di=>_i.add(Di));const Gn=pr(ve,dn,new Set);Rt.postStyleProps.forEach(Di=>Gn.add(Di)),dn!==e&&_e.add(dn)});const En=Hh(_e.values());return eT(e,this._triggerName,i,r,He,ne,he,$t,En,ge,ve,Mt)}}function BH(t,n){const e=nu(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,r=nu(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=ru(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class jH{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new VH(r.style,r.options&&r.options.params||{},i))}),nT(this.states,"true","1"),nT(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new tT(n,r,this.states))}),this.fallbackTransition=function HH(t,n,e){return new tT(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,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function nT(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 Kh;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=[],o=zv(this._driver,e,i,[]);if(i.length)throw function zj(t){return new Te(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=PD(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=$v(this._driver,e,o,Vv,Bh,new Map,new Map,i,GH,r),s.forEach(u=>{const d=pr(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(r.push(function qj(){return new Te(3300,!1)}()),s=[]),r.length)throw function Wj(t){return new Te(3504,!1)}();a.forEach((u,d)=>{u.forEach((p,D)=>{u.set(D,this._driver.computeStyle(d,D,jo))})});const c=hs(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 $j(t){return new Te(3301,!1)}();return e}listen(n,e,i,r){const o=Nv(e,"","","");return kv(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const iT="ng-animate-queued",Xv="ng-animate-disabled",YH=[],rT={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},QH={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Rr="__ng_removed";class Zv{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 o=nu(n);delete o.value,this.options=o}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(r=>{null==i[r]&&(i[r]=e[r])})}}}const ou="void",Jv=new Zv(ou);class XH{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,kr(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function Kj(t,n){return new Te(3302,!1)}();if(null==i||0==i.length)throw function Yj(t){return new Te(3303,!1)}();if(!function t5(t){return"start"==t||"done"==t}(i))throw function Qj(t,n){return new Te(3400,!1)}();const o=pr(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=pr(this._engine.statesByElement,n,new Map);return a.has(e)||(kr(n,Vh),kr(n,Vh+"-"+e),a.set(e,Jv)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.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 Xj(t){return new Te(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new e_(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(kr(n,Vh),kr(n,Vh+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new Zv(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 r5(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Ys(n,fe),_o(n,he)})}return}const p=pr(this._engine.playersByElement,n,[]);p.forEach(ne=>{ne.namespaceId==this.id&&ne.triggerName==e&&ne.queued&&ne.destroy()});let D=o.matchTransition(l.value,c.value,n,c.params),H=!1;if(!D){if(!r)return;D=o.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:D,fromState:l,toState:c,player:s,isFallbackTransition:H}),H||(kr(n,iT),s.onStart(()=>{gl(n,iT)})),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),p.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(r=>r.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,Uh,!0);i.forEach(r=>{if(r[Rr])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,ou,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&hs(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 r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Jv,u=new Zv(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 r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Rr];(!o||o===rT)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){kr(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Nv(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,kv(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.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 ZH{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=(r,o)=>{}}_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 XH(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,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.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 r.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 r=this._namespaceLookup[n];r&&r.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 r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,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 r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Xh(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Xh(e))return;const o=e[Rr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.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)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),kr(n,Xv)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),gl(n,Xv))}removeNode(n,e,i,r){if(Xh(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Rr]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Xh(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Uh,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Uv,!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 hs(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Rr];if(i&&i.setForRemoval){if(n[Rr]=rT,i.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}!(null===(e=n.classList)||void 0===e)&&e.contains(Xv)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?hs(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function Zj(t){return new Te(3402,!1)}()}_flushAnimations(n,e){const i=new Kh,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Qe=>{u.add(Qe);const Ge=this.driver.query(Qe,".ng-animate-queued",!0);for(let rt=0;rt{const rt=Vv+ne++;H.set(Ge,rt),Qe.forEach(it=>kr(it,rt))});const fe=[],he=new Set,_e=new Set;for(let Qe=0;Qehe.add(it)):_e.add(Ge))}const ge=new Map,ve=aT(p,Array.from(he));ve.forEach((Qe,Ge)=>{const rt=Bh+ne++;ge.set(Ge,rt),Qe.forEach(it=>kr(it,rt))}),n.push(()=>{D.forEach((Qe,Ge)=>{const rt=H.get(Ge);Qe.forEach(it=>gl(it,rt))}),ve.forEach((Qe,Ge)=>{const rt=ge.get(Ge);Qe.forEach(it=>gl(it,rt))}),fe.forEach(Qe=>{this.processLeaveNode(Qe)})});const He=[],ht=[];for(let Qe=this._namespaceList.length-1;Qe>=0;Qe--)this._namespaceList[Qe].drainQueuedTransitions(e).forEach(rt=>{const it=rt.player,jt=rt.element;if(He.push(it),this.collectedEnterElements.length){const Rn=jt[Rr];if(Rn&&Rn.setForMove){if(Rn.previousTriggersValues&&Rn.previousTriggersValues.has(rt.triggerName)){const Qi=Rn.previousTriggersValues.get(rt.triggerName),rr=this.statesByElement.get(rt.element);if(rr&&rr.has(rt.triggerName)){const tc=rr.get(rt.triggerName);tc.value=Qi,rr.set(rt.triggerName,tc)}}return void it.destroy()}}const Sn=!d||!this.driver.containsElement(d,jt),ai=ge.get(jt),Bt=H.get(jt),Ct=this._buildInstruction(rt,i,Bt,ai,Sn);if(Ct.errors&&Ct.errors.length)return void ht.push(Ct);if(Sn)return it.onStart(()=>Ys(jt,Ct.fromStyles)),it.onDestroy(()=>_o(jt,Ct.toStyles)),void r.push(it);if(rt.isFallbackTransition)return it.onStart(()=>Ys(jt,Ct.fromStyles)),it.onDestroy(()=>_o(jt,Ct.toStyles)),void r.push(it);const Ve=[];Ct.timelines.forEach(Rn=>{Rn.stretchStartingKeyframe=!0,this.disabledNodes.has(Rn.element)||Ve.push(Rn)}),Ct.timelines=Ve,i.append(jt,Ct.timelines),s.push({instruction:Ct,player:it,element:jt}),Ct.queriedElements.forEach(Rn=>pr(a,Rn,[]).push(it)),Ct.preStyleProps.forEach((Rn,Qi)=>{if(Rn.size){let rr=l.get(Qi);rr||l.set(Qi,rr=new Set),Rn.forEach((tc,ad)=>rr.add(ad))}}),Ct.postStyleProps.forEach((Rn,Qi)=>{let rr=c.get(Qi);rr||c.set(Qi,rr=new Set),Rn.forEach((tc,ad)=>rr.add(ad))})});if(ht.length){const Qe=[];ht.forEach(Ge=>{Qe.push(function Jj(t,n){return new Te(3505,!1)}())}),He.forEach(Ge=>Ge.destroy()),this.reportError(Qe)}const $t=new Map,Mt=new Map;s.forEach(Qe=>{const Ge=Qe.element;i.has(Ge)&&(Mt.set(Ge,Ge),this._beforeAnimationBuild(Qe.player.namespaceId,Qe.instruction,$t))}),r.forEach(Qe=>{const Ge=Qe.element;this._getPreviousPlayers(Ge,!1,Qe.namespaceId,Qe.triggerName,null).forEach(it=>{pr($t,Ge,[]).push(it),it.destroy()})});const En=fe.filter(Qe=>cT(Qe,l,c)),Rt=new Map;sT(Rt,this.driver,_e,c,jo).forEach(Qe=>{cT(Qe,l,c)&&En.push(Qe)});const _i=new Map;D.forEach((Qe,Ge)=>{sT(_i,this.driver,new Set(Qe),l,"!")}),En.forEach(Qe=>{var Ge,rt;const it=Rt.get(Qe),jt=_i.get(Qe);Rt.set(Qe,new Map([...Array.from(null!==(Ge=null==it?void 0:it.entries())&&void 0!==Ge?Ge:[]),...Array.from(null!==(rt=null==jt?void 0:jt.entries())&&void 0!==rt?rt:[])]))});const Gn=[],Di=[],br={};s.forEach(Qe=>{const{element:Ge,player:rt,instruction:it}=Qe;if(i.has(Ge)){if(u.has(Ge))return rt.onDestroy(()=>_o(Ge,it.toStyles)),rt.disabled=!0,rt.overrideTotalTime(it.totalTime),void r.push(rt);let jt=br;if(Mt.size>1){let ai=Ge;const Bt=[];for(;ai=ai.parentNode;){const Ct=Mt.get(ai);if(Ct){jt=Ct;break}Bt.push(ai)}Bt.forEach(Ct=>Mt.set(Ct,jt))}const Sn=this._buildAnimation(rt.namespaceId,it,$t,o,_i,Rt);if(rt.setRealPlayer(Sn),jt===br)Gn.push(rt);else{const ai=this.playersByElement.get(jt);ai&&ai.length&&(rt.parentPlayer=hs(ai)),r.push(rt)}}else Ys(Ge,it.fromStyles),rt.onDestroy(()=>_o(Ge,it.toStyles)),Di.push(rt),u.has(Ge)&&r.push(rt)}),Di.forEach(Qe=>{const Ge=o.get(Qe.element);if(Ge&&Ge.length){const rt=hs(Ge);Qe.setRealPlayer(rt)}}),r.forEach(Qe=>{Qe.parentPlayer?Qe.syncPlayerEvents(Qe.parentPlayer):Qe.destroy()});for(let Qe=0;Qe!Sn.destroyed);jt.length?n5(this,Ge,jt):this.processLeaveNode(Ge)}return fe.length=0,Gn.forEach(Qe=>{this.players.push(Qe),Qe.onDone(()=>{Qe.destroy();const Ge=this.players.indexOf(Qe);this.players.splice(Ge,1)}),Qe.play()}),Gn}elementContainsData(n,e){let i=!1;const r=e[Rr];return r&&r.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,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==ou;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=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!==o,d=pr(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(D=>{const H=D.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),D.destroy(),d.push(D)})}Ys(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,p=e.timelines.map(H=>{const ne=H.element;u.add(ne);const fe=ne[Rr];if(fe&&fe.removedBeforeQueried)return new tu(H.duration,H.delay);const he=ne!==l,_e=function i5(t){const n=[];return lT(t,n),n}((i.get(ne)||YH).map($t=>$t.getRealPlayer())).filter($t=>!!$t.element&&$t.element===ne),ge=o.get(ne),ve=s.get(ne),He=PD(0,this._normalizer,0,H.keyframes,ge,ve),ht=this._buildPlayer(H,He,_e);if(H.subTimeline&&r&&d.add(ne),he){const $t=new e_(n,a,ne);$t.setRealPlayer(ht),c.push($t)}return ht});c.forEach(H=>{pr(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function JH(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,H.element,H))}),u.forEach(H=>kr(H,GD));const D=hs(p);return D.onDestroy(()=>{u.forEach(H=>gl(H,GD)),_o(l,e.toStyles)}),d.forEach(H=>{pr(r,H,[]).push(D)}),D}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new tu(n.duration,n.delay)}}class e_{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new tu,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(r=>kv(n,i,void 0,r))}),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){pr(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 Xh(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 sT(t,n,e,i,r){const o=[];e.forEach(l=>o.push(oT(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const p=n.computeStyle(c,d,r);u.set(d,p),(!p||0==p.length)&&(c[Rr]=QH,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>oT(l,o[a++])),s}function aT(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function kr(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function gl(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function n5(t,n,e){hs(e).onDone(()=>t.processLeaveNode(n))}function lT(t,n){for(let e=0;er.add(o)):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=(r,o)=>{},this._transitionEngine=new ZH(n,e,i),this._timelineEngine=new zH(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=zv(this._driver,o,l,[]);if(l.length)throw function Hj(t,n){return new Te(3404,!1)}();a=function UH(t,n,e){return new jH(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=ND(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=ND(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}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,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&_o(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_o(this._element,this._initialStyles),this._endStyles&&(_o(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ys(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ys(this._element,this._endStyles),this._endStyles=null),_o(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 uT{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._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,r)=>{"offset"!==r&&n.set(r,this._finished?i:YD(this.element,r))}),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 VD(n,e)}getParentElement(n){return Fv(n)}query(n,e,i){return UD(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(D=>D instanceof uT);(function hH(t,n){return 0===t||0===n})(i,r)&&u.forEach(D=>{D.currentSnapshot.forEach((H,ne)=>c.set(ne,H))});let d=function lH(t){return t.length?t[0]instanceof Map?t:t.map(n=>zD(n)):[]}(e).map(D=>fs(D));d=function fH(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,YD(t,a)))}}return n}(n,d,c);const p=function o5(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 uT(n,d,l,p)}}let c5=(()=>{class t extends xD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Gr.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?OD(e):e;return dT(this._renderer,null,i,"register",[r]),new u5(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(re(Ac),re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();class u5 extends class bj{}{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,r){this.id=n,this.element=e,this._renderer=r,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 dT(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 dT(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const hT="@.disabled";let h5=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=null==s?void 0:s.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new fT("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,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,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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)(re(Ac),re(Zh),re(lt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();class fT{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):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,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}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,r){this.delegate.setAttribute(n,e,i,r)}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,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==hT?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 fT{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hT?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 r=function p5(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function g5(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const pT=[{provide:xD,useClass:c5},{provide:Yv,useFactory:function v5(){return new LH}},{provide:Zh,useClass:(()=>{class t extends Zh{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(re(dt),re(Bv),re(Yv),re(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:[Lh,Zh,lt]}],n_=[{provide:Bv,useFactory:()=>new l5},{provide:gi,useValue:"BrowserAnimations"},...pT],gT=[{provide:Bv,useClass:jD},{provide:gi,useValue:"NoopAnimations"},...pT];let i_,mT=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?gT:n_}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:n_,imports:[SD]}),t})();try{i_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){i_=!1}let ml,ni=(()=>{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)(re(xr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const vT=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function _T(){if(ml)return ml;if("object"!=typeof document||!document)return ml=new Set(vT),ml;let t=document.createElement("input");return ml=new Set(vT.filter(n=>(t.setAttribute("type",n),t.type===n))),ml}let su,ef,Zs,r_;function Xs(t){return function b5(){if(null==su&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>su=!0}))}finally{su=su||!1}return su}()?t:!!t.capture}function bT(){if(null==Zs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zs=!1,Zs;if("scrollBehavior"in document.documentElement.style)Zs=!0;else{const t=Element.prototype.scrollTo;Zs=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Zs}function au(){if("object"!=typeof document||!document)return 0;if(null==ef){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),ef=0,0===t.scrollLeft&&(t.scrollLeft=1,ef=0===t.scrollLeft?1:2),t.remove()}return ef}function yT(t){if(function y5(){if(null==r_){const t="undefined"!=typeof document?document.head:null;r_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return r_}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function o_(){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 vl extends a_{constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class _l extends a_{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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 Oe?n.nativeElement:n}}class tf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof vl?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof _l?(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 E5 extends tf{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,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=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||pn.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let bl=(()=>{class t extends tf{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ee,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}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,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,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(Io),h(an),h(dt))},t.\u0275dir=me({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ie]}),t})(),yl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({}),t})();class ft extends ue{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 Xn(t,nc(t))}function nr(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((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ze(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.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 P5 extends y{constructor(n,e){super()}schedule(n,e=0){return this}}const nf={setInterval(t,n,...e){const{delegate:i}=nf;return null!=i&&i.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=nf;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};class c_ extends P5{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 r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return nf.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&&nf.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 r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,b(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 uu{constructor(n,e=uu.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}uu.now=u_.now;class d_ extends uu{constructor(n,e=uu.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 rf=new d_(c_),N5=rf;function du(t,n=rf){return Be((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+t,u=n.now();if(u{o=c,s=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function Wt(t,n){return Be((e,i)=>{let r=0;e.subscribe(ze(i,o=>t.call(n,o,r++)&&i.next(o)))})}function yn(t){return t<=0?()=>jr:Be((n,e)=>{let i=0;n.subscribe(ze(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function hu(t){return Wt((n,e)=>t<=e)}function fu(t,n=g){return t=null!=t?t:L5,Be((e,i)=>{let r,o=!0;e.subscribe(ze(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function L5(t,n){return t===n}function yt(t){return Be((n,e)=>{Xi(t).subscribe(ze(e,()=>e.complete(),J)),!e.closed&&n.subscribe(e)})}function pt(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 sf(t){return Array.isArray(t)?t:[t]}function ii(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Go(t){return t instanceof Oe?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=Go(e);return new O(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new ue,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,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:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(re(ST))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),AT=(()=>{class t{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ee,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=pt(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(du(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(Oe),h(lt))},t.\u0275dir=me({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=at({type:t}),t.\u0275inj=ot({providers:[ST]}),t})();const{isArray:V5}=Array,{getPrototypeOf:U5,prototype:j5,keys:H5}=Object;function wT(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&&U5(t)===j5}(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 je(n=>function q5(t,n){return z5(n)?t(...n):t(n)}(t,n))}function DT(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function p_(...t){const n=nc(t),e=zy(t),{args:i,keys:r}=wT(t);if(0===i.length)return Xn([],n);const o=new O(function W5(t,n,e=g){return i=>{TT(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Xn(t[l],n);let u=!1;c.subscribe(ze(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>DT(r,s):g));return e?o.pipe(f_(e)):o}function TT(t,n,e){t?Ao(e,t,n):n()}function pu(...t){return function $5(){return Sa(1)}()(Xn(t,nc(t)))}function vi(...t){const n=nc(t);return Be((e,i)=>{(n?pu(t,e,n):pu(t,e)).subscribe(i)})}const xT=new Set;let Dl,K5=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Q5}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Y5(t){if(!xT.has(t))try{Dl||(Dl=document.createElement("style"),Dl.setAttribute("type","text/css"),document.head.appendChild(Dl)),Dl.sheet&&(Dl.sheet.insertRule(`@media ${t} {body{ }}`,0),xT.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(re(ni))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Q5(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let af=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new ue}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return MT(sf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=p_(MT(sf(e)).map(s=>this._registerQuery(s).observable));return o=pu(o.pipe(yn(1)),o.pipe(hu(1),du(0))),o.pipe(je(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),o={observable:new O(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(vi(i),je(({matches:s})=>({query:e,matches:s})),yt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(re(K5),re(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 lf(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const RT="cdk-describedby-message",cf="cdk-describedby-host";let g_=0,kT=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+g_++,this._document=e,this._id=cn(dl)+"-"+g_++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=m_(i,r);"string"!=typeof i?(PT(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){var o;if(!i||!this._isElementNode(e))return;const s=m_(i,r);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===(o=this._messagesContainer)||void 0===o?void 0:o.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${cf}="${this._id}"]`);for(let r=0;r0!=r.indexOf(RT));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function X5(t,n,e){const i=lf(t,n);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(cf,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function Z5(t,n,e){const r=lf(t,n).filter(o=>o!=e.trim());r.length?t.setAttribute(n,r.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(cf)}_isElementDescribedByMessage(e,i){const r=lf(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(re(dt),re(ni))},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=`${RT}-${n}-${g_++}`)}class NT{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ue,this._typeaheadSubscription=y.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new ue,this.change=new ue,n instanceof cs&&n.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}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)),du(n),Wt(()=>this._pressedLetters.length>0),je(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||nr(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),r=e[i];this._activeItem=null==r?null:r,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 r=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_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 cs?this._items.toArray():this._items}}class J5 extends NT{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class v_ extends NT{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 gu=(()=>{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===FT(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=FT(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||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"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function lG(t){return!function iG(t){return function oG(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 rG(t){return function sG(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||LT(t))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(re(ni))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LT(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function FT(t){if(!LT(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class uG{constructor(n,e,i,r,o=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||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=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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 uf=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new uG(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(re(gu),re(lt),re(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]},Tl=Xs({passive:!0,capture:!0});let fG=(()=>{class t{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new ft(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),o),this.modalityDetected=this._modality.pipe(hu(1)),this.modalityChanged=this.modalityDetected.pipe(fu()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Tl),r.addEventListener("mousedown",this._onMousedown,Tl),r.addEventListener("touchstart",this._onTouchstart,Tl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Tl),document.removeEventListener("mousedown",this._onMousedown,Tl),document.removeEventListener("touchstart",this._onTouchstart,Tl))}}return t.\u0275fac=function(e){return new(e||t)(re(ni),re(lt),re(dt),re(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,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),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),r=this._document.createElement("div");for(let o=0;o{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,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 ue,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=o,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const r=Go(e);if(!this._platform.isBrowser||1!==r.nodeType)return nt(null);const o=yT(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new ue,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Go(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Go(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}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 r=this._elementInfo.get(i),o=Js(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,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,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,df),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,df)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,df),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,df),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=cn(af).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,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){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_,VT,UT),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(C_,VT):2===i&&e.add(C_,UT)}}}return t.\u0275fac=function(e){return new(e||t)(re(ni),re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),E_=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(re(jT))},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[h_]}),t})();const _G=["addListener","removeListener"],bG=["addEventListener","removeEventListener"],yG=["on","off"];function xl(t,n,e,i){if(N(e)&&(i=e,e=void 0),i)return xl(t,n,e).pipe(f_(i));const[r,o]=function SG(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(HT(t,n)):function EG(t){return N(t.on)&&N(t.off)}(t)?yG.map(HT(t,n)):[];if(!r&&Mp(t))return ci(s=>xl(s,n,e))(Xi(t));if(!r)throw new TypeError("Invalid event target");return new O(s=>{const a=(...l)=>s.next(1o(a)})}function HT(t,n){return e=>i=>t[e](n,i)}const mu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=mu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new y(()=>null==e?void 0:e(r))},requestAnimationFrame(...t){const{delegate:n}=mu;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=mu;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 r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(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=mu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(mu.cancelAnimationFrame(e),n._scheduled=void 0)}});let S_,TG=1;const hf={};function GT(t){return t in hf&&(delete hf[t],!0)}const xG={setImmediate(t){const n=TG++;return hf[n]=!0,S_||(S_=Promise.resolve()),S_.then(()=>GT(n)&&t()),n},clearImmediate(t){GT(t)}},{setImmediate:MG,clearImmediate:OG}=xG,ff={setImmediate(...t){const{delegate:n}=ff;return((null==n?void 0:n.setImmediate)||MG)(...t)},clearImmediate(t){const{delegate:n}=ff;return((null==n?void 0:n.clearImmediate)||OG)(t)},delegate:void 0},pf=new class RG extends d_{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(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=ff.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(ff.clearImmediate(e),n._scheduled=void 0)}});function zT(t=0,n,e=N5){let i=-1;return null!=n&&(Gy(n)?e=n:i=n),new O(r=>{let o=function PG(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function qT(t,n=rf){return function kG(t){return Be((n,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(null==o||o.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};n.subscribe(ze(e,c=>{i=!0,r=c,o||Xi(t(c)).subscribe(o=ze(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>zT(t,n))}const NG=new Pe("cdk-dir-doc",{providedIn:"root",factory:function LG(){return cn(dt)}}),FG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let mr=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new Ee,e){const r=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)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(re(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=at({type:t}),t.\u0275inj=ot({}),t})(),vu=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new ue,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}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 O(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(qT(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.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 r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Wt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Go(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xl(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)(re(lt),re(ni),re(dt,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_u=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new ue,this._elementScrolled=new O(s=>this.ngZone.runOutsideAngular(()=>xl(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,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=au()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==au()?e.left=e.right:1==au()&&(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;bT()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?r:i:"end"==e&&(e=s?i:r),s&&2==au()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==au()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(vu),h(lt),h(mr,8))},t.\u0275dir=me({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),bu=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new ue,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.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:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(qT(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)(re(ni),re(lt),re(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=at({type:t}),t.\u0275inj=ot({}),t})(),WT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Ml,ea,Ml,ea]}),t})();function $T(t,n=!1){return Be((e,i)=>{let r=0;e.subscribe(ze(i,o=>{const s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}const KT=bT();class jG{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=ii(-this._previousScrollPosition.left),n.style.top=ii(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),KT&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),KT&&(i.scrollBehavior=o,r.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,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,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.bottome.bottom||t.righte.right)}function QT(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class GG{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,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:r}=this._viewportRuler.getViewportSize();A_(e,[{width:i,height:r,bottom:r,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,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new YT,this.close=s=>new HG(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new jG(this._viewportRuler,this._document),this.reposition=s=>new GG(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(re(vu),re(bu),re(lt),re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class yu{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 Cu{constructor(n,e,i,r,o,s,a,l,c,u=!1){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new ue,this._attachments=new ue,this._detachments=new ue,this._locationChanges=y.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new ue,this._outsidePointerEvents=new ue,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.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=ii(this._config.width),n.height=ii(this._config.height),n.minWidth=ii(this._config.minWidth),n.minHeight=ii(this._config.minHeight),n.maxWidth=ii(this._config.maxWidth),n.maxHeight=ii(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 r=sf(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_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 Ol=(()=>{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 r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,r,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)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(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(XT),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 r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){const o=JT(e);let{x:s,y:a}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let p=0-a,D=a+o.height-i.height,H=this._subtractOverflows(o.width,0-s,s+o.width-i.width),ne=this._subtractOverflows(o.height,p,D),fe=H*ne;return{visibleArea:fe,isCompletelyWithinViewport:o.width*o.height===fe,fitsInViewportVertically:ne===o.height,fitsInViewportHorizontally:H==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=ZT(this._overlayRef.getConfig().minHeight),a=ZT(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=o;return(n.fitsInViewportVertically||null!=s&&s<=r)&&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 r=JT(e),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:n.xH&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-H/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)p=i.width-n.x+this._viewportMargin,u=n.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=n.x,u=i.right-n.x;else{const D=Math.min(i.right-n.x+i.left,n.x),H=this._lastBoundingBoxSize.width;u=2*D,d=n.x-D,u>H&&!this._isInitialRender&&!this._growAfterOpen&&(d=n.x-H/2)}return{top:s,left:d,bottom:a,right:p,width:u,height:o}}_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 r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ii(i.height),r.top=ii(i.top),r.bottom=ii(i.bottom),r.width=ii(i.width),r.left=ii(i.left),r.right=ii(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ii(o)),s&&(r.maxWidth=ii(s))}this._lastBoundingBoxSize=i,ta(this._boundingBox.style,r)}_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={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){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&&(r?i.maxHeight=ii(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ii(s.maxWidth):o&&(i.maxWidth="")),ta(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ii(o.y),r}_getExactOverlayX(n,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ii(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.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,r)=>i-Math.max(r,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&&sf(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 Oe)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 JT(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 ex="cdk-global-overlay-wrapper";class KG{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(ex),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:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let D="",H="",ne="";l?ne="flex-start":"center"===u?(ne="center",p?H=d:D=d):p?"left"===u||"end"===u?(ne="flex-end",D=d):("right"===u||"start"===u)&&(ne="flex-start",H=d):"left"===u||"start"===u?(ne="flex-start",D=d):("right"===u||"end"===u)&&(ne="flex-end",H=d),n.position=this._cssPosition,n.marginLeft=l?"0":D,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":H,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(ex),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let YG=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new KG}flexibleConnectedTo(e){return new $G(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(re(bu),re(dt),re(ni),re(Ol))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tx=(()=>{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)(re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QG=(()=>{class t extends tx{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);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)(re(dt),re(lt,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XG=(()=>{class t extends tx{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Js(o)},this._clickListener=o=>{const s=Js(o),a="click"===o.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(o)):d.next(o)}}}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)(re(dt),re(ni),re(lt,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZG=0,ir=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d,p,D){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=p,this._animationsModuleType=D}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new yu(e);return s.direction=s.direction||this._directionality.value,new Cu(o,i,r,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-"+ZG++,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 E5(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(re(zG),re(Ol),re(Io),re(YG),re(QG),re(pn),re(lt),re(dt),re(mr),re(Yc),re(XG),re(gi,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"}],nx=new Pe("cdk-connected-overlay-scroll-strategy");let ix=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(h(Oe))},t.\u0275dir=me({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),rx=(()=>{class t{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=y.EMPTY,this._attachSubscription=y.EMPTY,this._detachSubscription=y.EMPTY,this._positionSubscription=y.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 _l(i,r),this._scrollStrategyFactory=o,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=pt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=pt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=pt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=pt(e)}get push(){return this._push}set push(e){this._push=pt(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&&!nr(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 yu({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(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.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 ix?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($T(()=>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(ir),h(vt),h(an),h(nx),h(mr,8))},t.\u0275dir=me({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:[Wn]}),t})();const t8={provide:nx,deps:[ir],useFactory:function e8(t){return()=>t.scrollStrategies.reposition()}};let Il=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[ir,t8],imports:[Ml,yl,WT,WT]}),t})();function Eu(t){return new O(n=>{Xi(t()).subscribe(n)})}function n8(t,n){}class gf{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 ox=(()=>{class t extends tf{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,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=r}_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 r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,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 r=o_(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(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=o_();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=o_())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(uf),h(dt,8),h(gf),h(gu),h(lt),h(Cu),h(Pr))},t.\u0275cmp=et({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&St(bl,7),2&e){let r;Re(r=ke())&&(i._portalOutlet=r.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:[Ie],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&Z(0,n8,0,0,"ng-template",0)},dependencies:[bl],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 ue,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&&!nr(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 sx=new Pe("DialogScrollStrategy"),i8=new Pe("DialogData"),r8=new Pe("DefaultDialogConfig"),s8={provide:sx,deps:[ir],useFactory:function o8(t){return()=>t.scrollStrategies.block()}};let a8=0,ax=(()=>{class t{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue,this._afterOpenedAtThisLevel=new ue,this._ariaHiddenElements=new Map,this.afterAllClosed=Eu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vi(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 r=this._defaultOptions||new gf;(i=Object.assign(Object.assign({},r),i)).id=i.id||"cdk-dialog-"+a8++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),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 yu({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,r){var o;const s=r.injector||(null===(o=r.viewContainerRef)||void 0===o?void 0:o.injector),a=[{provide:gf,useValue:r},{provide:w_,useValue:i},{provide:Cu,useValue:e}];let l;r.container?"function"==typeof r.container?l=r.container:(l=r.container.type,a.push(...r.container.providers(r))):l=ox;const c=new vl(l,r.viewContainerRef,pn.create({parent:s||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof vt){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=Object.assign(Object.assign({},a),"function"==typeof o.templateContext?o.templateContext():o.templateContext)),r.attachTemplatePortal(new _l(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new vl(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){var s;const a=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),l=[{provide:i8,useValue:e.data},{provide:w_,useValue:i}];return e.providers&&("function"==typeof e.providers?l.push(...e.providers(i,e,r)):l.push(...e.providers)),e.direction&&(!a||!a.get(mr,null,gt.Optional))&&l.push({provide:mr,useValue:{value:e.direction,change:nt()}}),pn.create({parent:a||o,providers:l})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):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 r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return t.\u0275fac=function(e){return new(e||t)(re(ir),re(pn),re(r8,8),re(t,12),re(Ol),re(sx))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();function D_(t,n){let e=t.length;for(;e--;)n(t[e])}let l8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[ax,s8],imports:[Il,yl,E_,yl]}),t})();function c8(t,n){if(1&t&&Ze(0,"mat-pseudo-checkbox",4),2&t){const e=ie();j("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function u8(t,n){if(1&t&&(I(0,"span",5),se(1),B()),2&t){const e=ie();A(1),wn("(",e.group.label,")")}}const d8=["*"],f8=new Pe("mat-sanity-checks",{providedIn:"root",factory:function h8(){return!0}});let Tt=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,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)(re(jT),re(f8,8),re(dt))},t.\u0275mod=at({type:t}),t.\u0275inj=ot({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=pt(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 ps(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=pt(n)}}}function mf(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 ux(t){return class extends t{constructor(...n){super(...n),this.errorState=!1}updateErrorState(){const n=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==n&&(this.errorState=o,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})(),ra=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function dx(t,n,e="mat"){t.changes.pipe(vi(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 vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Tt,Tt]}),t})();class g8{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const hx={enterDuration:225,exitDuration:150},x_=Xs({passive:!0}),fx=["mousedown","touchstart"],px=["mouseup","mouseleave","touchend","touchcancel"];class v8{constructor(n,e,i,r){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Go(i))}fadeInRipple(n,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},hx),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function _8(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}(n,e,r),a=n-r.left,l=e-r.top,c=o.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),D=d.transitionDuration,H="none"===d.transitionProperty||"0s"===D||"0s, 0s"===D,ne=new g8(this,u,i,H);u.style.transform="scale3d(1, 1, 1)",ne.state=0,i.persistent||(this._mostRecentTransientRipple=ne);let fe=null;return!H&&(c||o.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),(H||!c)&&this._finishRippleTransition(ne),ne}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i=Object.assign(Object.assign({},hx),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=Go(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(fx))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(px),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(){!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,x_)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(fx.forEach(n=>{this._triggerElement.removeEventListener(n,this,x_)}),this._pointerUpEventsRegistered&&px.forEach(n=>{this._triggerElement.removeEventListener(n,this,x_)}))}}const b8=new Pe("mat-ripple-global-options");let oa=(()=>{class t{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new v8(this,i,e,r)}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,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(lt),h(ni),h(b8,8),h(gi,8))},t.\u0275dir=me({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&ut("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})(),Au=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Tt,Tt]}),t})(),gx=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(h(gi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&ut("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})(),M_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Tt]}),t})();const mx=new Pe("MAT_OPTION_PARENT_COMPONENT"),vx=new Pe("MatOptgroup");let y8=0;class C8{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let E8=(()=>{class t{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+y8++,this.onSelectionChange=new Ee,this._stateChanges=new ue}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=pt(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 r=this._getHostElement();"function"==typeof r.focus&&r.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)&&!nr(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 C8(this,e))}}return t.\u0275fac=function(e){Bs()},t.\u0275dir=me({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),O_=(()=>{class t extends E8{constructor(e,i,r,o){super(e,i,r,o)}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Vt),h(mx,8),h(vx,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(o){return i._handleKeydown(o)}),2&e&&(as("id",i.id),Ot("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),ut("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Ie],ngContentSelectors:d8,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&&(kn(),Z(0,c8,1,2,"mat-pseudo-checkbox",0),I(1,"span",1),Dt(2),B(),Z(3,u8,2,1,"span",2),Ze(4,"div",3)),2&e&&(j("ngIf",i.multiple),A(3),j("ngIf",i.group&&i.group._inert),A(1),j("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[oa,Qt,gx],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 _x(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let s=0;s{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Au,zi,Tt,M_]}),t})();function A8(t,n){}const Rl={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},w8={dialogContainer:qi("dialogContainer",[mi("void, exit",Pt({opacity:0,transform:"scale(0.7)"})),mi("enter",Pt({transform:"none"})),Un("* => enter",MD([Kn("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Pt({transform:"none",opacity:1})),Ov("@*",Mv(),{optional:!0})]),Rl),Un("* => void, * => exit",MD([Kn("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Pt({opacity:0})),Ov("@*",Mv(),{optional:!0})]),Rl)])};class _f{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=Rl.params.enterAnimationDuration,this.exitAnimationDuration=Rl.params.exitAnimationDuration}}let D8=(()=>{class t extends ox{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,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(Oe),h(uf),h(dt,8),h(_f),h(gu),h(lt),h(Cu),h(Pr))},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],features:[Ie],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),T8=(()=>{class t extends D8{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,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||Rl.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Rl.params.exitAnimationDuration}}}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(uf),h(dt,8),h(_f),h(gu),h(lt),h(Cu),h(Vt),h(Pr))},t.\u0275cmp=et({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&Pc("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(as("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),Fc("@dialogContainer",i._getAnimationState()))},features:[Ie],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&Z(0,A8,0,0,"ng-template",0)},dependencies:[bl],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:[w8.dialogContainer]}}),t})();class kl{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new ue,this._beforeClosed=new ue,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(Wt(r=>"opened"===r.state),yn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Wt(r=>"closed"===r.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(r=>27===r.keyCode&&!this.disableClose&&!nr(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function x8(t,n,e){t._closeInteractionType=n,t.close(e)}(this,"keydown"===r.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 bf=new Pe("MatDialogData"),M8=new Pe("mat-dialog-default-options"),bx=new Pe("mat-dialog-scroll-strategy"),I8={provide:bx,deps:[ir],useFactory:function O8(t){return()=>t.scrollStrategies.block()}};let R8=0,k8=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue,this._afterOpenedAtThisLevel=new ue,this._idPrefix="mat-dialog-",this.afterAllClosed=Eu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vi(void 0))),this._scrollStrategy=a,this._dialog=i.get(ax)}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 r;(i=Object.assign(Object.assign({},this._defaultOptions||new _f),i)).id=i.id||`${this._idPrefix}${R8++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=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:_f,useValue:i},{provide:gf,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(null==i?void 0:i.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}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 k8{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,kl,T8,bf,c)}}return t.\u0275fac=function(e){return new(e||t)(re(ir),re(pn),re(Yc,8),re(M8,8),re(bx),re(t,12),re(Ol),re(gi,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),P8=0,yx=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+P8++}ngOnInit(){this._dialogRef||(this._dialogRef=function N8(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(kl,8),h(Oe),h(R_))},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&as("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),yf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Cf=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&ut("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),t})(),L8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[R_,I8],imports:[l8,Il,yl,Tt,Tt]}),t})();const F8=["mat-button",""],B8=["*"],U8=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],j8=ia(na(ps(class{constructor(t){this._elementRef=t}})));let xn=(()=>{class t extends j8{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of U8)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);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(Oe),h(Pr),h(gi,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&&St(oa,5),2&e){let r;Re(r=ke())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Ot("disabled",i.disabled||null),ut("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Ie],attrs:F8,ngContentSelectors:B8,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&&(kn(),I(0,"span",0),Dt(1),B(),Ze(2,"span",1)(3,"span",2)),2&e&&(A(2),ut("mat-button-ripple-round",i.isRoundButton||i.isIconButton),j("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[oa],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})(),Cx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Au,Tt,Tt]}),t})();function Pl(t,n){const e=N(t)?t:()=>t,i=r=>r.error(e());return new O(n?r=>n.schedule(i,0,r):i)}function Ex(...t){const n=zy(t),{args:e,keys:i}=wT(t),r=new O(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?DT(i,a):a),o.complete())}))}});return n?r.pipe(f_(n)):r}function zo(t){return Be((n,e)=>{let o,i=null,r=!1;i=n.subscribe(ze(e,void 0,void 0,s=>{o=Xi(t(s,zo(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Ef(t){return Be((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function gs(t,n){return N(n)?ci(t,n,1):ci(t,1)}class Sx{}class Ax{}class qo{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 r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}: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 qo?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 qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qo?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 r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.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 H8{encodeKey(n){return wx(n)}encodeValue(n){return wx(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const z8=/%(\d[a-f0-9])/gi,q8={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wx(t){return encodeURIComponent(t).replace(z8,(n,e)=>{var i;return null!==(i=q8[e])&&void 0!==i?i:n})}function Sf(t){return`${t}`}class ms{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new H8,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function G8(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+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],r=Array.isArray(i)?i.map(Sf):[Sf(i)];this.map.set(e,r)})):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 r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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 ms({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 r=i.indexOf(Sf(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class W8{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 Dx(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Tx(t){return"undefined"!=typeof Blob&&t instanceof Blob}function xx(t){return"undefined"!=typeof FormData&&t instanceof FormData}class wu{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function $8(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new qo),this.context||(this.context=new W8),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ap.set(D,n.setHeaders[D]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((p,D)=>p.set(D,n.setParams[D]),u)),new wu(i,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var ri=(()=>((ri=ri||{})[ri.Sent=0]="Sent",ri[ri.UploadProgress=1]="UploadProgress",ri[ri.ResponseHeader=2]="ResponseHeader",ri[ri.DownloadProgress=3]="DownloadProgress",ri[ri.Response=4]="Response",ri[ri.User=5]="User",ri))();class k_{constructor(n,e=200,i="OK"){this.headers=n.headers||new qo,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 P_ extends k_{constructor(n={}){super(n),this.type=ri.ResponseHeader}clone(n={}){return new P_({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 Af extends k_{constructor(n={}){super(n),this.type=ri.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Af({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 Mx extends k_{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,r={}){let o;if(e instanceof wu)o=e;else{let l,c;l=r.headers instanceof qo?r.headers:new qo(r.headers),r.params&&(c=r.params instanceof ms?r.params:new ms({fromObject:r.params})),o=new wu(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=nt(o).pipe(gs(l=>this.handler.handle(l)));if(e instanceof wu||"events"===r.observe)return s;const a=s.pipe(Wt(l=>l instanceof Af));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(je(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(je(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(je(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(je(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.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 ms).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,N_(r,i))}post(e,i,r={}){return this.request("POST",e,N_(r,i))}put(e,i,r={}){return this.request("PUT",e,N_(r,i))}}return t.\u0275fac=function(e){return new(e||t)(re(Sx))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();class Ox{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const Ix=new Pe("HTTP_INTERCEPTORS");let Y8=(()=>{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 Q8=/^\)\]\}',?\n/;let Rx=(()=>{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 O(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((D,H)=>r.setRequestHeader(D,H.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const D=e.detectContentTypeHeader();null!==D&&r.setRequestHeader("Content-Type",D)}if(e.responseType){const D=e.responseType.toLowerCase();r.responseType="json"!==D?D:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const D=r.statusText||"OK",H=new qo(r.getAllResponseHeaders()),ne=function X8(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new P_({headers:H,status:r.status,statusText:D,url:ne}),s},l=()=>{let{headers:D,status:H,statusText:ne,url:fe}=a(),he=null;204!==H&&(he=void 0===r.response?r.responseText:r.response),0===H&&(H=he?200:0);let _e=H>=200&&H<300;if("json"===e.responseType&&"string"==typeof he){const ge=he;he=he.replace(Q8,"");try{he=""!==he?JSON.parse(he):null}catch(ve){he=ge,_e&&(_e=!1,he={error:ve,text:he})}}_e?(i.next(new Af({body:he,headers:D,status:H,statusText:ne,url:fe||void 0})),i.complete()):i.error(new Mx({error:he,headers:D,status:H,statusText:ne,url:fe||void 0}))},c=D=>{const{url:H}=a(),ne=new Mx({error:D,status:r.status||0,statusText:r.statusText||"Unknown Error",url:H||void 0});i.error(ne)};let u=!1;const d=D=>{u||(i.next(a()),u=!0);let H={type:ri.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(H.total=D.total),"text"===e.responseType&&!!r.responseText&&(H.partialText=r.responseText),i.next(H)},p=D=>{let H={type:ri.UploadProgress,loaded:D.loaded};D.lengthComputable&&(H.total=D.total),i.next(H)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",p)),r.send(o),i.next({type:ri.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",p)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(re(rD))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();const F_=new Pe("XSRF_COOKIE_NAME"),B_=new Pe("XSRF_HEADER_NAME");class kx{}let Z8=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,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=Ww(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(re(dt),re(xr),re(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 r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(re(kx),re(B_))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),J8=(()=>{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(Ix,[]);this.chain=i.reduceRight((r,o)=>new Ox(r,o),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(re(Ax),re(pn))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),e6=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:V_,useClass:Y8}]}}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=at({type:t}),t.\u0275inj=ot({providers:[V_,{provide:Ix,useExisting:V_,multi:!0},{provide:kx,useClass:Z8},{provide:F_,useValue:"XSRF-TOKEN"},{provide:B_,useValue:"X-XSRF-TOKEN"}]}),t})(),t6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[L_,{provide:Sx,useClass:J8},Rx,{provide:Ax,useExisting:Rx}],imports:[e6.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})();const n6=["*"];let wf;function Du(t){var n;return(null===(n=function i6(){if(void 0===wf&&(wf=null,"undefined"!=typeof window)){const t=window;void 0!==t.trustedTypes&&(wf=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return wf}())||void 0===n?void 0:n.createHTML(t))||t}function Px(t){return Error(`Unable to find icon with the name "${t}"`)}function Nx(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Lx(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 Df=(()=>{class t{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,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=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new sa(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(Zt.HTML,r);if(!s)throw Lx(r);const a=Du(s);return this._addSvgIconConfig(e,i,new sa("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new sa(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(Zt.HTML,i);if(!o)throw Lx(i);const s=Du(o);return this._addSvgIconSetConfig(e,new sa("",s,r))}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(Zt.RESOURCE_URL,e);if(!i)throw Nx(e);const r=this._cachedIconsByUrl.get(i);return r?nt(Tf(r)):this._loadSvgIconFromConfig(new sa(e,null)).pipe(Yn(o=>this._cachedIconsByUrl.set(i,o)),je(o=>Tf(o)))}getNamedSvgIcon(e,i=""){const r=Fx(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Pl(Px(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?nt(Tf(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(je(i=>Tf(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?nt(r):Ex(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(zo(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Zt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),nt(null)})))).pipe(je(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw Px(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Yn(i=>e.svgText=i),je(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?nt(null):this._fetchIcon(e).pipe(Yn(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Du(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Du("")),r=e.attributes;for(let o=0;oDu(u)),Ef(()=>this._inProgressUrlFetches.delete(a)),Ky());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Fx(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.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 r=0;rn?n.pathname+n.search:""}}}),Bx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],d6=Bx.map(t=>`[${t}]`).join(", "),h6=/^url\(['"]?#(.*?)['"]?\)$/;let oi=(()=>{class t extends a6{constructor(e,i,r,o,s,a){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=y.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=pt(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 r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),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((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(d6),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(h6):null;if(c){let u=r.get(a);u||(u=[],r.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,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(yn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Df),$r("aria-hidden"),h(c6),h(ko),h(l6,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),ut("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:[Ie],ngContentSelectors:n6,decls:1,vars:0,template:function(e,i){1&e&&(kn(),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})(),f6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Tt,Tt]}),t})();function p6(t,n){if(1&t){const e=st();I(0,"div",2)(1,"button",3),we("click",function(){return xe(e),Me(ie().action())}),se(2),B()()}if(2&t){const e=ie();A(2),Ne(e.data.action)}}function g6(t,n){}const Vx=new Pe("MatSnackBarData");class xf{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const m6=Math.pow(2,31)-1;class U_{constructor(n,e){this._overlayRef=e,this._afterDismissed=new ue,this._afterOpened=new ue,this._onAction=new ue,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,m6))}_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 v6=(()=>{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(U_),h(Vx))},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&&(I(0,"span",0),se(1),B(),Z(2,p6,3,1,"div",1)),2&e&&(A(1),Ne(i.data.message),A(1),j("ngIf",i.hasAction))},dependencies:[Qt,xn],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 _6={snackBarState:qi("state",[mi("void, hidden",Pt({transform:"scale(0.8)",opacity:0})),mi("visible",Pt({transform:"scale(1)",opacity:1})),Un("* => visible",Kn("150ms cubic-bezier(0, 0, 0.2, 1)")),Un("* => void, * => hidden",Kn("75ms cubic-bezier(0.4, 0.0, 1, 1)",Pt({opacity:0})))])};let b6=(()=>{class t extends tf{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ue,this._onExit=new ue,this._onEnter=new ue,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:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.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(r=>e.classList.add(r)):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 r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(h(lt),h(Oe),h(Vt),h(ni),h(xf))},t.\u0275dir=me({type:t,viewQuery:function(e,i){if(1&e&&St(bl,7),2&e){let r;Re(r=ke())&&(i._portalOutlet=r.first)}},features:[Ie]}),t})(),y6=(()=>{class t extends b6{_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&&Pc("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&Fc("@state",i._animationState)},features:[Ie],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(I(0,"div",0),Z(1,g6,0,0,"ng-template",1),B(),Ze(2,"div")),2&e&&(A(2),Ot("aria-live",i._live)("role",i._role))},dependencies:[bl],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:[_6.snackBarState]}}),t})(),Ux=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Il,yl,zi,Cx,Tt,Tt]}),t})();const jx=new Pe("mat-snack-bar-default-options",{providedIn:"root",factory:function C6(){return new xf}});let E6=(()=>{class t{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,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="",r){const o=Object.assign(Object.assign({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=pn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:xf,useValue:i}]}),s=new vl(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r=Object.assign(Object.assign(Object.assign({},new xf),this._defaultConfig),i),o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new U_(s,o);if(e instanceof vt){const l=new _l(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new vl(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(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),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 yu;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return pn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:U_,useValue:i},{provide:Vx,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(re(ir),re(y_),re(pn),re(af),re(t,12),re(jx))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),S6=(()=>{class t extends E6{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=v6,this.snackBarContainerComponent=y6,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(re(ir),re(y_),re(pn),re(af),re(t,12),re(jx))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:Ux}),t})(),Hx=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},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(Dr),h(Oe))},t.\u0275dir=me({type:t}),t})(),aa=(()=>{class t extends Hx{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({type:t,features:[Ie]}),t})();const vr=new Pe("NgValueAccessor"),w6={provide:vr,useExisting:Yt(()=>Wo),multi:!0},T6=new Pe("CompositionEventMode");let Wo=(()=>{class t extends Hx{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function D6(){const t=vo()?vo().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(Dr),h(Oe),h(T6,8))},t.\u0275dir=me({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(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[It([w6]),Ie]}),t})();function vs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function zx(t){return null!=t&&"number"==typeof t.length}const Si=new Pe("NgValidators"),_s=new Pe("NgAsyncValidators"),M6=/^(?=.{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 j_{static min(n){return function qx(t){return n=>{if(vs(n.value)||vs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(vs(n.value)||vs(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 $x(t){return vs(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function Kx(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function Yx(t){return vs(t.value)||M6.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function Qx(t){return n=>vs(n.value)||!zx(n.value)?null:n.value.length{if(vs(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return rM(n)}static composeAsync(n){return oM(n)}}function Xx(t){return n=>zx(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function Mf(t){return null}function Jx(t){return null!=t}function eM(t){return kc(t)?Xn(t):t}function tM(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 nM(t,n){return n.map(e=>e(t))}function iM(t){return t.map(n=>function O6(t){return!t.validate}(n)?n:e=>n.validate(e))}function rM(t){if(!t)return null;const n=t.filter(Jx);return 0==n.length?null:function(e){return tM(nM(e,n))}}function H_(t){return null!=t?rM(iM(t)):null}function oM(t){if(!t)return null;const n=t.filter(Jx);return 0==n.length?null:function(e){return Ex(nM(e,n).map(eM)).pipe(je(tM))}}function G_(t){return null!=t?oM(iM(t)):null}function sM(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function aM(t){return t._rawValidators}function lM(t){return t._rawAsyncValidators}function z_(t){return t?Array.isArray(t)?t:[t]:[]}function Of(t,n){return Array.isArray(t)?t.includes(n):t===n}function cM(t,n){const e=z_(n);return z_(t).forEach(r=>{Of(e,r)||e.push(r)}),e}function uM(t,n){return z_(n).filter(e=>!Of(t,e))}class dM{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 bo extends dM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $i extends dM{get formDirective(){return null}get path(){return null}}let la=(()=>{class t extends class hM{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(bo,2))},t.\u0275dir=me({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&ut("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:[Ie]}),t})();const Tu="VALID",Rf="INVALID",Nl="PENDING",xu="DISABLED";function K_(t){return(kf(t)?t.validators:t)||null}function gM(t){return Array.isArray(t)?H_(t):t||null}function Y_(t,n){return(kf(n)?n.asyncValidators:t)||null}function mM(t){return Array.isArray(t)?G_(t):t||null}function kf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class bM{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=gM(this._rawValidators),this._composedAsyncValidatorFn=mM(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===Tu}get invalid(){return this.status===Rf}get pending(){return this.status==Nl}get disabled(){return this.status===xu}get enabled(){return this.status!==xu}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=gM(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=mM(n)}addValidators(n){this.setValidators(cM(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(cM(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(uM(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(uM(n,this._rawAsyncValidators))}hasValidator(n){return Of(this._rawValidators,n)}hasAsyncValidator(n){return Of(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=Nl,!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=xu,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=Tu,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===Tu||this.status===Nl)&&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()?xu:Tu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Nl,this._hasOwnPendingAsyncValidator=!0;const e=eM(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,r)=>i&&i._find(r),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()?xu:this.errors?Rf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nl)?Nl:this._anyControlsHaveStatus(Rf)?Rf:Tu}_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){kf(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 Q_ extends bM{constructor(n,e,i){super(K_(e),Y_(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 _M(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Te(1002,"")})})(this,0,n),Object.keys(n).forEach(i=>{(function vM(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 r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{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,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),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;X_(t,n),n.valueAccessor.writeValue(t.value),t.disabled&&(null===(i=(e=n.valueAccessor).setDisabledState)||void 0===i||i.call(e,!0)),function V6(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&yM(t,n)})}(t,n),function j6(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function U6(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&yM(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function B6(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Nf(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Ff(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Lf(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function X_(t,n){const e=aM(t);null!==n.validator?t.setValidators(sM(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=lM(t);null!==n.asyncValidator?t.setAsyncValidators(sM(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Lf(n._rawValidators,r),Lf(n._rawAsyncValidators,r)}function Ff(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=aM(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=lM(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return Lf(n._rawValidators,i),Lf(n._rawAsyncValidators,i),e}function yM(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function CM(t,n){X_(t,n)}function SM(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const W6={provide:$i,useExisting:Yt(()=>Ll)},Ou=(()=>Promise.resolve())();let Ll=(()=>{class t extends $i{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ee,this.form=new Q_({},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){Ou.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){Ou.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ou.then(()=>{const i=this._findContainer(e.path),r=new Q_({});CM(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ou.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Ou.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){var i;return this.submitted=!0,SM(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(Si,10),h(_s,10))},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&we("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[It([W6]),Ie]}),t})();function AM(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function wM(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const eb=class extends bM{constructor(n=null,e,i){super(K_(e),Y_(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}),kf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=wM(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){AM(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){AM(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){wM(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}},Q6={provide:bo,useExisting:Yt(()=>bs)},xM=(()=>Promise.resolve())();let bs=(()=>{class t extends bo{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new eb,this._registered=!1,this.update=new Ee,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function J_(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Wo?e=o:function z6(t){return Object.getPrototypeOf(t.constructor)===aa}(o)?i=o:r=o}),r||i||e||null}(0,o)}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 Z_(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){xM.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,r=0!==i&&function Bo(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(i);xM.then(()=>{var o;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.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(Si,10),h(_s,10),h(vr,10),h(Vt,8))},t.\u0275dir=me({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([Q6]),Ie,Wn]}),t})(),OM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({}),t})();const tb=new Pe("NgModelWithFormControlWarning"),iz={provide:$i,useExisting:Yt(()=>Iu)};let Iu=(()=>{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&&(Ff(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){Nf(e.control||null,e,!1),function q6(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,SM(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,r=this.form.get(e.path);i!==r&&(Nf(i||null,e),(t=>t instanceof eb)(r)&&(Mu(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);CM(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function H6(t,n){return Ff(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){X_(this.form,this),this._oldForm&&Ff(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(h(Si,10),h(_s,10))},t.\u0275dir=me({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&we("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[It([iz]),Ie,Wn]}),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=me({type:t,features:[Wn]}),t})();const bz={provide:Si,useExisting:Yt(()=>Fl),multi:!0};let Fl=(()=>{class t extends ca{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function BM(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>Xx(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({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([bz]),Ie]}),t})(),qM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[OM]}),t})(),Cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[qM]}),t})(),Ez=(()=>{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=at({type:t}),t.\u0275inj=ot({imports:[qM]}),t})(),Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Tt,Tt]}),t})();const xz=["*",[["mat-toolbar-row"]]],Mz=["*","mat-toolbar-row"],Oz=ia(class{constructor(t){this._elementRef=t}});let Iz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Vf=(()=>{class t extends Oz{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(ni),h(dt))},t.\u0275cmp=et({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&Je(r,Iz,5),2&e){let o;Re(o=ke())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&ut("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Ie],ngContentSelectors:Mz,decls:2,vars:0,template:function(e,i){1&e&&(kn(xz),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})(),Rz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Tt,Tt]}),t})();const kz=["connectionContainer"],Pz=["inputContainer"],Nz=["label"];function Lz(t,n){1&t&&(Ci(0),I(1,"div",14),Ze(2,"div",15)(3,"div",16)(4,"div",17),B(),I(5,"div",18),Ze(6,"div",15)(7,"div",16)(8,"div",17),B(),Ei())}function Fz(t,n){if(1&t){const e=st();I(0,"div",19),we("cdkObserveContent",function(){return xe(e),Me(ie().updateOutlineGap())}),Dt(1,1),B()}2&t&&j("cdkObserveContentDisabled","outline"!=ie().appearance)}function Bz(t,n){if(1&t&&(Ci(0),Dt(1,2),I(2,"span"),se(3),B(),Ei()),2&t){const e=ie(2);A(3),Ne(e._control.placeholder)}}function Vz(t,n){1&t&&Dt(0,3,["*ngSwitchCase","true"])}function Uz(t,n){1&t&&(I(0,"span",23),se(1," *"),B())}function jz(t,n){if(1&t){const e=st();I(0,"label",20,21),we("cdkObserveContent",function(){return xe(e),Me(ie().updateOutlineGap())}),Z(2,Bz,4,1,"ng-container",12),Z(3,Vz,1,0,"ng-content",12),Z(4,Uz,2,0,"span",22),B()}if(2&t){const e=ie();ut("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),j("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Ot("for",e._control.id)("aria-owns",e._control.id),A(2),j("ngSwitchCase",!1),A(1),j("ngSwitchCase",!0),A(1),j("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Hz(t,n){1&t&&(I(0,"div",24),Dt(1,4),B())}function Gz(t,n){if(1&t&&(I(0,"div",25),Ze(1,"span",26),B()),2&t){const e=ie();A(1),ut("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function zz(t,n){1&t&&(I(0,"div"),Dt(1,5),B()),2&t&&j("@transitionMessages",ie()._subscriptAnimationState)}function qz(t,n){if(1&t&&(I(0,"div",30),se(1),B()),2&t){const e=ie(2);j("id",e._hintLabelId),A(1),Ne(e.hintLabel)}}function Wz(t,n){if(1&t&&(I(0,"div",27),Z(1,qz,2,2,"div",28),Dt(2,6),Ze(3,"div",29),Dt(4,7),B()),2&t){const e=ie();j("@transitionMessages",e._subscriptAnimationState),A(1),j("ngIf",e.hintLabel)}}const $z=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Kz=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],KM=new Pe("MatError"),Xz={transitionMessages:qi("transitionMessages",[mi("enter",Pt({opacity:1,transform:"translateY(0%)"})),Un("void => enter",[Pt({opacity:0,transform:"translateY(-5px)"}),Kn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Uf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t}),t})();const Zz=new Pe("MatHint");let Bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-label"]]}),t})(),Jz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-placeholder"]]}),t})();const eq=new Pe("MatPrefix"),YM=new Pe("MatSuffix");let QM=0;const iq=ia(class{constructor(t){this._elementRef=t}},"primary"),rq=new Pe("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ab=new Pe("MatFormField");let jf=(()=>{class t extends iq{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ue,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+QM++,this._labelId="mat-form-field-label-"+QM++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=(null==o?void 0:o.appearance)||"legacy",o&&(this._hideRequiredMarker=Boolean(o.hideRequiredMarker),o.color&&(this.color=this.defaultColor=o.color))}get appearance(){return this._appearance}set appearance(e){var i;const r=this._appearance;this._appearance=e||(null===(i=this._defaults)||void 0===i?void 0:i.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=pt(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(vi(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(vi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(vi(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,xl(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(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.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,r=".mat-form-field-outline-start",o=".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(`${r}, ${o}`);for(let d=0;d0?.75*H+10:0}for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[zi,Tt,h_,Tt]}),t})();function ZM(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",Gf=["row","column","row-reverse","column-reverse"];function JM(t){let[n,e,i]=eO(t);return function sq(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 eO(t){var n;t=null!==(n=null==t?void 0:t.toLowerCase())&&void 0!==n?n:"";let[e,i,r]=t.split(" ");return Gf.find(o=>o===e)||(e=Gf[0]),i===lb&&(i=r!==lb?r:"",r=lb),[e,oq(i),!!r]}function Ru(t){let[n]=eO(t);return n.indexOf("row")>-1}function oq(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 $o(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 ki(t,n){return Be((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(ze(i,l=>{null==r||r.unsubscribe();let c=0;const u=o++;Xi(t(l,u)).subscribe(r=ze(i,d=>i.next(n?n(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}const lq={provide:qm,useFactory:function aq(t,n){return()=>{if($s(n)){const e=Array.from(t.querySelectorAll(`[class*=${tO}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${tO}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[dt,xr],multi:!0},tO="flex-layout-";let cb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[lq]}),t})();class ys{constructor(n=!1,e="all",i="",r="",o=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new ys(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let cq=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){const o=this.stylesheet.get(e);o?o.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const r=this.stylesheet.get(e);let o="";if(r){const s=r.get(i);("number"==typeof s||"string"==typeof s)&&(o=s+"")}return o}}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},to=new Pe("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ub}),Vl=new Pe("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),zf=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 ys,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,r,o){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=o}applyStyleToElement(e,i,r=null){let o={};"string"==typeof i&&(o[i]=r,i=o),o=this.layoutConfig.disableVendorPrefixes?i:ZM(i),this._applyMultiValueStyleToElement(o,e)}applyStyleToElements(e,i=[]){const r=this.layoutConfig.disableVendorPrefixes?e:ZM(e);i.forEach(o=>{this._applyMultiValueStyleToElement(r,o)})}getFlowDirection(e){const i="flex-direction";let r=this.lookupStyle(e,i);return[r||"row",this.lookupInlineStyle(e,i)||pl(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var r;return null!==(r=e.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(e,i){return $s(this._platformId)?e.style.getPropertyValue(i):function uq(t,n){var e;return null!==(e=nO(t)[n])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,r=!1){let o="";return e&&((o=this.lookupInlineStyle(e,i))||($s(this._platformId)?r||(o=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(e,i)))),o?o.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{const o=e[r],s=Array.isArray(o)?o:[o];s.sort();for(let a of s)a=a?a+"":"",$s(this._platformId)||!this._serverModuleLoaded?$s(this._platformId)?i.style.setProperty(r,a):dq(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return t.\u0275fac=function(e){return new(e||t)(re(cq),re(Vl),re(xr),re(to))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function dq(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=nO(t);i[n]=null!=e?e:"",function hq(t,n){let e="";for(const i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}(t,i)}function nO(t){const n={},e=t.getAttribute("style");if(e){const i=e.split(/;+/g);for(let r=0;r0){const s=o.indexOf(":");if(-1===s)throw new Error(`Invalid CSS style: ${o}`);n[o.substr(0,s).trim()]=o.substr(s+1).trim()}}}return n}function Ul(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function fq(t,n){return(t.priority||0)-(n.priority||0)}let qf=(()=>{class t{constructor(e,i,r){this._zone=e,this._platformId=i,this._document=r,this.source=new ft(new ys(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){var i;const r=this.registry.get(e);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(e).some(o=>o.matches)}observe(e,i=!1){if(e&&e.length){const r=this._observable$.pipe(Wt(s=>!i||e.indexOf(s.mediaQuery)>-1));return Ni(new O(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()}),r)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],r=[];return function pq(t,n){const e=t.filter(i=>!iO[i]);if(e.length>0){const i=e.join(", ");try{const r=n.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.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(r),e.forEach(o=>iO[o]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(o=>{const s=l=>{this._zone.run(()=>this.source.next(new ys(l.matches,o)))};let a=this.registry.get(o);a||(a=this.buildMQL(o),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(o,a)),a.matches&&r.push(new ys(!0,o))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function mq(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):function gq(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)(re(lt),re(xr),re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const iO={},vq=[{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}],rO="(orientation: portrait) and (max-width: 599.98px)",oO="(orientation: landscape) and (max-width: 959.98px)",sO="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",aO="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",lO="(orientation: portrait) and (min-width: 840px)",cO="(orientation: landscape) and (min-width: 1280px)",Ko={HANDSET:`${rO}, ${oO}`,TABLET:`${sO} , ${aO}`,WEB:`${lO}, ${cO} `,HANDSET_PORTRAIT:`${rO}`,TABLET_PORTRAIT:`${sO} `,WEB_PORTRAIT:`${lO}`,HANDSET_LANDSCAPE:`${oO}`,TABLET_LANDSCAPE:`${aO}`,WEB_LANDSCAPE:`${cO}`},_q=[{alias:"handset",priority:2e3,mediaQuery:Ko.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ko.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ko.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ko.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ko.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ko.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ko.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ko.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ko.WEB_PORTRAIT,overlapping:!0}],bq=/(\.|-|_)/g;function yq(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}const Aq=new Pe("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=cn(zf),n=cn(to),e=[].concat.apply([],(t||[]).map(r=>Array.isArray(r)?r:[r]));return function Sq(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?$o(e[i.alias],i):e[i.alias]=i}),function Eq(t){return t.forEach(n=>{n.suffix||(n.suffix=function Cq(t){return t.replace(bq,"|").split("|").map(yq).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}((n.disableDefaultBps?[]:vq).concat(n.addOrientationBps?_q:[]),e)}});let Wf=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(fq)}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 r;let o=this.findByMap.get(e);return o||(o=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(e,o)),null!=o?o:null}}return t.\u0275fac=function(e){return new(e||t)(re(Aq))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const jl="print",wq={alias:jl,mediaQuery:jl,priority:1e3};let uO=(()=>{class t{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Dq,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(Ul)}updateEvent(e){var i;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),db(e,r)}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 ys(!0,jl))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}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 r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const o=this.formerActivations&&this.formerActivations.includes(r),s=!this.formerActivations&&e.activatedBreakpoints.includes(r);(o||s)&&(this.deactivations.push(r),this.deactivations.sort(Ul))}}}}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)(re(Wf),re(to),re(dt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Dq{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(wq),n.sort(Ul),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function Tq(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 Mn=(()=>{class t{constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,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 ue,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 r=this.activatedBreakpoints.indexOf(i);e.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Ul),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Ul),this.updateStyles())}}init(e,i,r,o,s=[]){dO(this.updateMap,e,i,r),dO(this.clearMap,e,i,o),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,r){const o=this.elementMap.get(e);if(o){const s=void 0!==r?o.get(r):this.getActivatedValues(o,i);if(s)return s.get(i)}}hasValue(e,i){const r=this.elementMap.get(e);if(r){const o=this.getActivatedValues(r,i);if(o)return void 0!==o.get(i)||!1}return!1}setValue(e,i,r,o){var s;let a=this.elementMap.get(e);if(a){const c=(null!==(s=a.get(o))&&void 0!==s?s:new Map).set(i,r);a.set(o,c),this.elementMap.set(e,a)}else a=(new Map).set(o,(new Map).set(i,r)),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(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const r=new Set(this.elementKeyMap.get(i));let o=this.getActivatedValues(e);o&&o.forEach((s,a)=>{this.updateElement(i,a,s),r.delete(a)}),r.forEach(s=>{if(o=this.getActivatedValues(e,s),o){const a=o.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){const r=this.clearMap.get(e);if(r){const o=r.get(i);o&&(o(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){const o=this.updateMap.get(e);if(o){const s=o.get(i);s&&(s(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((o,s)=>r.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){const r=this.elementMap.get(e);if(r){const o=this.getActivatedValues(r,i);o&&(i?this.updateElement(e,i,o.get(i)):o.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(i)){const a=Ni(...r).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});o.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let o=0;oi.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)(re(qf),re(Wf),re(uO))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function dO(t,n,e,i){var r;if(void 0!==i){const o=null!==(r=t.get(n))&&void 0!==r?r:new Map;o.set(e,i),t.set(n,o)}}let Nn=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ue,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 r=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,r)}})}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 r=this.styleBuilder,o=r.shouldCache;let s=this.styleCache.get(e);(!s||!o)&&(s=r.buildStyles(e,i),o&&this.styleCache.set(e,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),r.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[r,o]=this.styler.getFlowDirection(e);if(!o&&i){const s=JM(r);this.styler.applyStyleToElements(s,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,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(Oe),h(jn),h(Dn),h(Mn))},t.\u0275dir=me({type:t,features:[Wn]}),t})();EventTarget;let Iq=(()=>{class t{constructor(e,i,r){this.breakpoints=e,this.matchMedia=i,this.hook=r,this.filterOverlaps=!1,this.destroyed$=new ue,this._media$=this.watchActivations()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(e){return function kq(t){return t.flatMap(n=>n.split(",")).map(n=>n.trim())}(function Oq(t){return Array.isArray(t)?t:[t]}(e)).some(r=>{const o=function Rq(t,n){var e,i;const r=null!==(e=n.findByAlias(t))&&void 0!==e?e:n.findByQuery(t);return null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:null}(r,this.breakpoints);return null!==o&&this.matchMedia.isActive(o)})}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),du(0,pf),ki(s=>nt(this.findAllActivations())),je(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),fu((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(r=>new ys(!0,r)).map(r=>this.hook.isPrintEvent(r)?this.hook.updateEvent(r):r).map(r=>db(r,this.breakpoints.findByQuery(r.mediaQuery))).sort(Ul)}}return t.\u0275fac=function(e){return new(e||t)(re(Wf),re(qf),re(uO))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function hO(t,n="1",e="1"){let i=[n,e,t],r=t.indexOf("calc");if(r>0){i[2]=fO(t.substring(r).trim());let o=t.substr(0,r).trim().split(" ");2==o.length&&(i[0]=o[0],i[1]=o[1])}else if(0==r)i[2]=fO(t.trim());else{let o=t.split(" ");i=3===o.length?o:[n,e,t]}return i}function fO(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function $f(t,n){if(void 0===n)return t;const e=i=>{const r=+i.slice(0,-"x".length);return t.endsWith("x")&&!isNaN(r)?`${r*n.value}${n.unit}`:t};return t.includes(" ")?t.split(" ").map(e).join(" "):e(t)}let Pq=(()=>{class t extends jn{buildStyles(e,{display:i}){const r=JM(e);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.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 Nq=["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 gO=(()=>{class t extends Nn{constructor(e,i,r,o,s){super(e,r,i,o),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const o=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=mO.get(o))&&void 0!==i?i:new Map,mO.set(o,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:o}),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Dn),h(Pq),h(Mn),h(to))},t.\u0275dir=me({type:t,features:[Ie]}),t})(),Cs=(()=>{class t extends gO{constructor(){super(...arguments),this.inputs=Nq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({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:[Ie]}),t})();const mO=new Map,vO={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let Lq=(()=>{class t extends jn{constructor(e,i){super(),this._styler=e,this._config=i}buildStyles(e,i){return e.endsWith(Yf)?function zq(t,n){const[e,i]=t.split(" "),o=c=>`-${c}`;let s="0px",a=o(null!=i?i:e),l="0px";return"rtl"===n?l=o(e):s=o(e),{margin:`0px ${s} ${a} ${l}`}}(e=$f(e=e.slice(0,e.indexOf(Yf)),this._config.multiplier),i.directionality):{}}sideEffect(e,i,r){const o=r.items;if(e.endsWith(Yf)){const s=function Gq(t,n){const[e,i]=t.split(" ");let o="0px",a="0px";return"rtl"===n?a=e:o=e,{padding:`0px ${o} ${null!=i?i:e} ${a}`}}(e=$f(e=e.slice(0,e.indexOf(Yf)),this._config.multiplier),r.directionality);this._styler.applyStyleToElements(s,r.items)}else{e=$f(e,this._config.multiplier),e=this.addFallbackUnit(e);const s=o.pop(),a=function qq(t,n){const e=_O(n.directionality,n.layout),i=Object.assign({},vO);return i[e]=t,i}(e,r);this._styler.applyStyleToElements(a,o),this._styler.applyStyleToElements(vO,[s])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}}return t.\u0275fac=function(e){return new(e||t)(re(Dn),re(to))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Fq=["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 Bq=(()=>{class t extends Nn{constructor(e,i,r,o,s,a){super(e,s,o,a),this.zone=i,this.directionality=r,this.styleUtils=o,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new ue;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 r=e.length;r--;)i[r]=e[r];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){const r=e.value.split(" ");this.layout=r[0],Gf.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(e){const i=this.childrenNodes.filter(r=>1===r.nodeType&&this.willDisplay(r)).sort((r,o)=>{const s=+this.styler.lookupStyle(r,"order"),a=+this.styler.lookupStyle(o,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){const r=this.directionality.value,o=this.layout;"row"===o&&"rtl"===r?this.styleCache=Vq:"row"===o&&"rtl"!==r?this.styleCache=jq:"column"===o&&"rtl"===r?this.styleCache=Uq:"column"===o&&"rtl"!==r&&(this.styleCache=Hq),this.addStyles(e,{directionality:r,items:i,layout:o})}}clearStyles(){const e=Object.keys(this.mru).length>0,i=e?"padding":_O(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(r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(lt),h(mr),h(Dn),h(Lq),h(Mn))},t.\u0275dir=me({type:t,features:[Ie]}),t})(),Kf=(()=>{class t extends Bq{constructor(){super(...arguments),this.inputs=Fq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({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:[Ie]}),t})();const Vq=new Map,Uq=new Map,jq=new Map,Hq=new Map,Yf=" grid";function _O(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 Wq=(()=>{class t extends jn{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,o,...s]=e.split(" "),a=s.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=Ru(l)?"max-width":"max-height",u=Ru(l)?"min-width":"min-height",d=String(a).indexOf("calc")>-1,p=d||"auto"===a,D=String(a).indexOf("%")>-1&&!d,H=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||H;r="0"==r?0:r,o="0"==o?0:o;const fe=!r&&!o;let he={};const _e={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const ge=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":ge?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":r=0,o=0,a="auto";break;default:!ne&&!D&&!isNaN(a)&&(a+="%"),"0%"===a&&(ne=!0),"0px"===a&&(a="0%"),he=$o(_e,d?{"flex-grow":r,"flex-shrink":o,"flex-basis":ne?a:"100%"}:{flex:`${r} ${o} ${ne?a:"100%"}`})}return he.flex||he["flex-grow"]||(he=$o(_e,d?{"flex-grow":r,"flex-shrink":o,"flex-basis":a}:{flex:`${r} ${o} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(he[u]=fe||ne&&r?a:null,he[c]=fe||!p&&o?a:null),he[u]||he[c]?i.hasWrap&&(he[d?"flex-basis":"flex"]=he[c]?d?he[c]:`${r} ${o} ${he[c]}`:d?he[u]:`${r} ${o} ${he[u]}`):he=$o(_e,d?{"flex-grow":r,"flex-shrink":o,"flex-basis":a}:{flex:`${r} ${o} ${a}`}),$o(he,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(re(to))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $q=["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 Kq=(()=>{class t extends Nn{constructor(e,i,r,o,s){super(e,o,i,s),this.layoutConfig=r,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 r=e.value.split(" ");this.direction=r[0],this.wrap=void 0!==r[1]&&"wrap"===r[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 r=this.direction,o=r.startsWith("row"),s=this.wrap;o&&s?this.styleCache=Xq:o&&!s?this.styleCache=Yq:!o&&s?this.styleCache=Zq:!o&&!s&&(this.styleCache=Qq);const l=hO(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:s})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=hO(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(Oe),h(Dn),h(to),h(Wq),h(Mn))},t.\u0275dir=me({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Ie]}),t})(),Es=(()=>{class t extends Kq{constructor(){super(...arguments),this.inputs=$q}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({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:[Ie]}),t})();const Yq=new Map,Qq=new Map,Xq=new Map,Zq=new Map;let Jq=(()=>{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 e9=["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 t9=(()=>{class t extends Nn{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="flex-order",this.styleCache=n9,this.init()}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Dn),h(Jq),h(Mn))},t.\u0275dir=me({type:t,features:[Ie]}),t})();const n9=new Map;let Qf=(()=>{class t extends t9{constructor(){super(...arguments),this.inputs=e9}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({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:[Ie]}),t})();const m9={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let v9=(()=>{class t extends jn{buildStyles(e){return m9}}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})(),bO=(()=>{class t extends Nn{constructor(e,i,r,o){super(e,r,i,o),this.styleCache=_9,this.addStyles("")}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Dn),h(v9),h(Mn))},t.\u0275dir=me({type:t,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Ie]}),t})();const _9=new Map;let b9=(()=>{class t extends jn{buildStyles(e,i){const r={},[o,s]=e.split(" ");switch(o){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;default:r["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;default:r["align-items"]=r["align-content"]="stretch"}return $o(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===s?Ru(i.layout)?null:"100%":null,"max-height":"stretch"===s&&Ru(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 y9=["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 C9=(()=>{class t extends Nn{constructor(e,i,r,o){super(e,r,i,o),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",r=this.inline;"row"===i&&r?this.styleCache=D9:"row"!==i||r?"row-reverse"===i&&r?this.styleCache=x9:"row-reverse"!==i||r?"column"===i&&r?this.styleCache=T9:"column"!==i||r?"column-reverse"===i&&r?this.styleCache=M9:"column-reverse"===i&&!r&&(this.styleCache=w9):this.styleCache=S9:this.styleCache=A9:this.styleCache=E9,this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),Gf.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Dn),h(b9),h(Mn))},t.\u0275dir=me({type:t,features:[Ie]}),t})(),Ss=(()=>{class t extends C9{constructor(){super(...arguments),this.inputs=y9}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({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:[Ie]}),t})();const E9=new Map,S9=new Map,A9=new Map,w9=new Map,D9=new Map,T9=new Map,x9=new Map,M9=new Map;let yO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[cb,Ml]}),t})(),N9=(()=>{class t extends Nn{constructor(e,i,r,o,s,a,l){super(e,null,i,r),this.ngClassInstance=l,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Ii(o,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(Oe),h(Dn),h(Mn),h(Kc),h(qs),h(Dr),h(Ii,10))},t.\u0275dir=me({type:t,inputs:{klass:["class","klass"]},features:[Ie]}),t})();const L9=["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 no=(()=>{class t extends N9{constructor(){super(...arguments),this.inputs=L9}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({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:[Ie]}),t})();class j9{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 CO(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 j9(n,e.join(":"))}function AO(t,n){return n.key&&(t[n.key]=n.value),t}let z9=(()=>{class t extends Nn{constructor(e,i,r,o,s,a,l,c,u){var d;super(e,null,i,r),this.sanitizer=o,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new fl(e,s,a)),this.init();const p=null!==(d=this.nativeElement.getAttribute("style"))&&void 0!==d?d:"";this.fallbackStyles=this.buildStyleMap(p),this.isServer=c&&pl(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=r=>{var o;return null!==(o=this.sanitizer.sanitize(Zt.STYLE,r))&&void 0!==o?o:""};if(e)switch(CO(e)){case"string":return wO(function H9(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return wO(e,i);default:return function EO(t,n){let e=[];return"set"===CO(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function G9(t,n){return t.map(SO).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(AO,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Dn),h(Mn),h(Fh),h(qs),h(Dr),h(fl,10),h(Vl),h(xr))},t.\u0275dir=me({type:t,features:[Ie]}),t})();const q9=["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 z9{constructor(){super(...arguments),this.inputs=q9}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({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:[Ie]}),t})();function wO(t,n){return t.map(SO).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(AO,{})}let DO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[cb]}),t})();function Xf(t){return je(()=>t)}function TO(t,n){return n?e=>pu(n.pipe(yn(1),function W9(){return Be((t,n)=>{t.subscribe(ze(n,J))})}()),e.pipe(TO(t))):ci((e,i)=>t(e,i).pipe(yn(1),Xf(e)))}function xO(t,n=rf){const e=zT(t,n);return TO(()=>e)}const $9=["mat-menu-item",""];function K9(t,n){1&t&&(cc(),I(0,"svg",2),Ze(1,"polygon",3),B())}const MO=["*"];function Y9(t,n){if(1&t){const e=st();I(0,"div",0),we("keydown",function(r){return xe(e),Me(ie()._handleKeydown(r))})("click",function(){return xe(e),Me(ie().closed.emit("click"))})("@transformMenu.start",function(r){return xe(e),Me(ie()._onAnimationStart(r))})("@transformMenu.done",function(r){return xe(e),Me(ie()._onAnimationDone(r))}),I(1,"div",1),Dt(2),B()()}if(2&t){const e=ie();j("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",[mi("void",Pt({opacity:0,transform:"scale(0.8)"})),Un("void => enter",Kn("120ms cubic-bezier(0, 0, 0.2, 1)",Pt({opacity:1,transform:"scale(1)"}))),Un("* => void",Kn("100ms 25ms linear",Pt({opacity:0})))]),fadeInItems:qi("fadeInItems",[mi("showing",Pt({opacity:1})),Un("void => *",[Pt({opacity:0}),Kn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Q9=new Pe("MatMenuContent"),pb=new Pe("MAT_MENU_PANEL"),X9=ps(na(class{}));let As=(()=>{class t extends X9{constructor(e,i,r,o,s){var a;super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new ue,this._focused=new ue,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==o?void 0:o.addItem)||void 0===a||a.call(o,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),r=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new cs,this._tabSubscription=y.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new ue,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-"+J9++}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=pt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=pt(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!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(vi(this._directDescendantItems),ki(e=>Ni(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const r=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=r.activeItem)||void 0===i?void 0:i._hasFocus())){const o=e.toArray(),s=Math.max(0,Math.min(o.length-1,r.activeItemIndex||0));o[s]&&!o[s].disabled?r.setActiveItem(s):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(vi(this._directDescendantItems),ki(i=>Ni(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:nr(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)&&r.setFocusOrigin("keyboard"),void r.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 r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){var r;const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===i,o["mat-menu-below"]="below"===i,null===(r=this._changeDetectorRef)||void 0===r||r.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(vi(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(Oe),h(lt),h(OO),h(Vt))},t.\u0275dir=me({type:t,contentQueries:function(e,i,r){if(1&e&&(Je(r,Q9,5),Je(r,As,5),Je(r,As,4)),2&e){let o;Re(o=ke())&&(i.lazyContent=o.first),Re(o=ke())&&(i._allItems=o),Re(o=ke())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&St(vt,5),2&e){let r;Re(r=ke())&&(i.templateRef=r.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 ku{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(lt),h(OO),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}]),Ie],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&&(kn(),Z(0,Y9,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 IO=new Pe("mat-menu-scroll-strategy"),tW={provide:IO,deps:[ir],useFactory:function eW(t){return()=>t.scrollStrategies.reposition()}},RO=Xs({passive:!0});let nW=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=y.EMPTY,this._hoverSubscription=y.EMPTY,this._menuCloseSubscription=y.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=o,this._parentMaterialMenu=s instanceof ku?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,RO),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,RO),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),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.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 ku&&(e._startAnimation(),e._directDescendantItems.changes.pipe(yt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.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 r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof ku?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(Wt(o=>"void"===o.toState),yn(1),yt(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(i=null==r?void 0:r.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,r=e.parentMenu;for(;r;)i++,r=r.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 yu({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(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,d]=[r,o],p=0;if(this.triggersSubmenu()){if(d=r="before"===e.xPosition?"start":"end",o=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const D=this._parentMaterialMenu.items.first;this._parentInnerPadding=D?D._getHostElement().offsetTop:0}p="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:u,overlayY:s,offsetY:p},{originX:o,originY:l,overlayX:d,overlayY:s,offsetY:p},{originX:r,originY:c,overlayX:u,overlayY:a,offsetY:-p},{originX:o,originY:c,overlayX:d,overlayY:a,offsetY:-p}])}_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),xO(0,pf)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ku&&this.menu._isAnimating?this.menu._animationDone.pipe(yn(1),xO(0,pf),yt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new _l(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(h(ir),h(Oe),h(an),h(IO),h(pb,8),h(As,10),h(mr,8),h(Pr),h(lt))},t.\u0275dir=me({type:t,hostVars:3,hostBindings:function(e,i){1&e&&we("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),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})(),ws=(()=>{class t extends nW{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Ie]}),t})(),iW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[tW],imports:[zi,Tt,Au,Il,ea,Tt]}),t})();const kO=Xs({passive:!0});let rW=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return jr;const i=Go(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new ue,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(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,kO),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,kO)}}),o}stopMonitoring(e){const i=Go(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.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)(re(ni),re(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=at({type:t}),t.\u0275inj=ot({}),t})();const oW=new Pe("MAT_INPUT_VALUE_ACCESSOR"),sW=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let aW=0;const lW=ux(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new ue}});let gb=(()=>{class t extends lW{constructor(e,i,r,o,s,a,l,c,u,d){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+aW++,this.focused=!1,this.stateChanges=new ue,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(H=>_T().has(H)),this._iOSKeyupListener=H=>{const ne=H.target;!ne.value&&0===ne.selectionStart&&0===ne.selectionEnd&&(ne.setSelectionRange(1,1),ne.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,D=p.nodeName.toLowerCase();this._inputValueAccessor=l||p,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"===D,this._isTextarea="textarea"===D,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=p.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=pt(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,r,o;return null!==(o=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(j_.required))&&void 0!==o&&o}set required(e){this._required=pt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&_T().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=pt(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,r=!i||"legacy"!==i.appearance||null!==(e=i._hasLabel)&&void 0!==e&&e.call(i)?this.placeholder:null;if(r!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=r,r?o.setAttribute("placeholder",r):o.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(Oe),h(ni),h(bo,10),h(Ll,8),h(Iu,8),h(T_),h(oW,10),h(rW),h(lt),h(ab,8))},t.\u0275dir=me({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&&(as("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),ut("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:Uf,useExisting:t}]),Ie,Wn]}),t})(),cW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[T_],imports:[PO,Hf,Tt,PO,Hf]}),t})();function uW(t,n){if(1&t&&(cc(),Ze(0,"circle",4)),2&t){const e=ie(),i=ji(1);er("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(),Ze(0,"circle",4)),2&t){const e=ie(),i=ji(1);er("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 io extends fW{constructor(n,e,i,r,o,s,a,l){super(n),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=y.EMPTY,this.mode="determinate";const c=io._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.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=yT(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=io._diameters;let r=i.get(n);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),n.appendChild(o),r||(r=new Set,i.set(n,r)),r.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(".","_")}}io._diameters=new WeakMap,io.\u0275fac=function(n){return new(n||io)(h(Oe),h(ni),h(dt,8),h(gi,8),h(pW),h(Vt),h(bu),h(lt))},io.\u0275cmp=et({type:io,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),er("width",e.diameter,"px")("height",e.diameter,"px"),ut("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Ie],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(),I(0,"svg",0,1),Z(2,uW,1,11,"circle",2),Z(3,dW,1,9,"circle",3),B()),2&n&&(er("width",e.diameter,"px")("height",e.diameter,"px"),j("ngSwitch","indeterminate"===e.mode),Ot("viewBox",e._getViewBox()),A(2),j("ngSwitchCase",!0),A(1),j("ngSwitchCase",!1))},dependencies:[hl,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=at({type:t}),t.\u0275inj=ot({imports:[Tt,zi,Tt]}),t})();var Ds=V(5039);const _W=["tooltip"],NO="tooltip-panel",LO=Xs({passive:!0}),FO=new Pe("mat-tooltip-scroll-strategy"),EW={provide:FO,deps:[ir],useFactory:function CW(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},SW=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,r,o,s,a,l,c,u,d,p,D){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=p,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 ue,this._scrollStrategy=u,this._document=D,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.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=pt(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,r])=>{e.removeEventListener(i,r,LO)}),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 r=this._createOverlay();this._detach(),this._portal=this._portal||new vl(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.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),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(yt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${NO}`,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 o;return null===(o=this._tooltipInstance)||void 0===o?void 0:o._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(yt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!nr(o)&&(o.preventDefault(),o.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,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),o.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),o.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,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:r,originY:o}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${NO}-`;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 r;const o=i.relatedTarget;(!o||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(o))&&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,r])=>{this._elementRef.nativeElement.addEventListener(i,r,LO)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){Bs()},t.\u0275dir=me({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})(),Nr=(()=>{class t extends wW{constructor(e,i,r,o,s,a,l,c,u,d,p,D){super(e,i,r,o,s,a,l,c,u,d,p,D),this._tooltipComponent=TW}}return t.\u0275fac=function(e){return new(e||t)(h(ir),h(Oe),h(vu),h(an),h(lt),h(ni),h(kT),h(Pr),h(FO),h(mr,8),h(SW,8),h(dt))},t.\u0275dir=me({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Ie]}),t})(),DW=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ue,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,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),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(gi,8))},t.\u0275dir=me({type:t}),t})(),TW=(()=>{class t extends DW{constructor(e,i,r){super(e,r),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(af),h(gi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&St(_W,7),2&e){let r;Re(r=ke())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&we("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&er("zoom",i.isVisible()?1:null)},features:[Ie],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(I(0,"div",0,1),we("animationend",function(o){return i._handleAnimationEnd(o)}),ye(2,"async"),se(3),B()),2&e){let r;ut("mat-tooltip-handset",null==(r=Se(2,4,i._isHandset))?null:r.matches),j("ngClass",i.tooltipClass),A(3),Ne(i.message)}},dependencies:[Ii,Jw],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})(),xW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[EW],imports:[E_,zi,Il,Tt,Tt,ea]}),t})();class vb{constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ue,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):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(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 BO=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(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})(),MW=0;const _b=new Pe("CdkAccordion");let OW=(()=>{class t{constructor(){this._stateChanges=new ue,this._openCloseAllActions=new ue,this.id="cdk-accordion-"+MW++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=pt(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=me({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[It([{provide:_b,useExisting:t}]),Wn]}),t})(),IW=0,RW=(()=>{class t{constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=y.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=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=pt(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=pt(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(BO))},t.\u0275dir=me({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})(),kW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({}),t})();const PW=["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&&Ze(0,"span",2),2&t&&j("@indicatorRotate",ie()._getExpandedState())}const VW=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],UW=["mat-panel-title","mat-panel-description","*"],bb=new Pe("MAT_ACCORDION"),VO="225ms cubic-bezier(0.4,0.0,0.2,1)",UO={indicatorRotate:qi("indicatorRotate",[mi("collapsed, void",Pt({transform:"rotate(0deg)"})),mi("expanded",Pt({transform:"rotate(180deg)"})),Un("expanded <=> collapsed, void => collapsed",Kn(VO))]),bodyExpansion:qi("bodyExpansion",[mi("collapsed, void",Pt({height:"0px",visibility:"hidden"})),mi("expanded",Pt({height:"*",visibility:"visible"})),Un("expanded <=> collapsed, void => collapsed",Kn(VO))])},jO=new Pe("MAT_EXPANSION_PANEL");let jW=(()=>{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=me({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),HW=0;const HO=new Pe("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let yb=(()=>{class t extends RW{constructor(e,i,r,o,s,a,l){super(e,i,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Ee,this.afterCollapse=new Ee,this._inputChanges=new ue,this._headerId="mat-expansion-panel-header-"+HW++,this._bodyAnimationDone=new ue,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(fu((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=pt(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(vi(null),Wt(()=>this.expanded&&!this._portal),yn(1)).subscribe(()=>{this._portal=new _l(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(BO),h(an),h(dt),h(gi,8),h(HO,8))},t.\u0275cmp=et({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&Je(r,jW,5),2&e){let o;Re(o=ke())&&(i._lazyContent=o.first)}},viewQuery:function(e,i){if(1&e&&St(PW,5),2&e){let r;Re(r=ke())&&(i._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&ut("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}]),Ie,Wn],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&&(kn(LW),Dt(0),I(1,"div",0,1),we("@bodyExpansion.done",function(o){return i._bodyAnimationDone.next(o)}),I(3,"div",2),Dt(4,1),Z(5,NW,0,0,"ng-template",3),B(),Dt(6,2),B()),2&e&&(A(1),j("@bodyExpansion",i._getExpandedState())("id",i.id),Ot("aria-labelledby",i._headerId),A(4),j("cdkPortalOutlet",i._portal))},dependencies:[bl],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:[UO.bodyExpansion]},changeDetection:0}),t})();class GW{}const zW=mf(GW);let Cb=(()=>{class t extends zW{constructor(e,i,r,o,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=y.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(Wt(u=>!(!u.hideToggle&&!u.togglePosition))):jr;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(()=>r.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:nr(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(Oe),h(Pr),h(Vt),h(HO,8),h(gi,8),$r("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(o){return i._keydown(o)}),2&e&&(Ot("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),er("height",i._getHeaderHeight()),ut("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:[Ie],ngContentSelectors:UW,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(kn(VW),I(0,"span",0),Dt(1),Dt(2,1),Dt(3,2),B(),Z(4,BW,1,1,"span",1)),2&e&&(ut("mat-content-hide-toggle",!i._showToggle()),A(4),j("ngIf",i._showToggle()))},dependencies:[Qt],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:[UO.indicatorRotate]},changeDetection:0}),t})(),qW=(()=>{class t extends OW{constructor(){super(...arguments),this._ownHeaders=new cs,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=pt(e)}ngAfterContentInit(){this._headers.changes.pipe(vi(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=me({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,i,r){if(1&e&&Je(r,Cb,5),2&e){let o;Re(o=ke())&&(i._headers=o)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,i){2&e&&ut("mat-accordion-multi",i.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[It([{provide:bb,useExisting:t}]),Ie]}),t})(),WW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[zi,Tt,kW,yl]}),t})(),Eb=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=pt(e)}get inset(){return this._inset}set inset(e){this._inset=pt(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"),ut("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})(),GO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Tt,Tt]}),t})();const zO=["*"],qO='.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",""]],"*"],KW=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],YW=["text"];function QW(t,n){if(1&t&&Ze(0,"mat-pseudo-checkbox",5),2&t){const e=ie();j("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const XW=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],ZW=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],JW=na(ps(class{})),e7=ps(class{}),WO=new Pe("MatList"),t7=new Pe("MatNavList");let Nu=(()=>{class t extends JW{constructor(e){super(),this._elementRef=e,this._stateChanges=new ue,"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(Oe))},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:WO,useExisting:t}]),Ie,Wn],ngContentSelectors:zO,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Dt(0))},styles:[qO],encapsulation:2,changeDetection:0}),t})(),Lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Jf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({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=me({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),Fu=(()=>{class t extends e7{constructor(e,i,r,o){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new ue,this._disabled=!1,this._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),this._list=r||o;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=pt(e)}ngAfterContentInit(){dx(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(Oe),h(Vt),h(t7,8),h(WO,8))},t.\u0275cmp=et({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,r){if(1&e&&(Je(r,Lu,5),Je(r,Jf,5),Je(r,ra,5)),2&e){let o;Re(o=ke())&&(i._avatar=o.first),Re(o=ke())&&(i._icon=o.first),Re(o=ke())&&(i._lines=o)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,i){2&e&&ut("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Ie],ngContentSelectors:KW,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&&(kn($W),I(0,"span",0),Ze(1,"span",1),Dt(2),I(3,"span",2),Dt(4,1),B(),Dt(5,2),B()),2&e&&(A(1),j("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},dependencies:[oa],encapsulation:2,changeDetection:0}),t})();const i7=ps(class{}),r7=ps(class{}),o7={provide:vr,useExisting:Yt(()=>Sb),multi:!0};class s7{constructor(n,e){this.source=n,this.options=e}}let $O=(()=>{class t extends r7{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this.selectionList=r,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=pt(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=pt(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(r=>e.compareWith(this._value,r))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){dx(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(Oe),h(Vt),h(Yt(()=>Sb)))},t.\u0275cmp=et({type:t,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,Lu,5),Je(r,Jf,5),Je(r,ra,5)),2&e){let o;Re(o=ke())&&(i._avatar=o.first),Re(o=ke())&&(i._icon=o.first),Re(o=ke())&&(i._lines=o)}},viewQuery:function(e,i){if(1&e&&St(YW,5),2&e){let r;Re(r=ke())&&(i._text=r.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),ut("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:[Ie],ngContentSelectors:ZW,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&&(kn(XW),I(0,"div",0),Ze(1,"div",1),Z(2,QW,1,2,"mat-pseudo-checkbox",2),I(3,"div",3,4),Dt(5),B(),Dt(6,1),B()),2&e&&(ut("mat-list-item-content-reverse","after"==i.checkboxPosition),A(1),j("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),A(1),j("ngIf",i.selectionList.multiple))},dependencies:[oa,gx,Qt],encapsulation:2,changeDetection:0}),t})(),Sb=(()=>{class t extends i7{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new Ee,this.color="accent",this.compareWith=(o,s)=>o===s,this._disabled=!1,this.selectedOptions=new vb(this._multiple),this._tabIndex=-1,this._onChange=o=>{},this._destroyed=new ue,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=pt(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=pt(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(vi(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 r=0;for(let o=0;o-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,r=this._keyManager,o=r.activeItemIndex,s=nr(e);switch(i){case 32:case 13:!s&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&nr(e,"ctrlKey")&&!r.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else r.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&r.activeItemIndex!==o&&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 r=this.options.find(o=>!o.selected&&this.compareWith(o.value,i));r&&r._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,r){const o=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&o.push(s)}),o.length&&(this._reportValueChange(),r&&this._emitChangeEvent(o)),o}_isValidIndex(e){return e>=0&&ee._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(Oe),h(Vt),h(Pr))},t.\u0275cmp=et({type:t,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&Je(r,$O,5),2&e){let o;Re(o=ke())&&(i.options=o)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&we("keydown",function(o){return i._keydown(o)}),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([o7]),Ie,Wn],ngContentSelectors:zO,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Dt(0))},styles:[qO],encapsulation:2,changeDetection:0}),t})(),a7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[vf,Au,Tt,M_,zi,vf,Tt,M_,GO]}),t})();function c7(t){return void 0===t}function Lr(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 Bu(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var Hl=/[A-Za-z]/,Pi=/[\d]/,ro=/\s/,Ab=/['"]/,h7=/[\x00-\x1F\x7F]/,KO=/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=KO+/\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(KO+YO,"]")),g7+YO),da=new RegExp("[".concat(QO,"]")),XO=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 o,e=this.getClass(),i=e?e.split(ro):[],r=n.split(ro);o=r.shift();)-1===i.indexOf(o)&&i.push(o);return this.getAttrs().class=i.join(" "),this},t.prototype.removeClass=function(n){for(var o,e=this.getClass(),i=e?e.split(ro):[],r=n.split(ro);i.length&&(o=r.shift());){var s=i.indexOf(o);-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(),""].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 XO({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=l)return c.host.length==n?(c.host.substr(0,n-r)+e).substr(0,l+i):a(d,l).substr(0,l+i);var p="";if(c.path&&(p+="/"+c.path),c.query&&(p+="?"+c.query),p){if((d+p).length>=l)return(d+p).length==n?(d+p).substr(0,n):(d+a(p,l-d.length)).substr(0,l+i);d+=p}if(c.fragment){var H="#"+c.fragment;if((d+H).length>=l)return(d+H).length==n?(d+H).substr(0,n):(d+a(H,l-d.length)).substr(0,l+i);d+=H}if(c.scheme&&c.host){var fe=c.scheme+"://";if((d+fe).length0&&(he=d.substr(-1*Math.floor(l/2))),(d.substr(0,Math.ceil(l/2))+e+he).substr(0,l+i)}(n,i):"middle"===r?function v7(t,n,e){if(t.length<=n)return t;var i,r;null==e?(e="…",i=8,r=3):(i=e.length,r=e.length);var o=n-r,s="";return o>0&&(s=t.substr(-1*Math.floor(o/2))),(t.substr(0,Math.ceil(o/2))+e+s).substr(0,o+i)}(n,i):function _7(t,n,e){return function d7(t,n,e){var i;return t.length>n&&(null==e?(e="…",i=3):i=e.length,t=t.substring(0,n-i)+e),t}(t,n,e)}(n,i)},t}(),Vu=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)$"),E7=/[\/?#]/,S7=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,ZO=/[?!:,.;^]/,JO=/https?:\/\//i,A7=new RegExp("^"+JO.source,"i"),w7=new RegExp(ZO.source+"$"),D7=/^(javascript|vbscript):/i,T7=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,x7=/^(?:\/\/)?([^/#?:]+)/;function wb(t){return Hl.test(t)}function eI(t){return Hl.test(t)||Pi.test(t)||"+"===t||"-"===t||"."===t}function Ts(t){return da.test(t)}function Db(t){return"_"===t||Ts(t)}function tI(t){return da.test(t)||S7.test(t)||ZO.test(t)}function Tb(t){return E7.test(t)}function nI(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=/[:/?#]/,P7=/^(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 on(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(/&/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(P7,"$1")}(e)),this.stripTrailingSlash&&(e=function U7(t){return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}(e)),this.decodePercentEncoding&&(e=function j7(t){var n=t.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(n)}catch(e){return n}}(e)),e},n}(Vu),H7=/^mailto:/i,G7=new RegExp("[".concat(QO,"!#$%&'*+/=?^_`{|}~-]"));function xb(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 on(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}(Vu);function iI(t){return"_"===t||da.test(t)}var K7=["twitter","facebook","instagram","tiktok"],Y7=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 on(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 Bu(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}(Vu),Q7={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},X7=/[-\w.]/;function rI(t){return X7.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 on(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}(Vu),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 Mb(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 on(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}(Vu);var u$=/[\(\{\[]/,sI=/[\)\}\]]/,aI={")":"(","}":"{","]":"["};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 yo=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),Lr(t)?{schemeMatches:t,tldMatches:t,ipV4Matches:t}:{schemeMatches:!Lr(t.schemeMatches)||t.schemeMatches,tldMatches:!Lr(t.tldMatches)||t.tldMatches,ipV4Matches:!Lr(t.ipV4Matches)||t.ipV4Matches}}(n.urls),this.email=Lr(n.email)?n.email:this.email,this.phone=Lr(n.phone)?n.phone:this.phone,this.hashtag=n.hashtag||this.hashtag,this.mention=n.mention||this.mention,this.newWindow=Lr(n.newWindow)?n.newWindow:this.newWindow,this.stripPrefix=function y$(t){return null==t&&(t=!0),Lr(t)?{scheme:t,www:t}:{scheme:!Lr(t.scheme)||t.scheme,www:!Lr(t.www)||t.www}}(n.stripPrefix),this.stripTrailingSlash=Lr(n.stripTrailingSlash)?n.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Lr(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===K7.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"],r=0,o=[];return function m$(t,n){for(var e=n.onOpenTag,i=n.onCloseTag,r=n.onText,o=n.onComment,s=n.onDoctype,a=new yo,l=0,c=t.length,u=0,d=0,p=a;l"===Ve?(p=new yo($e($e({},p),{name:Bt()})),Sn()):!Hl.test(Ve)&&!Pi.test(Ve)&&":"!==Ve&&it()}function he(Ve){">"===Ve?it():Hl.test(Ve)?u=3:it()}function _e(Ve){ro.test(Ve)||("/"===Ve?u=12:">"===Ve?Sn():"<"===Ve?jt():"="===Ve||Ab.test(Ve)||h7.test(Ve)?it():u=5)}function ge(Ve){ro.test(Ve)?u=6:"/"===Ve?u=12:"="===Ve?u=7:">"===Ve?Sn():"<"===Ve?jt():Ab.test(Ve)&&it()}function ve(Ve){ro.test(Ve)||("/"===Ve?u=12:"="===Ve?u=7:">"===Ve?Sn():"<"===Ve?jt():Ab.test(Ve)?it():u=5)}function He(Ve){ro.test(Ve)||('"'===Ve?u=8:"'"===Ve?u=9:/[>=`]/.test(Ve)?it():"<"===Ve?jt():u=10)}function ht(Ve){'"'===Ve&&(u=11)}function $t(Ve){"'"===Ve&&(u=11)}function Mt(Ve){ro.test(Ve)?u=4:">"===Ve?Sn():"<"===Ve&&jt()}function En(Ve){ro.test(Ve)?u=4:"/"===Ve?u=12:">"===Ve?Sn():"<"===Ve?jt():(u=4,function Ct(){l--}())}function Rt(Ve){">"===Ve?(p=new yo($e($e({},p),{isClosing:!0})),Sn()):u=4}function _i(Ve){"-"===Ve?u=15:">"===Ve?it():u=16}function Gn(Ve){"-"===Ve?u=18:">"===Ve?it():u=16}function Di(Ve){"-"===Ve&&(u=17)}function br(Ve){u="-"===Ve?18:16}function Qe(Ve){">"===Ve?Sn():"!"===Ve?u=19:"-"===Ve||(u=16)}function Ge(Ve){"-"===Ve?u=17:">"===Ve?Sn():u=16}function rt(Ve){">"===Ve?Sn():"<"===Ve&&jt()}function it(){u=0,p=a}function jt(){u=1,p=new yo({idx:l})}function Sn(){var Ve=t.slice(d,p.idx);Ve&&r(Ve,d),"comment"===p.type?o(p.idx):"doctype"===p.type?s(p.idx):(p.isOpening&&e(p.name,p.idx),p.isClosing&&i(p.name,p.idx)),it(),d=l+1}function Bt(){return t.slice(p.idx+(p.isClosing?2:1),l).toLowerCase()}d=0&&r++},onText:function(s,a){if(0===r){var c=s.split(/( | |<|<|>|>|"|"|')/gi),u=a;c.forEach(function(d,p){if(p%2==0){var D=e.parseText(d,u);o.push.apply(o,D)}u+=d.length})}},onCloseTag:function(s){i.indexOf(s)>=0&&(r=Math.max(r-1,0))},onComment:function(s){},onDoctype:function(s){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},t.prototype.compactMatches=function(n){n.sort(function(l,c){return l.getOffset()-c.getOffset()});for(var e=0;eo?e:e+1;n.splice(a,1);continue}if(n[e+1].getOffset()=0;D--){var H=u[D];switch(H.state){case 11:de=H,"/"===p?de.state=12:Cn(u,de);break;case 12:$t(H,p);break;case 0:he(H,p);break;case 1:_e(H,p);break;case 2:ge(H,p);break;case 3:ve(H,p);break;case 4:He(H,p);break;case 5:Mt(H,p);break;case 6:En(H,p);break;case 7:Rt(H,p);break;case 13:dn(H,p);break;case 14:_i(H,p);break;case 8:Gn(H,p);break;case 9:Di(H,p);break;case 10:br(H,p);break;case 15:Qe(H,p);break;case 16:Ge(H,p);break;case 17:rt(H,p);break;case 18:it(H,p);break;case 19:jt(H,p);break;case 20:Sn(H,p);break;case 21:ai(H,p);break;case 22:Bt(H,p);break;case 23:Ct(H,p);break;case 24:Ve(H,p);break;case 25:yr(H,p);break;case 26:Rn(H,p);break;case 27:Qi(H,p);break;case 28:rr(H,p);break;case 29:tc(H,p);break;case 30:ad(H,p);break;case 31:Jre(H,p);break;case 32:toe(H,p);break;case 33:noe(H,p);break;case 34:ioe(H,p);break;case 35:roe(H,p);break;case 36:ooe(H,p);break;case 37:eoe(H,p);break;case 38:soe(H,p);break;case 39:aoe(H,p);break;case 40:loe(H,p);break;case 41:coe(H,p);break;default:Bu(H.state)}}}for(var de,ne=u.length-1;ne>=0;ne--)u.forEach(function(de){return Ln(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(Pi.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:eI(be)||Cn(u,de)}function _e(de,be){"-"===be||("/"===be?(Cn(u,de),u.push(Ib(d,11))):eI(be)?de.state=0:Cn(u,de))}function ge(de,be){"/"===be?de.state=3:"."===be?Cn(u,de):Ts(be)?(de.state=5,wb(be)&&u.push(Ob(d,0))):Cn(u,de)}function ve(de,be){"/"===be?de.state=4:tI(be)?(de.state=10,de.acceptStateReached=!0):Ln(de)}function He(de,be){"/"===be?de.state=10:Ts(be)?(de.state=5,de.acceptStateReached=!0):Cn(u,de)}function $t(de,be){Ts(be)?de.state=5:Cn(u,de)}function Mt(de,be){"."===be?de.state=7:"-"===be?de.state=6:":"===be?de.state=8:Tb(be)?de.state=10:Db(be)||Ln(de)}function En(de,be){"-"===be||("."===be?Ln(de):Ts(be)?de.state=5:Ln(de))}function Rt(de,be){"."===be?Ln(de):Ts(be)?(de.state=5,de.acceptStateReached=!0):Ln(de)}function dn(de,be){"."===be?de.state=14:":"===be?de.state=8:Pi.test(be)||(Tb(be)?de.state=10:da.test(be)?Cn(u,de):Ln(de))}function _i(de,be){Pi.test(be)?(de.octetsEncountered++,4===de.octetsEncountered&&(de.acceptStateReached=!0),de.state=13):Ln(de)}function Gn(de,be){Pi.test(be)?de.state=9:Ln(de)}function Di(de,be){Pi.test(be)||(Tb(be)?de.state=10:Ln(de))}function br(de,be){tI(be)||Ln(de)}function Qe(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 rt(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 jt(de,be){"o"===be.toLowerCase()?de.state=20:Bt(de,be)}function Sn(de,be){":"===be.toLowerCase()?de.state=21:Bt(de,be)}function ai(de,be){xb(be)?de.state=22:Cn(u,de)}function Bt(de,be){"."===be?de.state=23:"@"===be?de.state=24:xb(be)?de.state=22:Cn(u,de)}function Ct(de,be){"."===be||"@"===be?Cn(u,de):xb(be)?de.state=22:Cn(u,de)}function Ve(de,be){Ts(be)?de.state=25:Cn(u,de)}function yr(de,be){"."===be?de.state=27:"-"===be?de.state=26:Db(be)||Ln(de)}function Rn(de,be){"-"===be||"."===be?Ln(de):Db(be)?de.state=25:Ln(de)}function Qi(de,be){"."===be||"-"===be?Ln(de):Ts(be)?(de.state=25,de.acceptStateReached=!0):Ln(de)}function rr(de,be){iI(be)?(de.state=29,de.acceptStateReached=!0):Cn(u,de)}function tc(de,be){iI(be)||Ln(de)}function ad(de,be){rI(be)?(de.state=31,de.acceptStateReached=!0):Cn(u,de)}function Jre(de,be){rI(be)||(da.test(be)?Cn(u,de):Ln(de))}function eoe(de,be){Pi.test(be)?de.state=38:(Cn(u,de),fe(be))}function toe(de,be){Pi.test(be)?de.state=33:Cn(u,de),fe(be)}function noe(de,be){Pi.test(be)?de.state=34:Cn(u,de)}function ioe(de,be){Pi.test(be)?de.state=35:Cn(u,de)}function roe(de,be){")"===be?de.state=36:Cn(u,de)}function ooe(de,be){Pi.test(be)?de.state=38:oI(be)?de.state=39:Cn(u,de)}function soe(de,be){de.acceptStateReached=!0,Mb(be)?de.state=40:"#"===be?de.state=41:Pi.test(be)||("("===be?de.state=32:oI(be)?de.state=39:(Ln(de),wb(be)&&u.push(Ob(d,0))))}function aoe(de,be){Pi.test(be)?de.state=38:"("===be?de.state=32:(Ln(de),fe(be))}function loe(de,be){Mb(be)||("#"===be?de.state=41:Pi.test(be)?de.state=38:Ln(de))}function coe(de,be){Mb(be)?de.state=40:Pi.test(be)?Cn(u,de):Ln(de)}function Ln(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=0;)if(o=t.charAt(r),sI.test(o)){var s=aI[o];if(!(n[s]<0))break;n[s]++,r--}else{if(!w7.test(o))break;r--}return t.slice(0,r+1)}(An),"url"===de.type){if("@"===t.charAt(de.startIdx-1))return;var ld=de.matchType;if("scheme"===ld){var My=JO.exec(An);if(My&&(be+=My.index,An=An.slice(My.index)),!function M7(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(".")||!Hl.test(i))}(An))return}else if("tld"===ld){if(!function O7(t){var n=t.match(x7);if(!n)return!1;var i=n[0].split(".");return!(i.length<2||!nI(i[i.length-1]))}(An))return}else if("ipV4"===ld){if(!function k7(t){var n=t.split(R7,1)[0];return I7.test(n)}(An))return}else Bu(ld);l.push(new L7({tagBuilder:e,matchedText:An,offset:be,urlMatchType:ld,url:An,protocolRelativeMatch:"//"===An.slice(0,2),stripPrefix:i,stripTrailingSlash:r,decodePercentEncoding:o}))}else if("email"===de.type)(function q7(t){return nI(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 Y7({tagBuilder:e,matchedText:An,offset:be,serviceName:s,hashtag:An.slice(1)}));else if("mention"===de.type)(function Z7(t,n){return Q7[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 doe=An.replace(/[^0-9,;#]/g,"");l.push(new l$({tagBuilder:e,matchedText:An,offset:be,number:doe,plusSign:"+"===An.charAt(0)}))}}else Bu(de)}}}(n,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),r=0,o=i.length;r/g,">"));for(var e=this.parse(n),i=[],r=0,o=0,s=e.length;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[cb]}),t})(),GK=(()=>{class t{constructor(e,i){pl(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:to,useValue:Object.assign(Object.assign({},ub),e)},{provide:zf,useValue:i,multi:!0},{provide:Vl,useValue:!0}]:[{provide:to,useValue:Object.assign(Object.assign({},ub),e)},{provide:zf,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(re(Vl),re(xr))},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[yO,DO,gI,yO,DO,gI]}),t})(),zK=0;const qK=na(class{}),mI="mat-badge-content";let WK=(()=>{class t extends qK{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=o,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=zK++,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=pt(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=pt(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(mI),"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 > .${mI}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return t.\u0275fac=function(e){return new(e||t)(h(lt),h(Oe),h(kT),h(Dr),h(gi,8))},t.\u0275dir=me({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&ut("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:[Ie]}),t})(),$K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[E_,Tt,Tt]}),t})();const ep=["*"],KK=["content"];function YK(t,n){if(1&t){const e=st();I(0,"div",2),we("click",function(){return xe(e),Me(ie()._onBackdropClicked())}),B()}2&t&&ut("mat-drawer-shown",ie()._isShowingBackdrop())}function QK(t,n){1&t&&(I(0,"mat-drawer-content"),Dt(1,2),B())}const XK=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ZK=["mat-drawer","mat-drawer-content","*"];function JK(t,n){if(1&t){const e=st();I(0,"div",2),we("click",function(){return xe(e),Me(ie()._onBackdropClicked())}),B()}2&t&&ut("mat-drawer-shown",ie()._isShowingBackdrop())}function eY(t,n){1&t&&(I(0,"mat-sidenav-content"),Dt(1,2),B())}const tY=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],nY=["mat-sidenav","mat-sidenav-content","*"],vI={transformDrawer:qi("transform",[mi("open, open-instant",Pt({transform:"none",visibility:"visible"})),mi("void",Pt({"box-shadow":"none",visibility:"hidden"})),Un("void => open-instant",Kn("0ms")),Un("void <=> open, open-instant => void",Kn("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},rY=new Pe("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function oY(){return!1}}),kb=new Pe("MAT_DRAWER_CONTAINER");let tp=(()=>{class t extends _u{constructor(e,i,r,o,s){super(r,o,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(Yt(()=>bI)),h(Oe),h(vu),h(lt))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&er("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[It([{provide:_u,useExisting:t}]),Ie],ngContentSelectors:ep,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Dt(0))},encapsulation:2,changeDetection:0}),t})(),_I=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=o,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 ue,this._animationEnd=new ue,this._animationState="void",this.openedChange=new Ee(!0),this._openedStream=this.openedChange.pipe(Wt(u=>u),je(()=>{})),this.openedStart=this._animationStarted.pipe(Wt(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),Xf(void 0)),this._closedStream=this.openedChange.pipe(Wt(u=>!u),je(()=>{})),this.closedStart=this._animationStarted.pipe(Wt(u=>u.fromState!==u.toState&&"void"===u.toState),Xf(void 0)),this._destroyed=new ue,this.onPositionChanged=new Ee,this._modeChanged=new ue,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{xl(this._elementRef.nativeElement,"keydown").pipe(Wt(u=>27===u.keyCode&&!this.disableClose&&!nr(u)),yt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(fu((u,d)=>u.fromState===d.fromState&&u.toState===d.toState)).subscribe(u=>{const{fromState:d,toState:p}=u;(0===p.indexOf("open")&&"void"===d||"void"===p&&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=pt(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=pt(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(pt(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,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 r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(yn(1)).subscribe(s=>o(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,r=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(uf),h(Pr),h(ni),h(lt),h(gu),h(dt,8),h(kb,8))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&St(KK,5),2&e){let r;Re(r=ke())&&(i._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&Pc("@transform.start",function(o){return i._animationStarted.next(o)})("@transform.done",function(o){return i._animationEnd.next(o)}),2&e&&(Ot("align",null),Fc("@transform",i._animationState),ut("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:ep,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(kn(),I(0,"div",0,1),Dt(2),B())},dependencies:[_u],encapsulation:2,data:{animation:[vI.transformDrawer]},changeDetection:0}),t})(),bI=(()=>{class t{constructor(e,i,r,o,s,a=!1,l){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=l,this._drawers=new cs,this.backdropClick=new Ee,this._destroyed=new ue,this._doCheckSubject=new ue,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ue,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=pt(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:pt(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(vi(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(vi(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(du(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 r=this._left._getWidth();e+=r,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}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,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(mr,8),h(Oe),h(lt),h(Vt),h(bu),h(rY),h(gi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,tp,5),Je(r,_I,5)),2&e){let o;Re(o=ke())&&(i._content=o.first),Re(o=ke())&&(i._allDrawers=o)}},viewQuery:function(e,i){if(1&e&&St(tp,5),2&e){let r;Re(r=ke())&&(i._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&ut("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[It([{provide:kb,useExisting:t}])],ngContentSelectors:ZK,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&&(kn(XK),Z(0,YK,1,2,"div",0),Dt(1),Dt(2,1),Z(3,QK,2,0,"mat-drawer-content",1)),2&e&&(j("ngIf",i.hasBackdrop),A(3),j("ngIf",!i._content))},dependencies:[Qt,tp],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})(),Pb=(()=>{class t extends tp{constructor(e,i,r,o,s){super(e,i,r,o,s)}}return t.\u0275fac=function(e){return new(e||t)(h(Vt),h(Yt(()=>CI)),h(Oe),h(vu),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&&er("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[It([{provide:_u,useExisting:t}]),Ie],ngContentSelectors:ep,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Dt(0))},encapsulation:2,changeDetection:0}),t})(),yI=(()=>{class t extends _I{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=pt(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),er("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),ut("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:[Ie],ngContentSelectors:ep,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(kn(),I(0,"div",0,1),Dt(2),B())},dependencies:[_u],encapsulation:2,data:{animation:[vI.transformDrawer]},changeDetection:0}),t})(),CI=(()=>{class t extends bI{}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,r){if(1&e&&(Je(r,Pb,5),Je(r,yI,5)),2&e){let o;Re(o=ke())&&(i._content=o.first),Re(o=ke())&&(i._allDrawers=o)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&ut("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[It([{provide:kb,useExisting:t}]),Ie],ngContentSelectors:nY,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&&(kn(tY),Z(0,JK,1,2,"div",0),Dt(1),Dt(2,1),Z(3,eY,2,0,"mat-sidenav-content",1)),2&e&&(j("ngIf",i.hasBackdrop),A(3),j("ngIf",!i._content))},dependencies:[Qt,Pb],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})(),sY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[zi,Tt,ea,ea,Tt]}),t})();const aY=["trigger"],lY=["panel"];function cY(t,n){if(1&t&&(I(0,"span",8),se(1),B()),2&t){const e=ie();A(1),Ne(e.placeholder)}}function uY(t,n){if(1&t&&(I(0,"span",12),se(1),B()),2&t){const e=ie(2);A(1),Ne(e.triggerValue)}}function dY(t,n){1&t&&Dt(0,0,["*ngSwitchCase","true"])}function hY(t,n){1&t&&(I(0,"span",9),Z(1,uY,2,1,"span",10),Z(2,dY,1,0,"ng-content",11),B()),2&t&&(j("ngSwitch",!!ie().customTrigger),A(2),j("ngSwitchCase",!0))}function fY(t,n){if(1&t){const e=st();I(0,"div",13)(1,"div",14,15),we("@transformPanel.done",function(r){return xe(e),Me(ie()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return xe(e),Me(ie()._handleKeydown(r))}),Dt(3,1),B()()}if(2&t){const e=ie();j("@transformPanelWrap",void 0),A(1),I0("mat-select-panel ",e._getPanelTheme(),""),er("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),j("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 pY=[[["mat-select-trigger"]],"*"],gY=["mat-select-trigger","*"],EI={transformPanelWrap:qi("transformPanelWrap",[Un("* => void",Ov("@transformPanel",[Mv()],{optional:!0}))]),transformPanel:qi("transformPanel",[mi("void",Pt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),mi("showing",Pt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),mi("showing-multiple",Pt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Un("void => *",Kn("120ms cubic-bezier(0, 0, 0.2, 1)")),Un("* => void",Kn("100ms 25ms linear",Pt({opacity:0})))])};let SI=0;const wI=new Pe("mat-select-scroll-strategy"),bY=new Pe("MAT_SELECT_CONFIG"),yY={provide:wI,deps:[ir],useFactory:function _Y(t){return()=>t.scrollStrategies.reposition()}};class CY{constructor(n,e){this.source=n,this.value=e}}const EY=ps(mf(na(ux(class{constructor(t,n,e,i,r){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new ue}})))),SY=new Pe("MatSelectTrigger");let AY=(()=>{class t extends EY{constructor(e,i,r,o,s,a,l,c,u,d,p,D,H,ne){var fe,he,_e;super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=H,this._defaultOptions=ne,this._panelOpen=!1,this._compareWith=(ge,ve)=>ge===ve,this._uid="mat-select-"+SI++,this._triggerAriaLabelledBy=null,this._destroy=new ue,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+SI++,this._panelDoneAnimatingStream=new ue,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=Eu(()=>{const ge=this.options;return ge?ge.changes.pipe(vi(ge),ki(()=>Ni(...ge.map(ve=>ve.onSelectionChange)))):this._ngZone.onStable.pipe(yn(1),ki(()=>this.optionSelectionChanges))}),this.openedChange=new Ee,this._openedStream=this.openedChange.pipe(Wt(ge=>ge),je(()=>{})),this._closedStream=this.openedChange.pipe(Wt(ge=>!ge),je(()=>{})),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=D,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||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,r,o;return null!==(o=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(j_.required))&&void 0!==o&&o}set required(e){this._required=pt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=pt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=pt(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(fu(),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(vi(null),yt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.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,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!nr(e)||(this.multiple||e.altKey)&&r)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,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||nr(e))if(!s&&this._multiple&&65===r&&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&&o&&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(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(o){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 r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==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)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.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 r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_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(bu),h(Vt),h(lt),h(T_),h(Oe),h(mr,8),h(Ll,8),h(Iu,8),h(ab,8),h(bo,10),$r("tabindex"),h(wI),h(y_),h(bY,8))},t.\u0275dir=me({type:t,viewQuery:function(e,i){if(1&e&&(St(aY,5),St(lY,5),St(rx,5)),2&e){let r;Re(r=ke())&&(i.trigger=r.first),Re(r=ke())&&(i.panel=r.first),Re(r=ke())&&(i._overlayDir=r.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:[Ie,Wn]}),t})(),Nb=(()=>{class t extends AY{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,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}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=_x(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function S8(t,n,e,i){return te+i?Math.max(0,t-i+n):e}((e+i)*r,r,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 CY(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=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}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.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>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=_x(a,this.options,this.optionGroups);const l=r/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,r){if(1&e&&(Je(r,SY,5),Je(r,O_,5),Je(r,vx,5)),2&e){let o;Re(o=ke())&&(i.customTrigger=o.first),Re(o=ke())&&(i.options=o),Re(o=ke())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&we("keydown",function(o){return i._handleKeydown(o)})("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()),ut("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:Uf,useExisting:t},{provide:mx,useExisting:t}]),Ie],ngContentSelectors:gY,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&&(kn(pY),I(0,"div",0,1),we("click",function(){return i.toggle()}),I(3,"div",2),Z(4,cY,2,1,"span",3),Z(5,hY,3,2,"span",4),B(),I(6,"div",5),Ze(7,"div",6),B()(),Z(8,fY,4,14,"ng-template",7),we("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=ji(1);Ot("aria-owns",i.panelOpen?i.id+"-panel":null),A(3),j("ngSwitch",i.empty),Ot("id",i._valueId),A(1),j("ngSwitchCase",!0),A(1),j("ngSwitchCase",!1),A(3),j("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[Ii,hl,Mh,Xw,rx,ix],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:[EI.transformPanelWrap,EI.transformPanel]},changeDetection:0}),t})(),wY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[yY],imports:[zi,Il,I_,Tt,ea,Hf,I_,Tt]}),t})();const DY=["input"],TY=function(t){return{enterDuration:t}},xY=["*"],MY=new Pe("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let OY=0;const IY={provide:vr,useExisting:Yt(()=>DI),multi:!0};class RY{constructor(n,e){this.source=n,this.checked=e}}const kY=mf(ia(ps(na(class{constructor(t){this._elementRef=t}}))));let PY=(()=>{class t extends kY{constructor(e,i,r,o,s,a,l){super(e),this._focusMonitor=i,this._changeDetectorRef=r,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(o)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId=`${l}${++OY}`}get required(){return this._required}set required(e){this._required=pt(e)}get checked(){return this._checked}set checked(e){this._checked=pt(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=me({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:[Ie]}),t})(),DI=(()=>{class t extends PY{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a,"mat-slide-toggle-")}_createChangeEvent(e){return new RY(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(Oe),h(Pr),h(Vt),$r("tabindex"),h(MY),h(gi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,i){if(1&e&&St(DY,5),2&e){let r;Re(r=ke())&&(i._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,i){2&e&&(as("id",i.id),Ot("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),ut("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([IY]),Ie],ngContentSelectors:xY,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&&(kn(),I(0,"label",0,1)(2,"span",2)(3,"input",3,4),we("change",function(o){return i._onChangeEvent(o)})("click",function(o){return i._onInputClick(o)}),B(),I(5,"span",5),Ze(6,"span",6),I(7,"span",7),Ze(8,"span",8),B()()(),I(9,"span",9,10),we("cdkObserveContent",function(){return i._onLabelTextChange()}),I(11,"span",11),se(12,"\xa0"),B(),Dt(13),B()()),2&e){const r=ji(1),o=ji(10);Ot("for",i.inputId),A(2),ut("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),A(1),j("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),j("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Jn(18,TY,i._noopAnimations?0:150))}},dependencies:[oa,AT],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})(),TI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({}),t})(),FY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[TI,Au,Tt,h_,TI,Tt]}),t})();const ip=$(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 r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class xI extends O{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,We(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 y;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=y.EMPTY)}return n}refCount(){return Lb()(this)}}function rp(t){return Be((n,e)=>{let i=!1;n.subscribe(ze(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function MI(t=BY){return Be((n,e)=>{let i=!1;n.subscribe(ze(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function BY(){return new ip}function xs(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Wt((r,o)=>t(r,o,i)):g,yn(1),e?rp(n):MI(()=>new ip))}function VY(t,n,e,i,r){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(ze(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function OI(t,n){return Be(VY(t,n,arguments.length>=2,!0))}function Fb(t){return t<=0?()=>jr:Be((n,e)=>{let i=[];n.subscribe(ze(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function II(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Wt((r,o)=>t(r,o,i)):g,Fb(1),e?rp(n):MI(()=>new ip))}const Ut="primary",ju=Symbol("RouteTitle");class UY{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 zl(t){return new UY(t)}function jY(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function kI(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 Ms(t){return Sm(t)?t:kc(t)?Xn(Promise.resolve(t)):nt(t)}const zY={exact:function FI(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]||!FI(t.children[i],n.children[i],e))return!1;return!0},subset:BI},NI={exact:function qY(t,n){return Co(t,n)},subset:function WY(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>RI(t[e],n[e]))},ignored:()=>!0};function LI(t,n,e){return zY[e.paths](t.root,n.root,e.matrixParams)&&NI[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function BI(t,n,e){return VI(t,n,n.segments,e)}function VI(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!fa(r,e)||n.hasChildren()||!op(r,e,i))}if(t.segments.length===e.length){if(!fa(t.segments,e)||!op(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!BI(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(fa(t.segments,r)&&op(t.segments,r,i)&&t.children[Ut])&&VI(t.children[Ut],n,o,i)}}function op(t,n,e){return n.every((i,r)=>NI[e](t[r].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=zl(this.queryParams)),this._queryParamMap}toString(){return YY.serialize(this)}}class Gt{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Ai(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return sp(this)}}class Hu{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=zl(this.parameters)),this._parameterMap}toString(){return GI(this)}}function fa(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let UI=(()=>{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 rQ(n);return new ha(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Gu(n.root,!0)}`,i=function ZY(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${ap(e)}=${ap(r)}`).join("&"):`${ap(e)}=${ap(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function QY(t){return encodeURI(t)}(n.fragment)}`:""}`}}const YY=new Vb;function sp(t){return t.segments.map(n=>GI(n)).join("/")}function Gu(t,n){if(!t.hasChildren())return sp(t);if(n){const e=t.children[Ut]?Gu(t.children[Ut],!1):"",i=[];return Ai(t.children,(r,o)=>{o!==Ut&&i.push(`${o}:${Gu(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function KY(t,n){let e=[];return Ai(t.children,(i,r)=>{r===Ut&&(e=e.concat(n(i,r)))}),Ai(t.children,(i,r)=>{r!==Ut&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===Ut?[Gu(t.children[Ut],!1)]:[`${r}:${Gu(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ut]?`${sp(t)}/${e[0]}`:`${sp(t)}/(${e.join("//")})`}}function jI(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ap(t){return jI(t).replace(/%3B/gi,";")}function Ub(t){return jI(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lp(t){return decodeURIComponent(t)}function HI(t){return lp(t.replace(/\+/g,"%20"))}function GI(t){return`${Ub(t.path)}${function XY(t){return Object.keys(t).map(n=>`;${Ub(n)}=${Ub(t[n])}`).join("")}(t.parameters)}`}const JY=/^[^\/()?;=#]+/;function cp(t){const n=t.match(JY);return n?n[0]:""}const eQ=/^[^=?&#]+/,nQ=/^[^&#]+/;class rQ{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[Ut]=new Gt(n,e)),i}parseSegment(){const n=cp(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Te(4009,!1);return this.capture(n),new Hu(lp(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=cp(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=cp(this.remaining);r&&(i=r,this.capture(i))}n[lp(e)]=lp(i)}parseQueryParam(n){const e=function tQ(t){const n=t.match(eQ);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function iQ(t){const n=t.match(nQ);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=HI(e),o=HI(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=cp(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Te(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Ut);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ut]: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 jb(t){return t.segments.length>0?new Gt([],{[Ut]:t}):t}function up(t){const n={};for(const i of Object.keys(t.children)){const o=up(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function oQ(t){if(1===t.numberOfChildren&&t.children[Ut]){const n=t.children[Ut];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 lQ(t,n,e,i,r){var o;if(0===e.length)return ql(n.root,n.root,n.root,i,r);const a=function WI(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new qI(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Ai(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new qI(e,n,i)}(e);return a.toRoot()?ql(n.root,n.root,new Gt([],{}),i,r):function l(u){var d;const p=function uQ(t,n,e,i){if(t.isAbsolute)return new Wl(n.root,!0,0);if(-1===i)return new Wl(e,e===n.root,0);return function $I(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Te(4005,!1);r=i.segments.length}return new Wl(i,!1,r-o)}(e,i+(zu(t.commands[0])?0:1),t.numberOfDoubleDots)}(a,n,null===(d=t.snapshot)||void 0===d?void 0:d._urlSegment,u),D=p.processChildren?Wu(p.segmentGroup,p.index,a.commands):Gb(p.segmentGroup,p.index,a.commands);return ql(n.root,p.segmentGroup,D,i,r)}(null===(o=t.snapshot)||void 0===o?void 0:o._lastPathIndex)}function zu(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function qu(t){return"object"==typeof t&&null!=t&&t.outlets}function ql(t,n,e,i,r){let s,o={};i&&Ai(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:zI(t,n,e);const a=jb(up(s));return new ha(a,o,r)}function zI(t,n,e){const i={};return Ai(t.children,(r,o)=>{i[o]=r===n?e:zI(r,n,e)}),new Gt(t.segments,i)}class qI{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&zu(i[0]))throw new Te(4003,!1);const r=i.find(qu);if(r&&r!==PI(i))throw new Te(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wl{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 Wu(t,n,e);const i=function hQ(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(qu(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!YI(l,c,s))return o;i+=2}else{if(!YI(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=Gb(t.children[s],n,o))}),Ai(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Gt(t.segments,r)}}function zb(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=zb(new Gt([],{}),0,e))}),n}function KI(t){const n={};return Ai(t,(e,i)=>n[i]=`${e}`),n}function YI(t,n,e){return t==e.path&&Co(n,e.parameters)}class Yo{constructor(n,e){this.id=n,this.url=e}}class qb extends Yo{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ga extends Yo{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 dp extends Yo{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class QI extends Yo{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class pQ extends Yo{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gQ extends Yo{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mQ extends Yo{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vQ extends Yo{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _Q extends Yo{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bQ{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yQ{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class CQ{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EQ{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SQ{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AQ{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XI{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(r=>r.value).filter(r=>r!==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 Qo{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function $l(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class JI extends ZI{constructor(n,e){super(n),this.snapshot=e,Kb(this,n)}toString(){return this.snapshot.toString()}}function e1(t,n){const e=function DQ(t,n){const s=new hp([],{},{},"",{},Ut,n,null,t.root,-1,{});return new n1("",new Qo(s,[]))}(t,n),i=new ft([new Hu("",{})]),r=new ft({}),o=new ft({}),s=new ft({}),a=new ft(""),l=new ma(i,r,s,a,o,Ut,n,e.root);return l.snapshot=e.root,new JI(new Qo(l,[]),e)}class ma{constructor(n,e,i,r,o,s,a,l){var c,u;this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=null!==(u=null===(c=this.data)||void 0===c?void 0:c.pipe(je(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(je(n=>zl(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(je(n=>zl(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function t1(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function TQ(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 hp{constructor(n,e,i,r,o,s,a,l,c,u,d,p){var D;this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=null===(D=this.data)||void 0===D?void 0:D[ju],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=null!=p?p: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=zl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class n1 extends ZI{constructor(n,e){super(e),this.url=n,Kb(this,e)}toString(){return r1(this._root)}}function Kb(t,n){n.value._routerState=t,n.children.forEach(e=>Kb(t,e))}function r1(t){const n=t.children.length>0?` { ${t.children.map(r1).join(", ")} } `:"";return`${t.value}${n}`}function Yb(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Co(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Co(n.params,e.params)||t.params.next(e.params),function HY(t,n){if(t.length!==n.length)return!1;for(let e=0;eCo(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Qb(t.parent,n.parent))}function $u(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function MQ(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return $u(t,i,r);return $u(t,i)})}(t,n,e);return new Qo(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>$u(t,a)),s}}const i=function OQ(t){return new ma(new ft(t.url),new ft(t.params),new ft(t.queryParams),new ft(t.fragment),new ft(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>$u(t,o));return new Qo(i,r)}}const Xb="ngNavigationCancelingError";function o1(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=pa(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=s1(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function s1(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[Xb]=!0,i.cancellationCode=n,e&&(i.url=e),i}function a1(t){return l1(t)&&pa(t.url)}function l1(t){return t&&t[Xb]}class IQ{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ku,this.attachRef=null}}let Ku=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}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 IQ,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 fp=!1;let c1=(()=>{class t{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,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=r||Ut,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,fp);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Te(4012,fp);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Te(4012,fp);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,fp);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new RQ(e,a,r.injector);if(i&&function kQ(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.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(Ku),h(an),$r("name"),h(Vt),h(rs))},t.\u0275dir=me({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),t})();class RQ{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===ma?this.route:n===Ku?this.childContexts:this.parent.get(n,e)}}let Zb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],standalone:!0,features:[vA],decls:1,vars:0,template:function(e,i){1&e&&Ze(0,"router-outlet")},dependencies:[c1],encapsulation:2}),t})();function u1(t,n){var e;return t.providers&&!t._injector&&(t._injector=ch(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!==Ut&&(e.component=Zb),e}function Fr(t){return t.outlet||Ut}function d1(t,n){const e=t.filter(i=>Fr(i)===n);return e.push(...t.filter(i=>Fr(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 BQ{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Yb(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=$l(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Ai(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&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),r=i&&n.value.component?i.children:e,o=$l(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);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),r=i&&n.value.component?i.children:e,o=$l(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=$l(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new AQ(o.value.snapshot))}),n.children.length&&this.forwardEvent(new EQ(n.value.snapshot))}activateRoutes(n,e,i){var r;const o=n.value,s=e?e.value:null;if(Yb(o),o===s)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const l=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),Yb(l.route.value),this.activateChildRoutes(n,null,a.children)}else{const l=Yu(o.snapshot),c=null!==(r=null==l?void 0:l.get(Io))&&void 0!==r?r:null;a.attachRef=null,a.route=o,a.resolver=c,a.injector=l,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class h1{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class pp{constructor(n,e){this.component=n,this.route=e}}function VQ(t,n,e){const i=t._root;return Qu(i,n?n._root:null,e,[i.value])}function Kl(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function nP(t){return null!==hd(t)}(t)?n.get(t):t:i}function Qu(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=$l(n);return t.children.forEach(s=>{(function jQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function HQ(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)||!Co(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qb(t,n)||!Co(t.queryParams,n.queryParams);default:return!Qb(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new h1(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Qu(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new pp(a.outlet.component,s))}else s&&Xu(n,a,r),r.canActivateChecks.push(new h1(i)),Qu(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Ai(o,(s,a)=>Xu(s,e.getContext(a),r)),r}function Xu(t,n,e){const i=$l(t),r=t.value;Ai(i,(o,s)=>{Xu(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new pp(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Zu(t){return"function"==typeof t}function ty(t){return t instanceof ip||"EmptyError"===(null==t?void 0:t.name)}const gp=Symbol("INITIAL_VALUE");function Yl(){return ki(t=>p_(t.map(n=>n.pipe(yn(1),vi(gp)))).pipe(je(n=>{for(const e of n)if(!0!==e){if(e===gp)return gp;if(!1===e||e instanceof ha)return e}return!0}),Wt(n=>n!==gp),yn(1)))}function f1(t){return function z(...t){return K(t)}(Yn(n=>{if(pa(n))throw o1(0,n)}),je(n=>!0===n))}const ny={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function p1(t,n,e,i,r){const o=iy(t,n,e);return o.matched?function oX(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?nt(r.map(s=>{const a=Kl(s,t);return Ms(function KQ(t){return t&&Zu(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Yl(),f1()):nt(!0)}(i=u1(n,i),n,e).pipe(je(s=>!0===s?o:Object.assign({},ny))):nt(o)}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 o=(n.matcher||jY)(e,t,n);if(!o)return Object.assign({},ny);const s={};Ai(o.posParams,(l,c)=>{s[c]=l.path});const a=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:null!==(i=o.posParams)&&void 0!==i?i:{}}}function mp(t,n,e,i,r="corrected"){if(e.length>0&&function lX(t,n,e){return e.some(i=>vp(t,n,i)&&Fr(i)!==Ut)}(t,e,i)){const s=new Gt(n,function aX(t,n,e,i){const r={};r[Ut]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Fr(o)!==Ut){const s=new Gt([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Fr(o)]=s}return r}(t,n,i,new Gt(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function cX(t,n,e){return e.some(i=>vp(t,n,i))}(t,e,i)){const s=new Gt(t.segments,function sX(t,n,e,i,r,o){const s={};for(const a of i)if(vp(t,e,a)&&!r[Fr(a)]){const l=new Gt([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:n.length,s[Fr(a)]=l}return Object.assign(Object.assign({},r),s)}(t,n,e,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const o=new Gt(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}function vp(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function g1(t,n,e,i){return!!(Fr(t)===i||i!==Ut&&vp(n,e,t))&&("**"===t.path||iy(n,t,e).matched)}function m1(t,n,e){return 0===n.length&&!t.children[e]}const _p=!1;class bp{constructor(n){this.segmentGroup=n||null}}class v1{constructor(n){this.urlTree=n}}function Ju(t){return Pl(new bp(t))}function _1(t){return Pl(new v1(t))}class fX{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=mp(this.urlTree.root,[],[],this.config).segmentGroup,e=new Gt(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Ut).pipe(je(o=>this.createUrlTree(up(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(zo(o=>{if(o instanceof v1)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof bp?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Ut).pipe(je(r=>this.createUrlTree(up(r),n.queryParams,n.fragment))).pipe(zo(r=>{throw r instanceof bp?this.noMatchError(r):r}))}noMatchError(n){return new Te(4002,_p)}createUrlTree(n,e,i){const r=jb(n);return new ha(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(je(o=>new Gt([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Xn(r).pipe(gs(o=>{const s=i.children[o],a=d1(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(je(l=>({segment:l,outlet:o})))}),OI((o,s)=>(o[s.outlet]=s.segment,o),{}),II())}expandSegment(n,e,i,r,o,s){return Xn(i).pipe(gs(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(zo(c=>{if(c instanceof bp)return nt(null);throw c}))),xs(a=>!!a),zo((a,l)=>{if(ty(a))return m1(e,r,o)?nt(new Gt([],{})):Ju(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return g1(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):Ju(e):Ju(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?_1(o):this.lineralizeSegments(i,o).pipe(ci(s=>{const a=new Gt(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=iy(e,r,o);if(!a)return Ju(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?_1(d):this.lineralizeSegments(r,d).pipe(ci(p=>this.expandSegment(n,e,i,p.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=u1(i,n),i.loadChildren?(i._loadedRoutes?nt({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(je(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Gt(r,{})))):nt(new Gt(r,{}))):p1(e,i,r,n).pipe(ki(({matched:s,consumedSegments:a,remainingSegments:l})=>{var c;return s?(n=null!==(c=i._injector)&&void 0!==c?c:n,this.getChildConfig(n,i,r).pipe(ci(d=>{var p;const D=null!==(p=d.injector)&&void 0!==p?p:n,H=d.routes,{segmentGroup:ne,slicedSegments:fe}=mp(e,a,l,H),he=new Gt(ne.segments,ne.children);if(0===fe.length&&he.hasChildren())return this.expandChildren(D,H,he).pipe(je(He=>new Gt(a,He)));if(0===H.length&&0===fe.length)return nt(new Gt(a,{}));const _e=Fr(i)===o;return this.expandSegment(D,he,H,fe,_e?Ut:o,!0).pipe(je(ve=>new Gt(a.concat(ve.segments),ve.children)))}))):Ju(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 rX(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?nt(!0):nt(r.map(s=>{const a=Kl(s,t);return Ms(function zQ(t){return t&&Zu(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Yl(),f1())}(n,e,i).pipe(ci(r=>r?this.configLoader.loadChildren(n,e).pipe(Yn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function dX(t){return Pl(s1(_p,3))}())):nt({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return nt(i);if(r.numberOfChildren>1||!r.children[Ut])return Pl(new Te(4e3,_p));r=r.children[Ut]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new ha(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Ai(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Ai(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new Gt(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Te(4001,_p);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class gX{}class _X{constructor(n,e,i,r,o,s,a,l){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=mp(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ut).pipe(je(e=>{if(null===e)return null;const i=new hp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ut,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Qo(i,e),o=new n1(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=t1(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return Xn(Object.keys(i.children)).pipe(gs(r=>{const o=i.children[r],s=d1(e,r);return this.processSegmentGroup(n,s,o,r)}),OI((r,o)=>r&&o?(r.push(...o),r):null),$T(r=>null!==r),rp(null),II(),je(r=>{if(null===r)return null;const o=b1(r);return function bX(t){t.sort((n,e)=>n.value.outlet===Ut?-1:e.value.outlet===Ut?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return Xn(e).pipe(gs(s=>{var a;return this.processSegmentAgainstRoute(null!==(a=s._injector)&&void 0!==a?a:n,s,i,r,o)}),xs(s=>!!s),zo(s=>{if(ty(s))return m1(i,r,o)?nt([]):nt(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){var s,a;if(e.redirectTo||!g1(e,i,r,o))return nt(null);let l;if("**"===e.path){const c=r.length>0?PI(r).parameters:{},u=C1(i)+r.length;l=nt({snapshot:new hp(r,c,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,S1(e),Fr(e),null!==(a=null!==(s=e.component)&&void 0!==s?s:e._loadedComponent)&&void 0!==a?a:null,e,y1(i),u,A1(e),u),consumedSegments:[],remainingSegments:[]})}else l=p1(i,e,r,n).pipe(je(({matched:c,consumedSegments:u,remainingSegments:d,parameters:p})=>{var D,H;if(!c)return null;const ne=C1(i)+u.length;return{snapshot:new hp(u,p,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,S1(e),Fr(e),null!==(H=null!==(D=e.component)&&void 0!==D?D:e._loadedComponent)&&void 0!==H?H:null,e,y1(i),ne,A1(e),ne),consumedSegments:u,remainingSegments:d}}));return l.pipe(ki(c=>{var u,d;if(null===c)return nt(null);const{snapshot:p,consumedSegments:D,remainingSegments:H}=c;n=null!==(u=e._injector)&&void 0!==u?u:n;const ne=null!==(d=e._loadedInjector)&&void 0!==d?d:n,fe=function yX(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:he,slicedSegments:_e}=mp(i,D,H,fe.filter(ve=>void 0===ve.redirectTo),this.relativeLinkResolution);if(0===_e.length&&he.hasChildren())return this.processChildren(ne,fe,he).pipe(je(ve=>null===ve?null:[new Qo(p,ve)]));if(0===fe.length&&0===_e.length)return nt([new Qo(p,[])]);const ge=Fr(e)===o;return this.processSegment(ne,fe,he,_e,ge?Ut:o).pipe(je(ve=>null===ve?null:[new Qo(p,ve)]))}))}}function CX(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function b1(t){const n=[],e=new Set;for(const i of t){if(!CX(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=b1(i.children);n.push(new Qo(i.value,r))}return n.filter(i=>!e.has(i))}function y1(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function C1(t){var n,e;let i=t,r=null!==(n=i._segmentIndexShift)&&void 0!==n?n:0;for(;i._sourceSegment;)i=i._sourceSegment,r+=null!==(e=i._segmentIndexShift)&&void 0!==e?e:0;return r-1}function S1(t){return t.data||{}}function A1(t){return t.resolve||{}}function w1(t){return"string"==typeof t.title||null===t.title}function ry(t){return ki(n=>{const e=t(n);return e?Xn(e).pipe(je(()=>n)):nt(n)})}let D1=(()=>{class t{buildTitle(e){var i;let r,o=e.root;for(;void 0!==o;)r=null!==(i=this.getResolvedTitleForRoute(o))&&void 0!==i?i:r,o=o.children.find(s=>s.outlet===Ut);return r}getResolvedTitleForRoute(e){return e.data[ju]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:function(){return cn(T1)},providedIn:"root"}),t})(),T1=(()=>{class t extends D1{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)(re(AD))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class MX{}class IX extends class OX{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const Cp=new Pe("",{providedIn:"root",factory:()=>({})}),oy=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=Ms(e.loadComponent()).pipe(Yn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Ef(()=>{this.componentLoaders.delete(e)})),r=new xI(i,()=>new ue).pipe(Lb());return this.componentLoaders.set(e,r),r}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 o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(je(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=kI(l.get(oy,[],gt.Self|gt.Optional)));return{routes:c.map(ey),injector:l}}),Ef(()=>{this.childrenLoaders.delete(i)})),s=new xI(o,()=>new ue).pipe(Lb());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Ms(e()).pipe(ci(i=>i instanceof gA||Array.isArray(i)?nt(i):Xn(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)(re(pn),re(Wm))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class kX{}class PX{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function NX(t){throw t}function LX(t,n,e){return n.parse("/")}const FX={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},BX={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function M1(){var t,n;const e=cn(UI),i=cn(Ku),r=cn(Yc),o=cn(pn),s=cn(Wm),a=null!==(t=cn(oy,{optional:!0}))&&void 0!==t?t:[],l=null!==(n=cn(Cp,{optional:!0}))&&void 0!==n?n:{},c=cn(T1),u=cn(D1,{optional:!0}),d=cn(kX,{optional:!0}),p=cn(MX,{optional:!0}),D=new wi(null,e,i,r,o,s,kI(a));return d&&(D.urlHandlingStrategy=d),p&&(D.routeReuseStrategy=p),D.titleStrategy=null!=u?u:c,function VX(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,D),D}let wi=(()=>{class t{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ue,this.errorHandler=NX,this.malformedUriErrorHandler=LX,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>nt(void 0),this.urlHandlingStrategy=new PX,this.routeReuseStrategy=new IX,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(sy),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new yQ(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new bQ(p)),this.ngModule=s.get(Hs),this.console=s.get(w3);const d=s.get(lt);this.isNgZoneEnabled=d instanceof lt&<.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function GY(){return new ha(new Gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=e1(this.currentUrlTree,this.rootComponentType),this.transitions=new ft({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(r=>0!==r.id),je(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ki(r=>{let o=!1,s=!1;return nt(r).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}}),ki(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 O1(a.source)&&(this.browserUrlTree=a.extractedUrl),nt(a).pipe(ki(d=>{const p=this.transitions.getValue();return i.next(new qb(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),p!==this.transitions.getValue()?jr:Promise.resolve(d)}),function pX(t,n,e,i){return ki(r=>function hX(t,n,e,i,r){return new fX(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(je(o=>Object.assign(Object.assign({},r),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Yn(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects}),r.urlAfterRedirects=d.urlAfterRedirects}),function SX(t,n,e,i,r,o){return ci(s=>function vX(t,n,e,i,r,o,s="emptyOnly",a="legacy"){return new _X(t,n,e,i,r,s,a,o).recognize().pipe(ki(l=>null===l?function mX(t){return new O(n=>n.error(t))}(new gX):nt(l)))}(t,n,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(je(a=>Object.assign(Object.assign({},s),{targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Yn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const D=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(D,d)}this.browserUrlTree=d.urlAfterRedirects}const p=new pQ(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(p)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:D,source:H,restoredState:ne,extras:fe}=a,he=new qb(p,this.serializeUrl(D),H,ne);i.next(he);const _e=e1(D,this.rootComponentType).snapshot;return nt(r=Object.assign(Object.assign({},a),{targetSnapshot:_e,urlAfterRedirects:D,extras:Object.assign(Object.assign({},fe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),jr}),Yn(a=>{const l=new gQ(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),je(a=>r=Object.assign(Object.assign({},a),{guards:VQ(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function QQ(t,n){return ci(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?nt(Object.assign(Object.assign({},e),{guardsResult:!0})):function XQ(t,n,e,i){return Xn(t).pipe(ci(r=>function iX(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?nt(o.map(a=>{var l;const c=null!==(l=Yu(n))&&void 0!==l?l:r,u=Kl(a,c);return Ms(function $Q(t){return t&&Zu(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):c.runInContext(()=>u(t,n,e,i))).pipe(xs())})).pipe(Yl()):nt(!0)}(r.component,r.route,e,n,i)),xs(r=>!0!==r,!0))}(s,i,r,t).pipe(ci(a=>a&&function GQ(t){return"boolean"==typeof t}(a)?function ZQ(t,n,e,i){return Xn(n).pipe(gs(r=>pu(function eX(t,n){return null!==t&&n&&n(new CQ(t)),nt(!0)}(r.route.parent,i),function JQ(t,n){return null!==t&&n&&n(new SQ(t)),nt(!0)}(r.route,i),function nX(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function UQ(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=>Eu(()=>nt(s.guards.map(l=>{var c;const u=null!==(c=Yu(s.node))&&void 0!==c?c:e,d=Kl(l,u);return Ms(function WQ(t){return t&&Zu(t.canActivateChild)}(d)?d.canActivateChild(i,t):u.runInContext(()=>d(i,t))).pipe(xs())})).pipe(Yl())));return nt(o).pipe(Yl())}(t,r.path,e),function tX(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return nt(!0);const r=i.map(o=>Eu(()=>{var s;const a=null!==(s=Yu(n))&&void 0!==s?s:e,l=Kl(o,a);return Ms(function qQ(t){return t&&Zu(t.canActivate)}(l)?l.canActivate(n,t):a.runInContext(()=>l(n,t))).pipe(xs())}));return nt(r).pipe(Yl())}(t,r.route,e))),xs(r=>!0!==r,!0))}(i,o,t,n):nt(a)),je(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Yn(a=>{if(r.guardsResult=a.guardsResult,pa(a.guardsResult))throw o1(0,a.guardsResult);const l=new mQ(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)),ry(a=>{if(a.guards.canActivateChecks.length)return nt(a).pipe(Yn(l=>{const c=new vQ(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),ki(l=>{let c=!1;return nt(l).pipe(function AX(t,n){return ci(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return nt(e);let o=0;return Xn(r).pipe(gs(s=>function wX(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==(null==r?void 0:r.title)&&!w1(r)&&(o[ju]=r.title),function DX(t,n,e,i){const r=function TX(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return nt({});const o={};return Xn(r).pipe(ci(s=>function xX(t,n,e,i){var r;const o=null!==(r=Yu(n))&&void 0!==r?r:i,s=Kl(t,o);return Ms(s.resolve?s.resolve(n,e):o.runInContext(()=>s(n,e)))}(t[s],n,e,i).pipe(xs(),Yn(a=>{o[s]=a}))),Fb(1),Xf(o),zo(s=>ty(s)?jr:Pl(s)))}(o,t,n,i).pipe(je(s=>(t._resolvedData=s,t.data=t1(t,e).resolve,r&&w1(r)&&(t.data[ju]=r.title),null)))}(s.route,i,t,n)),Yn(()=>o++),Fb(1),ci(s=>o===r.length?nt(e):jr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Yn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Yn(l=>{const c=new _Q(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),ry(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(p=>{c.component=p}),je(()=>{})));for(const p of c.children)d.push(...l(p));return d};return p_(l(a.targetSnapshot.root)).pipe(rp(),yn(1))}),ry(()=>this.afterPreactivation()),je(a=>{const l=function xQ(t,n,e){const i=$u(t,n._root,e?e._root:void 0);return new JI(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r=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)=>je(i=>(new BQ(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Yn({next(){o=!0},complete(){o=!0}}),Ef(()=>{var a;o||s||this.cancelNavigationTransition(r,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),zo(a=>{var l;if(s=!0,l1(a)){a1(a)||(this.navigated=!0,this.restoreHistory(r,!0));const c=new dp(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(c),a1(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||O1(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const c=new QI(r.id,this.serializeUrl(r.extractedUrl),a,null!==(l=r.targetSnapshot)&&void 0!==l?l:void 0);i.next(c);try{r.resolve(this.errorHandler(a))}catch(u){r.reject(u)}}return jr}))}))}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 r;const o={replaceUrl:!0},s=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,s,o)},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:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),lQ(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=pa(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function UX(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),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,r,o,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((H,ne)=>{c=H,u=ne});const p=++this.navigationId;let D;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),D=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):D=0,this.setTransition({id:p,targetPageId:D,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:c,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(H=>Promise.reject(H))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){var r,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.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,r){const o=new dp(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),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 O1(t){return"imperative"!==t}class I1{}let GX=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Wt(e=>e instanceof ga),gs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){var r,o,s;const a=[];for(const l of i){l.providers&&!l._injector&&(l._injector=ch(l.providers,e,`Route: ${l.path}`));const c=null!==(r=l._injector)&&void 0!==r?r:e,u=null!==(o=l._loadedInjector)&&void 0!==o?o: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 Xn(a).pipe(Sa())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):nt(null);const o=r.pipe(ci(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?Xn([o,this.loader.loadComponent(i)]).pipe(Sa()):o})}}return t.\u0275fac=function(e){return new(e||t)(re(wi),re(Wm),re(rs),re(I1),re(sy))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cy=new Pe("");let R1=(()=>{class t{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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 XI&&(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 XI(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:oy,multi:!0,useValue:t}]}function P1(){const t=cn(pn);return n=>{var e,i;const r=t.get(Gs);if(n!==r.components[0])return;const o=t.get(wi),s=t.get(N1);1===t.get(dy)&&o.initialNavigation(),null===(e=t.get(L1,null,gt.Optional))||void 0===e||e.setUpPreloading(),null===(i=t.get(cy,null,gt.Optional))||void 0===i||i.init(),o.resetRootComponentType(r.componentTypes[0]),s.next(),s.complete()}}const N1=new Pe("",{factory:()=>new ue}),dy=new Pe("",{providedIn:"root",factory:()=>1});const L1=new Pe("");function $X(t){return Ql(0,[{provide:L1,useExisting:GX},{provide:I1,useExisting:t}])}const F1=new Pe("ROUTER_FORROOT_GUARD"),KX=[Yc,{provide:UI,useClass:Vb},{provide:wi,useFactory:M1},Ku,{provide:ma,useFactory:function k1(t){return t.routerState.root},deps:[wi]},sy];function YX(){return new hw("Router",wi)}let QX=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[KX,[],uy(e),{provide:F1,useFactory:eZ,deps:[[wi,new is,new Ua]]},{provide:Cp,useValue:i||{}},null!=i&&i.useHash?{provide:Ws,useClass:fU}:{provide:Ws,useClass:Lw},{provide:cy,useFactory:()=>{const t=cn(wi),n=cn(E4),e=cn(Cp);return e.scrollOffset&&n.setOffset(e.scrollOffset),new R1(t,n,e)}},null!=i&&i.preloadingStrategy?$X(i.preloadingStrategy).\u0275providers:[],{provide:hw,multi:!0,useFactory:YX},null!=i&&i.initialNavigation?tZ(i):[],[{provide:B1,useFactory:P1},{provide:qm,multi:!0,useExisting:B1}]]}}static forChild(e){return{ngModule:t,providers:[uy(e)]}}}return t.\u0275fac=function(e){return new(e||t)(re(F1,8))},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[Zb]}),t})();function eZ(t){return"guarded"}function tZ(t){return["disabled"===t.initialNavigation?Ql(3,[{provide:fh,multi:!0,useFactory:()=>{const n=cn(wi);return()=>{n.setUpLocationChangeListener()}}},{provide:dy,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ql(2,[{provide:dy,useValue:0},{provide:fh,multi:!0,deps:[pn],useFactory:n=>{const e=n.get(dU,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(o=>{const s=n.get(wi),a=n.get(N1);(function r(o){n.get(wi).events.pipe(Wt(a=>a instanceof ga||a instanceof dp||a instanceof QI),je(a=>a instanceof ga||a instanceof dp&&(0===a.code||1===a.code)&&null),Wt(a=>null!==a),yn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?nt(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const B1=new Pe("");let oZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[vf,Tt,vf,Tt]}),t})(),mZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[zi,Tt,Tt]}),t})();function vZ(t,n){if(1&t){const e=st();I(0,"div",3)(1,"button",4),we("click",function(){return xe(e),Me(ie().close())}),se(2),ye(3,"translate"),B()()}2&t&&(A(2),Ne(Se(3,1,"PANEL.CLOSE")))}function _Z(t,n){if(1&t){const e=st();I(0,"div",3)(1,"button",4),we("click",function(){return xe(e),Me(ie().seeMore())}),I(2,"span"),se(3),ye(4,"translate"),B(),I(5,"mat-icon"),se(6,"open_in_new"),B()(),I(7,"button",4),we("click",function(){return xe(e),Me(ie().close())}),se(8),ye(9,"translate"),B()()}2&t&&(A(3),Ne(Se(4,2,"PANEL.SEE_MORE")),A(5),Ne(Se(9,4,"PANEL.CLOSE")))}function bZ(t,n){if(1&t){const e=st();I(0,"div",3)(1,"button",4),we("click",function(){return xe(e),Me(ie().close())}),se(2),ye(3,"translate"),B()()}2&t&&(A(2),Ne(Se(3,1,"PANEL.CLOSE")))}const NZ=["captionEventElement"],LZ=function(t){return{"captions-offset":t}};function FZ(t,n){if(1&t){const e=st();I(0,"div",6)(1,"button",7),we("click",function(){return xe(e),Me(ie().onSettingsCliked())}),I(2,"mat-icon",8),se(3,"settings"),B(),I(4,"span"),se(5),B()()()}if(2&t){const e=ie(),i=ji(1);j("ngClass",Jn(2,LZ,i.offsetWidth>=1e3)),A(5),Ne(e.captionLangSelected.name)}}const BZ=function(t){return{color:t}},VZ=function(t){return{"going-to-disappear":t}};function UZ(t,n){if(1&t&&(I(0,"div",11)(1,"p",12),se(2),B(),I(3,"div",13,14)(5,"span",15),se(6),B()()()),2&t){const e=n.$implicit,i=n.index,r=ie(2);j("@captionAnimation",void 0),A(1),j("ngStyle",Jn(5,BZ,e.color)),A(1),wn(" ",e.nickname," "),A(1),j("ngClass",Jn(7,VZ,0===i&&r.captionEvents.length===r.MAX_EVENTS_LIMIT)),A(3),Ne(e.text)}}const jZ=function(t,n,e,i,r,o,s){return{"events-one":t,"events-two":n,"events-three":e,"screen-xl":i,"screen-md":r,"screen-sm":o,"screen-xs":s}};function HZ(t,n){if(1&t&&(I(0,"div",9),Z(1,UZ,7,9,"div",10),B()),2&t){const e=ie(),i=ji(1);j("ngClass",DA(2,jZ,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),j("ngForOf",e.captionEvents)}}function GZ(t,n){1&t&&(I(0,"div",16),Ze(1,"mat-spinner",17),I(2,"span"),se(3),ye(4,"translate"),B()()),2&t&&(A(1),j("diameter",20),A(2),Ne(Se(4,2,"ERRORS.SST_CONNECTION")))}function zZ(t,n){1&t&&Ze(0,"div",18)}const qZ=["stream"],H1=["layout"];function WZ(t,n){1&t&&nn(0)}const G1=function(t){return{OV_big:t}},_a=function(t){return{$implicit:t}};function $Z(t,n){if(1&t&&(I(0,"div",6),Z(1,WZ,1,0,"ng-container",7),B()),2&t){const e=n.$implicit,i=ie();j("ngClass",Jn(3,G1,e.videoEnlarged)),A(1),j("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",Jn(5,_a,e))}}function KZ(t,n){1&t&&nn(0)}function YZ(t,n){if(1&t&&(I(0,"div",8),Z(1,KZ,1,0,"ng-container",7),B()),2&t){const e=n.$implicit,i=ie();j("ngClass",Jn(3,G1,e.videoEnlarged)),A(1),j("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",Jn(5,_a,e))}}function QZ(t,n){1&t&&Ze(0,"ov-captions",9)}function XZ(t,n){1&t&&(I(0,"mat-icon",10),se(1," video_camera_front "),B())}function ZZ(t,n){1&t&&(I(0,"mat-icon"),se(1,"error"),B())}function JZ(t,n){1&t&&(I(0,"mat-icon",11),se(1,"radio_button_checked"),B())}function eJ(t,n){1&t&&(I(0,"div"),Ze(1,"img",17),B())}function tJ(t,n){1&t&&(I(0,"h2"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.RECORDING.CONTENT_TITLE")))}function nJ(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.RECORDING.CONTENT_SUBTITLE")))}function iJ(t,n){if(1&t){const e=st();I(0,"button",23),we("click",function(){return xe(e),Me(ie(3).stopRecording())}),I(1,"span"),se(2),ye(3,"translate"),B()()}2&t&&(A(2),Ne(Se(3,1,"TOOLBAR.STOP_RECORDING")))}function rJ(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.START_RECORDING")))}function oJ(t,n){if(1&t){const e=st();I(0,"button",24),we("click",function(){return xe(e),Me(ie(3).startRecording())}),Z(1,rJ,3,3,"span",3),B()}if(2&t){const e=ie(3);A(1),j("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED)}}function sJ(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),wn("",Se(2,1,"PANEL.RECORDING.STARTING")," "))}function aJ(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),wn("",Se(2,1,"PANEL.RECORDING.STOPPING")," "))}function lJ(t,n){1&t&&(I(0,"span"),se(1,"Message: "),B())}function cJ(t,n){if(1&t&&(I(0,"span",25),se(1),ye(2,"json"),B()),2&t){const e=ie(3);A(1),wn("",Se(2,1,e.recordingError)," ")}}function uJ(t,n){if(1&t){const e=st();I(0,"button",26),we("click",function(){return xe(e),Me(ie(3).resetStatus())}),I(1,"span"),se(2),ye(3,"translate"),B()()}2&t&&(A(2),Ne(Se(3,1,"PANEL.RECORDING.RESTORE")))}function dJ(t,n){if(1&t&&(I(0,"div",18),Z(1,iJ,4,3,"button",19),Z(2,oJ,2,1,"button",20),Z(3,sJ,3,3,"span",3),Z(4,aJ,3,3,"span",3),Z(5,lJ,2,0,"span",3),Z(6,cJ,3,3,"span",21),I(7,"div"),Z(8,uJ,4,3,"button",22),B()()),2&t){const e=ie(2);A(1),j("ngIf",e.recordingAlive),A(1),j("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED),A(1),j("ngIf",e.recordingStatus===e.recStatusEnum.STARTING),A(1),j("ngIf",e.recordingStatus===e.recStatusEnum.STOPPING),A(1),j("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),A(1),j("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),A(2),j("ngIf",e.recordingStatus===e.recStatusEnum.FAILED)}}function hJ(t,n){1&t&&(I(0,"p",27),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.RECORDING.NO_MODERATOR")))}function fJ(t,n){1&t&&Ze(0,"mat-divider")}function pJ(t,n){if(1&t){const e=st();I(0,"button",41),we("click",function(){xe(e);const r=ie().$implicit;return Me(ie(3).deleteRecording(r.id))}),ye(1,"translate"),I(2,"mat-icon"),se(3,"delete"),B()()}2&t&&Ht("matTooltip",Se(1,1,"PANEL.RECORDING.DELETE"))}function gJ(t,n){if(1&t){const e=st();I(0,"mat-list-item")(1,"mat-icon",31),se(2,"video_file"),B(),I(3,"div",32)(4,"span",33),se(5),B()(),I(6,"div",34)(7,"span",35),se(8),ye(9,"duration"),B(),I(10,"span",36),se(11),ye(12,"number"),B()(),I(13,"div",37),se(14),ye(15,"date"),B(),I(16,"button",38),we("click",function(){const o=xe(e).$implicit;return Me(ie(3).play(o))}),ye(17,"translate"),I(18,"mat-icon"),se(19,"play_arrow"),B()(),I(20,"button",39),we("click",function(){const o=xe(e).$implicit;return Me(ie(3).download(o))}),ye(21,"translate"),I(22,"mat-icon"),se(23,"download"),B()(),Z(24,pJ,4,3,"button",40),B()}if(2&t){const e=n.$implicit,i=ie(3);A(5),Ne(e.id),A(3),wn(" ",Se(9,7,e.duration)," "),A(3),wn(" | ",ls(12,9,e.size/1024/1024,"1.1-2")," MBs"),A(3),Ne(ls(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),j("ngIf",i.isSessionCreator)}}function mJ(t,n){if(1&t&&(I(0,"div",28)(1,"mat-list")(2,"div",29),se(3),ye(4,"translate"),B(),Z(5,gJ,25,19,"mat-list-item",30),B()()),2&t){const e=ie(2);A(3),Ne(Se(4,2,"PANEL.RECORDING.RECORDINGS")),A(2),j("ngForOf",e.recordingsList)}}function vJ(t,n){if(1&t&&(I(0,"div",12)(1,"div",13),Z(2,eJ,2,0,"div",3),Z(3,tJ,3,3,"h2",3),Z(4,nJ,3,3,"span",3),Z(5,dJ,9,7,"div",14),Z(6,hJ,3,3,"p",15),B(),Z(7,fJ,1,0,"mat-divider",3),Z(8,mJ,6,4,"div",16),B()),2&t){const e=ie();A(2),j("ngIf",0===e.recordingsList.length),A(1),j("ngIf",0===e.recordingsList.length),A(1),j("ngIf",0===e.recordingsList.length),A(1),j("ngIf",e.isSessionCreator),A(1),j("ngIf",!e.isSessionCreator),A(1),j("ngIf",e.recordingsList.length>0),A(1),j("ngIf",e.recordingsList.length>0)}}const z1=function(t){return{"no-body":t}},wp=function(t,n,e,i){return{started:t,stopped:n,failed:e,pending:i}};function _J(t,n){1&t&&(I(0,"mat-icon",10),se(1," sensors "),B())}function bJ(t,n){1&t&&(I(0,"mat-icon"),se(1,"error"),B())}function yJ(t,n){1&t&&(I(0,"mat-icon",11),se(1,"sensors"),B())}function CJ(t,n){1&t&&(I(0,"div"),Ze(1,"img",16),B())}function EJ(t,n){if(1&t){const e=st();I(0,"button",21),we("click",function(){return xe(e),Me(ie(3).startBroadcasting())}),I(1,"mat-icon",22),ye(2,"translate"),se(3,"play_circle"),B()()}if(2&t){const e=ie(3);j("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=st();I(0,"button",23),we("click",function(){return xe(e),Me(ie(3).stopBroadcasting())}),I(1,"mat-icon",22),ye(2,"translate"),se(3,"stop_circle"),B()()}2&t&&(A(1),Ht("matTooltip",Se(2,1,"PANEL.STREAMING.STOP")))}function AJ(t,n){if(1&t){const e=st();I(0,"div",17)(1,"input",18),we("keypress",function(r){return xe(e),Me(ie(2).eventKeyPress(r))})("ngModelChange",function(r){return xe(e),Me(ie(2).broadcastUrl=r)}),ye(2,"translate"),B(),Z(3,EJ,4,4,"button",19),Z(4,SJ,4,3,"button",20),B()}if(2&t){const e=ie(2);A(1),Ht("placeholder",Se(2,5,"PANEL.STREAMING.URL")),j("disabled",e.broadcastingStatus!==e.broadcastingStatusEnum.STOPPED&&e.broadcastingStatus!==e.broadcastingStatusEnum.FAILED)("ngModel",e.broadcastUrl),A(2),j("ngIf",e.broadcastingStatus!==e.broadcastingStatusEnum.STARTED),A(1),j("ngIf",e.broadcastingStatus===e.broadcastingStatusEnum.STARTED)}}function wJ(t,n){1&t&&(I(0,"p",27),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.STREAMING.REQUIRED_URL")))}function DJ(t,n){if(1&t&&(I(0,"p",28),se(1),B()),2&t){const e=ie(3);A(1),Ne(e.broadcastingError.message)}}function TJ(t,n){1&t&&(Ze(0,"p",29),ye(1,"linkify"),ye(2,"translate")),2&t&&j("innerHTML",Se(1,1,Se(2,3,"PANEL.PAID_FEATURE")),Ud)}function xJ(t,n){if(1&t&&(I(0,"div")(1,"p"),se(2),ye(3,"translate"),B(),Z(4,wJ,3,3,"p",24),Z(5,DJ,2,1,"p",25),Z(6,TJ,3,5,"p",26),B()),2&t){const e=ie(2);A(2),Ne(Se(3,4,"CONTENT_SUBTITLE")),A(2),j("ngIf",e.urlRequiredError),A(1),j("ngIf",e.broadcastingError),A(1),j("ngIf",!e.isBroadcastModuleAvailable)}}function MJ(t,n){1&t&&(I(0,"p",30),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.STREAMING.NO_MODERATOR")))}function OJ(t,n){if(1&t&&(I(0,"div",12)(1,"div",13),Z(2,CJ,2,0,"div",3),Z(3,AJ,5,7,"div",14),Z(4,xJ,7,6,"div",3),Z(5,MJ,3,3,"p",15),B()()),2&t){const e=ie();A(2),j("ngIf",e.broadcastingStatus===e.broadcastingStatusEnum.STOPPED),A(1),j("ngIf",e.isSessionCreator),A(1),j("ngIf",e.isSessionCreator),A(1),j("ngIf",!e.isSessionCreator)}}const q1=".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 IJ(t,n){if(1&t){const e=st();I(0,"ov-recording-activity",8),we("onStartRecordingClicked",function(){return xe(e),Me(ie()._onStartRecordingClicked())})("onStopRecordingClicked",function(){return xe(e),Me(ie()._onStopRecordingClicked())})("onDeleteRecordingClicked",function(r){return xe(e),Me(ie()._onDeleteRecordingClicked(r))})("onForceRecordingUpdate",function(){return xe(e),Me(ie()._onForceRecordingUpdate())}),B()}2&t&&j("expanded","recording"===ie().expandedPanel)}function RJ(t,n){if(1&t){const e=st();I(0,"ov-broadcasting-activity",9),we("onStartBroadcastingClicked",function(r){return xe(e),Me(ie()._onStartBroadcastingClicked(r))})("onStopBroadcastingClicked",function(){return xe(e),Me(ie()._onStopBroadcastingClicked())}),B()}2&t&&j("expanded","broadcasting"===ie().expandedPanel)}const kJ=["chatScroll"],PJ=["chatInput"];function NJ(t,n){1&t&&(I(0,"p"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.CHAT.YOU")))}function LJ(t,n){if(1&t&&(I(0,"p"),se(1),B()),2&t){const e=ie().$implicit;A(1),Ne(e.nickname)}}function FJ(t,n){if(1&t&&(I(0,"div",14)(1,"div",15)(2,"div",16),Z(3,NJ,3,3,"p",17),Z(4,LJ,2,1,"p",17),B(),I(5,"div",18),Ze(6,"p",19),ye(7,"linkify"),B()()()),2&t){const e=n.$implicit;j("ngClass",e.isLocal?"right":"left"),A(3),j("ngIf",e.isLocal),A(1),j("ngIf",!e.isLocal),A(2),j("innerHTML",Se(7,4,e.message),Ud)}}const td=".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}",BJ=["participantsPanel"],VJ=["backgroundEffectsPanel"],UJ=["settingsPanel"],jJ=["activitiesPanel"],HJ=["chatPanel"],GJ=["additionalPanels"];function zJ(t,n){1&t&&nn(0)}function qJ(t,n){if(1&t&&(Ci(0),Z(1,zJ,1,0,"ng-container",1),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.chatPanelTemplate)}}function WJ(t,n){1&t&&nn(0)}function $J(t,n){if(1&t&&(Ci(0),Z(1,WJ,1,0,"ng-container",1),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.participantsPanelTemplate)}}function KJ(t,n){1&t&&nn(0)}function YJ(t,n){if(1&t&&(Ci(0),Z(1,KJ,1,0,"ng-container",1),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.backgroundEffectsPanelTemplate)}}function QJ(t,n){1&t&&nn(0)}function XJ(t,n){if(1&t&&(Ci(0),Z(1,QJ,1,0,"ng-container",1),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.settingsPanelTemplate)}}function ZJ(t,n){1&t&&nn(0)}function JJ(t,n){if(1&t&&(Ci(0),Z(1,ZJ,1,0,"ng-container",1),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.activitiesPanelTemplate)}}function eee(t,n){1&t&&nn(0)}function tee(t,n){if(1&t&&(Ci(0),Z(1,eee,1,0,"ng-container",1),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.additionalPanelsTemplate)}}const nee=["participantPanelItemElements"];function iee(t,n){1&t&&(I(0,"mat-icon"),se(1,"volume_up"),B())}function ree(t,n){1&t&&(I(0,"mat-icon"),se(1,"volume_off"),B())}function oee(t,n){if(1&t){const e=st();I(0,"button",6),we("click",function(){return xe(e),Me(ie().toggleMuteForcibly())}),Z(1,iee,2,0,"mat-icon",5),Z(2,ree,2,0,"mat-icon",5),B()}if(2&t){const e=ie();ut("warn-btn",e._participant.isMutedForcibly),A(1),j("ngIf",!e._participant.isMutedForcibly),A(1),j("ngIf",e._participant.isMutedForcibly)}}function see(t,n){1&t&&nn(0)}function aee(t,n){if(1&t&&(Ci(0),Z(1,see,1,0,"ng-container",7),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.participantPanelItemElementsTemplate)}}const lee=["participantPanelItem"],W1=["defaultParticipantPanelItem"];function cee(t,n){1&t&&nn(0)}function uee(t,n){1&t&&Ze(0,"mat-divider")}function dee(t,n){if(1&t&&(I(0,"div",8),Z(1,cee,1,0,"ng-container",9),Z(2,uee,1,0,"mat-divider",10),B()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.participantPanelItemTemplate)("ngTemplateOutletContext",Jn(3,_a,e.localParticipant)),A(1),j("ngIf",!0)}}function hee(t,n){1&t&&nn(0)}function fee(t,n){if(1&t&&(I(0,"div",13),Z(1,hee,1,0,"ng-container",9),B()),2&t){const e=n.$implicit,i=ie(2);A(1),j("ngTemplateOutlet",i.participantPanelItemTemplate)("ngTemplateOutletContext",Jn(2,_a,e))}}function pee(t,n){if(1&t&&(I(0,"div",11),Z(1,fee,2,4,"div",12),B()),2&t){const e=ie();A(1),j("ngForOf",e.remoteParticipants)}}function gee(t,n){1&t&&Ze(0,"ov-participant-panel-item",14),2&t&&j("participant",n.$implicit)}const mee=function(t){return{"background-color":t}},vee=["videoElement"],_ee=["menu"],bee=["streamContainer"],yee=["nicknameInput"];function Cee(t,n){if(1&t&&(I(0,"span",15),se(1),B()),2&t){const e=ie(4);A(1),Ne(e._stream.participant.nickname)}}function Eee(t,n){if(1&t&&(I(0,"span",15),se(1),B()),2&t){const e=ie(4);A(1),wn("",e._stream.participant.nickname,"_SCREEN")}}function See(t,n){if(1&t){const e=st();I(0,"div",13),we("click",function(){return xe(e),Me(ie(3).toggleNicknameForm())}),Z(1,Cee,2,1,"span",14),Z(2,Eee,2,1,"span",14),B()}if(2&t){const e=ie(3);A(1),j("ngIf","CAMERA"===e._stream.type),A(1),j("ngIf","SCREEN"===e._stream.type)}}function Aee(t,n){if(1&t){const e=st();I(0,"div",16)(1,"input",17,18),we("ngModelChange",function(r){return xe(e),Me(ie(3).nickname=r)})("keypress",function(r){return xe(e),Me(ie(3).updateNickname(r))})("focusout",function(r){return xe(e),Me(ie(3).updateNickname(r))}),B()()}if(2&t){const e=ie(3);ut("fullscreen",e.isFullscreen),A(1),j("ngModel",e.nickname)}}function wee(t,n){if(1&t&&(I(0,"div",10),Z(1,See,3,2,"div",11),Z(2,Aee,3,3,"div",12),B()),2&t){const e=ie(2);ut("fullscreen",e.isFullscreen),A(1),j("ngIf",!e.toggleNickname),A(1),j("ngIf",e.toggleNickname&&!(null!=e._stream.streamManager&&e._stream.streamManager.remote))}}function Dee(t,n){if(1&t&&(I(0,"div",19),Ze(1,"ov-audio-wave",20),B()),2&t){const e=ie(2);A(1),j("streamManager",e._stream.streamManager)}}function Tee(t,n){if(1&t&&Ze(0,"ov-avatar-profile",21),2&t){const e=ie(2);j("@posterAnimation",void 0)("name",e._stream.participant.nickname)("color",e._stream.participant.colorProfile)}}function xee(t,n){1&t&&(I(0,"button",22)(1,"mat-icon"),se(2,"mic_off"),B()())}function Mee(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"STREAM.ZOOM_OUT")))}function Oee(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"STREAM.ZOOM_IN")))}function Iee(t,n){1&t&&(I(0,"mat-icon"),se(1,"volume_up"),B())}function Ree(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"STREAM.MUTE_SOUND")))}function kee(t,n){1&t&&(I(0,"mat-icon"),se(1,"volume_off"),B())}function Pee(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"STREAM.UNMUTE_SOUND")))}function Nee(t,n){if(1&t){const e=st();I(0,"button",32),we("click",function(){return xe(e),Me(ie(3).toggleMuteForcibly())}),Z(1,Iee,2,0,"mat-icon",29),Z(2,Ree,3,3,"span",29),Z(3,kee,2,0,"mat-icon",29),Z(4,Pee,3,3,"span",29),B()}if(2&t){const e=ie(3);A(1),j("ngIf",!e._stream.participant.isMutedForcibly),A(1),j("ngIf",!e._stream.participant.isMutedForcibly),A(1),j("ngIf",e._stream.participant.isMutedForcibly),A(1),j("ngIf",e._stream.participant.isMutedForcibly)}}function Lee(t,n){if(1&t){const e=st();I(0,"button",33),we("click",function(){return xe(e),Me(ie(3).replaceScreenTrack())}),I(1,"mat-icon"),se(2,"picture_in_picture"),B(),I(3,"span"),se(4),ye(5,"translate"),B()()}2&t&&(A(4),Ne(Se(5,1,"STREAM.REPLACE_SCREEN")))}function Fee(t,n){if(1&t){const e=st();I(0,"div",23)(1,"button",24),we("click",function(r){return xe(e),Me(ie(2).toggleVideoMenu(r))}),ye(2,"translate"),I(3,"mat-icon"),se(4,"more_vert"),B()(),Ze(5,"span",25),I(6,"mat-menu",26,27)(8,"button",28),we("click",function(){return xe(e),Me(ie(2).toggleVideoEnlarged())}),I(9,"mat-icon"),se(10),B(),Z(11,Mee,3,3,"span",29),Z(12,Oee,3,3,"span",29),B(),Z(13,Nee,5,4,"button",30),Z(14,Lee,6,3,"button",31),B()()}if(2&t){const e=ji(7),i=ie(2);A(1),Ht("matTooltip",Se(2,8,"STREAM.SETTINGS")),Nc("id","video-settings-btn-",null==i._stream.streamManager||null==i._stream.streamManager.stream?null:i._stream.streamManager.stream.typeOfVideo,""),A(4),j("matMenuTriggerFor",e),A(5),Ne(i.videoSizeIcon),A(1),j("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),A(1),j("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG),A(1),j("ngIf",!i._stream.participant.local),A(1),j("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 Bee=function(t){return{"no-size":t}};function Vee(t,n){if(1&t){const e=st();I(0,"div",1,2),Z(2,wee,3,4,"div",3),Z(3,Dee,2,1,"div",4),Z(4,Tee,1,3,"ov-avatar-profile",5),I(5,"ov-video",6),we("dblclick",function(){return xe(e),Me(ie().toggleVideoEnlarged())}),B(),I(6,"div",7),Z(7,xee,3,0,"button",8),B(),Z(8,Fee,15,10,"div",9),B()}if(2&t){const e=ie();j("ngClass",Jn(9,Bee,!e.showVideo))("id","container-"+(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.streamId)),A(2),j("ngIf",!e.isMinimal&&e.showNickname),A(1),j("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),j("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.videoActive)&&"CAMERA"===e._stream.type),A(1),j("streamManager",e._stream.streamManager)("mutedSound",null==e._stream||null==e._stream.participant?null:e._stream.participant.isMutedForcibly),A(2),j("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.audioActive)),A(1),j("ngIf",!e.isMinimal&&e.showSettingsButton)}}const Uee=["toolbarAdditionalButtons"],jee=["toolbarAdditionalPanelButtons"];function Hee(t,n){1&t&&Ze(0,"img",33)}function Gee(t,n){if(1&t&&(I(0,"span",34),se(1),B()),2&t){const e=ie(2);A(1),Ne(e.session.sessionId)}}function zee(t,n){if(1&t&&(I(0,"span"),se(1),ye(2,"date"),B()),2&t){const e=ie(3);A(1),wn(" | ",ls(2,1,e.recordingTime,"H:mm:ss"),"")}}function qee(t,n){if(1&t&&(I(0,"div",35)(1,"mat-icon",36),se(2,"radio_button_checked"),B(),I(3,"span",36),se(4,"REC"),B(),Z(5,zee,3,4,"span",20),B()),2&t){const e=ie(2);A(5),j("ngIf",e.recordingTime)}}function Wee(t,n){if(1&t&&(I(0,"span"),se(1),ye(2,"date"),B()),2&t){const e=ie(3);A(1),wn(" | ",ls(2,1,e.broadcastingTime,"H:mm:ss"),"")}}function $ee(t,n){if(1&t&&(I(0,"div",37)(1,"mat-icon",36),se(2,"sensors"),B(),I(3,"span",36),se(4,"LIVE"),B(),Z(5,Wee,3,4,"span",20),B()),2&t){const e=ie(2);A(5),j("ngIf",e.broadcastingTime)}}function Kee(t,n){if(1&t&&(I(0,"div",26)(1,"div"),Z(2,Hee,1,0,"img",27),I(3,"div",28),Z(4,Gee,2,1,"span",29),I(5,"div",30),Z(6,qee,6,1,"div",31),Z(7,$ee,6,1,"div",32),B()()()()),2&t){const e=ie();A(2),j("ngIf",!e.isMinimal&&e.showLogo),A(1),ut("collapsed",e.recordingStatus===e._recordingStatus.STARTED||e.broadcastingStatus===e._broadcastingStatus.STARTED),A(1),j("ngIf",!e.isMinimal&&e.session&&e.session.sessionId&&e.showSessionName),A(2),j("ngIf",e.recordingStatus===e._recordingStatus.STARTED),A(1),j("ngIf",e.broadcastingStatus===e._broadcastingStatus.STARTED)}}function Yee(t,n){if(1&t&&(I(0,"mat-icon",38),ye(1,"translate"),se(2," mic "),B()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.MUTE_AUDIO")),j("matTooltipDisabled",!e.hasAudioDevices)}}function Qee(t,n){if(1&t&&(I(0,"mat-icon",39),ye(1,"translate"),se(2," mic_off "),B()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.UNMUTE_AUDIO")),j("matTooltipDisabled",!e.hasAudioDevices)}}function Xee(t,n){if(1&t&&(I(0,"mat-icon",40),ye(1,"translate"),se(2," videocam "),B()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.MUTE_VIDEO")),j("matTooltipDisabled",!e.hasVideoDevices)}}function Zee(t,n){if(1&t&&(I(0,"mat-icon",41),ye(1,"translate"),se(2," videocam_off "),B()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.UNMUTE_VIDEO")),j("matTooltipDisabled",!e.hasVideoDevices)}}function Jee(t,n){1&t&&(I(0,"mat-icon",44),ye(1,"translate"),se(2,"screen_share"),B()),2&t&&Ht("matTooltip",Se(1,1,"TOOLBAR.ENABLE_SCREEN"))}function ete(t,n){1&t&&(I(0,"mat-icon",44),ye(1,"translate"),se(2,"screen_share"),B()),2&t&&Ht("matTooltip",Se(1,1,"TOOLBAR.DISABLE_SCREEN"))}function tte(t,n){if(1&t){const e=st();I(0,"button",42),we("click",function(){return xe(e),Me(ie().toggleScreenShare())}),Z(1,Jee,3,3,"mat-icon",43),Z(2,ete,3,3,"mat-icon",43),B()}if(2&t){const e=ie();ut("active-btn",e.isScreenShareActive),j("disabled",e.isConnectionLost),A(1),j("ngIf",!e.isScreenShareActive),A(1),j("ngIf",e.isScreenShareActive)}}function nte(t,n){if(1&t&&(I(0,"button",45)(1,"mat-icon",44),ye(2,"translate"),se(3,"more_vert"),B()()),2&t){const e=ie();j("matMenuTriggerFor",ji(12))("disabled",e.isConnectionLost),A(1),Ht("matTooltip",Se(2,3,"TOOLBAR.MORE_OPTIONS"))}}function ite(t,n){1&t&&(I(0,"mat-icon"),se(1,"fullscreen"),B())}function rte(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.FULLSCREEN")))}function ote(t,n){1&t&&(I(0,"mat-icon"),se(1,"fullscreen_exit"),B())}function ste(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.EXIT_FULLSCREEN")))}function ate(t,n){if(1&t){const e=st();I(0,"button",46),we("click",function(){return xe(e),Me(ie().toggleFullscreen())}),Z(1,ite,2,0,"mat-icon",20),Z(2,rte,3,3,"span",20),Z(3,ote,2,0,"mat-icon",20),Z(4,ste,3,3,"span",20),B()}if(2&t){const e=ie();A(1),j("ngIf",!e.isFullscreenActive),A(1),j("ngIf",!e.isFullscreenActive),A(1),j("ngIf",e.isFullscreenActive),A(1),j("ngIf",e.isFullscreenActive)}}function lte(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),wn(" ",Se(2,1,"TOOLBAR.START_RECORDING")," "))}function cte(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),wn(" ",Se(2,1,"TOOLBAR.STOP_RECORDING")," "))}function ute(t,n){if(1&t){const e=st();I(0,"button",47),we("click",function(){return xe(e),Me(ie().toggleRecording())}),I(1,"mat-icon",48),se(2,"radio_button_checked"),B(),Z(3,lte,3,3,"span",20),Z(4,cte,3,3,"span",20),B()}if(2&t){const e=ie();j("disabled",e.recordingStatus===e._recordingStatus.STARTING||e.recordingStatus===e._recordingStatus.STOPPING||!e.isSessionCreator),A(3),j("ngIf",e.recordingStatus===e._recordingStatus.STOPPED||e.recordingStatus===e._recordingStatus.STOPPING),A(1),j("ngIf",e.recordingStatus===e._recordingStatus.STARTED||e.recordingStatus===e._recordingStatus.STARTING)}}function dte(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),wn(" ",Se(2,1,"PANEL.STREAMING.START")," "))}function hte(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),wn(" ",Se(2,1,"PANEL.STREAMING.STOP")," "))}function fte(t,n){if(1&t){const e=st();I(0,"button",49),we("click",function(){return xe(e),Me(ie().toggleBroadcasting())}),I(1,"mat-icon"),se(2,"sensors"),B(),Z(3,dte,3,3,"span",20),Z(4,hte,3,3,"span",20),B()}if(2&t){const e=ie();j("disabled",e.broadcastingStatus===e._broadcastingStatus.STARTING||e.recordingStatus===e._broadcastingStatus.STOPPING||!e.isSessionCreator),A(3),j("ngIf",e.broadcastingStatus===e._broadcastingStatus.STOPPED||e.broadcastingStatus===e._broadcastingStatus.STOPPING||e.broadcastingStatus===e._broadcastingStatus.FAILED),A(1),j("ngIf",e.broadcastingStatus===e._broadcastingStatus.STARTED||e.broadcastingStatus===e._broadcastingStatus.STARTING)}}function pte(t,n){if(1&t){const e=st();I(0,"button",50),we("click",function(){return xe(e),Me(ie().toggleBackgroundEffects())}),I(1,"mat-icon"),se(2,"auto_awesome"),B(),I(3,"span"),se(4),ye(5,"translate"),B()()}2&t&&(j("disabled",!ie().isWebcamVideoActive),A(4),Ne(Se(5,2,"TOOLBAR.BACKGROUND")))}function gte(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.DISABLE_CAPTIONS")))}function mte(t,n){1&t&&(I(0,"span"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"TOOLBAR.ENABLE_CAPTIONS")))}function vte(t,n){if(1&t){const e=st();I(0,"button",51),we("click",function(){return xe(e),Me(ie().toggleCaptions())}),I(1,"mat-icon"),se(2,"closed_caption"),B(),Z(3,gte,3,3,"span",20),Z(4,mte,3,3,"span",20),B()}if(2&t){const e=ie();j("disabled",e.isConnectionLost),A(3),j("ngIf",e.captionsEnabled),A(1),j("ngIf",!e.captionsEnabled)}}function _te(t,n){1&t&&Ze(0,"mat-divider",52)}function bte(t,n){if(1&t){const e=st();I(0,"button",53),we("click",function(){return xe(e),Me(ie().toggleSettings())}),I(1,"mat-icon"),se(2,"settings"),B(),I(3,"span"),se(4),ye(5,"translate"),B()()}2&t&&(A(4),Ne(Se(5,1,"TOOLBAR.SETTINGS")))}function yte(t,n){1&t&&nn(0)}function Cte(t,n){if(1&t&&(Ci(0),Z(1,yte,1,0,"ng-container",54),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.toolbarAdditionalButtonsTemplate)}}function Ete(t,n){if(1&t){const e=st();I(0,"button",55),we("click",function(){return xe(e),Me(ie().leaveSession())}),I(1,"mat-icon",44),ye(2,"translate"),se(3,"call_end"),B()()}2&t&&(A(1),Ht("matTooltip",Se(2,1,"TOOLBAR.LEAVE")))}function Ste(t,n){if(1&t){const e=st();I(0,"button",56),we("click",function(){return xe(e),Me(ie().toggleActivitiesPanel())}),ye(1,"translate"),I(2,"mat-icon"),se(3,"category"),B()()}if(2&t){const e=ie();ut("active-btn",e.isActivitiesOpened),Ht("matTooltip",Se(1,4,"TOOLBAR.ACTIVITIES")),j("disabled",e.isConnectionLost)}}function Ate(t,n){if(1&t){const e=st();I(0,"button",57),we("click",function(){return xe(e),Me(ie().toggleParticipantsPanel())}),ye(1,"translate"),I(2,"mat-icon"),se(3,"people"),B()()}if(2&t){const e=ie();ut("active-btn",e.isParticipantsOpened),Ht("matTooltip",Se(1,4,"TOOLBAR.PARTICIPANTS")),j("disabled",e.isConnectionLost)}}function wte(t,n){if(1&t){const e=st();I(0,"button",58),we("click",function(){return xe(e),Me(ie().toggleChatPanel())}),ye(1,"translate"),I(2,"mat-icon",59),se(3," chat "),B()()}if(2&t){const e=ie();ut("active-btn",e.isChatOpened),Ht("matTooltip",Se(1,6,"TOOLBAR.CHAT")),j("disabled",e.isConnectionLost),A(2),Ht("matBadge",e.unreadMessages),j("matBadgeHidden",0===e.unreadMessages)}}function Dte(t,n){1&t&&nn(0)}function Tte(t,n){if(1&t&&(Ci(0),Z(1,Dte,1,0,"ng-container",54),Ei()),2&t){const e=ie();A(1),j("ngTemplateOutlet",e.toolbarAdditionalPanelButtonsTemplate)}}const xte=["toolbar"],Mte=["panel"],Ote=["sidenav"],Ite=["videoContainer"],Rte=["container"],kte=["layoutContainer"];function Pte(t,n){1&t&&nn(0)}function Nte(t,n){1&t&&nn(0)}function Lte(t,n){1&t&&nn(0)}function Fte(t,n){if(1&t&&(I(0,"div",11),Z(1,Lte,1,0,"ng-container",6),B()),2&t){const e=ie(2);A(1),j("ngTemplateOutlet",e.toolbarTemplate)}}const Bte=function(t){return{big:t}};function Vte(t,n){if(1&t&&(I(0,"div",1)(1,"mat-sidenav-container",2,3)(4,"mat-sidenav",4,5),Z(6,Pte,1,0,"ng-container",6),B(),I(7,"mat-sidenav-content",7)(8,"div",8,9),Z(10,Nte,1,0,"ng-container",6),B()()(),Z(11,Fte,2,1,"div",10),B()),2&t){const e=ie();j("@sessionAnimation",void 0),A(4),Ht("mode",e.sidenavMode),j("ngClass",Jn(6,Bte,e.settingsPanelOpened)),A(2),j("ngTemplateOutlet",e.panelTemplate),A(4),j("ngTemplateOutlet",e.layoutTemplate),A(1),j("ngIf",e.toolbarTemplate)}}function Ute(t,n){if(1&t){const e=st();I(0,"button",8),we("click",function(){const o=xe(e).$implicit;return Me(ie().applyBackground(o))}),I(1,"mat-icon",9),ye(2,"translate"),ye(3,"translate"),se(4),B()()}if(2&t){const e=n.$implicit,i=ie();ut("active-effect-btn",i.backgroundSelectedId===e.id),A(1),j("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=st();I(0,"div",10),we("click",function(){const o=xe(e).$implicit;return Me(ie().applyBackground(o))}),Ze(1,"img",11),B()}if(2&t){const e=n.$implicit;ut("active-effect-btn",ie().backgroundSelectedId===e.id),A(1),j("src",e.thumbnail,Ga)}}function Hte(t,n){if(1&t&&(I(0,"mat-icon",8),ye(1,"translate"),se(2," videocam "),B()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.MUTE_VIDEO")),j("matTooltipDisabled",!e.hasVideoDevices)}}function Gte(t,n){if(1&t&&(I(0,"mat-icon",9),ye(1,"translate"),se(2," videocam_off "),B()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.UNMUTE_VIDEO")),j("matTooltipDisabled",!e.hasVideoDevices)}}function zte(t,n){1&t&&(I(0,"mat-label"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.VIDEO_DEVICE")))}function qte(t,n){1&t&&(I(0,"mat-label"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.NO_VIDEO_DEVICE")))}function Wte(t,n){if(1&t&&(I(0,"mat-option",10),se(1),B()),2&t){const e=n.$implicit;Nc("id","option-",e.label,""),j("value",e),A(1),wn(" ",e.label," ")}}function $te(t,n){if(1&t&&(I(0,"mat-icon",7),ye(1,"translate"),se(2," mic "),B()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.MUTE_AUDIO")),j("matTooltipDisabled",!e.hasAudioDevices)}}function Kte(t,n){if(1&t&&(I(0,"mat-icon",8),ye(1,"translate"),se(2," mic_off "),B()),2&t){const e=ie();Ht("matTooltip",Se(1,2,"TOOLBAR.UNMUTE_AUDIO")),j("matTooltipDisabled",!e.hasAudioDevices)}}function Yte(t,n){1&t&&(I(0,"mat-label"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.AUDIO_DEVICE")))}function Qte(t,n){1&t&&(I(0,"mat-label"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.NO_AUDIO_DEVICE")))}function Xte(t,n){if(1&t&&(I(0,"mat-option",9),se(1),B()),2&t){const e=n.$implicit;j("value",e.device),A(1),wn(" ",e.label," ")}}function Zte(t,n){if(1&t){const e=st();I(0,"button",3),we("click",function(){const o=xe(e).$implicit;return Me(ie().onLangSelected(o.lang))}),I(1,"span"),se(2),B()()}if(2&t){const e=n.$implicit;A(2),Ne(e.name)}}function Jte(t,n){1&t&&Ze(0,"img",11)}function ene(t,n){if(1&t){const e=st();I(0,"ov-lang-selector",12),we("onLangSelectorClicked",function(){return xe(e),Me(ie().onDeviceSelectorClicked())}),B()}}function tne(t,n){1&t&&Ze(0,"ov-background-effects-panel")}function nne(t,n){1&t&&(I(0,"ov-panel"),Z(1,tne,1,0,"ng-template",null,14,un),B())}function ine(t,n){1&t&&Z(0,nne,3,0,"ng-template",null,13,un)}function rne(t,n){if(1&t){const e=st();I(0,"button",18),we("click",function(){return xe(e),Me(ie(3).toggleBackgroundEffects())}),ye(1,"translate"),I(2,"mat-icon"),se(3,"auto_awesome"),B()()}if(2&t){const e=ie().$implicit;Ht("matTooltip",Se(1,2,"TOOLBAR.BACKGROUND")),j("disabled",!(null!=e.streamManager&&null!=e.streamManager.stream&&e.streamManager.stream.videoActive))}}function one(t,n){if(1&t&&(Z(0,rne,4,4,"button",16),Ze(1,"ov-stream",17)),2&t){const e=n.$implicit,i=ie(2);j("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),A(1),j("stream",e)("displayParticipantName",!1)("settingsButton",!1)}}function sne(t,n){1&t&&(I(0,"ov-layout"),Z(1,one,2,4,"ng-template",null,15,un),B())}function ane(t,n){1&t&&(I(0,"h4"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.NICKNAME_SECTION")))}function lne(t,n){1&t&&Ze(0,"hr")}function cne(t,n){1&t&&(I(0,"h4"),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PREJOIN.DEVICE_SECTION")))}function une(t,n){1&t&&Ze(0,"hr")}function dne(t,n){if(1&t){const e=st();I(0,"div",19)(1,"div",20)(2,"div",21)(3,"div",22),Z(4,ane,3,3,"h4",8),Z(5,lne,1,0,"hr",8),Ze(6,"ov-nickname-input"),B(),I(7,"div",23),Z(8,cne,3,3,"h4",8),Z(9,une,1,0,"hr",8),I(10,"ov-video-devices-select",24),we("onDeviceSelectorClicked",function(){return xe(e),Me(ie().onDeviceSelectorClicked())})("onVideoMutedClicked",function(r){return xe(e),Me(ie().onVideoMutedClicked(r))}),B(),I(11,"ov-audio-devices-select",25),we("onDeviceSelectorClicked",function(){return xe(e),Me(ie().onDeviceSelectorClicked())}),B()(),I(12,"div",26)(13,"button",27),we("click",function(){return xe(e),Me(ie().joinSession())}),se(14),ye(15,"translate"),B()()()()()}if(2&t){const e=ie();A(4),j("ngIf",e.windowSize>=960),A(1),j("ngIf",e.windowSize>=960),A(3),j("ngIf",e.windowSize>=960),A(1),j("ngIf",e.windowSize>=960),A(5),wn(" ",Se(15,5,"PREJOIN.JOIN")," ")}}function hne(t,n){if(1&t){const e=st();I(0,"button",9),we("click",function(){const o=xe(e).$implicit;return Me(ie(2).onLangSelected(o))}),I(1,"span"),se(2),B()()}if(2&t){const e=n.$implicit;j("id",e.lang),A(2),Ne(e.name)}}function fne(t,n){if(1&t){const e=st();I(0,"mat-list")(1,"div")(2,"mat-list-item")(3,"div",2),se(4),ye(5,"translate"),B(),I(6,"mat-slide-toggle",3),we("change",function(){return xe(e),Me(ie().toggleCaptions())}),B()()(),I(7,"div",4)(8,"mat-list-item")(9,"div",2),se(10),ye(11,"translate"),B(),I(12,"button",5)(13,"span"),se(14),B(),I(15,"mat-icon"),se(16,"expand_more"),B()(),I(17,"mat-menu",null,6),Z(19,hne,3,2,"button",7),B()(),I(20,"span",8),se(21),ye(22,"translate"),B()()()}if(2&t){const e=ji(18),i=ie();A(4),Ne(Se(5,9,"PANEL.SETTINGS.CAPTIONS")),A(2),j("checked",i.captionsEnabled)("disableRipple",!0),A(4),Ne(Se(11,11,"PANEL.SETTINGS.LANGUAGE")),A(2),j("matMenuTriggerFor",e)("disabled",!i.isSttReady),A(2),Ne(i.langSelected),A(5),j("ngForOf",i.languagesAvailable),A(2),Ne(Se(22,13,"PANEL.SETTINGS.CAPTIONS_LANG_TEXT"))}}function pne(t,n){1&t&&(I(0,"div",10),Ze(1,"img",11)(2,"p",12),ye(3,"translate"),B()),2&t&&(A(2),j("innerHTML",Se(3,1,"PANEL.PRO_FEATURE"),Ud))}function gne(t,n){1&t&&(I(0,"div",16),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.SETTINGS.GENERAL")))}function mne(t,n){1&t&&(I(0,"div",16),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.SETTINGS.VIDEO")))}function vne(t,n){1&t&&(I(0,"div",16),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.SETTINGS.AUDIO")))}function _ne(t,n){1&t&&(I(0,"div",16),se(1),ye(2,"translate"),B()),2&t&&(A(1),Ne(Se(2,1,"PANEL.SETTINGS.CAPTIONS")))}function bne(t,n){if(1&t&&(I(0,"mat-list-option",17)(1,"mat-icon",9),se(2,"closed_caption"),B(),Z(3,_ne,3,3,"div",10),B()),2&t){const e=ie();j("selected",e.selectedOption===e.settingsOptions.CAPTIONS)("value",e.settingsOptions.CAPTIONS),A(3),j("ngIf",!e.isMobile)}}function yne(t,n){1&t&&(I(0,"div"),Ze(1,"ov-nickname-input"),I(2,"mat-list")(3,"mat-list-item")(4,"mat-icon",9),se(5,"language"),B(),I(6,"div",16),se(7),ye(8,"translate"),B(),Ze(9,"ov-lang-selector"),B()()()),2&t&&(A(7),Ne(Se(8,1,"PANEL.SETTINGS.LANGUAGE")))}function Cne(t,n){1&t&&Ze(0,"ov-video-devices-select")}function Ene(t,n){1&t&&Ze(0,"ov-audio-devices-select")}function Sne(t,n){1&t&&Ze(0,"ov-captions-settings")}const Ane=function(t){return{mobile:t}},wne=["defaultToolbar"],Dne=["defaultPanel"],Tne=["defaultChatPanel"],xne=["defaultParticipantsPanel"],Mne=["defaultActivitiesPanel"],One=["defaultLayout"],Ine=["defaultStream"];function Rne(t,n){1&t&&(I(0,"div",12),Ze(1,"mat-spinner",13),I(2,"span"),se(3),ye(4,"translate"),B()()),2&t&&(A(1),j("diameter",50),A(2),Ne(Se(4,2,"PREJOIN.PREPARING")))}function kne(t,n){if(1&t){const e=st();I(0,"div",14)(1,"ov-pre-join",15),we("onJoinButtonClicked",function(){return xe(e),Me(ie()._onJoinButtonClicked())}),B()()}2&t&&j("@inOutAnimation",void 0)}function Pne(t,n){if(1&t&&(I(0,"div",12)(1,"mat-icon",16),se(2,"error"),B(),I(3,"span"),se(4),B()()),2&t){const e=ie();A(4),Ne(e.errorMessage)}}function Nne(t,n){1&t&&nn(0)}function Lne(t,n){if(1&t&&(Ci(0),Z(1,Nne,1,0,"ng-container",24),Ei()),2&t){const e=ie(4);A(1),j("ngTemplateOutlet",e.openviduAngularToolbarTemplate)}}function Fne(t,n){1&t&&Z(0,Lne,2,1,"ng-container",23),2&t&&j("ngIf",ie(3).openviduAngularToolbarTemplate)}function Bne(t,n){1&t&&nn(0)}function Vne(t,n){if(1&t&&(Ci(0),Z(1,Bne,1,0,"ng-container",24),Ei()),2&t){const e=ie(4);A(1),j("ngTemplateOutlet",e.openviduAngularPanelTemplate)}}function Une(t,n){1&t&&Z(0,Vne,2,1,"ng-container",23),2&t&&j("ngIf",ie(3).openviduAngularPanelTemplate)}function jne(t,n){1&t&&nn(0)}function Hne(t,n){if(1&t&&(Ci(0),Z(1,jne,1,0,"ng-container",24),Ei()),2&t){const e=ie(4);A(1),j("ngTemplateOutlet",e.openviduAngularLayoutTemplate)}}function Gne(t,n){1&t&&Z(0,Hne,2,1,"ng-container",23),2&t&&j("ngIf",ie(3).openviduAngularLayoutTemplate)}function zne(t,n){if(1&t){const e=st();I(0,"ov-session",19),we("onNodeCrashed",function(){return xe(e),Me(ie(2)._onNodeCrashed())}),Z(1,Fne,1,1,"ng-template",null,20,un),Z(3,Une,1,1,"ng-template",null,21,un),Z(5,Gne,1,1,"ng-template",null,22,un),B()}}function qne(t,n){if(1&t&&(I(0,"div",17),Z(1,zne,7,0,"ov-session",18),B()),2&t){const e=ie();j("@inOutAnimation",void 0),A(1),j("ngIf",e.isSessionInitialized&&!e.nodeCrashed)}}function Wne(t,n){1&t&&nn(0)}function $ne(t,n){1&t&&Z(0,Wne,1,0,"ng-container",24),2&t&&j("ngTemplateOutlet",ie(2).openviduAngularToolbarAdditionalButtonsTemplate)}function Kne(t,n){1&t&&nn(0)}function Yne(t,n){1&t&&Z(0,Kne,1,0,"ng-container",24),2&t&&j("ngTemplateOutlet",ie(2).openviduAngularToolbarAdditionalPanelButtonsTemplate)}function Qne(t,n){if(1&t){const e=st();I(0,"ov-toolbar",25),we("onLeaveButtonClicked",function(){return xe(e),Me(ie().onLeaveButtonClicked())})("onCameraButtonClicked",function(){return xe(e),Me(ie().onCameraButtonClicked())})("onMicrophoneButtonClicked",function(){return xe(e),Me(ie().onMicrophoneButtonClicked())})("onScreenshareButtonClicked",function(){return xe(e),Me(ie().onScreenshareButtonClicked())})("onFullscreenButtonClicked",function(){return xe(e),Me(ie().onFullscreenButtonClicked())})("onParticipantsPanelButtonClicked",function(){return xe(e),Me(ie().onParticipantsPanelButtonClicked())})("onChatPanelButtonClicked",function(){return xe(e),Me(ie().onChatPanelButtonClicked())})("onActivitiesPanelButtonClicked",function(){return xe(e),Me(ie().onActivitiesPanelButtonClicked())})("onStartRecordingClicked",function(){return xe(e),Me(ie().onStartRecordingClicked("toolbar"))})("onStopRecordingClicked",function(){return xe(e),Me(ie().onStopRecordingClicked("toolbar"))})("onStopBroadcastingClicked",function(){return xe(e),Me(ie().onStopBroadcastingClicked("toolbar"))}),Z(1,$ne,1,1,"ng-template",null,26,un),Z(3,Yne,1,1,"ng-template",null,27,un),B()}}function Xne(t,n){1&t&&nn(0)}function Zne(t,n){1&t&&Z(0,Xne,1,0,"ng-container",24),2&t&&j("ngTemplateOutlet",ie(2).openviduAngularChatPanelTemplate)}function Jne(t,n){1&t&&nn(0)}function eie(t,n){1&t&&Z(0,Jne,1,0,"ng-container",24),2&t&&j("ngTemplateOutlet",ie(2).openviduAngularParticipantsPanelTemplate)}function tie(t,n){1&t&&Ze(0,"ov-background-effects-panel",35)}function nie(t,n){1&t&&Ze(0,"ov-settings-panel",36)}function iie(t,n){1&t&&nn(0)}function rie(t,n){1&t&&Z(0,iie,1,0,"ng-container",24),2&t&&j("ngTemplateOutlet",ie(2).openviduAngularActivitiesPanelTemplate)}function oie(t,n){1&t&&nn(0)}function sie(t,n){1&t&&Z(0,oie,1,0,"ng-container",24),2&t&&j("ngTemplateOutlet",ie(2).openviduAngularAdditionalPanelsTemplate)}function aie(t,n){1&t&&(I(0,"ov-panel",28),Z(1,Zne,1,1,"ng-template",null,29,un),Z(3,eie,1,1,"ng-template",null,30,un),Z(5,tie,1,0,"ng-template",null,31,un),Z(7,nie,1,0,"ng-template",null,32,un),Z(9,rie,1,1,"ng-template",null,33,un),Z(11,sie,1,1,"ng-template",null,34,un),B())}function lie(t,n){1&t&&Ze(0,"ov-chat-panel",37)}function cie(t,n){if(1&t){const e=st();I(0,"ov-activities-panel",38),we("onStartRecordingClicked",function(){return xe(e),Me(ie().onStartRecordingClicked("panel"))})("onStopRecordingClicked",function(){return xe(e),Me(ie().onStopRecordingClicked("panel"))})("onDeleteRecordingClicked",function(r){return xe(e),Me(ie().onDeleteRecordingClicked(r))})("onForceRecordingUpdate",function(){return xe(e),Me(ie().onForceRecordingUpdate())})("onStartBroadcastingClicked",function(r){return xe(e),Me(ie().onStartBroadcastingClicked(r))})("onStopBroadcastingClicked",function(){return xe(e),Me(ie().onStopBroadcastingClicked("panel"))}),B()}}function uie(t,n){1&t&&nn(0)}function die(t,n){if(1&t&&Z(0,uie,1,0,"ng-container",41),2&t){const e=n.$implicit;j("ngTemplateOutlet",ie(2).openviduAngularParticipantPanelItemTemplate)("ngTemplateOutletContext",Jn(2,_a,e))}}function hie(t,n){1&t&&(I(0,"ov-participants-panel",39),Z(1,die,1,4,"ng-template",null,40,un),B())}function fie(t,n){1&t&&nn(0)}function pie(t,n){if(1&t&&Z(0,fie,1,0,"ng-container",41),2&t){const e=ie().$implicit;j("ngTemplateOutlet",ie().openviduAngularParticipantPanelItemElementsTemplate)("ngTemplateOutletContext",Jn(2,_a,e))}}function gie(t,n){1&t&&(I(0,"ov-participant-panel-item",42),Z(1,pie,1,4,"ng-template",null,43,un),B()),2&t&&j("participant",n.$implicit)}function mie(t,n){1&t&&nn(0)}function vie(t,n){if(1&t&&Z(0,mie,1,0,"ng-container",41),2&t){const e=n.$implicit;j("ngTemplateOutlet",ie(2).openviduAngularStreamTemplate)("ngTemplateOutletContext",Jn(2,_a,e))}}function _ie(t,n){1&t&&(I(0,"ov-layout",44),Z(1,vie,1,4,"ng-template",null,45,un),B())}function bie(t,n){1&t&&Ze(0,"ov-stream",46),2&t&&j("stream",n.$implicit)}var $1={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"},K1={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"},X1={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"},Cie=Object.freeze({__proto__:null,ADMIN:$1,PREJOIN:K1,TOOLBAR:Y1,STREAM:Q1,PANEL:X1,ERRORS:Z1,default:{ADMIN:$1,PREJOIN:K1,TOOLBAR:Y1,STREAM:Q1,PANEL:X1,ERRORS:Z1}}),J1={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"},eR={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..."},tR={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"},nR={SETTINGS:"Einstellungen",MUTE_SOUND:"Ton stummschalten",UNMUTE_SOUND:"Stummschaltung aufheben",ZOOM_IN:"Vergr\xf6\xdfern",ZOOM_OUT:"Herauszoomen",REPLACE_SCREEN:"Bildschirm austauschen"},iR={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"}},rR={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:J1,PREJOIN:eR,TOOLBAR:tR,STREAM:nR,PANEL:iR,ERRORS:rR,default:{ADMIN:J1,PREJOIN:eR,TOOLBAR:tR,STREAM:nR,PANEL:iR,ERRORS:rR}}),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"},sR={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:""},aR={MUTE_AUDIO:"关闭麦克风",UNMUTE_AUDIO:"开启麦克风",MUTE_VIDEO:"关闭摄像头",UNMUTE_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:"挂断",PARTICIPANTS:"Participants",CHAT:"Chat",ACTIVITIES:"Activities"},lR={SETTINGS:"Settings",MUTE_SOUND:"Mute sound",UNMUTE_SOUND:"Unmute sound",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",REPLACE_SCREEN:"Replace screen"},cR={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"}},uR={SESSION:"There was an error connecting to the session",CONNECTION:"当前网络环境不稳定",RECONNECT:"正在尝试重新连接面签服务!",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 ..."},wie=Object.freeze({__proto__:null,ADMIN:oR,PREJOIN:sR,TOOLBAR:aR,STREAM:lR,PANEL:cR,ERRORS:uR,default:{ADMIN:oR,PREJOIN:sR,TOOLBAR:aR,STREAM:lR,PANEL:cR,ERRORS:uR}}),dR={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"},hR={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"},fR={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"},pR={SETTINGS:"Ajustes",MUTE_SOUND:"Silenciar sonido",UNMUTE_SOUND:"Activar sonido",ZOOM_IN:"Aumentar tama\xf1o",ZOOM_OUT:"Disminuir tama\xf1o",REPLACE_SCREEN:"Reemplazar pantalla"},gR={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"}},mR={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..."},Tie=Object.freeze({__proto__:null,ADMIN:dR,PREJOIN:hR,TOOLBAR:fR,STREAM:pR,PANEL:gR,ERRORS:mR,default:{ADMIN:dR,PREJOIN:hR,TOOLBAR:fR,STREAM:pR,PANEL:gR,ERRORS:mR}}),vR={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"},_R={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 ..."},bR={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"},yR={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"},CR={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"}},ER={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:vR,PREJOIN:_R,TOOLBAR:bR,STREAM:yR,PANEL:CR,ERRORS:ER,default:{ADMIN:vR,PREJOIN:_R,TOOLBAR:bR,STREAM:yR,PANEL:CR,ERRORS:ER}}),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"},AR={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 ..."},wR={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"},DR={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"},TR={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"}},xR={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..."},Iie=Object.freeze({__proto__:null,ADMIN:SR,PREJOIN:AR,TOOLBAR:wR,STREAM:DR,PANEL:TR,ERRORS:xR,default:{ADMIN:SR,PREJOIN:AR,TOOLBAR:wR,STREAM:DR,PANEL:TR,ERRORS:xR}}),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"},OR={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..."},IR={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"},RR={SETTINGS:"Impostazioni",MUTE_SOUND:"Disattiva l'audio",UNMUTE_SOUND:"Attiva l'audio",ZOOM_IN:"Ingrandisci",ZOOM_OUT:"Riduci",REPLACE_SCREEN:"Sostituisci lo schermo"},kR={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..."},kie=Object.freeze({__proto__:null,ADMIN:MR,PREJOIN:OR,TOOLBAR:IR,STREAM:RR,PANEL:kR,ERRORS:PR,default:{ADMIN:MR,PREJOIN:OR,TOOLBAR:IR,STREAM:RR,PANEL:kR,ERRORS:PR}}),NR={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"},LR={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..."},FR={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"},BR={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"},VR={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"}},UR={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"},Nie=Object.freeze({__proto__:null,ADMIN:NR,PREJOIN:LR,TOOLBAR:FR,STREAM:BR,PANEL:VR,ERRORS:UR,default:{ADMIN:NR,PREJOIN:LR,TOOLBAR:FR,STREAM:BR,PANEL:VR,ERRORS:UR}}),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"},HR={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 ..."},GR={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"},zR={SETTINGS:"Instellingen",MUTE_SOUND:"Geluid dempen",UNMUTE_SOUND:"Geluid niet meer dempen",ZOOM_IN:"Inzoomen",ZOOM_OUT:"Uitzoomen",REPLACE_SCREEN:"Vervang scherm"},qR={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"}},WR={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..."},Fie=Object.freeze({__proto__:null,ADMIN:jR,PREJOIN:HR,TOOLBAR:GR,STREAM:zR,PANEL:qR,ERRORS:WR,default:{ADMIN:jR,PREJOIN:HR,TOOLBAR:GR,STREAM:zR,PANEL:qR,ERRORS:WR}}),$R={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"},KR={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"},XR={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..."},Vie=Object.freeze({__proto__:null,ADMIN:$R,PREJOIN:KR,TOOLBAR:YR,STREAM:QR,PANEL:XR,ERRORS:ZR,default:{ADMIN:$R,PREJOIN:KR,TOOLBAR:YR,STREAM:QR,PANEL:XR,ERRORS:ZR}}),si=(()=>{return(t=si||(si={})).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",si;var t})();let xt=(()=>{class t{constructor(e){this.minimal=new ft(!1),this.participantName=new ft(""),this.prejoin=new ft(!0),this.videoMuted=new ft(void 0),this.audioMuted=new ft(void 0),this.screenshareButton=new ft(!0),this.fullscreenButton=new ft(!0),this.captionsButton=new ft(!0),this.toolbarSettingsButton=new ft(!0),this.leaveButton=new ft(!0),this.participantsPanelButton=new ft(!0),this.chatPanelButton=new ft(!0),this.activitiesPanelButton=new ft(!0),this.displaySessionName=new ft(!0),this.displayLogo=new ft(!0),this.displayParticipantName=new ft(!0),this.displayAudioDetection=new ft(!0),this.streamSettingsButton=new ft(!0),this.participantItemMuteButton=new ft(!0),this.backgroundEffectsButton=new ft(!0),this.recordingsList=new ft([]),this.recordingButton=new ft(!0),this.broadcastingButton=new ft(!0),this.recordingActivity=new ft(!0),this.broadcastingActivity=new ft(!0),this.recordingError=new ft(null),this.broadcastingError=new ft(void 0),this.adminRecordingsList=new ft([]),this.adminLoginError=new ft(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)(re("OPENVIDU_ANGULAR_CONFIG"))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),oo=(()=>{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((r,o)=>r.bind(this.log,this.MSG_PREFIXES[o][0]+e+this.MSG_PREFIXES[o][1]))}get(e){const i=this.openviduAngularConfigSrv.isProduction(),r=this;return{d:function(...o){i||r.getLoggerFns(e)[0].apply(this.log,arguments)},w:function(...o){r.getLoggerFns(e)[1].apply(this.log,arguments)},e:function(...o){r.getLoggerFns(e)[2].apply(this.log,arguments)}}}}return t.\u0275fac=function(e){return new(e||t)(re(xt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vr=(()=>{class t{constructor(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}getNickname(){return this.get(si.USER_NICKNAME)}setNickname(e){this.set(si.USER_NICKNAME,e)}getVideoDevice(){return this.get(si.VIDEO_DEVICE)}setVideoDevice(e){this.set(si.VIDEO_DEVICE,e)}getAudioDevice(){return this.get(si.AUDIO_DEVICE)}setAudioDevice(e){this.set(si.AUDIO_DEVICE,e)}isVideoMuted(){return"true"===this.get(si.VIDEO_MUTED)}setVideoMuted(e){this.set(si.VIDEO_MUTED,`${e}`)}isAudioMuted(){return"true"===this.get(si.AUDIO_MUTED)}setAudioMuted(e){this.set(si.AUDIO_MUTED,`${e}`)}setLang(e){this.set(si.LANG,e)}getLang(){return this.get(si.LANG)}setCaptionLang(e){this.set(si.CAPTION_LANG,e)}getCaptionsLang(){return this.get(si.CAPTION_LANG)}setBackground(e){this.set(si.BACKGROUND,e)}getBackground(){return this.get(si.BACKGROUND)}removeBackground(){this.remove(si.BACKGROUND)}set(e,i){const r=JSON.stringify({item:i});this.storage.setItem(e,r)}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)(re(oo))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xo=(()=>{class t{constructor(e){this.storageService=e,this.availableLanguages={en:wie,es:Tie,de:Sie,fr:Mie,cn:Cie,hi:Iie,it:kie,ja:Nie,nl:Fie,pt:Vie},this.langOptions=[{name:"English",lang:"en"},{name:"Espa\xf1ol",lang:"es"},{name:"Deutsch",lang:"de"},{name:"Fran\xe7ais",lang:"fr"},{name:"\u4e2d\u56fd",lang:"cn"},{name:"\u0939\u093f\u0928\u094d\u0926\u0940",lang:"hi"},{name:"Italiano",lang:"it"},{name:"\u3084\u307e\u3068",lang:"ja"},{name:"Dutch",lang:"nl"},{name:"Portugu\xeas",lang:"pt"}],this._langSelected=new ft(void 0),this.langSelectedObs=this._langSelected.asObservable(),this.updateLangSelected()}setLanguageOptions(e){e&&e.length>0&&(this.langOptions=e,this.updateLangSelected())}setLanguage(e){return De(this,void 0,void 0,function*(){const i=this.langOptions.find(r=>r.lang===e);i&&(this.currentLang=yield this.getLangData(e),this.langSelected=i,this._langSelected.next(this.langSelected))})}getLangSelected(){return this.langSelected}getLanguagesInfo(){return this.langOptions}translate(e){let i=this.currentLang;return e.split(".").forEach(r=>{try{i=i[r]}catch(o){return""}}),i}updateLangSelected(){return De(this,void 0,void 0,function*(){const e=this.storageService.getLang(),i=this.langOptions.find(r=>r.lang===e);this.langSelected=e&&i?i:this.langOptions[0],this.currentLang=yield this.getLangData(this.langSelected.lang),this._langSelected.next(this.langSelected)})}getLangData(e){return De(this,void 0,void 0,function*(){if(e in this.availableLanguages)return this.availableLanguages[e];try{return yield(yield fetch(`assets/lang/${e}.json`)).json()}catch(i){console.error(`Not found ${e}.json in assets/lang`,i)}})}}return t.\u0275fac=function(e){return new(e||t)(re(Vr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Hn=(()=>{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",'OpenVidu PRO'):i}}return t.\u0275fac=function(e){return new(e||t)(h(Xo,16))},t.\u0275pipe=qn({name:"translate",type:t,pure:!1}),t})(),JR=(()=>{class t{constructor(e){this.dialogRef=e}close(e=!1){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(h(kl))},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&&(I(0,"div",0),se(1),ye(2,"translate"),B(),I(3,"div",1)(4,"button",2),we("click",function(){return i.close()}),se(5),ye(6,"translate"),B(),I(7,"button",3),we("click",function(){return i.close(!0)}),se(8),ye(9,"translate"),B()()),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:[xn,yf,Cf,Hn]}),t})(),ek=(()=>{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(kl),h(bf))},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&&(I(0,"h1",0),se(1),B(),I(2,"div",1),se(3),B(),Z(4,vZ,4,3,"div",2)),2&e&&(A(1),Ne(i.data.title),A(2),Ne(i.data.description),A(1),j("ngIf",i.data.showActionButtons))},dependencies:[Qt,xn,yx,yf,Cf,Hn],encapsulation:2}),t})(),tk=(()=>{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(kl),h(bf))},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&&(I(0,"h1",0),se(1),B(),I(2,"div",1),se(3),B(),Z(4,_Z,10,6,"div",2)),2&e&&(A(1),Ne(i.data.title),A(2),Ne(i.data.description),A(1),j("ngIf",i.data.showActionButtons))},dependencies:[Qt,xn,oi,yx,yf,Cf,Hn],encapsulation:2}),t})(),nk=(()=>{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(kl),h(bf))},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&&(I(0,"div",0),Ze(1,"video",1),B(),Z(2,bZ,4,3,"div",2)),2&e&&(A(1),j("src",i.src,Ga),A(1),j("ngIf",i.data.showActionButtons))},dependencies:[Qt,xn,yf,Cf,Hn],styles:["video[_ngcontent-%COMP%]{max-height:64vh;max-width:100%}"]}),t})(),Eo=(()=>{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 r=this.snackBar.open(e.message,e.buttonActionText,e.config);i&&r.onAction().subscribe(()=>{i()})}openDialog(e,i,r=!0){try{this.closeDialog()}catch(o){}finally{this.dialogRef=this.dialog.open(ek,{minWidth:"250px",data:{title:e,description:i,showActionButtons:r},disableClose:!r}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=void 0})}}openProFeatureDialog(e,i,r=!0){try{this.closeDialog()}catch(o){}finally{this.dialogRef=this.dialog.open(tk,{minWidth:"250px",data:{title:e,description:i,showActionButtons:r},disableClose:!r}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=void 0})}}openDeleteRecordingDialog(e){try{this.closeDialog()}catch(i){}finally{this.dialogRef=this.dialog.open(JR),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(i=>{i&&e()})}}openRecordingPlayerDialog(e,i=!0){try{this.closeDialog()}catch(r){}finally{this.dialogRef=this.dialog.open(nk,{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)(re(S6),re(R_))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var On=(()=>{return(t=On||(On={})).STARTING="starting",t.STARTED="started",t.STOPPING="stopping",t.STOPPED="stopped",t.FAILED="failed",t.READY="ready",On;var t})();let nd=(()=>{class t{constructor(e){this.actionService=e,this.forceUpdateRecordingsObs=new ue,this.currentRecording={status:On.STOPPED},this.recordingStatus=new ft(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:On.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=On.STOPPED,this.currentRecording.reason=e.reason,this.recordingStatus.next({info:this.currentRecording,time:void 0}),this.stopRecordingTime()}playRecording(e){const i=e.id,o=`?t=${(new Date).getTime()}`;this.actionService.openRecordingPlayerDialog(`${this.baseUrl}recordings/${i}/${i}.mp4${o}`)}downloadRecording(e){const i=e.id,o=document.createElement("a");o.href=`/recordings/${i}/${i}.mp4`,o.download=`${i}.mp4`,o.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{o.remove()},100)}forceUpdateRecordings(){this.forceUpdateRecordingsObs.next()}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)(re(Eo))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ik=(()=>{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=qn({name:"duration",type:t,pure:!0}),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(an))},t.\u0275dir=me({type:t,selectors:[["","ovToolbar",""]]}),t})(),rk=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovToolbarAdditionalButtons",""]]}),t})(),ok=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovToolbarAdditionalPanelButtons",""]]}),t})(),Wie=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovPanel",""]]}),t})(),sk=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovAdditionalPanels",""]]}),t})(),ak=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovChatPanel",""]]}),t})(),lk=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovActivitiesPanel",""]]}),t})(),ck=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovParticipantsPanel",""]]}),t})(),uk=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovParticipantPanelItem",""]]}),t})(),dk=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovParticipantPanelItemElements",""]]}),t})(),$ie=(()=>{class t{constructor(e,i){this.template=e,this.container=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovLayout",""]]}),t})(),hk=(()=>{class t{constructor(e,i){this.template=e,this.container=i}}return t.\u0275fac=function(e){return new(e||t)(h(vt),h(an))},t.\u0275dir=me({type:t,selectors:[["","ovStream",""]]}),t})();var Ur=(()=>{return(t=Ur||(Ur={})).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",Ur;var t})(),Xl=(()=>{return(t=Xl||(Xl={})).OVER="over",t.SIDE="side",Xl;var t})(),Zl=(()=>{return(t=Zl||(Zl={})).START="start",t.CENTER="center",t.END="end",Zl;var t})();class Kie{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 r=Array.prototype.filter.call(this.layoutContainer.querySelectorAll(`#${i}>*:not(.${Ur.IGNORED_ELEMENT})`),()=>this.filterDisplayNone),o=r.map(a=>{const l=this.getChildDims(a);return l.big=a.classList.contains(this.opts.bigClass),l});this.getLayout(e,o).boxes.forEach((a,l)=>{const c=r[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 o=window.getComputedStyle(n).getPropertyValue(e);return""===o&&(o=n.style[e]),o}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(r=>{n.hasOwnProperty(r)&&(i[r]=n[r])}),i}fixAspectRatio(n,e){const i=n.querySelector(`.${Ur.ROOT_ELEMENT}`);if(i){const r=i.style.width;i.style.width=`${e}px`,i.style.width=r||""}}positionElement(n,e,i,r,o,s){const a={left:`${e}px`,top:`${i}px`,width:`${r}px`,height:`${o}px`};this.fixAspectRatio(n,r),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,r)},10):(this.css(n,a),n.classList.contains(Ur.CLASS_NAME)||n.classList.add(Ur.CLASS_NAME)),this.fixAspectRatio(n,r)}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,r,o,s,a){let l,c,u,d,p,D,H,ne;for(let fe=1;fe<=o;fe++){const he=fe,_e=Math.ceil(o/he);H=Math.floor(r/_e),D=Math.floor(i/he),ne=H/D,ne>e?(ne=e,H=D*ne):ne=l)&&(ge===l&&o%(he*_e)>o%(u*c)||(l=ge,d=H,p=D,c=he,u=_e))}return{maxArea:l,targetCols:c,targetRows:u,targetHeight:d,targetWidth:p,ratio:d/p}}getVideoRatio(n){return n.height/n.width}getLayout(n,e){const{maxRatio:i=1.5,minRatio:r=9/16,fixedRatio:o=!1,bigPercentage:s=.8,minBigPercentage:a=0,bigFixedRatio:l=!1,bigMaxRatio:c=1.5,bigMinRatio:u=9/16,bigFirst:d=!0,containerWidth:p=640,containerHeight:D=480,alignItems:H="center",bigAlignItems:ne="center",smallAlignItems:fe="center",maxWidth:he=1/0,maxHeight:_e=1/0,smallMaxWidth:ge=1/0,smallMaxHeight:ve=1/0,bigMaxWidth:He=1/0,bigMaxHeight:ht=1/0,scaleLastRow:$t=!0,bigScaleLastRow:Mt=!0}=n,En=D/p;let Rt=0,dn=0,_i=0,Gn=0;const Di=[];let br=[],Qe=[],Ge={big:null,small:null};const rt=e.filter(Bt=>!Bt.big),it=e.filter((Bt,Ct)=>!!Bt.big&&(Di.push(Ct),!0));if(it.length>0&&rt.length>0){let Bt,Ct,Ve=d;if(En>this.getVideoRatio(it[0])){if(Bt=p,Ct=Math.floor(D*s),a>0){let yr;if(l){const Qi=it[0].height/it[0].width;yr=this.getBestDimensions(Qi,Qi,Bt,Ct,it.length,He,ht)}else yr=this.getBestDimensions(u,c,Bt,Ct,it.length,He,ht);Ct=Math.max(D*a,Math.min(Ct,yr.targetHeight*yr.targetRows));const Rn=this.getBestDimensions(r,i,p,D-Ct,rt.length,ge,ve);Ct=Math.max(Ct,D-Rn.targetRows*Rn.targetHeight)}dn=Ct,_i=D-dn,"column"===d?Ve=!1:"row"===d&&(Ve=!0)}else{if(Ct=D,Bt=Math.floor(p*s),a>0){let yr;if(l){const Qi=it[0].height/it[0].width;yr=this.getBestDimensions(Qi,Qi,Bt,Ct,it.length,He,ht)}else yr=this.getBestDimensions(u,c,Bt,Ct,it.length,He,ht);Bt=Math.max(p*a,Math.min(Bt,yr.targetWidth*yr.targetCols));const Rn=this.getBestDimensions(r,i,p-Bt,D,rt.length,ge,ve);Bt=Math.max(Bt,p-Rn.targetCols*Rn.targetWidth)}Rt=Bt,Gn=p-Rt,"column"===d?Ve=!0:"row"===d&&(Ve=!1)}Ve?(Ge.big={top:0,left:0,width:Bt,height:Ct},Ge.small={top:dn,left:Rt,width:p-Rt,height:D-dn}):(Ge.big={left:Gn,top:_i,width:Bt,height:Ct},Ge.small={top:0,left:0,width:p-Rt,height:D-dn})}else it.length>0&&0===rt.length?Ge.big={top:0,left:0,width:p,height:D}:Ge.small={top:dn,left:Rt,width:p-Rt,height:D-dn};Ge.big&&(br=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:Mt},it)),Ge.small&&(Qe=this.getLayoutAux({containerWidth:Ge.small.width,containerHeight:Ge.small.height,offsetLeft:Ge.small.left,offsetTop:Ge.small.top,fixedRatio:o,minRatio:r,maxRatio:i,alignItems:Ge.big?fe:H,maxWidth:Ge.big?ge:he,maxHeight:Ge.big?ve:_e,scaleLastRow:$t},rt));const jt=[];let Sn=0,ai=0;return e.forEach((Bt,Ct)=>{Di.indexOf(Ct)>-1?(jt[Ct]=br[Sn],Sn+=1):(jt[Ct]=Qe[ai],ai+=1)}),{boxes:jt,areas:Ge}}getLayoutAux(n,e){const{maxRatio:i=1.5,minRatio:r=9/16,fixedRatio:o=!1,containerWidth:s=640,containerHeight:a=480,offsetLeft:l=0,offsetTop:c=0,alignItems:u="center",maxWidth:d=1/0,maxHeight:p=1/0,scaleLastRow:D=!0}=n,H=e.map(Mt=>Mt.height/Mt.width),ne=H.length;let fe;if(o){const Mt=H.length>0?H[0]:null;fe=this.getBestDimensions(Mt,Mt,s,a,ne,d,p)}else fe=this.getBestDimensions(r,i,s,a,ne,d,p);let he=0,_e=0;const ge=[];let ve;const He=[];for(let Mt=0;Mts?(ve.height=Math.floor(ve.height*(s/ve.width)),ve.width=s):ve.width0){let Mt=a-ht;ht=0;for(let En=0;En(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,Mt-=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 Mt=0;Mt{class t{constructor(){this.layoutContainer=null,this.layoutWidth=new ft(0),this.captionsToggling=new ft(!1),this.layoutWidthObs=this.layoutWidth.asObservable(),this.captionsTogglingObs=this.captionsToggling.asObservable()}initialize(e){this.layoutContainer=e,this.openviduLayout=new Kie,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:Ur.BIG_ELEMENT,smallClass:Ur.SMALL_ELEMENT,ignoredClass:Ur.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(),Ur.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 gn=(()=>{return(t=gn||(gn={})).CAMERA="CAMERA",t.SCREEN="SCREEN",t.CUSTOM="CUSTOM",gn;var t})(),id=(()=>{return(t=id||(id={})).WINDOW="window",t.SCREEN="screen",id;var t})(),rd=(()=>{return(t=rd||(rd={})).MODERATOR="MODERATOR",t.PUBLISHER="PUBLISHER",rd;var t})();class Qie extends class Yie{constructor(n,e){this.streams=new Map,this.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:gn.CAMERA,streamManager:null==e?void 0:e.streamManager,videoEnlarged:!!e&&e.videoEnlarged,connectionId:null==e?void 0:e.connectionId,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)||!1}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)||!1}hasConnectionType(n){return this.streams.has(n)}getCameraConnection(){return this.streams.get(gn.CAMERA)}getScreenConnection(){return this.streams.get(gn.SCREEN)}getActiveConnectionTypes(){const n=[];return this.isCameraActive()&&n.push(gn.CAMERA),this.isScreenActive()&&n.push(gn.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)}hasCameraAndScreenActives(){return this.isCameraActive()&&this.isScreenActive()}hasOnlyScreenActive(){return this.isScreenActive()&&!this.isCameraActive()}hasOnlyCameraActive(){return this.isCameraActive()&&!this.isScreenActive()}setAllVideoEnlarged(n){this.streams.forEach(e=>e.videoEnlarged=n)}setCameraEnlarged(n){this.streams.get(gn.CAMERA).videoEnlarged=n}setScreenEnlarged(n){this.streams.get(gn.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,r;return null===(r=null===(i=null===(e=null===(n=this.streams.get(gn.CAMERA))||void 0===n?void 0:n.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.role}}{}var Zo=(()=>{return(t=Zo||(Zo={})).FRONT="FRONT",t.BACK="BACK",Zo;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),r=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e),o="ontouchend"in document;return(i||r)&&o}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})(),Ca=(()=>{class t{constructor(e,i,r,o){this.loggerSrv=e,this.platformSrv=i,this.storageSrv=r,this.libSrv=o,this.OV=null,this.cameras=[],this.microphones=[],this.videoDevicesEnabled=!0,this.audioDevicesEnabled=!0,this.deviceAccessDeniedError=!1,this.log=this.loggerSrv.get("DevicesService")}forceInitDevices(){return De(this,void 0,void 0,function*(){this.clear(),this.OV=new Ds.OpenVidu;try{yield this.OV.getUserMedia({audioSource:void 0,videoSource:void 0}),this.devices=yield this.getOpenViduDevices()}catch(e){this.deviceAccessDeniedError=e.name===Ds.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=void 0===this.libSrv.videoMuted.getValue()?this.storageSrv.isVideoMuted():Boolean(this.libSrv.videoMuted.getValue()),this._isAudioMuted=void 0===this.libSrv.audioMuted.getValue()?this.storageSrv.isAudioMuted():Boolean(this.libSrv.audioMuted.getValue()),this.log.d("Media devices",this.cameras,this.microphones))}})}refreshDevices(){return De(this,void 0,void 0,function*(){this.deviceAccessDeniedError||(this.devices=yield this.getOpenViduDevices(),this.initializeCustomDevices())})}initializeCustomDevices(e=!0){const r=this.devices.filter(s=>s.kind===od.AUDIO_INPUT),o=this.devices.filter(s=>s.kind===od.VIDEO_INPUT);r.length>0&&(this.microphones=[],r.forEach(s=>{this.microphones.push({label:s.label,device:s.deviceId})})),o.length>0&&(this.cameras=[],o.forEach((s,a)=>{const l={label:s.label,device:s.deviceId,type:Zo.BACK};this.platformSrv.isMobile()?l.label.toLowerCase().includes(Zo.FRONT.toLowerCase())&&(l.type=Zo.FRONT):0===a&&(l.type=Zo.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,r;return(null===(i=this.cameraSelected)||void 0===i?void 0:i.device)!==e.device||(null===(r=this.cameraSelected)||void 0===r?void 0:r.label)!==e.label}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)===Zo.FRONT}disableVideoDevices(){this.videoDevicesEnabled=!1}disableAudioDevices(){this.audioDevicesEnabled=!1}clear(){this.OV=null,this.devices=[],this.cameras=[],this.microphones=[],this.cameraSelected=void 0,this.microphoneSelected=void 0,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 De(this,void 0,void 0,function*(){return((yield null===(e=this.OV)||void 0===e?void 0:e.getDevices())||[]).filter(r=>!!r.label&&!!r.deviceId)})}}return t.\u0275fac=function(e){return new(e||t)(re(oo),re(Jl),re(Vr),re(xt))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ki=(()=>{class t{constructor(e,i,r,o,s){this.openviduAngularConfigSrv=e,this.platformService=i,this.loggerSrv=r,this.injector=o,this.deviceService=s,this.webcamToken="",this.screenToken="",this.videoSource=void 0,this.audioSource=void 0,this.STT_TIMEOUT_MS=2e3,this._isSttReady=new ft(!0),this.log=this.loggerSrv.get("OpenViduService"),this.isSttReadyObs=this._isSttReady.asObservable()}initialize(){this.OV=new Ds.OpenVidu,this.OV.setAdvancedConfiguration({publisherSpeakingEventsOptions:{interval:50}}),this.openviduAngularConfigSrv.isProduction()&&this.OV.enableProdMode(),this.webcamSession=this.OV.initSession(),this.platformService.isMobile()||(this.OVScreen=new Ds.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(){return De(this,void 0,void 0,function*(){this.videoSource=void 0,this.audioSource=void 0})}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)}connectWebcamSession(e,i){return De(this,void 0,void 0,function*(){if(!this.isWebcamSessionConnected())return this.log.d("Connecting webcam session"),yield this.webcamSession.connect(this.getWebcamToken(),{clientData:i,participantId:e,type:gn.CAMERA}),this.webcamSession.connection.connectionId;this.log.d("Webcam session is already connected")})}connectScreenSession(e,i){return De(this,void 0,void 0,function*(){if(!this.isScreenSessionConnected())return this.log.d("Connecting screen session"),yield this.screenSession.connect(this.getScreenToken(),{clientData:`${i}_${gn.SCREEN}`,participantId:e,type:gn.SCREEN}),this.screenSession.connection.connectionId;this.log.d("Screen session is already connected")})}disconnect(){this.disconnectSession(this.webcamSession),this.disconnectSession(this.screenSession)}initDefaultPublisher(){return De(this,void 0,void 0,function*(){const e=this.deviceService.hasVideoDeviceAvailable(),i=this.deviceService.hasAudioDeviceAvailable(),r=!this.deviceService.isVideoMuted(),o=!this.deviceService.isAudioMuted();let s=!1,a=!1;e&&(s=this.deviceService.getCameraSelected().device),i&&(a=this.deviceService.getMicrophoneSelected().device);const l=this.deviceService.getCameraSelected()&&this.deviceService.getCameraSelected().type===Zo.FRONT;if(e||i)return this.initPublisher({videoSource:s,audioSource:a,publishVideo:r,publishAudio:o,mirror:l})})}initPublisher(e,i){return this.log.d("Initializing publisher with properties: ",e),this.OV.initPublisherAsync(i,e)}initScreenPublisher(e){const i=this.deviceService.hasAudioDeviceAvailable(),r={videoSource:id.SCREEN,audioSource:!!i&&this.deviceService.getMicrophoneSelected().device,publishVideo:!0,publishAudio:e&&i,mirror:!1};return this.initPublisher(r)}publishCamera(e){var i,r;return De(this,void 0,void 0,function*(){if(e){if(null!==(r=null===(i=this.webcamSession)||void 0===i?void 0:i.capabilities)&&void 0!==r&&r.publish)return this.webcamSession.publish(e);this.log.e("Webcam publisher cannot be published")}})}publishScreen(e){var i,r;return De(this,void 0,void 0,function*(){if(e){if(null!==(r=null===(i=this.screenSession)||void 0===i?void 0:i.capabilities)&&void 0!==r&&r.publish)return this.screenSession.publish(e);this.log.e("Screen publisher cannot be published")}})}unpublishCamera(e){return De(this,void 0,void 0,function*(){if(e)return this.webcamSession.unpublish(e)})}unpublishScreen(e){return De(this,void 0,void 0,function*(){if(e)return this.screenSession.unpublish(e)})}publishVideo(e){return De(this,void 0,void 0,function*(){return this.injector.get(In).publishVideo(e)})}toggleScreenshare(){return De(this,void 0,void 0,function*(){return this.injector.get(In).toggleScreenshare()})}publishAudio(e){this.injector.get(In).publishAudio(e)}sendSignal(e,i,r){const o={data:JSON.stringify(r),type:e,to:i&&i.length>0?i:void 0};return this.webcamSession.signal(o)}replaceCameraTrack(e,i){return De(this,void 0,void 0,function*(){const r=!!i.audioSource,o=!!i.videoSource;let s,a;try{(o||r)&&(s=yield this.createMediaStream(i)),o?a=null==s?void 0:s.getVideoTracks()[0]:r&&(a=null==s?void 0:s.getAudioTracks()[0]),a&&(yield e.replaceTrack(a))}catch(l){this.log.e("Error replacing track ",l)}})}replaceScreenTrack(e,i){return De(this,void 0,void 0,function*(){try{let r=yield this.OVScreen.getUserMedia(i);e.stream.getMediaStream().getVideoTracks()[0].stop(),yield e.replaceTrack(r.getVideoTracks()[0])}catch(r){this.log.w("Cannot create the new MediaStream",r)}})}subscribeRemotesToSTT(e){var i,r;return De(this,void 0,void 0,function*(){const s=this.injector.get(In).getRemoteParticipants();let a=0;for(const l of s){const c=null===(r=null===(i=l.getCameraConnection())||void 0===i?void 0:i.streamManager)||void 0===r?void 0:r.stream;if(c)try{yield this.subscribeStreamToStt(c,e),a++}catch(u){this.log.e(`Error subscribing ${c.streamId} to STT:`,u);break}}this.setSTTReady(a===s.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 De(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 De(this,void 0,void 0,function*(){const e=this.injector.get(In);if(clearTimeout(this.sttReconnectionTimeout),this.isSttReady())for(const i of e.getRemoteParticipants()){const r=i.getCameraConnection().streamManager.stream;if(r)try{yield this.getWebcamSession().unsubscribeFromSpeechToText(r)}catch(o){this.log.e(`Error unsubscribing ${r.streamId} from STT:`,o)}}})}createMediaStream(e){return De(this,void 0,void 0,function*(){const i=this.injector.get(In),r=this.deviceService.getCameraSelected(),o=this.deviceService.getMicrophoneSelected(),s=Boolean(e.audioSource),a=Boolean(e.videoSource);try{const l=s?"audio":"video";return this.forceStopMediaTracks(i.getMyCameraPublisher().stream.getMediaStream(),l),this.OV.getUserMedia(e)}catch(l){if(console.warn("Error creating MediaStream",l),l.name===Ds.OpenViduErrorName.DEVICE_ACCESS_DENIED)return this.log.w("The device requested is not available. Restoring the older one"),a?e.videoSource=null==r?void 0:r.device:s&&(e.audioSource=null==o?void 0:o.device),this.OV.getUserMedia(e);throw l}})}myNicknameHasBeenChanged(){const e=this.injector.get(In);let i="";try{i=JSON.parse(this.cleanConnectionData(this.webcamSession.connection.data)).clientData}catch(r){this.log.e(r)}finally{return i!==e.getMyNickname()}}isMyOwnConnection(e){var i,r,o,s;return(null===(r=null===(i=this.webcamSession)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)===e||(null===(s=null===(o=this.screenSession)||void 0===o?void 0:o.connection)||void 0===s?void 0:s.connectionId)===e}getRemoteConnections(){return Array.from(this.webcamSession.remoteConnections.values()).filter(i=>{let r;return r=JSON.parse(this.cleanConnectionData(i.data)).type,r!==gn.SCREEN})}disconnectSession(e){var i,r,o,s;e&&(e.sessionId===(null===(i=this.webcamSession)||void 0===i?void 0:i.sessionId)?(this.log.d("Disconnecting webcam session"),null===(r=this.webcamSession)||void 0===r||r.disconnect(),this.webcamSession=null):e.sessionId===(null===(o=this.screenSession)||void 0===o?void 0:o.sessionId)&&(this.log.d("Disconnecting screen session"),null===(s=this.screenSession)||void 0===s||s.disconnect(),this.screenSession=null))}cleanConnectionData(e){return e.split("%/%")[0]}forceStopMediaTracks(e,i){e&&e.getTracks().forEach(r=>{r.kind===i&&(r.stop(),r.enabled=!1)})}}return t.\u0275fac=function(e){return new(e||t)(re(xt),re(Jl),re(oo),re(pn),re(Ca))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),In=(()=>{class t{constructor(e,i,r,o){this.openviduAngularConfigSrv=e,this.openviduService=i,this.deviceService=r,this.loggerSrv=o,this._localParticipant=new ft(null),this._remoteParticipants=new ft([]),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}publishVideo(e){return De(this,void 0,void 0,function*(){const i=this.isMyAudioActive(),r=this.getMyCameraPublisher(),o=this.getMyScreenPublisher();if(this.localParticipant.hasCameraAndScreenActives())yield this.publishVideoAux(r,e),this.disableWebcamStream(),this.openviduService.unpublishCamera(r),this.publishAudioAux(o,i);else if(this.localParticipant.hasOnlyScreenActive()){const s=this.hasScreenAudioActive(),a=yield this.openviduService.connectWebcamSession(this.getMyNickname(),this.getLocalParticipant().id);a&&this.setMyCameraConnectionId(a),yield this.openviduService.publishCamera(r),yield this.publishVideoAux(r,!0),this.publishAudioAux(o,!1),this.publishAudioAux(r,s),this.enableWebcamStream()}else yield this.publishVideoAux(r,e);this.updateLocalParticipant()})}publishAudio(e){this.isMyCameraActive()?(this.localParticipant.isScreenActive()&&this.hasScreenAudioActive()&&this.publishAudioAux(this.getMyScreenPublisher(),!1),this.publishAudioAux(this.getMyCameraPublisher(),e)):this.publishAudioAux(this.getMyScreenPublisher(),e),this.updateLocalParticipant()}toggleScreenshare(){return De(this,void 0,void 0,function*(){const e=this.getMyScreenPublisher(),i=this.getMyCameraPublisher(),r=this.getMyNickname(),o=this.getLocalParticipant().id;if(this.localParticipant.hasCameraAndScreenActives())this.disableScreenStream(),this.updateLocalParticipant(),this.openviduService.unpublishScreen(e);else if(this.localParticipant.hasOnlyCameraActive()){const a=(!this.isMyCameraActive()||!this.isMyVideoActive())&&this.isMyAudioActive(),l=yield this.openviduService.initScreenPublisher(a);l.once("accessAllowed",()=>De(this,void 0,void 0,function*(){l.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",()=>De(this,void 0,void 0,function*(){this.log.d("Clicked native stop button. Stopping screen sharing"),yield this.toggleScreenshare()})),this.activeMyScreenShare(l),this.openviduService.isScreenSessionConnected()||(yield this.openviduService.connectScreenSession(o,r)),yield this.openviduService.publishScreen(l),this.isMyVideoActive()||(this.disableWebcamStream(),this.updateLocalParticipant(),this.openviduService.unpublishCamera(i))})),l.once("accessDenied",c=>Promise.reject(c))}else{const s=this.hasScreenAudioActive();this.openviduService.isWebcamSessionConnected()||(yield this.openviduService.connectWebcamSession(o,r)),yield this.openviduService.publishCamera(i),this.publishAudioAux(i,s),this.enableWebcamStream(),this.disableScreenStream(),this.updateLocalParticipant(),this.openviduService.unpublishScreen(e)}})}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()}disableWebcamStream(){this.localParticipant.disableCamera()}activeMyScreenShare(e){this.log.d("Enabling screen publisher");const i={type:gn.SCREEN,videoEnlarged:!0,streamManager:e,connected:!0,connectionId:""};this.resetRemoteStreamsToNormalSize(),this.resetMyStreamsToNormalSize(),this.localParticipant.addConnection(i),this.updateLocalParticipant()}disableScreenStream(){this.localParticipant.disableScreen()}setMyNickname(e){this.localParticipant.setNickname(e),this.updateLocalParticipant()}getMyNickname(){return this.localParticipant.nickname}getMyRole(){return this.localParticipant.getRole()}amIModerator(){return this.getMyRole()===rd.MODERATOR}toggleMyVideoEnlarged(e){this.localParticipant.toggleVideoEnlarged(e)}resetMyStreamsToNormalSize(){this.localParticipant.someHasVideoEnlarged()&&(this.localParticipant.setAllVideoEnlarged(!1),this.updateLocalParticipant())}clear(){var e,i,r,o;return De(this,void 0,void 0,function*(){yield null===(i=null===(e=this.getMyCameraPublisher())||void 0===e?void 0:e.stream)||void 0===i?void 0:i.disposeMediaStream(),yield null===(o=null===(r=this.getMyScreenPublisher())||void 0===r?void 0:r.stream)||void 0===o?void 0:o.disposeMediaStream(),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()}hasScreenAudioActive(){return this.localParticipant.isScreenAudioActive()}updateLocalParticipant(){this._localParticipant.next(Object.assign(Object.create(Object.getPrototypeOf(this.localParticipant)),Object.assign({},this.localParticipant)))}publishAudioAux(e,i){e&&e.publishAudio(i)}publishVideoAux(e,i){var r;return De(this,void 0,void 0,function*(){if(e){let o=!0;if(i){const s=null===(r=this.deviceService.getCameraSelected())||void 0===r?void 0:r.device;o=(yield this.openviduService.createMediaStream({videoSource:s,audioSource:!1})).getVideoTracks()[0]}yield e.publishVideo(i,o)}})}addRemoteConnection(e,i,r){const o=this.getTypeConnectionData(i),s={type:o,videoEnlarged:o===gn.SCREEN,streamManager:r,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,r)):(this.log.d("Participant has not publisher, adding it"),s.type===gn.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 r=i.removeConnection(e);if(0===i.streams.size&&(this.remoteParticipants=this.remoteParticipants.filter(o=>o!==i)),r.type===gn.SCREEN){const o=this.remoteParticipants.filter(s=>s.isScreenActive());o.length>0?o[o.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{const i=e.replace("%/%{}","");return JSON.parse(i).clientData}catch(i){return"OpenVidu_User"}}setRemoteNickname(e,i){const r=this.getRemoteParticipantByConnectionId(e);r&&(r.setNickname(i),this.updateRemoteParticipants())}setRemoteMutedForcibly(e,i){const r=this.getRemoteParticipantById(e);r&&(r.setMutedForcibly(i),this.updateRemoteParticipants())}updateRemoteParticipants(){this._remoteParticipants.next([...this.remoteParticipants])}getTypeConnectionData(e){try{return JSON.parse(e).type}catch(i){return gn.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)(re(xt),re(Ki),re(Ca),re(oo))},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})(),ec=(()=>{return(t=ec||(ec={})).GENERAL="general",t.AUDIO="audio",t.VIDEO="video",t.CAPTIONS="captions",ec;var t})();let _r=(()=>{class t{constructor(e){this.loggerSrv=e,this.isExternalOpened=!1,this._panelOpened=new ft({opened:!1}),this.panelTypes=Object.values(zt),this.log=this.loggerSrv.get("PanelService"),this.panelOpenedObs=this._panelOpened.asObservable()}togglePanel(e,i){let r=!1;const o=this._panelOpened.getValue().type,s=this._panelOpened.getValue().opened;this.panelTypes.includes(e)?(this.log.d(`Toggling ${e} menu`),r=o!==e||!s):(this.log.d("Toggling external panel"),this.isExternalOpened=!this.isExternalOpened||this.externalType!==e,this.externalType=this.isExternalOpened?e:"",r=this.isExternalOpened),this._panelOpened.next({opened:r,type:e,expand:i,oldType:o})}isPanelOpened(){return this._panelOpened.getValue().opened}closePanel(){this._panelOpened.next({opened:!1,type:void 0,expand:void 0,oldType:void 0})}isChatPanelOpened(){const e=this._panelOpened.getValue();return e.opened&&e.type===zt.CHAT}isParticipantsPanelOpened(){const e=this._panelOpened.getValue();return e.opened&&e.type===zt.PARTICIPANTS}isActivitiesPanelOpened(){const e=this._panelOpened.getValue();return e.opened&&e.type===zt.ACTIVITIES}isSettingsPanelOpened(){const e=this._panelOpened.getValue();return e.opened&&e.type===zt.SETTINGS}isBackgroundEffectsPanelOpened(){const e=this._panelOpened.getValue();return e.opened&&e.type===zt.BACKGROUND_EFFECTS}isExternalPanelOpened(){return this.isExternalOpened}}return t.\u0275fac=function(e){return new(e||t)(re(oo))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sd=(()=>{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 ue,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(r=>r.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(r=>r.lang===e);this.captionLangSelected=e&&i?i:this.langsOptions[0]}}return t.\u0275fac=function(e){return new(e||t)(re(Vr))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fk=(()=>{class t{constructor(e,i,r,o,s){this.panelService=e,this.openviduService=i,this.participantService=r,this.captionService=o,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 De(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 De(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,ec.CAPTIONS)}subscribeToTranscription(){this.session.on("speechToTextMessage",e=>{var i;if(e.text){clearInterval(this.deleteAllTimeout);const{connectionId:r,data:o}=e.connection,s=this.participantService.getNicknameFromConnectionData(o),a=(null===(i=this.participantService.getRemoteParticipantByConnectionId(r))||void 0===i?void 0:i.colorProfile)||"";this.updateCaption({connectionId:r,nickname:s,color:a,text:e.text,type:e.reason}),this.deleteAllEventsAfterDelay(this.DELETE_TIMEOUT),this.cd.markForCheck()}})}updateCaption(e){let i=[...this.captionEvents],r=i.length;if(0===r)i.push(e);else{const o=i[r-1],a="recognized"===o.type;if(o.connectionId===e.connectionId)a?e.text!==o.text&&(this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e)):(o.text=e.text,o.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 r;e.nativeElement.scroll({top:null===(r=this.scrollContainer.get(i))||void 0===r?void 0:r.nativeElement.scrollHeight,left:0})})}catch(e){}},20)}}return t.\u0275fac=function(e){return new(e||t)(h(_r),h(Ki),h(In),h(sd),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-captions"]],viewQuery:function(e,i){if(1&e&&St(NZ,5),2&e){let r;Re(r=ke())&&(i.captionEventRef=r)}},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&&(I(0,"div",0,1),Z(2,FZ,6,4,"div",2),Z(3,HZ,2,10,"div",3),Z(4,GZ,5,4,"div",4),Z(5,zZ,1,0,"div",5),B()),2&e){const r=ji(1);A(2),j("ngIf",r.offsetWidth>=600&&!i.settingsPanelOpened),A(1),j("ngIf",i.isSttReady),A(1),j("ngIf",!i.isSttReady),A(1),j("ngIf",r.offsetWidth>=600&&!i.settingsPanelOpened)}},dependencies:[Ii,Ir,Qt,fl,xn,oi,io,no,fb,Hn],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",[Un(":enter",[Pt({opacity:0}),Kn("50ms ease-in",Pt({opacity:1}))])])]},changeDetection:0}),t})(),Xie=(()=>{class t{constructor(){}transform(e){let i=[];return e&&Object.keys(e).length>0&&(i=Array.isArray(e)?e.map(r=>r.getAvailableConnections()).flat():e.getAvailableConnections()),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=qn({name:"streams",type:t,pure:!0}),t})(),Zie=(()=>{class t{constructor(e){this.translateService=e}transform(e){var i;return`(${(null!==(i=null==e?void 0:e.getActiveConnectionTypes())&&void 0!==i?i:[]).map(a=>this.translateService.translate(`PANEL.PARTICIPANTS.${a}`)).join(", ")})`}}return t.\u0275fac=function(e){return new(e||t)(h(Xo,16))},t.\u0275pipe=qn({name:"streamTypesEnabled",type:t,pure:!0}),t})(),fy=(()=>{class t{constructor(e,i,r){this.layoutService=e,this.participantService=i,this.cd=r,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(In),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-layout"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,qZ,5,vt),Je(r,hk,5)),2&e){let o;Re(o=ke())&&(i.streamTemplate=o.first),Re(o=ke())&&(i.externalStream=o.first)}},viewQuery:function(e,i){if(1&e&&St(H1,5,an),2&e){let r;Re(r=ke())&&(i.layoutContainer=r.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&&(I(0,"div",0)(1,"div",1,2),Z(3,$Z,2,7,"div",3),ye(4,"streams"),Z(5,YZ,2,7,"div",4),ye(6,"streams"),B(),Z(7,QZ,1,0,"ov-captions",5),B()),2&e&&(ut("withCaptions",i.captionsEnabled),A(3),j("ngForOf",Se(4,5,i.localParticipant)),A(2),j("ngForOf",Se(6,7,i.remoteParticipants)),A(2),j("ngIf",i.captionsEnabled))},dependencies:[Ii,Ir,Qt,us,no,fk,Xie],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_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}"],changeDetection:0}),t})();var So=(()=>{return(t=So||(So={})).NICKNAME_CHANGED="nicknameChanged",t.CHAT="chat",t.RECORDING_DELETED="recordingDeleted",So;var t})();let pk=(()=>{class t{constructor(e,i,r,o,s,a){this.recordingService=e,this.participantService=i,this.libService=r,this.actionService=o,this.openviduService=s,this.cd=a,this.onStartRecordingClicked=new Ee,this.onStopRecordingClicked=new Ee,this.onDeleteRecordingClicked=new Ee,this.onForceRecordingUpdate=new Ee,this.recordingStatus=On.STOPPED,this.opened=!1,this.recStatusEnum=On,this.isSessionCreator=!1,this.recordingAlive=!1,this.recordingsList=[]}ngOnInit(){this.subscribeToRecordingStatus(),this.subscribeToRecordingActivityDirective(),this.subscribeToForceRecordingUpdate(),this.isSessionCreator=this.participantService.amIModerator()}ngOnDestroy(){this.recordingStatusSubscription&&this.recordingStatusSubscription.unsubscribe(),this.recordingListSubscription&&this.recordingListSubscription.unsubscribe(),this.recordingErrorSub&&this.recordingErrorSub.unsubscribe(),this.forceRecordingUpdateSub&&this.forceRecordingUpdateSub.unsubscribe()}panelOpened(){this.opened=!0}panelClosed(){this.opened=!1}resetStatus(){let e=this.oldRecordingStatus;this.oldRecordingStatus===On.STARTING?e=On.STOPPED:this.oldRecordingStatus===On.STOPPING&&(e=On.STARTED),this.recordingService.updateStatus(e)}startRecording(){this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(On.STARTING)}stopRecording(){this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(On.STOPPING)}deleteRecording(e){this.actionService.openDeleteRecordingDialog((()=>De(this,void 0,void 0,function*(){this.onDeleteRecordingClicked.emit(e),yield this.openviduService.sendSignal(So.RECORDING_DELETED,this.openviduService.getRemoteConnections())})).bind(this))}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!==On.FAILED&&(this.oldRecordingStatus=this.recordingStatus,e.info.status===On.STOPPED&&!this.isSessionCreator&&this.onForceRecordingUpdate.emit()),this.recordingStatus=e.info.status,this.recordingAlive=e.info.status===On.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(On.FAILED),this.recordingError=(null===(i=e.error)||void 0===i?void 0:i.message)||e.message||e)})}subscribeToForceRecordingUpdate(){this.forceRecordingUpdateSub=this.recordingService.forceUpdateRecordingsObs.subscribe(()=>{this.onForceRecordingUpdate.emit()})}}return t.\u0275fac=function(e){return new(e||t)(h(nd),h(In),h(xt),h(Eo),h(Ki),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-recording-activity"]],inputs:{expanded:"expanded"},outputs:{onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked",onDeleteRecordingClicked:"onDeleteRecordingClicked",onForceRecordingUpdate:"onForceRecordingUpdate"},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","","class","delete-recording-btn","id","delete-recording-btn",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","","id","delete-recording-btn",1,"delete-recording-btn",3,"matTooltip","click"]],template:function(e,i){1&e&&(I(0,"mat-expansion-panel",0),we("opened",function(){return i.panelOpened()})("closed",function(){return i.panelClosed()}),I(1,"mat-expansion-panel-header")(2,"mat-list")(3,"mat-list-item")(4,"div",1),Z(5,XZ,2,0,"mat-icon",2),Z(6,ZZ,2,0,"mat-icon",3),Z(7,JZ,2,0,"mat-icon",4),B(),I(8,"h3",5),se(9),ye(10,"translate"),B(),I(11,"p",6),se(12),ye(13,"translate"),B(),I(14,"div",7)(15,"div",8)(16,"span"),se(17),ye(18,"uppercase"),B()()()()()(),Z(19,vJ,9,7,"div",9),B()),2&e&&(j("expanded",i.expanded)("ngClass",Jn(17,z1,!i.opened)),A(4),j("ngClass",Gc(19,wp,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),j("ngIf",i.recordingStatus!==i.recStatusEnum.FAILED&&i.recordingStatus!==i.recStatusEnum.STARTED),A(1),j("ngIf",i.recordingStatus===i.recStatusEnum.FAILED),A(1),j("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),j("ngClass",Gc(24,wp,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),j("ngIf",i.opened))},dependencies:[Ii,Ir,Qt,xn,oi,Nr,ra,no,Eb,Nu,Fu,Lu,Jf,n7,yb,Cb,vv,eD,_v,Oh,ik,Hn],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 ft(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 Jie={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 ere{constructor(){this.autolinker=new _$(Jie)}link(n){return this.autolinker.link(n)}}let gk=(()=>{class t{constructor(){this.linkifer=new ere}transform(e){return e&&this.linkifer.link(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=qn({name:"linkify",type:t,pure:!0}),t})(),mk=(()=>{class t{constructor(e,i,r,o){this.broadcastingService=e,this.participantService=i,this.libService=r,this.cd=o,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(In),h(xt),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&&(I(0,"mat-expansion-panel",0),we("opened",function(){return i.panelOpened()})("closed",function(){return i.panelClosed()}),I(1,"mat-expansion-panel-header")(2,"mat-list")(3,"mat-list-item")(4,"div",1),Z(5,_J,2,0,"mat-icon",2),Z(6,bJ,2,0,"mat-icon",3),Z(7,yJ,2,0,"mat-icon",4),B(),I(8,"h3",5),se(9),ye(10,"translate"),B(),I(11,"p",6),se(12),ye(13,"translate"),B(),I(14,"div",7)(15,"div",8)(16,"span"),se(17),ye(18,"uppercase"),B()()()()()(),Z(19,OJ,6,4,"div",9),B()),2&e&&(j("expanded",i.expanded)("ngClass",Jn(17,z1,!i.opened)),A(4),j("ngClass",Gc(19,wp,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),j("ngIf",i.broadcastingStatus!==i.broadcastingStatusEnum.FAILED&&i.broadcastingStatus!==i.broadcastingStatusEnum.STARTED),A(1),j("ngIf",i.broadcastingStatus===i.broadcastingStatusEnum.FAILED),A(1),j("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),j("ngClass",Gc(24,wp,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),j("ngIf",i.opened))},dependencies:[Ii,Qt,Wo,la,bs,xn,oi,Nr,ra,Ss,Qf,Es,no,Nu,Fu,Lu,yb,Cb,vv,gk,Hn],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}",q1],changeDetection:0}),t})(),vk=(()=>{class t{constructor(e,i,r){this.panelService=e,this.libService=i,this.cd=r,this.onStartRecordingClicked=new Ee,this.onStopRecordingClicked=new Ee,this.onDeleteRecordingClicked=new Ee,this.onForceRecordingUpdate=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()}_onForceRecordingUpdate(){this.onForceRecordingUpdate.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(_r),h(xt),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-activities-panel"]],outputs:{onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked",onDeleteRecordingClicked:"onDeleteRecordingClicked",onForceRecordingUpdate:"onForceRecordingUpdate",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","onForceRecordingUpdate",4,"ngIf"],["id","broadcasting-activity",3,"expanded","onStartBroadcastingClicked","onStopBroadcastingClicked",4,"ngIf"],["id","recording-activity",3,"expanded","onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked","onForceRecordingUpdate"],["id","broadcasting-activity",3,"expanded","onStartBroadcastingClicked","onStopBroadcastingClicked"]],template:function(e,i){1&e&&(I(0,"div",0)(1,"div",1)(2,"h3",2),se(3,"Activities"),B(),I(4,"button",3),we("click",function(){return i.close()}),ye(5,"translate"),I(6,"mat-icon"),se(7,"close"),B()()(),I(8,"div",4)(9,"mat-accordion",5),Z(10,IJ,1,1,"ov-recording-activity",6),Z(11,RJ,1,1,"ov-broadcasting-activity",7),B()()()),2&e&&(A(4),Ht("matTooltip",Se(5,4,"PANEL.CLOSE")),A(5),j("multi",!1),A(1),j("ngIf",i.showRecordingActivity),A(1),j("ngIf",i.showBroadcastingActivity))},dependencies:[Qt,xn,oi,Nr,Cs,Ss,Es,qW,pk,mk,Hn],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}",q1],changeDetection:0}),t})(),Dp=(()=>{class t{constructor(e,i,r,o,s){this.loggerSrv=e,this.openviduService=i,this.participantService=r,this.panelService=o,this.actionService=s,this._messageList=new ft([]),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:${So.CHAT}`,i=>{const r=i.from.connectionId,o=JSON.parse(i.data),s=this.openviduService.isMyOwnConnection(r);if(this.messageList.push({isLocal:s,nickname:o.nickname,message:o.message}),!this.panelService.isChatPanelOpened()){const a={message:`${o.nickname.toUpperCase()} sent a message`,cssClassName:"messageSnackbar",buttonActionText:"READ"};this.launchNotification(a),this.messageSound.play().catch(()=>{})}this._messageList.next(this.messageList)})}sendMessage(e){return De(this,void 0,void 0,function*(){if(""!==(e=e.replace(/ +(?= )/g,""))&&" "!==e){const i={message:e,nickname:this.participantService.getMyNickname()};yield this.openviduService.sendSignal(So.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)(re(oo),re(Ki),re(In),re(_r),re(Eo))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_k=(()=>{class t{constructor(e,i,r){this.chatService=e,this.panelService=i,this.cd=r,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(Dp),h(_r),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-chat-panel"]],viewQuery:function(e,i){if(1&e&&(St(kJ,5),St(PJ,5)),2&e){let r;Re(r=ke())&&(i.chatScroll=r.first),Re(r=ke())&&(i.chatInput=r.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&&(I(0,"div",0)(1,"div",1)(2,"h3",2),se(3),ye(4,"translate"),B(),I(5,"button",3),we("click",function(){return i.close()}),ye(6,"translate"),I(7,"mat-icon"),se(8,"close"),B()()(),I(9,"div",4)(10,"p",5),se(11),ye(12,"translate"),B()(),I(13,"div",6,7),Z(15,FJ,8,6,"div",8),B(),I(16,"div",9)(17,"textarea",10,11),we("keypress",function(o){return i.eventKeyPress(o)})("ngModelChange",function(o){return i.message=o}),ye(19,"translate"),B(),I(20,"button",12),we("click",function(){return i.sendMessage()}),I(21,"mat-icon",13),ye(22,"translate"),se(23,"send"),B()()()()),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),j("ngForOf",i.messageList),A(2),Ht("placeholder",Se(19,13,"PANEL.CHAT.PLACEHOLDER")),j("ngModel",i.message),A(4),Ht("matTooltip",Se(22,15,"PANEL.CHAT.SEND")))},dependencies:[Ii,Ir,Qt,Wo,la,Fl,bs,xn,oi,Nr,Cs,Ss,Qf,Es,no,gk,Hn],styles:[td,".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(hu(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(_r),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-panel"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,BJ,5,vt),Je(r,VJ,5,vt),Je(r,UJ,5,vt),Je(r,jJ,5,vt),Je(r,HJ,5,vt),Je(r,GJ,5,vt),Je(r,ck,5),Je(r,lk,5),Je(r,ak,5),Je(r,sk,5)),2&e){let o;Re(o=ke())&&(i.participantsPanelTemplate=o.first),Re(o=ke())&&(i.backgroundEffectsPanelTemplate=o.first),Re(o=ke())&&(i.settingsPanelTemplate=o.first),Re(o=ke())&&(i.activitiesPanelTemplate=o.first),Re(o=ke())&&(i.chatPanelTemplate=o.first),Re(o=ke())&&(i.additionalPanelsTemplate=o.first),Re(o=ke())&&(i.externalParticipantPanel=o.first),Re(o=ke())&&(i.externalActivitiesPanel=o.first),Re(o=ke())&&(i.externalChatPanel=o.first),Re(o=ke())&&(i.externalAdditionalPanels=o.first)}},decls:6,vars:6,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(Z(0,qJ,2,1,"ng-container",0),Z(1,$J,2,1,"ng-container",0),Z(2,YJ,2,1,"ng-container",0),Z(3,XJ,2,1,"ng-container",0),Z(4,JJ,2,1,"ng-container",0),Z(5,tee,2,1,"ng-container",0)),2&e&&(j("ngIf",i.isChatPanelOpened),A(1),j("ngIf",i.isParticipantsPanelOpened),A(1),j("ngIf",i.isBackgroundEffectsPanelOpened),A(1),j("ngIf",i.isSettingsPanelOpened),A(1),j("ngIf",i.isActivitiesPanelOpened),A(1),j("ngIf",i.additionalPanelsTemplate&&i.isExternalPanelOpened))},dependencies:[Qt,us],styles:[td],changeDetection:0}),t})(),my=(()=>{class t{constructor(e,i,r){this.libService=e,this.participantService=i,this.cd=r,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(xt),h(In),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-participant-panel-item"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,nee,5,vt),Je(r,dk,5)),2&e){let o;Re(o=ke())&&(i.participantPanelItemElementsTemplate=o.first),Re(o=ke())&&(i.externalItemElements=o.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&&(I(0,"mat-list")(1,"mat-list-item")(2,"mat-icon",0),se(3,"person"),B(),I(4,"h3",1),se(5),B(),I(6,"p",2),se(7),ye(8,"streamTypesEnabled"),B(),I(9,"div",3),Z(10,oee,3,4,"button",4),Z(11,aee,2,1,"ng-container",5),B()()()),2&e&&(A(5),Ne(i._participant.nickname),A(2),Ne(Se(8,4,i._participant)),A(3),j("ngIf",!i._participant.local&&i.showMuteButton),A(1),j("ngIf",i.participantPanelItemElementsTemplate))},dependencies:[Qt,us,xn,oi,ra,Nu,Fu,Lu,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})(),bk=(()=>{class t{constructor(e,i,r){this.participantService=e,this.panelService=i,this.cd=r,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(r=>{i.push(Object.create(r))}),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(In),h(_r),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-participants-panel"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,lee,5,vt),Je(r,uk,5)),2&e){let o;Re(o=ke())&&(i.participantPanelItemTemplate=o.first),Re(o=ke())&&(i.externalParticipantPanelItem=o.first)}},viewQuery:function(e,i){if(1&e&&St(W1,5,vt),2&e){let r;Re(r=ke())&&(i.defaultParticipantPanelItemTemplate=r.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&&(I(0,"div",0)(1,"div",1)(2,"h3",2),se(3),ye(4,"translate"),B(),I(5,"button",3),we("click",function(){return i.close()}),ye(6,"translate"),I(7,"mat-icon"),se(8,"close"),B()()(),I(9,"div",4),Z(10,dee,3,5,"div",5),Z(11,pee,2,1,"div",6),B()(),Z(12,gee,1,1,"ng-template",null,7,un)),2&e&&(A(3),Ne(Se(4,4,"PANEL.PARTICIPANTS.TITLE")),A(2),Ht("matTooltip",Se(6,6,"PANEL.CLOSE")),A(5),j("ngIf",i.localParticipant),A(1),j("ngIf",i.remoteParticipants.length>0))},dependencies:[Ir,Qt,us,xn,oi,Nr,Eb,my,Hn],styles:[td,".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 Ea=(()=>{return(t=Ea||(Ea={})).BIG="zoom_in",t.NORMAL="zoom_out",Ea;var t})();let vy=(()=>{class t extends Ol{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 r=this.getElement(e);this.containerSelector=e,null==r||r.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})(),_y=(()=>{class t{constructor(e){this.cdkOverlayModel=e}setSelector(e){this.cdkOverlayModel.setSelector(e)}}return t.\u0275fac=function(e){return new(e||t)(re(vy))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yk=(()=>{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&&(I(0,"div",0),Ze(1,"div",1)(2,"div",2)(3,"div",1),B()),2&e&&(A(1),j("ngClass",i.isSpeaking?"play":"pause"),A(1),j("ngClass",i.isSpeaking?"play":"pause"),A(1),j("ngClass",i.isSpeaking?"play":"pause"))},dependencies:[Ii,no],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})(),Ck=(()=>{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&&(I(0,"div",0)(1,"div",1)(2,"span",2),se(3),B()()()),2&e&&(A(1),j("ngStyle",Jn(2,mee,i.color)),A(2),Ne(i.letter))},dependencies:[fl,fb],styles:[".poster[_ngcontent-%COMP%]{height:100%;width:100%;background-color:#000;position:absolute;z-index:888}.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})(),Ek=(()=>{class t{constructor(){this.type=gn.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===gn.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&&St(vee,5),2&e){let r;Re(r=ke())&&(i.videoElement=r.first)}},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},decls:2,vars:2,consts:[[1,"OT_video-element",3,"muted"],["videoElement",""]],template:function(e,i){1&e&&Ze(0,"video",0,1),2&e&&(j("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})(),by=(()=>{class t{constructor(e,i,r,o,s,a){this.openviduService=e,this.layoutService=i,this.participantService=r,this.storageService=o,this.cdkSrv=s,this.libService=a,this.videoSizeIconEnum=Ea,this.videoTypeEnum=gn,this.videoSizeIcon=Ea.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,r;const o=null===(r=null===(i=null===(e=this._stream.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId;Boolean(o)&&(this.openviduService.isMyOwnConnection(o)?this.participantService.toggleMyVideoEnlarged(o):this.participantService.toggleRemoteVideoEnlarged(o),this.checkVideoEnlarged(),this.layoutService.update())}toggleVideoMenu(e){var i,r;this.menuTrigger.menuOpen?this.menuTrigger.closeMenu():(this.cdkSrv.setSelector("#container-"+(null===(r=null===(i=this._stream.streamManager)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.streamId)),this.menuTrigger.openMenu())}toggleMuteForcibly(){this._stream.participant&&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){return De(this,void 0,void 0,function*(){(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),yield this.openviduService.sendSignal(So.NICKNAME_CHANGED,void 0,{clientData:this.nickname})),this.toggleNicknameForm())})}replaceScreenTrack(){return De(this,void 0,void 0,function*(){const e={videoSource:id.SCREEN,publishVideo:!0,publishAudio:!this.participantService.isMyCameraActive(),mirror:!1},i=this.participantService.getMyScreenPublisher();yield this.openviduService.replaceScreenTrack(i,e)})}checkVideoEnlarged(){this.videoSizeIcon=this._stream.videoEnlarged?Ea.NORMAL:Ea.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(Ki),h(ba),h(In),h(Vr),h(_y),h(xt))},t.\u0275cmp=et({type:t,selectors:[["ov-stream"]],viewQuery:function(e,i){if(1&e&&(St(ws,5),St(_ee,5),St(bee,5,Oe),St(yee,5)),2&e){let r;Re(r=ke())&&(i.menuTrigger=r.first),Re(r=ke())&&(i.menu=r.first),Re(r=ke())&&(i.streamContainer=r.first),Re(r=ke())&&(i.nicknameInputElement=r.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","id","click"],[3,"matMenuTriggerFor"],["yPosition","above","xPosition","before",1,"video-settings-menu"],["menu","matMenu"],["mat-menu-item","","id","videoZoomButton",3,"click"],[4,"ngIf"],["mat-menu-item","","id","sound-btn",3,"click",4,"ngIf"],["mat-menu-item","","id","replace-screen-button",3,"click",4,"ngIf"],["mat-menu-item","","id","sound-btn",3,"click"],["mat-menu-item","","id","replace-screen-button",3,"click"]],template:function(e,i){1&e&&Z(0,Vee,9,11,"div",0),2&e&&j("ngIf",i._stream)},dependencies:[Ii,Qt,Wo,la,Fl,bs,xn,oi,gb,Nr,no,Pu,As,ws,yk,Ck,Ek,Hn],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:999;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",[Un(":enter",[Pt({opacity:0}),Kn("100ms",Pt({opacity:1}))]),Un(":leave",[Pt({opacity:1}),Kn("200ms",Pt({opacity:0}))])])]}}),t})(),Sk=(()=>{class t{constructor(e){this.media=e,this.screenSizeObs=this.media.asObservable()}toggleFullscreen(e){const i=window.document,r=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():r.requestFullscreen?r.requestFullscreen():r.msRequestFullscreen?r.msRequestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.webkitRequestFullscreen&&r.webkitRequestFullscreen()}isSmallElement(e){return null==e?void 0:e.className.includes(Ur.SMALL_ELEMENT)}}return t.\u0275fac=function(e){return new(e||t)(re(Iq))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ak=(()=>{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(Oe))},t.\u0275dir=me({type:t,selectors:[["img","ovLogo",""]],hostBindings:function(e,i){1&e&&we("error",function(){return i.loadDefaultLogo()})},inputs:{ovLogo:"ovLogo"}}),t})(),wk=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d,p,D,H,ne,fe,he,_e){this.documentService=e,this.chatService=i,this.panelService=r,this.participantService=o,this.openviduService=s,this.oVDevicesService=a,this.actionService=l,this.loggerSrv=c,this.layoutService=u,this.cd=d,this.libService=p,this.platformService=D,this.recordingService=H,this.broadcastingService=ne,this.translateService=fe,this.storageSrv=he,this.cdkOverlayService=_e,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=On.STOPPED,this.broadcastingStatus=Yi.STOPPED,this._recordingStatus=On,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 De(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()}),this.subscribeToFullscreenChanged()}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(),document.removeEventListener("fullscreenchange",()=>{this.isFullscreenActive=!1,this.cdkOverlayService.setSelector("body")})}toggleMicrophone(){return De(this,void 0,void 0,function*(){this.onMicrophoneButtonClicked.emit();try{this.participantService.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 De(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.participantService.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 De(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===On.STARTED?(this.log.d("Stopping recording"),this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(On.STOPPING)):this.recordingStatus===On.STOPPED&&(this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(On.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.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})}subscribeToFullscreenChanged(){document.addEventListener("fullscreenchange",e=>{this.isFullscreenActive=Boolean(document.fullscreenElement),this.cdkOverlayService.setSelector(this.isFullscreenActive?"#session-container":"body")})}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(hu(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()===rd.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(Sk),h(Dp),h(_r),h(In),h(Ki),h(Ca),h(Eo),h(oo),h(ba),h(Vt),h(xt),h(Jl),h(nd),h(py),h(Xo),h(Vr),h(_y))},t.\u0275cmp=et({type:t,selectors:[["ov-toolbar"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,Uee,5,vt),Je(r,jee,5,vt),Je(r,rk,5),Je(r,ok,5)),2&e){let o;Re(o=ke())&&(i.toolbarAdditionalButtonsTemplate=o.first),Re(o=ke())&&(i.toolbarAdditionalPanelButtonsTemplate=o.first),Re(o=ke())&&(i.externalAdditionalButtons=o.first),Re(o=ke())&&(i.externalAdditionalPanelButtons=o.first)}},viewQuery:function(e,i){if(1&e&&St(ws,5),2&e){let r;Re(r=ke())&&(i.menuTrigger=r.first)}},hostBindings:function(e,i){1&e&&we("resize",function(o){return i.sizeChange(o)},0,Dc)("keydown",function(o){return i.keyDown(o)},!1,OE)},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&&(I(0,"mat-toolbar",0),Z(1,Kee,8,6,"div",1),I(2,"div",2)(3,"button",3),we("click",function(){return i.toggleMicrophone()}),Z(4,Yee,3,4,"mat-icon",4),Z(5,Qee,3,4,"mat-icon",5),B(),I(6,"button",6),we("click",function(){return i.toggleCamera()}),Z(7,Xee,3,4,"mat-icon",7),Z(8,Zee,3,4,"mat-icon",8),B(),Z(9,tte,3,5,"button",9),Z(10,nte,4,5,"button",10),I(11,"mat-menu",11,12),Z(13,ate,5,4,"button",13),Z(14,ute,5,3,"button",14),Z(15,fte,5,3,"button",15),Z(16,pte,6,4,"button",16),Z(17,vte,5,3,"button",17),Z(18,_te,1,0,"mat-divider",18),Z(19,bte,6,3,"button",19),B(),Z(20,Cte,2,1,"ng-container",20),Z(21,Ete,4,3,"button",21),B(),I(22,"div",22),Z(23,Ste,4,6,"button",23),Z(24,Ate,4,6,"button",24),Z(25,wte,4,8,"button",25),Z(26,Tte,2,1,"ng-container",20),B()()),2&e&&(A(1),j("ngIf","xs"!==i.screenSize||i.recordingStatus===i._recordingStatus.STARTED||i.broadcastingStatus!==i._broadcastingStatus.STARTED),A(2),ut("warn-btn",!i.isAudioActive),j("disabled",i.isConnectionLost||!i.hasAudioDevices),A(1),j("ngIf",i.isAudioActive),A(1),j("ngIf",!i.isAudioActive),A(1),ut("warn-btn",!i.isWebcamVideoActive),j("disabled",i.isConnectionLost||!i.hasVideoDevices||i.videoMuteChanging),A(1),j("ngIf",i.isWebcamVideoActive),A(1),j("ngIf",!i.isWebcamVideoActive),A(1),j("ngIf",!i.isMinimal&&i.showScreenshareButton),A(1),j("ngIf",!i.isMinimal&&i.showMoreOptionsButton),A(3),j("ngIf",i.showFullscreenButton),A(1),j("ngIf",!i.isMinimal&&i.showRecordingButton),A(1),j("ngIf",!i.isMinimal&&i.showBroadcastingButton),A(1),j("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),A(1),j("ngIf",!i.isMinimal&&i.showCaptionsButton),A(1),j("ngIf",!i.isMinimal&&i.showSettingsButton),A(1),j("ngIf",!i.isMinimal&&i.showSettingsButton),A(1),j("ngIf",i.toolbarAdditionalButtonsTemplate),A(1),j("ngIf",i.showLeaveButton),A(2),j("ngIf",!i.isMinimal&&i.showActivitiesPanelButton),A(1),j("ngIf",!i.isMinimal&&i.showParticipantsPanelButton),A(1),j("ngIf",!i.isMinimal&&i.showChatPanelButton),A(1),j("ngIf",i.toolbarAdditionalPanelButtonsTemplate))},dependencies:[Qt,us,xn,Vf,oi,Nr,WK,Cs,Kf,Ss,Qf,Es,Pu,As,ws,Eb,Ak,Oh,Hn],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})(),Dk=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","streamDisplayParticipantName",""],["ov-stream","displayParticipantName",""]],inputs:{streamDisplayParticipantName:"streamDisplayParticipantName",displayParticipantName:"displayParticipantName"}}),t})(),tre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","streamDisplayAudioDetection",""],["ov-stream","displayAudioDetection",""]],inputs:{streamDisplayAudioDetection:"streamDisplayAudioDetection",displayAudioDetection:"displayAudioDetection"}}),t})(),Tk=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","streamSettingsButton",""],["ov-stream","settingsButton",""]],inputs:{streamSettingsButton:"streamSettingsButton",settingsButton:"settingsButton"}}),t})();var rn=(()=>{return(t=rn||(rn={})).NONE="NONE",t.BLUR="BLUR",t.IMAGE="IMAGE",rn;var t})();let yy=(()=>{class t{constructor(e,i,r){this.participantService=e,this.storageService=i,this.openviduService=r,this.backgroundSelected=new ft(""),this.backgrounds=[{id:"no_effect",type:rn.NONE,thumbnail:"block"},{id:"soft_blur",type:rn.BLUR,thumbnail:"blur_on"},{id:"1",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-1.jpg",src:"assets/backgrounds/bg-1.jpg"},{id:"2",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-2.jpg",src:"assets/backgrounds/bg-2.jpg"},{id:"3",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-3.jpg",src:"assets/backgrounds/bg-3.jpg"},{id:"4",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-4.jpg",src:"assets/backgrounds/bg-4.jpg"},{id:"19",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-19.jpg",src:"assets/backgrounds/bg-19.jpg"},{id:"5",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-5.jpg",src:"assets/backgrounds/bg-5.jpg"},{id:"6",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-6.jpg",src:"assets/backgrounds/bg-6.jpg"},{id:"7",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-7.jpg",src:"assets/backgrounds/bg-7.jpg"},{id:"8",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-8.jpg",src:"assets/backgrounds/bg-8.jpg"},{id:"9",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-9.jpg",src:"assets/backgrounds/bg-9.jpg"},{id:"10",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-10.jpg",src:"assets/backgrounds/bg-10.jpg"},{id:"11",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-11.jpg",src:"assets/backgrounds/bg-11.jpg"},{id:"12",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-12.jpg",src:"assets/backgrounds/bg-12.jpg"},{id:"13",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-13.jpg",src:"assets/backgrounds/bg-13.jpg"},{id:"14",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-14.jpg",src:"assets/backgrounds/bg-14.jpg"},{id:"15",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-15.jpg",src:"assets/backgrounds/bg-15.jpg"},{id:"16",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-16.jpg",src:"assets/backgrounds/bg-16.jpg"},{id:"17",type:rn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-17.jpg",src:"assets/backgrounds/bg-17.jpg"},{id:"18",type:rn.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 De(this,void 0,void 0,function*(){const e=this.storageService.getBackground();if(e){const i=this.backgrounds.find(r=>r.id===e);i&&this.applyBackground(i)}})}applyBackground(e){return De(this,void 0,void 0,function*(){if(e.id!==this.backgroundSelected.getValue()){const i=this.participantService.getMyCameraPublisher().stream.filter,r=!!i&&i.type.startsWith("VB:");let o={token:this.openviduService.getWebcamToken(),url:""};e.type===rn.IMAGE&&(o.url=e.src),r&&this.hasSameTypeAsAbove(e.type)?this.replaceBackground(e):(yield this.removeBackground(),yield this.participantService.getMyCameraPublisher().stream.applyFilter(`VB:${e.type.toLowerCase()}`,o)),this.storageService.setBackground(e.id),this.backgroundSelected.next(e.id)}})}removeBackground(){return De(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 De(this,void 0,void 0,function*(){yield this.participantService.getMyCameraPublisher().stream.filter.execMethod("update",{url:e.src})})}hasSameTypeAsAbove(e){const i=this.backgrounds.find(r=>r.id===this.backgroundSelected.getValue());return(null==i?void 0:i.type)===e}}return t.\u0275fac=function(e){return new(e||t)(re(In),re(Vr),re(Ki))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cy=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d,p,D,H,ne,fe){this.actionService=e,this.openviduService=i,this.participantService=r,this.loggerSrv=o,this.chatService=s,this.libService=a,this.layoutService=l,this.panelService=c,this.recordingService=u,this.broadcastingService=d,this.translateService=p,this.captionService=D,this.platformService=H,this.backgroundService=ne,this.cd=fe,this.usedInPrejoinPage=!1,this.onNodeCrashed=new Ee,this.sidenavMode=Xl.SIDE,this.preparing=!0,this.isSessionCreator=!1,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(()=>De(this,void 0,void 0,function*(){e&&(yield this.backgroundService.applyBackgroundFromStorage())}),0)}ngOnInit(){return De(this,void 0,void 0,function*(){this.usedInPrejoinPage||(this.isSessionCreator=this.participantService.amIModerator(),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.libService.isRecordingEnabled()&&this.subscribeToRecordingEvents(),this.libService.isBroadcastingEnabled()&&this.subscribeToBroadcastingEvents()),this.preparing=!1,this.cd.markForCheck()})}ngOnDestroy(){var e;return De(this,void 0,void 0,function*(){this.usedInPrejoinPage||(null===(e=this.session)||void 0===e||e.off("reconnecting"),yield this.participantService.clear(),this.session=null,this.sessionScreen=null,this.menuSubscription&&this.menuSubscription.unsubscribe(),this.layoutWidthSubscription&&this.layoutWidthSubscription.unsubscribe(),this.captionLanguageSubscription&&this.captionLanguageSubscription.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(hu(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?Xl.OVER:Xl.SIDE})}connectToSession(){return De(this,void 0,void 0,function*(){try{const e=this.participantService.getLocalParticipant(),i=e.getNickname(),r=e.id,o=this.participantService.getMyScreenPublisher(),s=this.participantService.getMyCameraPublisher();if(e.hasCameraAndScreenActives()){const a=yield this.openviduService.connectWebcamSession(r,i);a&&this.participantService.setMyCameraConnectionId(a);const l=yield this.openviduService.connectScreenSession(r,i);l&&this.participantService.setMyScreenConnectionId(l),yield this.openviduService.publishCamera(s),yield this.openviduService.publishScreen(o)}else e.hasOnlyScreenActive()?(yield this.openviduService.connectScreenSession(r,i),yield this.openviduService.publishScreen(o)):(yield this.openviduService.connectWebcamSession(r,i),yield this.openviduService.publishCamera(s))}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=>De(this,void 0,void 0,function*(){e.name===Ds.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=>De(this,void 0,void 0,function*(){var i,r;const o=null===(i=e.connection)||void 0===i?void 0:i.connectionId,s=this.participantService.getNicknameFromConnectionData(e.connection.data),a=!this.openviduService.isMyOwnConnection(o),l=!(null!=s&&s.includes(`_${gn.SCREEN}`)),c=this.participantService.getMyNickname(),u=null===(r=e.connection)||void 0===r?void 0:r.data;a&&l&&(this.participantService.addRemoteConnection(o,u,null),this.openviduService.myNicknameHasBeenChanged()&&(yield this.openviduService.sendSignal(So.NICKNAME_CHANGED,[e.connection],{clientData:c})))})),this.session.on("connectionDestroyed",e=>{const i=this.participantService.getNicknameFromConnectionData(e.connection.data),r=!this.openviduService.isMyOwnConnection(e.connection.connectionId),o=!(null!=i&&i.includes(`_${gn.SCREEN}`));r&&o&&this.participantService.removeConnectionByConnectionId(e.connection.connectionId)})}subscribeToStreamCreated(){this.session.on("streamCreated",e=>De(this,void 0,void 0,function*(){var i,r,o,s;const a=null===(r=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId,l=null===(s=null===(o=e.stream)||void 0===o?void 0:o.connection)||void 0===s?void 0:s.data,c=this.participantService.getTypeConnectionData(l)===gn.CAMERA,u=!this.openviduService.isMyOwnConnection(a),d=this.captionService.getLangSelected().lang;if(u){const p=this.session.subscribe(e.stream,void 0);if(this.participantService.addRemoteConnection(a,l,p),this.openviduService.isSttReady()&&this.captionService.areCaptionsEnabled()&&c)try{yield this.openviduService.subscribeStreamToStt(e.stream,d)}catch(D){this.log.e("Error subscribing from STT: ",D),yield this.openviduService.subscribeRemotesToSTT(d)}}}))}subscribeToStreamDestroyed(){this.session.on("streamDestroyed",e=>De(this,void 0,void 0,function*(){var i,r;const o=e.stream.connection.connectionId,s=null===(r=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.data,a=!this.openviduService.isMyOwnConnection(o),l=this.participantService.getTypeConnectionData(s)===gn.CAMERA;if(this.participantService.removeConnectionByConnectionId(o),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=>De(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:${So.NICKNAME_CHANGED}`,e=>{const i=e.from.connectionId;if(!this.openviduService.isMyOwnConnection(i)){const o=this.participantService.getNicknameFromConnectionData(e.data);this.participantService.setRemoteNickname(i,o)}})}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()),this.isSessionCreator||this.session.on(`signal:${So.RECORDING_DELETED}`,()=>this.recordingService.forceUpdateRecordings())}startUpdateLayoutInterval(){this.updateLayoutInterval=setInterval(()=>{this.layoutService.update()},50)}stopUpdateLayoutInterval(){this.updateLayoutInterval&&clearInterval(this.updateLayoutInterval)}}return t.\u0275fac=function(e){return new(e||t)(h(Eo),h(Ki),h(In),h(oo),h(Dp),h(xt),h(ba),h(_r),h(nd),h(py),h(Xo),h(sd),h(Jl),h(yy),h(Vt))},t.\u0275cmp=et({type:t,selectors:[["ov-session"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,xte,5,vt),Je(r,Mte,5,vt),Je(r,H1,5,vt)),2&e){let o;Re(o=ke())&&(i.toolbarTemplate=o.first),Re(o=ke())&&(i.panelTemplate=o.first),Re(o=ke())&&(i.layoutTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(St(Ote,5),St(Ite,5,Oe),St(Rte,5),St(kte,5)),2&e){let r;Re(r=ke())&&(i.sidenavMenu=r.first),Re(r=ke())&&(i.videoContainer=r.first),Re(r=ke())&&(i.container=r.first),Re(r=ke())&&(i.layoutContainer=r.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&&Z(0,Vte,12,8,"div",0),2&e&&j("ngIf",!i.preparing)},dependencies:[Ii,Qt,us,yI,CI,Pb,no],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",[Un(":enter",[Pt({opacity:0}),Kn("50ms",Pt({opacity:1}))])])]},changeDetection:0}),t})(),Ey=(()=>{class t{constructor(e,i,r){this.panelService=e,this.backgroundService=i,this.cd=r,this.effectType=rn,this.backgroundImages=[],this.noEffectAndBlurredBackground=[]}ngOnInit(){this.subscribeToBackgroundSelected(),this.backgrounds=this.backgroundService.getBackgrounds(),this.noEffectAndBlurredBackground=this.backgrounds.filter(e=>e.type===rn.BLUR||e.type===rn.NONE),this.backgroundImages=this.backgrounds.filter(e=>e.type===rn.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 De(this,void 0,void 0,function*(){e.type===rn.NONE?yield this.removeBackground():yield this.backgroundService.applyBackground(e)})}removeBackground(){return De(this,void 0,void 0,function*(){yield this.backgroundService.removeBackground()})}}return t.\u0275fac=function(e){return new(e||t)(h(_r),h(yy),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&&(I(0,"div",0)(1,"div",1)(2,"h3",2),se(3),ye(4,"translate"),B(),I(5,"button",3),we("click",function(){return i.close()}),ye(6,"translate"),I(7,"mat-icon"),se(8,"close"),B()()(),I(9,"div",4)(10,"div")(11,"h4"),se(12),ye(13,"translate"),B(),I(14,"div"),Z(15,Ute,5,8,"button",5),B()(),Ze(16,"hr"),I(17,"div")(18,"h4"),se(19),ye(20,"translate"),B(),I(21,"div",6),Z(22,jte,2,3,"div",7),B()()()()),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),j("ngForOf",i.noEffectAndBlurredBackground),A(4),Ne(Se(20,12,"PANEL.BACKGROUND.IMAGES_SECTION")),A(3),j("ngForOf",i.backgroundImages))},dependencies:[Ir,xn,oi,Nr,Cs,Ss,Es,Hn],styles:[td,".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,r,o,s,a){this.openviduService=e,this.panelService=i,this.storageSrv=r,this.deviceSrv=o,this.participantService=s,this.backgroundService=a,this.onDeviceSelectorClicked=new Ee,this.onVideoMutedClicked=new Ee,this.cameras=[]}ngOnInit(){return De(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 De(this,void 0,void 0,function*(){this.cameras=[],this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe()})}toggleCam(){return De(this,void 0,void 0,function*(){this.videoMuteChanging=!0;const e=this.isVideoMuted;yield this.participantService.publishVideo(e),this.isVideoMuted&&this.panelService.isExternalPanelOpened()&&this.panelService.togglePanel(zt.BACKGROUND_EFFECTS),this.videoMuteChanging=!1,this.onVideoMutedClicked.emit(e)})}onCameraSelected(e){return De(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateVideoTrack(i)){const r=this.deviceSrv.cameraNeedsMirror(i.device),o=this.backgroundService.backgroundSelected.getValue(),s=this.backgroundService.isBackgroundApplied();s&&(yield this.backgroundService.removeBackground());const a={videoSource:i.device,audioSource:!1,mirror:r},l=this.participantService.getMyCameraPublisher();if(yield this.openviduService.replaceCameraTrack(l,a),s){const c=this.backgroundService.backgrounds.find(u=>u.id===o);c&&(yield this.backgroundService.applyBackground(c))}this.deviceSrv.setCameraSelected(i.device),this.cameraSelected=this.deviceSrv.getCameraSelected()}})}compareObjectDevices(e,i){return e.label===i.label}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(Ki),h(_r),h(Vr),h(Ca),h(In),h(yy))},t.\u0275cmp=et({type:t,selectors:[["ov-video-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked",onVideoMutedClicked:"onVideoMutedClicked"},decls:9,vars:11,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"],["id","video-devices-form"],[4,"ngIf"],[3,"disabled","compareWith","value","click","selectionChange"],[3,"value","id",4,"ngFor","ngForOf"],["id","videocam",3,"matTooltipDisabled","matTooltip"],["id","videocam_off",3,"matTooltipDisabled","matTooltip"],[3,"value","id"]],template:function(e,i){1&e&&(I(0,"div",0)(1,"button",1),we("click",function(){return i.toggleCam()}),Z(2,Hte,3,4,"mat-icon",2),Z(3,Gte,3,4,"mat-icon",3),B(),I(4,"mat-form-field",4),Z(5,zte,3,3,"mat-label",5),Z(6,qte,3,3,"mat-label",5),I(7,"mat-select",6),we("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(o){return i.onCameraSelected(o)}),Z(8,Wte,2,3,"mat-option",7),B()()()),2&e&&(A(1),ut("warn-btn",i.isVideoMuted),j("disabled",!i.hasVideoDevices||i.videoMuteChanging),A(1),j("ngIf",!i.isVideoMuted),A(1),j("ngIf",i.isVideoMuted),A(2),j("ngIf",i.hasVideoDevices),A(1),j("ngIf",!i.hasVideoDevices),A(1),j("disabled",i.isVideoMuted||!i.hasVideoDevices)("compareWith",i.compareObjectDevices)("value",i.cameraSelected),A(1),j("ngForOf",i.cameras))},dependencies:[Ir,Qt,xn,oi,jf,Bl,Nr,Nb,O_,Hn],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})(),Ay=(()=>{class t{constructor(e,i,r,o){this.openviduService=e,this.deviceSrv=i,this.storageSrv=r,this.participantService=o,this.onDeviceSelectorClicked=new Ee,this.onAudioMutedClicked=new Ee,this.microphones=[]}ngOnInit(){return De(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.participantService.publishAudio(e),this.onAudioMutedClicked.emit(e)}onMicrophoneSelected(e){return De(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateAudioTrack(i)){const r={audioSource:i,videoSource:!1},o=this.participantService.getMyCameraPublisher();yield this.openviduService.replaceCameraTrack(o,r),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(Ki),h(Ca),h(Vr),h(In))},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&&(I(0,"div",0)(1,"button",1),we("click",function(){return i.toggleMic()}),Z(2,$te,3,4,"mat-icon",2),Z(3,Kte,3,4,"mat-icon",3),B(),I(4,"mat-form-field"),Z(5,Yte,3,3,"mat-label",4),Z(6,Qte,3,3,"mat-label",4),I(7,"mat-select",5),we("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(o){return i.onMicrophoneSelected(o)}),Z(8,Xte,2,2,"mat-option",6),B()()()),2&e&&(A(1),ut("warn-btn",i.isAudioMuted),j("disabled",!i.hasAudioDevices),A(1),j("ngIf",!i.isAudioMuted),A(1),j("ngIf",i.isAudioMuted),A(2),j("ngIf",i.hasAudioDevices),A(1),j("ngIf",!i.hasAudioDevices),A(1),j("disabled",i.isAudioMuted||!i.hasAudioDevices)("value",null==i.microphoneSelected?null:i.microphoneSelected.device),A(1),j("ngForOf",i.microphones))},dependencies:[Ir,Qt,xn,oi,jf,Bl,Nr,Nb,O_,Hn],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})(),wy=(()=>{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(In),h(Vr))},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&&(I(0,"div",0)(1,"button",1)(2,"mat-icon"),se(3,"person"),B()(),I(4,"mat-form-field",2)(5,"mat-label"),se(6),ye(7,"translate"),B(),I(8,"input",3),we("ngModelChange",function(o){return i.nickname=o})("change",function(){return i.updateNickname()}),B()()()),2&e&&(A(6),Ne(Se(7,2,"PREJOIN.NICKNAME")),A(2),j("ngModel",i.nickname))},dependencies:[Wo,la,Fl,bs,xn,oi,jf,Bl,gb,Hn],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})(),Dy=(()=>{class t{constructor(e,i){this.translateService=e,this.storageSrv=i,this.onLangSelectorClicked=new Ee,this.languages=[]}ngOnInit(){this.subscribeToLangSelected(),this.languages=this.translateService.getLanguagesInfo()}ngOnDestroy(){var e;null===(e=this.langSub)||void 0===e||e.unsubscribe()}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)}subscribeToLangSelected(){this.langSub=this.translateService.langSelectedObs.subscribe(e=>{this.langSelected=e})}}return t.\u0275fac=function(e){return new(e||t)(h(Xo),h(Vr))},t.\u0275cmp=et({type:t,selectors:[["ov-lang-selector"]],viewQuery:function(e,i){if(1&e&&(St(ws,5),St(Nb,5)),2&e){let r;Re(r=ke())&&(i.menuTrigger=r.first),Re(r=ke())&&(i.matSelect=r.first)}},outputs:{onLangSelectorClicked:"onLangSelectorClicked"},decls:8,vars:3,consts:[["mat-flat-button","",1,"lang-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","class","lang-menu-opt",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"lang-menu-opt",3,"click"]],template:function(e,i){1&e&&(I(0,"button",0)(1,"span"),se(2),B(),I(3,"mat-icon"),se(4,"expand_more"),B()(),I(5,"mat-menu",null,1),Z(7,Zte,3,1,"button",2),B()),2&e&&(j("matMenuTriggerFor",ji(6)),A(2),Ne(null==i.langSelected?null:i.langSelected.name),A(5),j("ngForOf",i.languages))},dependencies:[Ir,xn,oi,Pu,As,ws],styles:[".lang-button[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);color:var(--ov-text-color)}"]}),t})();const nre={provide:zf,useValue:[{alias:"landscape",suffix:"Landscape",mediaQuery:"screen and (orientation: landscape)",overlapping:!1,priority:2001}],multi:!0},ire=["fxLayout.landscape"];let rre=(()=>{class t extends gO{constructor(){super(...arguments),this.inputs=ire}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=me({type:t,selectors:[["","fxLayout.landscape",""]],inputs:{"fxLayout.landscape":"fxLayout.landscape"},features:[Ie]}),t})(),xk=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u){this.layoutService=e,this.loggerSrv=i,this.participantService=r,this.panelService=o,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 De(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(oo),h(In),h(_r),h(xt),h(_y),h(Ki),h(Xo),h(Eo))},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&&(I(0,"div",0)(1,"mat-toolbar",1),Z(2,Jte,1,0,"img",2),Ze(3,"span",3),Z(4,ene,1,0,"ov-lang-selector",4),B()(),I(5,"div",5)(6,"div",6)(7,"ov-session",7),Z(8,ine,2,0,null,8),Z(9,sne,3,0,"ng-template",null,9,un),B()(),Z(11,dne,16,7,"div",10),B()),2&e&&(A(2),j("ngIf",!i.isMinimal&&i.showLogo),A(2),j("ngIf",!i.isMinimal),A(3),j("usedInPrejoinPage",!0),A(1),j("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),A(3),j("ngIf",i.localParticipant))},dependencies:[Qt,xn,Vf,oi,Nr,Cs,Kf,Ss,bO,Es,Dk,Tk,Ak,gy,by,fy,Cy,Ey,Sy,Ay,wy,Dy,rre,Hn],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})(),Mk=(()=>{class t{constructor(e,i,r){this.layoutService=e,this.captionService=i,this.openviduService=r,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(sd),h(Ki))},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&&(I(0,"div"),Z(1,fne,23,15,"mat-list",0),Z(2,pne,4,3,"div",1),B()),2&e&&(A(1),j("ngIf",i.isOpenViduPro),A(1),j("ngIf",!i.isOpenViduPro))},dependencies:[Ir,Qt,xn,oi,ra,Pu,As,ws,Nu,Fu,DI,Hn],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})(),Ok=(()=>{class t{constructor(e,i,r){this.panelService=e,this.platformService=i,this.libService=r,this.settingsOptions=ec,this.selectedOption=ec.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(_r),h(Jl),h(xt))},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 r=st();I(0,"div",0)(1,"div",1)(2,"h3",2),se(3),ye(4,"translate"),B(),I(5,"button",3),we("click",function(){return i.close()}),ye(6,"translate"),I(7,"mat-icon"),se(8,"close"),B()()(),I(9,"div",4)(10,"div",5)(11,"mat-selection-list",6,7),we("selectionChange",function(){xe(r);const s=ji(12);return Me(i.onSelectionChanged(null==s.selectedOptions.selected[0]?null:s.selectedOptions.selected[0].value))}),I(13,"mat-list-option",8)(14,"mat-icon",9),se(15,"manage_accounts"),B(),Z(16,gne,3,3,"div",10),B(),I(17,"mat-list-option",11)(18,"mat-icon",9),se(19,"videocam"),B(),Z(20,mne,3,3,"div",10),B(),I(21,"mat-list-option",12)(22,"mat-icon",9),se(23,"mic"),B(),Z(24,vne,3,3,"div",10),B(),Z(25,bne,4,3,"mat-list-option",13),B()(),I(26,"div",14),Z(27,yne,10,3,"div",15),Z(28,Cne,1,0,"ov-video-devices-select",15),Z(29,Ene,1,0,"ov-audio-devices-select",15),Z(30,Sne,1,0,"ov-captions-settings",15),B()()()}2&e&&(A(3),Ne(Se(4,18,"PANEL.SETTINGS.TITLE")),A(2),Ht("matTooltip",Se(6,20,"PANEL.CLOSE")),A(5),j("ngClass",Jn(22,Ane,i.isMobile)),A(1),j("multiple",!1),A(2),j("selected",i.selectedOption===i.settingsOptions.GENERAL)("value",i.settingsOptions.GENERAL),A(3),j("ngIf",!i.isMobile),A(1),j("selected",i.selectedOption===i.settingsOptions.VIDEO)("value",i.settingsOptions.VIDEO),A(3),j("ngIf",!i.isMobile),A(1),j("selected",i.selectedOption===i.settingsOptions.AUDIO)("value",i.settingsOptions.AUDIO),A(3),j("ngIf",!i.isMobile),A(1),j("ngIf",i.showCaptions),A(2),j("ngIf",i.selectedOption===i.settingsOptions.GENERAL),A(1),j("ngIf",i.selectedOption===i.settingsOptions.VIDEO),A(1),j("ngIf",i.selectedOption===i.settingsOptions.AUDIO),A(1),j("ngIf",i.selectedOption===i.settingsOptions.CAPTIONS&&i.showCaptions))},dependencies:[Ii,Qt,xn,oi,Nr,ra,Cs,Ss,Es,no,Nu,Fu,Jf,Sb,$O,Sy,Ay,wy,Dy,Mk,Hn],styles:[td,".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})(),Ty=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this.loggerSrv=e,this.storageSrv=i,this.participantService=r,this.deviceSrv=o,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.onActivitiesPanelForceRecordingUpdate=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.onLangChanged=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(r){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 De(this,void 0,void 0,function*(){this.subscribeToVideconferenceDirectives()})}ngOnDestroy(){return De(this,void 0,void 0,function*(){this.prejoinSub&&this.prejoinSub.unsubscribe(),this.participantNameSub&&this.participantNameSub.unsubscribe(),this.langSub&&this.langSub.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 De(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 De(this,void 0,void 0,function*(){return new Promise((e,i)=>De(this,void 0,void 0,function*(){try{const r=yield this.openviduService.initDefaultPublisher();r?(r.once("accessDenied",o=>De(this,void 0,void 0,function*(){yield this.handlePublisherError(o),e()})),r.once("accessAllowed",()=>{this.participantService.setMyCameraPublisher(r),this.participantService.updateLocalParticipant(),e()})):(this.participantService.setMyCameraPublisher(void 0),this.participantService.updateLocalParticipant())}catch(r){this.actionService.openDialog(r.name.replace(/_/g," "),r.message,!0),this.log.e(r),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)}onForceRecordingUpdate(){this.onActivitiesPanelForceRecordingUpdate.emit()}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 De(this,void 0,void 0,function*(){let i="";if(e.name===Ds.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===Ds.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}),this.langSub=this.translateService.langSelectedObs.subscribe(e=>{this.onLangChanged.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)(h(oo),h(Vr),h(In),h(Ca),h(Ki),h(Eo),h(xt),h(Xo))},t.\u0275cmp=et({type:t,selectors:[["ov-videoconference"]],contentQueries:function(e,i,r){if(1&e&&(Je(r,qie,5),Je(r,rk,5),Je(r,ok,5),Je(r,sk,5),Je(r,Wie,5),Je(r,ak,5),Je(r,lk,5),Je(r,ck,5),Je(r,uk,5),Je(r,dk,5),Je(r,$ie,5),Je(r,hk,5)),2&e){let o;Re(o=ke())&&(i.externalToolbar=o.first),Re(o=ke())&&(i.externalToolbarAdditionalButtons=o.first),Re(o=ke())&&(i.externalToolbarAdditionalPanelButtons=o.first),Re(o=ke())&&(i.externalAdditionalPanels=o.first),Re(o=ke())&&(i.externalPanel=o.first),Re(o=ke())&&(i.externalChatPanel=o.first),Re(o=ke())&&(i.externalActivitiesPanel=o.first),Re(o=ke())&&(i.externalParticipantsPanel=o.first),Re(o=ke())&&(i.externalParticipantPanelItem=o.first),Re(o=ke())&&(i.externalParticipantPanelItemElements=o.first),Re(o=ke())&&(i.externalLayout=o.first),Re(o=ke())&&(i.externalStream=o.first)}},viewQuery:function(e,i){if(1&e&&(St(wne,5,vt),St(Dne,5,vt),St(Tne,5,vt),St(xne,5,vt),St(Mne,5,vt),St(W1,5,vt),St(One,5,vt),St(Ine,5,vt)),2&e){let r;Re(r=ke())&&(i.defaultToolbarTemplate=r.first),Re(r=ke())&&(i.defaultPanelTemplate=r.first),Re(r=ke())&&(i.defaultChatPanelTemplate=r.first),Re(r=ke())&&(i.defaultParticipantsPanelTemplate=r.first),Re(r=ke())&&(i.defaultActivitiesPanelTemplate=r.first),Re(r=ke())&&(i.defaultParticipantPanelItemTemplate=r.first),Re(r=ke())&&(i.defaultLayoutTemplate=r.first),Re(r=ke())&&(i.defaultStreamTemplate=r.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",onActivitiesPanelForceRecordingUpdate:"onActivitiesPanelForceRecordingUpdate",onActivitiesPanelPlayRecordingClicked:"onActivitiesPanelPlayRecordingClicked",onActivitiesPanelStartBroadcastingClicked:"onActivitiesPanelStartBroadcastingClicked",onActivitiesPanelStopBroadcastingClicked:"onActivitiesPanelStopBroadcastingClicked",onToolbarStopBroadcastingClicked:"onToolbarStopBroadcastingClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated",onNodeCrashed:"onNodeCrashed",onLangChanged:"onLangChanged"},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","onForceRecordingUpdate","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&&(I(0,"div",0),Z(1,Rne,5,4,"div",1),Z(2,kne,2,1,"div",2),Z(3,Pne,5,1,"div",1),Z(4,qne,2,2,"div",3),B(),Z(5,Qne,5,0,"ng-template",null,4,un),Z(7,aie,13,0,"ng-template",null,5,un),Z(9,lie,1,0,"ng-template",null,6,un),Z(11,cie,1,0,"ng-template",null,7,un),Z(13,hie,3,0,"ng-template",null,8,un),Z(15,gie,3,1,"ng-template",null,9,un),Z(17,_ie,3,0,"ng-template",null,10,un),Z(19,bie,1,1,"ng-template",null,11,un)),2&e&&(A(1),j("ngIf",i.loading),A(1),j("ngIf",i.showPrejoin&&i.participantReady&&!i.loading),A(1),j("ngIf",!i.loading&&i.error),A(1),j("ngIf",i.showVideoconference||!i.showPrejoin&&!i.loading&&!i.error))},dependencies:[Qt,us,oi,io,wk,gy,vk,bk,my,_k,by,fy,xk,Cy,Ey,Ok,Hn],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",[Un(":enter",[Pt({opacity:0}),Kn("300ms ease-out",Pt({opacity:1}))])])]}}),t})(),ore=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","activitiesPanelRecordingActivity",""],["ov-activities-panel","recordingActivity",""]],inputs:{activitiesPanelRecordingActivity:"activitiesPanelRecordingActivity",recordingActivity:"recordingActivity"}}),t})(),sre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","activitiesPanelBroadcastingActivity",""],["ov-activities-panel","broadcastingActivity",""]],inputs:{activitiesPanelBroadcastingActivity:"activitiesPanelBroadcastingActivity",broadcastingActivity:"broadcastingActivity"}}),t})(),are=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","broadcastingActivityBroadcastingError",""],["ov-broadcasting-activity","broadcastingError",""]],inputs:{broadcastingActivityBroadcastingError:"broadcastingActivityBroadcastingError",broadcastingError:"broadcastingError"}}),t})(),lre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","participantPanelItemMuteButton",""],["ov-participant-panel-item","muteButton",""]],inputs:{participantPanelItemMuteButton:"participantPanelItemMuteButton",muteButton:"muteButton"}}),t})(),cre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","recordingActivityRecordingsList",""],["ov-recording-activity","recordingsList",""]],inputs:{recordingActivityRecordingsList:"recordingActivityRecordingsList",recordingsList:"recordingsList"}}),t})(),ure=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","recordingActivityRecordingError",""],["ov-recording-activity","recordingError",""]],inputs:{recordingActivityRecordingError:"recordingActivityRecordingError",recordingError:"recordingError"}}),t})(),dre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarScreenshareButton",""],["ov-toolbar","screenshareButton",""]],inputs:{toolbarScreenshareButton:"toolbarScreenshareButton",screenshareButton:"screenshareButton"}}),t})(),hre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarRecordingButton",""],["ov-toolbar","recordingButton",""]],inputs:{toolbarRecordingButton:"toolbarRecordingButton",recordingButton:"recordingButton"}}),t})(),fre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarBroadcastingButton",""],["ov-toolbar","broadcastingButton",""]],inputs:{toolbarBroadcastingButton:"toolbarBroadcastingButton",broadcastingButton:"broadcastingButton"}}),t})(),pre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarFullscreenButton",""],["ov-toolbar","fullscreenButton",""]],inputs:{toolbarFullscreenButton:"toolbarFullscreenButton",fullscreenButton:"fullscreenButton"}}),t})(),gre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarBackgroundEffectsButton",""],["ov-toolbar","backgroundEffectsButton",""]],inputs:{toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",backgroundEffectsButton:"backgroundEffectsButton"}}),t})(),mre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarCaptionsButton",""],["ov-toolbar","captionsButton",""]],inputs:{toolbarCaptionsButton:"toolbarCaptionsButton",captionsButton:"captionsButton"}}),t})(),vre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarSettingsButton",""],["ov-toolbar","settingsButton",""]],inputs:{toolbarSettingsButton:"toolbarSettingsButton",settingsButton:"settingsButton"}}),t})(),_re=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarLeaveButton",""],["ov-toolbar","leaveButton",""]],inputs:{toolbarLeaveButton:"toolbarLeaveButton",leaveButton:"leaveButton"}}),t})(),bre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarParticipantsPanelButton",""],["ov-toolbar","participantsPanelButton",""]],inputs:{toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",participantsPanelButton:"participantsPanelButton"}}),t})(),yre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarChatPanelButton",""],["ov-toolbar","chatPanelButton",""]],inputs:{toolbarChatPanelButton:"toolbarChatPanelButton",chatPanelButton:"chatPanelButton"}}),t})(),Cre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarActivitiesPanelButton",""],["ov-toolbar","activitiesPanelButton",""]],inputs:{toolbarActivitiesPanelButton:"toolbarActivitiesPanelButton",activitiesPanelButton:"activitiesPanelButton"}}),t})(),Ere=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarDisplaySessionName",""],["ov-toolbar","displaySessionName",""]],inputs:{toolbarDisplaySessionName:"toolbarDisplaySessionName",displaySessionName:"displaySessionName"}}),t})(),Sre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","toolbarDisplayLogo",""],["ov-toolbar","displayLogo",""]],inputs:{toolbarDisplayLogo:"toolbarDisplayLogo",displayLogo:"displayLogo"}}),t})(),Are=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","minimal",""]],inputs:{minimal:"minimal"}}),t})(),wre=(()=>{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(Oe),h(Xo))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","lang",""]],inputs:{lang:"lang"}}),t})(),Dre=(()=>{class t{constructor(e,i){this.elementRef=e,this.translateService=i}set langOptions(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(void 0)}update(e){this.translateService.setLanguageOptions(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Xo))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","langOptions",""]],inputs:{langOptions:"langOptions"}}),t})(),Tre=(()=>{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(Oe),h(sd))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","captionsLang",""]],inputs:{captionsLang:"captionsLang"}}),t})(),xre=(()=>{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(Oe),h(sd))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","captionsLangOptions",""]],inputs:{captionsLangOptions:"captionsLangOptions"}}),t})(),Mre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","participantName",""]],inputs:{participantName:"participantName"}}),t})(),Ore=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","prejoin",""]],inputs:{prejoin:"prejoin"}}),t})(),Ire=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","videoMuted",""]],inputs:{videoMuted:"videoMuted"}}),t})(),Rre=(()=>{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(Oe),h(xt))},t.\u0275dir=me({type:t,selectors:[["ov-videoconference","audioMuted",""]],inputs:{audioMuted:"audioMuted"}}),t})(),Ik=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({}),t})(),Rk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({}),t})(),kre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({imports:[mT,Cx,Tz,Rz,f6,cW,Hf,L8,xW,$K,oZ,wY,I_,vW,mZ,sY,Ux,GK,iW,GO,a7,WW,FY]}),t})(),Pre=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[xt,{provide:"OPENVIDU_ANGULAR_CONFIG",useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[Eo,vy,{provide:Ol,useClass:vy},nre,Dp,_r,Ca,Sk,ba,oo,Jl,In,Vr,Ki,nd],imports:[zi,t6,Cz,Ez,QX.forRoot([]),kre,Rk,Ik,zi,Rk,Ik]}),t})();function Nre(t,n){if(1&t){const e=st();I(0,"ov-videoconference",1),we("onJoinButtonClicked",function(){return xe(e),Me(ie()._onJoinButtonClicked())})("onToolbarLeaveButtonClicked",function(){return xe(e),Me(ie()._onToolbarLeaveButtonClicked())})("onToolbarCameraButtonClicked",function(){return xe(e),Me(ie()._onToolbarCameraButtonClicked())})("onToolbarMicrophoneButtonClicked",function(){return xe(e),Me(ie()._onToolbarMicrophoneButtonClicked())})("onToolbarScreenshareButtonClicked",function(){return xe(e),Me(ie()._onToolbarScreenshareButtonClicked())})("onToolbarParticipantsPanelButtonClicked",function(){return xe(e),Me(ie()._onToolbarParticipantsPanelButtonClicked())})("onToolbarChatPanelButtonClicked",function(){return xe(e),Me(ie()._onToolbarChatPanelButtonClicked())})("onToolbarActivitiesPanelButtonClicked",function(){return xe(e),Me(ie()._onToolbarActivitiesPanelButtonClicked())})("onToolbarFullscreenButtonClicked",function(){return xe(e),Me(ie()._onToolbarFullscreenButtonClicked())})("onToolbarStartRecordingClicked",function(){return xe(e),Me(ie().onStartRecordingClicked("toolbar"))})("onToolbarStopRecordingClicked",function(){return xe(e),Me(ie().onStopRecordingClicked("toolbar"))})("onToolbarStopBroadcastingClicked",function(){return xe(e),Me(ie().onStopBroadcastingClicked("toolbar"))})("onActivitiesPanelStartRecordingClicked",function(){return xe(e),Me(ie().onStartRecordingClicked("panel"))})("onActivitiesPanelStopRecordingClicked",function(){return xe(e),Me(ie().onStopRecordingClicked("panel"))})("onActivitiesPanelDownloadRecordingClicked",function(r){return xe(e),Me(ie()._onActivitiesDownloadRecordingClicked(r))})("onActivitiesPanelDeleteRecordingClicked",function(r){return xe(e),Me(ie()._onActivitiesDeleteRecordingClicked(r))})("onActivitiesPanelStartBroadcastingClicked",function(r){return xe(e),Me(ie().onStartBroadcastingClicked(r))})("onActivitiesPanelStopBroadcastingClicked",function(){return xe(e),Me(ie().onStopBroadcastingClicked("panel"))})("onSessionCreated",function(r){return xe(e),Me(ie()._onSessionCreated(r))})("onParticipantCreated",function(r){return xe(e),Me(ie()._onParticipantCreated(r))}),B()}if(2&t){const e=ie();j("participantName",e._participantName)("tokens",e._tokens)("minimal",e._minimal)("lang",e._lang)("langOptions",e._langOptions)("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 Lre=(()=>{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 langOptions(e){this._langOptions=this.castToArray(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,r;try{this._tokens=this.castToJson(e),this.success=!(null===(i=this._tokens)||void 0===i||!i.webcam||null===(r=this._tokens)||void 0===r||!r.screen)}catch(o){"string"==typeof e&&""!==e?(console.debug("Single token received."),this._tokens={webcam:e},this.success=!0):(console.error(o),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, lang: string}].")}try{return JSON.parse(e)}catch(i){throw"Unexpected JSON"+i}}}return t.\u0275fac=function(e){return new(e||t)(h(Oe),h(Ki))},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],inputs:{minimal:"minimal",lang:"lang",captionsLang:"captionsLang",langOptions:"langOptions",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","langOptions","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","langOptions","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&&Z(0,Nre,1,33,"ov-videoconference",0),2&e&&j("ngIf",i.success)},dependencies:[Qt,Ty,Are,wre,Dre,xre,Tre,Ore,Ire,Rre,dre,pre,gre,mre,_re,hre,fre,bre,yre,Cre,Ere,Sre,vre,Dk,tre,Tk,lre,Mre,ore,sre,cre,ure,are],encapsulation:2}),t})();const kk={production:!0};class Fre extends ue{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:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;sclearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return Tp.schedule(t,0);if(void 0===window.requestAnimationFrame)return Tp.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let xy;function Wre(t,n,e){let i=e;return function Vre(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((r,o)=>!("*"===r||!function jre(t,n){if(!xy){const e=Element.prototype;xy=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&xy.call(t,n)}(t,r)||(i=o,0))),i}class Kre{constructor(n,e){this.componentFactory=e.get(Io).resolveComponentFactory(n)}create(n){return new Yre(this.componentFactory,n)}}class Yre{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new Fre(1),this.events=this.eventEmitters.pipe(ki(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=Tp.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 Hre(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=pn.create({providers:[],parent:this.injector}),i=function qre(t,n){const e=t.childNodes,i=n.map(()=>[]);let r=-1;n.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o{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:r})=>n.instance[i].pipe(je(s=>({name:r,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=Tp.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 r=this.unchangedInputs.has(n),o=r?void 0:this.getInputValue(n);this.inputChanges[n]=new oC(o,e,r)}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 Qre extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let Zre=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function Xre(t,n){const e=function zre(t,n){return n.get(Io).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new Kre(t,n.injector),r=function Gre(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function Bre(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class o extends Qre{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(r[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 o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(Lre,{injector:this.injector});customElements.define("openvidu-webcomponent",e)}}return t.\u0275fac=function(e){return new(e||t)(re(pn))},t.\u0275mod=at({type:t}),t.\u0275inj=ot({providers:[{provide:sv,useValue:"/"},Ty],imports:[zi,SD,mT,Pre.forRoot(kk)]}),t})();kk.production&&function z3(){Ew=!1}(),cj().bootstrapModule(Zre).catch(t=>console.error(t))},9069:Ae=>{"use strict";var N,P="object"==typeof Reflect?Reflect:null,V=P&&"function"==typeof P.apply?P.apply:function(X,x,f){return Function.prototype.apply.call(X,x,f)};N=P&&"function"==typeof P.ownKeys?P.ownKeys:Object.getOwnPropertySymbols?function(X){return Object.getOwnPropertyNames(X).concat(Object.getOwnPropertySymbols(X))}:function(X){return Object.getOwnPropertyNames(X)};var U=Number.isNaN||function(X){return X!=X};function b(){b.init.call(this)}Ae.exports=b,Ae.exports.once=function W(F,X){return new Promise(function(x,f){function k(T){F.removeListener(X,ee),f(T)}function ee(){"function"==typeof F.removeListener&&F.removeListener("error",k),x([].slice.call(arguments))}m(F,X,ee,{once:!0}),"error"!==X&&function S(F,X,x){"function"==typeof F.on&&m(F,"error",X,x)}(F,k,{once:!0})})},b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var y=10;function E(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?b.defaultMaxListeners:F._maxListeners}function v(F,X,x,f){var k,ee,T;if(E(x),void 0===(ee=F._events)?(ee=F._events=Object.create(null),F._eventsCount=0):(void 0!==ee.newListener&&(F.emit("newListener",X,x.listener?x.listener:x),ee=F._events),T=ee[X]),void 0===T)T=ee[X]=x,++F._eventsCount;else if("function"==typeof T?T=ee[X]=f?[x,T]:[T,x]:f?T.unshift(x):T.push(x),(k=_(F))>0&&T.length>k&&!T.warned){T.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(X)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=F,M.type=X,M.count=T.length,function $(F){console&&console.warn&&console.warn(F)}(M)}return F}function w(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(F,X,x){var f={fired:!1,wrapFn:void 0,target:F,type:X,listener:x},k=w.bind(f);return k.listener=x,f.wrapFn=k,k}function G(F,X,x){var f=F._events;if(void 0===f)return[];var k=f[X];return void 0===k?[]:"function"==typeof k?x?[k.listener||k]:[k]:x?function Y(F){for(var X=new Array(F.length),x=0;x0&&(T=x[0]),T instanceof Error)throw T;var M=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw M.context=T,M}var te=ee[X];if(void 0===te)return!1;if("function"==typeof te)V(te,this,x);else{var oe=te.length,le=R(te,oe);for(f=0;f=0;T--)if(f[T]===x||f[T].listener===x){M=f[T].listener,ee=T;break}if(ee<0)return this;0===ee?f.shift():function L(F,X){for(;X+1=0;k--)this.removeListener(X,x[k]);return this},b.prototype.listeners=function(X){return G(this,X,!0)},b.prototype.rawListeners=function(X){return G(this,X,!1)},b.listenerCount=function(F,X){return"function"==typeof F.listenerCount?F.listenerCount(X):J.call(F,X)},b.prototype.listenerCount=J,b.prototype.eventNames=function(){return this._eventsCount>0?N(this._events):[]}},4491:(Ae,P,V)=>{"use strict";var N=V(1897);Ae.exports=function(U){var _,b={stun:(U||{}).stun||V(8808),turn:(U||{}).turn||V(4576)},E=(U||{}).turnCount||0;function v(w,C){for(var R,G=[],J=[].concat(b[w]);J.length&&G.length{var U,N=V(2069);"undefined"!=typeof window&&(U=window.AudioContext||window.webkitAudioContext);var b=null;Ae.exports=function(y,v){var _=new N;if(!U)return _;var Y,W,S,w=(v=v||{}).smoothing||.1,C=v.interval||50,G=v.threshold,J=v.play,R=v.history||10,L=!0;b=v.audioContext||b||new U,(S=b.createAnalyser()).fftSize=512,S.smoothingTimeConstant=w,W=new Float32Array(S.frequencyBinCount),y.jquery&&(y=y[0]),y instanceof HTMLAudioElement||y instanceof HTMLVideoElement?(Y=b.createMediaElementSource(y),void 0===J&&(J=!0),G=G||-50):(Y=b.createMediaStreamSource(y),G=G||-50),Y.connect(S),J&&S.connect(b.destination),_.speaking=!1,_.suspend=function(){return b.suspend()},_.resume=function(){return b.resume()},Object.defineProperty(_,"state",{get:function(){return b.state}}),b.onstatechange=function(){_.emit("state_change",b.state)},_.setThreshold=function(X){G=X},_.setInterval=function(X){C=X},_.stop=function(){L=!1,_.emit("volume_change",-100,G),_.speaking&&(_.speaking=!1,_.emit("stopped_speaking")),S.disconnect(),Y.disconnect()},_.speakingHistory=[];for(var m=0;m_&&E[v]<0&&(_=E[v]);return _}(S,W);_.emit("volume_change",X,G);var x=0;if(X>G&&!_.speaking){for(var f=_.speakingHistory.length-3;f<_.speakingHistory.length;f++)x+=_.speakingHistory[f];x>=2&&(_.speaking=!0,_.emit("speaking"))}else if(XG)),F()}},C)};return F(),_}},3894:Ae=>{Ae.exports="function"==typeof Object.create?function(V,N){N&&(V.super_=N,V.prototype=Object.create(N.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}))}:function(V,N){if(N){V.super_=N;var $=function(){};$.prototype=N.prototype,V.prototype=new $,V.prototype.constructor=V}}},8659:function(Ae,P){var U,V=this&&this.__extends||(U=function(b,y){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var v in _)Object.prototype.hasOwnProperty.call(_,v)&&(E[v]=_[v])})(b,y)},function(b,y){function E(){this.constructor=b}U(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)});function N(U){if(!U)return N.__;Array.prototype.reduce||(Array.prototype.reduce=function(E,_){for(var v=_,w=0;w=this.maxBatchSize)this.nbrLogItemsSkipped+=O.length;else{if(null!=U.maxMessages){if(U.maxMessages<1)return;U.maxMessages-=O.length}this.batchBuffer=this.batchBuffer.concat(O);var q=this;ee(this.batchTimeoutTimer,this.batchTimeout,function(){q.sendBatch.call(q)})}},K.prototype.batchBufferHasOverdueMessages=function(){for(var O=0;Othis.batchTimeout)return!0;return!1},K.prototype.batchBufferHasStrandedMessage=function(){return null!=U.maxMessages&&U.maxMessages<1&&this.batchBuffer.length>0},K.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},K.prototype.onSendingEnded=function(){k(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},K.prototype.setOptions=function(O){if(b("level",O,this),b("ipRegex",O,this),b("userAgentRegex",O,this),b("disallow",O,this),b("sendWithBufferLevel",O,this),b("storeInBufferLevel",O,this),b("bufferSize",O,this),b("batchSize",O,this),b("maxBatchSize",O,this),b("batchTimeout",O,this),b("sendTimeout",O,this),this.bufferSize0&&(this.buffer.push(We),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([We]),ae>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},K.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(k(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var O=this;ee(this.sendTimeoutTimer,this.sendTimeout,function(){O.onSendingEnded.call(O)}),this.sendLogItems(this.batchBuffer,function(){O.batchBuffer.splice(0,O.nbrLogItemsBeingSent),O.nbrLogItemsSkipped>0&&(O.batchBuffer.push(f(4e3,"Lost "+O.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.",O.appenderName)),O.nbrLogItemsSkipped=0),O.onSendingEnded.call(O)})}},K}();U.Appender=T;var M=function(K){function O(q){return K.call(this,q,O.prototype.sendLogItemsAjax)||this}return V(O,K),O.prototype.setOptions=function(q){return b("url",q,this),b("beforeSend",q,this),K.prototype.setOptions.call(this,q),this},O.prototype.sendLogItemsAjax=function(q,Q){try{if(!y(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=U._createXMLHttpRequest();var ce="/jsnlog.logger";null!=U.defaultAjaxUrl&&(ce=U.defaultAjaxUrl),this.url&&(ce=this.url),this.xhr.open("POST",ce),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",U.requestId);var ae=this;this.xhr.onreadystatechange=function(){4==ae.xhr.readyState&&ae.xhr.status>=200&&ae.xhr.status<300&&Q()};var ue={r:U.requestId,lg:q};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,ue):"function"==typeof U.defaultBeforeSend&&U.defaultBeforeSend.call(this,this.xhr,ue);var Le=JSON.stringify(ue);this.xhr.send(Le)}catch(We){}},O}(T);U.AjaxAppender=M;var te=function(K){function O(q){return K.call(this,q,O.prototype.sendLogItemsConsole)||this}return V(O,K),O.prototype.clog=function(q){U._console.log(q)},O.prototype.cerror=function(q){U._console.error?U._console.error(q):this.clog(q)},O.prototype.cwarn=function(q){U._console.warn?U._console.warn(q):this.clog(q)},O.prototype.cinfo=function(q){U._console.info?U._console.info(q):this.clog(q)},O.prototype.cdebug=function(q){U._console.debug?U._console.debug(q):this.cinfo(q)},O.prototype.sendLogItemsConsole=function(q,Q){try{if(!y(this)||!U._console)return;var ce;for(ce=0;ce=this.level&&y(this)&&(Q?(ue=this.buildExceptionObject(Q)).logData=_(q):ue=q,E(this,(ae=w(ue)).finalString))){if(this.onceOnly)for(ce=this.onceOnly.length-1;ce>=0;){if(new RegExp(this.onceOnly[ce]).test(ae.finalString)){if(this.seenRegexes[ce])return this;this.seenRegexes[ce]=!0}ce--}for(ae.meta=ae.meta||{},ce=this.appenders.length-1;ce>=0;)this.appenders[ce].log(F(O),ae.msg,ae.meta,function(){},O,ae.finalString,this.loggerName),ce--}return this},K.prototype.trace=function(O){return this.log(1e3,O)},K.prototype.debug=function(O){return this.log(2e3,O)},K.prototype.info=function(O){return this.log(3e3,O)},K.prototype.warn=function(O){return this.log(4e3,O)},K.prototype.error=function(O){return this.log(5e3,O)},K.prototype.fatal=function(O){return this.log(6e3,O)},K.prototype.fatalException=function(O,q){return this.log(6e3,O,q)},K}();U.Logger=oe,U.createAjaxAppender=function le(K){return new M(K)},U.createConsoleAppender=function g(K){return new te(K)},z="undefined"!=typeof window?new M(""):new te(""),U.__=new U.Logger(""),U.__.setOptions({level:U.getDebugLevel(),appenders:[z]})})(N||(N={})),P.__esModule=!0,P.JL=N,"function"==typeof __jsnlog_configure&&__jsnlog_configure(N),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(U,b,y,E,_){return N("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:U?U.message||U:"",url:b,"line number":y,column:E},_),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(U){N("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:U.reason?U.reason.message:U.message||null},U.reason)})},1897:Ae=>{var P=["stun:","turn:"];Ae.exports=function(V){var $,U,N=(V||{}).url||V,b={};return("string"==typeof N||N instanceof String)&&(N=N.trim(),$=P[P.indexOf(N.slice(0,5))])?(U=(N=N.slice(5)).split("@"),b.username=V.username,b.credential=V.credential,U.length>1&&(N=U[1],U=U[0].split(":"),b.username=U[0],b.credential=(V||{}).credential||U[1]||""),b.url=$+N,b.urls=[b.url],b):V}},7490:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.Connection=void 0;var N=V(2096),$=V(6946),U=V(7507),b=$.OpenViduLogger.getInstance(),y=function(){function E(_,v){this.session=_,this.disposed=!1;var w="'Connection' created ";v.role?(this.localOptions=v,this.connectionId=this.localOptions.id,this.creationTime=this.localOptions.createdAt,this.data=this.localOptions.metadata,this.rpcSessionId=this.localOptions.sessionId,this.role=this.localOptions.role,this.record=this.localOptions.record,w+="(local)"):(this.remoteOptions=v,this.connectionId=this.remoteOptions.id,this.creationTime=this.remoteOptions.createdAt,this.remoteOptions.metadata&&(this.data=this.remoteOptions.metadata),this.remoteOptions.streams&&this.initRemoteStreams(this.remoteOptions.streams),w+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),b.info(w)}return E.prototype.sendIceCandidate=function(_){var v=this;this.disposed?b.warn("Connection ".concat(this.connectionId," disposed when trying to send an ICE candidate. ICE candidate not sent")):(b.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(w,C){w&&(b.error("Error sending ICE candidate: "+JSON.stringify(w)),v.session.emitEvent("exception",[new U.ExceptionEvent(v.session,U.ExceptionEventName.ICE_CANDIDATE_ERROR,v.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",w)]))}))},E.prototype.initRemoteStreams=function(_){var v=this;_.forEach(function(w){var C={id:w.id,createdAt:w.createdAt,connection:v,hasAudio:w.hasAudio,hasVideo:w.hasVideo,audioActive:w.audioActive,videoActive:w.videoActive,typeOfVideo:w.typeOfVideo,frameRate:w.frameRate,videoDimensions:w.videoDimensions?JSON.parse(w.videoDimensions):void 0,filter:w.filter?w.filter:void 0},G=new N.Stream(v.session,C);v.addStream(G)}),b.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},E.prototype.addStream=function(_){_.connection=this,this.stream=_},E.prototype.removeStream=function(){delete this.stream},E.prototype.dispose=function(){this.disposed=!0,this.removeStream()},E}();P.Connection=y},8074:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.EventDispatcher=void 0;var N=V(6946),$=V(940),U=N.OpenViduLogger.getInstance(),b=function(){function y(){this.userHandlerArrowHandler=new WeakMap,this.ee=new $}return y.prototype.onAux=function(E,_,v){var w=function(C){C?U.debug(_,C):U.debug(_),v(C)};return this.userHandlerArrowHandler.set(v,w),this.ee.on(E,w),this},y.prototype.onceAux=function(E,_,v){var w=this,C=function(G){G?U.debug(_,G):U.debug(_),v(G),w.userHandlerArrowHandler.delete(v)};return this.userHandlerArrowHandler.set(v,C),this.ee.once(E,C),this},y.prototype.offAux=function(E,_){if(_){var v=this.userHandlerArrowHandler.get(_);v&&this.ee.off(E,v),this.userHandlerArrowHandler.delete(_)}else this.ee.removeAllListeners(E);return this},y}();P.EventDispatcher=b},4540:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.Filter=void 0;var N=V(2798),$=V(4103),b=V(6946).OpenViduLogger.getInstance(),y=function(){function E(_,v){this.handlers=new Map,this.type=_,this.options=v}return E.prototype.execMethod=function(_,v){var w=this;return new Promise(function(C,G){var J;b.info("Executing filter method to stream "+w.stream.streamId);var R,L=function(S){b.info("Filter method successfully executed on Stream "+w.stream.streamId);var m=Object.assign({},w.stream.filter);return w.stream.filter.lastExecMethod={method:_,params:R},S&&(w.stream.session.emitEvent("streamPropertyChanged",[new N.StreamPropertyChangedEvent(w.stream.session,w.stream,"filter",w.stream.filter,m,"execFilterMethod")]),w.stream.streamManager.emitEvent("streamPropertyChanged",[new N.StreamPropertyChangedEvent(w.stream.streamManager,w.stream,"filter",w.stream.filter,m,"execFilterMethod")])),C()};if(w.type.startsWith("VB:")){if("string"==typeof v)try{v=JSON.parse(v)}catch(S){return G(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+S))}if(R=v,"update"!==_)return G(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(_,'"')));if(null===(J=w.stream.virtualBackgroundSinkElements)||void 0===J||!J.VB)return G(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));w.stream.virtualBackgroundSinkElements.VB.updateValues(v).then(function(){return L(!1)}).catch(function(S){return G(S.name===$.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new $.OpenViduError(S.name,S.message):new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+S))})}else{var Y=void 0;if("string"!=typeof v)try{Y=JSON.stringify(v)}catch(S){var W="'params' property must be a JSON formatted object";return b.error(W),G(W)}else Y=v;R=Y,w.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:w.stream.streamId,method:_,params:Y},function(S,m){return S?(b.error("Error executing filter method for Stream "+w.stream.streamId,S),G(401===S.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):S)):L(!0)})}})},E.prototype.addEventListener=function(_,v){var w=this;return new Promise(function(C,G){b.info("Adding filter event listener to event "+_+" to stream "+w.stream.streamId),w.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:w.stream.streamId,eventType:_},function(J,R){return J?(b.error("Error adding filter event listener to event "+_+"for Stream "+w.stream.streamId,J),G(401===J.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):J)):(w.handlers.set(_,v),b.info("Filter event listener to event "+_+" successfully applied on Stream "+w.stream.streamId),C())})})},E.prototype.removeEventListener=function(_){var v=this;return new Promise(function(w,C){b.info("Removing filter event listener to event "+_+" to stream "+v.stream.streamId),v.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:v.stream.streamId,eventType:_},function(G,J){return G?(b.error("Error removing filter event listener to event "+_+"for Stream "+v.stream.streamId,G),C(401===G.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):G)):(v.handlers.delete(_),b.info("Filter event listener to event "+_+" successfully removed on Stream "+v.stream.streamId),w())})})},E}();P.Filter=y},4289:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.LocalRecorder=void 0;var E,N=V(5156),$=V(6946),U=V(543),b=V(8946),y=$.OpenViduLogger.getInstance(),_=function(){function v(w){this.stream=w,this.chunks=[],E=U.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 v.prototype.record=function(w){var C=this;return new Promise(function(G,J){try{if("string"==typeof w||w instanceof String)return J("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(w,'" }'));if("undefined"==typeof MediaRecorder)throw y.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");y.log("Starting local recording of stream '"+C.stream.streamId+"' of connection '"+C.connectionId+"'"),w?w.mimeType||(w.mimeType="video/webm"):w={mimeType:"video/webm"},C.mediaRecorder=new MediaRecorder(C.stream.getMediaStream(),w),C.mediaRecorder.start()}catch(R){return J(R)}return C.mediaRecorder.ondataavailable=function(R){R.data.size>0&&C.chunks.push(R.data)},C.mediaRecorder.onerror=function(R){y.error("MediaRecorder error: ",R)},C.mediaRecorder.onstart=function(){y.log("MediaRecorder started (state="+C.mediaRecorder.state+")")},C.mediaRecorder.onstop=function(){C.onStopDefault()},C.mediaRecorder.onpause=function(){y.log("MediaRecorder paused (state="+C.mediaRecorder.state+")")},C.mediaRecorder.onresume=function(){y.log("MediaRecorder resumed (state="+C.mediaRecorder.state+")")},C.state=N.LocalRecorderState.RECORDING,G()})},v.prototype.stop=function(){var w=this;return new Promise(function(C,G){try{if(w.state===N.LocalRecorderState.READY||w.state===N.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+w.state+"'). Call 'LocalRecorder.start()' before");w.mediaRecorder.onstop=function(){return w.onStopDefault(),C()},w.mediaRecorder.stop()}catch(J){return G(J)}})},v.prototype.pause=function(){var w=this;return new Promise(function(C,G){try{return w.state!==N.LocalRecorderState.RECORDING?G(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+w.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(w.mediaRecorder.pause(),w.state=N.LocalRecorderState.PAUSED,C())}catch(J){return G(J)}})},v.prototype.resume=function(){var w=this;return new Promise(function(C,G){try{if(w.state!==N.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+w.state+"'). Call 'LocalRecorder.pause()' before");return w.mediaRecorder.resume(),w.state=N.LocalRecorderState.RECORDING,C()}catch(J){return G(J)}})},v.prototype.preview=function(w){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,E.isSafariBrowser()&&(this.videoPreview.playsInline=!0),"string"==typeof w){var C=document.getElementById(w);C&&(this.videoPreview=C.appendChild(this.videoPreview))}else this.videoPreview=w.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},v.prototype.clean=function(){var w=this,C=function(){delete w.blob,w.chunks=[],w.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()},v.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 w=document.createElement("a");w.style.display="none",document.body.appendChild(w);var C=globalThis.URL.createObjectURL(this.blob);w.href=C,w.download=this.id+"."+b.getExtension(this.blob.type),w.click(),globalThis.URL.revokeObjectURL(C),document.body.removeChild(w)},v.prototype.getBlob=function(){if(this.state!==N.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},v.prototype.uploadAsBinary=function(w,C){var G=this;return new Promise(function(J,R){if(G.state!==N.LocalRecorderState.FINISHED)return R(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+G.state+"'). Call 'LocalRecorder.stop()' before"));var L=new XMLHttpRequest;if(L.open("POST",w,!0),"object"==typeof C)for(var Y=0,W=Object.keys(C);Y0&&M[M.length-1])&&(6===g[0]||2===g[0])){k=0;continue}if(3===g[0]&&(!M||g[1]>M[0]&&g[1]T&&clearTimeout(q),f.getVideoDimensions().then(function(Q){(Q.width!==K||Q.height!==O)&&(clearTimeout(q),M.sendVideoDimensionsChangedEvent(f,k,K,O,Q.width,Q.height))})},ee)},x.prototype.sendVideoDimensionsChangedEvent=function(f,k,ee,T,M,te){var oe=this;f.stream.videoDimensions={width:M||0,height:te||0},this.sendRequest("streamPropertyChanged",{streamId:f.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(f.stream.videoDimensions),reason:k},function(le,g){le?m.error("Error sending 'streamPropertyChanged' event",le):(oe.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(oe.session,f.stream,"videoDimensions",f.stream.videoDimensions,{width:ee,height:T},k)]),f.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(f,f.stream,"videoDimensions",f.stream.videoDimensions,{width:ee,height:T},k)]),oe.session.sendVideoData(f))})},x.prototype.sendTrackChangedEvent=function(f,k,ee,T){var M=this,te={label:k},oe={label:ee},le="trackReplaced";f.stream.isLocalStreamPublished?this.sendRequest("streamPropertyChanged",{streamId:f.stream.streamId,property:T,newValue:oe,reason:le},function(g,z){g?m.error("Error sending 'streamPropertyChanged' event",g):(M.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(M.session,f.stream,T,oe,te,le)]),f.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(f,f.stream,T,oe,te,le)]))}):(this.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(this.session,f.stream,T,oe,te,le)]),f.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(f,f.stream,T,oe,te,le)]))},x.prototype.generateMediaConstraints=function(f){var k=this;return new Promise(function(ee,T){var M={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},te=f.audioSource,oe=f.videoSource;if((null===te||!1===te)&&(M.constraints.audio=!1),(null===oe||!1===oe)&&(M.constraints.video=!1),!1===M.constraints.audio&&!1===M.constraints.video)return T(new v.OpenViduError(v.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&te instanceof MediaStreamTrack&&(M.audioTrack=te),"undefined"!=typeof MediaStreamTrack&&oe instanceof MediaStreamTrack&&(M.videoTrack=oe),void 0===te&&(M.constraints.audio=!0),void 0===oe&&(M.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==oe&&!1!==oe){if(f.resolution){var le=f.resolution.toLowerCase().split("x"),g=Number(le[0]),z=Number(le[1]);M.constraints.video={width:{ideal:g},height:{ideal:z}}}f.frameRate&&(M.constraints.video.frameRate={ideal:f.frameRate})}return k.configureDeviceIdOrScreensharing(M,f,ee,T),ee(M)})},x.prototype.startWs=function(f){var k={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:f,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)},x.prototype.onMasterNodeCrashedNotification=function(f){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},x.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},x.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},x.prototype.sendRequest=function(f,k,ee){var T;k&&k instanceof Function&&(ee=k,k={}),m.debug('Sending request: {method:"'+f+'", params: '+JSON.stringify(k)+"}"),null===(T=this.jsonRpcClient)||void 0===T||T.send(f,k,ee)},x.prototype.getWsUri=function(){return this.wsUri},x.prototype.getSecret=function(){return this.secret},x.prototype.getRecorder=function(){return this.recorder},x.prototype.getStt=function(){return this.stt},x.prototype.generateAudioDeviceError=function(f,k){var ee,T;switch("Error"===f.name&&(f.name=f.constructor.name),f.name.toLowerCase()){case"notfounderror":return ee=v.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,T=f.toString(),new v.OpenViduError(ee,T);case"notallowederror":return ee=v.OpenViduErrorName.DEVICE_ACCESS_DENIED,T=f.toString(),new v.OpenViduError(ee,T);case"overconstrainederror":return"deviceid"===f.constraint.toLowerCase()?(ee=v.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,T="Audio input device with deviceId '"+k.audio.deviceId.exact+"' not found"):(ee=v.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,T="Audio input device doesn't support the value passed for constraint '"+f.constraint+"'"),new v.OpenViduError(ee,T);case"notreadableerror":return ee=v.OpenViduErrorName.DEVICE_ALREADY_IN_USE,T=f.toString(),new v.OpenViduError(ee,T);default:return new v.OpenViduError(v.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,f.toString())}},x.prototype.addAlreadyProvidedTracks=function(f,k,ee){return f.videoTrack&&(k.addTrack(f.videoTrack),ee&&(ee.lastVideoTrackConstraints=f.constraints.video?f.constraints.video:f.videoTrack.getConstraints())),f.audioTrack&&k.addTrack(f.audioTrack),k},x.prototype.configureDeviceIdOrScreensharing=function(f,k,ee,T){var M=this,te=k.audioSource,oe=k.videoSource;if("string"==typeof te&&(f.constraints.audio={deviceId:{exact:te}}),"string"==typeof oe){if(this.isScreenShare(oe)){if(this.checkScreenSharingCapabilities()){if(F.isElectron()){var g="screen:",K=oe.substr(oe.indexOf(g)+g.length);return f.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:K}},ee(f)}if(!this.advancedConfiguration.screenShareChromeExtension||F.isFirefoxBrowser()||F.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return ee(f);var O=F.isFirefoxBrowser()||F.isFirefoxMobileBrowser()?k.videoSource:void 0;return void J.getScreenId(O,function(q,Q,ce){if(q){if("not-installed"===q){var ue=new v.OpenViduError(v.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,M.advancedConfiguration.screenShareChromeExtension?M.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return m.error(ue),T(ue)}return"installed-disabled"===q?(ue=new v.OpenViduError(v.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),m.error(ue),T(ue)):"permission-denied"===q?(ue=new v.OpenViduError(v.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),m.error(ue),T(ue)):(ue=new v.OpenViduError(v.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),m.error(ue),m.error(q),T(ue))}return f.constraints.video=ce.video,ee(f)})}return void R.getScreenConstraints(function(q,Q){if(!(q||Q.mandatory&&"screen"===Q.mandatory.chromeMediaSource))return f.constraints.video=Q,ee(f);if("permission-denied"===q||"PermissionDeniedError"===q){var ce=new v.OpenViduError(v.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return m.error(ce),T(ce)}var ae=M.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();R.getChromeExtensionStatus(ae,function(ue){if("installed-disabled"===ue){var Le=new v.OpenViduError(v.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return m.error(Le),T(Le)}if("not-installed"===ue){var We=new v.OpenViduError(v.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,M.advancedConfiguration.screenShareChromeExtension);return m.error(We),T(We)}})})}var le=new v.OpenViduError(v.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 m.error(le),T(le)}this.setVideoSource(f,oe)}},x.prototype.setVideoSource=function(f,k){f.constraints.video||(f.constraints.video={}),f.constraints.video.deviceId={exact:k}},x.prototype.disconnectCallback=function(){m.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},x.prototype.reconnectingCallback=function(){m.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},x.prototype.reconnectWebsocketThroughRpcConnectMethod=function(f){var k=this;this.sendRequest("connect",{sessionId:f,reconnect:!0},function(ee,T){if(ee)if(k.isMasterNodeCrashed())m.warn("Master Node has crashed!");else{m.error(ee);var M=function(oe,le){m.warn(le),k.session.onLostConnection(oe),k.jsonRpcClient.close(4101,"Reconnection fault: "+le)};40007===ee.code&&"reconnection error"===ee.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===k.life?M("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):k.sendRequest("sessionStatus",{sessionId:k.session.sessionId},function(oe,le){null!=oe?console.error("Error checking session status",oe):k.life===le.life?M("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):M("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else k.jsonRpcClient.resetPing(),k.session.onRecoveredConnection()})},x.prototype.reconnectedCallback=function(){if(m.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{m.warn("There was no previous connection when running reconnection callback");var f=new E.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[f]),f.callDefaultBehavior()}else alert("Connection error. Please reload page.")},x.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},x.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof y.Session||(m.warn("Session instance not found"),!1)},x.prototype.isScreenShare=function(f){return"screen"===f||"window"===f||F.isElectron()&&f.startsWith("screen:")},x}();P.OpenVidu=X},4259:function(Ae,P,V){"use strict";var W,N=this&&this.__extends||(W=function(S,m){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,X){F.__proto__=X}||function(F,X){for(var x in X)Object.prototype.hasOwnProperty.call(X,x)&&(F[x]=X[x])})(S,m)},function(S,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function F(){this.constructor=S}W(S,m),S.prototype=null===m?Object.create(m):(F.prototype=m.prototype,new F)}),$=this&&this.__awaiter||function(W,S,m,F){return new(m||(m=Promise))(function(x,f){function k(M){try{T(F.next(M))}catch(te){f(te)}}function ee(M){try{T(F.throw(M))}catch(te){f(te)}}function T(M){M.done?x(M.value):function X(x){return x instanceof m?x:new m(function(f){f(x)})}(M.value).then(k,ee)}T((F=F.apply(W,S||[])).next())})},U=this&&this.__generator||function(W,S){var F,X,x,f,m={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return f={next:k(0),throw:k(1),return:k(2)},"function"==typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f;function k(T){return function(M){return function ee(T){if(F)throw new TypeError("Generator is already executing.");for(;f&&(f=0,T[0]&&(m=0)),m;)try{if(F=1,X&&(x=2&T[0]?X.return:T[0]?X.throw||((x=X.return)&&x.call(X),0):X.next)&&!(x=x.call(X,T[1])).done)return x;switch(X=0,x&&(T=[2&T[0],x.value]),T[0]){case 0:case 1:x=T;break;case 4:return m.label++,{value:T[1],done:!1};case 5:m.label++,X=T[1],T=[0];continue;case 7:T=m.ops.pop(),m.trys.pop();continue;default:if(!(x=(x=m.trys).length>0&&x[x.length-1])&&(6===T[0]||2===T[0])){m=0;continue}if(3===T[0]&&(!x||T[1]>x[0]&&T[1]=1?k():(m.videoReference.addEventListener("loadedmetadata",f=function(){if(m.videoReference.videoWidth)k();else var ee=setInterval(function(){m.videoReference.videoWidth&&(clearInterval(ee),k())},40)}),x&&document.body.appendChild(m.videoReference))})},S.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},S.prototype.initializeVideoReference=function(m){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(m),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=this.stream.getMediaStream()},S.prototype.replaceTrackInMediaStream=function(m,F){var x,X=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream();"video"===m.kind?(x=X.getVideoTracks()[0],F&&(this.stream.lastVideoTrackConstraints=m.getConstraints())):x=X.getAudioTracks()[0],x.enabled=!1,x.stop(),X.removeTrack(x),X.addTrack(m);var f={oldLabel:(null==x?void 0:x.label)||"",newLabel:(null==m?void 0:m.label)||""};"video"===m.kind&&F?(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.openvidu.sendTrackChangedEvent(this,f.oldLabel,f.newLabel,"videoTrack"),this.stream.isLocalStreamPublished&&this.session.sendVideoData(this.stream.streamManager,5,!0,5)):"audio"===m.kind&&F&&this.openvidu.sendTrackChangedEvent(this,f.oldLabel,f.newLabel,"audioTrack"),"audio"===m.kind&&(this.stream.disableHarkSpeakingEvent(!1),this.stream.disableHarkStoppedSpeakingEvent(!1),this.stream.disableHarkVolumeChangeEvent(!1),this.stream.initHarkEvents())},S.prototype.setPermissionDialogTimer=function(m){var F=this;this.permissionDialogTimeout=setTimeout(function(){F.emitEvent("accessDialogOpened",[])},m)},S.prototype.clearPermissionDialogTimer=function(m,F){clearTimeout(this.permissionDialogTimeout),Date.now()-m>F&&this.emitEvent("accessDialogClosed",[])},S.prototype.replaceTrackInRtcRtpSender=function(m){return $(this,void 0,void 0,function(){var F,X;return U(this,function(x){switch(x.label){case 0:if(F=this.stream.getRTCPeerConnection().getSenders(),"video"===m.kind){if(!(X=F.find(function(f){return!!f.track&&"video"===f.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==m.kind)throw new Error("Unknown track kind "+m.kind);if(!(X=F.find(function(f){return!!f.track&&"audio"===f.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,X.replaceTrack(m)];case 1:return x.sent(),[2]}})})},S}(E.StreamManager);P.Publisher=Y},8402:function(Ae,P,V){"use strict";var oe,N=this&&this.__extends||(oe=function(le,g){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,K){z.__proto__=K}||function(z,K){for(var O in K)Object.prototype.hasOwnProperty.call(K,O)&&(z[O]=K[O])})(le,g)},function(le,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function z(){this.constructor=le}oe(le,g),le.prototype=null===g?Object.create(g):(z.prototype=g.prototype,new z)}),$=this&&this.__awaiter||function(oe,le,g,z){return new(g||(g=Promise))(function(O,q){function Q(ue){try{ae(z.next(ue))}catch(Le){q(Le)}}function ce(ue){try{ae(z.throw(ue))}catch(Le){q(Le)}}function ae(ue){ue.done?O(ue.value):function K(O){return O instanceof g?O:new g(function(q){q(O)})}(ue.value).then(Q,ce)}ae((z=z.apply(oe,le||[])).next())})},U=this&&this.__generator||function(oe,le){var z,K,O,q,g={label:0,sent:function(){if(1&O[0])throw O[1];return O[1]},trys:[],ops:[]};return q={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(q[Symbol.iterator]=function(){return this}),q;function Q(ae){return function(ue){return function ce(ae){if(z)throw new TypeError("Generator is already executing.");for(;q&&(q=0,ae[0]&&(g=0)),g;)try{if(z=1,K&&(O=2&ae[0]?K.return:ae[0]?K.throw||((O=K.return)&&O.call(K),0):K.next)&&!(O=O.call(K,ae[1])).done)return O;switch(K=0,O&&(ae=[2&ae[0],O.value]),ae[0]){case 0:case 1:O=ae;break;case 4:return g.label++,{value:ae[1],done:!1};case 5:g.label++,K=ae[1],ae=[0];continue;case 7:ae=g.ops.pop(),g.trys.pop();continue;default:if(!(O=(O=g.trys).length>0&&O[O.length-1])&&(6===ae[0]||2===ae[0])){g=0;continue}if(3===ae[0]&&(!O||ae[1]>O[0]&&ae[1]0){var Q=[];g.to.forEach(function(ae){ae.connectionId&&Q.push(ae.connectionId)}),q.to=Q}else q.to=[];q.data=g.data?g.data:"";var ce=g.type?g.type:"signal";ce&&"signal:"!==ce.substring(0,7)&&(ce="signal:"+ce),q.type=ce,z.openvidu.sendRequest("sendMessage",{message:JSON.stringify(q)},function(ae,ue){return ae?O(ae):K()})})},le.prototype.subscribeToSpeechToText=function(g,z){var K=this;return new Promise(function(O,q){K.openvidu.sendRequest("subscribeToSpeechToText",{connectionId:g.connection.connectionId,lang:z},function(Q,ce){return Q?q(Q):O()})})},le.prototype.unsubscribeFromSpeechToText=function(g){var z=this;return new Promise(function(K,O){z.openvidu.sendRequest("unsubscribeFromSpeechToText",{connectionId:g.connection.connectionId},function(q,Q){return q?O(q):K()})})},le.prototype.on=function(g,z){var K,O,q,Q;return oe.prototype.onAux.call(this,g,"Event '"+g+"' triggered by 'Session'",z),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(ce){var ae;null!==(ae=ce.stream)&&void 0!==ae&&ae.hasAudio&&ce.stream.enableHarkSpeakingEvent()}),!(null===(O=null===(K=this.connection)||void 0===K?void 0:K.stream)||void 0===O)&&O.hasAudio&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(ce){var ae;null!==(ae=ce.stream)&&void 0!==ae&&ae.hasAudio&&ce.stream.enableHarkStoppedSpeakingEvent()}),!(null===(Q=null===(q=this.connection)||void 0===q?void 0:q.stream)||void 0===Q)&&Q.hasAudio&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},le.prototype.once=function(g,z){var K,O,q,Q;return oe.prototype.onceAux.call(this,g,"Event '"+g+"' triggered once by 'Session'",z),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(ce){var ae;null!==(ae=ce.stream)&&void 0!==ae&&ae.hasAudio&&ce.stream.enableOnceHarkSpeakingEvent()}),!(null===(O=null===(K=this.connection)||void 0===K?void 0:K.stream)||void 0===O)&&O.hasAudio&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(ce){var ae;null!==(ae=ce.stream)&&void 0!==ae&&ae.hasAudio&&ce.stream.enableOnceHarkStoppedSpeakingEvent()}),!(null===(Q=null===(q=this.connection)||void 0===q?void 0:q.stream)||void 0===Q)&&Q.hasAudio&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},le.prototype.off=function(g,z){var O,q,Q,ce,K=this;return oe.prototype.offAux.call(this,g,z),"publisherStartSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(ae){var ue;null!==(ue=ae.stream)&&void 0!==ue&&ue.streamManager&&(K.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,ae.stream.streamManager)||ae.stream.disableHarkSpeakingEvent(!1))}),!(null===(q=null===(O=this.connection)||void 0===O?void 0:O.stream)||void 0===q)&&q.streamManager&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(ae){var ue;null!==(ue=ae.stream)&&void 0!==ue&&ue.streamManager&&(K.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,ae.stream.streamManager)||ae.stream.disableHarkStoppedSpeakingEvent(!1))}),!(null===(ce=null===(Q=this.connection)||void 0===Q?void 0:Q.stream)||void 0===ce)&&ce.streamManager&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},le.prototype.onParticipantJoined=function(g){var z=this;this.getConnection(g.id,"").then(function(K){T.warn("Connection "+K.connectionId+" already exists in connections list")}).catch(function(K){var O=new b.Connection(z,g);z.remoteConnections.set(g.id,O),z.ee.emitEvent("connectionCreated",[new v.ConnectionEvent(!1,z,"connectionCreated",O,"")])})},le.prototype.onParticipantLeft=function(g){var z=this;this.getRemoteConnection(g.connectionId,"onParticipantLeft").then(function(K){if(K.stream){var O=K.stream,q=new L.StreamEvent(!0,z,"streamDestroyed",O,g.reason);z.ee.emitEvent("streamDestroyed",[q]),q.callDefaultBehavior(),z.remoteStreamsCreated.delete(O.streamId)}K.dispose(),z.remoteConnections.delete(K.connectionId),z.ee.emitEvent("connectionDestroyed",[new v.ConnectionEvent(!1,z,"connectionDestroyed",K,g.reason)])}).catch(function(K){T.error(K)})},le.prototype.onParticipantPublished=function(g){var O,z=this,K=function(q){z.remoteConnections.set(q.connectionId,q),z.remoteStreamsCreated.get(q.stream.streamId)||z.ee.emitEvent("streamCreated",[new L.StreamEvent(!1,z,"streamCreated",q.stream,"")]),z.remoteStreamsCreated.set(q.stream.streamId,!0)};this.getRemoteConnection(g.id,"onParticipantPublished").then(function(q){O=q,g.metadata=q.data,O.remoteOptions=g,O.initRemoteStreams(g.streams),K(O)}).catch(function(q){O=new b.Connection(z,g),K(O)})},le.prototype.onParticipantUnpublished=function(g){var z=this;g.connectionId===this.connection.connectionId?this.stopPublisherStream(g.reason):this.getRemoteConnection(g.connectionId,"onParticipantUnpublished").then(function(K){var O=new L.StreamEvent(!0,z,"streamDestroyed",K.stream,g.reason);z.ee.emitEvent("streamDestroyed",[O]),O.callDefaultBehavior(),null!=K.stream&&(z.remoteStreamsCreated.delete(K.stream.streamId),K.removeStream())}).catch(function(K){T.error(K)})},le.prototype.onParticipantEvicted=function(g){g.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,g.reason)},le.prototype.onNewMessage=function(g){var z=this;T.info("New signal: "+JSON.stringify(g));var K=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(O){z.ee.emitEvent("signal",[new J.SignalEvent(z,K,g.data,O)]),g.type&&"signal"!==g.type&&z.ee.emitEvent(g.type,[new J.SignalEvent(z,K,g.data,O)])}).catch(function(O){T.error(O)}):(this.ee.emitEvent("signal",[new J.SignalEvent(this,K,g.data,void 0)]),g.type&&"signal"!==g.type&&this.ee.emitEvent(g.type,[new J.SignalEvent(this,K,g.data,void 0)]))},le.prototype.onStreamPropertyChanged=function(g){var z=this,K=function(O){var q,Q;if(O.stream&&O.stream.streamId===g.streamId){var ce=O.stream,ae=void 0;switch(g.property){case"audioActive":ae=ce.audioActive,g.newValue="true"===g.newValue,ce.audioActive=g.newValue;break;case"videoActive":ae=ce.videoActive,g.newValue="true"===g.newValue,ce.videoActive=g.newValue;var ue=null===(Q=null===(q=null==ce?void 0:ce.getMediaStream())||void 0===q?void 0:q.getVideoTracks())||void 0===Q?void 0:Q[0];ue&&!ue.enabled&&ce.videoActive&&(ue.enabled=!0);break;case"videoTrack":case"audioTrack":g.newValue=JSON.parse(g.newValue);break;case"videoDimensions":ae=ce.videoDimensions,g.newValue=JSON.parse(JSON.parse(g.newValue)),ce.videoDimensions=g.newValue;break;case"filter":ae=ce.filter,g.newValue=Object.keys(g.newValue).length>0?g.newValue:void 0,void 0!==g.newValue?(ce.filter=new y.Filter(g.newValue.type,g.newValue.options),ce.filter.stream=ce,g.newValue.lastExecMethod&&(ce.filter.lastExecMethod=g.newValue.lastExecMethod)):delete ce.filter,g.newValue=ce.filter}z.ee.emitEvent("streamPropertyChanged",[new Y.StreamPropertyChangedEvent(z,ce,g.property,g.newValue,ae,g.reason)]),ce.streamManager&&ce.streamManager.emitEvent("streamPropertyChanged",[new Y.StreamPropertyChangedEvent(ce.streamManager,ce,g.property,g.newValue,ae,g.reason)])}else T.error("No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event")};g.connectionId===this.connection.connectionId?K(this.connection):this.getRemoteConnection(g.connectionId,"onStreamPropertyChanged").then(function(O){K(O)}).catch(function(O){T.error(O)})},le.prototype.onConnectionPropertyChanged=function(g){var z;switch(g.property){case"role":z=this.connection.role.slice(),this.connection.role=g.newValue,this.connection.localOptions.role=g.newValue;break;case"record":z=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,z)])},le.prototype.onNetworkQualityLevelChangedChanged=function(g){var z=this;g.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new S.NetworkQualityLevelChangedEvent(this,g.newValue,g.oldValue,this.connection)]):this.getConnection(g.connectionId,"Connection not found for connectionId "+g.connectionId).then(function(K){z.ee.emitEvent("networkQualityLevelChanged",[new S.NetworkQualityLevelChangedEvent(z,g.newValue,g.oldValue,K)])}).catch(function(K){T.error(K)})},le.prototype.recvIceCandidate=function(g){var K=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: "+K).then(function(O){var q=O.stream;q.getWebRtcPeer().addIceCandidate(K).catch(function(Q){T.error("Error adding candidate for "+q.streamId+" stream of endpoint "+g.endpointName+": "+Q)})}).catch(function(O){T.error(O)})},le.prototype.onSessionClosed=function(g){T.info("Session closed: "+JSON.stringify(g));var z=g.sessionId;void 0!==z?this.ee.emitEvent("session-closed",[{session:z}]):T.warn("Session undefined on session closed",g)},le.prototype.onLostConnection=function(g){T.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,g)},le.prototype.onRecoveredConnection=function(){T.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},le.prototype.onMediaError=function(g){T.error("Media error: "+JSON.stringify(g));var z=g.error;z?this.ee.emitEvent("error-media",[{error:z}]):T.warn("Received undefined media error:",g)},le.prototype.onRecordingStarted=function(g){this.ee.emitEvent("recordingStarted",[new C.RecordingEvent(this,"recordingStarted",g.id,g.name)])},le.prototype.onRecordingStopped=function(g){this.ee.emitEvent("recordingStopped",[new C.RecordingEvent(this,"recordingStopped",g.id,g.name,g.reason)])},le.prototype.onBroadcastStarted=function(){this.ee.emitEvent("broadcastStarted",[])},le.prototype.onBroadcastStopped=function(){this.ee.emitEvent("broadcastStopped",[])},le.prototype.onFilterEventDispatched=function(g){var z=this,K=g.connectionId;this.getConnection(K,"No connection found for connectionId "+K).then(function(O){T.info('Filter event of type "'.concat(g.eventType,'" dispatched'));var q=O.stream;if(!q||!q.filter)return T.error('Filter event of type "'.concat(g.eventType,'" dispatched for stream ').concat(q.streamId," but there is no ").concat(q?"filter":"stream"," defined"));var Q=q.filter.handlers.get(g.eventType);if(!Q||"function"!=typeof Q){var ce=Array.from(q.filter.handlers.keys());return T.error('Filter event of type "'.concat(g.eventType,'" not handled or not a function! Active filter events: ').concat(ce.join(",")))}Q.call(z,new w.FilterEvent(q.filter,g.eventType,g.data))})},le.prototype.onForciblyReconnectSubscriber=function(g){var z=this;return new Promise(function(K,O){z.getRemoteConnection(g.connectionId,"onForciblyReconnectSubscriber").then(function(q){if(!q.stream||q.stream.streamId!==g.streamId){var ae="No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event";return T.error(ae),O(ae)}var Q=q.stream;if(Q.setupReconnectionEventEmitter(K,O)){if(null!=Q.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return Q.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g,O("Ongoing forced subscriber reconnection");Q.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g;var ce=function(){var ue=Q.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete Q.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,z.onForciblyReconnectSubscriber(ue)};return Q.reconnectionEventEmitter.once("success",function(){ce()}),void Q.reconnectionEventEmitter.once("error",function(){ce()})}Q.completeWebRtcPeerReceive(!0,!0,g.sdpOffer).then(function(){return Q.finalResolveForSubscription(!0,K)}).catch(function(ue){return Q.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(g.streamId,": ").concat(ue.toString()),O)})}).catch(function(q){return T.error(q),O(q)})})},le.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(z){z.stream&&z.stream.streamIceConnectionStateBroken()&&(T.warn("Re-establishing Subscriber "+z.stream.streamId),z.stream.initWebRtcPeerReceive(!0),g=!0)}),g||T.info("There were no media streams in need of a reconnection")},le.prototype.onSpeechToTextMessage=function(g){return $(this,void 0,void 0,function(){var z,K;return U(this,function(O){switch(O.label){case 0:return[4,this.getConnection(g.connectionId,"No connection found for connectionId "+g.connectionId)];case 1:return z=O.sent(),K=new R.SpeechToTextEvent(this,z,g.text,g.reason.toLowerCase(),g.raw,g.lang),this.ee.emitEvent("speechToTextMessage",[K]),[2]}})})},le.prototype.onSpeechToTextDisconnected=function(g){return $(this,void 0,void 0,function(){return U(this,function(z){return this.emitEvent("exception",[new ee.ExceptionEvent(this,ee.ExceptionEventName.SPEECH_TO_TEXT_DISCONNECTED,this,g.message)]),[2]})})},le.prototype.emitEvent=function(g,z){this.ee.emitEvent(g,z)},le.prototype.leave=function(g,z){var K=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(q,Q){q&&T.error("leaveRoom error: ".concat(JSON.stringify(q))),K.openvidu.closeWs()}),this.stopPublisherStream(z),!this.connection.disposed){var O=new G.SessionDisconnectedEvent(this,z);this.ee.emitEvent("sessionDisconnected",[O]),O.callDefaultBehavior()}}else T.warn("You were not connected to the session "+this.sessionId);T.flush()},le.prototype.initializeParams=function(g){return{token:g||"",session:this.sessionId,platform:M.getDescription()?M.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()}},le.prototype.sendVideoData=function(g,z,K,O){var Q,ce,q=this;if(void 0===z&&(z=1),void 0===K&&(K=!1),void 0===O&&(O=1),M.isChromeBrowser()||M.isChromeMobileBrowser()||M.isOperaBrowser()||M.isOperaMobileBrowser()||M.isEdgeBrowser()||M.isEdgeMobileBrowser()||M.isElectron()||M.isSafariBrowser()&&!M.isIonicIos()||M.isAndroidBrowser()||M.isSamsungBrowser()||M.isIonicAndroid()||M.isIOSWithSafari()){var ae=function(){return $(q,void 0,void 0,function(){var Le,We,Be;return U(this,function(ze){switch(ze.label){case 0:return"connected"!==(Le=g.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,Le.getStats()];case 1:We=ze.sent(),Be=[],We.forEach(function(ct){"frameWidth"in ct&&"frameHeight"in ct&&0===Be.length&&Be.push(ct)}),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(ct,je){ct&&T.error("Error sending 'videoData' event",ct)}),ze.label=2;case 2:return[2]}})})};if(K){var ue=1;this.videoDataInterval=setInterval(function(){ue0)return!0;var Q=0;if(K){var ce=K.ee.getListeners(g);z&&(ce=ce.filter(function(ae){return ae.once})),Q=ce.length}return Q>0},le.prototype.getTokenParams=function(g){var z=g.match(/^(wss?)\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(z){var K={protocol:z[1],host:z[2],hostname:z[3],port:z[4],pathname:z[5],search:z[6],hash:z[7]},O=g.split("?"),q=decodeURI(O[1]).split("&").map(function(Q){return Q.split("=")}).reduce(function(Q,ce){return Q[ce[0]]=ce[1],Q},{});return{sessionId:q.sessionId,secret:q.secret,recorder:q.recorder,stt:q.stt,webrtcStatsInterval:q.webrtcStatsInterval,sendBrowserLogs:q.sendBrowserLogs,edition:q.edition,wsUri:K.protocol+"://"+K.host+"/openvidu",httpUri:"https://"+K.host}}throw new Error('Token not valid: "'.concat(g,'"'))},le.prototype.connectAux=function(g){var z=this;return new Promise(function(K,O){z.openvidu.startWs(function(q){if(q)return O(q);var Q=z.initializeParams(g);z.openvidu.sendRequest("joinRoom",Q,function(ce,ae){if(ce)return O(ce);z.processJoinRoomResponse(ae,g),z.connection=new b.Connection(z,ae);var ue={connections:new Array,streams:new Array};return ae.value.forEach(function(We){var Be=new b.Connection(z,We);z.remoteConnections.set(Be.connectionId,Be),ue.connections.push(Be),Be.stream&&(z.remoteStreamsCreated.set(Be.stream.streamId,!0),ue.streams.push(Be.stream))}),z.ee.emitEvent("connectionCreated",[new v.ConnectionEvent(!1,z,"connectionCreated",z.connection,"")]),ue.connections.forEach(function(We){z.ee.emitEvent("connectionCreated",[new v.ConnectionEvent(!1,z,"connectionCreated",We,"")])}),ue.streams.forEach(function(We){z.ee.emitEvent("streamCreated",[new L.StreamEvent(!1,z,"streamCreated",We,"")])}),!!ae.recordingId&&!!ae.recordingName&&z.ee.emitEvent("recordingStarted",[new C.RecordingEvent(z,"recordingStarted",ae.recordingId,ae.recordingName)]),K()})})})},le.prototype.stopPublisherStream=function(g){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[g]))},le.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},le.prototype.stringClientMetadata=function(g){return"string"!=typeof g?JSON.stringify(g):g},le.prototype.getConnection=function(g,z){var K=this;return new Promise(function(O,q){var Q=K.remoteConnections.get(g);return Q?O(Q):K.connection.connectionId===g?O(K.connection):q(new m.OpenViduError(m.OpenViduErrorName.GENERIC_ERROR,z))})},le.prototype.getRemoteConnection=function(g,z){var K=this;return new Promise(function(O,q){var Q=K.remoteConnections.get(g);if(Q)return O(Q);var ce="Remote connection "+g+" unknown when '"+z+"'. Existing remote connections: "+JSON.stringify(K.remoteConnections.keys());return q(new m.OpenViduError(m.OpenViduErrorName.GENERIC_ERROR,ce))})},le.prototype.processToken=function(g){var z=this.getTokenParams(g);this.sessionId=z.sessionId,z.secret&&(this.openvidu.secret=z.secret),z.recorder&&(this.openvidu.recorder=!0),z.stt&&(this.openvidu.stt=!0),z.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=z.webrtcStatsInterval),z.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=z.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===z.edition||"enterprise"===z.edition,this.openvidu.isEnterprise="enterprise"===z.edition,this.openvidu.wsUri=z.wsUri,this.openvidu.httpUri=z.httpUri},le.prototype.processJoinRoomResponse=function(g,z){if(this.sessionId=g.session,null!=g.customIceServers&&g.customIceServers.length>0){this.openvidu.iceServers=[];for(var K=0,O=g.customIceServers;K0&&M[M.length-1])&&(6===g[0]||2===g[0])){k=0;continue}if(3===g[0]&&(!M||g[1]>M[0]&&g[1]0&&(!!this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=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?J.TypeOfVideo.CUSTOM:this.isSendScreen()?J.TypeOfVideo.SCREEN:J.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var T;ee.streamManager.updateMediaStream(ee.mediaStream),m.debug("Video srcObject ["+(null===(T=ee.mediaStream)||void 0===T?void 0:T.id)+"] updated in stream ["+ee.streamId+"]")})}return x.prototype.reconnect=function(){return this.reconnectStream("API")},x.prototype.applyFilter=function(f,k){var ee=this;return new Promise(function(T,M){return N(ee,void 0,void 0,function(){var te,oe,le,g,z,K,O=this;return $(this,function(q){if(this.filter)return[2,M(new G.OpenViduError(G.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(te=function(Q,ce){if(Q)return m.error("Error applying filter for Stream "+O.streamId,Q),M(401===Q.code?new G.OpenViduError(G.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):Q);m.info("Filter successfully applied on Stream "+O.streamId);var ae=O.filter;return O.filter=new U.Filter(f,k),O.filter.stream=O,ce&&(O.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(O.session,O,"filter",O.filter,ae,"applyFilter")]),O.streamManager.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(O.streamManager,O,"filter",O.filter,ae,"applyFilter")])),T(O.filter)},f.startsWith("VB:")){if(!this.hasVideo)return[2,M(new G.OpenViduError(G.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,M(new G.OpenViduError(G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(oe=this.session.token?this.session.token:k.token))return[2,M(new G.OpenViduError(G.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"!==(le=this.session.getTokenParams(oe)).edition&&"enterprise"!==le.edition)return[2,M(new G.OpenViduError(G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];oe=encodeURIComponent(btoa(oe)),m.info("Applying Virtual Background to stream "+this.streamId),g=function(){return N(O,void 0,void 0,function(){var Q,ce,ae,ue,Le,Be;return $(this,function(ze){switch(ze.label){case 0:return ze.trys.push([0,8,,9]),Q=this.streamId+"_"+(0,Y.v4)(),ce=this.mediaStream.clone(),(ae=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+Q,ae.srcObject=ce,ae.muted=!0,this.virtualBackgroundSourceElements={videoClone:ae,mediaStreamClone:ce},VirtualBackground.VirtualBackground.hideHtmlElement(ae,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(ae,Q),[4,ae.play()];case 1:switch(ze.sent(),ue=new VirtualBackground.VirtualBackground({id:Q,openviduServerUrl:new URL(le.httpUri),openviduToken:oe,inputVideo:ae,inputResolution:"160x96",outputFramerate:24}),Le=void 0,f){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,ue.backgroundBlur(k)];case 3:case 5:return Le=ze.sent(),[3,7];case 4:return[4,ue.backgroundImage(k)];case 6:throw new Error("Unknown Virtual Background filter: "+f);case 7:return this.virtualBackgroundSinkElements={VB:ue,video:Le},ae.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),te(void 0,!1),[3,9];case 8:return Be=ze.sent(),te(Be.name===G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new G.OpenViduError(G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Be.message):Be,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((z=document.createElement("script")).type="text/javascript",z.src=le.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+oe,z.onload=function(){return N(O,void 0,void 0,function(){var Q;return $(this,function(ce){switch(ce.label){case 0:return ce.trys.push([0,2,,3]),[4,g()];case 1:return ce.sent(),T(new U.Filter(f,k)),[3,3];case 2:return Q=ce.sent(),M(Q),[3,3];case 3:return[2]}})})},document.body.appendChild(z)):g().then(function(){return T(new U.Filter(f,k))}).catch(function(Q){return M(Q)})}else{if(!this.session.sessionConnected())return[2,M(this.session.notConnectedError())];m.info("Applying server filter to stream "+this.streamId),"string"!=typeof(K=k=null!=k?k:{})&&(K=JSON.stringify(K)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:f,options:K},function(Q,ce){te(Q,!0)})}return[2]})})})},x.prototype.removeFilter=function(){return N(this,void 0,void 0,function(){return $(this,function(f){switch(f.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,f.sent()]}})})},x.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},x.prototype.getMediaStream=function(){return this.mediaStream},x.prototype.removeFilterAux=function(f){var k=this;return new Promise(function(ee,T){return N(k,void 0,void 0,function(){var M,te,oe,g,le=this;return $(this,function(z){switch(z.label){case 0:if(M=function(K,O){if(K)return delete le.filter,m.error("Error removing filter for Stream "+le.streamId,K),T(401===K.code?new G.OpenViduError(G.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):K);m.info("Filter successfully removed from Stream "+le.streamId);var q=le.filter;return delete le.filter,O&&(le.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(le.session,le,"filter",le.filter,q,"applyFilter")]),le.streamManager.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(le.streamManager,le,"filter",le.filter,q,"applyFilter")])),ee()},!this.filter)return[3,11];if(null===(g=this.filter)||void 0===g||!g.type.startsWith("VB:"))return[3,9];z.label=1;case 1:return z.trys.push([1,7,,8]),te=this.virtualBackgroundSourceElements.mediaStreamClone,f?[3,5]:this.streamManager.remote?(this.streamManager.replaceTrackInMediaStream(te.getVideoTracks()[0],!1),[3,4]):[3,2];case 2:return[4,this.streamManager.replaceTrackAux(te.getVideoTracks()[0],!1)];case 3:z.sent(),z.label=4;case 4:return[3,6];case 5:te.getTracks().forEach(function(K){return K.stop()}),z.label=6;case 6:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,M(void 0,!1)];case 7:return oe=z.sent(),[2,M(oe,!1)];case 8:return[3,10];case 9:if(!this.session.sessionConnected())return[2,T(this.session.notConnectedError())];m.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(K,O){return M(K,!0)}),z.label=10;case 10:return[3,12];case 11:return[2,T(new G.OpenViduError(G.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 12:return[2]}})})})},x.prototype.setMediaStream=function(f){this.mediaStream=f},x.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},x.prototype.getWebRtcPeer=function(){return this.webRtcPeer},x.prototype.subscribeToMyRemote=function(f){this.isSubscribeToRemote=f},x.prototype.setOutboundStreamOptions=function(f){this.outboundStreamOpts=f},x.prototype.subscribe=function(){var f=this;return new Promise(function(k,ee){f.initWebRtcPeerReceive(!1).then(function(){return k()}).catch(function(T){return ee(T)})})},x.prototype.publish=function(){var f=this;return new Promise(function(k,ee){f.isLocalStreamReadyToPublish?f.initWebRtcPeerSend(!1).then(function(){return k()}).catch(function(T){return ee(T)}):f.ee.once("stream-ready-to-publish",function(){f.publish().then(function(){return k()}).catch(function(T){return ee(T)})})})},x.prototype.disposeWebRtcPeer=function(){var f;this.webRtcPeer&&(this.webRtcPeer.dispose(),f=this.webRtcPeer.getId()),this.stopWebRtcStats(),m.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+f+"] from 'Stream' with id ["+this.streamId+"] is now closed")},x.prototype.disposeMediaStream=function(){return N(this,void 0,void 0,function(){var f;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 f=k.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),f),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(ee){ee.stop()}),this.mediaStream.getVideoTracks().forEach(function(ee){ee.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(ee){ee.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(ee){ee.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),m.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},x.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},x.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},x.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},x.prototype.isSendScreen=function(){var f=!1;if("undefined"!=typeof MediaStreamTrack&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack){var k=this.outboundStreamOpts.publisherProperties.videoSource.getSettings();k.displaySurface&&(f=["monitor","window","browser"].includes(k.displaySurface))}return!f&&F.isElectron()&&(f="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),f||(f="screen"===this.outboundStreamOpts.publisherProperties.videoSource),!!this.outboundStreamOpts&&f},x.prototype.enableHarkSpeakingEvent=function(){var f=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){f.session.emitEvent("publisherStartSpeaking",[new v.PublisherSpeakingEvent(f.session,"publisherStartSpeaking",f.connection,f.streamId)]),f.streamManager.emitEvent("publisherStartSpeaking",[new v.PublisherSpeakingEvent(f.streamManager,"publisherStartSpeaking",f.connection,f.streamId)]),f.harkSpeakingEnabledOnce=!1}))},x.prototype.enableOnceHarkSpeakingEvent=function(){var f=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){f.harkSpeakingEnabledOnce&&(f.session.emitEvent("publisherStartSpeaking",[new v.PublisherSpeakingEvent(f.session,"publisherStartSpeaking",f.connection,f.streamId)]),f.streamManager.emitEvent("publisherStartSpeaking",[new v.PublisherSpeakingEvent(f.streamManager,"publisherStartSpeaking",f.connection,f.streamId)])),f.disableHarkSpeakingEvent(!0)}))},x.prototype.disableHarkSpeakingEvent=function(f){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,f){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)}},x.prototype.enableHarkStoppedSpeakingEvent=function(){var f=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){f.session.emitEvent("publisherStopSpeaking",[new v.PublisherSpeakingEvent(f.session,"publisherStopSpeaking",f.connection,f.streamId)]),f.streamManager.emitEvent("publisherStopSpeaking",[new v.PublisherSpeakingEvent(f.streamManager,"publisherStopSpeaking",f.connection,f.streamId)]),f.harkStoppedSpeakingEnabledOnce=!1}))},x.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var f=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){f.harkStoppedSpeakingEnabledOnce&&(f.session.emitEvent("publisherStopSpeaking",[new v.PublisherSpeakingEvent(f.session,"publisherStopSpeaking",f.connection,f.streamId)]),f.streamManager.emitEvent("publisherStopSpeaking",[new v.PublisherSpeakingEvent(f.streamManager,"publisherStopSpeaking",f.connection,f.streamId)])),f.disableHarkStoppedSpeakingEvent(!0)}))},x.prototype.disableHarkStoppedSpeakingEvent=function(f){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,f){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)}},x.prototype.enableHarkVolumeChangeEvent=function(f){var k=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||f)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(ee){var M={newValue:ee,oldValue:k.speechEvent.oldVolumeValue};k.speechEvent.oldVolumeValue=ee,k.streamManager.emitEvent("streamAudioVolumeChange",[new w.StreamManagerEvent(k.streamManager,"streamAudioVolumeChange",M)])})):this.harkVolumeChangeEnabled=!0},x.prototype.enableOnceHarkVolumeChangeEvent=function(f){var k=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||f)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(ee){var M={newValue:ee,oldValue:k.speechEvent.oldVolumeValue};k.speechEvent.oldVolumeValue=ee,k.disableHarkVolumeChangeEvent(!0),k.streamManager.emitEvent("streamAudioVolumeChange",[new w.StreamManagerEvent(k.streamManager,"streamAudioVolumeChange",M)])})):this.harkVolumeChangeEnabledOnce=!0},x.prototype.disableHarkVolumeChangeEvent=function(f){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,f){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)}},x.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},x.prototype.getSelectedIceCandidate=function(){var f=this;return new Promise(function(k,ee){f.webRtcStats.getSelectedIceCandidateInfo().then(function(T){return k(T)}).catch(function(T){return ee(T)})})},x.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},x.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},x.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return m.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var f=this.getRTCPeerConnection().iceConnectionState;return"connected"!==f&&"completed"!==f},x.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var f=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};f.interval="number"==typeof f.interval?f.interval:100,f.threshold="number"==typeof f.threshold?f.threshold:-50,this.speechEvent=W(this.mediaStream,f)}return!0}return!1},x.prototype.setupReconnectionEventEmitter=function(f,k){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new S,!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 f()}),this.reconnectionEventEmitter.once("error",function(ee){return k(ee)}),!0)},x.prototype.initWebRtcPeerSend=function(f){var k=this;return new Promise(function(ee,T){var M;if(f){if(k.setupReconnectionEventEmitter(ee,T))return}else k.initHarkEvents();var oe=function(z){var K;return f&&(null===(K=k.reconnectionEventEmitter)||void 0===K||K.emitEvent("error",[z]),delete k.reconnectionEventEmitter),T(z)},g={mediaConstraints:{audio:k.hasAudio,video:k.hasVideo},simulcast:null!==(M=k.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==M?M: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?J.TypeOfVideo[k.typeOfVideo]:void 0};"mediasoup"!==k.session.openvidu.mediaServer&&(g.simulcast=!1),f&&k.disposeWebRtcPeer(),k.webRtcPeer=k.displayMyRemote()?new y.WebRtcPeerSendrecv(g):new y.WebRtcPeerSendonly(g),k.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+k.connection.connectionId),k.webRtcPeer.createOffer().then(function(z){k.webRtcPeer.processLocalOffer(z).then(function(){!function(z){m.debug("Sending SDP offer to publish as "+k.streamId,z);var O,K=f?"reconnectStream":"publishVideo";if(f)O={stream:k.streamId,sdpString:z};else{var q=void 0;k.isSendVideo()&&(q="undefined"!=typeof MediaStreamTrack&&k.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?J.TypeOfVideo.CUSTOM:k.isSendScreen()?J.TypeOfVideo.SCREEN:J.TypeOfVideo.CAMERA),O={doLoopback:k.displayMyRemote()||!1,hasAudio:k.isSendAudio(),hasVideo:k.isSendVideo(),audioActive:k.audioActive,videoActive:k.videoActive,typeOfVideo:q,frameRate:k.frameRate?k.frameRate:-1,videoDimensions:JSON.stringify(k.videoDimensions),filter:k.outboundStreamOpts.publisherProperties.filter,sdpOffer:z}}k.session.openvidu.sendRequest(K,O,function(Q,ce){Q?oe(401===Q.code?new G.OpenViduError(G.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(Q)):k.webRtcPeer.processRemoteAnswer(ce.sdpAnswer).then(function(){k.streamId=ce.id,k.creationTime=ce.createdAt,k.isLocalStreamPublished=!0,k.publishedOnce=!0,k.displayMyRemote()&&(k.localMediaStreamWhenSubscribedToRemote=k.mediaStream,k.remotePeerSuccessfullyEstablished(f)),k.ee.emitEvent(f?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),k.initWebRtcStats(),m.info("'Publisher' ("+k.streamId+") successfully "+(f?"reconnected":"published")+" to session"),function(){var z;f&&(null===(z=k.reconnectionEventEmitter)||void 0===z||z.emitEvent("success"),delete k.reconnectionEventEmitter),ee()}()}).catch(function(ae){oe(ae)})})}(z.sdp)}).catch(function(K){oe(new Error("(publish) SDP process local offer error: "+JSON.stringify(K)))})}).catch(function(z){oe(new Error("(publish) SDP create offer error: "+JSON.stringify(z)))})})},x.prototype.finalResolveForSubscription=function(f,k){var ee;return m.info("'Subscriber' ("+this.streamId+") successfully "+(f?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(f),this.initWebRtcStats(),f&&(null===(ee=this.reconnectionEventEmitter)||void 0===ee||ee.emitEvent("success"),delete this.reconnectionEventEmitter),k()},x.prototype.finalRejectForSubscription=function(f,k,ee){var T;return m.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(f?"reconnect":"subscribe")+": "+k.toString()),f&&(null===(T=this.reconnectionEventEmitter)||void 0===T||T.emitEvent("error",[k]),delete this.reconnectionEventEmitter),ee(k)},x.prototype.initWebRtcPeerReceive=function(f){var k=this;return new Promise(function(ee,T){f&&k.setupReconnectionEventEmitter(ee,T)||("mediasoup"===k.session.openvidu.mediaServer?k.initWebRtcPeerReceiveFromServer(f).then(function(){return k.finalResolveForSubscription(f,ee)}).catch(function(M){return k.finalRejectForSubscription(f,M,T)}):k.initWebRtcPeerReceiveFromClient(f).then(function(){return k.finalResolveForSubscription(f,ee)}).catch(function(M){return k.finalRejectForSubscription(f,M,T)}))})},x.prototype.initWebRtcPeerReceiveFromClient=function(f){var k=this;return new Promise(function(ee,T){k.completeWebRtcPeerReceive(f,!1).then(function(M){k.webRtcPeer.processRemoteAnswer(M.sdpAnswer).then(function(){return ee()}).catch(function(te){return T(te)})}).catch(function(M){return T(M)})})},x.prototype.initWebRtcPeerReceiveFromServer=function(f){var k=this;return new Promise(function(ee,T){k.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:k.streamId,reconnect:f},function(M,te){if(M)return T(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(M)));k.completeWebRtcPeerReceive(f,!1,te.sdpOffer).then(function(){return ee()}).catch(function(oe){return T(oe)})})})},x.prototype.completeWebRtcPeerReceive=function(f,k,ee){var T=this;return new Promise(function(M,te){m.debug("'Session.subscribe(Stream)' called");var oe=function(g){m.debug("Sending local SDP ".concat(ee?"answer":"offer"," to subscribe to ").concat(T.streamId),g);var z=f?"reconnectStream":"receiveVideoFrom",K={};K[f?"stream":"sender"]=T.streamId,ee?K[f?"sdpString":"sdpAnswer"]=g:K.sdpOffer=g,f&&(K.forciblyReconnect=k),T.session.openvidu.sendRequest(z,K,function(O,q){return O?te(new Error("Error on "+z+" : "+JSON.stringify(O))):M(q)})},le={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?J.TypeOfVideo[T.typeOfVideo]:void 0};f&&T.disposeWebRtcPeer(),T.webRtcPeer=new y.WebRtcPeerRecvonly(le),T.webRtcPeer.addIceConnectionStateChangeListener(T.streamId),ee?T.webRtcPeer.processRemoteOffer(ee).then(function(){T.webRtcPeer.createAnswer().then(function(g){T.webRtcPeer.processLocalAnswer(g).then(function(){oe(g.sdp)}).catch(function(z){return te(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(z)))})}).catch(function(g){return te(new Error("(subscribe) SDP create answer error: "+JSON.stringify(g)))})}).catch(function(g){return te(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(g)))}):T.webRtcPeer.createOffer().then(function(g){T.webRtcPeer.processLocalOffer(g).then(function(){oe(g.sdp)}).catch(function(z){return te(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(z)))})}).catch(function(g){return te(new Error("(subscribe) SDP create offer error: "+JSON.stringify(g)))})})},x.prototype.remotePeerSuccessfullyEstablished=function(f){f&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var k,ee=0,T=this.webRtcPeer.pc.getReceivers();ee0},x}();P.Stream=X},8613:function(Ae,P,V){"use strict";var J,N=this&&this.__extends||(J=function(R,L){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,W){Y.__proto__=W}||function(Y,W){for(var S in W)Object.prototype.hasOwnProperty.call(W,S)&&(Y[S]=W[S])})(R,L)},function(R,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function Y(){this.constructor=R}J(R,L),R.prototype=null===L?Object.create(L):(Y.prototype=L.prototype,new Y)});Object.defineProperty(P,"__esModule",{value:!0}),P.StreamManager=void 0;var C,$=V(8074),U=V(4006),b=V(4281),y=V(7507),E=V(6274),_=V(6946),v=V(543),w=_.OpenViduLogger.getInstance(),G=function(J){function R(L,Y){var W=J.call(this)||this;if(W.videos=[],W.lazyLaunchVideoElementCreatedEvent=!1,C=v.PlatformUtils.getInstance(),W.stream=L,W.stream.streamManager=W,W.remote=!W.stream.isLocal(),Y){var S=void 0;"string"==typeof Y?S=document.getElementById(Y):Y instanceof HTMLElement&&(S=Y),S&&(W.firstVideoElement={targetElement:S,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=S,W.element=S)}return W.canPlayListener=function(){W.deactivateStreamPlayingEventExceptionTimeout(),W.ee.emitEvent("streamPlaying",[new U.StreamManagerEvent(W,"streamPlaying",void 0)])},W}return N(R,J),R.prototype.on=function(L,Y){return J.prototype.onAux.call(this,L,"Event '"+L+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",Y),"videoElementCreated"===L&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new b.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 U.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},R.prototype.once=function(L,Y){return J.prototype.onceAux.call(this,L,"Event '"+L+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",Y),"videoElementCreated"===L&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new b.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 U.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},R.prototype.off=function(L,Y){return J.prototype.offAux.call(this,L,Y),"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},R.prototype.addVideoElement=function(L){this.initializeVideoProperties(L),!this.remote&&this.stream.displayMyRemote()&&L.srcObject!==this.stream.getMediaStream()&&(L.srcObject=this.stream.getMediaStream());for(var Y=0,W=this.videos;Y=0;--Y)this.stream.session.streamManagers[Y]===this&&this.stream.session.streamManagers.splice(Y,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 b.VideoElementEvent(W.video,L,"videoElementDestroyed")])),L.removeSrcObject(W),L.videos.filter(function(S){return!S.targetElement})})},R.prototype.disassociateVideo=function(L){for(var Y=!1,W=0;W{"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 $(U,b){this.name=U,this.message=b}},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,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.ConnectionEvent=void 0;var U=function(b){function y(E,_,v,w,C){var G=b.call(this,E,_,v)||this;return G.connection=w,G.reason=C,G}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.ConnectionEvent=U},865:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.ConnectionPropertyChangedEvent=void 0;var U=function(b){function y(E,_,v,w,C){var G=b.call(this,!1,E,"connectionPropertyChanged")||this;return G.connection=_,G.changedProperty=v,G.newValue=w,G.oldValue=C,G}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.ConnectionPropertyChangedEvent=U},2345:(Ae,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.Event=void 0;var V=function(){function N($,U,b){this.hasBeenPrevented=!1,this.cancelable=$,this.target=U,this.type=b}return N.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},N.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},N}();P.Event=V},7507:function(Ae,P,V){"use strict";var y,N=this&&this.__extends||(y=function(E,_){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&(v[C]=w[C])})(E,_)},function(E,_){if("function"!=typeof _&&null!==_)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function v(){this.constructor=E}y(E,_),E.prototype=null===_?Object.create(_):(v.prototype=_.prototype,new v)});Object.defineProperty(P,"__esModule",{value:!0}),P.ExceptionEvent=P.ExceptionEventName=void 0;var $=V(2345);!function(y){y.ICE_CANDIDATE_ERROR="ICE_CANDIDATE_ERROR",y.ICE_CONNECTION_FAILED="ICE_CONNECTION_FAILED",y.ICE_CONNECTION_DISCONNECTED="ICE_CONNECTION_DISCONNECTED",y.NO_STREAM_PLAYING_EVENT="NO_STREAM_PLAYING_EVENT",y.SPEECH_TO_TEXT_DISCONNECTED="SPEECH_TO_TEXT_DISCONNECTED"}(P.ExceptionEventName||(P.ExceptionEventName={}));var b=function(y){function E(_,v,w,C,G){var J=y.call(this,!1,_,"exception")||this;return J.name=v,J.origin=w,J.message=C,J.data=G,J}return N(E,y),E.prototype.callDefaultBehavior=function(){},E}($.Event);P.ExceptionEvent=b},2156:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.FilterEvent=void 0;var U=function(b){function y(E,_,v){var w=b.call(this,!1,E,_)||this;return w.data=v,w}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.FilterEvent=U},6237:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.NetworkQualityLevelChangedEvent=void 0;var U=function(b){function y(E,_,v,w){var C=b.call(this,!1,E,"networkQualityLevelChanged")||this;return C.newValue=_,C.oldValue=v,C.connection=w,C}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.NetworkQualityLevelChangedEvent=U},805:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.PublisherSpeakingEvent=void 0;var U=function(b){function y(E,_,v,w){var C=b.call(this,!1,E,_)||this;return C.type=_,C.connection=v,C.streamId=w,C}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.PublisherSpeakingEvent=U},7936:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.RecordingEvent=void 0;var U=function(b){function y(E,_,v,w,C){var G=b.call(this,!1,E,_)||this;return G.id=v,w!==v&&(G.name=w),G.reason=C,G}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.RecordingEvent=U},1018:function(Ae,P,V){"use strict";var E,N=this&&this.__extends||(E=function(_,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,C){w.__proto__=C}||function(w,C){for(var G in C)Object.prototype.hasOwnProperty.call(C,G)&&(w[G]=C[G])})(_,v)},function(_,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function w(){this.constructor=_}E(_,v),_.prototype=null===v?Object.create(v):(w.prototype=v.prototype,new w)});Object.defineProperty(P,"__esModule",{value:!0}),P.SessionDisconnectedEvent=void 0;var $=V(2345),b=V(6946).OpenViduLogger.getInstance(),y=function(E){function _(v,w){var C=E.call(this,!0,v,"sessionDisconnected")||this;return C.reason=w,C}return N(_,E),_.prototype.callDefaultBehavior=function(){b.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var v=this.target;v.remoteConnections.forEach(function(w){var C,G,J,R,L,Y,W,S,m=w.connectionId;if(null!==(C=v.remoteConnections.get(m))&&void 0!==C&&C.stream){null===(G=v.remoteConnections.get(m))||void 0===G||G.stream.disposeWebRtcPeer(),null===(J=v.remoteConnections.get(m))||void 0===J||J.stream.disposeMediaStream(),null!==(R=v.remoteConnections.get(m))&&void 0!==R&&R.stream.streamManager&&(null===(L=v.remoteConnections.get(m))||void 0===L||L.stream.streamManager.removeAllVideos());var F=null===(W=null===(Y=v.remoteConnections.get(m))||void 0===Y?void 0:Y.stream)||void 0===W?void 0:W.streamId;F&&v.remoteStreamsCreated.delete(F),null===(S=v.remoteConnections.get(m))||void 0===S||S.dispose()}v.remoteConnections.delete(m)})},_}($.Event);P.SessionDisconnectedEvent=y},5785:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.SignalEvent=void 0;var U=function(b){function y(E,_,v,w){var C=b.call(this,!1,E,"signal")||this;return _&&(C.type="signal:"+_),C.data=v,C.from=w,C}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.SignalEvent=U},6282:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.SpeechToTextEvent=void 0;var U=function(b){function y(E,_,v,w,C,G){var J=b.call(this,!1,E,"speechToTextMessage")||this;return J.connection=_,J.text=v,J.reason=w,J.raw=C,J.lang=G,J}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.SpeechToTextEvent=U},2299:function(Ae,P,V){"use strict";var v,N=this&&this.__extends||(v=function(w,C){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,J){G.__proto__=J}||function(G,J){for(var R in J)Object.prototype.hasOwnProperty.call(J,R)&&(G[R]=J[R])})(w,C)},function(w,C){if("function"!=typeof C&&null!==C)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function G(){this.constructor=w}v(w,C),w.prototype=null===C?Object.create(C):(G.prototype=C.prototype,new G)});Object.defineProperty(P,"__esModule",{value:!0}),P.StreamEvent=void 0;var $=V(2345),U=V(4259),b=V(8402),E=V(6946).OpenViduLogger.getInstance(),_=function(v){function w(C,G,J,R,L){var Y=v.call(this,C,G,J)||this;return Y.stream=R,Y.reason=L,Y}return N(w,v),w.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof b.Session)E.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof U.Publisher){E.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,G=0;G=0;--G)R[G].id===this.stream.streamId&&R.splice(G,1)}}},w}($.Event);P.StreamEvent=_},4006:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.StreamManagerEvent=void 0;var U=function(b){function y(E,_,v){var w=b.call(this,!1,E,_)||this;return w.value=v,w}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.StreamManagerEvent=U},2798:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.StreamPropertyChangedEvent=void 0;var U=function(b){function y(E,_,v,w,C,G){var J=b.call(this,!1,E,"streamPropertyChanged")||this;return J.stream=_,J.changedProperty=v,J.newValue=w,J.oldValue=C,J.reason=G,J}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.StreamPropertyChangedEvent=U},5810:(Ae,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0})},4281:function(Ae,P,V){"use strict";var b,N=this&&this.__extends||(b=function(y,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(_[w]=v[w])})(y,E)},function(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=y}b(y,E),y.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(P,"__esModule",{value:!0}),P.VideoElementEvent=void 0;var U=function(b){function y(E,_,v){var w=b.call(this,!1,_,v)||this;return w.element=E,w}return N(y,b),y.prototype.callDefaultBehavior=function(){},y}(V(2345).Event);P.VideoElementEvent=U},6842:Ae=>{function P(){var V={};this.forEach=function(N){for(var $ in V){var U=V[$];for(var b in U)N(U[b])}},this.get=function(N,$){var U=V[$];if(null!=U)return U[N]},this.remove=function(N,$){var U=V[$];if(null!=U){for(var b in delete U[N],U)return!1;delete V[$]}},this.set=function(N,$,U){if(null==N)return this.remove($,U);var b=V[U];null==b&&(V[U]=b={}),b[$]=N}}P.prototype.pop=function(V,N){var $=this.get(V,N);if(null!=$)return this.remove(V,N),$},Ae.exports=P},5150:(Ae,P,V)=>{var N=V(245);P.JsonRpcClient=N},245:(Ae,P,V)=>{var N=V(3031),$=V(7182),U=V(6946).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var y="RECONNECTING",E="CONNECTED",_="DISCONNECTED",v=U.getInstance();Ae.exports=function w(C){var S,G=this,J=C.ws,R=-1,L=0,Y=!0,W=!1,m=_,F=J.onreconnecting,X=J.onreconnected,x=J.onconnected,f=J.onerror;C.rpc.pull=function(g,z){z.reply(null,"push")},J.onreconnecting=function(){v.debug("--------- ONRECONNECTING -----------"),m!==y?(le(),m=y,F&&F()):v.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},J.onreconnected=function(){v.debug("--------- ONRECONNECTED -----------"),m!==E?(m=E,M(),X&&X()):v.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},J.onconnected=function(){v.debug("--------- ONCONNECTED -----------"),m!==E?(m=E,Y=!0,oe(),x&&x()):v.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},J.onerror=function(g){v.debug("--------- ONERROR -----------"),m=_,le(),f&&f(g)};var k=new $(J);v.debug("Connecting websocket to URI: "+J.uri);var T=new N(N.packers.JsonRPC,{request_timeout:C.rpc.requestTimeout,ping_request_timeout:C.rpc.heartbeatRequestTimeout},k,function(g){v.debug("Received request: "+JSON.stringify(g));try{var z=C.rpc[g.method];void 0===z?v.error("Method "+g.method+" not registered in client"):z(g.params,g)}catch(K){v.error("Exception processing request: "+JSON.stringify(g)),v.error(K)}});function M(){v.debug("notReconnectIfNumLessThan = "+L+" (old="+R+")"),R=L}function te(){if(Y){var g=null;(0==L||L==R)&&(g={interval:C.heartbeat||5e3}),L++,G.send("ping",g,(z=L,function(K,O){K&&(v.debug("Error in ping request #"+z+" ("+K.message+")"),z>R&&(Y=!1,M(),v.debug("Server did not respond to ping message #"+z+". Reconnecting... "),k.reconnectWs()))}))}else v.debug("Trying to send ping, but ping is not enabled");var z}function oe(){W||(v.debug("Starting ping (if configured)"),W=!0,null!=C.heartbeat&&(S=setInterval(te,C.heartbeat),te()))}function le(){clearInterval(S),W=!1,Y=!1,L=-1,T.cancel()}this.send=function(g,z,K){var O=Date.now();T.encode(g,z,function(q,Q){if(q){try{v.error("ERROR:"+q.message+" in Request: method:"+g+" params:"+JSON.stringify(z)+" request:"+q.request),q.data&&v.error("ERROR DATA:"+JSON.stringify(q.data))}catch(ce){}q.requestTime=O}K&&(null!=Q&&"pong"!==Q.value&&v.debug("Response: "+JSON.stringify(Q)),K(q,Q))})},this.close=function(g,z){v.debug("Closing with code: "+g+" because: "+z),null!=S&&(v.debug("Clearing ping interval"),clearInterval(S)),W=!1,Y=!1,k.close(g,z)},this.reconnect=function(){k.reconnectWs()},this.resetPing=function(){Y=!0,L=0,oe()},this.getReadyState=function(){return k.getReadyState()}}},593:(Ae,P,V)=>{var N=V(7182);P.WebSocketWithReconnection=N},7182:(Ae,P,V)=>{"use strict";var $=V(6946).OpenViduLogger.getInstance();Ae.exports=function w(C){var J,G=!1,R=C.uri,L=!1,Y=new WebSocket(R);Y.onopen=function(){$.debug("WebSocket connected to "+R),C.onconnected&&C.onconnected()},Y.onerror=function(X){$.error("Could not connect to "+R+" (invoking onerror if defined)",X),C.onerror&&C.onerror(X)};var W=function(){3===Y.readyState?G?$.debug("Connection closed by user"):C.ismasternodecrashed()?$.error("Master Node has crashed. Stopping reconnection process"):($.debug("Connection closed unexpectedly. Reconnecting..."),S(2e3,1)):$.debug("Close callback from previous websocket. Ignoring it")};function S(X,x){if($.debug("reconnect (attempt #"+x+", max="+X+")"),1===x){if(L)return void $.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");L=!0,C.onreconnecting&&C.onreconnecting()}!function F(X,x){$.debug("Reconnection attempt #"+x),Y.close(4104,"Connection closed for reconnection"),R=function m(X){var x=new URLSearchParams(new URL(X).search);return x.has("reconnect")||(X=Array.from(x).length>0?X+"&reconnect=true":X+"?reconnect=true"),X}(R),(Y=new WebSocket(R)).onopen=function(){$.debug("Reconnected to "+R+" after "+x+" attempts..."),L=!1,J(),C.onreconnected()&&C.onreconnected(),Y.onclose=W},Y.onerror=function(f){$.warn("Reconnection error: ",f),x===X?C.ondisconnect&&C.ondisconnect():setTimeout(function(){S(X,x+1)},3e3)}}(X,x)}Y.onclose=W,this.close=function(X,x){G=!0,Y.close(X,x)},this.reconnectWs=function(){$.debug("reconnectWs"),S(2e3,1)},this.send=function(X){Y.send(X)},this.addEventListener=function(X,x){(J=function(){Y.addEventListener(X,x)})()},this.getReadyState=function(){return Y.readyState}}},3031:(Ae,P,V)=>{var N=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(R){N=!0}Function.prototype.bind||(Function.prototype.bind=function(R){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),Y=this,W=function(){},S=function(){return Y.apply(this instanceof W&&R?this:R,L.concat(Array.prototype.slice.call(arguments)))};return W.prototype=this.prototype,S.prototype=new W,S});var $=V(9069).EventEmitter,U=V(3894),b=V(8080),y=V(6842),E=5e3;function v(R){if(R){if(R instanceof Function)return{send:R};if(R.send instanceof Function)return R;if(R.postMessage instanceof Function)return R.send=R.postMessage,R;if(R.write instanceof Function)return R.send=R.write,R;if(void 0===R.onmessage&&!(R.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function w(R,L){N?(this.method=R,this.params=L):(Object.defineProperty(this,"method",{value:R,enumerable:!0}),Object.defineProperty(this,"params",{value:L,enumerable:!0}))}function C(R,L,Y,W){var S=this;if(!R)throw new SyntaxError("Packer is not defined");if(!R.pack||!R.unpack)throw new SyntaxError("Packer is invalid");var m=function _(R){if(!R)return{};for(var L in R){var Y=R[L];"string"==typeof Y&&(R[L]={response:Y})}return R}(R.responseMethods);if(L instanceof Function){if(null!=Y)throw new SyntaxError("There can't be parameters after onRequest");W=L,Y=void 0,L=void 0}if(L&&L.send instanceof Function){if(Y&&!(Y instanceof Function))throw new SyntaxError("Only a function can be after transport");W=Y,Y=L,L=void 0}if(Y instanceof Function){if(null!=W)throw new SyntaxError("There can't be parameters after onRequest");W=Y,Y=void 0}if(Y&&Y.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 X(q){S.decode(q.data||q)}this.getTransport=function(){return Y},this.setTransport=function(q){Y&&(Y.removeEventListener?Y.removeEventListener("message",X):Y.removeListener&&Y.removeListener("data",X)),q&&(q.addEventListener?q.addEventListener("message",X):q.addListener&&q.addListener("data",X)),Y=v(q)},N||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(Y);var x=L.request_timeout||E,f=L.ping_request_timeout||x,k=L.response_timeout||E,ee=L.duplicates_timeout||E,T=0,M=new y,te=new y,oe=new y,le={};function z(q,Q){var ce=setTimeout(function(){oe.remove(q,Q)},ee);oe.set(ce,q,Q)}function K(q,Q,ce,ae,ue){w.call(this,q,Q),this.getTransport=function(){return ue},this.setTransport=function(Be){ue=v(Be)},N||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var Le=te.get(ce,ae);ue||S.getTransport()||(N?this.duplicated=Boolean(Le):Object.defineProperty(this,"duplicated",{value:Boolean(Le)}));var We=m[q];this.pack=R.pack.bind(R,this,ce),this.reply=function(Be,ze,ct){if(Be instanceof Function||Be&&Be.send instanceof Function){if(null!=ze)throw new SyntaxError("There can't be parameters after callback");ct=Be,ze=null,Be=void 0}else if(ze instanceof Function||ze&&ze.send instanceof Function){if(null!=ct)throw new SyntaxError("There can't be parameters after callback");ct=ze,ze=null}var je;return ct=v(ct),Le&&clearTimeout(Le.timeout),null!=ae&&(Be&&(Be.dest=ae),ze&&(ze.dest=ae)),Be||null!=ze?(null!=S.peerID&&(Be?Be.from=S.peerID:ze.from=S.peerID),je=R.pack(je=We?null==We.error&&Be?{error:Be}:{method:Be?We.error:We.response,params:Be||ze}:{error:Be,result:ze},ce)):je=Le?Le.message:R.pack({result:null},ce),function g(q,Q,ce){var ae={message:q,timeout:setTimeout(function(){te.remove(Q,ce)},k)};te.set(ae,Q,ce)}(je,ce,ae),(ct=ct||this.getTransport()||S.getTransport())?ct.send(je):je}}function O(q){var Q=le[q];if(Q){delete le[q];var ce=M.pop(Q.id,Q.dest);!ce||(clearTimeout(ce.timeout),z(Q.id,Q.dest))}}U(K,w),this.cancel=function(q){if(q)return O(q);for(var q in le)O(q)},this.close=function(){var q=this.getTransport();q&&q.close&&q.close(4003,"Cancel request"),this.cancel(),oe.forEach(clearTimeout),te.forEach(function(Q){clearTimeout(Q.timeout)})},this.encode=function(q,Q,ce,ae,ue){if(Q instanceof Function){if(null!=ce)throw new SyntaxError("There can't be parameters after callback");ue=Q,ae=void 0,ce=void 0,Q=void 0}else if(ce instanceof Function){if(null!=ae)throw new SyntaxError("There can't be parameters after callback");ue=ce,ae=void 0,ce=void 0}else if(ae instanceof Function){if(null!=ue)throw new SyntaxError("There can't be parameters after callback");ue=ae,ae=void 0}null!=S.peerID&&((Q=Q||{}).from=S.peerID),null!=ce&&((Q=Q||{}).dest=ce);var Le={method:q,params:Q};if(ue){let ln=function(De,Ue){S.cancel(Le),ue(De,Ue)},zn=function(De){return ze.timeout=setTimeout(Qn,("ping"===q?f:x)*Math.pow(2,Be++)),le[Le]={id:We,dest:ce},M.set(ze,We,ce),(De=De||ct||S.getTransport())?De.send(Le):Le},Ke=function(De){De=v(De),console.warn(Be+" retry for request message:",Le);var Ue=oe.pop(We,ce);return clearTimeout(Ue),zn(De)},Qn=function(){if(Be{P.pack=function V($,U){var b={jsonrpc:"2.0"};if($.method)b.method=$.method,$.params&&(b.params=$.params),null!=U&&(b.id=U);else if(null!=U){if($.error){if(void 0!==$.result)throw new TypeError("Both result and error are defined");b.error=$.error}else{if(void 0===$.result)throw new TypeError("No result or error is defined");b.result=$.result}b.id=U}return JSON.stringify(b)},P.unpack=function N($){var U=$;("string"==typeof $||$ instanceof String)&&(U=JSON.parse($));var b=U.jsonrpc;if("2.0"!==b)throw new TypeError("Invalid JsonRPC version '"+b+"': "+$);if(null==U.method){if(null==U.id)throw new TypeError("Invalid message: "+$);var y=void 0!==U.result,E=void 0!==U.error;if(y&&E)throw new TypeError("Both result and error are defined: "+$);if(!y&&!E)throw new TypeError("No result or error is defined: "+$);U.ack=U.id,delete U.id}return U}},9688:(Ae,P)=>{P.pack=function V($){throw new TypeError("Not yet implemented")},P.unpack=function N($){throw new TypeError("Not yet implemented")}},8080:(Ae,P,V)=>{var N=V(8727),$=V(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,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.OpenViduLogger=void 0;var N=V(8659),$=V(9380),U=V(541),b=function(){function y(){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 y.configureJSNLog=function(E,_){var v=this;try{if(globalThis.LOG_JSNLOG_RESULTS||this.instance&&E.isAtLeastPro&&this.instance.isOpenViduBrowserLogsDebugActive(E)&&this.instance.canConfigureJSNLog(E,this.instance)){E.sendBrowserLogs===U.OpenViduLoggerConfiguration.debug_app&&this.instance.replaceWindowConsole(),this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var w=E.finalUserId,C=E.session.sessionId;this.instance.currentAppender=N.JL.createAjaxAppender("appender-".concat(w,"-").concat(C)),this.instance.currentAppender.setOptions({beforeSend:function(R){var L=R.onreadystatechange;R.onreadystatechange=function(){v.isInvalidResponse(R)&&(Object.defineProperty(R,"readyState",{value:4}),Object.defineProperty(R,"status",{value:200}),v.instance.disableLogger()),L()},R.setRequestHeader("Authorization","Basic "+btoa("".concat(w,"%/%").concat(C)+":"+_)),R.setRequestHeader("X-Requested-With","XMLHttpRequest"),R.setRequestHeader("OV-Final-User-Id",w),R.setRequestHeader("OV-Session-Id",C),R.setRequestHeader("OV-Token",_)},maxBatchSize:1e3,batchSize:this.instance.MAX_JSNLOG_BATCH_LOG_MESSAGES,batchTimeout:this.instance.MAX_MSECONDS_BATCH_MESSAGES}),N.JL.setOptions({defaultAjaxUrl:E.httpUri+this.instance.JSNLOG_URL,serialize:function(R){var W,Y=JSON.stringify(R,(W=new WeakSet,function(S,m){if("object"==typeof m&&null!=m){if(W.has(m)||globalThis.HTMLElement&&m instanceof HTMLElement)return;W.add(m)}return m}));return Y.length>v.instance.MAX_LENGTH_STRING_JSON&&(Y="".concat(Y.substring(0,v.instance.MAX_LENGTH_STRING_JSON),"...")),globalThis.LOG_JSNLOG_RESULTS&&console.log(Y),Y},enabled:!0}),(0,N.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=C,this.instance.info("JSNLog configured.")}}catch(R){console.error("Error configuring JSNLog: "),console.error(R),this.instance.disableLogger()}},y.getInstance=function(){return y.instance||(y.instance=new y),y.instance},y.isInvalidResponse=function(E){return 401==E.status||403==E.status||404==E.status||0==E.status},y.prototype.canConfigureJSNLog=function(E,_){return E.session.sessionId!=_.loggingSessionId},y.prototype.isOpenViduBrowserLogsDebugActive=function(E){return E.sendBrowserLogs===U.OpenViduLoggerConfiguration.debug||E.sendBrowserLogs===U.OpenViduLoggerConfiguration.debug_app},y.prototype.getConsoleWithJSNLog=function(){return E=this,{log:function(){for(var _=[],v=0;v{"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 V(y,E,_){var v={audio:!1,video:{mandatory:{chromeMediaSource:y?"screen":"desktop",maxWidth:globalThis.screen.width>1920?globalThis.screen.width:1920,maxHeight:globalThis.screen.height>1080?globalThis.screen.height:1080},optional:[]}};return _&&(v.audio={mandatory:{chromeMediaSource:y?"screen":"desktop"},optional:[]}),E&&(v.video.mandatory.chromeMediaSourceId=E,v.audio&&v.audio.mandatory&&(v.audio.mandatory.chromeMediaSourceId=E)),v}function N(y){$?$.isLoaded?$.contentWindow.postMessage(y?y.forEach?{captureCustomSourceId:y}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){N(y)},100):U(function(){N(y)})}var $;function U(y){$?y():(($=document.createElement("iframe")).onload=function(){$.isLoaded=!0,y()},$.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",$.style.display="none",(document.body||document.documentElement).appendChild($))}function b(){$?$.isLoaded?$.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(b,100):U(b)}globalThis.getScreenId=function(y,E,_){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?E(null,"firefox",{video:{mozMediaSource:y,mediaSource:y}}):(globalThis.addEventListener("message",function v(w){!w.data||(w.data.chromeMediaSourceId&&("PermissionDeniedError"===w.data.chromeMediaSourceId?E("permission-denied"):E(null,w.data.chromeMediaSourceId,V(null,w.data.chromeMediaSourceId,w.data.canRequestAudioTrack)),globalThis.removeEventListener("message",v)),w.data.chromeExtensionStatus&&(E(w.data.chromeExtensionStatus,null,V(w.data.chromeExtensionStatus)),globalThis.removeEventListener("message",v)))}),setTimeout(_?function(){N(_)}:N,100)):E({video:!0})},globalThis.getScreenConstraints=function(y){U(function(){getScreenId(function(E,_,v){v||(v={video:!0}),y(E,v.video)})})},globalThis.getChromeExtensionStatus=function(y){navigator.mozGetUserMedia?y("installed-enabled"):(globalThis.addEventListener("message",function E(_){!_.data||_.data.chromeExtensionStatus&&(y(_.data.chromeExtensionStatus),globalThis.removeEventListener("message",E))}),setTimeout(b,100))},P.getScreenId=globalThis.getScreenId},4627:(Ae,P)=>{var N,$,V="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var U=void 0!==window.InstallTrigger;!!window.opera||navigator.userAgent.indexOf(" OPR/");window,window.addEventListener("message",function(L){L.origin==window.location.origin&&function E(L){if("PermissionDeniedError"==L){if($)return $("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==L&&(V="desktop"),L.sourceId&&$&&$(N=L.sourceId,!0===L.canRequestAudioTrack)}(L.data)})}function v(L){if(!L)throw'"callback" parameter is mandatory.';if(N)return L(N);$=L,window.postMessage("get-sourceId","*")}function R(L,Y){if(N="",U)return L(null,{mozMediaSource:"window",mediaSource:"window"});var S={mandatory:{chromeMediaSource:V,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=V||N?("desktop"==V&&(S.mandatory.chromeMediaSourceId=N),L(null,S)):Y?function C(L){if(!L)throw'"callback" parameter is mandatory.';if(N)return L(N);$=L,window.postMessage("audio-plus-tab","*")}(function(m,F){S.mandatory.chromeMediaSourceId=m,F&&(S.canRequestAudioTrack=!0),L("PermissionDeniedError"==m?m:null,S)}):v(function(m){S.mandatory.chromeMediaSourceId=m,L("PermissionDeniedError"==m?m:null,S)})}P.getScreenConstraints=R,P.getScreenConstraintsWithAudio=function J(L){R(L,!0)},P.isChromeExtensionAvailable=function _(L){if(L){if("desktop"==V)return L(!0);window.postMessage("are-you-there","*"),setTimeout(function(){L("screen"!=V)},2e3)}},P.getChromeExtensionStatus=function G(L,Y){if(U)return Y("not-chrome");2!=arguments.length&&(Y=L,L="lfcgfepafnobdloecchnfaclibenjold");var W=document.createElement("img");W.src="chrome-extension://"+L+"/icon.png",W.onload=function(){V="screen",window.postMessage("are-you-there","*"),setTimeout(function(){Y("screen"==V?"installed-disabled":"installed-enabled")},2e3)},W.onerror=function(){Y("not-installed")}},P.getSourceId=v},543:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.PlatformUtils=void 0;var N=V(2437),$=function(){function U(){}return U.getInstance=function(){return this.instance||(this.instance=new U),U.instance},U.prototype.isChromeBrowser=function(){return"Chrome"===N.name},U.prototype.isSafariBrowser=function(){return"Safari"===N.name},U.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===N.name},U.prototype.isFirefoxBrowser=function(){return"Firefox"===N.name},U.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===N.name||"Firefox for iOS"===N.name},U.prototype.isOperaBrowser=function(){return"Opera"===N.name},U.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===N.name},U.prototype.isEdgeBrowser=function(){var b=null!=N&&N.version?parseFloat(N.version):-1;return"Microsoft Edge"===N.name&&b>=80},U.prototype.isEdgeMobileBrowser=function(){var b,y,E=null!=N&&N.version?parseFloat(N.version):-1;return"Microsoft Edge"===N.name&&("Android"===(null===(b=N.os)||void 0===b?void 0:b.family)||"iOS"===(null===(y=N.os)||void 0===y?void 0:y.family))&&E>45},U.prototype.isAndroidBrowser=function(){return"Android Browser"===N.name},U.prototype.isElectron=function(){return"Electron"===N.name},U.prototype.isNodeJs=function(){return"Node.js"===N.name},U.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===N.name||"Samsung Internet"===N.name},U.prototype.isMotorolaEdgeDevice=function(){var b;return(null===(b=N.product)||void 0===b?void 0:b.toLowerCase().includes("motorola edge"))||!1},U.prototype.isIPhoneOrIPad=function(){var b=N.ua?N.ua:navigator.userAgent,y="ontouchend"in document,E=/\b(\w*Macintosh\w*)\b/.test(b)&&y,_=/\b(\w*iPhone\w*)\b/.test(b)&&/\b(\w*Mobile\w*)\b/.test(b)&&y;return E||_},U.prototype.isIOSWithSafari=function(){var b=N.ua?N.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(b)&&!/\b(\w*CriOS\w*)\b/.test(b)&&!/\b(\w*FxiOS\w*)\b/.test(b)},U.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===N.ua.indexOf("Safari")},U.prototype.isIonicAndroid=function(){return"Android"===N.os.family&&"Android Browser"==N.name},U.prototype.isMobileDevice=function(){return"iOS"===N.os.family||"Android"===N.os.family},U.prototype.isReactNative=function(){return!1},U.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()||this.isMotorolaEdgeDevice()},U.prototype.canScreenShare=function(){var b=null!=N&&N.version?parseFloat(N.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&b>=13)},U.prototype.getName=function(){return N.name||""},U.prototype.getVersion=function(){return N.version||""},U.prototype.getFamily=function(){return N.os.family||""},U.prototype.getDescription=function(){return N.description||""},U}();P.PlatformUtils=$},4641:function(Ae,P,V){"use strict";var W,N=this&&this.__extends||(W=function(S,m){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,X){F.__proto__=X}||function(F,X){for(var x in X)Object.prototype.hasOwnProperty.call(X,x)&&(F[x]=X[x])})(S,m)},function(S,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function F(){this.constructor=S}W(S,m),S.prototype=null===m?Object.create(m):(F.prototype=m.prototype,new F)}),$=this&&this.__assign||function(){return $=Object.assign||function(W){for(var S,m=1,F=arguments.length;m0&&x[x.length-1])&&(6===T[0]||2===T[0])){m=0;continue}if(3===T[0]&&(!x||T[1]>x[0]&&T[1]0?S.iceServers:y(),mediaStream:void 0!==S.mediaStream?S.mediaStream:null,mode:S.mode?S.mode:"sendrecv",id:S.id?S.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 x=new RTCIceCandidate(F.candidate);m.configuration.onIceCandidate(x),""!==x.candidate&&m.localCandidatesQueue.push(x)}}),this.pc.addEventListener("signalingstatechange",function(){return U(m,void 0,void 0,function(){var F,X;return b(this,function(x){switch(x.label){case 0:if("stable"!==this.pc.signalingState)return[3,6];x.label=1;case 1:if(!(this.iceCandidateList.length>0))return[3,6];F=this.iceCandidateList.shift(),x.label=2;case 2:return x.trys.push([2,4,,5]),[4,this.pc.addIceCandidate(F)];case 3:return x.sent(),[3,5];case 4:return X=x.sent(),C.error("Error when calling RTCPeerConnection#addIceCandidate for RTCPeerConnection "+this.getId(),X),[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 S,m,F,X,x,f,k,ee;return U(this,void 0,void 0,function(){var T,M,te,oe,le,g,z,K,O,q,Q,ce,ae,ue,Le,We,Be,ze,ct,je,pe,on,$e;return b(this,function(ln){switch(ln.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,M=this.configuration.mediaStream.getTracks(),ln.label=1;case 1:if(!(T=518400?3:O>=129600?2:1,oe.sendEncodings=[],Q=0;Q0&&R[R.length-1])&&(6===S[0]||2===S[0])){C=0;continue}if(3===S[0]&&(!R||S[1]>R[0]&&S[1]=0||Q.candidate.indexOf(T.address)>=0)&&Q.candidate.indexOf(T.port)>=0}),T.raw=[],M=0,te=g;M=0||Q.candidate.indexOf(oe.address)>=0)&&Q.candidate.indexOf(oe.port)>=0}),oe.raw=[],z=0,K=g;z-1&&(x="video"),null!=k&&null!=x&&null!=ee&&null!=L[k][x]?L[k][x][ee]=Number(X[ee]):null!=k&&null!=ee&&W.includes(ee)&&(L[k][ee]=Number(X[ee])))};switch(X.type){case"outbound-rtp":f("outbound","bytesSent"),f("outbound","packetsSent"),f("outbound","framesEncoded"),f("outbound","nackCount"),f("outbound","firCount"),f("outbound","pliCount"),f("outbound","qpSum");break;case"inbound-rtp":f("inbound","bytesReceived"),f("inbound","packetsReceived"),f("inbound","packetsLost"),f("inbound","jitter"),f("inbound","framesDecoded"),f("inbound","nackCount"),f("inbound","firCount"),f("inbound","pliCount");break;case"track":f("inbound","jitterBufferDelay"),f("inbound","framesReceived"),f("outbound","framesDropped"),f("outbound","framesSent"),f(m.stream.isLocal()?"outbound":"inbound","frameHeight"),f(m.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":f("candidatepair","currentRoundTripTime"),f("candidatepair","availableOutgoingBitrate")}}),null!=L&&L.candidatepair&&0!==Object.keys(L.candidatepair).length||delete L.candidatepair,[2,G(L)];case 2:return S=F.sent(),y.error("Error getting common stats: ",S),[2,J(S)];case 3:return[2]}})})})]})})},v.prototype.generateJSONStatsResponse=function(w){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:E.getName(),platform_description:E.getDescription(),stream:"webRTC",webrtc_stats:w}},v.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},v}();P.WebRtcStats=_},5039:function(Ae,P,V){"use strict";var N=this&&this.__createBinding||(Object.create?function(O,q,Q,ce){void 0===ce&&(ce=Q);var ae=Object.getOwnPropertyDescriptor(q,Q);(!ae||("get"in ae?!q.__esModule:ae.writable||ae.configurable))&&(ae={enumerable:!0,get:function(){return q[Q]}}),Object.defineProperty(O,ce,ae)}:function(O,q,Q,ce){void 0===ce&&(ce=Q),O[ce]=q[Q]}),$=this&&this.__exportStar||function(O,q){for(var Q in O)"default"!==Q&&!Object.prototype.hasOwnProperty.call(q,Q)&&N(q,O,Q)};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 U=V(8659),b=V(763);Object.defineProperty(P,"OpenVidu",{enumerable:!0,get:function(){return b.OpenVidu}});var y=V(8402);Object.defineProperty(P,"Session",{enumerable:!0,get:function(){return y.Session}});var E=V(4259);Object.defineProperty(P,"Publisher",{enumerable:!0,get:function(){return E.Publisher}});var _=V(1758);Object.defineProperty(P,"Subscriber",{enumerable:!0,get:function(){return _.Subscriber}});var v=V(8613);Object.defineProperty(P,"StreamManager",{enumerable:!0,get:function(){return v.StreamManager}});var w=V(2096);Object.defineProperty(P,"Stream",{enumerable:!0,get:function(){return w.Stream}});var C=V(7490);Object.defineProperty(P,"Connection",{enumerable:!0,get:function(){return C.Connection}});var G=V(4289);Object.defineProperty(P,"LocalRecorder",{enumerable:!0,get:function(){return G.LocalRecorder}});var J=V(4540);Object.defineProperty(P,"Filter",{enumerable:!0,get:function(){return J.Filter}});var R=V(5156);Object.defineProperty(P,"LocalRecorderState",{enumerable:!0,get:function(){return R.LocalRecorderState}});var L=V(4103);Object.defineProperty(P,"OpenViduError",{enumerable:!0,get:function(){return L.OpenViduError}}),Object.defineProperty(P,"OpenViduErrorName",{enumerable:!0,get:function(){return L.OpenViduErrorName}});var Y=V(5913);Object.defineProperty(P,"TypeOfVideo",{enumerable:!0,get:function(){return Y.TypeOfVideo}});var W=V(6274);Object.defineProperty(P,"VideoInsertMode",{enumerable:!0,get:function(){return W.VideoInsertMode}});var S=V(2345);Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return S.Event}});var m=V(8702);Object.defineProperty(P,"ConnectionEvent",{enumerable:!0,get:function(){return m.ConnectionEvent}});var F=V(805);Object.defineProperty(P,"PublisherSpeakingEvent",{enumerable:!0,get:function(){return F.PublisherSpeakingEvent}});var X=V(7936);Object.defineProperty(P,"RecordingEvent",{enumerable:!0,get:function(){return X.RecordingEvent}});var x=V(1018);Object.defineProperty(P,"SessionDisconnectedEvent",{enumerable:!0,get:function(){return x.SessionDisconnectedEvent}});var f=V(5785);Object.defineProperty(P,"SignalEvent",{enumerable:!0,get:function(){return f.SignalEvent}});var k=V(2299);Object.defineProperty(P,"StreamEvent",{enumerable:!0,get:function(){return k.StreamEvent}});var ee=V(4006);Object.defineProperty(P,"StreamManagerEvent",{enumerable:!0,get:function(){return ee.StreamManagerEvent}});var T=V(4281);Object.defineProperty(P,"VideoElementEvent",{enumerable:!0,get:function(){return T.VideoElementEvent}});var M=V(2798);Object.defineProperty(P,"StreamPropertyChangedEvent",{enumerable:!0,get:function(){return M.StreamPropertyChangedEvent}});var te=V(865);Object.defineProperty(P,"ConnectionPropertyChangedEvent",{enumerable:!0,get:function(){return te.ConnectionPropertyChangedEvent}});var oe=V(2156);Object.defineProperty(P,"FilterEvent",{enumerable:!0,get:function(){return oe.FilterEvent}});var le=V(6237);Object.defineProperty(P,"NetworkQualityLevelChangedEvent",{enumerable:!0,get:function(){return le.NetworkQualityLevelChangedEvent}});var g=V(6282);Object.defineProperty(P,"SpeechToTextEvent",{enumerable:!0,get:function(){return g.SpeechToTextEvent}});var z=V(7507);Object.defineProperty(P,"ExceptionEvent",{enumerable:!0,get:function(){return z.ExceptionEvent}}),Object.defineProperty(P,"ExceptionEventName",{enumerable:!0,get:function(){return z.ExceptionEventName}});var K=V(8074);Object.defineProperty(P,"EventDispatcher",{enumerable:!0,get:function(){return K.EventDispatcher}}),$(V(5810),P),U.JL.setOptions({enabled:!1})},835:Ae=>{"use strict";function P(){this._types=Object.create(null),this._extensions=Object.create(null);for(let V=0;V{"use strict";let N=V(835);Ae.exports=new N(V(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,V)=>{const N=V(8977),{MAX_LENGTH:$,MAX_SAFE_INTEGER:U}=V(3054),{re:b,t:y}=V(6072),E=V(4931),{compareIdentifiers:_}=V(4452);class v{constructor(C,G){if(G=E(G),C instanceof v){if(C.loose===!!G.loose&&C.includePrerelease===!!G.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,G),this.options=G,this.loose=!!G.loose,this.includePrerelease=!!G.includePrerelease;const J=C.trim().match(G.loose?b[y.LOOSE]:b[y.FULL]);if(!J)throw new TypeError(`Invalid Version: ${C}`);if(this.raw=C,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>U||this.major<0)throw new TypeError("Invalid major version");if(this.minor>U||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>U||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=J[4]?J[4].split(".").map(R=>{if(/^[0-9]+$/.test(R)){const L=+R;if(L>=0&&L=0;)"number"==typeof this.prerelease[J]&&(this.prerelease[J]++,J=-2);-1===J&&this.prerelease.push(0)}G&&(0===_(this.prerelease[0],G)?isNaN(this.prerelease[1])&&(this.prerelease=[G,0]):this.prerelease=[G,0]);break;default:throw new Error(`invalid increment argument: ${C}`)}return this.format(),this.raw=this.version,this}}Ae.exports=v},4778:(Ae,P,V)=>{const N=V(2463);Ae.exports=(U,b)=>new N(U,b).major},3042:(Ae,P,V)=>{const N=V(2463);Ae.exports=(U,b)=>new N(U,b).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)?(...V)=>console.error("SEMVER",...V):()=>{};Ae.exports=P},4452:Ae=>{const P=/^[0-9]+$/,V=($,U)=>{const b=P.test($),y=P.test(U);return b&&y&&($=+$,U=+U),$===U?0:b&&!y?-1:y&&!b?1:$V(U,$)}},4931:Ae=>{const P=["includePrerelease","loose","rtl"];Ae.exports=N=>N?"object"!=typeof N?{loose:!0}:P.filter($=>N[$]).reduce(($,U)=>($[U]=!0,$),{}):{}},6072:(Ae,P,V)=>{const{MAX_SAFE_COMPONENT_LENGTH:N}=V(3054),$=V(8977),U=(P=Ae.exports={}).re=[],b=P.src=[],y=P.t={};let E=0;const _=(v,w,C)=>{const G=E++;$(v,G,w),y[v]=G,b[G]=w,U[G]=new RegExp(w,C?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*"),_("NUMERICIDENTIFIERLOOSE","[0-9]+"),_("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),_("MAINVERSION",`(${b[y.NUMERICIDENTIFIER]})\\.(${b[y.NUMERICIDENTIFIER]})\\.(${b[y.NUMERICIDENTIFIER]})`),_("MAINVERSIONLOOSE",`(${b[y.NUMERICIDENTIFIERLOOSE]})\\.(${b[y.NUMERICIDENTIFIERLOOSE]})\\.(${b[y.NUMERICIDENTIFIERLOOSE]})`),_("PRERELEASEIDENTIFIER",`(?:${b[y.NUMERICIDENTIFIER]}|${b[y.NONNUMERICIDENTIFIER]})`),_("PRERELEASEIDENTIFIERLOOSE",`(?:${b[y.NUMERICIDENTIFIERLOOSE]}|${b[y.NONNUMERICIDENTIFIER]})`),_("PRERELEASE",`(?:-(${b[y.PRERELEASEIDENTIFIER]}(?:\\.${b[y.PRERELEASEIDENTIFIER]})*))`),_("PRERELEASELOOSE",`(?:-?(${b[y.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${b[y.PRERELEASEIDENTIFIERLOOSE]})*))`),_("BUILDIDENTIFIER","[0-9A-Za-z-]+"),_("BUILD",`(?:\\+(${b[y.BUILDIDENTIFIER]}(?:\\.${b[y.BUILDIDENTIFIER]})*))`),_("FULLPLAIN",`v?${b[y.MAINVERSION]}${b[y.PRERELEASE]}?${b[y.BUILD]}?`),_("FULL",`^${b[y.FULLPLAIN]}$`),_("LOOSEPLAIN",`[v=\\s]*${b[y.MAINVERSIONLOOSE]}${b[y.PRERELEASELOOSE]}?${b[y.BUILD]}?`),_("LOOSE",`^${b[y.LOOSEPLAIN]}$`),_("GTLT","((?:<|>)?=?)"),_("XRANGEIDENTIFIERLOOSE",`${b[y.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_("XRANGEIDENTIFIER",`${b[y.NUMERICIDENTIFIER]}|x|X|\\*`),_("XRANGEPLAIN",`[v=\\s]*(${b[y.XRANGEIDENTIFIER]})(?:\\.(${b[y.XRANGEIDENTIFIER]})(?:\\.(${b[y.XRANGEIDENTIFIER]})(?:${b[y.PRERELEASE]})?${b[y.BUILD]}?)?)?`),_("XRANGEPLAINLOOSE",`[v=\\s]*(${b[y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${b[y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${b[y.XRANGEIDENTIFIERLOOSE]})(?:${b[y.PRERELEASELOOSE]})?${b[y.BUILD]}?)?)?`),_("XRANGE",`^${b[y.GTLT]}\\s*${b[y.XRANGEPLAIN]}$`),_("XRANGELOOSE",`^${b[y.GTLT]}\\s*${b[y.XRANGEPLAINLOOSE]}$`),_("COERCE",`(^|[^\\d])(\\d{1,${N}})(?:\\.(\\d{1,${N}}))?(?:\\.(\\d{1,${N}}))?(?:$|[^\\d])`),_("COERCERTL",b[y.COERCE],!0),_("LONETILDE","(?:~>?)"),_("TILDETRIM",`(\\s*)${b[y.LONETILDE]}\\s+`,!0),P.tildeTrimReplace="$1~",_("TILDE",`^${b[y.LONETILDE]}${b[y.XRANGEPLAIN]}$`),_("TILDELOOSE",`^${b[y.LONETILDE]}${b[y.XRANGEPLAINLOOSE]}$`),_("LONECARET","(?:\\^)"),_("CARETTRIM",`(\\s*)${b[y.LONECARET]}\\s+`,!0),P.caretTrimReplace="$1^",_("CARET",`^${b[y.LONECARET]}${b[y.XRANGEPLAIN]}$`),_("CARETLOOSE",`^${b[y.LONECARET]}${b[y.XRANGEPLAINLOOSE]}$`),_("COMPARATORLOOSE",`^${b[y.GTLT]}\\s*(${b[y.LOOSEPLAIN]})$|^$`),_("COMPARATOR",`^${b[y.GTLT]}\\s*(${b[y.FULLPLAIN]})$|^$`),_("COMPARATORTRIM",`(\\s*)${b[y.GTLT]}\\s*(${b[y.LOOSEPLAIN]}|${b[y.XRANGEPLAIN]})`,!0),P.comparatorTrimReplace="$1$2$3",_("HYPHENRANGE",`^\\s*(${b[y.XRANGEPLAIN]})\\s+-\\s+(${b[y.XRANGEPLAIN]})\\s*$`),_("HYPHENRANGELOOSE",`^\\s*(${b[y.XRANGEPLAINLOOSE]})\\s+-\\s+(${b[y.XRANGEPLAINLOOSE]})\\s*$`),_("STAR","(<|>)?=?\\s*\\*"),_("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),_("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},4816:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),Object.defineProperty(P,"NIL",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(P,"parse",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return v.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 U.default}}),Object.defineProperty(P,"v5",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(P,"validate",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(P,"version",{enumerable:!0,get:function(){return E.default}});var N=C(V(3291)),$=C(V(4635)),U=C(V(1546)),b=C(V(9181)),y=C(V(3583)),E=C(V(2471)),_=C(V(809)),v=C(V(7992)),w=C(V(8877));function C(G){return G&&G.__esModule?G:{default:G}}},441:(Ae,P)=>{"use strict";function $(R){return 14+(R+64>>>9<<4)+1}function y(R,L){const Y=(65535&R)+(65535&L);return(R>>16)+(L>>16)+(Y>>16)<<16|65535&Y}function _(R,L,Y,W,S,m){return y(function E(R,L){return R<>>32-L}(y(y(L,R),y(W,m)),S),Y)}function v(R,L,Y,W,S,m,F){return _(L&Y|~L&W,R,L,S,m,F)}function w(R,L,Y,W,S,m,F){return _(L&W|Y&~W,R,L,S,m,F)}function C(R,L,Y,W,S,m,F){return _(L^Y^W,R,L,S,m,F)}function G(R,L,Y,W,S,m,F){return _(Y^(L|~W),R,L,S,m,F)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.default=function V(R){if("string"==typeof R){const L=unescape(encodeURIComponent(R));R=new Uint8Array(L.length);for(let Y=0;Y>5]>>>S%32&255,F=parseInt(W.charAt(m>>>4&15)+W.charAt(15&m),16);L.push(F)}return L}(function U(R,L){R[L>>5]|=128<>5]|=(255&R[W/8])<{"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,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=function $(y){return y&&y.__esModule?y:{default:y}}(V(809));P.default=function U(y){if(!(0,N.default)(y))throw TypeError("Invalid UUID");let E;const _=new Uint8Array(16);return _[0]=(E=parseInt(y.slice(0,8),16))>>>24,_[1]=E>>>16&255,_[2]=E>>>8&255,_[3]=255&E,_[4]=(E=parseInt(y.slice(9,13),16))>>>8,_[5]=255&E,_[6]=(E=parseInt(y.slice(14,18),16))>>>8,_[7]=255&E,_[8]=(E=parseInt(y.slice(19,23),16))>>>8,_[9]=255&E,_[10]=(E=parseInt(y.slice(24,36),16))/1099511627776&255,_[11]=E/4294967296&255,_[12]=E>>>24&255,_[13]=E>>>16&255,_[14]=E>>>8&255,_[15]=255&E,_}},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 V;Object.defineProperty(P,"__esModule",{value:!0}),P.default=function $(){if(!V&&(V="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!V))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return V(N)};const N=new Uint8Array(16)},3137:(Ae,P)=>{"use strict";function V(b,y,E,_){switch(b){case 0:return y&E^~y&_;case 1:case 3:return y^E^_;case 2:return y&E^y&_^E&_}}function N(b,y){return b<>>32-y}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.default=function $(b){const y=[1518500249,1859775393,2400959708,3395469782],E=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof b){const C=unescape(encodeURIComponent(b));b=[];for(let G=0;G>>0;W=Y,Y=L,L=N(R,30)>>>0,R=J,J=F}E[0]=E[0]+J>>>0,E[1]=E[1]+R>>>0,E[2]=E[2]+L>>>0,E[3]=E[3]+Y>>>0,E[4]=E[4]+W>>>0}return[E[0]>>24&255,E[0]>>16&255,E[0]>>8&255,255&E[0],E[1]>>24&255,E[1]>>16&255,E[1]>>8&255,255&E[1],E[2]>>24&255,E[2]>>16&255,E[2]>>8&255,255&E[2],E[3]>>24&255,E[3]>>16&255,E[3]>>8&255,255&E[3],E[4]>>24&255,E[4]>>16&255,E[4]>>8&255,255&E[4]]}},7992:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0,P.unsafeStringify=b;var N=function $(_){return _&&_.__esModule?_:{default:_}}(V(809));const U=[];for(let _=0;_<256;++_)U.push((_+256).toString(16).slice(1));function b(_,v=0){return(U[_[v+0]]+U[_[v+1]]+U[_[v+2]]+U[_[v+3]]+"-"+U[_[v+4]]+U[_[v+5]]+"-"+U[_[v+6]]+U[_[v+7]]+"-"+U[_[v+8]]+U[_[v+9]]+"-"+U[_[v+10]]+U[_[v+11]]+U[_[v+12]]+U[_[v+13]]+U[_[v+14]]+U[_[v+15]]).toLowerCase()}P.default=function y(_,v=0){const w=b(_,v);if(!(0,N.default)(w))throw TypeError("Stringified UUID is invalid");return w}},3291:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=function U(C){return C&&C.__esModule?C:{default:C}}(V(2131)),$=V(7992);let b,y,E=0,_=0;P.default=function v(C,G,J){let R=G&&J||0;const L=G||new Array(16);let Y=(C=C||{}).node||b,W=void 0!==C.clockseq?C.clockseq:y;if(null==Y||null==W){const f=C.random||(C.rng||N.default)();null==Y&&(Y=b=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==W&&(W=y=16383&(f[6]<<8|f[7]))}let S=void 0!==C.msecs?C.msecs:Date.now(),m=void 0!==C.nsecs?C.nsecs:_+1;const F=S-E+(m-_)/1e4;if(F<0&&void 0===C.clockseq&&(W=W+1&16383),(F<0||S>E)&&void 0===C.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");E=S,_=m,y=W,S+=122192928e5;const X=(1e4*(268435455&S)+m)%4294967296;L[R++]=X>>>24&255,L[R++]=X>>>16&255,L[R++]=X>>>8&255,L[R++]=255&X;const x=S/4294967296*1e4&268435455;L[R++]=x>>>8&255,L[R++]=255&x,L[R++]=x>>>24&15|16,L[R++]=x>>>16&255,L[R++]=W>>>8|128,L[R++]=255&W;for(let f=0;f<6;++f)L[R+f]=Y[f];return G||(0,$.unsafeStringify)(L)}},4635:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=U(V(250)),$=U(V(441));function U(E){return E&&E.__esModule?E:{default:E}}var y=(0,N.default)("v3",48,$.default);P.default=y},250:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.URL=P.DNS=void 0,P.default=function _(v,w,C){function G(J,R,L,Y){var W;if("string"==typeof J&&(J=function b(v){v=unescape(encodeURIComponent(v));const w=[];for(let C=0;C{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=b(V(9869)),$=b(V(2131)),U=V(7992);function b(_){return _&&_.__esModule?_:{default:_}}P.default=function y(_,v,w){if(N.default.randomUUID&&!v&&!_)return N.default.randomUUID();const C=(_=_||{}).random||(_.rng||$.default)();if(C[6]=15&C[6]|64,C[8]=63&C[8]|128,v){w=w||0;for(let G=0;G<16;++G)v[w+G]=C[G];return v}return(0,U.unsafeStringify)(C)}},9181:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=U(V(250)),$=U(V(3137));function U(E){return E&&E.__esModule?E:{default:E}}var y=(0,N.default)("v5",80,$.default);P.default=y},809:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=function $(y){return y&&y.__esModule?y:{default:y}}(V(2662));P.default=function U(y){return"string"==typeof y&&N.default.test(y)}},2471:(Ae,P,V)=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var N=function $(y){return y&&y.__esModule?y:{default:y}}(V(809));P.default=function U(y){if(!(0,N.default)(y))throw TypeError("Invalid UUID");return parseInt(y.slice(14,15),16)}},2437:function(Ae,P,V){var N;Ae=V.nmd(Ae),function(){"use strict";var $={function:!0,object:!0},U=$[typeof window]&&window||this,_=$[typeof P]&&P&&$.object&&Ae&&!Ae.nodeType&&Ae&&"object"==typeof global&&global;_&&(_.global===_||_.window===_||_.self===_)&&(U=_);var v=Math.pow(2,53)-1,w=/\bOpera/,G=Object.prototype,J=G.hasOwnProperty,R=G.toString;function L(M){return(M=String(M)).charAt(0).toUpperCase()+M.slice(1)}function S(M){return M=k(M),/^(?:webOS|i(?:OS|P))/.test(M)?M:L(M)}function m(M,te){for(var oe in M)J.call(M,oe)&&te(M[oe],oe,M)}function F(M){return null==M?L(M):R.call(M).slice(8,-1)}function x(M){return String(M).replace(/([ -])(?!$)/g,"$1?")}function f(M,te){var oe=null;return function W(M,te){var oe=-1,le=M?M.length:0;if("number"==typeof le&&le>-1&&le<=v)for(;++oe3?"WebKit":/\bOpera\b/.test(Ue)&&(/\bOPR\b/.test(M)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(M)&&!/^(?:Trident|EdgeHTML)$/.test(De)&&"WebKit"||!De&&/\bMSIE\b/i.test(M)&&("Mac OS"==qe?"Tasman":"Trident")||"WebKit"==De&&/\bPlayStation\b(?! Vita\b)/i.test(Ue)&&"NetFront")&&(De=[pe]),"IE"==Ue&&(pe=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(M)||0)[1])?(Ue+=" Mobile",qe="Windows Phone "+(/\+$/.test(pe)?pe:pe+".x"),$e.unshift("desktop mode")):/\bWPDesktop\b/i.test(M)?(Ue="IE Mobile",qe="Windows Phone 8.x",$e.unshift("desktop mode"),Ke||(Ke=(/\brv:([\d.]+)/.exec(M)||0)[1])):"IE"!=Ue&&"Trident"==De&&(pe=/\brv:([\d.]+)/.exec(M))&&(Ue&&$e.push("identifying as "+Ue+(Ke?" "+Ke:"")),Ue="IE",Ke=pe[1]),zn){if(function X(M,te){var oe=null!=M?typeof M[te]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(oe)||"object"==oe&&!M[te])}(te,"global"))if(ue&&(on=(pe=ue.lang.System).getProperty("os.arch"),qe=qe||pe.getProperty("os.name")+" "+pe.getProperty("os.version")),Le){try{Ke=te.require("ringo/engine").version.join("."),Ue="RingoJS"}catch(yi){(pe=te.system)&&pe.global.system==te.system&&(Ue="Narwhal",qe||(qe=pe[0].os||null))}Ue||(Ue="Rhino")}else"object"==typeof te.process&&!te.process.browser&&(pe=te.process)&&("object"==typeof pe.versions&&("string"==typeof pe.versions.electron?($e.push("Node "+pe.versions.node),Ue="Electron",Ke=pe.versions.electron):"string"==typeof pe.versions.nw&&($e.push("Chromium "+Ke,"Node "+pe.versions.node),Ue="NW.js",Ke=pe.versions.nw)),Ue||(Ue="Node.js",on=pe.arch,qe=pe.platform,Ke=(Ke=/[\d.]+/.exec(pe.version))?Ke[0]:null));else F(pe=te.runtime)==q?(Ue="Adobe AIR",qe=pe.flash.system.Capabilities.os):F(pe=te.phantom)==ae?(Ue="PhantomJS",Ke=(pe=pe.version||null)&&pe.major+"."+pe.minor+"."+pe.patch):"number"==typeof ze.documentMode&&(pe=/\bTrident\/(\d+)/i.exec(M))?((pe=+pe[1]+4)!=(Ke=[Ke,ze.documentMode])[1]&&($e.push("IE "+Ke[1]+" mode"),De&&(De[1]=""),Ke[1]=pe),Ke="IE"==Ue?String(Ke[1].toFixed(1)):Ke[0]):"number"==typeof ze.documentMode&&/^(?:Chrome|Firefox)\b/.test(Ue)&&($e.push("masking as "+Ue+" "+Ke),Ue="IE",Ke="11.0",De=["Trident"],qe="Windows");qe=qe&&S(qe)}if(Ke&&(pe=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ke)||/(?:alpha|beta)(?: ?\d)?/i.exec(M+";"+(zn&&le.appMinorVersion))||/\bMinefield\b/i.test(M)&&"a")&&(ln=/b/i.test(pe)?"beta":"alpha",Ke=Ke.replace(RegExp(pe+"\\+?$"),"")+("beta"==ln?Be:We)+(/\d+\+?/.exec(pe)||"")),"Fennec"==Ue||"Firefox"==Ue&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(qe))Ue="Firefox Mobile";else if("Maxthon"==Ue&&Ke)Ke=Ke.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Lt))"Xbox 360"==Lt&&(qe=null),"Xbox 360"==Lt&&/\bIEMobile\b/.test(M)&&$e.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Ue)&&(!Ue||Lt||/Browser|Mobi/.test(Ue))||"Windows CE"!=qe&&!/Mobi/i.test(M))if("IE"==Ue&&zn)try{null===te.external&&$e.unshift("platform preview")}catch(yi){$e.unshift("embedded")}else(/\bBlackBerry\b/.test(Lt)||/\bBB10\b/.test(M))&&(pe=(RegExp(Lt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(M)||0)[1]||Ke)?(qe=((pe=[pe,/BB10/.test(M)])[1]?(Lt=null,li="BlackBerry"):"Device Software")+" "+pe[0],Ke=null):this!=m&&"Wii"!=Lt&&(zn&&ct||/Opera/.test(Ue)&&/\b(?:MSIE|Firefox)\b/i.test(M)||"Firefox"==Ue&&/\bOS X (?:\d+\.){2,}/.test(qe)||"IE"==Ue&&(qe&&!/^Win/.test(qe)&&Ke>5.5||/\bWindows XP\b/.test(qe)&&Ke>8||8==Ke&&!/\bTrident\b/.test(M)))&&!w.test(pe=ee.call(m,M.replace(w,"")+";"))&&pe.name&&(pe="ing as "+pe.name+((pe=pe.version)?" "+pe:""),w.test(Ue)?(/\bIE\b/.test(pe)&&"Mac OS"==qe&&(qe=null),pe="identify"+pe):(pe="mask"+pe,Ue=je?S(je.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(pe)&&(qe=null),zn||(Ke=null)),De=["Presto"],$e.push(pe));else Ue+=" Mobile";(pe=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(M)||0)[1])&&(pe=[parseFloat(pe.replace(/\.(\d)$/,".0$1")),pe],"Safari"==Ue&&"+"==pe[1].slice(-1)?(Ue="WebKit Nightly",ln="alpha",Ke=pe[1].slice(0,-1)):(Ke==pe[1]||Ke==(pe[2]=(/\bSafari\/([\d.]+\+?)/i.exec(M)||0)[1]))&&(Ke=null),pe[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(M)||0)[1],537.36==pe[0]&&537.36==pe[2]&&parseFloat(pe[1])>=28&&"WebKit"==De&&(De=["Blink"]),zn&&(K||pe[1])?(De&&(De[1]="like Chrome"),pe=pe[1]||((pe=pe[0])<530?1:pe<532?2:pe<532.05?3:pe<533?4:pe<534.03?5:pe<534.07?6:pe<534.1?7:pe<534.13?8:pe<534.16?9:pe<534.24?10:pe<534.3?11:pe<535.01?12:pe<535.02?"13+":pe<535.07?15:pe<535.11?16:pe<535.19?17:pe<536.05?18:pe<536.1?19:pe<537.01?20:pe<537.11?"21+":pe<537.13?23:pe<537.18?24:pe<537.24?25:pe<537.36?26:"Blink"!=De?"27":"28")):(De&&(De[1]="like Safari"),pe=(pe=pe[0])<400?1:pe<500?2:pe<526?3:pe<533?4:pe<534?"4+":pe<535?5:pe<537?6:pe<538?7:pe<601?8:pe<602?9:pe<604?10:pe<606?11:pe<608?12:"12"),De&&(De[1]+=" "+(pe+="number"==typeof pe?".x":/[.+]/.test(pe)?"":"+")),"Safari"==Ue&&(!Ke||parseInt(Ke)>45)?Ke=pe:"Chrome"==Ue&&/\bHeadlessChrome/i.test(M)&&$e.unshift("headless")),"Opera"==Ue&&(pe=/\bzbov|zvav$/.exec(qe))?(Ue+=" ",$e.unshift("desktop mode"),"zvav"==pe?(Ue+="Mini",Ke=null):Ue+="Mobile",qe=qe.replace(RegExp(" *"+pe+"$"),"")):"Safari"==Ue&&/\bChrome\b/.exec(De&&De[1])?($e.unshift("desktop mode"),Ue="Chrome Mobile",Ke=null,/\bOS X\b/.test(qe)?(li="Apple",qe="iOS 4.3+"):qe=null):/\bSRWare Iron\b/.test(Ue)&&!Ke&&(Ke=cd("Chrome")),Ke&&0==Ke.indexOf(pe=/[\d.]+$/.exec(qe))&&M.indexOf("/"+pe+"-")>-1&&(qe=k(qe.replace(pe,""))),qe&&-1!=qe.indexOf(Ue)&&!RegExp(Ue+" OS").test(qe)&&(qe=qe.replace(RegExp(" *"+x(Ue)+" *"),"")),De&&!/\b(?:Avant|Nook)\b/.test(Ue)&&(/Browser|Lunascape|Maxthon/.test(Ue)||"Safari"!=Ue&&/^iOS/.test(qe)&&/\bSafari\b/.test(De[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Ue)&&De[1])&&(pe=De[De.length-1])&&$e.push(pe),$e.length&&($e=["("+$e.join("; ")+")"]),li&&Lt&&Lt.indexOf(li)<0&&$e.push("on "+li),Lt&&$e.push((/^on /.test($e[$e.length-1])?"":"on ")+Lt),qe&&(pe=/ ([\d.+]+)$/.exec(qe),Qn=pe&&"/"==qe.charAt(qe.length-pe[0].length-1),qe={architecture:32,family:pe&&!Qn?qe.replace(pe[0],""):qe,version:pe?pe[1]:null,toString:function(){var yi=this.version;return this.family+(yi&&!Qn?" "+yi:"")+(64==this.architecture?" 64-bit":"")}}),(pe=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(on))&&!/\bi686\b/i.test(on)?(qe&&(qe.architecture=64,qe.family=qe.family.replace(RegExp(" *"+pe),"")),Ue&&(/\bWOW64\b/i.test(M)||zn&&/\w(?:86|32)$/.test(le.cpuClass||le.platform)&&!/\bWin64; x64\b/i.test(M))&&$e.unshift("32-bit")):qe&&/^OS X/.test(qe.family)&&"Chrome"==Ue&&parseFloat(Ke)>=39&&(qe.architecture=64),M||(M=null);var bi={};return bi.description=M,bi.layout=De&&De[0],bi.manufacturer=li,bi.name=Ue,bi.prerelease=ln,bi.product=Lt,bi.ua=M,bi.version=Ue&&Ke,bi.os=qe||{architecture:null,family:null,version:null,toString:function(){return"null"}},bi.parse=ee,bi.toString=function ky(){return this.description||""},bi.version&&$e.unshift(Ke),bi.name&&$e.unshift(Ue),qe&&Ue&&!(qe==String(qe).split(" ")[0]&&(qe==Ue.split(" ")[0]||Lt))&&$e.push(Lt?"("+qe+")":"on "+qe),$e.length&&(bi.description=$e.join(" ")),bi}();U.platform=T,void 0!==(N=function(){return T}.call(P,V,P,Ae))&&(Ae.exports=N)}.call(this)},2069:Ae=>{function P(){}Ae.exports=P,P.mixin=function(V){var N=V.prototype||V;N.isWildEmitter=!0,N.on=function($,U,b){this.callbacks=this.callbacks||{};var y=3===arguments.length,E=y?arguments[1]:void 0,_=y?arguments[2]:arguments[1];return _._groupName=E,(this.callbacks[$]=this.callbacks[$]||[]).push(_),this},N.once=function($,U,b){var y=this,E=3===arguments.length,_=E?arguments[1]:void 0,v=E?arguments[2]:arguments[1];function w(){y.off($,w),v.apply(this,arguments)}return this.on($,_,w),this},N.releaseGroup=function($){var U,b,y,E;for(U in this.callbacks=this.callbacks||{},this.callbacks)for(b=0,y=(E=this.callbacks[U]).length;b{"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.28.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":"",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;P0,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=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=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;x1?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;U0){var h=R.invoke;R.invoke=function(){for(var a=w[r.__symbol__("loadfalse")],o=0;o{Ee(Ee.s=7435)}]);